Bill Allombert on Thu, 22 Dec 2011 16:30:13 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Plotting of function of two variables


On Tue, Dec 20, 2011 at 07:18:40AM +0100, Sumaia Saad Eddin wrote:
> 
> Goog morning :
> 
> how can i draw graphs of function f(x,y) of two variable in GP?

What kind of graphs are you interested in ? PARI does not have 3D graphic,
so it cannot draw z=f(x,y).

> and can i draw this function with x is fixed and then with y fixed (on
> the same Figure)

If x goes from a to b and y from c to d, you can do
ploth(t=0,1,[f(a*(1-t)+b*t,y),f(x,c*(1-t)+d*t])])

Cheers,
Bill.