Nimony

The road to Nim 3

power

nimony/lib/std/math/power.nim

These implementations are ported from the Rust compiler-builtins libm library. Original sources: - sqrt: musl src/math/sqrt.c (direct port, correctly rounded) - cbrt (f32): FreeBSD /usr/src/lib/msun/src/scbrtf.c - cbrt (f64): core-math/src/binary64/cbrt/cbrt.c (Copyright (c) 2021-2022 Alexei Sibidanov) - pow (f32): FreeBSD /usr/src/lib/msun/src/epowf.c (Conversion to float by Ian Lance Taylor, Cygnus Support) - pow (f64): FreeBSD /usr/src/lib/msun/src/e_pow.c (Copyright (C) 2004 by Sun Microsystems, Inc.) - hypot (f32/f64): core-math (Copyright (c) 2022 Alexei Sibidanov)