Can octave call a c function?

i like this post (click again to cancel)
0
i dont like this post (click again to cancel)

I have a notebook to solve a differential equation using gsl's rkf45 algorithm. Now I realize that the equation is too stiff and rkf45 is may not be the right algorithm to use. The function I am trying to solve is written in C syntax. I want to try using octave's lsode to solve the same equation since it has a option of solving "stiff" equation. I don't know the jacobian of the equation so I can't use the stiff options in gsl. The problem is that my function is very complicated it took me a long time to type it out. So my question is - is it possible to solve a differential equation in octave where the rhs is written in C syntax.

asked Aug 18 '11

Shashank gravatar image Shashank flag of United States
1570 5 22 55
This sounds like a question about Octave which is a completely different and separate system from Sage. benjaminfjones (Aug 18 '11)
Sorry about that. I thought since I can call octave from sage notebooks it may not be too off the sage discussion. Shashank (Aug 18 '11)
i like this answer (click again to cancel)
0
i dont like this answer (click again to cancel)

Before going overboard, how about you try the other algorithms that GSL supports? See http://www.sagemath.org/doc/reference/sage/gsl/ode.html

link

posted Aug 18 '11

Volker Braun gravatar image Volker Braun
2238 5 22 52
That is the problem. All the gsl algorithms that solve stiff equations have to be provided with a jacobian. I don't know the jacobian. Its too complicated. lsode on the other hand numerically estimates the jacobian. I don't think any of the gsl algorithms do that. Shashank (Aug 18 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Tags:

Stats:

Asked: Aug 18 '11

Seen: 108 times

Last updated: Aug 18 '11

powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.