29 lines
1.2 KiB
Text
29 lines
1.2 KiB
Text
flowrs-math
|
|
Copyright 2026 David Charlot and the flowRS contributors
|
|
|
|
Licensed under either of the Apache License, Version 2.0 (LICENSE-APACHE) or the MIT
|
|
license (LICENSE-MIT), at your option. This crate is part of flowRS.
|
|
|
|
Third-party material:
|
|
|
|
src/math.rs is a port of the f64 functions of Rust's `libm` crate 0.2.16
|
|
(https://github.com/rust-lang/compiler-builtins, crate `libm`), MIT
|
|
(LICENSES/libm-MIT.txt):
|
|
|
|
rust-lang/libm: Copyright (c) 2018 Jorge Aparicio and the libm contributors.
|
|
|
|
libm's functions are themselves ports of musl libc (MIT; Copyright (c) 2005-2020 Rich
|
|
Felker, et al.), of FreeBSD's msun, which is Sun's fdlibm, under this notice:
|
|
|
|
Copyright (C) 1993, 2004 by Sun Microsystems, Inc. All rights reserved.
|
|
|
|
Developed at SunSoft, a Sun Microsystems, Inc. business.
|
|
Permission to use, copy, modify, and distribute this
|
|
software is freely granted, provided that this notice
|
|
is preserved.
|
|
|
|
and, for cbrt, of CORE-MATH's binary64 cube root (MIT; Copyright (c) 2021-2022 Alexei
|
|
Sibidanov), as Trevor Gross ported it to Rust in 2025.
|
|
|
|
flowRS's own: powi (repeated squaring in __powidf2's order), log (ln(x) / ln(base)) and
|
|
the f32 functions (the f64 function rounded once).
|