Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

solving equations and using values obtained in other calculations

Hi

The function solve() in SAGE returns symbolic values for the variables i solve the equations for e.g:

sage: s=solve(eqn,y) sage: s [y == -1/2(sqrt(-596x^8 - 168x^7 - 67x^6 + 240x^5 + 144x^4 - 60x - 4) + 8x^4 + 11x^3 + 12x^2)/(15x + 1), y == 1/2(sqrt(-596x^8 - 168x^7 - 67x^6 + 240x^5 + 144x^4 - 60x - 4) - 8x^4 - 11x^3 - 12x^2)/(15x + 1)]

My problem is that i need to use the values obtained for y in other calculations, but I cannot assign these values to any other variable. Could someone please help me with this?

Thank You

solving equations and using values obtained in other calculations

Hi

The function solve() in SAGE returns symbolic values for the variables i solve the equations for e.g:e.g.:

sage: s=solve(eqn,y)
sage: s
[y == -1/2(sqrt(-596x^8 -1/2*(sqrt(-596*x^8 - 168x^7 168*x^7 - 67x^6 67*x^6 + 240x^5 240*x^5 + 144x^4 144*x^4 - 60x 60*x - 4) + 8x^4 8*x^4 + 11x^3 11*x^3 + 12x^2)/(15x 12*x^2)/(15*x + 1), 1),
 y == 1/2(sqrt(-596x^8 1/2*(sqrt(-596*x^8 - 168x^7 168*x^7 - 67x^6 67*x^6 + 240x^5 240*x^5 + 144x^4 144*x^4 - 60x 60*x - 4) - 8x^4 8*x^4 - 11x^3 11*x^3 - 12x^2)/(15x 12*x^2)/(15*x + 1)]1)]

My problem is that i need to use the values obtained for y in other calculations, but I cannot assign these values to any other variable. Could someone please help me with this?

Thank You

solving equations and using values obtained in other calculations

Hi

The function solve() in SAGE returns symbolic values for the variables i solve the equations for e.g.:

sage: s=solve(eqn,y)
sage: s
[y == -1/2*(sqrt(-596*x^8 - 168*x^7 - 67*x^6 + 240*x^5 + 144*x^4 - 60*x - 4) + 8*x^4 + 11*x^3 + 12*x^2)/(15*x + 1),
 y == 1/2*(sqrt(-596*x^8 - 168*x^7 - 67*x^6 + 240*x^5 + 144*x^4 - 60*x - 4) - 8*x^4 - 11*x^3 - 12*x^2)/(15*x + 1)]

My problem is that i need to use the values obtained for y in other calculations, but I cannot assign these values to any other variable. Could someone please help me with this?

Thank You