Skip to content
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

Add arbitrary base math log #7409

Merged
merged 1 commit into from
Dec 9, 2022
Merged

Conversation

sholderbach
Copy link
Member

Description

Adds new command math log that takes as a required positional argument a base.

Specialized for math log 2 and math log 10 for better performance and precision that matches the expectations there. This leads to discontinuities in numerical error but should make a better trade-off for common usecases.

Tests + Formatting

Example testing of the happy path

Adds new command `math log` that takes as a required positional argument
a base.
Specialized for `math log 2` and `math log 10` for better performance
and precision that matches the expectations there.
This leads to discontinuities in numerical error but should make a
better trade-off for common usecases.
@sholderbach sholderbach merged commit c01d44e into nushell:main Dec 9, 2022
@sholderbach sholderbach deleted the arbitrary-log branch December 9, 2022 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant