mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 11:31:15 -03:00
math: remove logb
As discussed in #12112, this is a false friend (the libc logb() does something else), and without keyword arguments or at least function overloading, this is hard to read. Better use "/ log(base)" trick.
This commit is contained in:
@@ -153,11 +153,9 @@ Functions
|
||||
``ln``
|
||||
the base-e logarithm
|
||||
``log`` or ``log10``
|
||||
the base-10 logarithm
|
||||
the base-10 logarithm. To compute the logarithm for an arbitrary base ``b``, use ``log(x) / log(b)``.
|
||||
``log2``
|
||||
the base-2 logarithm
|
||||
``logb(b,x)``
|
||||
returns the logarithm with base b of x
|
||||
``max``
|
||||
returns the largest of the given numbers - this takes an arbitrary number of arguments (but at least one)
|
||||
``min``
|
||||
|
||||
Reference in New Issue
Block a user