diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2339/CH1/EX1.1.8/Ex1_8.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2339/CH1/EX1.1.8/Ex1_8.sce')
-rwxr-xr-x | 2339/CH1/EX1.1.8/Ex1_8.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2339/CH1/EX1.1.8/Ex1_8.sce b/2339/CH1/EX1.1.8/Ex1_8.sce new file mode 100755 index 000000000..3ae88ac7f --- /dev/null +++ b/2339/CH1/EX1.1.8/Ex1_8.sce @@ -0,0 +1,16 @@ +clc +clear + +//Declaring Values +m=600; //Mass in kg +z=50000; //Distance in meters +V=2500000; //Velocity in m/hr +g=7.9; //Gravitational Field in m/s^2 +Vel=V/3600; +KE=(0.5*m*Vel*Vel)/1000000; //Kinetic Energy in MJ +PE=(m*g*z)/1000000; //Potential Energy in MJ + +//Displaying Results +printf('The Kinetic Energy is %3.2f MJ',KE); +printf('\n') +printf('The Potential Energy is %3.2f MJ',PE); |