|
|
|
Hard nosed Calculus teachers would not accept this last answer,
but leaving off the 'c' is common in Computer Algebra Systems.
|
These expressions can be plotted.
![]() |
|
|
These expressions can also be plotted.
![]() |
Sage can make substitutions, generate partial fraction expansions, and integrate.
|
Most Calculus teachers would not accept this last answer, even though it is
correct if log is the natural log and the antiderivative is defined for complex z.
Nonetheless, the lack of context can lead to real (pun intended) problems.
|
On the other hand, Sage can nicely handle this important integral
|
As an aside, here is a fun web site that searches the first 200 million digits of $\pi$ for requested strings of digits, such as your birthday.
http://www.angio.net/pi/bigpi.cgi
It provides a great take-home activity for elementary talk about the history of computing $\pi$.
Here's a slightly more complicated formula with trigonometric functions with parameters.
|
Differentiate using the product rule, the chain rule, and the derivatives of sin and cos.
Note the variety of ways to tell Sage to differentiate.
|
Integrate using integration by parts.
|
The expanded form is much closer to the typical answer done by hand.
You can substitute values for all or just some parameters.
|
Of course, these expressions can be plotted when all the parameters are specified.
![]() |
Sage knows about the error function.
![]() |
|
Sage can generate surface plots.
|
Sage can generate parametric plots.
|
|
Consider the Initial Value Problem
$ \frac{dx(t)}{dt}= 1 - x(t)$ with $x(0) = 4$
|
|
|
|
Solve the Rumor Model - a first order nonlinear ODE.
|
Solve a second order linear ODE symbolically.
|
|
|
It provides two different packages - the desolve library and the ode_solver class.
|
|
|
|
Here are some common manipulations for working with ODE's numerically.
|
Plot the slope field.
![]() |
Compute several solutions and display them on the slope field.
|
![]() |
|
Plot a vector field of the phase plane portrait
for a simple predator prey model
![]() |
Compute several solutions and display them on the vector field
![]() |
Calculate one solution set and display it on a standard time plot.
![]() |
|