help-octave
[Top][All Lists]
Advanced

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

Re: to solve nonlinear equation


From: Shiro TAKEDA
Subject: Re: to solve nonlinear equation
Date: 18 Apr 2000 03:08:45 +0900
User-agent: Semi-gnus/6.10.12 SEMI/1.12.1 ([JR] Nonoichi) FLIM/1.12.7 (YĆ«zaki) Emacs/20.5 (i386-debian-linux-gnu) MULE/4.0 (HANANOEN)

etienne grossmann <address@hidden> writes:

>   Hello,
> 
>   using your example, you could do :
> 
> function y = test (x)
>   global t ;
>   y(1) = x(2) - exp (-x(1));
>   y(2) = x(1) - x(2)^3 - t;
> end
> 
> global t
> t = 1
> x=zeros(2,10); 
> info=zeros(1,10); 
> 
> for i=1:10,
>   t=1+0.1*i;
>   [x(:,i),info(i)]=fsolve("test",[0;0]);
> end

Thank you for your help!  I can do what I want.

-- 

Shiro TAKEDA



-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.che.wisc.edu/octave/octave.html
How to fund new projects:  http://www.che.wisc.edu/octave/funding.html
Subscription information:  http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------



reply via email to

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