Add documentation for math.log()

This commit is contained in:
Alec Delaney 2022-04-19 11:46:39 -04:00
parent 6425e937b5
commit 2e2e3ad612
1 changed files with 5 additions and 0 deletions

View File

@ -157,6 +157,11 @@ STATIC NORETURN void math_error(void) {
//| """Return ``x * (2**exp)``.""" //| """Return ``x * (2**exp)``."""
//| ... //| ...
//| //|
//| def log(x: float, base: float = math.e) -> float:
//| """Return the logarithm of x to the given base. If base is not specified,
//| returns the natural logarithm (base e) of x""
//| ...
//|
//| def modf(x: float) -> Tuple[float, float]: //| def modf(x: float) -> Tuple[float, float]:
//| """Return a tuple of two floats, being the fractional and integral parts of //| """Return a tuple of two floats, being the fractional and integral parts of
//| ``x``. Both return values have the same sign as ``x``.""" //| ``x``. Both return values have the same sign as ``x``."""