##// END OF EJS Templates
Backport PR #4144: help_end transformer shouldn't pick up ? in multiline string...
Backport PR #4144: help_end transformer shouldn't pick up ? in multiline string The help_end() transformer was already tokenizing the line to determine whether the ? was in a comment, so I just extended this to check for multi-line strings as well. Possible for backporting to 1.1, but it's low priority, and this code is fairly sensitive, so it doesn't have to be. Closes gh-4134

File last commit:

r11478:dea7df3f
r12430:eb71bb4a
Show More
notebook1.ipynb
148 lines | 5.4 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 [ ]: