Change signature of math.log() to use value for base

This commit is contained in:
Alec Delaney 2022-04-19 12:57:42 -04:00
parent 2e2e3ad612
commit 63c18ce748
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ STATIC NORETURN void math_error(void) {
//| """Return ``x * (2**exp)``."""
//| ...
//|
//| def log(x: float, base: float = math.e) -> float:
//| def log(x: float, base: float = 2.71828) -> float:
//| """Return the logarithm of x to the given base. If base is not specified,
//| returns the natural logarithm (base e) of x""
//| ...