Returns the arc-tangent of x.
Special Cases:
pub fn atan(x: anytype) @TypeOf(x)
pub fn atan(x: anytype) @TypeOf(x) {
const T = @TypeOf(x);
switch (@typeInfo(T)) {
.float => |info| switch (info.bits) {
16 => return atanBinary16(x),
32 => return atanBinary32(x),
64 => return atanBinary64(x),
80 => return atanExtended80(x),
128 => return atanBinary128(x),
else => comptime unreachable,
},
.vector => |info| switch (info.child) {
f32 => return atanBinary32Vec(info.len, x),
f64 => return atanBinary64Vec(info.len, x),
else => @compileError("unimplemented"),
},
else => comptime unreachable,
}
}