authorgravatar for a@magicalunixgirl.moesaccharin <a@magicalunixgirl.moe> 2024-12-26 21:31:15+00:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-27 03:12:03+01:00
log30169d1d2eda12d0097de3aab213063a36c56a33
treeb801d652ab3e63f902bed2b02f6733ff921e9322
parent42dac40b3feeabe39b5f191d1e72d247327133ba

std.math.tanh: fix special cases comment


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/math/tanh.zig+3-3
...@@ -14,9 +14,9 @@ const maxInt = std.math.maxInt;...@@ -14,9 +14,9 @@ const maxInt = std.math.maxInt;
14/// Returns the hyperbolic tangent of x.14/// Returns the hyperbolic tangent of x.
15///15///
16/// Special Cases:16/// Special Cases:
17/// - sinh(+-0) = +-017/// - tanh(+-0) = +-0
18/// - sinh(+-inf) = +-118/// - tanh(+-inf) = +-1
19/// - sinh(nan) = nan19/// - tanh(nan) = nan
20pub fn tanh(x: anytype) @TypeOf(x) {20pub fn tanh(x: anytype) @TypeOf(x) {
21 const T = @TypeOf(x);21 const T = @TypeOf(x);
22 return switch (T) {22 return switch (T) {