[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lsode+sin problems
From: |
Staszek Pitucha |
Subject: |
lsode+sin problems |
Date: |
Thu, 24 Nov 2005 04:28:42 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 |
Hello.
I'm trying to solve a simple differential eq.:
function xdot = f(x); xdot=sin(pi/180*x); endfunction;
t=linspace(0,360,2000);
s=lsode("f", -1, t);
and I don't exactly what I want. plot(t,s) isn't cos()... Am I missing
something?
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- lsode+sin problems,
Staszek Pitucha <=