Average Error: 34.5 → 34.5
Time: 2.1s
Precision: binary64
\[\log \left(1 + \frac{x}{y}\right)\]
\[\log \left(1 + \frac{x}{y}\right)\]
\log \left(1 + \frac{x}{y}\right)
\log \left(1 + \frac{x}{y}\right)
double code(double x, double y) {
	return ((double) log(((double) (1.0 + ((double) (x / y))))));
}
double code(double x, double y) {
	return ((double) log(((double) (1.0 + ((double) (x / y))))));
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 34.5

    \[\log \left(1 + \frac{x}{y}\right)\]
  2. Final simplification34.5

    \[\leadsto \log \left(1 + \frac{x}{y}\right)\]

Reproduce

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