summaryrefslogtreecommitdiff
path: root/3705/CH3/EX3.3/Ex3_3.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3705/CH3/EX3.3/Ex3_3.sce
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 '3705/CH3/EX3.3/Ex3_3.sce')
-rw-r--r--3705/CH3/EX3.3/Ex3_3.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/3705/CH3/EX3.3/Ex3_3.sce b/3705/CH3/EX3.3/Ex3_3.sce
new file mode 100644
index 000000000..e6cd078f9
--- /dev/null
+++ b/3705/CH3/EX3.3/Ex3_3.sce
@@ -0,0 +1,26 @@
+
+clear//
+
+//Variable Declaration
+d=2 //Diameter in ft
+G=12*10**6 //Bulk Modulus in psi
+//Torque in lb.ft
+T1=500 //Torque 1
+T2=900 //Torque 2
+T3=1000 //Torque 3
+//Length in ft
+L1=4
+L2=3
+L3=5
+
+//Calculations
+//Applying the sum of torques we get
+Tab=T1 //Torque at section AB in lb.ft
+Tbc=-T2+T1 //Torque at section BC in lb.ft
+Tcd=T3-T2+T1 //Torque at Section CD in lb.ft
+
+//Summing the angle of twists
+theta_r=(((Tab*12*L3*12)+(Tbc*12*L2*12)+(Tcd*12*L1*12))*32)/(%pi*2**4*G)
+theta=(theta_r*180)/%pi //Angle in degrees
+
+printf("\n The angle of twist is %0.3f degrees",theta)