diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-04-12 06:37:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-12 06:37:12 -0400 |
| commit | 17631cb2d30bf2d7b10401cf8f784a599bade5c5 (patch) | |
| tree | 8ba131f77ef38c531711c7b1147c59e993cab628 /lib/std/math/complex/sinh.zig | |
| parent | 17daba1806896a2e45a2c1b1969a540f44a64d86 (diff) | |
| parent | 9b5c02022f997d01bcfcfd79ba4c721af1bd9a6c (diff) | |
| download | zig-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.zig | 4 |
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)); |
