##// END OF EJS Templates
Merge pull request #7665 from jdfreder/fixedmodeindi2...
Merge pull request #7665 from jdfreder/fixedmodeindi2 Fix the mode indicator width.

File last commit:

r18596:2d590459
r20310:2e4fbcff merge
Show More
notebook1.ipynb
188 lines | 5.6 KiB | text/plain | TextLexer

A simple SymPy example

First we import SymPy and initialize printing:

In [2]:
from sympy import init_printing
from sympy import *
 init_printing()

Create a few symbols:

In [4]:
x,y,z = symbols('x y z')

Here is a basic expression:

In [6]:
e = x**2 + 2.0*y + sin(z); e
Out[6]:
$$x^{2} + 2.0 y + \sin{\left (z \right )}$$
In [7]:
diff(e, x)
Out[7]:
$$2 x$$
In [8]:
integrate(e, z)
Out[8]:
$$x^{2} z + 2.0 y z - \cos{\left (z \right )}$$
In [ ]: