.DroneLibrary.Blocks.div0protect

Information

This function computes c=a/b. It avoids divisions by zero by replacing a/b with a/eps or a/b whichever of the divisors is larger.

Interface

function div0protect
  extends Modelica.Icons.Function;
  import eps = Modelica.Constants.small;
  input Real a "Dividend";
  input Real b "Divisor";
  output Real c "Quotient";
end div0protect;

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