sknano.structures.compute_dR¶
-
sknano.structures.compute_dR(n, m)[source][source]¶ Compute \(d_R=\gcd{(2n + m, 2m + n)}\)
\(d_R\) is the Greatest Common Divisor of \(2n + m\) and \(2m + n\).
Parameters: n, m : int
Chiral indices defining the nanotube chiral vector \(\mathbf{C}_h = n\mathbf{a}_1 + m\mathbf{a}_2 = (n, m)\).
Returns: int
greatest common divisor of \(2n+m\) and \(2m+n\)