aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/complex/sinh.zig
diff options
context:
space:
mode:
authorviri <hi@viri.moe>2022-04-06 20:49:05 -0600
committerviri <hi@viri.moe>2022-04-07 05:04:38 -0600
commite46c61250332e615afc5aed6e4ebe57b8e6713eb (patch)
tree5ffbc2acac6c03becd253c7d4308eb33a4721025 /lib/std/math/complex/sinh.zig
parent5d6a5a123676ada3ccd229f31dc8855aabaf8057 (diff)
downloadzig-e46c61250332e615afc5aed6e4ebe57b8e6713eb.tar.gz
zig-e46c61250332e615afc5aed6e4ebe57b8e6713eb.zip
use math/float.zig everywhere
Diffstat (limited to 'lib/std/math/complex/sinh.zig')
-rw-r--r--lib/std/math/complex/sinh.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/math/complex/sinh.zig b/lib/std/math/complex/sinh.zig
index ed344999ee..851af3e62e 100644
--- a/lib/std/math/complex/sinh.zig
+++ b/lib/std/math/complex/sinh.zig
@@ -79,7 +79,7 @@ fn sinh32(z: Complex(f32)) Complex(f32) {
if (iy >= 0x7f800000) {
return Complex(f32).init(x * x, x * (y - y));
}
- return Complex(f32).init(x * math.cos(y), math.inf_f32 * math.sin(y));
+ return Complex(f32).init(x * math.cos(y), math.inf(f32) * math.sin(y));
}
return Complex(f32).init((x * x) * (y - y), (x + x) * (y - y));
@@ -146,7 +146,7 @@ fn sinh64(z: Complex(f64)) Complex(f64) {
if (iy >= 0x7ff00000) {
return Complex(f64).init(x * x, x * (y - y));
}
- return Complex(f64).init(x * math.cos(y), math.inf_f64 * math.sin(y));
+ return Complex(f64).init(x * math.cos(y), math.inf(f64) * math.sin(y));
}
return Complex(f64).init((x * x) * (y - y), (x + x) * (y - y));