android-calculatorpp icon indicating copy to clipboard operation
android-calculatorpp copied to clipboard

Modulus does not work properly with variables

Open istepaniuk opened this issue 11 years ago • 4 comments

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.

istepaniuk avatar Feb 26 '13 13:02 istepaniuk

Is this at least confirmed?

istepaniuk avatar May 21 '13 10:05 istepaniuk

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

serso avatar May 21 '13 10:05 serso

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

istepaniuk avatar Aug 05 '13 11:08 istepaniuk

JSCL

serso avatar Aug 05 '13 11:08 serso