Plotting



Greetings,

I have four functions:

h(t), i(t), j(t), k(t)

Then I have a cubic equation incorporating the four functions

l(t):=(Z^3)*h(t)+(Z^2)*i(t)+(Z)*j(t)+k(t)

I solved it using

P:realroots(l(t))

and selected the root using

z:rhs(%[1]);

Now I need to plot with "t" in the x axis ans "P" in the y axis.

I used

wxplot2d([P(t)],[t,0,100],[xlabel, "t)"],[style,[lines,3,5]],
[ylabel, "P"],[gnuplot_preamble, "set grid; set key  top left;
set title P vs. t;  "])$

and it would allow me to plot.

Any help will be greatly appreciated.

Thanks
vishraj