AngouriMath

Navigation

← Back to list of members

Factorial​(AngouriMath.​Entity.​Number.​Complex)

 Method (no overloads)

Summary

Calculates the factorial of the specified Complex.

This implementation uses
Spouge's approximation to calculate the factorial for non-integer values.
This involves calculating a series of constants that depend on the desired precision.
Since this constant calculation is quite expensive (especially for higher precisions),
the constants for a specific precision will be cached
and subsequent calls to this method with the same precision will be much faster.
It is therefore recommended to do one call to this method with the standard precision of your application during the startup phase
and to avoid calling it with many different precisions.
See: Wikipedia: Factorial - Extension of factorial to non-integer values of argument

Parameter "x"

The Complex

Returns

The factorial Complex

























Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1534 pages online