Average Error: 39.4 → 39.4
Time: 1.9s
Precision: binary64
\[\frac{1 - e^{x \cdot y}}{x}\]
\[\frac{1 - e^{x \cdot y}}{x}\]
\frac{1 - e^{x \cdot y}}{x}
\frac{1 - e^{x \cdot y}}{x}
double code(double x, double y) {
	return ((double) (((double) (1.0 - ((double) exp(((double) (x * y)))))) / x));
}
double code(double x, double y) {
	return ((double) (((double) (1.0 - ((double) exp(((double) (x * y)))))) / x));
}

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 39.4

    \[\frac{1 - e^{x \cdot y}}{x}\]
  2. Final simplification39.4

    \[\leadsto \frac{1 - e^{x \cdot y}}{x}\]

Reproduce

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