We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42dac40 commit 30169d1Copy full SHA for 30169d1
lib/std/math/tanh.zig
@@ -14,9 +14,9 @@ const maxInt = std.math.maxInt;
14
/// Returns the hyperbolic tangent of x.
15
///
16
/// Special Cases:
17
-/// - sinh(+-0) = +-0
18
-/// - sinh(+-inf) = +-1
19
-/// - sinh(nan) = nan
+/// - tanh(+-0) = +-0
+/// - tanh(+-inf) = +-1
+/// - tanh(nan) = nan
20
pub fn tanh(x: anytype) @TypeOf(x) {
21
const T = @TypeOf(x);
22
return switch (T) {
0 commit comments