Test notebook
Write your post here.
In [1]:
from diofant import *
from diofant.abc import x
In [2]:
p = x**7 + sqrt(2)*x - I
r1 = RootOf(p, 1)
In [3]:
r1.is_real
Out[3]:
In [4]:
r1.is_imaginary
Out[4]:
... it's a complex number
In [5]:
r1.evalf()
Out[5]:
In [6]:
nroots(p)
Out[6]:
In [7]:
str(_5) in [str(_) for _ in _6]
Out[7]:
Now some plots
In [8]:
%matplotlib inline
In [9]:
plot(sin(x)/x, (x, 0, 3*pi))
Out[9]:
In [ ]: