functionarrayRealEqual
Check if two
Real vectors are nearly equalExtends from Modelica.Icons.Function (Icon for functions).
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.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | u1 | First real vector | |
| Real[:] | u2 | Second real vector | |
| Real | epsilon | 1e-7 | Error tolerance |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | equal | <html><code>true</code>, if all of the entries are equal</html> |