[Maxima] buildq command method

Stavros Macrakis macrakis at alum.mit.edu
Sat May 3 07:06:35 CDT 2008


Yes, none of this should be necessary.
This is a bug (or design error) in draw2d.  Functions should almost
never autoquote their arguments for precisely this sort of reason.

     -s



On 5/3/08, Richard Hennessy <rvh2007 at comcast.net> wrote:
> Sorry,
>
> I gave a bad example since plot2d accepts functions inside of a list so you
> can use makelist.  What I need to do is plot functions that cannot be solved
> for y in terms of x so I have to use implicit's and draw2d which does not
> work with lists.
>
> (%i25) load(draw);
>     -> C:/PROGRA~1/MAXIMA~1.0/share/maxima/5.15.0/share/draw/draw.lisp
>
> (%i26) str1:"draw2d(implicit(x^1-y,x,0,1,y,0,1)";
>     -> draw2d(implicit(x^1-y,x,0,1,y,0,1)
>
> (%i27) for i : 2 thru 20 do
> str1:concat(str1,",implicit(x^",i,"-y,x,0,1,y,0,1)");
>     -> done
>
> (%i28) str1:concat(str1, ")")$
>
> (%i29) eval_string(str1);
>
> This code works but I want to use buildq or some other way and not generate
> the command as a string and then use eval_string.  Someone said it can be
> done and the above way was bad coding practice.
>
> Thanks,
>
> Rich
>
>
>
>
>
>
>
>
>  ------------Original Message------------
> From: "Richard Hennessy"<rvh2007 at comcast.net>
> To: "Maxima List" <maxima at math.utexas.edu>
> Date: Sat, May-3-2008 4:24 AM
> Subject: [Maxima] buildq command method
>
> I have a plot using the following code.
>
> str1:"plot2d([x^1";
> str1:concat(str1, "],[x,0,1],[plot_format,gnuplot],[legend,false])");
> eval_string(str1);
>
> This works but I think I remember someone posting that this can be done
> better using the buildq command but I have had no success that way.  Could
> someone show me how to generate this plot with buildq?
>
> Thanks,
>
> Rich
>
>
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>

-- 
Sent from Gmail for mobile | mobile.google.com


More information about the Maxima mailing list