help-octave
[Top][All Lists]
Advanced

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

Re: Plot the function error


From: Abdul Rahman Riza
Subject: Re: Plot the function error
Date: Sat, 27 Mar 2010 05:56:33 +0800

Thank you Stefan,

That exactly what I wanted.

I am wondering if octave able to plot 2 function f(x) and g(x) simultaneously where 0 < x < 26

You already solved for f(x) = 1/((206/x)+5.2+1.7*x))

Then how to put it together if g(x) = (80/x)+42+(0.5)*x

I need to draw in gnuplot the maxima and minima from f(x) and g(x) where 0 < x < 26

thats mean df(x)/dx=0 and dg(x)/dx=0

thx in advance,
Riza


On Fri, 2010-03-26 at 22:23 +0100, Stefan Neumann wrote:


2010/3/26 Abdul Rahman Riza <address@hidden>
Actually I want to plot the function 1:((206:x)+5.2+1.7*x)) from x=0 until x=26





Hi Riza,

perhaps you meant   "1/((206/x)+5.2+1.7*x)) from x=0 until x=26"  ?


If that is the case, then try like this:

octave:1> x=0:.1:26;
octave:2> plot(x,1./((206./x)+1.7*x+5.2));


Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]