Text Using Markdown

If you double click on this cell, you will see the text change so that all of the formatting is removed. This allows you to edit this block of text. This block of text is written using Markdown, which is a way to format text using headers, links, italics, and many other options. Hit shift + enter or shift + return to show the formatted text again. This is called "running" the cell, and you can also do it using the run button in the toolbar.

Code cells

One great advantage of IPython notebooks is that you can show your Python code alongside the results, add comments to the code, or even add blocks of text using Markdown. These notebooks allow you to collaborate with others and share your work. The following cell is a code cell.


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

In [3]:
x=Symbol('x')

In [4]:
a=x**2-1
a


Out[4]:
$$x^{2} - 1$$

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

In [7]:
a.subs(x,y+1)


Out[7]:
$$\left(y + 1\right)^{2} - 1$$

In [8]:
a=(x+y-z)**6
a


Out[8]:
$$\left(x + y - z\right)^{6}$$

In [9]:
a=expand(a)
a


Out[9]:
$$x^{6} + 6 x^{5} y - 6 x^{5} z + 15 x^{4} y^{2} - 30 x^{4} y z + 15 x^{4} z^{2} + 20 x^{3} y^{3} - 60 x^{3} y^{2} z + 60 x^{3} y z^{2} - 20 x^{3} z^{3} + 15 x^{2} y^{4} - 60 x^{2} y^{3} z + 90 x^{2} y^{2} z^{2} - 60 x^{2} y z^{3} + 15 x^{2} z^{4} + 6 x y^{5} - 30 x y^{4} z + 60 x y^{3} z^{2} - 60 x y^{2} z^{3} + 30 x y z^{4} - 6 x z^{5} + y^{6} - 6 y^{5} z + 15 y^{4} z^{2} - 20 y^{3} z^{3} + 15 y^{2} z^{4} - 6 y z^{5} + z^{6}$$

In [ ]:

Some Markdown data

Fixing Data Types.


In [ ]:


In [ ]: