sknano.structures.compute_dR

sknano.structures.compute_dR(*Ch)[source][source]

Compute \(d_R=\gcd{(2n + m, 2m + n)}\)

\(d_R\) is the Greatest Common Divisor of \(2n + m\) and \(2m + n\).

Parameters:

*Ch : {tuple or ints}

Either a 2-tuple of ints or 2 integers giving the chiral indices of 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\)