NumericAnnex supplements the numeric facilities provided in the Swift standard library.
Features:
- The exponentiation operator ** and the compound assignment operator **=.
- Extension methods for BinaryInteger exponentiation, square root, cube root, greatest common divisor, and least common multiple.
- Math, a protocol for signed numeric types that support elementary functions.
- Real, a protocol for floating-point types that support elementary functions and a selection of special functions.
- PRNG, a protocol for pseudo-random number generators.
- Rational, a value type to represent rational values which supports division by zero.
- Complex, a value type to represent complex values in Cartesian form.
- Random and Random.Xoroshiro, two reference types implementing efficient pseudo-random number generators.

Leave a Reply
You must be logged in to post a comment.