Hello,<div><br></div><div>I'm having a problem to solve complex ordinary differential equations like (a simplified one):</div><div><br></div><div>dx/dt = i*x.</div><div><br></div><div>I tried to use: </div><div><br></div>
<div><div>-->function xdot=f(x,t)</div><div>-->xdot=%i*x</div><div>-->endfunction</div><div>-->x0=[1;0];</div><div>-->t0=0;</div><div>-->t=linspace(0,10,100);</div><div>-->y=ode(x0,t0,t,f);</div></div>
<div>-->plot(t,y)</div><div><br></div><div>but Scilab give the plot of a constant line in x=1 and a exponential term (real expoent). How can I solve it?</div><div><br></div><div>hug,</div><div>Thomas.</div><div><br></div>
<div><br></div>