Unitize
Unitize[x] gives 0 when x is zero, and 1 when x has any other numerical value.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.
Unitize[x] gives 0 when x is zero, and 1 when x has any other numerical value.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.