[Scilab-users] solve complex ode

Rodrigo Thomas rodrigoathomas at gmail.com
Mon Nov 26 20:33:13 CET 2012


Hello,

I'm having a problem to solve complex ordinary differential equations like
(a simplified one):

dx/dt = i*x.

I tried to use:

-->function xdot=f(x,t)
-->xdot=%i*x
-->endfunction
-->x0=[1;0];
-->t0=0;
-->t=linspace(0,10,100);
-->y=ode(x0,t0,t,f);
-->plot(t,y)

but Scilab give the plot of a constant line in x=1 and a exponential term
(real expoent). How can I solve it?

hug,
Thomas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20121126/7bf84841/attachment.htm>


More information about the users mailing list