From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 623/CH1/EX1.1.27/U1_C1_27.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 623/CH1/EX1.1.27/U1_C1_27.sce (limited to '623/CH1/EX1.1.27/U1_C1_27.sce') diff --git a/623/CH1/EX1.1.27/U1_C1_27.sce b/623/CH1/EX1.1.27/U1_C1_27.sce new file mode 100755 index 000000000..d6590d0d5 --- /dev/null +++ b/623/CH1/EX1.1.27/U1_C1_27.sce @@ -0,0 +1,13 @@ +//variable initialization +RestEnergy=0.51 //rest energy of electron (Mev) +T=2000 //potential difference i.e. kinetic energy (Mev) + +//part(i)effective mass of electron in terms of its rest mass +EffectiveMass=1+(T/RestEnergy); //ratio of effective mass of electron and rest mass + +//part(ii)speed of electron in terms of the speed of light +Beta=(1-(1/EffectiveMass)^2)^(1/2); //Calculatio of Beta + +printf("\n\t The effective mass of electron = %.2f*mo ;mo is rest mass of electron\n\t The speed of electron = %.10f*c ;c is speed of light",EffectiveMass,Beta); + +//Note: In the book answer of m/mo is slightly wrong -- cgit