Y
Hacker News
new
|
ask
|
show
|
jobs
by
zimpenfish
841 days ago
Or you can use the `bc` that's shipped with macOS.
echo 'l(f(52))/l(2)' | bc -l 225.58100312370276194868
(`l(x)` is natural log, hence the `/l(2)` to convert to `log2`)
Annoyingly, GNU `bc` doesn't have `f(x)`.