summaryrefslogtreecommitdiff
path: root/896/CH4/EX4.1
diff options
context:
space:
mode:
Diffstat (limited to '896/CH4/EX4.1')
-rwxr-xr-x896/CH4/EX4.1/1.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/896/CH4/EX4.1/1.sce b/896/CH4/EX4.1/1.sce
new file mode 100755
index 000000000..b2174a494
--- /dev/null
+++ b/896/CH4/EX4.1/1.sce
@@ -0,0 +1,10 @@
+clc
+//Example 4.1
+//calculate change in pot. energy per unit mass and total change in pot. energy
+g=9.81;//m/s^2 acc. due to gravity
+dh=23;//m change in height
+dpe=g*dh//m^2/s^2 change in pot energy per unit mass
+printf("change in pot. energy per unit mass is %f m^2/s^2\n",dpe);
+m=10;//kg
+dPE=m*dpe//kgm^2/s^2 or J change in pot. energy
+printf("The total change in potential energy is %f J",dPE); \ No newline at end of file