summaryrefslogtreecommitdiff
path: root/2780/CH1/EX1.2/Ex1_2.sce
blob: d08a8c59117b3a46448bcba007f8adc97ecffdc4 (plain)
1
2
3
4
5
6
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")