Average Error: 0.6 → 0.6
Time: 934.0ms
Precision: binary64
\[\frac{\log x}{\log 10}\]
\[\frac{\log x}{\log 10}\]
\frac{\log x}{\log 10}
\frac{\log x}{\log 10}
double code(double x) {
	return ((double) (((double) log(x)) / ((double) log(10.0))));
}
double code(double x) {
	return ((double) (((double) log(x)) / ((double) log(10.0))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.6

    \[\frac{\log x}{\log 10}\]
  2. Final simplification0.6

    \[\leadsto \frac{\log x}{\log 10}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(/ (log x) (log 10))"
  :precision binary64
  (/ (log x) (log 10.0)))