Skip to content

Add documentation for math.log() #6296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions shared-bindings/math/__init__.c
Original file line number Diff line number Diff line change
Expand Up @@ -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``."""
Expand Down