Average Error: 0.6 → 0.6
Time: 2.0s
Precision: binary64
\[\frac{1}{\log y - \log x}\]
\[\frac{1}{\log y - \log x}\]
\frac{1}{\log y - \log x}
\frac{1}{\log y - \log x}
double code(double y, double x) {
	return ((double) (1.0 / ((double) (((double) log(y)) - ((double) log(x))))));
}
double code(double y, double x) {
	return ((double) (1.0 / ((double) (((double) log(y)) - ((double) log(x))))));
}

Error

Bits error versus y

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{1}{\log y - \log x}\]
  2. Final simplification0.6

    \[\leadsto \frac{1}{\log y - \log x}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (y x)
  :name "(/ 1 (- (log y) (log x)))"
  :precision binary64
  (/ 1.0 (- (log y) (log x))))