Change value of base in math.log to e

This commit is contained in:
Alec Delaney 2022-04-19 13:27:46 -04:00
parent 20cc40a30f
commit 211d42f58d
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 = 2.71828) -> float:
//| def log(x: float, base: float = e) -> float:
//| """Return the logarithm of x to the given base. If base is not specified,
//| returns the natural logarithm (base e) of x"""
//| ...