DELTA (Number1, Number2?) DELTA (Number1; Number2?)

Number1

Number Number

The first number.

Number2

Number Number (optional)

The second number. If omitted, it is assumed to be 0.

Returns

Number Number

1 Or 0.

Returns 1 if both numbers are equal and 0 otherwise. This function is an implementation of the (mathematical) Kronecker delta function.

Examples

DELTA (4, 5)
DELTA (4; 5)

Returns 0.

DELTA (5, 5)
DELTA (5; 5)

Returns 1.

DELTA (0)
DELTA (0)

Returns 1.

SUM ( DELTA ({ 3, 5, 7 }, 5))
SUM ( DELTA ({ 3; 5; 7 }; 5))

Returns 1, the number of array elements that are equal to 5.

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell