sknano.structures.compute_M

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

Compute \(M = mp - nq\)

\(M\) is the number of multiples of the translation vector \(\mathbf{T}\) in the vector \(N\mathbf{R}\).

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

\(M = mp - nq\)