Average Error: 29.0 → 29.0
Time: 1.5s
Precision: binary64
\[e^{a \cdot x} - 1\]
\[e^{a \cdot x} - 1\]
e^{a \cdot x} - 1
e^{a \cdot x} - 1
double code(double a, double x) {
	return ((double) (((double) exp(((double) (a * x)))) - 1.0));
}
double code(double a, double x) {
	return ((double) (((double) exp(((double) (a * x)))) - 1.0));
}

Error

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 29.0

    \[e^{a \cdot x} - 1\]
  2. Final simplification29.0

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

Reproduce

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