Materials characterisation

A diffractometer reports a peak position of 40° on its conventional 2θ axis. What angle θ belongs in the Bragg equation nλ = 2d sin θ?