summaryrefslogtreecommitdiff
path: root/3363/CH1/EX1.6/Ex1_6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3363/CH1/EX1.6/Ex1_6.sce
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 '3363/CH1/EX1.6/Ex1_6.sce')
-rwxr-xr-x3363/CH1/EX1.6/Ex1_6.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3363/CH1/EX1.6/Ex1_6.sce b/3363/CH1/EX1.6/Ex1_6.sce
new file mode 100755
index 000000000..9ed0a1446
--- /dev/null
+++ b/3363/CH1/EX1.6/Ex1_6.sce
@@ -0,0 +1,13 @@
+//Example 1.6, apge 39
+clc
+g=9.8//in m/s^2, constant
+l=.1//in m
+m=0.01//in kg
+h=6.63*10^-34//Joule-sec
+theta=0.1//in radians
+v=(1/(2*%pi)*sqrt(g/l))
+printf("\n Oscillation frequency of pendulam %f per sec.",v)
+E=m*g*l*(1-cos(theta))
+printf("\n Energy of pendulum at its maximum potential %e Joule.",E)
+Delta_e=h*v
+printf("\n Delta E %e Joule",Delta_e) \ No newline at end of file