Subject: using plot2d with numerical integration function
From: Detlef Schmicker
Date: Mon, 28 May 2007 14:52:45 +0200
Hello,
I probably have a very simple question, but I could not find hints in
the mailing list archive.
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.
How can I avoid this.
Thanks a lot
Detlef
() ff:(sin(x)^2-1/2)*abs(x-y)*exp(-(x-y)^2/5);
() plot2d(quad_qag(ff,x,-100,100,6),[y,-5,5]);
Maxima encountered a Lisp error:
Error in FUNCALL [or a callee]: ((MTIMES SIMP) -0.5
((MEXPT SIMP) 2.7182818284590451
((MTIMES SIMP) ((RAT SIMP) -1 5)
((MEXPT SIMP) $Y 2)))
((MABS SIMP) $Y)) is not of type (OR
RATIONAL
LISP:FLOAT).
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.