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 d9ff463
Browse filesBrowse the repository at this point in the historyBrowse files
Answer a family with a whole-number parameter (#2205)
sin(x) = 1/2 in x and y was declined. Its families come from the
periodic root pi/6 + 2 pi n_1, and the check that each family holds
pinned n_1 at 1.37, where it does not, and asked Simplify, which knows
nothing about n_1.
The non-square solver now pins an n_1 a family brings at a whole
number, and decides the residual as forall n_1 in ZZ : residual = 0.
The quantifier establishes that n_1 is whole, and a new reader takes a
whole number of periods out of a trigonometric function's argument
under it: sin and cos lose a whole multiple of 2 pi, tan and cot one of
pi, as Complex.sin_add_int_mul_two_pi and Complex.tan_add_int_mul_pi
have it. The reader is asked only under a quantifier over whole
numbers, and outside one nothing changes.
sin(x) - 1/2 in x, y is [[pi/6 + 2 pi n_1, t_1], [pi - pi/6 + 2 pi n_1,
t_1]], and forall n in ZZ : sin(x + 2 pi n) = sin(x) is True.
Part of #212
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
| `MathS.Equations("sqrt(y) - x").Solve("x", "y")` | `WrongNumberOfArgumentsException` | `null`: `y = x^2` is no solution where `x` is negative |
414
417
| `MathS.Equations("x + y - a", "x - y - b", "x - c").Solve("x", "y")` | `WrongNumberOfArgumentsException` | `null`: there are solutions only where `a + b = 2c` |
415
418
419
+
### A whole number of periods comes out of a trigonometric function under a quantifier
420
+
421
+
**Silent: a statement quantified over whole numbers is decided where it was left as written.** Where the quantifiers
422
+
around a sine, a cosine, a secant or a cosecant establish that a term of its argument is a whole multiple of `2 pi`,
423
+
or of `pi` for a tangent or a cotangent, the term is taken out, as `Complex.sin_add_int_mul_two_pi` and
424
+
`Complex.tan_add_int_mul_pi` have it. Nothing changes outside a quantifier, and `sin(x + pi n)` keeps its `pi n`
Copy file name to clipboardExpand all lines: Sources/AngouriMath/Functions/Evaluation/Evaluation.Continuous/Evaluation.Continuous.Trigonometry.Classes.cs
_ whenFunctions.Boolean.QuantifierFacts.WithoutWholePeriods(a,2,static x =>newSinf(x),"Complex.sin_add_int_mul_two_pi")is{}reduced=>reduced.InnerSimplified(isExact),
_ whenFunctions.Boolean.QuantifierFacts.WithoutWholePeriods(a,2,static x =>newCosf(x),"Complex.cos_add_int_mul_two_pi")is{}reduced=>reduced.InnerSimplified(isExact),
_ whenFunctions.Boolean.QuantifierFacts.WithoutWholePeriods(a,2,static x =>newSecantf(x),"Complex.cos_add_int_mul_two_pi")is{}reduced=>reduced.InnerSimplified(isExact),
_ whenFunctions.Boolean.QuantifierFacts.WithoutWholePeriods(a,2,static x =>newCosecantf(x),"Complex.sin_add_int_mul_two_pi")is{}reduced=>reduced.InnerSimplified(isExact),
_ whenFunctions.Boolean.QuantifierFacts.WithoutWholePeriods(a,1,static x =>newTanf(x),"Complex.tan_add_int_mul_pi")is{}reduced=>reduced.InnerSimplified(isExact),
_ whenFunctions.Boolean.QuantifierFacts.WithoutWholePeriods(a,1,static x =>newCotanf(x),"Complex.tan_add_int_mul_pi")is{}reduced=>reduced.InnerSimplified(isExact),
0 commit comments