This is the first time I am using bc. I want to calculate the log (base 10) of a number. How do I this?
相关问题
- Why should we check WIFEXITED after wait in order
- UNIX Bash - Removing double quotes from specific s
- bash delete line condition
- Trying to make a permanent Alias - UNIX
- Generating signed XPI via jpm failed
the logarithm of x in respect to base b can be computed given any logarithm function to an arbitrary base k -- that's actually pretty cool!
e.g.
if b=10:
and -l in bc enables the math library
so that's why this works: