Skip to content

Commit 272aaef

Browse files
Rafael-SOWNetclaude
andcommitted
Merge remote-tracking branch 'origin/master' into interval-evaluation
PartialFractions.cs: master's DefaultSamplePoints and DiffersWhereReal (#1572) beside this branch's interval Agree; HoldsAtSampledPoints takes the shared default points. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 parents 539e91e + 616d923 commit 272aaef

45 files changed

Lines changed: 3269 additions & 977 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎BREAKING-CHANGES.md‎

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,22 @@ it, as they decide a divisibility. `forall n in ZZ : floor(n/2) + ceil(n/2) = n`
611611
| `forall n in ZZ : floor(n/2) + ceil(n/2) = n` | `UnhandledParseException` (left as written when quantifiers arrived) | `True` |
612612
| `exists n in ZZ : floor(n/2) + ceil(n/2) = n + 1` | `UnhandledParseException` (left as written when quantifiers arrived) | `False` |
613613

614+
### A sum of whole multiples is decided: `exists a, b in ZZ* : n = p a + q b`
615+
616+
What an equation `n = p a + q b` leaves of `b` is a divisibility and a sign: `(n - p a)/q in ZZ*` is
617+
`q divides n - p a and n - p a >= 0`, for a whole `n - p a`. A statement that repeats in `a` and only
618+
gets harder as `a` grows has its least witness below the period, so `exists a in ZZ*` of it is one of
619+
the first period's members; and a statement whose comparisons settle past a threshold, with the rest
620+
repeating, is decided by the members up to one period past it. So Sullivan and Mackey's coins and
621+
special lands are decided (Prob 2.7.8, Prob 5.7.4, §5.5.3 Try 3): every `n` from `14` is `3 a + 8 b`
622+
and `13` is not, every `n` from `24` is `4 a + 9 b` and `23` is not
623+
([#1409](https://github.com/asc-community/AngouriMath/issues/1409)).
624+
625+
| Input | Was (2.5.0) | Now |
626+
|---|---|---|
627+
| `exists a in ZZ* : exists b in ZZ* : 13 = 3 a + 8 b` | `UnhandledParseException` (left as written when quantifiers arrived) | `False` |
628+
| `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` |
629+
614630
### An antiderivative built through an even root says where the root is real
615631

616632
The linear-radical substitution, `u = (a x + b)^(1/q)`, and the general substitution for an even
@@ -645,6 +661,24 @@ Rubi's 4.5.3.1:640 was wrong on that region
645661
|---|---|---|
646662
| `"(1+sec(x))^(5/2)*sqrt(cos(x))".Integrate("x")` | `integral((1 + sec(x)) ^ (5/2) * sqrt(cos(x)), x)` — left unevaluated | an antiderivative with `sgn(sin(x))` in it, `provided cos(x) >= 0` |
647663

664+
### The inverse hyperbolic tangent's answer is given on its domain, and says so
665+
666+
`1/((1 - a^2 x^2)^(5/2) artanh(a x))` was left unevaluated, although the substitution `a x = tanh(u)`
667+
answers it: `(Chi(3 u) + 3 Chi(u))/(4 a)` for `u = artanh(a x)`. The answer was checked past
668+
`|a x| < 1` as well, where `sqrt(1 - a^2 x^2)` is not `sech(u)`, and declined for failing there.
669+
Past `a x = 1` the integrand is not real either, so the answer is now given on the domain and
670+
carries `provided 1 - (a x)^2 > 0`, as an answer through an even root says where the root is real.
671+
Where the integrand is real past `a x = 1` too, through two imaginary factors cancelling, the
672+
answer is still declined, and a route that answers everywhere can. Rubi's 7.3.4
673+
([#1501](https://github.com/asc-community/AngouriMath/issues/1501)).
674+
675+
| Input | Was (2.5.0) | Now |
676+
|---|---|---|
677+
| `"1/((1-a^2*x^2)^(5/2)*atanh(a*x))".ToEntity().Integrate("x")` | `integral(...)` | `(Chi(3 u) + 3 Chi(u))/(4 a) provided 1 - (a x)^2 > 0`, for `u = artanh(a x)` |
678+
| `"1/((1-a^2*x^2)^(3/2)*atanh(a*x))".ToEntity().Integrate("x")` | `integral(...)` | `Chi(u)/a provided 1 - (a x)^2 > 0` |
679+
| `"x/((1-a^2*x^2)^(3/2)*atanh(a*x)^2)".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative in `Chi`, `provided 1 - (a x)^2 > 0` |
680+
| `"x*atanh(a*x)^3/(1-a^2*x^2)^(3/2)".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative, `provided 1 - (a x)^2 > 0` |
681+
648682
### A zero imaginary part is on the real axis, whatever its sign
649683

650684
**Silent, with the downcasting off.** A decimal's negative zero — `0E-100 * -0.43` is `-0E-102`
@@ -704,6 +738,23 @@ met piece by piece now ([#1409](https://github.com/asc-community/AngouriMath/iss
704738
| `{ x in RR : x^2 - 3 x + 2 >= 0 } = { y in RR : y <= 1 or y >= 2 }` | left as written | `True` |
705739
| `"({ 2 } \/ (-oo; 1] \/ (2; +oo)) /\ (1; 2)".ToEntity().Evaled` | left as written | `{ }` |
706740

741+
### The size of an infinite set is an aleph, and sizes compare
742+
743+
`card` of an infinite set is an aleph, `aleph(k)`, or a power of 2 of one: `card(ZZ)`, `card(QQ)`
744+
and `card(PP)` are `aleph(0)`, and `card(RR)` is `2^aleph(0)`, an aleph but not a named one, since
745+
which one it is is the continuum hypothesis, which ZFC does not decide: `2^aleph(0) = aleph(1)`
746+
stays as written. `card(powerset(S))` is `2^card(S)`. A sum or a product of sizes, one of them
747+
infinite, is the larger, and a difference or a quotient of sizes has no value and is `NaN`, as
748+
`log(0)` is. Sizes compare by what ZFC proves, and a set is smaller than its power set whatever it
749+
is ([#1409](https://github.com/asc-community/AngouriMath/issues/1409), Sullivan and Mackey's §7.6).
750+
751+
| Input | Was (2.5.0) | Now |
752+
|---|---|---|
753+
| `"card(ZZ)".ToEntity().Simplify()` | `#ZZ` | `aleph(0)` |
754+
| `"card(ZZ) = card(QQ)".ToEntity().Simplify()` | `#ZZ = #QQ` | `True` |
755+
| `"card(ZZ) < card(RR)".ToEntity().Simplify()` | `#ZZ < #RR` | `True` |
756+
| `"aleph(0) + 1".ToEntity().Simplify()` | `1` — `aleph(0)` was read as `aleph * 0` | `aleph(0)` |
757+
707758
### An integer range is listed, and a family of sets has a union and an intersection
708759

709760
`ZZ /\ [1; 10]` lists its members now — an integer set cut by a numeric interval with at most
@@ -767,6 +818,23 @@ emptiness as a proof: `forall x in RR : x^2 in ZZ` was `True`
767818
| `"x^2 in {1, 4}".Solve("x")` | `{}` — wrong | `{ 1, -1, 2, -2 }` |
768819
| `"x^2 in ZZ".Solve("x")` | `{}` — wrong | `{ x : x ^ 2 in ZZ }`, left as written |
769820
| `forall x in RR : x^2 in ZZ` | `UnhandledParseException` (quantifiers are new since) | `False` |
821+
### An equation between moduli is left unsolved over the complex numbers, and solved by cases over the reals
822+
823+
An expression real for every complex `x`, with `x` only ever inside a modulus, is one real condition
824+
on the two real unknowns `x` is made of, so what solves it is a curve: `abs(x - 2) = abs(x - 3)` holds
825+
on the whole line `Re x = 5/2`. **Wrong answer fixed**: Newton's method found points of such a curve
826+
and answered them as the solution set, and `abs(x - 1) + abs(x - 2) = 5` missed its real root `4`
827+
for points of an ellipse. It is now left as the set of the `x` satisfying it. With the codomain set
828+
to `RR`, an equation in moduli of linear functions is solved by cases between the kinks, where each
829+
modulus has one sign: `abs(x - 2) = abs(x - 3)` is `{ 5/2 }` (Sullivan and Mackey's Prob 1.5.16), and
830+
`abs(x - 1) + abs(x - 2) = 1` is `[1; 2]` ([#1573](https://github.com/asc-community/AngouriMath/issues/1573)).
831+
832+
| Input | Was (2.5.0) | Now |
833+
|---|---|---|
834+
| `"abs(x - 2) = abs(x - 3)".ToEntity().Solve("x")` | `{ 2.4999… - 53.004…i, 2.4999… + 53.004…i, … }` | `{ x : abs(x - 2) = abs(x - 3) }` |
835+
| the same, with `MathS.Settings.Codomain` set to `RR` | `{ 2.4999… - 53.004…i, 2.4999… + 53.004…i, … }` | `{ 5/2 }` |
836+
| `"abs(x - 1) + abs(x - 2) = 5".ToEntity().Solve("x")`, codomain `RR` | `{ -1, 3.9997… - 0.0345…i, 3.9997… + 0.0345…i, … }` | `{ -1, 4 }` |
837+
770838
### `...` is the pattern operator
771839

772840
`{1, 2, ..., n}`, `{2, 4, ..., 2 n}`, `{5, 10, 15, ...}`, `{..., -1, 0}`, `1 + 2 + ... + n` and
@@ -885,6 +953,39 @@ onto `B`, Sullivan and Mackey's Def 7.4.1, [#1409](https://github.com/asc-commun
885953
| `(-oo)^2` | `NaN` — wrong | `+oo` |
886954
| `forall b in RR : exists a in RR : a^3 = b` | `UnhandledParseException` (quantifiers are new since; left as written when they arrived) | `True` |
887955
| `forall b in RR : exists a in RR : e^a = b` | `UnhandledParseException` | `False` |
956+
957+
### One-to-one is decided for a quotient of polynomials on an interval
958+
959+
`forall a in S : forall b in S : f(a) = f(b) implies a = b` — `f` one-to-one on `S`, Sullivan and
960+
Mackey's Def 7.4.1 — is decided for a quotient of polynomials on an interval by the sign of its
961+
derivative between the zeros inside: strictly monotone is one-to-one, and a turn is not. The cube
962+
is one-to-one on the reals although its derivative is zero at 0; the square is on `[0; +oo)`. On the
963+
whole numbers only a yes carries over from the interval around them
964+
([#1409](https://github.com/asc-community/AngouriMath/issues/1409)).
965+
966+
| Input | Was (2.5.0) | Now |
967+
|---|---|---|
968+
| `forall a in RR : forall b in RR : a^3 = b^3 implies a = b` | `UnhandledParseException` (left as written when quantifiers arrived) | `True` |
969+
| `forall a in [0; +oo) : forall b in [0; +oo) : a^2 = b^2 implies a = b` | `UnhandledParseException` (left as written when quantifiers arrived) | `True` |
970+
| `forall a in RR : forall b in RR : a^3 - 3 a = b^3 - 3 b implies a = b` | `UnhandledParseException` | `False` |
971+
972+
### A family of intervals with monotone ends is the interval between their extremes
973+
974+
`union(A_n, n in I)` and `intersection(A_n, n in I)` of intervals whose ends are quotients of
975+
polynomials in the index, monotone over its range, are the interval between the extremes of the
976+
ends: an intersection always, a union where the family is a chain or the index runs over an
977+
interval. An end is closed where the family's ends are and the extreme is reached, or, in an
978+
intersection, where it is only approached. Sullivan and Mackey's §3.9.5 Try 8–10: the intersection
979+
of `(-1/n; 1/n)` over `ZZ+` is `{ 0 }`, the union of `(x; x + 1)` over `(0; 1)` is `(0; 2)`, and
980+
the union of `[0; (n - 1)/n)` is `[0; 1)`, which is the intersection of `(-1/n; 1)`
981+
([#1409](https://github.com/asc-community/AngouriMath/issues/1409)).
982+
983+
| Input | Was (2.5.0) | Now |
984+
|---|---|---|
985+
| `intersection((-1/n; 1/n), n in ZZ+)` | `UnhandledParseException` (left as written when families arrived) | `{ 0 }` |
986+
| `union((x; x + 1), x in (0; 1))` | `UnhandledParseException` (left as written when families arrived) | `(0; 2)` |
987+
| `union([0; (n - 1)/n), n in ZZ+) = intersection((-1/n; 1), n in ZZ+)` | `UnhandledParseException` | `True` |
988+
888989
### The binomial coefficient's identities, and its sums in closed form
889990

890991
Pascal's rule, the chairperson identity and the symmetry are rewrite rules, each in the direction
@@ -913,11 +1014,18 @@ where `P` is not decided, so a count is a sum of brackets: `sum(iverson(k divide
9131014
([#1478](https://github.com/asc-community/AngouriMath/issues/1478)). In 2.5.0 the name was read as a
9141015
variable multiplying its argument, and a product with a truth value is `NaN`.
9151016

1017+
A sum of a bracket is counted in closed form, however long the range, where the statement bounds the
1018+
index, fixes it at a point, fixes its residue or makes it a perfect power, with `not` and `or` counted by inclusion and
1019+
exclusion: the number of whole numbers from `L` to `U` in the class `r` modulo `m` is
1020+
`floor((U - r)/m) - floor((L - 1 - r)/m)`, and never below zero.
1021+
9161022
| Input | Was (2.5.0) | Now |
9171023
|---|---|---|
9181024
| `"iverson(2 > 1)".ToEntity().Simplify()` | `NaN` — `iverson * (2 > 1)` | `1` |
9191025
| `"iverson(x > 0)".ToEntity().Simplify()` | `iverson * (x > 0)` | `iverson(x > 0)` |
9201026
| `"sum(sum(sum(iverson(r + b + g = 4), g, 0, 3), b, 0, 3), r, 0, 3)".ToEntity().Simplify()` | `NaN` | `12` |
1027+
| `"sum(iverson(2 divides k or 3 divides k), k, 1, 1000)".ToEntity().Simplify()` | `sum(iverson * (2 divides k or 3 divides k), k, 1, 1000)` | `667` |
1028+
| `"sum(sum(sum(iverson(a + b + c = 20), c, 0, 20), b, 0, 20), a, 0, 20)".ToEntity().Simplify()` | did not finish in two minutes | `231` |
9211029

9221030
### A statement about a sum up to `n` is decided by induction
9231031

@@ -991,6 +1099,23 @@ below are one indeterminate. Rubi's 7.5.1 and 7.6.1
9911099
| `"x * acsch(c * x)".ToEntity().Integrate("x")` | `integral(x * ln(1 / (c * x) + sqrt(1 / (c * x) ^ 2 + 1)), x)` | an antiderivative, `provided c^2 > 0` |
9921100
| `"x^2 * asech(c * x)".ToEntity().Integrate("x")` | `integral(...)`, the same | an antiderivative |
9931101
| `"x / sqrt(1 + 1/(c*x)^2)".ToEntity().Integrate("x")` | `integral(x / sqrt(1 + 1 / (c * x) ^ 2), x)` | an antiderivative, `provided c^2 > 0` |
1102+
1103+
### `arsech` and `arcsch` below the bar are integrated
1104+
1105+
`1/(x^2 (a + b arcsch(c x)))` and `1/(x^4 (a + b arsech(c x)))` were left unevaluated. The
1106+
substitution that undoes an inverse hyperbolic function read `arsinh`, `arcosh` and `artanh` off
1107+
their logarithms and not these two, which are the `arsinh` and the `arcosh` of `1/L`. Under
1108+
`L = csch(u)` or `L = sech(u)` a power of `x` below the bar is a polynomial in `cosh(u)` and
1109+
`sinh(u)` over a power of `a + b u`, which the hyperbolic sine and cosine integrals and `Ei`
1110+
answer. Rubi's 7.5.1, 7.5.2 and 7.6.1
1111+
([#1501](https://github.com/asc-community/AngouriMath/issues/1501)).
1112+
1113+
| Input | Was (2.5.0) | Now |
1114+
|---|---|---|
1115+
| `"1/(x^2*(a+b*acsch(c*x)))".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative in `Ei` |
1116+
| `"1/(x^4*(a+b*asech(c*x)))".ToEntity().Integrate("x")` | `integral(...)` | an antiderivative in `Chi` and `Shi` |
1117+
| `"1/(e^asech(a*x)*x^5)".ToEntity().Integrate("x")` | `integral(...)` | a polynomial in `1/(a x) - sqrt(1/(a x)^2 - 1)` and its reciprocal |
1118+
9941119
### `n in ZZ and 2^n > n^2` is solved to a set, and was a refusal
9951120

9961121
An inequality with an exponential or a factorial over the whole numbers is solved to the members
@@ -1073,6 +1198,19 @@ that is not a bound by trying the members in order from the least, so Sullivan a
10731198
| `"prime(25)".ToEntity().Evaled` | `prime * 25` — juxtaposition of a variable `prime` | `97`; `prime(n)` is the `n`-th prime, `NaN` off the positive whole numbers |
10741199
| `"valuation(12, 2)".ToEntity().Evaled` | `UnrecognizedFunctionParseException` | `2`; `valuation(n, p)` is the `p`-adic valuation, `+oo` at `0` and `NaN` off the primes |
10751200

1201+
### Over the primes, a repeating statement is decided by the modulus's prime factors and units
1202+
1203+
A statement that repeats modulo `M`, asked of the primes past some bound, is its value at each prime
1204+
factor of `M` past the bound and at each unit modulo `M`: every prime past those factors is a unit,
1205+
and every unit is the residue of infinitely many primes, by Dirichlet's theorem. So
1206+
`forall p in PP : p > 3 implies 24 divides p^2 - 1` is `True` while the same from `p > 2` is `False`
1207+
at `3`, Sullivan and Mackey's Prob 6.7.5 and its erratum, and `exists p in PP : p > 10 and
1208+
p = 3 (mod 4)` is `True` ([#1409](https://github.com/asc-community/AngouriMath/issues/1409)).
1209+
1210+
| Input | Was (2.5.0) | Now |
1211+
|---|---|---|
1212+
| `forall p in PP : p > 3 implies 24 divides p^2 - 1` | `UnhandledParseException` (left as written when `PP` arrived) | `True` |
1213+
10761214
### `atanh(tanh(a + b x))` under an integral is linear in `x`, and was an atom no rule read
10771215

10781216
An inverse hyperbolic function of a hyperbolic one is spelled by the parser as a logarithm of a

‎Sources/.editorconfig‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
193193
[AngouriMath/Core/Budgets/*.cs]
194194
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
195195

196+
[Tests/UnitTests/Algebra/SolveTest/ModulusEquationTest.cs]
197+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
198+
196199
[Tests/UnitTests/Core/Budgets/*.cs]
197200
[Tests/UnitTests/Core/ExceptionMessageNamesTheExpressionTest.cs]
198201
[Tests/UnitTests/Core/UnknownDomainIsNotABugTest.cs]
@@ -240,6 +243,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
240243
[AngouriMath/Functions/Continuous/Solvers/EquationSolver/LinearSystemSolver.cs]
241244
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
242245

246+
[AngouriMath/Functions/Continuous/Solvers/EquationSolver/ModulusSolver.cs]
247+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
248+
243249
[Tests/UnitTests/Algebra/SolveTest/ParametricSystemTest.cs]
244250
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
245251

@@ -341,6 +347,8 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
341347

342348
[AngouriMath/Core/Entity/Continuous/Entity.Continuous.Iverson.Classes.cs]
343349
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
350+
[AngouriMath/Core/Entity/Continuous/Entity.Continuous.Aleph.Classes.cs]
351+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
344352

345353
[Tests/UnitTests/Core/ProofRecordingTest.cs]
346354
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
@@ -396,6 +404,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
396404
[AngouriMath/Core/Entity/Omni/Sets/SetOperators.Subset.cs]
397405
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
398406

407+
[AngouriMath/Core/Entity/Omni/Sets/Cardinality.cs]
408+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
409+
399410
[Tests/UnitTests/Core/Sets/SubsetTest.cs]
400411
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
401412

@@ -431,6 +442,9 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
431442
[AngouriMath/Functions/Algebra/Polynomials/FactorialSum.cs]
432443
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
433444

445+
[AngouriMath/Functions/Algebra/Polynomials/IversonSum.cs]
446+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
447+
434448
[Tests/UnitTests/Core/FactorialSumTest.cs]
435449
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
436450
[Tests/UnitTests/Core/ClosedFormProductTest.cs]

‎Sources/AngouriMath/Convenience/MathS.cs‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,18 @@ public static Entity VectorLength(Matrix v)
13941394
[MethodImpl(MethodImplOptions.AggressiveInlining)]
13951395
public static Entity Iverson(Entity statement) => new Iversonf(statement);
13961396

1397+
/// <summary>The aleph number <c>aleph(k)</c>, the size of an infinite set</summary>
1398+
/// <param name="index">The index, a whole number from zero</param>
1399+
/// <returns>The <see cref="Entity.Alephf"/> node</returns>
1400+
/// <remarks>
1401+
/// <c>aleph(0)</c> is the size of the whole numbers and of the rationals, and
1402+
/// <c>card(ZZ)</c> is it. The size of the reals is <c>2^aleph(0)</c>, not a named aleph:
1403+
/// which one it is, is the continuum hypothesis.
1404+
/// https://github.com/asc-community/AngouriMath/issues/1409
1405+
/// </remarks>
1406+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
1407+
public static Entity Aleph(Entity index) => new Alephf(index);
1408+
13971409
/// <summary>The error function, <c>erf(z) = 2/sqrt(pi) int_0^z e^(-t^2) dt</c></summary>
13981410
/// <param name="a">The argument, any complex number</param>
13991411
/// <returns>The <see cref="Entity.Erff"/> node</returns>

0 commit comments

Comments
 (0)