Biology, asked by meenakshimagar6771, 1 year ago

scilab code for !st order differential equation

Answers

Answered by Anonymous
0
jugnu GNU un my tum ki flu GNU tumi hi un
Answered by namanyadav00795
0

scilab code for 1st order differential equation

Scilab has a in-built function: ode()

It can be used to evaluate an ordinary differential equation or a set of coupled first order differential equations.

Syntax:

y=ode(y0,x0,x,f)

Solve the equation: dy/dx + e⁻ˣy = x²

funcprot(0)

clf;

function dx=f(x, y)

   dx=x^2-exp(-x)*y;

endfunction

y0=0;

x0=0;

x=[0:0.5:10];

sol=ode(y0,x0,x,f);

plot2d(x,sol,5)

xlabel('x');

ylabel('y(x)');

xtitle('y(x) vs. x');

More Question:

In 'scilab', the words 'sci' and 'lab' stand for?

https://brainly.in/question/3070398#

Similar questions