adds

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:
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.
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:                                                                     
clc
function 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:Download
Books:  Download

Physics Notes CLICK    
IIT-JAM             JEST                GATE               NET 
  • How to Prepare for IIT-JAM  ⇠ ⇠ Click Here
Get everything about your B.Sc (+3) Physics Practical⇠ ⇠Click
"Try not to become a man of success, but rather try to become a man of value."  Albert Einstein
Contact for content writing:
email : smartbiswa1992@gmail.com

Post a Comment

Previous Post Next Post