summaryrefslogtreecommitdiff
path: root/2780/CH1/EX1.2/Ex1_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '2780/CH1/EX1.2/Ex1_2.sce')
-rwxr-xr-x2780/CH1/EX1.2/Ex1_2.sce7
1 files changed, 7 insertions, 0 deletions
diff --git a/2780/CH1/EX1.2/Ex1_2.sce b/2780/CH1/EX1.2/Ex1_2.sce
new file mode 100755
index 000000000..d08a8c591
--- /dev/null
+++ b/2780/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,7 @@
+clc
+//to calculate velocity of rocket
+//lo be the length at rest
+l=99/100 //length is 99 per cent of its length at rest is l=(99/100)lo
+c=3*10^8 //light speed(m/s)
+v=sqrt(c^2*(1-l^2)) //formula is v=c sqrt(1-(l/lo)^2)
+disp("velocity of rocket is v="+string(v)+"m/s")