atomica.function_parser.sdiv

atomica.function_parser.sdiv(numerator, denominator)[source]

Safe division by zero (return 0)

This helper function returns division where 0/0=0 rather than np.nan.

Parameters:
  • numerator – The numerator of the operation (float, array)

  • denominator – The denominator of the operation (float, array)

Returns:

Array