Average Error: 2.7 → 2.7
Time: 734.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.7

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

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

Reproduce

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