summaryrefslogtreecommitdiff
path: root/3769/CH22/EX22.18/Ex22_18.sce
blob: 29188176d0be8f46f5a69b6a6be923236224c87c (plain)
1
2
3
4
5
6
7
8
9
10
11
clear
//Given
l1=0.032
l=100.0
c=3*10**8

//Calculation
v=-(l1*c)/l

//Result
printf("\n Velocity of star is %0.3f  *10**4 m/s",v*10**-4)