View source: R/better_subtraction.R
better.subtraction | R Documentation |
This function takes the difference b-a and returns the signed difference with the smallest absolute value in modulus base. The function will compute b mod base and a mod base before subtracting.
better.subtraction(diff, base = 2 * pi)
diff |
difference: (b mod base)-(a mod base) |
base |
base of the modulus numbers a and b. |
signed difference of b and a with the smallest possible absolute value in modulus base
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.