I want to use the jacobDN function in sympy, so I load it and python setup.py install , successfully.
When I want to use it, as in the documentation , follow these steps:
>>> from sympy.mpmath import * Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named mpmath >>>
Import everything from sympy successfully:
>>> from sympy import * >>>
Then I installed mpmath separately, then I can use the elliphone from mpmath. However, annoying mpf shown:
>>> from mpmath import * >>> ellipfun('dn',0.5,0.5) mpf('0.94297242577738571') >>>
The question is how to use ellipfun under sympy.mpmath? How to check my installation defects?
The solution to the above is the best! If it fails, how can I use ellipfun in mpmath in the same way as with regular functions?
confirmation of successful sympy installation
-> ~$ pip show sympy --- Name: sympy Version: 0.7.7.dev Location: /usr/local/lib/python2.7/dist-packages/sympy-0.7.7.dev-py2.7.egg Requires: mpmath -> ~$ pip install --upgrade sympy Requirement already up-to-date: sympy in /usr/local/lib/python2.7/dist-packages/sympy-0.7.7.dev-py2.7.egg Requirement already up-to-date: mpmath>=0.19 in /usr/local/lib/python2.7/dist-packages/mpmath-0.19-py2.7.egg (from sympy) Cleaning up...
source share