[Maxima] using plot2d with numerical integration function
macrakis at alum.mit.edu
Mon May 28 09:23:38 CDT 2007
On 5/28/07, Detlef Schmicker <d.schmicker at physik.de> wrote:
> I try to plot2d (or wxplot2d) a function containing quad_qad
> integration. This numerical function only works, if the variable on the
> x achses of my plot is defined. Now plot2d seems to call the function
> without defined variable once.
Try quoting the argument. The argument is evaluate to allow things like
plot2d( expr , [x,0,1] )$
> () plot2d(quad_qag(ff,x,-100,100,6),[y,-5,5]);
plot2d( '(quad_qag(ff,x,-100,100,6) ) ,[y,-5,5]);
Quad_qag should probably a) give its own error message, not a random
internal error and b) return itself when its arguments are not numeric (with
a warning message, perhaps).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Maxima