compute_dR

sknano.core.structures.compute_dR(*Ch)[source] [edit on github][source]

Compute dR=gcd

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

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:greatest common divisor of 2n+m and 2m+n
Return type:int