summaryrefslogtreecommitdiff
path: root/647/CH1/EX1.10
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /647/CH1/EX1.10
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '647/CH1/EX1.10')
-rwxr-xr-x647/CH1/EX1.10/Example1_10.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/647/CH1/EX1.10/Example1_10.sce b/647/CH1/EX1.10/Example1_10.sce
new file mode 100755
index 000000000..3519adc6f
--- /dev/null
+++ b/647/CH1/EX1.10/Example1_10.sce
@@ -0,0 +1,23 @@
+clear;
+clc;
+
+// Example: 1.10
+// Page: 12
+
+// Solution
+
+printf("Example: 1.10 - Page: 12\n\n");
+
+//*****Data*****//
+m = 1200;// [kg]
+v1 = 10;// [km/h]
+v2 = 100;// [km/h]
+time = 1;// [min]
+//***************//
+
+v1 = 10*1000/3600;// [m/s]
+v2 = 100*1000/3600;// [m/s]
+W = (1/2)*m*(v2^2 - v1^2);// [J]
+time = time*60;// [s]
+P = W/time;// [W]
+printf("Power required is %.2f kW\n",P/1000); \ No newline at end of file