mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 14:25:16 +00:00
std.math.tanh: fix special cases comment
This commit is contained in:
parent
42dac40b3f
commit
30169d1d2e
@ -14,9 +14,9 @@ const maxInt = std.math.maxInt;
|
||||
/// Returns the hyperbolic tangent of x.
|
||||
///
|
||||
/// Special Cases:
|
||||
/// - sinh(+-0) = +-0
|
||||
/// - sinh(+-inf) = +-1
|
||||
/// - sinh(nan) = nan
|
||||
/// - tanh(+-0) = +-0
|
||||
/// - tanh(+-inf) = +-1
|
||||
/// - tanh(nan) = nan
|
||||
pub fn tanh(x: anytype) @TypeOf(x) {
|
||||
const T = @TypeOf(x);
|
||||
return switch (T) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user