InvalidBaseError(base)
Source¶
Bases: NumdaplotError
Raised when a logarithm base is lower than or equal to 0, or equal to 1.
Added in version 0.1.0
Parameters:
-
base(float)The rejected base.
Attributes:
-
baseThe rejected base.
Examples:
import numdaplot as ndp
try:
ndp.Logarithm(base=1)
except ndp.InvalidBaseError as error:
print(error)
# Expected a logarithm base greater than 0 and different from 1, got 1.