| Download
Project: Summer A ODEs
Path: Vector_Fields.ipynb
Views: 65Visibility: Unlisted (only visible to those who know the link)
Image: ubuntu2004Kernel: SageMath 9.2
Plotting vector fields
Similar to the previous notebook, which plotted slope fields, this notebook contains an interactive element which plots a vector field. Into the box input a vector function of the variables and of the form
In [1]:
Plotting vector field with flow lines
If you see above, checking the "steamline" button produced a "streamline plot" with solutions curves. We can select a few initial conditions and plot them with the vector field below. Now instead of specifying only as in the Slope_Fields
notebook, we can specify a starting point. (Feel free to modify the other page to work in this more general situation!)
In [1]:
3D Vector Fields
We can also fairly straightforwardly generalize this to the next dimension we can visualize and plot 3d vector fields. Now
has three components.
In [3]:
In [7]:
In [0]: