Conversion of parameters of the Bragg equation

You can use this program in two ways.
(1) Input some of the parameters and get other values (it works only when the combination of the given parameters is right).
(2) Input one value in Section 2 and get other values in Section 2.

Section 1 : Unit
Angstrom (Å)
nanometer

Section 1
Energy : keV
Wavelength : Å or nm
When both are given, the Energy will be used.

Section 2
d (Bragg spacing) : Å or nm
s (scattering vector) : Å-1 or nm-1
q (scattering vector) : Å-1 or nm-1
When more than one are given, d is used.
s = 1/d
q = (4π/λ)sin(2θ/2) where 2θ is the scattering angle. This is sometimes called momentum transfer.
Sometimes "q" is called either "Q", "s" or "h", and "s" is "S".

Section 3
2θ (scattering/deflection angle) : radian degrees
L (camera length) : mm
x : (distance from the beam) mm



[Answer section]

Energy : keV
Wavelength : Å nm

d : Å nm
s : Å-1 nm-1
q : Å-1 nm-1
k : Å-1 nm-1
2θ : radian degrees
L (camera length) : mm
x : (distance from the beam) mm