> 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.
Hello,
You can try package 'draw' (it's still in development). Follow this
link:
http://www.telefonica.net/web2/biomates/maxima/gpdraw/
Download file 'draw.lisp' and write
(%i5) load("....path_to/draw.lisp")$
(%i6) draw_pipes: false$ /* only in linux, not necessary in windows */
(%i7) l2:makelist(i/2,i,0,5)$
(%i8) draw2d(points( makelist([x, x^2],x,l2)));
(%o8) [gr2d(points)]
There are some options you can use to fit your needs. Sorry, but the
documentation is not yet written.
hth
--
Mario Rodriguez Riotorto
www.biomates.net