2*3
2^4
1.4+2.6
2/3
2/3+1.7
a=2/3+1.7
a
a+5
sin(pi)
diff(3*x^2)
y=var('y')
diff(3*y^2)
type(a)
sin(4) # will not approximate
N(sin(4))
N(sin(5), digits=10)
this is a markdown cell $3x^2$
plot?
z=var('z')
plot(sin(z),(z,-6,6), axes=false)
a
p1=plot(sin(z),(z,-6,6), axes=false)
p2=plot(cos(z^2),(z,-6,6))
show(p2)
show(p1+p2)
plot3d(x^2+2*y^2, (x,-2,2), (y,-2,2))
p3=parametric_plot([cos(x),sin(x)], (x,0,pi))
show(p1+p3, axes=true)
factor(33)
factor(2^31-1)
divisors(63)
is_prime(2^31+1)
next_prime(7)
gcd(11,121)
gcd(3,7)
x^2+2*x
factor(x^2+2*x)
expand((x^2+17)*(37*x+x^5))
%%time
factor(2^1273-1)
a
a
listy=[1,2,7]
listy
listy[0]
listy[2]
listy=[1,1.4,"word",[1,2]]
listy[0]+listy[2]
"word1" + "other word"
listy
listy[1:3]