| ... | @@ -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) = +-0 | 17 | /// - tanh(+-0) = +-0 |
| 18 | /// - sinh(+-inf) = +-1 | 18 | /// - tanh(+-inf) = +-1 |
| 19 | /// - sinh(nan) = nan | 19 | /// - tanh(nan) = nan |
| 20 | pub fn tanh(x: anytype) @TypeOf(x) { | 20 | pub fn tanh(x: anytype) @TypeOf(x) { |
| 21 | const T = @TypeOf(x); | 21 | const T = @TypeOf(x); |
| 22 | return switch (T) { | 22 | return switch (T) { |