Average Error: 2.6 → 2.6
Time: 696.0ms
Precision: binary64
\[\frac{y}{1 + a \cdot x}\]
\[\frac{y}{1 + a \cdot x}\]
\frac{y}{1 + a \cdot x}
\frac{y}{1 + a \cdot x}
double code(double y, double a, double x) {
	return ((double) (y / ((double) (1.0 + ((double) (a * x))))));
}
double code(double y, double a, double x) {
	return ((double) (y / ((double) (1.0 + ((double) (a * x))))));
}

Error

Bits error versus y

Bits error versus a

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 2.6

    \[\frac{y}{1 + a \cdot x}\]
  2. Final simplification2.6

    \[\leadsto \frac{y}{1 + a \cdot x}\]

Reproduce

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