Average Error: 0.4 → 0.4
Time: 2.1s
Precision: binary64
\[\frac{\log x}{\log b}\]
\[\frac{\log x}{\log b}\]
\frac{\log x}{\log b}
\frac{\log x}{\log b}
double code(double x, double b) {
	return ((double) (((double) log(x)) / ((double) log(b))));
}
double code(double x, double b) {
	return ((double) (((double) log(x)) / ((double) log(b))));
}

Error

Bits error versus x

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.4

    \[\frac{\log x}{\log b}\]
  2. Final simplification0.4

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

Reproduce

herbie shell --seed 2020152 
(FPCore (x b)
  :name "(/ (log x) (log b))"
  :precision binary64
  (/ (log x) (log b)))