I am a beginner to python, I wanted to symbolic computations. I came to know with sympy installation into our pc we can do symbolic computation. I have installed python 3.6 and I am using anaconda nagavitor, through which I am using spyder as an editor. now I want to install symbolic package sympy how to do that. I checked some post which says use 'conda install sympy'. but where to type this? I typed this in spyder editor and I am getting syntax error. thankyou
Agree with Dixit.
It's okay to use pip3 install sympy
on MacOS.
pip3 install sympy
and press enter.Using git. # Notice: Before install Sympy, it's necessary to install "mpmath". Like the First Solution,
pip3 install mpmath
After installing "mpmath", then,
After finish installation, you can open the Python IDLE and try:
from sympy import Symbol, cos
x = Symbol('x')
e = 1/cos(x)
print(e.series(x, 0, 10))
# Result
# 1 + x**2/2 + 5*x**4/24 + 61*x**6/720 + 277*x**8/8064 + O(x**10)
If the code works, it shows that your "Sympy" package has already been installed.
In anaconda navigator:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With