summaryrefslogtreecommitdiff
path: root/3772/CH3/EX3.8/Ex3_8.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3772/CH3/EX3.8/Ex3_8.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 '3772/CH3/EX3.8/Ex3_8.sce')
-rw-r--r--3772/CH3/EX3.8/Ex3_8.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/3772/CH3/EX3.8/Ex3_8.sce b/3772/CH3/EX3.8/Ex3_8.sce
new file mode 100644
index 000000000..8eb382901
--- /dev/null
+++ b/3772/CH3/EX3.8/Ex3_8.sce
@@ -0,0 +1,29 @@
+// Problem 3.8,Page no.58
+
+clc;clear;
+close;
+
+//R_a+R_c=25 //KN //R_a,R_b are reactions at supports A and C respectively
+L_ab=2 //m
+L_bc=3 //m
+
+//Calculation
+
+//From F.B.D,we get
+//dell_L_AB=(R_a*L_AB)*(A*E)**-1 //Elongation of portion AB
+//dell_L_BC=(R_c*L_BC)*(A*E)**-1 //Compression of portion BC
+
+//After simplifying above equations we get,
+//R_a=(1.5)*R_c //KN
+//R_a+R_c=25 //KN
+//Solving the above simultaneous equations using matrix method
+A=[1 -1.5;1 1] //Here the coefficients of the first equations of unknowns are setup
+B=[0;25] //Here the RHS of both equations are setup
+C=A**-1*B
+
+//print C[0] //Prints the first element in the vector C
+//print C[1] //Prints the second element in the vector C
+
+//Result
+printf("The reaction at support A is %.2f kN",C(1))
+printf("\n The reaction at support C is %.2f kN",C(2))