summaryrefslogtreecommitdiff
path: root/3411/CH9/EX1.1.u2/Ex1_1_u2.sce
blob: ed99eb811ef44589845a132b5a9a58c317813ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Example 1_1_u2
clc();
clear;
//To calculate energy momentum and the probability of of finding the particle
n=3
h=6.63*10^-34
m=1.67*10^-27
l=0.1*10^-9
e=(n^2*h^2)/(8*m*l^2)    //units in joules
printf("The energy of the particle is E=")
disp(e)
printf("Joules")
lamda=(2*l)/n       //units in mts
lamda=6.6*10^-11  //units in mts
p=h/lamda        //units in Kg mts^-1
printf("\nMomentum is p=")
disp(p)
printf("Kg  ms^-1")
prob=((1/3)-0)
printf("\nThe probability of finding the particle is =%.2f",prob)