Table of Contents

Method SolveCubic

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

SolveCubic(InputArray, OutputArray)

finds real roots of a cubic polynomial

public static int SolveCubic(InputArray coeffs, OutputArray roots)

Parameters

coeffs InputArray

The equation coefficients, an array of 3 or 4 elements

roots OutputArray

The destination array of real roots which will have 1 or 3 elements

Returns

int