help-octave
[
Top
][
All Lists
]
Advanced
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
problem solving ODE
From
:
Denise Estrada
Subject
:
problem solving ODE
Date
:
Wed, 16 Nov 2011 21:26:11 -0600
Hi, I'm new to Octave and I've been trying to learn by doing some examples I found in the Octave-help manual.
The problem is that I get the same error all the time:
function xdot = f (x, t)
xdot = zeros (3,1);
xdot(1) = 77.27 * (x(2) - x(1)*x(2) + x(1) \
- 8.375e-06*x(1)^2);
xdot(2) = (x(3) - x(1)*x(2) - x(2)) / 77.27;
xdot(3) = 0.161*(x(1) - x(3));
endfunction
t = linspace (0, 500, 1000);
y = lsode ("f", x0, t);
warning: function name `f' does not agree with function file name `/home/den
ise/Simoctave/otroejemplo2.m'
parse error near line 11 of file /home/denise/Simoctave/otroejemplo2.m
syntax error
>>> t = linspace (0, 500, 1000);
^
Thank's in advance
reply via email to
[Prev in Thread]
Current Thread
[
Next in Thread
]
problem solving ODE
,
Denise Estrada
<=
Re: problem solving ODE
,
Doug Stewart
,
2011/11/16
Re: problem solving ODE
,
Juan Pablo Carbajal
,
2011/11/16
Prev by Date:
post to list
Next by Date:
Re: problem solving ODE
Previous by thread:
post to list
Next by thread:
Re: problem solving ODE
Index(es):
Date
Thread