To solve the differential equation dy/dx=-x with x(0)=0. y(0)=-2 from x=0 to 10 with interval =1 using scilab.
AIM OF THE EXPERIMENT:
AIM OF THE EXPERIMENT:
To solve the differential equation dy/dx=-x with x(0)=0. y(0)=-2 from x=0 to 10 with interval =1.
REQUISITES:
A PC/laptop.
Scilab 6.0.0 must be installed.
THEORY:
PROCEDURE:
1. Switch on your PC/laptop.
1. Switch on your PC/laptop.
2. Go to all programs & open scilab 6.0.0.
3. Go to Scinotes.
4. Write the coding/program.
5. Save the file & use extension name .sci
6. Then execute & go to the scilab console window for output.
CODING:
clcfunction dy=f(x, y)
dy=-x;
endfunction
x0=0;
y0=-2;
x=0:1:10;
y=ode(x0,y0,x,f);
plot(x,y);
xlabel('x');
ylabel('y');
xtitle('x v/s f(x,y)');
OUTPUT:
Model syllabus (+3): Downoad
List of all practicals:DownloadBooks: Download
- How to Prepare for IIT-JAM ⇠ ⇠ Click Here
- How to prepare for JEST ⇠ ⇠ Click Here
email : smartbiswa1992@gmail.com"Try not to become a man of success, but rather try to become a man of value." Albert EinsteinContact for content writing:
Post a Comment