In [1]:
plot(sin(x))
Out[1]:
In [2]:
plot(sin(x), (x, -2*pi, 2*pi))
Out[2]:
In [3]:
plot(sin(x), (x, -2*pi, 2*pi)) + plot(cos(x), (x, -2*pi, 2*pi), color="red")
Out[3]:
In [4]:
f = x^2 + 2*x + 1
In [5]:
show(f)
In [6]:
f1 = diff(f, x)
In [7]:
show(f1)
In [8]:
plot(f, (x, -5, 5)) + plot(f1, (x, -5, 5), color="red")
Out[8]:
In [11]:
plot( 2*x, (x, 0.5, 1.5), gridlines='minor', color="red") + plot( x^2+1, (x,-2, 2) ) + point( (1,2), size=30 )
Out[11]: