From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 564/CH5/EX5.4/5_4.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 564/CH5/EX5.4/5_4.sce (limited to '564/CH5/EX5.4/5_4.sce') 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 -- cgit