#### Previous topic

sknano.structures.compute_d

#### Next topic

sknano.structures.compute_N

# 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)$$. int greatest common divisor of $$2n+m$$ and $$2m+n$$