cubeRoot
import { cubeRoot } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSval
FUNCTIONcubeRoot
RETURN TYPEnumber
Computes the cube root of an argument.
The function cubeRoot computes \sqrt[3]{\texttt{val}}. Negative arguments are handled correctly.
NaN and Inf are not handled. The accuracy approaches the maximum possible accuracy for
single-precision data.
cubeRoot(val: number): number;valA function argument.
Returns
The number result.
These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.