Merge pull request #6296 from tekktrik/doc/add-log-documentation

Add documentation for math.log()
This commit is contained in:
Dan Halbert 2022-04-19 17:13:59 -04:00 committed by GitHub
commit 4c240d733d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,6 +157,11 @@ STATIC NORETURN void math_error(void) {
//| """Return ``x * (2**exp)``."""
//| ...
//|
//| 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"""
//| ...
//|
//| def modf(x: float) -> Tuple[float, float]:
//| """Return a tuple of two floats, being the fractional and integral parts of
//| ``x``. Both return values have the same sign as ``x``."""