Hi.
Using Maxima 5.9.11, plot2d commands such as
plot2d([discrete, x, y]) or plot2d([discrete, xy]) seem to work fine, so
long as the x values are integers. If x is not integral an error
occurs. I.e.
(%i32) l:makelist(i,i,0,5);
(%o32) [0,1,2,3,4,5]
(%i33) l2:makelist(i/2,i,0,5);
(%o33) [0,1/2,1,3/2,2,5/2]
(%i34) plot2d([discrete, makelist([x, x^2],x,l)]);
(%o34)
(%i35) plot2d([discrete, makelist([x, x^2],x,l2)]);
Maxima encountered a Lisp error:
Error in MACSYMA-TOP-LEVEL [or a callee]:
((RAT SIMP) 1 2) is not of type (OR RATIONAL LISP:FLOAT).
Automatically continuing.
To reenable the Lisp debugger set *debugger-hook* to nil.
BTW, the scatter1/2 tip listed here:
http://maxima.sourceforge.net/wiki/index.php/Maxima%20helpful%20hints
does not seem work with the ['foo, 0, 1] bit included. Removing that makes
it work. Perhaps I should also edit the wiki to reflect this?
Regards
Neilen
--
you know its kind of tragic
we live in the new world
but we've lost the magic
-- Battery 9 (www.battery9.co.za)