On Wed, 2007-04-04 at 11:05 -0300, Zoho Vignochi wrote:
> > Try:
> > plot2d([parametric,x, y,[s,0,1]],[gnuplot_preamble,"set dummy s"]);
that will not work because plot2d will only pass numbers to gnuplot.
It will not pass the symbolic expressions you entered.
> I changed the code to create lists of x and y then graph the output as
> a
> set of discrete points. A suboptimal technique I am sure but I could
> not
> get plot2d to evaluate my functions.
As Robert Dodier told you, you needed to do 2 simple things to make
the parametric plot2d work: replace s by t, and give expressions to
plot2d, rather than lists. Look at this example:
(%i1) x: [cos(s)]$
(%i2) y: [sin(s)]$
(%i5) plot2d([parametric,subst(t,s,x[1]),subst(t,s,y[1]),[t,0,2*%pi]])$
You might want to use option nticks to improve the result.
Regards,
Jaime