summaryrefslogtreecommitdiff
path: root/1271/CH11/EX11.7/example11_7.sce
blob: c8b99fc0cb90a753efb13d3df7322ea340e8d377 (plain)
1
2
3
4
5
6
7
8
9
clc 
// Given that
r = 1.2 // ratio of mass of particle to the rest mass
// Sample Problem 7 on page no. 11.20
printf("\n # PROBLEM 7 # \n")
printf(" Standard formula used \n")
printf(" m = m_0/((1-v^2/c^2)^1/2) \n ")
v = 3e8 * sqrt(1 - (1 / r)^2)
printf("\n Speed of particle is %f c.",v/3e8)