std.math: Add least common multiple (lcm)

This commit is contained in:
oittaa
2025-03-24 16:07:40 +01:00
committed by GitHub
parent 9f8d938d38
commit c1db72cdbc
2 changed files with 31 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ 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 lcm = @import("math/lcm.zig").lcm;
pub const gamma = @import("math/gamma.zig").gamma;
pub const lgamma = @import("math/gamma.zig").lgamma;
@@ -395,6 +396,7 @@ test {
_ = cosh;
_ = tanh;
_ = gcd;
_ = lcm;
_ = gamma;
_ = lgamma;