diff options
Diffstat (limited to '896/CH7/EX7.12/12.sce')
-rwxr-xr-x | 896/CH7/EX7.12/12.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/896/CH7/EX7.12/12.sce b/896/CH7/EX7.12/12.sce new file mode 100755 index 000000000..d06351d0a --- /dev/null +++ b/896/CH7/EX7.12/12.sce @@ -0,0 +1,10 @@ +clc
+//Example 7.12
+//Calculate the final velocity of a rocket after launch
+Isp=430//lbf.s/lbm specific impulse
+v_initial=0//m/s
+//1 lbf.s^2 = 32.2 lbm.ft
+Vrel_out=-Isp*32.2//ft/s
+ratio_m=0.1//dimentionless (ratio of final mass to initial mass)
+v_final=Vrel_out*log(ratio_m)//ft/s
+printf("The velocity of the rocket after launch is %f ft/s",v_final);
\ No newline at end of file |