Compare

Given two real numbers x and y, compare function is defined as

compare(x,y) = {left1,  if  x > y-1,  if  x < y0,  if  x = y

Syntax

compare(Real, Real)

Description

Given two reals xLaTeXx and yLaTeXy, returns its comparison as defined above.

calc.compare.calc.png