android-calculatorpp
android-calculatorpp copied to clipboard
Modulus does not work properly with variables
mod(5, X) returns 5. The value of X is not used.
The same way, mod(X, 5) returns always X.
It is impossible to use mod() as part of another function or iterator.
Is this at least confirmed?
Sorry for long answer, definitely there is a problem with symbolic calculation of mod() function. But numeric calculation yields correct result, e.g. mod (5, 2) = 1, mod(5, 3) = 2, mod (5, 44) = 5
Is this a bug in the JSCL or from this repo? I may be able to get some spare time to look at it and pull request a patch
JSCL