summaryrefslogtreecommitdiff
path: root/1325/CH4/EX4.1/4_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1325/CH4/EX4.1/4_1.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 '1325/CH4/EX4.1/4_1.sce')
-rw-r--r--1325/CH4/EX4.1/4_1.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/1325/CH4/EX4.1/4_1.sce b/1325/CH4/EX4.1/4_1.sce
new file mode 100644
index 000000000..2d3094bdb
--- /dev/null
+++ b/1325/CH4/EX4.1/4_1.sce
@@ -0,0 +1,23 @@
+//To find the extreme angular velocities of the driven shaft and its maximum acceleration
+clc
+//given
+rpm=1000
+angle=20//degree
+ang=(angle*%pi)/180
+printf("\n")
+w=2*%pi*rpm/60
+printf("The angular velocity of the driving shaft is %.1f rad/s \n",w)
+//maximum value of w1=w/cos(angle) and minimum value w2=w*cos(angle)
+w1=w/cos(ang)
+w2=w*cos(ang)
+printf("Extreme angular velocities :-\n")
+printf("maximum value of angular velocity w1=%.1f rad/s \nminimum value of angular velocity w2=%.1f rad/s\n",w1,w2)
+//using equation 4.11, cos(2x)=(2*sin(angle)^2)/(2-sin(angle)^2)
+x=acos((2*sin(ang)^2)/(2-sin(ang)^2))*180/(%pi)
+y=360-x//for cosine inverse, angle and 360-angle are same and must be considered
+x1=x/2
+y1=y/2
+printf("The acceleration of driven shaft is a maximum when theta =%.2f or %.2f degrees\n",x1,y1)
+amax=(w^2*cos(ang)*(sin(ang)^2)*sin(x*%pi/180))/((1-((cos(x1*%pi/180)^2)*(sin(ang)^2)))^2)//maximum angular acceleration, numerically
+printf("Maximum angular acceleration is %.f rad/s^2\n",amax)
+