diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1205/CH2/EX2.12.2 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '1205/CH2/EX2.12.2')
-rw-r--r-- | 1205/CH2/EX2.12.2/E2_12_2.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/1205/CH2/EX2.12.2/E2_12_2.sce b/1205/CH2/EX2.12.2/E2_12_2.sce new file mode 100644 index 000000000..f043f87ef --- /dev/null +++ b/1205/CH2/EX2.12.2/E2_12_2.sce @@ -0,0 +1,21 @@ +clc;
+//F=700N i +1500N j, given forc
+
+Fx=100;//N, Comonent along X axis
+Fy=-150;// N, Component along Y axis
+Fz=300;// N, Component along Z axis
+
+F=sqrt(Fx^2+Fy^2+Fz^2);// N, magnitude of force F
+thetax=acos(Fx/F);// radian , angle with +ve x axis
+thetay=acos(Fy/F);// radian , angle with +ve y axis
+thetaz=acos(Fz/F);// radian , angle with +ve z axis
+
+//Conversion of angles into degree
+thetax=thetax*180/pi;//degree
+thetay=thetay*180/pi;//degree
+thetaz=thetaz*180/pi;//degree
+printf("Magnitude of F is %.2f N\n",F);
+printf("Angle made by F with +ve X axis %.2f degree\n",thetax);
+
+printf("Angle made by F with +ve Y axis %.2f degree\n",thetay);
+printf("Angle made by F with +ve Z axis %.2f degree\n",thetaz);
|