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.
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>ε</html>")); output Boolean equal "<html><code>true</code>, if all of the entries are equal</html>"; end arrayRealEqual;