Answer the question
In order to leave comments, you need to log in
How to do symbolic calculations in python?
I downloaded ANACONDA and decided to mess around a bit. Symbolic calculations fail in Python 3.5. This error comes up when importing from sympy: module' object is not callable.
Can you show the code with some simple example? (For example, taking the derivative of x^2 in symbolic form). And I'm a total noob at programming.
Here is the piece of code itself:
from sympy import symbo.
from sympy import diff
x=symbol('x')
y=x**2
print(diff(y,x))
Answer the question
In order to leave comments, you need to log in
from sympy import var
var('x')
y = x**2
print(y.diff(x)) # => 2*x
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question