pub fn cbrt(x: anytype) @TypeOf(x)
Returns the cube root of x.
Special Cases:
x
17 18 19 20 21 22 23 24
pub fn cbrt(x: anytype) @TypeOf(x) { const T = @TypeOf(x); return switch (T) { f32 => cbrt32(x), f64 => cbrt64(x), else => @compileError("cbrt not implemented for " ++ @typeName(T)), }; }
Returns the cube root of x.
Special Cases: