pub fn solve_cubic(coeffs: &dyn core::ToInputArray, roots: &mut dyn core::ToOutputArray) -> Result<i32> {
	input_array_arg!(coeffs);
	output_array_arg!(roots);
	unsafe { sys::cv_solveCubic_const__InputArrayX_const__OutputArrayX(coeffs.as_raw__InputArray(), roots.as_raw__OutputArray()) }.into_result()
}
/// Finds the real roots of a cubic equation.
/// 
/// The function solveCubic finds the real roots of a cubic equation:
/// *   if coeffs is a 4-element vector:
/// ![block formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bcoeffs%7D%20%5B0%5D%20x%5E3%20%2B%20%20%5Ctexttt%7Bcoeffs%7D%20%5B1%5D%20x%5E2%20%2B%20%20%5Ctexttt%7Bcoeffs%7D%20%5B2%5D%20x%20%2B%20%20%5Ctexttt%7Bcoeffs%7D%20%5B3%5D%20%3D%200)
/// *   if coeffs is a 3-element vector:
/// ![block formula](https://latex.codecogs.com/png.latex?x%5E3%20%2B%20%20%5Ctexttt%7Bcoeffs%7D%20%5B0%5D%20x%5E2%20%2B%20%20%5Ctexttt%7Bcoeffs%7D%20%5B1%5D%20x%20%2B%20%20%5Ctexttt%7Bcoeffs%7D%20%5B2%5D%20%3D%200)
/// 
/// The roots are stored in the roots array.
/// ## Parameters
/// * coeffs: equation coefficients, an array of 3 or 4 elements.
/// * roots: output array of real roots that has 1 or 3 elements.
/// ## Returns
/// number of real roots. It can be 0, 1 or 2.
Finds the real roots of a cubic equation.
The function solveCubic finds the real roots of a cubic equation:
if coeffs is a 4-element vector:
[block formula]
if coeffs is a 3-element vector:
[block formula]

The roots are stored in the roots array.
Finds the real roots of a cubic equation . The function solveCubic finds the real roots of a cubic equation : if coeffs is a 4 - element vector : [ block formula ] if coeffs is a 3 - element vector : [ block formula ] The roots are stored in the roots array .
pub fn solve_cubic(coeffs: &dyn core::ToInputArray, roots: &mut dyn core::ToOutputArray) -> Result<i32> {
	input_array_arg!(coeffs);
	output_array_arg!(roots);
	unsafe { sys::cv_solveCubic_const__InputArrayX_const__OutputArrayX(coeffs.as_raw__InputArray(), roots.as_raw__OutputArray()) }.into_result()
}
pub fn solve_cubic ( coeffs : & dyn core :: ToInputArray , roots : & mut dyn core :: ToOutputArray ) -> Result < i32 > { input_array_arg ! ( coeffs ) ; output_array_arg ! ( roots ) ; unsafe { sys :: cv_solveCubic_const__InputArrayX_const__OutputArrayX ( coeffs . as_raw__InputArray ( ) , roots . as_raw__OutputArray ( ) ) } . into_result ( ) }
Finds the real roots of a cubic equation.
Finds the real roots of a cubic equation .
number of real roots.
number of real roots .
coeffs
&dyn core::ToInputArray
roots
&mut dyn core::ToOutputArray