[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuplot-info
Subject:    Re: plotting polynomial curves
From:       matuda () film ! s ! dendai ! ac ! jp
Date:       2002-11-20 10:24:29
[Download RAW message or body]

Hi!

How about following?

  f(k,x)=a*k + b*x + c*x**2 + d*x**3 + k*x
  a=1;b=0.5;c=0.2;d=0.1;
  plot f(1,x),f(2,x),f(3,x)

>to anyone who can assist
>
>i have an equation of the type:
>
>z = ax + by + cy^2 + dy^3 + xy
>
>what i would like to do is plot the function for various values of x, ie, 
>
>if x=1
>
>then i would plot
>
>z = a + by + cy^2 + dy^3 + y (over a range for y)
>
>and if x = 2
>
>then i would plot
>
>z = 2a + by + cy^2 + dy^3 + 2y (over the same range for y)
>
>essentially i could do this long hand ie workout each equation and type in
>
>plot equation1,equation2....etc
>
>but is there a more elegant way to do it ie
>...

Good luck!

Namio MATUDA <matuda@film.s.dendai.ac.jp>
 - -
[[[[ to unsubscribe from info-gnuplot, send an email with body
unsubscribe info-gnuplot
to majordomo@dartmouth.edu
]]]]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic