A two dimensional vector field associates a two-dimensional vector with each point in the plane (or a subset thereof). We may use the draw package to plot vector fields with Maxima.
Let us plot the 2D vector field
.
The important parts of the following code are the first line where we specify that plotting should be done from -6 to 6 and in the vf2d line where we specify function values [cos(y),x] in the second list. The division by 6 in that same line is just to make the arrows smaller so that they may more easily be seen. The rest of the code is boilerplate and may be copied/pasted verbatim.
See Figure BLANK.