# Sample Code

Run this script. Edit it and make it your own.


```

# sympy_examples.py
# -------------------------------------------------------------------------
# Demonstrate some useful methods available in the SymPy module.
# ------------------------------------------------------------------------- 
from sympy import *
init_session()

expand( (x + y)**5 )
factor( x**6 - 1 )
pi.n(100)
plot(besselj(0, x), besselj(1, x), (x, 0, 10))
diff( x*sin(y), x, y )
integrate(cos(x)**2, x)
integrate(exp(-x**2), (x, -oo, oo))
Sum(k**3, (k, 0, m)).doit().factor()
dsolve(f(x).diff(x) + f(x) - x, f(x)).simplify()

```

8f6dfd10d38cc68dc12a5b8fc026df7bf94ffac7
ipynb
Jupyter Notebook
sympy_examples.ipynb
dr-kinder/jupyter-notebooks
621c70e7e428bf8d71132a962ceab2192e8427c5
BSD-3-Clause
2021-12-04T14:04:53.000Z
2021-12-04T14:04:53.000Z
sympy_examples.ipynb
dr-kinder/jupyter-notebooks
621c70e7e428bf8d71132a962ceab2192e8427c5
BSD-3-Clause
sympy_examples.ipynb
dr-kinder/jupyter-notebooks
621c70e7e428bf8d71132a962ceab2192e8427c5
BSD-3-Clause
Qwen/Qwen-72B
1. YES
2. YES

