diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /623/CH1/EX1.1.9/U1_C1_9.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '623/CH1/EX1.1.9/U1_C1_9.sce')
-rwxr-xr-x | 623/CH1/EX1.1.9/U1_C1_9.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/623/CH1/EX1.1.9/U1_C1_9.sce b/623/CH1/EX1.1.9/U1_C1_9.sce new file mode 100755 index 000000000..d500b082f --- /dev/null +++ b/623/CH1/EX1.1.9/U1_C1_9.sce @@ -0,0 +1,12 @@ +//variable initialization
+l_dash=1 //length of the rod in frame s' (meter)
+Theta_dash_degree=45 //angle of the rod with x-axis in frame s' (degree)
+Beta=1/2 //value of Beta
+
+//calculation of the length of the rod and its inclination with x-axis in the frame s
+Theta_dash_radian=Theta_dash_degree*(%pi/180); //conversion of angle Theta in radian from degree (radian)
+l=((l_dash^2)*((sin(Theta_dash_radian))^2+((1-(Beta^2))*((cos(Theta_dash_radian))^2))))^(1/2); //length of the rod in frame s (meter)
+tan_theta=tan(Theta_dash_radian)/((1-Beta^2)^(1/2)); //tan of angle of rod with x-axis in frame s
+theta=atand(tan_theta); //angle of rod with x-axis in frame s (degree)
+
+printf("\n\t The length of the rod = %f meter\n\t Inclination of rod with x-axis = %f degree",l,theta);
|