discretize.utils.is_scalar

discretize.utils.is_scalar(f)[source]

Determine if the input argument is a scalar.

The function is_scalar returns True if the input is an integer, float or complex number. The function returns False otherwise.

Parameters
f :

Any input quantity

Returns
bool :
  • True if the input argument is an integer, float or complex number

  • False otherwise