Average Error: 0.0 → 0.0
Time: 1.1s
Precision: binary64
Cost: 6720
\[e^{\left(x \cdot y\right) \cdot y}\]
\[e^{y \cdot \left(y \cdot x\right)}\]
e^{\left(x \cdot y\right) \cdot y}
e^{y \cdot \left(y \cdot x\right)}
(FPCore (x y) :precision binary64 (exp (* (* x y) y)))
(FPCore (x y) :precision binary64 (exp (* y (* y x))))
double code(double x, double y) {
	return exp((x * y) * y);
}
double code(double x, double y) {
	return exp(y * (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

Alternatives

Alternative 1
Error7.2
Cost1090
\[\begin{array}{l} \mathbf{if}\;y \leq -5.5372977425883956 \cdot 10^{+32}:\\ \;\;\;\;0\\ \mathbf{elif}\;y \leq 3.5394790818804024 \cdot 10^{+28}:\\ \;\;\;\;y \cdot \left(y \cdot x\right) + 1\\ \mathbf{else}:\\ \;\;\;\;0\\ \end{array}\]
Alternative 2
Error7.3
Cost706
\[\begin{array}{l} \mathbf{if}\;y \leq -8.099971473001089 \cdot 10^{+32}:\\ \;\;\;\;0\\ \mathbf{elif}\;y \leq 3.8999340891162597 \cdot 10^{+24}:\\ \;\;\;\;1\\ \mathbf{else}:\\ \;\;\;\;0\\ \end{array}\]
Alternative 3
Error21.6
Cost64
\[1\]

Error

Derivation

  1. Initial program 0.0

    \[e^{\left(x \cdot y\right) \cdot y}\]
  2. Simplified0.0

    \[\leadsto \color{blue}{e^{y \cdot \left(y \cdot x\right)}}\]
  3. Final simplification0.0

    \[\leadsto e^{y \cdot \left(y \cdot x\right)}\]

Reproduce

herbie shell --seed 2021044 
(FPCore (x y)
  :name "Data.Random.Distribution.Normal:normalF from random-fu-0.2.6.2"
  :precision binary64
  (exp (* (* x y) y)))