| author | |
| committer | |
| log | 30169d1d2eda12d0097de3aab213063a36c56a33 |
| tree | b801d652ab3e63f902bed2b02f6733ff921e9322 |
| parent | 42dac40b3feeabe39b5f191d1e72d247327133ba |
1 files changed, 3 insertions(+), 3 deletions(-)
lib/std/math/tanh.zig+3-3| ... | ... | @@ -14,9 +14,9 @@ const maxInt = std.math.maxInt; |
| 14 | 14 | /// Returns the hyperbolic tangent of x. |
| 15 | 15 | /// |
| 16 | 16 | /// Special Cases: |
| 17 | /// - sinh(+-0) = +-0 | |
| 18 | /// - sinh(+-inf) = +-1 | |
| 19 | /// - sinh(nan) = nan | |
| 17 | /// - tanh(+-0) = +-0 | |
| 18 | /// - tanh(+-inf) = +-1 | |
| 19 | /// - tanh(nan) = nan | |
| 20 | 20 | pub fn tanh(x: anytype) @TypeOf(x) { |
| 21 | 21 | const T = @TypeOf(x); |
| 22 | 22 | return switch (T) { |