math: add some more std.math re-exports

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-09-08 14:46:13 -07:00
parent f2f6df9f7b
commit 0538698bda

View file

@ -114,7 +114,12 @@ pub const nan_f64 = std.math.nan(f64);
// needed. // needed.
pub const sqrt = std.math.sqrt; pub const sqrt = std.math.sqrt;
pub const sin = std.math.sin;
pub const cos = std.math.cos;
pub const isNan = std.math.isNan; pub const isNan = std.math.isNan;
pub const pi = std.math.pi;
pub const clamp = std.math.clamp;
pub const log10 = std.math.log10;
/// 2/sqrt(π) /// 2/sqrt(π)
pub const two_sqrtpi = std.math.two_sqrtpi; pub const two_sqrtpi = std.math.two_sqrtpi;