You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3cfecdd
Browse filesBrowse the repository at this point in the historyBrowse files
An equation in a remainder is solved to its whole family (#1630)
f mod a = r has one solution per period. It is now inverted the way the
trigonometric functions are, with a whole parameter: f = r + |a| n where r is
a value the floored remainder takes -- [0, a) for a positive a, (a, 0] for a
negative one -- and no solution where it is not. (x mod 4) + 1 = 3 is
{ 2 + 4 n_1 }, where 2.5.0 answered { }; (2x + 1) mod 4 = 3 is every odd
number, where 2.5.0 listed six of them. A divisor or value that is not a
number is left unsolved.
Closes#1629.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+30-8Lines changed: 30 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -845,6 +845,27 @@ and `13` is not, every `n` from `24` is `4 a + 9 b` and `23` is not
845
845
| `exists a in ZZ* : exists b in ZZ* : 13 = 3 a + 8 b` | `UnhandledParseException` (left as written when quantifiers arrived) | `False` |
846
846
| `forall n in ZZ : n >= 14 implies (exists a in ZZ* : exists b in ZZ* : n = 3 a + 8 b)` | `UnhandledParseException` (left as written when quantifiers arrived) | `True` |
847
847
848
+
### An equation in a remainder is solved to its whole family
849
+
850
+
`f mod a = r` has one solution per period, and the solver had no way to write that. On 2.5.0
851
+
`(x mod 4) + 1 = 3` answered `{ }` -- no solution, for an equation with infinitely many. Where
852
+
the numeric fallback reached it, it answered with the few solutions it found in its window:
853
+
`(2x + 1) mod 4 = 3` was `{ -5, -3, -1, 1, 3, 5 }`, and 7 is a solution as well. The remainder
854
+
is now inverted the way the trigonometric functions are, with a whole parameter: `f = r + a n`
855
+
where `r` is a value the floored remainder takes -- `[0, a)` for a positive `a`, `(a, 0]` for a
856
+
negative one -- and no solution where it is not. A divisor or value that is not a number is left
857
+
unsolved.
858
+
[#1629](https://github.com/asc-community/AngouriMath/issues/1629), Algebrite's issue 87 from
859
+
[#180](https://github.com/asc-community/AngouriMath/issues/180). Both columns measured on a build,
860
+
`v2.5.0` against this change.
861
+
862
+
| `"….".ToEntity().Solve("x")` of | Was (2.5.0) | Is |
0 commit comments