rotorCheck
returns the numbers of tubes that can and cannot be loaded
in a single operation.
rotorCheck(n, k = NULL)
an integer, the number of rotor buckets.
an integer, the number of tubes.
rotorCheck
returns a list with two components:
valid
a vector containing the numbers of tubes that can be loaded.
invalid
a vector containing the numbers of tubes that cannot be loaded.
The number of rotor buckets n
ranges from 4
to
48
. If k
is specified, rotorCheck
will check
whether the input number of tubes can be loaded or not.
Sivek G. On vanishing sums of distinct roots of unity. Integers. 2010;10(3):365-8.
rotorEqual
for balancing tubes of equal mass and
rotorUnequal
for balancing tubes of unequal mass.
# NOT RUN {
rotorCheck(30)
rotorCheck(30, 19)
# }
Run the code above in your browser using DataLab