Average Error: 0.1 → 0.1
Time: 2.2s
Precision: binary64
\[x \cdot e^{x + y} - 4 \cdot \left(x \cdot \sin y\right)\]
\[x \cdot \left(e^{x + y} - \sin y \cdot 4\right)\]
x \cdot e^{x + y} - 4 \cdot \left(x \cdot \sin y\right)
x \cdot \left(e^{x + y} - \sin y \cdot 4\right)
double code(double x, double y) {
	return ((double) (((double) (x * ((double) exp(((double) (x + y)))))) - ((double) (4.0 * ((double) (x * ((double) sin(y))))))));
}
double code(double x, double y) {
	return ((double) (x * ((double) (((double) exp(((double) (x + y)))) - ((double) (((double) sin(y)) * 4.0))))));
}

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 0.1

    \[x \cdot e^{x + y} - 4 \cdot \left(x \cdot \sin y\right)\]
  2. Simplified0.1

    \[\leadsto \color{blue}{x \cdot \left(e^{x + y} - \sin y \cdot 4\right)}\]
  3. Final simplification0.1

    \[\leadsto x \cdot \left(e^{x + y} - \sin y \cdot 4\right)\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x y)
  :name "(- (* x (exp (+ x y))) (* 4 (* x (sin y))))"
  :precision binary64
  (- (* x (exp (+ x y))) (* 4.0 (* x (sin y)))))