/ Home / math / discrete /

  •  [Go Up]
  •  image/

discrete

Let Θ be the heaviside step function:

Θ(a):=1,a≥0
θ(1)=1
θ(0)=1
θ(-1)=0
θ(-100)=0
θ(100)=1

Then, the maximum function max(a,b) that returns the greater of the two arguments, can be written as:

max(a,b):=b+(a-b)⋅Θ(a-b)

Author: Danny (remove the ".nospam" to send)

Last modification on: Sat, 04 May 2024 .