summaryrefslogtreecommitdiff
path: root/3363/CH10/EX10.5/Ex10_5.sce
blob: d564f6229c970c07989bdc2b9ff0e5809aa944cb (plain)
1
2
3
4
5
6
7
8
9
10
//Example 10.5, page 386
clc
a=1*(1+1)
x=a+a-a
y=2*a
g=1+(x/y)
u=9.3*10^-24//amp-m2
B=1/10//in Tesla
delta_E=u*B*g
printf("\n The displace energy is  %e  ev",delta_E)