summaryrefslogtreecommitdiff
path: root/3131/CH18/EX18.2
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3131/CH18/EX18.2
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3131/CH18/EX18.2')
-rw-r--r--3131/CH18/EX18.2/18_2.sce27
1 files changed, 27 insertions, 0 deletions
diff --git a/3131/CH18/EX18.2/18_2.sce b/3131/CH18/EX18.2/18_2.sce
new file mode 100644
index 000000000..9709f5416
--- /dev/null
+++ b/3131/CH18/EX18.2/18_2.sce
@@ -0,0 +1,27 @@
+clear all; clc;
+disp("Ex 18_2")
+m=10//kg
+w=m*9.81//converting mass to weight
+x=1.5//displacement
+Uw=w*x
+printf('\n\n Uw = %0.1f J',Uw)
+//Couple moment M
+M=50//moment in Nm
+theta=%pi/2
+Um=M*theta
+printf('\n\n Um = %0.1f J',Um)
+//at theta=0, spring is stretched by 0.25m and when theta=90, spring is stretched by 2.25m
+k=30//spring constant in N/m
+a=0.25//at theta=0, spring deflection in m
+b=2.25//at theta=90, spring deflection in m
+Us=-((0.5*k*b^2)-(0.5*k*a^2))
+printf('\n\n Us = %0.1f J',Us)
+//Force P
+P=80//N
+y=%pi*3/2//displacement in m
+Up=P*y
+printf('\n\n Up = %0.1f J\n\',Up)
+//Total work of all the forces,
+U=Uw+Um+Us+Up
+disp("Total work of all the forces,")
+printf('\n U = %0.0f J',U)