New package for drawing direction fields with gnuplot
Subject: New package for drawing direction fields with gnuplot
From: Mark H Weaver
Date: Fri, 19 Nov 2010 15:11:14 -0500
Adam Majewski <adammaj1 at o2.pl> writes:
> soln_at draw field lines, so how can I draw equipotential lines ?
With the attached patch to drawdf.mac, does the following command do
what you want?
drawdf(x*x+y*y, [x,-2,2], [y,-2,2],
field_color=gray, proportional_axes='xy, aspect_ratio=1,
color=red, solns_at(makelist([k/2,-k/2],k,-3,3)),
color=green, equipots_at(makelist([k/2,k/2],k,-3,3)))$
Note that equipots_at uses the same numerical integrator as solns_at, so
you may sometimes have to mess around with options such as duration and
tstep to get good results.
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drawdf-equipot.diff
Type: text/x-diff
Size: 1317 bytes
Desc: Patch to drawdf.mac to add support for equipotential lines
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20101119/5f9d5979/attachment.diff>