compute_M

sknano.core.structures.compute_M(*Ch)[source] [edit on github][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

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:\(M = mp - nq\)
Return type:int