On 5/12/2012 9:30 AM, contro opinion wrote:
there is a simple equation,
50/((1+x)**0.9389)+50/((1+x)**1.9389)+1050/((1+x)**2.9389)-1045=0
i input :
 from sympy import *
 x=Symbol('x')
solve(50/((1+x)**0.9389)+50/((1+x)**1.9389)+1050/((1+x)**2.9389)-1045, x)
Traceback (most recent call last):
   File"<stdin>", line 1, in<module>
   File"/usr/lib/pymodules/python2.6/sympy/solvers/solvers.py", line 332, in 
solve
     result = tsolve(f, *symbols)
   File"/usr/lib/pymodules/python2.6/sympy/solvers/solvers.py", line 697, in 
tsolve
     "(tsolve: at least one Function expected at this point")
NotImplementedError: Unable to solve the equation(tsolve: at least one Function 
expected at this point

  tsolve(50/((1+x)**0.9389)+50/((1+x)**1.9389)+1050/((1+x)**2.9389)-1045, x)
Traceback (most recent call last):
   File"<stdin>", line 1, in<module>
   File"/usr/lib/pymodules/python2.6/sympy/solvers/solvers.py", line 697, in 
tsolve
     "(tsolve: at least one Function expected at this point")
NotImplementedError: Unable to solve the equation(tsolve: at least one Function 
expected at this point

1.how can i solve it  with sympy?

Read the sympy doc and learn how to make a Function and use tsolve correctly?

--
Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to