Updates:
        Status: Fixed
        Labels: Solvers

Comment #5 on issue 1353 by asmeurer: solve() doesn't work with Sage types as input
http://code.google.com/p/sympy/issues/detail?id=1353

I finally installed sage. I had to apply a patch to mpmath to make sympy import (see my upcoming 0.7.0 branch), but after that, I get

sage: var("E R T A beta")
(E, R, T, A, beta)
sage: eq = (E/(R*T**2) == A/beta * exp(-E/(R*T)))
sage: import sympy
sympy/polys/domains/__init__.py:79: UserWarning: gmpy library is not installed, switching to 'python' ground types
  warn("gmpy library is not installed, switching to 'python' ground types")
sage: sympy.solve(eq.left()-eq.right(), E)
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)

/Users/aaronmeurer/Documents/python/sympy/sympy/<ipython console> in <module>()

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/solvers/solvers.py in solve(f, *symbols, **flags)
    225
    226         symbol = symbols[0]
--> 227         strategy = guess_solve_strategy(f, symbol)
    228
    229         if strategy == GS_POLY:

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/solvers/solvers.py in guess_solve_strategy(expr, symbol)
     67     eq_type = -1
     68     if expr.is_Add:
---> 69 return max([guess_solve_strategy(i, symbol) for i in expr.args])
     70
     71     elif expr.is_Mul:

/Users/aaronmeurer/Documents/python/sympy/sympy/sympy/solvers/solvers.py in guess_solve_strategy(expr, symbol)
     80                 return GS_RATIONAL_CV_1
     81             else:
---> 82                 raise NotImplementedError
     83         else:
84 return max([guess_solve_strategy(i, symbol) for i in expr.args])

NotImplementedError:

Which is the same thing I get in isympy.  So I'm closing this.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to