summaryrefslogtreecommitdiff
path: root/2732/CH5/EX5.12/Ex5_12.sce
diff options
context:
space:
mode:
Diffstat (limited to '2732/CH5/EX5.12/Ex5_12.sce')
-rwxr-xr-x2732/CH5/EX5.12/Ex5_12.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2732/CH5/EX5.12/Ex5_12.sce b/2732/CH5/EX5.12/Ex5_12.sce
new file mode 100755
index 000000000..d18002735
--- /dev/null
+++ b/2732/CH5/EX5.12/Ex5_12.sce
@@ -0,0 +1,19 @@
+clc
+// initialization of variables
+clear
+L=5 //cm
+D=1.8 //cm
+l=2.5 //cm
+d=1.5 //cm
+F=1 //tonne
+E=2.1*10^6 //kg/cm^2
+// calculations
+s1=F*1000*4/(D^2*%pi)
+s2=F*1000*4/(d^2*%pi)
+U1=1/2*s1^2/E
+U1=U1*L*D^2*%pi/4
+U2=1/2*s2^2/E
+U2=U2*l*d^2*%pi/4
+U=U1+U2
+// results
+printf('The energy stored in the bolt is %.3f kg-cm',U)