npeaks {cycloids} | R Documentation |
Calculates the number of a cycloid's peaks based on the radii A (fixed circle) and a (moving circle)
Description
This function may be useful for calculating the number of peaks
a cycloid (
zykloid
) based on the radii (fixed
circle) and
(moving circle) will have. The equation for
is
where is the least common multiple of
and
as
implemented in the function
kgV
Usage
npeaks(A, a)
Arguments
A |
A natural number (integer value > 0) |
a |
A natural number (integer value > 0) |
Value
A natural number if and
are natural numbers. In any other
case, the function returns NA.
Author(s)
Peter Biber
See Also
Examples
npeaks(18, 6) # 3
npeaks(38, 105) # 38
npeaks(36, 9) # 4
npeaks(12, 9) # 4
npeaks(9, 12) # 3
npeaks(-5, 12) # NA - only integer numbers > 0 allowed
npeaks(3, 0) # NA - only integer numbers > 0 allowed
npeaks(3.2, 12) # NA - only integer numbers > 0 allowed
[Package cycloids version 1.0.2 Index]