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 ea08214
Browse filesBrowse the repository at this point in the historyBrowse files
fallingfactorial(x, n), also factorialpower(x, n), Mathematica's name, and risingfactorial(x, n)
were reserved by name in #2184 and are now Entity.FallingFactorialf and Entity.RisingFactorialf,
built by MathS.FallingFactorial and MathS.RisingFactorial.
For a whole n >= 0 they are x (x - 1) ... (x - n + 1) and x (x + 1) ... (x + n - 1), x to the n
falling and rising, computed exactly for any number x. For a negative whole n they are the
reciprocals of (x + 1) ... (x - n) and (x - 1) ... (x + n), (2.52) in Graham, Knuth and
Patashnik's Concrete Mathematics, with no value where a factor vanishes. For any other n they are
Gamma(x + 1)/Gamma(x - n + 1) and Gamma(x + n)/Gamma(x), as Mathematica's FactorialPower and
Pochhammer are, evaluated numerically: no value at a pole of the numerator, and 0 at one of the
denominator. fallingfactorial(5, 1/2) agrees with mpmath to 1e-20. risingfactorial(x, n) is
fallingfactorial(x + n - 1, n), and binomial(n, k) is fallingfactorial(n, k)/k!.
They draw with Knuth's bars, x^{\underline{n}} and x^{\overline{n}}, and export to SymPy's ff and
rf. A conjugate as the whole exponent of a power is drawn in brackets,
x^{\left(\overline{n}\right)}, since x^{\overline{n}} is the rising factorial. pochhammer stays
refused, (x)_n being the rising factorial to some authors and the falling one to others.
Part of #2182.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
`risingfactorial` and `forwarddifference`. Names that will not be functions,
457
+
is: `zeta`, `riemannzeta`, `hurwitzzeta`, `lambertw`, `productlog`, `harmonicnumber`, `catalannumber`, `multinomial` and
458
+
`forwarddifference`. Names that will not be functions,
457
459
because what they mean differs between sources or is already written exactly, are refused with the spelling to use:
458
460
`heaviside`, `unitstep`, `isprime`, `pochhammer`, `doublefactorial`, `factorial2`, `fractionalpart` and `quotient`.
459
461
Each name without a bracket is still a variable, and short names such as `beta` and `norm` are still read as products
@@ -501,6 +503,20 @@ is ([#2182](https://github.com/asc-community/AngouriMath/issues/2182)).
501
503
| `"hessian(x^3 y^2, [x, y])".ToEntity().Simplify()` | throws `UnhandledParseException` | `[[6 * x * y ^ 2, 6 * x ^ 2 * y], [6 * x ^ 2 * y, 2 * x ^ 3]]` |
502
504
| `"jacobian(x y, {x, y})".ToEntity()` | throws `UnhandledParseException` | throws `InvalidArgumentParseException`: a set has no order for the columns |
503
505
506
+
### The falling and the rising factorial
507
+
508
+
**Not silent: `fallingfactorial(x, n)`, also `factorialpower(x, n)`, and `risingfactorial(x, n)` are functions, where
509
+
they were a parse error.** For a whole `n >= 0` they are `x (x - 1) ... (x - n + 1)` and `x (x + 1) ... (x + n - 1)`. For a
510
+
negative whole `n` they are reciprocals of products, and for any other `n` they are the gamma ratios `Γ(x + 1)/Γ(x - n + 1)`
511
+
and `Γ(x + n)/Γ(x)`. LaTeX draws them with Knuth's bars, `x^{\underline{n}}` and `x^{\overline{n}}`
0 commit comments