mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Add arbitrary base math log
(#7409)
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. Example testing of the happy path
This commit is contained in:
committed by
GitHub
parent
5a0e86aa70
commit
c01d44e37d
@ -422,6 +422,7 @@ pub fn create_default_context() -> EngineState {
|
||||
MathTau,
|
||||
MathEuler,
|
||||
MathLn,
|
||||
MathLog,
|
||||
};
|
||||
|
||||
// Network
|
||||
|
Reference in New Issue
Block a user