Algosim documentation: SameValue


Tests if two objects are equal (with epsilon).



If x and y are any two objects, then SameValue(x, y, ε) is true iff x and y are equal, with floating-point values being compared with epsilon ε. SameValue should be used to compare numeric objects such as numbers, vectors, matrices, and lists containing such elements; not all object types support epsilon comparison.

If omitted, a default (but non-zero) epsilon will be used.

The binary operator is implemented by the SameValue function. It will always use the default (but non-zero) epsilon.

See also