This function may be useful for calculating the number n of peaks
a cycloid (zykloid
) based on the radii A (fixed
circle) and a (moving circle) will have. The equation for n is
n = kgV(A, a)/a
where kgV(A, a) is the least common multiple of A and a as
implemented in the function kgV
1  npeaks(A, a)

A 
A natural number (integer value > 0) 
a 
A natural number (integer value > 0) 
A natural number if A and a are natural numbers. In any other case, the function returns NA.
Peter Biber
kgV
, ggT
, zykloid
1 2 3 4 5 6 7 8 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.