summaryrefslogtreecommitdiff
path: root/2870/CH2/EX2.9/Ex2_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2870/CH2/EX2.9/Ex2_9.sce')
-rwxr-xr-x2870/CH2/EX2.9/Ex2_9.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2870/CH2/EX2.9/Ex2_9.sce b/2870/CH2/EX2.9/Ex2_9.sce
new file mode 100755
index 000000000..b92a6e925
--- /dev/null
+++ b/2870/CH2/EX2.9/Ex2_9.sce
@@ -0,0 +1,13 @@
+clc;clear;
+//Example 2.9
+
+//given values
+m=900;
+v1=0;
+v2=80/3.6;//converting km/h into m/s
+t=20;
+
+//calculation
+Wa=m*(v2^2-v1^2)/2/1000;
+Wavg=Wa/t;
+disp(Wavg,'the average power in kW')