specless.automaton.utils.logx

specless.automaton.utils.logx(x, base=2)[source]

Calculates the logarithm of a number with a specified base.

Parameters:
  • x (float or array_like) – The number(s) for which the logarithm is to be calculated.

  • base (float, optional) – The base of the logarithm. Default is 2.

Returns:

The logarithm(s) of the input number(s).

Return type:

float or array_like