Skip to content

Commit

Permalink
math: add some more std.math re-exports
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Sep 8, 2023
1 parent f2f6df9 commit 0538698
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/math/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ pub const nan_f64 = std.math.nan(f64);
// needed.

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 pi = std.math.pi;
pub const clamp = std.math.clamp;
pub const log10 = std.math.log10;

/// 2/sqrt(π)
pub const two_sqrtpi = std.math.two_sqrtpi;
Expand Down

0 comments on commit 0538698

Please sign in to comment.