Description Usage Arguments Details Note Author(s) See Also Examples
Getting and setting the working modulus for clock arithmetic
1 | modulus(n)
|
n |
Non-negative integer, >1 |
The sine qua non for modular arithmetic is having a modulus to
work to. The first thing to do is to set the modulus with function
modulus()
. The typical work-flow for the package is to define a
modulus and work in this modulus for an extended period of time. It is
not expected that users will change the working modulus very frequently.
Indeed, doing so may result in interwoven alignment preambles are
not allowed errors.
The package can deal with a non-prime modulus but then division is not defined.
The function and workflow are based on the sol()
function of the
lorentz package.
Typing “modulus(5)
” is a lot easier than typing
“options("M"=5)
”, which is why the package uses
the idiom that it does.
Robin K. S. Hankin
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.