
(FPCore (x y) :precision binary64 (- (pow x 4.0) (pow y 4.0)))
double code(double x, double y) {
return pow(x, 4.0) - pow(y, 4.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x ** 4.0d0) - (y ** 4.0d0)
end function
public static double code(double x, double y) {
return Math.pow(x, 4.0) - Math.pow(y, 4.0);
}
def code(x, y): return math.pow(x, 4.0) - math.pow(y, 4.0)
function code(x, y) return Float64((x ^ 4.0) - (y ^ 4.0)) end
function tmp = code(x, y) tmp = (x ^ 4.0) - (y ^ 4.0); end
code[x_, y_] := N[(N[Power[x, 4.0], $MachinePrecision] - N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
{x}^{4} - {y}^{4}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y) :precision binary64 (- (pow x 4.0) (pow y 4.0)))
double code(double x, double y) {
return pow(x, 4.0) - pow(y, 4.0);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x ** 4.0d0) - (y ** 4.0d0)
end function
public static double code(double x, double y) {
return Math.pow(x, 4.0) - Math.pow(y, 4.0);
}
def code(x, y): return math.pow(x, 4.0) - math.pow(y, 4.0)
function code(x, y) return Float64((x ^ 4.0) - (y ^ 4.0)) end
function tmp = code(x, y) tmp = (x ^ 4.0) - (y ^ 4.0); end
code[x_, y_] := N[(N[Power[x, 4.0], $MachinePrecision] - N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
{x}^{4} - {y}^{4}
\end{array}
(FPCore (x y) :precision binary64 (* (* (+ y x) (fma y y (* x x))) (- x y)))
double code(double x, double y) {
return ((y + x) * fma(y, y, (x * x))) * (x - y);
}
function code(x, y) return Float64(Float64(Float64(y + x) * fma(y, y, Float64(x * x))) * Float64(x - y)) end
code[x_, y_] := N[(N[(N[(y + x), $MachinePrecision] * N[(y * y + N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y + x\right) \cdot \mathsf{fma}\left(y, y, x \cdot x\right)\right) \cdot \left(x - y\right)
\end{array}
Initial program 87.1%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-pow.f64N/A
sqr-powN/A
distribute-lft-neg-inN/A
metadata-evalN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f6487.8
Applied rewrites87.8%
lift-pow.f64N/A
metadata-evalN/A
pow-powN/A
pow2N/A
lift-*.f64N/A
pow2N/A
lower-*.f6487.7
Applied rewrites87.7%
lift-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-neg.f64N/A
distribute-lft-neg-outN/A
lift-*.f64N/A
lift-*.f64N/A
cancel-sign-sub-invN/A
lift-*.f64N/A
difference-of-squaresN/A
+-commutativeN/A
lift-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-*.f64N/A
difference-of-squaresN/A
lift-+.f64N/A
lift--.f64N/A
Applied rewrites99.8%
Final simplification99.8%
(FPCore (x y) :precision binary64 (if (<= (- (pow x 4.0) (pow y 4.0)) -5e-264) (* (* (+ y x) (* y y)) (- x y)) (* (* (* (+ y x) x) x) (- x y))))
double code(double x, double y) {
double tmp;
if ((pow(x, 4.0) - pow(y, 4.0)) <= -5e-264) {
tmp = ((y + x) * (y * y)) * (x - y);
} else {
tmp = (((y + x) * x) * x) * (x - y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (((x ** 4.0d0) - (y ** 4.0d0)) <= (-5d-264)) then
tmp = ((y + x) * (y * y)) * (x - y)
else
tmp = (((y + x) * x) * x) * (x - y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((Math.pow(x, 4.0) - Math.pow(y, 4.0)) <= -5e-264) {
tmp = ((y + x) * (y * y)) * (x - y);
} else {
tmp = (((y + x) * x) * x) * (x - y);
}
return tmp;
}
def code(x, y): tmp = 0 if (math.pow(x, 4.0) - math.pow(y, 4.0)) <= -5e-264: tmp = ((y + x) * (y * y)) * (x - y) else: tmp = (((y + x) * x) * x) * (x - y) return tmp
function code(x, y) tmp = 0.0 if (Float64((x ^ 4.0) - (y ^ 4.0)) <= -5e-264) tmp = Float64(Float64(Float64(y + x) * Float64(y * y)) * Float64(x - y)); else tmp = Float64(Float64(Float64(Float64(y + x) * x) * x) * Float64(x - y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (((x ^ 4.0) - (y ^ 4.0)) <= -5e-264) tmp = ((y + x) * (y * y)) * (x - y); else tmp = (((y + x) * x) * x) * (x - y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[(N[Power[x, 4.0], $MachinePrecision] - N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision], -5e-264], N[(N[(N[(y + x), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y + x), $MachinePrecision] * x), $MachinePrecision] * x), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;{x}^{4} - {y}^{4} \leq -5 \cdot 10^{-264}:\\
\;\;\;\;\left(\left(y + x\right) \cdot \left(y \cdot y\right)\right) \cdot \left(x - y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(y + x\right) \cdot x\right) \cdot x\right) \cdot \left(x - y\right)\\
\end{array}
\end{array}
if (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) < -5.0000000000000001e-264Initial program 100.0%
lift--.f64N/A
lift-pow.f64N/A
sqr-powN/A
lift-pow.f64N/A
sqr-powN/A
difference-of-squaresN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
unpow2N/A
lower-fma.f64N/A
metadata-evalN/A
unpow2N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
metadata-evalN/A
unpow2N/A
difference-of-squaresN/A
lower-*.f64N/A
lower-+.f64N/A
lower--.f6499.7
Applied rewrites99.7%
Applied rewrites99.7%
Taylor expanded in x around 0
unpow2N/A
lower-*.f6499.7
Applied rewrites99.7%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f6499.8
lift-+.f64N/A
+-commutativeN/A
lower-+.f6499.8
Applied rewrites99.8%
if -5.0000000000000001e-264 < (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) Initial program 79.9%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-pow.f64N/A
sqr-powN/A
distribute-lft-neg-inN/A
metadata-evalN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f6481.1
Applied rewrites81.1%
lift-pow.f64N/A
metadata-evalN/A
pow-powN/A
pow2N/A
lift-*.f64N/A
pow2N/A
lower-*.f6480.9
Applied rewrites80.9%
lift-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-neg.f64N/A
distribute-lft-neg-outN/A
lift-*.f64N/A
lift-*.f64N/A
cancel-sign-sub-invN/A
lift-*.f64N/A
difference-of-squaresN/A
+-commutativeN/A
lift-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-*.f64N/A
difference-of-squaresN/A
lift-+.f64N/A
lift--.f64N/A
Applied rewrites99.9%
Taylor expanded in y around 0
+-commutativeN/A
unpow3N/A
unpow2N/A
distribute-lft-outN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.9
Applied rewrites99.9%
Final simplification99.8%
(FPCore (x y) :precision binary64 (if (<= (- (pow x 4.0) (pow y 4.0)) -5e-264) (* (* (- y) y) (* y y)) (* (* (* (+ y x) x) x) (- x y))))
double code(double x, double y) {
double tmp;
if ((pow(x, 4.0) - pow(y, 4.0)) <= -5e-264) {
tmp = (-y * y) * (y * y);
} else {
tmp = (((y + x) * x) * x) * (x - y);
}
return tmp;
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8) :: tmp
if (((x ** 4.0d0) - (y ** 4.0d0)) <= (-5d-264)) then
tmp = (-y * y) * (y * y)
else
tmp = (((y + x) * x) * x) * (x - y)
end if
code = tmp
end function
public static double code(double x, double y) {
double tmp;
if ((Math.pow(x, 4.0) - Math.pow(y, 4.0)) <= -5e-264) {
tmp = (-y * y) * (y * y);
} else {
tmp = (((y + x) * x) * x) * (x - y);
}
return tmp;
}
def code(x, y): tmp = 0 if (math.pow(x, 4.0) - math.pow(y, 4.0)) <= -5e-264: tmp = (-y * y) * (y * y) else: tmp = (((y + x) * x) * x) * (x - y) return tmp
function code(x, y) tmp = 0.0 if (Float64((x ^ 4.0) - (y ^ 4.0)) <= -5e-264) tmp = Float64(Float64(Float64(-y) * y) * Float64(y * y)); else tmp = Float64(Float64(Float64(Float64(y + x) * x) * x) * Float64(x - y)); end return tmp end
function tmp_2 = code(x, y) tmp = 0.0; if (((x ^ 4.0) - (y ^ 4.0)) <= -5e-264) tmp = (-y * y) * (y * y); else tmp = (((y + x) * x) * x) * (x - y); end tmp_2 = tmp; end
code[x_, y_] := If[LessEqual[N[(N[Power[x, 4.0], $MachinePrecision] - N[Power[y, 4.0], $MachinePrecision]), $MachinePrecision], -5e-264], N[(N[((-y) * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(N[(y + x), $MachinePrecision] * x), $MachinePrecision] * x), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;{x}^{4} - {y}^{4} \leq -5 \cdot 10^{-264}:\\
\;\;\;\;\left(\left(-y\right) \cdot y\right) \cdot \left(y \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(y + x\right) \cdot x\right) \cdot x\right) \cdot \left(x - y\right)\\
\end{array}
\end{array}
if (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) < -5.0000000000000001e-264Initial program 100.0%
lift--.f64N/A
lift-pow.f64N/A
sqr-powN/A
lift-pow.f64N/A
sqr-powN/A
difference-of-squaresN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
unpow2N/A
lower-fma.f64N/A
metadata-evalN/A
unpow2N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
metadata-evalN/A
unpow2N/A
difference-of-squaresN/A
lower-*.f64N/A
lower-+.f64N/A
lower--.f6499.7
Applied rewrites99.7%
Applied rewrites99.7%
Taylor expanded in x around 0
unpow2N/A
lower-*.f6499.7
Applied rewrites99.7%
Taylor expanded in x around 0
unpow2N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6499.7
Applied rewrites99.7%
if -5.0000000000000001e-264 < (-.f64 (pow.f64 x #s(literal 4 binary64)) (pow.f64 y #s(literal 4 binary64))) Initial program 79.9%
lift--.f64N/A
sub-negN/A
+-commutativeN/A
lift-pow.f64N/A
sqr-powN/A
distribute-lft-neg-inN/A
metadata-evalN/A
unpow2N/A
associate-*r*N/A
lower-fma.f64N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f6481.1
Applied rewrites81.1%
lift-pow.f64N/A
metadata-evalN/A
pow-powN/A
pow2N/A
lift-*.f64N/A
pow2N/A
lower-*.f6480.9
Applied rewrites80.9%
lift-fma.f64N/A
+-commutativeN/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
lift-neg.f64N/A
distribute-lft-neg-outN/A
lift-*.f64N/A
lift-*.f64N/A
cancel-sign-sub-invN/A
lift-*.f64N/A
difference-of-squaresN/A
+-commutativeN/A
lift-*.f64N/A
lift-fma.f64N/A
lift-*.f64N/A
lift-*.f64N/A
difference-of-squaresN/A
lift-+.f64N/A
lift--.f64N/A
Applied rewrites99.9%
Taylor expanded in y around 0
+-commutativeN/A
unpow3N/A
unpow2N/A
distribute-lft-outN/A
unpow2N/A
associate-*r*N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
+-commutativeN/A
lower-+.f6499.9
Applied rewrites99.9%
Final simplification99.8%
(FPCore (x y) :precision binary64 (let* ((t_0 (* (* x x) (* y y)))) (if (<= x -4.2e+105) t_0 (if (<= x 3.3e+127) (* (* (- y) y) (* y y)) t_0))))
double code(double x, double y) {
double t_0 = (x * x) * (y * y);
double tmp;
if (x <= -4.2e+105) {
tmp = t_0;
} else if (x <= 3.3e+127) {
tmp = (-y * y) * (y * y);
} else {
tmp = t_0;
}
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 = (x * x) * (y * y)
if (x <= (-4.2d+105)) then
tmp = t_0
else if (x <= 3.3d+127) then
tmp = (-y * y) * (y * y)
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y) {
double t_0 = (x * x) * (y * y);
double tmp;
if (x <= -4.2e+105) {
tmp = t_0;
} else if (x <= 3.3e+127) {
tmp = (-y * y) * (y * y);
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y): t_0 = (x * x) * (y * y) tmp = 0 if x <= -4.2e+105: tmp = t_0 elif x <= 3.3e+127: tmp = (-y * y) * (y * y) else: tmp = t_0 return tmp
function code(x, y) t_0 = Float64(Float64(x * x) * Float64(y * y)) tmp = 0.0 if (x <= -4.2e+105) tmp = t_0; elseif (x <= 3.3e+127) tmp = Float64(Float64(Float64(-y) * y) * Float64(y * y)); else tmp = t_0; end return tmp end
function tmp_2 = code(x, y) t_0 = (x * x) * (y * y); tmp = 0.0; if (x <= -4.2e+105) tmp = t_0; elseif (x <= 3.3e+127) tmp = (-y * y) * (y * y); else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_] := Block[{t$95$0 = N[(N[(x * x), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.2e+105], t$95$0, If[LessEqual[x, 3.3e+127], N[(N[((-y) * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision], t$95$0]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \left(x \cdot x\right) \cdot \left(y \cdot y\right)\\
\mathbf{if}\;x \leq -4.2 \cdot 10^{+105}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{+127}:\\
\;\;\;\;\left(\left(-y\right) \cdot y\right) \cdot \left(y \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if x < -4.2000000000000002e105 or 3.29999999999999977e127 < x Initial program 61.4%
lift--.f64N/A
lift-pow.f64N/A
sqr-powN/A
lift-pow.f64N/A
sqr-powN/A
difference-of-squaresN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
unpow2N/A
lower-fma.f64N/A
metadata-evalN/A
unpow2N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
metadata-evalN/A
unpow2N/A
difference-of-squaresN/A
lower-*.f64N/A
lower-+.f64N/A
lower--.f64100.0
Applied rewrites100.0%
Applied rewrites100.0%
Taylor expanded in x around 0
unpow2N/A
lower-*.f6481.9
Applied rewrites81.9%
Taylor expanded in x around inf
distribute-lft1-inN/A
metadata-evalN/A
mul0-lftN/A
metadata-evalN/A
*-rgt-identityN/A
unpow2N/A
lower-*.f6466.2
Applied rewrites66.2%
if -4.2000000000000002e105 < x < 3.29999999999999977e127Initial program 96.8%
lift--.f64N/A
lift-pow.f64N/A
sqr-powN/A
lift-pow.f64N/A
sqr-powN/A
difference-of-squaresN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
unpow2N/A
lower-fma.f64N/A
metadata-evalN/A
unpow2N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
metadata-evalN/A
unpow2N/A
difference-of-squaresN/A
lower-*.f64N/A
lower-+.f64N/A
lower--.f6499.7
Applied rewrites99.7%
Applied rewrites99.7%
Taylor expanded in x around 0
unpow2N/A
lower-*.f6478.2
Applied rewrites78.2%
Taylor expanded in x around 0
unpow2N/A
associate-*r*N/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6477.9
Applied rewrites77.9%
Final simplification74.7%
(FPCore (x y) :precision binary64 (* (* (+ y x) (- x y)) (* y y)))
double code(double x, double y) {
return ((y + x) * (x - y)) * (y * y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((y + x) * (x - y)) * (y * y)
end function
public static double code(double x, double y) {
return ((y + x) * (x - y)) * (y * y);
}
def code(x, y): return ((y + x) * (x - y)) * (y * y)
function code(x, y) return Float64(Float64(Float64(y + x) * Float64(x - y)) * Float64(y * y)) end
function tmp = code(x, y) tmp = ((y + x) * (x - y)) * (y * y); end
code[x_, y_] := N[(N[(N[(y + x), $MachinePrecision] * N[(x - y), $MachinePrecision]), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y + x\right) \cdot \left(x - y\right)\right) \cdot \left(y \cdot y\right)
\end{array}
Initial program 87.1%
lift--.f64N/A
lift-pow.f64N/A
sqr-powN/A
lift-pow.f64N/A
sqr-powN/A
difference-of-squaresN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
unpow2N/A
lower-fma.f64N/A
metadata-evalN/A
unpow2N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
metadata-evalN/A
unpow2N/A
difference-of-squaresN/A
lower-*.f64N/A
lower-+.f64N/A
lower--.f6499.8
Applied rewrites99.8%
Taylor expanded in x around 0
unpow2N/A
lower-*.f6479.2
Applied rewrites79.2%
Final simplification79.2%
(FPCore (x y) :precision binary64 (* (* x x) (* y y)))
double code(double x, double y) {
return (x * x) * (y * y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x * x) * (y * y)
end function
public static double code(double x, double y) {
return (x * x) * (y * y);
}
def code(x, y): return (x * x) * (y * y)
function code(x, y) return Float64(Float64(x * x) * Float64(y * y)) end
function tmp = code(x, y) tmp = (x * x) * (y * y); end
code[x_, y_] := N[(N[(x * x), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot x\right) \cdot \left(y \cdot y\right)
\end{array}
Initial program 87.1%
lift--.f64N/A
lift-pow.f64N/A
sqr-powN/A
lift-pow.f64N/A
sqr-powN/A
difference-of-squaresN/A
lower-*.f64N/A
+-commutativeN/A
metadata-evalN/A
unpow2N/A
lower-fma.f64N/A
metadata-evalN/A
unpow2N/A
lower-*.f64N/A
metadata-evalN/A
unpow2N/A
metadata-evalN/A
unpow2N/A
difference-of-squaresN/A
lower-*.f64N/A
lower-+.f64N/A
lower--.f6499.8
Applied rewrites99.8%
Applied rewrites99.8%
Taylor expanded in x around 0
unpow2N/A
lower-*.f6479.2
Applied rewrites79.2%
Taylor expanded in x around inf
distribute-lft1-inN/A
metadata-evalN/A
mul0-lftN/A
metadata-evalN/A
*-rgt-identityN/A
unpow2N/A
lower-*.f6437.2
Applied rewrites37.2%
Final simplification37.2%
(FPCore (x y) :precision binary64 (* (* y y) (* y y)))
double code(double x, double y) {
return (y * y) * (y * y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (y * y) * (y * y)
end function
public static double code(double x, double y) {
return (y * y) * (y * y);
}
def code(x, y): return (y * y) * (y * y)
function code(x, y) return Float64(Float64(y * y) * Float64(y * y)) end
function tmp = code(x, y) tmp = (y * y) * (y * y); end
code[x_, y_] := N[(N[(y * y), $MachinePrecision] * N[(y * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(y \cdot y\right) \cdot \left(y \cdot y\right)
\end{array}
Initial program 87.1%
Taylor expanded in x around 0
mul-1-negN/A
lower-neg.f64N/A
lower-pow.f6461.2
Applied rewrites61.2%
Applied rewrites25.5%
herbie shell --seed 2024332
(FPCore (x y)
:name "Radioactive exchange between two surfaces"
:precision binary64
(- (pow x 4.0) (pow y 4.0)))