aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/complex/sinh.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-04-12 06:37:12 -0400
committerGitHub <noreply@github.com>2022-04-12 06:37:12 -0400
commit17631cb2d30bf2d7b10401cf8f784a599bade5c5 (patch)
tree8ba131f77ef38c531711c7b1147c59e993cab628 /lib/std/math/complex/sinh.zig
parent17daba1806896a2e45a2c1b1969a540f44a64d86 (diff)
parent9b5c02022f997d01bcfcfd79ba4c721af1bd9a6c (diff)
downloadzig-17631cb2d30bf2d7b10401cf8f784a599bade5c5.tar.gz
zig-17631cb2d30bf2d7b10401cf8f784a599bade5c5.zip
Merge pull request #11401 from viriuwu/float-category-misc
math: simplify inf (+f80 support), deprecate old constants (followup for #10133)
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));