
(FPCore (x y) :precision binary64 (exp (* (* x y) y)))
double code(double x, double y) {
return exp(((x * y) * y));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = exp(((x * y) * y))
end function
public static double code(double x, double y) {
return Math.exp(((x * y) * y));
}
def code(x, y): return math.exp(((x * y) * y))
function code(x, y) return exp(Float64(Float64(x * y) * y)) end
function tmp = code(x, y) tmp = exp(((x * y) * y)); end
code[x_, y_] := N[Exp[N[(N[(x * y), $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
e^{\left(x \cdot y\right) \cdot y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 13 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (exp (* (* x y) y)))
double code(double x, double y) {
return exp(((x * y) * y));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = exp(((x * y) * y))
end function
public static double code(double x, double y) {
return Math.exp(((x * y) * y));
}
def code(x, y): return math.exp(((x * y) * y))
function code(x, y) return exp(Float64(Float64(x * y) * y)) end
function tmp = code(x, y) tmp = exp(((x * y) * y)); end
code[x_, y_] := N[Exp[N[(N[(x * y), $MachinePrecision] * y), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
e^{\left(x \cdot y\right) \cdot y}
\end{array}
(FPCore (x y) :precision binary64 (exp (* y (* x y))))
double code(double x, double y) {
return exp((y * (x * y)));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = exp((y * (x * y)))
end function
public static double code(double x, double y) {
return Math.exp((y * (x * y)));
}
def code(x, y): return math.exp((y * (x * y)))
function code(x, y) return exp(Float64(y * Float64(x * y))) end
function tmp = code(x, y) tmp = exp((y * (x * y))); end
code[x_, y_] := N[Exp[N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]], $MachinePrecision]
\begin{array}{l}
\\
e^{y \cdot \left(x \cdot y\right)}
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (x y)
:precision binary64
(if (<= y 3.35e-72)
(+
1.0
(*
(* y (* x y))
(+ 1.0 (* y (* y (* (* x (* x (* y y))) 0.16666666666666666))))))
(if (<= y 8.6e+107) (exp x) (* x (* x (* 0.5 (* y (* y (* y y)))))))))
double code(double x, double y) {
double tmp;
if (y <= 3.35e-72) {
tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666)))));
} else if (y <= 8.6e+107) {
tmp = exp(x);
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 3.35d-72) then
tmp = 1.0d0 + ((y * (x * y)) * (1.0d0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666d0)))))
else if (y <= 8.6d+107) then
tmp = exp(x)
else
tmp = x * (x * (0.5d0 * (y * (y * (y * y)))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 3.35e-72) {
tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666)))));
} else if (y <= 8.6e+107) {
tmp = Math.exp(x);
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 3.35e-72: tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666))))) elif y <= 8.6e+107: tmp = math.exp(x) else: tmp = x * (x * (0.5 * (y * (y * (y * y))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 3.35e-72) tmp = Float64(1.0 + Float64(Float64(y * Float64(x * y)) * Float64(1.0 + Float64(y * Float64(y * Float64(Float64(x * Float64(x * Float64(y * y))) * 0.16666666666666666)))))); elseif (y <= 8.6e+107) tmp = exp(x); else tmp = Float64(x * Float64(x * Float64(0.5 * Float64(y * Float64(y * Float64(y * y)))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 3.35e-72) tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666))))); elseif (y <= 8.6e+107) tmp = exp(x); else tmp = x * (x * (0.5 * (y * (y * (y * y))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 3.35e-72], N[(1.0 + N[(N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(N[(x * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e+107], N[Exp[x], $MachinePrecision], N[(x * N[(x * N[(0.5 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.35 \cdot 10^{-72}:\\
\;\;\;\;1 + \left(y \cdot \left(x \cdot y\right)\right) \cdot \left(1 + y \cdot \left(y \cdot \left(\left(x \cdot \left(x \cdot \left(y \cdot y\right)\right)\right) \cdot 0.16666666666666666\right)\right)\right)\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{+107}:\\
\;\;\;\;e^{x}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(0.5 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 3.35e-72Initial program 100.0%
Taylor expanded in x around 0
Simplified82.9%
*-commutativeN/A
flip-+N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr76.0%
Taylor expanded in x around inf
associate-*r*N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Simplified83.4%
if 3.35e-72 < y < 8.5999999999999999e107Initial program 100.0%
Applied egg-rr88.5%
if 8.5999999999999999e107 < y Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
distribute-lft-inN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
+-commutativeN/A
fma-defineN/A
associate-*r*N/A
unpow2N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
fma-defineN/A
associate-*r*N/A
*-commutativeN/A
+-commutativeN/A
Simplified42.3%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6457.5%
Simplified57.5%
(FPCore (x y)
:precision binary64
(if (<= y 3.1e-83)
(+
1.0
(*
(* y (* x y))
(+ 1.0 (* y (* y (* (* x (* x (* y y))) 0.16666666666666666))))))
(exp (* x y))))
double code(double x, double y) {
double tmp;
if (y <= 3.1e-83) {
tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666)))));
} else {
tmp = exp((x * y));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 3.1d-83) then
tmp = 1.0d0 + ((y * (x * y)) * (1.0d0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666d0)))))
else
tmp = exp((x * y))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 3.1e-83) {
tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666)))));
} else {
tmp = Math.exp((x * y));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 3.1e-83: tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666))))) else: tmp = math.exp((x * y)) return tmp
function code(x, y) tmp = 0.0 if (y <= 3.1e-83) tmp = Float64(1.0 + Float64(Float64(y * Float64(x * y)) * Float64(1.0 + Float64(y * Float64(y * Float64(Float64(x * Float64(x * Float64(y * y))) * 0.16666666666666666)))))); else tmp = exp(Float64(x * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 3.1e-83) tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666))))); else tmp = exp((x * y)); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 3.1e-83], N[(1.0 + N[(N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(N[(x * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[Exp[N[(x * y), $MachinePrecision]], $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.1 \cdot 10^{-83}:\\
\;\;\;\;1 + \left(y \cdot \left(x \cdot y\right)\right) \cdot \left(1 + y \cdot \left(y \cdot \left(\left(x \cdot \left(x \cdot \left(y \cdot y\right)\right)\right) \cdot 0.16666666666666666\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;e^{x \cdot y}\\
\end{array}
\end{array}
if y < 3.09999999999999992e-83Initial program 100.0%
Taylor expanded in x around 0
Simplified82.7%
*-commutativeN/A
flip-+N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr75.8%
Taylor expanded in x around inf
associate-*r*N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Simplified83.3%
if 3.09999999999999992e-83 < y Initial program 100.0%
Applied egg-rr85.1%
(FPCore (x y)
:precision binary64
(if (<= y 1.15e-84)
(+ 1.0 (* y (* x y)))
(if (<= y 7e+107)
(+ 1.0 (* x (* x (* (* y y) (+ 0.5 (* x (* y 0.16666666666666666)))))))
(* x (* x (* 0.5 (* y (* y (* y y)))))))))
double code(double x, double y) {
double tmp;
if (y <= 1.15e-84) {
tmp = 1.0 + (y * (x * y));
} else if (y <= 7e+107) {
tmp = 1.0 + (x * (x * ((y * y) * (0.5 + (x * (y * 0.16666666666666666))))));
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 1.15d-84) then
tmp = 1.0d0 + (y * (x * y))
else if (y <= 7d+107) then
tmp = 1.0d0 + (x * (x * ((y * y) * (0.5d0 + (x * (y * 0.16666666666666666d0))))))
else
tmp = x * (x * (0.5d0 * (y * (y * (y * y)))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.15e-84) {
tmp = 1.0 + (y * (x * y));
} else if (y <= 7e+107) {
tmp = 1.0 + (x * (x * ((y * y) * (0.5 + (x * (y * 0.16666666666666666))))));
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.15e-84: tmp = 1.0 + (y * (x * y)) elif y <= 7e+107: tmp = 1.0 + (x * (x * ((y * y) * (0.5 + (x * (y * 0.16666666666666666)))))) else: tmp = x * (x * (0.5 * (y * (y * (y * y))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.15e-84) tmp = Float64(1.0 + Float64(y * Float64(x * y))); elseif (y <= 7e+107) tmp = Float64(1.0 + Float64(x * Float64(x * Float64(Float64(y * y) * Float64(0.5 + Float64(x * Float64(y * 0.16666666666666666))))))); else tmp = Float64(x * Float64(x * Float64(0.5 * Float64(y * Float64(y * Float64(y * y)))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.15e-84) tmp = 1.0 + (y * (x * y)); elseif (y <= 7e+107) tmp = 1.0 + (x * (x * ((y * y) * (0.5 + (x * (y * 0.16666666666666666)))))); else tmp = x * (x * (0.5 * (y * (y * (y * y))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.15e-84], N[(1.0 + N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7e+107], N[(1.0 + N[(x * N[(x * N[(N[(y * y), $MachinePrecision] * N[(0.5 + N[(x * N[(y * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(0.5 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.15 \cdot 10^{-84}:\\
\;\;\;\;1 + y \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+107}:\\
\;\;\;\;1 + x \cdot \left(x \cdot \left(\left(y \cdot y\right) \cdot \left(0.5 + x \cdot \left(y \cdot 0.16666666666666666\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(0.5 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 1.1499999999999999e-84Initial program 100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6475.8%
Simplified75.8%
if 1.1499999999999999e-84 < y < 6.9999999999999995e107Initial program 100.0%
Applied egg-rr95.6%
Taylor expanded in x around 0
Simplified64.4%
Taylor expanded in y around inf
distribute-lft-inN/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
Simplified64.4%
if 6.9999999999999995e107 < y Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
distribute-lft-inN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
+-commutativeN/A
fma-defineN/A
associate-*r*N/A
unpow2N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
fma-defineN/A
associate-*r*N/A
*-commutativeN/A
+-commutativeN/A
Simplified42.3%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6457.5%
Simplified57.5%
Final simplification71.2%
(FPCore (x y)
:precision binary64
(if (<= y 6.4e-84)
(+ 1.0 (* y (* x y)))
(if (<= y 5.2e+106)
(+ 1.0 (* (* y y) (* 0.5 (* x x))))
(* x (* x (* 0.5 (* y (* y (* y y)))))))))
double code(double x, double y) {
double tmp;
if (y <= 6.4e-84) {
tmp = 1.0 + (y * (x * y));
} else if (y <= 5.2e+106) {
tmp = 1.0 + ((y * y) * (0.5 * (x * x)));
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 6.4d-84) then
tmp = 1.0d0 + (y * (x * y))
else if (y <= 5.2d+106) then
tmp = 1.0d0 + ((y * y) * (0.5d0 * (x * x)))
else
tmp = x * (x * (0.5d0 * (y * (y * (y * y)))))
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 6.4e-84) {
tmp = 1.0 + (y * (x * y));
} else if (y <= 5.2e+106) {
tmp = 1.0 + ((y * y) * (0.5 * (x * x)));
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 6.4e-84: tmp = 1.0 + (y * (x * y)) elif y <= 5.2e+106: tmp = 1.0 + ((y * y) * (0.5 * (x * x))) else: tmp = x * (x * (0.5 * (y * (y * (y * y))))) return tmp
function code(x, y) tmp = 0.0 if (y <= 6.4e-84) tmp = Float64(1.0 + Float64(y * Float64(x * y))); elseif (y <= 5.2e+106) tmp = Float64(1.0 + Float64(Float64(y * y) * Float64(0.5 * Float64(x * x)))); else tmp = Float64(x * Float64(x * Float64(0.5 * Float64(y * Float64(y * Float64(y * y)))))); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 6.4e-84) tmp = 1.0 + (y * (x * y)); elseif (y <= 5.2e+106) tmp = 1.0 + ((y * y) * (0.5 * (x * x))); else tmp = x * (x * (0.5 * (y * (y * (y * y))))); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 6.4e-84], N[(1.0 + N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.2e+106], N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.5 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(0.5 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 6.4 \cdot 10^{-84}:\\
\;\;\;\;1 + y \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+106}:\\
\;\;\;\;1 + \left(y \cdot y\right) \cdot \left(0.5 \cdot \left(x \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(0.5 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 6.3999999999999999e-84Initial program 100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6475.8%
Simplified75.8%
if 6.3999999999999999e-84 < y < 5.20000000000000039e106Initial program 100.0%
Applied egg-rr95.6%
Taylor expanded in x around 0
Simplified64.4%
Taylor expanded in y around inf
distribute-lft-inN/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
Simplified64.4%
Taylor expanded in x around 0
+-lowering-+.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6458.4%
Simplified58.4%
if 5.20000000000000039e106 < y Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
distribute-lft-inN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
+-commutativeN/A
fma-defineN/A
associate-*r*N/A
unpow2N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
fma-defineN/A
associate-*r*N/A
*-commutativeN/A
+-commutativeN/A
Simplified42.3%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6457.5%
Simplified57.5%
Final simplification70.1%
(FPCore (x y) :precision binary64 (+ 1.0 (* (* y (* x y)) (+ 1.0 (* y (* y (* (* x (* x (* y y))) 0.16666666666666666)))))))
double code(double x, double y) {
return 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666)))));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((y * (x * y)) * (1.0d0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666d0)))))
end function
public static double code(double x, double y) {
return 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666)))));
}
def code(x, y): return 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666)))))
function code(x, y) return Float64(1.0 + Float64(Float64(y * Float64(x * y)) * Float64(1.0 + Float64(y * Float64(y * Float64(Float64(x * Float64(x * Float64(y * y))) * 0.16666666666666666)))))) end
function tmp = code(x, y) tmp = 1.0 + ((y * (x * y)) * (1.0 + (y * (y * ((x * (x * (y * y))) * 0.16666666666666666))))); end
code[x_, y_] := N[(1.0 + N[(N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(y * N[(y * N[(N[(x * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 0.16666666666666666), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \left(y \cdot \left(x \cdot y\right)\right) \cdot \left(1 + y \cdot \left(y \cdot \left(\left(x \cdot \left(x \cdot \left(y \cdot y\right)\right)\right) \cdot 0.16666666666666666\right)\right)\right)
\end{array}
Initial program 100.0%
Taylor expanded in x around 0
Simplified75.6%
*-commutativeN/A
flip-+N/A
associate-*l/N/A
/-lowering-/.f64N/A
Applied egg-rr64.6%
Taylor expanded in x around inf
associate-*r*N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
*-lowering-*.f64N/A
Simplified75.9%
(FPCore (x y) :precision binary64 (+ 1.0 (* (* y (* x y)) (+ 1.0 (* x (* x (* 0.16666666666666666 (* y (* y (* y y))))))))))
double code(double x, double y) {
return 1.0 + ((y * (x * y)) * (1.0 + (x * (x * (0.16666666666666666 * (y * (y * (y * y))))))));
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0 + ((y * (x * y)) * (1.0d0 + (x * (x * (0.16666666666666666d0 * (y * (y * (y * y))))))))
end function
public static double code(double x, double y) {
return 1.0 + ((y * (x * y)) * (1.0 + (x * (x * (0.16666666666666666 * (y * (y * (y * y))))))));
}
def code(x, y): return 1.0 + ((y * (x * y)) * (1.0 + (x * (x * (0.16666666666666666 * (y * (y * (y * y))))))))
function code(x, y) return Float64(1.0 + Float64(Float64(y * Float64(x * y)) * Float64(1.0 + Float64(x * Float64(x * Float64(0.16666666666666666 * Float64(y * Float64(y * Float64(y * y))))))))) end
function tmp = code(x, y) tmp = 1.0 + ((y * (x * y)) * (1.0 + (x * (x * (0.16666666666666666 * (y * (y * (y * y)))))))); end
code[x_, y_] := N[(1.0 + N[(N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision] * N[(1.0 + N[(x * N[(x * N[(0.16666666666666666 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \left(y \cdot \left(x \cdot y\right)\right) \cdot \left(1 + x \cdot \left(x \cdot \left(0.16666666666666666 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\right)
\end{array}
Initial program 100.0%
Taylor expanded in x around 0
Simplified75.6%
Taylor expanded in y around inf
*-commutativeN/A
unpow2N/A
associate-*l*N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
associate-*l*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6474.8%
Simplified74.8%
(FPCore (x y)
:precision binary64
(let* ((t_0 (* y (* x y))))
(if (<= y 7.8e+107)
(+ 1.0 (* t_0 (+ 1.0 (* t_0 0.5))))
(* x (* x (* 0.5 (* y (* y (* y y)))))))))
double code(double x, double y) {
double t_0 = y * (x * y);
double tmp;
if (y <= 7.8e+107) {
tmp = 1.0 + (t_0 * (1.0 + (t_0 * 0.5)));
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: t_0
real(8) :: tmp
t_0 = y * (x * y)
if (y <= 7.8d+107) then
tmp = 1.0d0 + (t_0 * (1.0d0 + (t_0 * 0.5d0)))
else
tmp = x * (x * (0.5d0 * (y * (y * (y * y)))))
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = y * (x * y);
double tmp;
if (y <= 7.8e+107) {
tmp = 1.0 + (t_0 * (1.0 + (t_0 * 0.5)));
} else {
tmp = x * (x * (0.5 * (y * (y * (y * y)))));
}
return tmp;
}
def code(x, y): t_0 = y * (x * y) tmp = 0 if y <= 7.8e+107: tmp = 1.0 + (t_0 * (1.0 + (t_0 * 0.5))) else: tmp = x * (x * (0.5 * (y * (y * (y * y))))) return tmp
function code(x, y) t_0 = Float64(y * Float64(x * y)) tmp = 0.0 if (y <= 7.8e+107) tmp = Float64(1.0 + Float64(t_0 * Float64(1.0 + Float64(t_0 * 0.5)))); else tmp = Float64(x * Float64(x * Float64(0.5 * Float64(y * Float64(y * Float64(y * y)))))); end return tmp end
function tmp_2 = code(x, y) t_0 = y * (x * y); tmp = 0.0; if (y <= 7.8e+107) tmp = 1.0 + (t_0 * (1.0 + (t_0 * 0.5))); else tmp = x * (x * (0.5 * (y * (y * (y * y))))); end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, 7.8e+107], N[(1.0 + N[(t$95$0 * N[(1.0 + N[(t$95$0 * 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(x * N[(0.5 * N[(y * N[(y * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := y \cdot \left(x \cdot y\right)\\
\mathbf{if}\;y \leq 7.8 \cdot 10^{+107}:\\
\;\;\;\;1 + t\_0 \cdot \left(1 + t\_0 \cdot 0.5\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(x \cdot \left(0.5 \cdot \left(y \cdot \left(y \cdot \left(y \cdot y\right)\right)\right)\right)\right)\\
\end{array}
\end{array}
if y < 7.7999999999999997e107Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
distribute-lft-inN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
+-commutativeN/A
fma-defineN/A
associate-*r*N/A
unpow2N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
fma-defineN/A
associate-*r*N/A
*-commutativeN/A
+-commutativeN/A
Simplified76.6%
if 7.7999999999999997e107 < y Initial program 100.0%
Taylor expanded in x around 0
+-commutativeN/A
distribute-lft-inN/A
associate-+l+N/A
*-commutativeN/A
associate-*r*N/A
+-commutativeN/A
fma-defineN/A
associate-*r*N/A
unpow2N/A
metadata-evalN/A
pow-sqrN/A
associate-*l*N/A
*-commutativeN/A
fma-defineN/A
associate-*r*N/A
*-commutativeN/A
+-commutativeN/A
Simplified42.3%
Taylor expanded in y around inf
*-commutativeN/A
associate-*r*N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
metadata-evalN/A
pow-sqrN/A
unpow2N/A
associate-*l*N/A
unpow2N/A
cube-multN/A
*-lowering-*.f64N/A
cube-multN/A
unpow2N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6457.5%
Simplified57.5%
(FPCore (x y)
:precision binary64
(if (<= y 3.2e-83)
(+ 1.0 (* y (* x y)))
(if (<= y 3.7e+134)
(+ 1.0 (* (* y y) (* 0.5 (* x x))))
(* (* x (* x (* y y))) 0.5))))
double code(double x, double y) {
double tmp;
if (y <= 3.2e-83) {
tmp = 1.0 + (y * (x * y));
} else if (y <= 3.7e+134) {
tmp = 1.0 + ((y * y) * (0.5 * (x * x)));
} else {
tmp = (x * (x * (y * y))) * 0.5;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 3.2d-83) then
tmp = 1.0d0 + (y * (x * y))
else if (y <= 3.7d+134) then
tmp = 1.0d0 + ((y * y) * (0.5d0 * (x * x)))
else
tmp = (x * (x * (y * y))) * 0.5d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 3.2e-83) {
tmp = 1.0 + (y * (x * y));
} else if (y <= 3.7e+134) {
tmp = 1.0 + ((y * y) * (0.5 * (x * x)));
} else {
tmp = (x * (x * (y * y))) * 0.5;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 3.2e-83: tmp = 1.0 + (y * (x * y)) elif y <= 3.7e+134: tmp = 1.0 + ((y * y) * (0.5 * (x * x))) else: tmp = (x * (x * (y * y))) * 0.5 return tmp
function code(x, y) tmp = 0.0 if (y <= 3.2e-83) tmp = Float64(1.0 + Float64(y * Float64(x * y))); elseif (y <= 3.7e+134) tmp = Float64(1.0 + Float64(Float64(y * y) * Float64(0.5 * Float64(x * x)))); else tmp = Float64(Float64(x * Float64(x * Float64(y * y))) * 0.5); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 3.2e-83) tmp = 1.0 + (y * (x * y)); elseif (y <= 3.7e+134) tmp = 1.0 + ((y * y) * (0.5 * (x * x))); else tmp = (x * (x * (y * y))) * 0.5; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 3.2e-83], N[(1.0 + N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e+134], N[(1.0 + N[(N[(y * y), $MachinePrecision] * N[(0.5 * N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 0.5), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.2 \cdot 10^{-83}:\\
\;\;\;\;1 + y \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+134}:\\
\;\;\;\;1 + \left(y \cdot y\right) \cdot \left(0.5 \cdot \left(x \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(x \cdot \left(y \cdot y\right)\right)\right) \cdot 0.5\\
\end{array}
\end{array}
if y < 3.2000000000000001e-83Initial program 100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6475.8%
Simplified75.8%
if 3.2000000000000001e-83 < y < 3.70000000000000013e134Initial program 100.0%
Applied egg-rr89.8%
Taylor expanded in x around 0
Simplified61.5%
Taylor expanded in y around inf
distribute-lft-inN/A
associate-*r*N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
associate-*r*N/A
*-commutativeN/A
*-commutativeN/A
associate-*r*N/A
Simplified61.5%
Taylor expanded in x around 0
+-lowering-+.f64N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f64N/A
*-commutativeN/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.7%
Simplified54.7%
if 3.70000000000000013e134 < y Initial program 100.0%
Applied egg-rr76.6%
Taylor expanded in x around 0
distribute-rgt-inN/A
*-commutativeN/A
associate-+r+N/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
associate-*l*N/A
associate-+r+N/A
distribute-rgt-inN/A
+-lowering-+.f64N/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
Simplified32.7%
Taylor expanded in x around inf
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.1%
Simplified49.1%
Final simplification68.5%
(FPCore (x y) :precision binary64 (if (<= y 8e+145) (+ 1.0 (* y (* x y))) (* (* x (* x (* y y))) 0.5)))
double code(double x, double y) {
double tmp;
if (y <= 8e+145) {
tmp = 1.0 + (y * (x * y));
} else {
tmp = (x * (x * (y * y))) * 0.5;
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 8d+145) then
tmp = 1.0d0 + (y * (x * y))
else
tmp = (x * (x * (y * y))) * 0.5d0
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 8e+145) {
tmp = 1.0 + (y * (x * y));
} else {
tmp = (x * (x * (y * y))) * 0.5;
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 8e+145: tmp = 1.0 + (y * (x * y)) else: tmp = (x * (x * (y * y))) * 0.5 return tmp
function code(x, y) tmp = 0.0 if (y <= 8e+145) tmp = Float64(1.0 + Float64(y * Float64(x * y))); else tmp = Float64(Float64(x * Float64(x * Float64(y * y))) * 0.5); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 8e+145) tmp = 1.0 + (y * (x * y)); else tmp = (x * (x * (y * y))) * 0.5; end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 8e+145], N[(1.0 + N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * 0.5), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 8 \cdot 10^{+145}:\\
\;\;\;\;1 + y \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(x \cdot \left(y \cdot y\right)\right)\right) \cdot 0.5\\
\end{array}
\end{array}
if y < 7.9999999999999999e145Initial program 100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6468.5%
Simplified68.5%
if 7.9999999999999999e145 < y Initial program 100.0%
Applied egg-rr77.6%
Taylor expanded in x around 0
distribute-rgt-inN/A
*-commutativeN/A
associate-+r+N/A
associate-*l*N/A
*-commutativeN/A
associate-*r*N/A
unpow2N/A
*-commutativeN/A
unpow2N/A
associate-*r*N/A
associate-*l*N/A
associate-+r+N/A
distribute-rgt-inN/A
+-lowering-+.f64N/A
distribute-rgt-inN/A
*-commutativeN/A
associate-*l*N/A
Simplified36.2%
Taylor expanded in x around inf
*-lowering-*.f64N/A
unpow2N/A
associate-*l*N/A
*-lowering-*.f64N/A
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6454.6%
Simplified54.6%
Final simplification67.1%
(FPCore (x y) :precision binary64 (if (<= y 1.05e+133) (+ 1.0 (* y (* x y))) (* x (* y y))))
double code(double x, double y) {
double tmp;
if (y <= 1.05e+133) {
tmp = 1.0 + (y * (x * y));
} else {
tmp = x * (y * y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 1.05d+133) then
tmp = 1.0d0 + (y * (x * y))
else
tmp = x * (y * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 1.05e+133) {
tmp = 1.0 + (y * (x * y));
} else {
tmp = x * (y * y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 1.05e+133: tmp = 1.0 + (y * (x * y)) else: tmp = x * (y * y) return tmp
function code(x, y) tmp = 0.0 if (y <= 1.05e+133) tmp = Float64(1.0 + Float64(y * Float64(x * y))); else tmp = Float64(x * Float64(y * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 1.05e+133) tmp = 1.0 + (y * (x * y)); else tmp = x * (y * y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 1.05e+133], N[(1.0 + N[(y * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.05 \cdot 10^{+133}:\\
\;\;\;\;1 + y \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot y\right)\\
\end{array}
\end{array}
if y < 1.05e133Initial program 100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6469.4%
Simplified69.4%
if 1.05e133 < y Initial program 100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6433.0%
Simplified33.0%
Taylor expanded in y around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6449.2%
Simplified49.2%
(FPCore (x y) :precision binary64 (if (<= y 5.2e+116) 1.0 (* x (* y y))))
double code(double x, double y) {
double tmp;
if (y <= 5.2e+116) {
tmp = 1.0;
} else {
tmp = x * (y * y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (y <= 5.2d+116) then
tmp = 1.0d0
else
tmp = x * (y * y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if (y <= 5.2e+116) {
tmp = 1.0;
} else {
tmp = x * (y * y);
}
return tmp;
}
def code(x, y): tmp = 0 if y <= 5.2e+116: tmp = 1.0 else: tmp = x * (y * y) return tmp
function code(x, y) tmp = 0.0 if (y <= 5.2e+116) tmp = 1.0; else tmp = Float64(x * Float64(y * y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (y <= 5.2e+116) tmp = 1.0; else tmp = x * (y * y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[y, 5.2e+116], 1.0, N[(x * N[(y * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 5.2 \cdot 10^{+116}:\\
\;\;\;\;1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot y\right)\\
\end{array}
\end{array}
if y < 5.19999999999999973e116Initial program 100.0%
Applied egg-rr62.8%
if 5.19999999999999973e116 < y Initial program 100.0%
Taylor expanded in x around 0
+-lowering-+.f64N/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
*-lowering-*.f64N/A
*-lowering-*.f6434.1%
Simplified34.1%
Taylor expanded in y around inf
*-lowering-*.f64N/A
unpow2N/A
*-lowering-*.f6445.7%
Simplified45.7%
(FPCore (x y) :precision binary64 1.0)
double code(double x, double y) {
return 1.0;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = 1.0d0
end function
public static double code(double x, double y) {
return 1.0;
}
def code(x, y): return 1.0
function code(x, y) return 1.0 end
function tmp = code(x, y) tmp = 1.0; end
code[x_, y_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 100.0%
Applied egg-rr55.1%
herbie shell --seed 2024160
(FPCore (x y)
:name "Data.Random.Distribution.Normal:normalF from random-fu-0.2.6.2"
:precision binary64
(exp (* (* x y) y)))