Hi Geir,

If you really want to use strings, it may work like that:
sage: var('x y')
(x, y)
sage: EqL=['y==x**%d-%d'%(i,i) for i in range(10)]
sage: for X in EqL:
....:     print X
....:     print solve(eval(X))
....:
y==x**0-0
[
                                     y == 1
]
y==x**1-1
[
                                   x == y + 1
]
y==x**2-2
[
                               x == - sqrt(y + 2),
                                x == sqrt(y + 2)
]

etc...

Note that double-= yields an equation (not a boolean!) if symbolic
expressions such as x and y are involved. A single "=" is an
assignment.

Cheers
    Simon

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to