aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math.zig
diff options
context:
space:
mode:
authorPauloCampana <101306295+PauloCampana@users.noreply.github.com>2024-01-09 19:53:47 -0300
committerGitHub <noreply@github.com>2024-01-09 14:53:47 -0800
commitfcc0c5ddc7a8d25f0b12f51b4b244bc97fc549e4 (patch)
tree6e1aad3bcd2f12f61dfb6bb6f0be3523d5d45041 /lib/std/math.zig
parent7320b24e0ea768cf8dffaaeaa058db8e9134b444 (diff)
downloadzig-fcc0c5ddc7a8d25f0b12f51b4b244bc97fc549e4.tar.gz
zig-fcc0c5ddc7a8d25f0b12f51b4b244bc97fc549e4.zip
Add std.math.gamma and lgamma (#18449)
See #7212
Diffstat (limited to 'lib/std/math.zig')
-rw-r--r--lib/std/math.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig
index 88ee1223c6..47ae755da0 100644
--- a/lib/std/math.zig
+++ b/lib/std/math.zig
@@ -269,6 +269,8 @@ pub const sinh = @import("math/sinh.zig").sinh;
pub const cosh = @import("math/cosh.zig").cosh;
pub const tanh = @import("math/tanh.zig").tanh;
pub const gcd = @import("math/gcd.zig").gcd;
+pub const gamma = @import("math/gamma.zig").gamma;
+pub const lgamma = @import("math/gamma.zig").lgamma;
/// Sine trigonometric function on a floating point number.
/// Uses a dedicated hardware instruction when available.
@@ -392,6 +394,8 @@ test {
_ = cosh;
_ = tanh;
_ = gcd;
+ _ = gamma;
+ _ = lgamma;
_ = complex;
_ = Complex;