diff --git a/script/local.py b/script/local.py index e703bf6..878891d 100644 --- a/script/local.py +++ b/script/local.py @@ -18,7 +18,7 @@ def angle(e,h=1.0,k=1.0,l=1.0, deg =True, ln = False,bent = False): if bent: rho = 2*19.65*8.35/28*math.sin(a) dt = 0.2e-3/rho*0.279 - d0 = 2*5.43102*(1+dt)/math.sqrt(h^2+k^2+l^2) + d0 = 2*5.43102*(1+dt)/math.sqrt(h**2+k**2+l**2) a = math.asin(12.39842/d0/E) a = a/dtor if deg else a return a