qat.core.variables.heaviside

qat.core.variables.heaviside(x, lower_bound, upper_bound)

Maximum of two real numbers

from qat.core.variables import heaviside

print(heaviside(1.3, -1.8, 2.5))
print(heaviside(5.2, -1.8, 2.5))
1
0
Parameters
Returns

heaviside result

Return type

ArithExpression or number