# ODE Solving in Scilab

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.

• 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. – GertVdE Jun 27 '13 at 9:03
• no information about the rate of change of x(5)? what does happen to x(5) after time > t0? – Subodh Jun 27 '13 at 9:11
• no but x(5) with respect to time t would be provided. – user2458552 Jun 27 '13 at 10:07
• yes the initial conditions would be provided ofcourse. – user2458552 Jun 27 '13 at 10:07

## 1 Answer

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.