.TRANSFORM.Math.cubicRoots_Real

Information

Uses ccubicRoots but only returns on the real portion of the roots (i.e., roots[*] = Real). If a root has a imaginary portion greater than machine tolerance than a dummy value is returned for that root.

nRoots helps to identify the number of expected real roots based on the result from the polynomial discriminant, D.

Interface

function cubicRoots_Real
  input Real a;
  input Real b;
  input Real c;
  input Real d;
  output Real[3] roots "Real roots";
  output Real nRoots "Number of distinct real solutions expected";
end cubicRoots_Real;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos