misterpickle
- 9
- 0
Homework Statement
I want to plot the following function into Maple14. \vec{v}=frac{1}{\vec{r^{2}}} \hat{r}
**In case the latex is screwed this says v=r^(-2) *r-hat
The Attempt at a Solution
My code for Maple is the following, but it doesn't seem to work.restart; with(LinearAlgebra); with(VectorCalculus); with(plots);
SetCoordinates('cartesian'[x, y, z]);
vec := Vectorfield(<1/x^2, 1/y^2, 1/z^2>)
fieldplot3d(vec, x = -1 .. 1, y = -1 .. 1, z = -1 .. 1, axes = normal)
For which I get the following error (Maple website has no information on this error);Error, (in plots/fieldplot3d) invalid 1st argument (the function) Vectorfield(Vector(2, {(1) = 1/x^2, (2) = 1/y^2}, attributes = [coords = cartesian[x, y]]))
Basically I need someone to explain why Maple will not plot this vectorfield.