Section 1.4 Using Sage with Common Functions
-
Exponential function:
We may plot the function.xxxxxxxxxx
plot(2^x, -3, 4)
-
Trigonometry function:
xxxxxxxxxx
plot(sin(x), -2*pi, 2*pi)
There are two mistakes in the following cell. Fix it!xxxxxxxxxx
plot(sin(t), -2*pi, 2pi)
-
Power Functions
We may plot the power functions together.xxxxxxxxxx
plot(x^(1/2), 1,2)+plot(x^2, 1,2)
-
Logarithm function:
Exercise: compute the value ofxxxxxxxxxx
ln(20).n()
-
Inverse Trigonometry Functions:
xxxxxxxxxx
plot(2^x, -3, 4)