summaryrefslogtreecommitdiff
path: root/1862/CH20/EX20.6/C20P6.sce
blob: 544798728cce5968ec5c0e5ac0556b145cd523b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clear
clc
//to find momentum of proton 

//Given:
//speed of proton
v = 0.86//times c
//speed of light
c = 3.00e8//in m/s
//mass of proton
m = 1.67e-27//in Kg

//Solution:
//appiying fomule for relativistic momentum
//momentum of proton 
P = (m*v*c)/(sqrt(1-(v^2)))//in Kg.m/s
//value of pc
Pc = P*c*(6.24e12)//in MeV //(6.24e12) is conversion factor between J and MeV

printf ("\n\n Momentum of proton P = \n\n %.2e Kg.m/s" ,P);
printf ("\n\n Value of pc = \n\n %4i MeV" ,Pc);
printf ("\n\n Momentum of proton p = \n\n %4i MeV/c" ,Pc);