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 9164e15
Browse filesBrowse the repository at this point in the historyBrowse files
binomial, fallingfactorial, risingfactorial and n!! were refused by
both compilers. Each compiles now, in double precision and on the
interpreter's terms, in CombinatorialFunctions: a whole order is a
product, and the reciprocal of one for a negative order, and any other
goes through the gamma function, with NaN at a pole of the numerator
and 0 at one of the denominator. The double factorial has no value off
the whole numbers or at a negative even one. FastExpression has an
instruction for each, and the LINQ compiler a Complex and a double
definition. Both are checked against evaluation over every pair of
fourteen whole, half-whole and complex arguments.
Part of #2195
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
public static System.Numerics.Complex <#= name #>(System.Numerics.Complex a) => AngouriMath.Numerics.CombinatorialFunctions.<#= name #>(a);
228
+
public static double <#= name #>(double a) => AngouriMath.Numerics.CombinatorialFunctions.<#= name #>(a);
229
+
<# } #>
230
+
<# foreach (var name in combinatorialBinary) { #>
231
+
public static System.Numerics.Complex <#= name #>(System.Numerics.Complex a, System.Numerics.Complex b) => AngouriMath.Numerics.CombinatorialFunctions.<#= name #>(a, b);
232
+
public static double <#= name #>(double a, double b) => AngouriMath.Numerics.CombinatorialFunctions.<#= name #>(a, b);
233
+
<# } #>
234
+
220
235
/// <summary>
221
236
/// True where <c>System.Numerics.Complex.IsNaN</c> is, spelled out because that overload is
222
237
/// .NET 7 and later and this assembly also targets netstandard2.0. A complex number is NaN
0 commit comments