Is there a way to calculate lg on a scientific calculator?

6k Views Asked by At

Taking introduction to algorithms for computer science this semester and wanted to know if there is a way to calculate lg on scientific calculator? Thank you.

3

There are 3 best solutions below

6
On BEST ANSWER

$lg(x) = \dfrac{\log x}{\log 2}$

where $\log$ is log base anything that is allowed.

0
On

HINT: In scientific calculator $\ln x=\log_{e} x$ & $\log x=\log_{10} x$

Logarithms is defined for positive real numbers, hence in general log can be calculated as follows $$\log_{a}(b)=\frac{\log b}{\log a}$$

0
On

The WP-34s, an offshoot of the HP-30 calculator, has a LG button. See the picture here: http://kk.org/cooltools/wp-34s-scientific-calculator/

You can buy it here: http://commerce.hpcalc.org/34s.php

To quote that site, "The WP 34S is the most powerful scientific (non-graphing) calculator on the market. It is not an HP product, but it is rather a community-created product based on an existing HP calculator platform."

A simulation of it is available for iPhone and iPad on iTunes.