summaryrefslogtreecommitdiff
path: root/564/CH5/EX5.4/5_4.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /564/CH5/EX5.4/5_4.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 '564/CH5/EX5.4/5_4.sce')
-rwxr-xr-x564/CH5/EX5.4/5_4.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/564/CH5/EX5.4/5_4.sce b/564/CH5/EX5.4/5_4.sce
new file mode 100755
index 000000000..6121bb9c3
--- /dev/null
+++ b/564/CH5/EX5.4/5_4.sce
@@ -0,0 +1,15 @@
+pathname=get_absolute_file_path('5_4.sce')
+filename=pathname+filesep()+'5_4data.sci'
+exec(filename)
+clear
+AC=(AB^2 +BC^2)^0.5;
+delBC=BC*delT*alpha;
+F1=[AB/BC;1;AB/BC;1;-AC/BC;-AC/BC];
+L=[AB;BC;AB;BC;AC;AC];
+for i=1:6
+ X(i)=L(i)*F1(i)*F1(i);
+end
+R=(-delBC*A*E)/sum(X);
+F=R*F1;
+disp("Force (AB,BC,CD,DA,AC,DB):");
+printf("\n %f N",F); \ No newline at end of file