diff options
Diffstat (limited to '3137/CH12/EX12.18')
-rwxr-xr-x | 3137/CH12/EX12.18/Ex12_18.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3137/CH12/EX12.18/Ex12_18.sce b/3137/CH12/EX12.18/Ex12_18.sce new file mode 100755 index 000000000..f9371ddb2 --- /dev/null +++ b/3137/CH12/EX12.18/Ex12_18.sce @@ -0,0 +1,18 @@ +//Initilization of variables
+theta=%pi/3 //rad
+//Calculations
+t=sqrt(theta) //s
+thetadot=2*t
+thetadoubledot=2
+r=2*t^2
+rdot=4*t
+rdoubledot=4
+ax=rdoubledot-(r*thetadoubledot*thetadoubledot) //ft/s^2
+ay=2*rdot*thetadot+r*thetadoubledot //ft/s^2
+a=sqrt(ax^2+ay^2)
+thetax=30+atand(ax/ay) //degrees
+//Solving by cartesian co-ordinate system yields same solution
+//Result
+clc
+printf('The acceleration is %f ft/s^2 and thetax=%f degrees',a,thetax)
+//Decimal accuracy causes discrepancy in answers
|