.FCSys.Utilities.arrayRealEqual

Information

Examples:
arrayRealEqual({1,2}, {1,2}) returns true, but arrayRealEqual({1,2}, {1,2.001}) and arrayRealEqual({1,2}, {1,2,3}) each return false.

Interface

function arrayRealEqual
  extends Modelica.Icons.Function;
  input Real u1[:] "First real vector" annotation(
    Dialog(__Dymola_label = "<html><i>u</i><sub>2</sub></html>"));
  input Real u2[:] "Second real vector" annotation(
    Dialog(__Dymola_label = "<html><i>u</i><sub>2</sub></html>"));
  input Real epsilon = 1e-7 "Error tolerance" annotation(
    Dialog(__Dymola_label = "<html>&epsilon;</html>"));
  output Boolean equal "<html><code>true</code>, if all of the entries are equal</html>";
end arrayRealEqual;

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