Skip to content

cubeRoot

Core and matricesfunctionOpenCV 5.0.0
import { cubeRoot } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSval
FUNCTIONcubeRoot
RETURN TYPEnumber
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
val

A 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.