Library

universal v5.10.0

Versionv5.10.0
Stars★ 504
Released2026-10-19

Large collection of number systems providing custom arithmetic for mixed-precision algorithm development and optimization for AI, Machine Learning, Computer Vision, Signal Processing, CAE, EDA, control, optimization, estimation, and approximation.

Release notes

## [5.10.0] - 2026-10-19

### Behaviour changes

- **dd_cascade**: dd_cascade/td_cascade/qd_cascade exp(x) is finite for 709.0 <= x < 709.78 (was +inf) and nonzero for -745.13 < x <= -709.0 (was 0) ([#1721](https://github.com/stillwater-sc/universal/pull/1721))
- **math**: dd/qd/dd_cascade/td_cascade/qd_cascade math functions no longer print to std::cerr; domain errors return a quiet NaN (was a signalling NaN in sqrt, nroot, asin, acos) with errno = EDOM, sin/cos/sincos/tan of a finite argument too large to reduce return NaN with errno = ERANGE (sincos crashed), atan2(+-0, +-0) and npwr(0, 0) follow std (were NaN) ([#1722](https://github.com/stillwater-sc/universal/pull/1722))
- **math**: qd sqrt and trigonometry included through core.hpp + mathlib.hpp (without qd.hpp) are now full precision (were double); the DOUBLEDOUBLE/QUADDOUBLE/DD_CASCADE/TD_CASCADE/QD_CASCADE_NATIVE_SQRT and QUADDOUBLE_NATIVE_TRIGONOMETRY switches are removed, and with them qd's shim-only sec, csc and cot ([#1726](https://github.com/stillwater-sc/universal/pull/1726))
- **math**: dd/qd/dd_cascade/td_cascade/qd_cascade sin, cos, sincos and tan are now full precision for every finite argument (results change for |x| > pi/4, most visibly for large |x| and near multiples of pi/2); arguments past ~1e100 return the correct value instead of NaN with ERANGE, and the <type>_trig_argument_too_large exceptions are removed ([#1727](https://github.com/stillwater-sc/universal/pull/1727))
- **cfloat**: cfloat sqrt is now correctly rounded for every configuration (it misrounded up to a quarter of the arguments for 25 <= fbits <= 52, and wider formats in the last ulp); a negative argument sets errno = EDOM and returns a quiet NaN without printing; CFLOAT_NATIVE_SQRT is removed; converting a subnormal cfloat into a cfloat of 64 or more fraction bits now gives the right value ([#1728](https://github.com/stillwater-sc/universal/pull/1728))
- **lns**: lns sqrt is now exact in the exponent domain (it went through double, capping precision at 53 bits and deciding every tie by rounding noise); a negative argument sets errno = EDOM and returns NaN without printing; LNS_NATIVE_SQRT is removed ([#1729](https://github.com/stillwater-sc/universal/pull/1729))
- **fixpnt**: fixpnt sqrt is now correctly rounded (the default Babylonian iteration and the through-double path both missed); a negative argument sets errno = EDOM and returns 0 unless FIXPNT_THROW_ARITHMETIC_EXCEPTION is set (it threw unconditionally and printed to std::cout); FIXPNT_NATIVE_SQRT is removed ([#1730](https://github.com/stillwater-sc/universal/pull/1730))
- **dfloat**: dfloat sqrt is now correctly rounded in decimal (decimal64 and decimal128 roots were wrong in their trailing digits); an exact root has the preferred exponent floor(q/2); a negative argument sets errno = EDOM and returns a quiet NaN without printing; DFLOAT_NATIVE_SQRT is removed ([#1731](https://github.com/stillwater-sc/universal/pull/1731))
- **edecimal**: edecimal sqrt is now the exact floor root at any size (it went through double, so it was wrong past ~16 digits and inf past ~308); a negative argument sets errno = EDOM and returns 0 without printing; EDECIMAL_NATIVE_SQRT is removed ([#1732](https://github.com/stillwater-sc/universal/pull/1732))
- **erational**: erational sqrt returns the exact root when there is one and otherwise the nearest dyadic at 106 bits by default (it went through double, 53 bits at most), with a new precision argument sqrt(x, bits); it no longer prints on every call; a negative argument sets errno = EDOM and returns NaN unless the throw flag is set; ERATIONAL_NATIVE_SQRT is removed ([#1733](https://github.com/stillwater-sc/universal/pull/1733))
- **dfloat**: dfloat ==, !=, <= and >= compare values: 250e-2 == 25e-1 and 0e-6 == 0 are now true ([#1736](https://github.com/stillwater-sc/universal/pull/1736))
- **efloat**: efloat exp/log/pow/hyperbolic and trigonometric functions now return results accurate to the full prec…

Share this resource


Discovered 2026-10-20 Source GitHub Archive 2026-10 →