From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2339/CH1/EX1.1.8/Ex1_8.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 2339/CH1/EX1.1.8/Ex1_8.sce (limited to '2339/CH1/EX1.1.8') 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); -- cgit