1
$\begingroup$

I have a certain ODE problem that needs to be solved using Scilab.

dx(1)/dt=k*x(1)-x(5)
dx(2)/dt=k2*x(2)-k1*x(1)
dx(3)/dt=k1*[x(2)-x(3)]
dx(4)/dt=k1*[x(3)-x(4)]

x(5) takes value 0 till time t0

Can anyone help me with coding this problem? Any suggestions would be of immense help.

$\endgroup$
  • $\begingroup$ welcome to SciComp. Please first check the help of Scilab itself (help.scilab.org/docs/5.4.1/en_US/ode.html). And you should at least specify your initial conditions. $\endgroup$ – GertVdE Jun 27 '13 at 9:03
  • $\begingroup$ no information about the rate of change of x(5)? what does happen to x(5) after time > t0? $\endgroup$ – Subodh Jun 27 '13 at 9:11
  • $\begingroup$ no but x(5) with respect to time t would be provided. $\endgroup$ – user2458552 Jun 27 '13 at 10:07
  • $\begingroup$ yes the initial conditions would be provided ofcourse. $\endgroup$ – user2458552 Jun 27 '13 at 10:07
2
$\begingroup$

As suggested by GertVdE, you can use ODE function in scilab, or refer the following document,

Ordinary Differential Equations with SCILAB, written by Gilberto E. Urroz discusses various ODE's, their types and their solution with SCILAB,

on page 45, you might an answer to your question.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.