
(FPCore (x y z) :precision binary64 (+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z))))
double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + (((y - x) * 6.0d0) * ((2.0d0 / 3.0d0) - z))
end function
public static double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
}
def code(x, y, z): return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z))
function code(x, y, z) return Float64(x + Float64(Float64(Float64(y - x) * 6.0) * Float64(Float64(2.0 / 3.0) - z))) end
function tmp = code(x, y, z) tmp = x + (((y - x) * 6.0) * ((2.0 / 3.0) - z)); end
code[x_, y_, z_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * 6.0), $MachinePrecision] * N[(N[(2.0 / 3.0), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(\frac{2}{3} - z\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z))))
double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + (((y - x) * 6.0d0) * ((2.0d0 / 3.0d0) - z))
end function
public static double code(double x, double y, double z) {
return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z));
}
def code(x, y, z): return x + (((y - x) * 6.0) * ((2.0 / 3.0) - z))
function code(x, y, z) return Float64(x + Float64(Float64(Float64(y - x) * 6.0) * Float64(Float64(2.0 / 3.0) - z))) end
function tmp = code(x, y, z) tmp = x + (((y - x) * 6.0) * ((2.0 / 3.0) - z)); end
code[x_, y_, z_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * 6.0), $MachinePrecision] * N[(N[(2.0 / 3.0), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(\left(y - x\right) \cdot 6\right) \cdot \left(\frac{2}{3} - z\right)
\end{array}
(FPCore (x y z) :precision binary64 (fma (- y x) (+ 4.0 (* z -6.0)) x))
double code(double x, double y, double z) {
return fma((y - x), (4.0 + (z * -6.0)), x);
}
function code(x, y, z) return fma(Float64(y - x), Float64(4.0 + Float64(z * -6.0)), x) end
code[x_, y_, z_] := N[(N[(y - x), $MachinePrecision] * N[(4.0 + N[(z * -6.0), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(y - x, 4 + z \cdot -6, x\right)
\end{array}
Initial program 99.5%
+-commutative99.5%
associate-*l*99.7%
fma-define99.7%
sub-neg99.7%
distribute-rgt-in99.8%
metadata-eval99.8%
metadata-eval99.8%
distribute-lft-neg-out99.8%
distribute-rgt-neg-in99.8%
metadata-eval99.8%
Simplified99.8%
Final simplification99.8%
(FPCore (x y z) :precision binary64 (fma (* (- y x) (- 0.6666666666666666 z)) 6.0 x))
double code(double x, double y, double z) {
return fma(((y - x) * (0.6666666666666666 - z)), 6.0, x);
}
function code(x, y, z) return fma(Float64(Float64(y - x) * Float64(0.6666666666666666 - z)), 6.0, x) end
code[x_, y_, z_] := N[(N[(N[(y - x), $MachinePrecision] * N[(0.6666666666666666 - z), $MachinePrecision]), $MachinePrecision] * 6.0 + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(\left(y - x\right) \cdot \left(0.6666666666666666 - z\right), 6, x\right)
\end{array}
Initial program 99.5%
metadata-eval99.5%
Simplified99.5%
+-commutative99.5%
*-commutative99.5%
associate-*r*99.5%
fma-define99.5%
Applied egg-rr99.5%
Final simplification99.5%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -6.0 (* y z)))
(t_1 (* 6.0 (* x z)))
(t_2 (+ x (* y 4.0)))
(t_3 (* x (* z 6.0))))
(if (<= z -5.1e+125)
t_0
(if (<= z -8.2e+95)
t_3
(if (<= z -3e+70)
t_0
(if (<= z -3.1e-22)
t_1
(if (<= z -3.7e-252)
t_2
(if (<= z 2.9e-255)
(* x -3.0)
(if (<= z 2.05e-145)
t_2
(if (<= z 1.5e-71)
(* x -3.0)
(if (<= z 0.7)
t_2
(if (<= z 1.7e+133)
t_1
(if (<= z 3.3e+188) (* y (* z -6.0)) t_3)))))))))))))
double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = 6.0 * (x * z);
double t_2 = x + (y * 4.0);
double t_3 = x * (z * 6.0);
double tmp;
if (z <= -5.1e+125) {
tmp = t_0;
} else if (z <= -8.2e+95) {
tmp = t_3;
} else if (z <= -3e+70) {
tmp = t_0;
} else if (z <= -3.1e-22) {
tmp = t_1;
} else if (z <= -3.7e-252) {
tmp = t_2;
} else if (z <= 2.9e-255) {
tmp = x * -3.0;
} else if (z <= 2.05e-145) {
tmp = t_2;
} else if (z <= 1.5e-71) {
tmp = x * -3.0;
} else if (z <= 0.7) {
tmp = t_2;
} else if (z <= 1.7e+133) {
tmp = t_1;
} else if (z <= 3.3e+188) {
tmp = y * (z * -6.0);
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_0 = (-6.0d0) * (y * z)
t_1 = 6.0d0 * (x * z)
t_2 = x + (y * 4.0d0)
t_3 = x * (z * 6.0d0)
if (z <= (-5.1d+125)) then
tmp = t_0
else if (z <= (-8.2d+95)) then
tmp = t_3
else if (z <= (-3d+70)) then
tmp = t_0
else if (z <= (-3.1d-22)) then
tmp = t_1
else if (z <= (-3.7d-252)) then
tmp = t_2
else if (z <= 2.9d-255) then
tmp = x * (-3.0d0)
else if (z <= 2.05d-145) then
tmp = t_2
else if (z <= 1.5d-71) then
tmp = x * (-3.0d0)
else if (z <= 0.7d0) then
tmp = t_2
else if (z <= 1.7d+133) then
tmp = t_1
else if (z <= 3.3d+188) then
tmp = y * (z * (-6.0d0))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = 6.0 * (x * z);
double t_2 = x + (y * 4.0);
double t_3 = x * (z * 6.0);
double tmp;
if (z <= -5.1e+125) {
tmp = t_0;
} else if (z <= -8.2e+95) {
tmp = t_3;
} else if (z <= -3e+70) {
tmp = t_0;
} else if (z <= -3.1e-22) {
tmp = t_1;
} else if (z <= -3.7e-252) {
tmp = t_2;
} else if (z <= 2.9e-255) {
tmp = x * -3.0;
} else if (z <= 2.05e-145) {
tmp = t_2;
} else if (z <= 1.5e-71) {
tmp = x * -3.0;
} else if (z <= 0.7) {
tmp = t_2;
} else if (z <= 1.7e+133) {
tmp = t_1;
} else if (z <= 3.3e+188) {
tmp = y * (z * -6.0);
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z): t_0 = -6.0 * (y * z) t_1 = 6.0 * (x * z) t_2 = x + (y * 4.0) t_3 = x * (z * 6.0) tmp = 0 if z <= -5.1e+125: tmp = t_0 elif z <= -8.2e+95: tmp = t_3 elif z <= -3e+70: tmp = t_0 elif z <= -3.1e-22: tmp = t_1 elif z <= -3.7e-252: tmp = t_2 elif z <= 2.9e-255: tmp = x * -3.0 elif z <= 2.05e-145: tmp = t_2 elif z <= 1.5e-71: tmp = x * -3.0 elif z <= 0.7: tmp = t_2 elif z <= 1.7e+133: tmp = t_1 elif z <= 3.3e+188: tmp = y * (z * -6.0) else: tmp = t_3 return tmp
function code(x, y, z) t_0 = Float64(-6.0 * Float64(y * z)) t_1 = Float64(6.0 * Float64(x * z)) t_2 = Float64(x + Float64(y * 4.0)) t_3 = Float64(x * Float64(z * 6.0)) tmp = 0.0 if (z <= -5.1e+125) tmp = t_0; elseif (z <= -8.2e+95) tmp = t_3; elseif (z <= -3e+70) tmp = t_0; elseif (z <= -3.1e-22) tmp = t_1; elseif (z <= -3.7e-252) tmp = t_2; elseif (z <= 2.9e-255) tmp = Float64(x * -3.0); elseif (z <= 2.05e-145) tmp = t_2; elseif (z <= 1.5e-71) tmp = Float64(x * -3.0); elseif (z <= 0.7) tmp = t_2; elseif (z <= 1.7e+133) tmp = t_1; elseif (z <= 3.3e+188) tmp = Float64(y * Float64(z * -6.0)); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -6.0 * (y * z); t_1 = 6.0 * (x * z); t_2 = x + (y * 4.0); t_3 = x * (z * 6.0); tmp = 0.0; if (z <= -5.1e+125) tmp = t_0; elseif (z <= -8.2e+95) tmp = t_3; elseif (z <= -3e+70) tmp = t_0; elseif (z <= -3.1e-22) tmp = t_1; elseif (z <= -3.7e-252) tmp = t_2; elseif (z <= 2.9e-255) tmp = x * -3.0; elseif (z <= 2.05e-145) tmp = t_2; elseif (z <= 1.5e-71) tmp = x * -3.0; elseif (z <= 0.7) tmp = t_2; elseif (z <= 1.7e+133) tmp = t_1; elseif (z <= 3.3e+188) tmp = y * (z * -6.0); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(z * 6.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.1e+125], t$95$0, If[LessEqual[z, -8.2e+95], t$95$3, If[LessEqual[z, -3e+70], t$95$0, If[LessEqual[z, -3.1e-22], t$95$1, If[LessEqual[z, -3.7e-252], t$95$2, If[LessEqual[z, 2.9e-255], N[(x * -3.0), $MachinePrecision], If[LessEqual[z, 2.05e-145], t$95$2, If[LessEqual[z, 1.5e-71], N[(x * -3.0), $MachinePrecision], If[LessEqual[z, 0.7], t$95$2, If[LessEqual[z, 1.7e+133], t$95$1, If[LessEqual[z, 3.3e+188], N[(y * N[(z * -6.0), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -6 \cdot \left(y \cdot z\right)\\
t_1 := 6 \cdot \left(x \cdot z\right)\\
t_2 := x + y \cdot 4\\
t_3 := x \cdot \left(z \cdot 6\right)\\
\mathbf{if}\;z \leq -5.1 \cdot 10^{+125}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -8.2 \cdot 10^{+95}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -3 \cdot 10^{+70}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{-252}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-255}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-145}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{-71}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 0.7:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+133}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+188}:\\
\;\;\;\;y \cdot \left(z \cdot -6\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -5.0999999999999998e125 or -8.19999999999999972e95 < z < -2.99999999999999976e70Initial program 99.8%
metadata-eval99.8%
Simplified99.8%
+-commutative99.8%
*-commutative99.8%
associate-*r*100.0%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 100.0%
associate-*r*99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in y around inf 72.9%
if -5.0999999999999998e125 < z < -8.19999999999999972e95 or 3.29999999999999983e188 < z Initial program 99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 70.5%
sub-neg70.5%
distribute-rgt-in70.5%
metadata-eval70.5%
neg-mul-170.5%
associate-*r*70.5%
*-commutative70.5%
associate-+r+70.5%
metadata-eval70.5%
associate-*r*70.5%
metadata-eval70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in z around inf 70.4%
*-commutative70.4%
associate-*l*70.5%
Simplified70.5%
if -2.99999999999999976e70 < z < -3.10000000000000013e-22 or 0.69999999999999996 < z < 1.69999999999999994e133Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around inf 65.3%
sub-neg65.3%
distribute-rgt-in65.3%
metadata-eval65.3%
neg-mul-165.3%
associate-*r*65.3%
*-commutative65.3%
associate-+r+65.3%
metadata-eval65.3%
associate-*r*65.3%
metadata-eval65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in z around inf 51.7%
if -3.10000000000000013e-22 < z < -3.7000000000000001e-252 or 2.90000000000000007e-255 < z < 2.0499999999999999e-145 or 1.5000000000000001e-71 < z < 0.69999999999999996Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 64.2%
associate-*r*64.2%
Simplified64.2%
Taylor expanded in z around 0 63.9%
if -3.7000000000000001e-252 < z < 2.90000000000000007e-255 or 2.0499999999999999e-145 < z < 1.5000000000000001e-71Initial program 99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around inf 68.7%
sub-neg68.7%
distribute-rgt-in68.7%
metadata-eval68.7%
neg-mul-168.7%
associate-*r*68.7%
*-commutative68.7%
associate-+r+68.7%
metadata-eval68.7%
associate-*r*68.7%
metadata-eval68.7%
*-commutative68.7%
Simplified68.7%
Taylor expanded in z around 0 68.7%
*-commutative68.7%
Simplified68.7%
if 1.69999999999999994e133 < z < 3.29999999999999983e188Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
fma-define99.6%
Applied egg-rr99.6%
Taylor expanded in z around inf 99.7%
associate-*r*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 73.9%
*-commutative73.9%
associate-*r*74.0%
*-commutative74.0%
Simplified74.0%
Final simplification65.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* x (+ -3.0 (* z 6.0))))
(t_1 (* -6.0 (* (- y x) z)))
(t_2 (+ x (* y 4.0))))
(if (<= z -11500000000000.0)
t_1
(if (<= z -1.08e-101)
t_0
(if (<= z -6.8e-251)
t_2
(if (<= z 3.1e-256)
t_0
(if (<= z 1.8e-145)
t_2
(if (<= z 1.75e-72) (* x -3.0) (if (<= z 0.65) t_2 t_1)))))))))
double code(double x, double y, double z) {
double t_0 = x * (-3.0 + (z * 6.0));
double t_1 = -6.0 * ((y - x) * z);
double t_2 = x + (y * 4.0);
double tmp;
if (z <= -11500000000000.0) {
tmp = t_1;
} else if (z <= -1.08e-101) {
tmp = t_0;
} else if (z <= -6.8e-251) {
tmp = t_2;
} else if (z <= 3.1e-256) {
tmp = t_0;
} else if (z <= 1.8e-145) {
tmp = t_2;
} else if (z <= 1.75e-72) {
tmp = x * -3.0;
} else if (z <= 0.65) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_0 = x * ((-3.0d0) + (z * 6.0d0))
t_1 = (-6.0d0) * ((y - x) * z)
t_2 = x + (y * 4.0d0)
if (z <= (-11500000000000.0d0)) then
tmp = t_1
else if (z <= (-1.08d-101)) then
tmp = t_0
else if (z <= (-6.8d-251)) then
tmp = t_2
else if (z <= 3.1d-256) then
tmp = t_0
else if (z <= 1.8d-145) then
tmp = t_2
else if (z <= 1.75d-72) then
tmp = x * (-3.0d0)
else if (z <= 0.65d0) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x * (-3.0 + (z * 6.0));
double t_1 = -6.0 * ((y - x) * z);
double t_2 = x + (y * 4.0);
double tmp;
if (z <= -11500000000000.0) {
tmp = t_1;
} else if (z <= -1.08e-101) {
tmp = t_0;
} else if (z <= -6.8e-251) {
tmp = t_2;
} else if (z <= 3.1e-256) {
tmp = t_0;
} else if (z <= 1.8e-145) {
tmp = t_2;
} else if (z <= 1.75e-72) {
tmp = x * -3.0;
} else if (z <= 0.65) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = x * (-3.0 + (z * 6.0)) t_1 = -6.0 * ((y - x) * z) t_2 = x + (y * 4.0) tmp = 0 if z <= -11500000000000.0: tmp = t_1 elif z <= -1.08e-101: tmp = t_0 elif z <= -6.8e-251: tmp = t_2 elif z <= 3.1e-256: tmp = t_0 elif z <= 1.8e-145: tmp = t_2 elif z <= 1.75e-72: tmp = x * -3.0 elif z <= 0.65: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(x * Float64(-3.0 + Float64(z * 6.0))) t_1 = Float64(-6.0 * Float64(Float64(y - x) * z)) t_2 = Float64(x + Float64(y * 4.0)) tmp = 0.0 if (z <= -11500000000000.0) tmp = t_1; elseif (z <= -1.08e-101) tmp = t_0; elseif (z <= -6.8e-251) tmp = t_2; elseif (z <= 3.1e-256) tmp = t_0; elseif (z <= 1.8e-145) tmp = t_2; elseif (z <= 1.75e-72) tmp = Float64(x * -3.0); elseif (z <= 0.65) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x * (-3.0 + (z * 6.0)); t_1 = -6.0 * ((y - x) * z); t_2 = x + (y * 4.0); tmp = 0.0; if (z <= -11500000000000.0) tmp = t_1; elseif (z <= -1.08e-101) tmp = t_0; elseif (z <= -6.8e-251) tmp = t_2; elseif (z <= 3.1e-256) tmp = t_0; elseif (z <= 1.8e-145) tmp = t_2; elseif (z <= 1.75e-72) tmp = x * -3.0; elseif (z <= 0.65) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x * N[(-3.0 + N[(z * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(-6.0 * N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * 4.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -11500000000000.0], t$95$1, If[LessEqual[z, -1.08e-101], t$95$0, If[LessEqual[z, -6.8e-251], t$95$2, If[LessEqual[z, 3.1e-256], t$95$0, If[LessEqual[z, 1.8e-145], t$95$2, If[LessEqual[z, 1.75e-72], N[(x * -3.0), $MachinePrecision], If[LessEqual[z, 0.65], t$95$2, t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x \cdot \left(-3 + z \cdot 6\right)\\
t_1 := -6 \cdot \left(\left(y - x\right) \cdot z\right)\\
t_2 := x + y \cdot 4\\
\mathbf{if}\;z \leq -11500000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.08 \cdot 10^{-101}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-251}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-256}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-145}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-72}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 0.65:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.15e13 or 0.650000000000000022 < z Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 99.4%
if -1.15e13 < z < -1.08e-101 or -6.80000000000000034e-251 < z < 3.09999999999999986e-256Initial program 99.2%
metadata-eval99.2%
Simplified99.2%
Taylor expanded in x around inf 61.4%
sub-neg61.4%
distribute-rgt-in61.4%
metadata-eval61.4%
neg-mul-161.4%
associate-*r*61.4%
*-commutative61.4%
associate-+r+61.4%
metadata-eval61.4%
associate-*r*61.4%
metadata-eval61.4%
*-commutative61.4%
Simplified61.4%
if -1.08e-101 < z < -6.80000000000000034e-251 or 3.09999999999999986e-256 < z < 1.8e-145 or 1.75e-72 < z < 0.650000000000000022Initial program 99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 69.0%
associate-*r*69.0%
Simplified69.0%
Taylor expanded in z around 0 68.5%
if 1.8e-145 < z < 1.75e-72Initial program 99.1%
metadata-eval99.1%
Simplified99.1%
Taylor expanded in x around inf 82.7%
sub-neg82.7%
distribute-rgt-in82.7%
metadata-eval82.7%
neg-mul-182.7%
associate-*r*82.7%
*-commutative82.7%
associate-+r+82.7%
metadata-eval82.7%
associate-*r*82.7%
metadata-eval82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in z around 0 82.7%
*-commutative82.7%
Simplified82.7%
Final simplification82.3%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -6.0 (* y z))) (t_1 (* 6.0 (* x z))))
(if (<= z -5e+125)
t_0
(if (<= z -3.5e+96)
t_1
(if (<= z -5.2e+20)
t_0
(if (<= z 0.5)
(* x -3.0)
(if (or (<= z 1.3e+130) (not (<= z 5e+187))) t_1 t_0)))))))
double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = 6.0 * (x * z);
double tmp;
if (z <= -5e+125) {
tmp = t_0;
} else if (z <= -3.5e+96) {
tmp = t_1;
} else if (z <= -5.2e+20) {
tmp = t_0;
} else if (z <= 0.5) {
tmp = x * -3.0;
} else if ((z <= 1.3e+130) || !(z <= 5e+187)) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (-6.0d0) * (y * z)
t_1 = 6.0d0 * (x * z)
if (z <= (-5d+125)) then
tmp = t_0
else if (z <= (-3.5d+96)) then
tmp = t_1
else if (z <= (-5.2d+20)) then
tmp = t_0
else if (z <= 0.5d0) then
tmp = x * (-3.0d0)
else if ((z <= 1.3d+130) .or. (.not. (z <= 5d+187))) then
tmp = t_1
else
tmp = t_0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = 6.0 * (x * z);
double tmp;
if (z <= -5e+125) {
tmp = t_0;
} else if (z <= -3.5e+96) {
tmp = t_1;
} else if (z <= -5.2e+20) {
tmp = t_0;
} else if (z <= 0.5) {
tmp = x * -3.0;
} else if ((z <= 1.3e+130) || !(z <= 5e+187)) {
tmp = t_1;
} else {
tmp = t_0;
}
return tmp;
}
def code(x, y, z): t_0 = -6.0 * (y * z) t_1 = 6.0 * (x * z) tmp = 0 if z <= -5e+125: tmp = t_0 elif z <= -3.5e+96: tmp = t_1 elif z <= -5.2e+20: tmp = t_0 elif z <= 0.5: tmp = x * -3.0 elif (z <= 1.3e+130) or not (z <= 5e+187): tmp = t_1 else: tmp = t_0 return tmp
function code(x, y, z) t_0 = Float64(-6.0 * Float64(y * z)) t_1 = Float64(6.0 * Float64(x * z)) tmp = 0.0 if (z <= -5e+125) tmp = t_0; elseif (z <= -3.5e+96) tmp = t_1; elseif (z <= -5.2e+20) tmp = t_0; elseif (z <= 0.5) tmp = Float64(x * -3.0); elseif ((z <= 1.3e+130) || !(z <= 5e+187)) tmp = t_1; else tmp = t_0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -6.0 * (y * z); t_1 = 6.0 * (x * z); tmp = 0.0; if (z <= -5e+125) tmp = t_0; elseif (z <= -3.5e+96) tmp = t_1; elseif (z <= -5.2e+20) tmp = t_0; elseif (z <= 0.5) tmp = x * -3.0; elseif ((z <= 1.3e+130) || ~((z <= 5e+187))) tmp = t_1; else tmp = t_0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e+125], t$95$0, If[LessEqual[z, -3.5e+96], t$95$1, If[LessEqual[z, -5.2e+20], t$95$0, If[LessEqual[z, 0.5], N[(x * -3.0), $MachinePrecision], If[Or[LessEqual[z, 1.3e+130], N[Not[LessEqual[z, 5e+187]], $MachinePrecision]], t$95$1, t$95$0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -6 \cdot \left(y \cdot z\right)\\
t_1 := 6 \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{+125}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{+20}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 0.5:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+130} \lor \neg \left(z \leq 5 \cdot 10^{+187}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_0\\
\end{array}
\end{array}
if z < -4.99999999999999962e125 or -3.4999999999999999e96 < z < -5.2e20 or 1.2999999999999999e130 < z < 5.0000000000000001e187Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.9%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 99.9%
associate-*r*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 70.5%
if -4.99999999999999962e125 < z < -3.4999999999999999e96 or 0.5 < z < 1.2999999999999999e130 or 5.0000000000000001e187 < z Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
Taylor expanded in x around inf 65.6%
sub-neg65.6%
distribute-rgt-in65.6%
metadata-eval65.6%
neg-mul-165.6%
associate-*r*65.6%
*-commutative65.6%
associate-+r+65.6%
metadata-eval65.6%
associate-*r*65.6%
metadata-eval65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in z around inf 65.6%
if -5.2e20 < z < 0.5Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around inf 47.9%
sub-neg47.9%
distribute-rgt-in48.0%
metadata-eval48.0%
neg-mul-148.0%
associate-*r*48.0%
*-commutative48.0%
associate-+r+48.0%
metadata-eval48.0%
associate-*r*48.0%
metadata-eval48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in z around 0 43.7%
*-commutative43.7%
Simplified43.7%
Final simplification55.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -6.0 (* y z))) (t_1 (* x (* z 6.0))))
(if (<= z -4.6e+125)
t_0
(if (<= z -1.2e+96)
t_1
(if (<= z -5.2e+20)
t_0
(if (<= z 0.5)
(* x -3.0)
(if (<= z 2.05e+127)
(* 6.0 (* x z))
(if (<= z 3.5e+189) t_0 t_1))))))))
double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = x * (z * 6.0);
double tmp;
if (z <= -4.6e+125) {
tmp = t_0;
} else if (z <= -1.2e+96) {
tmp = t_1;
} else if (z <= -5.2e+20) {
tmp = t_0;
} else if (z <= 0.5) {
tmp = x * -3.0;
} else if (z <= 2.05e+127) {
tmp = 6.0 * (x * z);
} else if (z <= 3.5e+189) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (-6.0d0) * (y * z)
t_1 = x * (z * 6.0d0)
if (z <= (-4.6d+125)) then
tmp = t_0
else if (z <= (-1.2d+96)) then
tmp = t_1
else if (z <= (-5.2d+20)) then
tmp = t_0
else if (z <= 0.5d0) then
tmp = x * (-3.0d0)
else if (z <= 2.05d+127) then
tmp = 6.0d0 * (x * z)
else if (z <= 3.5d+189) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = x * (z * 6.0);
double tmp;
if (z <= -4.6e+125) {
tmp = t_0;
} else if (z <= -1.2e+96) {
tmp = t_1;
} else if (z <= -5.2e+20) {
tmp = t_0;
} else if (z <= 0.5) {
tmp = x * -3.0;
} else if (z <= 2.05e+127) {
tmp = 6.0 * (x * z);
} else if (z <= 3.5e+189) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = -6.0 * (y * z) t_1 = x * (z * 6.0) tmp = 0 if z <= -4.6e+125: tmp = t_0 elif z <= -1.2e+96: tmp = t_1 elif z <= -5.2e+20: tmp = t_0 elif z <= 0.5: tmp = x * -3.0 elif z <= 2.05e+127: tmp = 6.0 * (x * z) elif z <= 3.5e+189: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(-6.0 * Float64(y * z)) t_1 = Float64(x * Float64(z * 6.0)) tmp = 0.0 if (z <= -4.6e+125) tmp = t_0; elseif (z <= -1.2e+96) tmp = t_1; elseif (z <= -5.2e+20) tmp = t_0; elseif (z <= 0.5) tmp = Float64(x * -3.0); elseif (z <= 2.05e+127) tmp = Float64(6.0 * Float64(x * z)); elseif (z <= 3.5e+189) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -6.0 * (y * z); t_1 = x * (z * 6.0); tmp = 0.0; if (z <= -4.6e+125) tmp = t_0; elseif (z <= -1.2e+96) tmp = t_1; elseif (z <= -5.2e+20) tmp = t_0; elseif (z <= 0.5) tmp = x * -3.0; elseif (z <= 2.05e+127) tmp = 6.0 * (x * z); elseif (z <= 3.5e+189) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(z * 6.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.6e+125], t$95$0, If[LessEqual[z, -1.2e+96], t$95$1, If[LessEqual[z, -5.2e+20], t$95$0, If[LessEqual[z, 0.5], N[(x * -3.0), $MachinePrecision], If[LessEqual[z, 2.05e+127], N[(6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.5e+189], t$95$0, t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -6 \cdot \left(y \cdot z\right)\\
t_1 := x \cdot \left(z \cdot 6\right)\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+125}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -1.2 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{+20}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 0.5:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+127}:\\
\;\;\;\;6 \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 3.5 \cdot 10^{+189}:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.60000000000000026e125 or -1.19999999999999996e96 < z < -5.2e20 or 2.04999999999999991e127 < z < 3.49999999999999996e189Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.9%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 99.9%
associate-*r*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 70.5%
if -4.60000000000000026e125 < z < -1.19999999999999996e96 or 3.49999999999999996e189 < z Initial program 99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 70.5%
sub-neg70.5%
distribute-rgt-in70.5%
metadata-eval70.5%
neg-mul-170.5%
associate-*r*70.5%
*-commutative70.5%
associate-+r+70.5%
metadata-eval70.5%
associate-*r*70.5%
metadata-eval70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in z around inf 70.4%
*-commutative70.4%
associate-*l*70.5%
Simplified70.5%
if -5.2e20 < z < 0.5Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around inf 47.9%
sub-neg47.9%
distribute-rgt-in48.0%
metadata-eval48.0%
neg-mul-148.0%
associate-*r*48.0%
*-commutative48.0%
associate-+r+48.0%
metadata-eval48.0%
associate-*r*48.0%
metadata-eval48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in z around 0 43.7%
*-commutative43.7%
Simplified43.7%
if 0.5 < z < 2.04999999999999991e127Initial program 99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around inf 56.3%
sub-neg56.3%
distribute-rgt-in56.3%
metadata-eval56.3%
neg-mul-156.3%
associate-*r*56.3%
*-commutative56.3%
associate-+r+56.3%
metadata-eval56.3%
associate-*r*56.3%
metadata-eval56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in z around inf 56.3%
Final simplification55.0%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (* -6.0 (* y z))) (t_1 (* x (* z 6.0))))
(if (<= z -5e+125)
t_0
(if (<= z -7.2e+96)
t_1
(if (<= z -5.2e+20)
t_0
(if (<= z 0.5)
(* x -3.0)
(if (<= z 1e+130)
(* 6.0 (* x z))
(if (<= z 2.5e+189) (* y (* z -6.0)) t_1))))))))
double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = x * (z * 6.0);
double tmp;
if (z <= -5e+125) {
tmp = t_0;
} else if (z <= -7.2e+96) {
tmp = t_1;
} else if (z <= -5.2e+20) {
tmp = t_0;
} else if (z <= 0.5) {
tmp = x * -3.0;
} else if (z <= 1e+130) {
tmp = 6.0 * (x * z);
} else if (z <= 2.5e+189) {
tmp = y * (z * -6.0);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = (-6.0d0) * (y * z)
t_1 = x * (z * 6.0d0)
if (z <= (-5d+125)) then
tmp = t_0
else if (z <= (-7.2d+96)) then
tmp = t_1
else if (z <= (-5.2d+20)) then
tmp = t_0
else if (z <= 0.5d0) then
tmp = x * (-3.0d0)
else if (z <= 1d+130) then
tmp = 6.0d0 * (x * z)
else if (z <= 2.5d+189) then
tmp = y * (z * (-6.0d0))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = -6.0 * (y * z);
double t_1 = x * (z * 6.0);
double tmp;
if (z <= -5e+125) {
tmp = t_0;
} else if (z <= -7.2e+96) {
tmp = t_1;
} else if (z <= -5.2e+20) {
tmp = t_0;
} else if (z <= 0.5) {
tmp = x * -3.0;
} else if (z <= 1e+130) {
tmp = 6.0 * (x * z);
} else if (z <= 2.5e+189) {
tmp = y * (z * -6.0);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = -6.0 * (y * z) t_1 = x * (z * 6.0) tmp = 0 if z <= -5e+125: tmp = t_0 elif z <= -7.2e+96: tmp = t_1 elif z <= -5.2e+20: tmp = t_0 elif z <= 0.5: tmp = x * -3.0 elif z <= 1e+130: tmp = 6.0 * (x * z) elif z <= 2.5e+189: tmp = y * (z * -6.0) else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(-6.0 * Float64(y * z)) t_1 = Float64(x * Float64(z * 6.0)) tmp = 0.0 if (z <= -5e+125) tmp = t_0; elseif (z <= -7.2e+96) tmp = t_1; elseif (z <= -5.2e+20) tmp = t_0; elseif (z <= 0.5) tmp = Float64(x * -3.0); elseif (z <= 1e+130) tmp = Float64(6.0 * Float64(x * z)); elseif (z <= 2.5e+189) tmp = Float64(y * Float64(z * -6.0)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = -6.0 * (y * z); t_1 = x * (z * 6.0); tmp = 0.0; if (z <= -5e+125) tmp = t_0; elseif (z <= -7.2e+96) tmp = t_1; elseif (z <= -5.2e+20) tmp = t_0; elseif (z <= 0.5) tmp = x * -3.0; elseif (z <= 1e+130) tmp = 6.0 * (x * z); elseif (z <= 2.5e+189) tmp = y * (z * -6.0); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(-6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(x * N[(z * 6.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e+125], t$95$0, If[LessEqual[z, -7.2e+96], t$95$1, If[LessEqual[z, -5.2e+20], t$95$0, If[LessEqual[z, 0.5], N[(x * -3.0), $MachinePrecision], If[LessEqual[z, 1e+130], N[(6.0 * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.5e+189], N[(y * N[(z * -6.0), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := -6 \cdot \left(y \cdot z\right)\\
t_1 := x \cdot \left(z \cdot 6\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{+125}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{+96}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{+20}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 0.5:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 10^{+130}:\\
\;\;\;\;6 \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+189}:\\
\;\;\;\;y \cdot \left(z \cdot -6\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.99999999999999962e125 or -7.20000000000000026e96 < z < -5.2e20Initial program 99.8%
metadata-eval99.8%
Simplified99.8%
+-commutative99.8%
*-commutative99.8%
associate-*r*100.0%
fma-define99.8%
Applied egg-rr99.8%
Taylor expanded in z around inf 100.0%
associate-*r*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 69.3%
if -4.99999999999999962e125 < z < -7.20000000000000026e96 or 2.5000000000000002e189 < z Initial program 99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around inf 70.5%
sub-neg70.5%
distribute-rgt-in70.5%
metadata-eval70.5%
neg-mul-170.5%
associate-*r*70.5%
*-commutative70.5%
associate-+r+70.5%
metadata-eval70.5%
associate-*r*70.5%
metadata-eval70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in z around inf 70.4%
*-commutative70.4%
associate-*l*70.5%
Simplified70.5%
if -5.2e20 < z < 0.5Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around inf 47.9%
sub-neg47.9%
distribute-rgt-in48.0%
metadata-eval48.0%
neg-mul-148.0%
associate-*r*48.0%
*-commutative48.0%
associate-+r+48.0%
metadata-eval48.0%
associate-*r*48.0%
metadata-eval48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in z around 0 43.7%
*-commutative43.7%
Simplified43.7%
if 0.5 < z < 1.0000000000000001e130Initial program 99.4%
metadata-eval99.4%
Simplified99.4%
Taylor expanded in x around inf 56.3%
sub-neg56.3%
distribute-rgt-in56.3%
metadata-eval56.3%
neg-mul-156.3%
associate-*r*56.3%
*-commutative56.3%
associate-+r+56.3%
metadata-eval56.3%
associate-*r*56.3%
metadata-eval56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in z around inf 56.3%
if 1.0000000000000001e130 < z < 2.5000000000000002e189Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
fma-define99.6%
Applied egg-rr99.6%
Taylor expanded in z around inf 99.7%
associate-*r*99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in y around inf 73.9%
*-commutative73.9%
associate-*r*74.0%
*-commutative74.0%
Simplified74.0%
Final simplification55.0%
(FPCore (x y z)
:precision binary64
(if (or (<= y -2.3e+89)
(not
(or (<= y -20000000000000.0)
(and (not (<= y -2.35e-32)) (<= y 4.2e-92)))))
(* y (+ 4.0 (* z -6.0)))
(* x (+ -3.0 (* z 6.0)))))
double code(double x, double y, double z) {
double tmp;
if ((y <= -2.3e+89) || !((y <= -20000000000000.0) || (!(y <= -2.35e-32) && (y <= 4.2e-92)))) {
tmp = y * (4.0 + (z * -6.0));
} else {
tmp = x * (-3.0 + (z * 6.0));
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((y <= (-2.3d+89)) .or. (.not. (y <= (-20000000000000.0d0)) .or. (.not. (y <= (-2.35d-32))) .and. (y <= 4.2d-92))) then
tmp = y * (4.0d0 + (z * (-6.0d0)))
else
tmp = x * ((-3.0d0) + (z * 6.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -2.3e+89) || !((y <= -20000000000000.0) || (!(y <= -2.35e-32) && (y <= 4.2e-92)))) {
tmp = y * (4.0 + (z * -6.0));
} else {
tmp = x * (-3.0 + (z * 6.0));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -2.3e+89) or not ((y <= -20000000000000.0) or (not (y <= -2.35e-32) and (y <= 4.2e-92))): tmp = y * (4.0 + (z * -6.0)) else: tmp = x * (-3.0 + (z * 6.0)) return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -2.3e+89) || !((y <= -20000000000000.0) || (!(y <= -2.35e-32) && (y <= 4.2e-92)))) tmp = Float64(y * Float64(4.0 + Float64(z * -6.0))); else tmp = Float64(x * Float64(-3.0 + Float64(z * 6.0))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -2.3e+89) || ~(((y <= -20000000000000.0) || (~((y <= -2.35e-32)) && (y <= 4.2e-92))))) tmp = y * (4.0 + (z * -6.0)); else tmp = x * (-3.0 + (z * 6.0)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -2.3e+89], N[Not[Or[LessEqual[y, -20000000000000.0], And[N[Not[LessEqual[y, -2.35e-32]], $MachinePrecision], LessEqual[y, 4.2e-92]]]], $MachinePrecision]], N[(y * N[(4.0 + N[(z * -6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-3.0 + N[(z * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{+89} \lor \neg \left(y \leq -20000000000000 \lor \neg \left(y \leq -2.35 \cdot 10^{-32}\right) \land y \leq 4.2 \cdot 10^{-92}\right):\\
\;\;\;\;y \cdot \left(4 + z \cdot -6\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-3 + z \cdot 6\right)\\
\end{array}
\end{array}
if y < -2.2999999999999999e89 or -2e13 < y < -2.3500000000000001e-32 or 4.2e-92 < y Initial program 99.5%
+-commutative99.5%
associate-*l*99.8%
fma-define99.8%
sub-neg99.8%
distribute-rgt-in99.8%
metadata-eval99.8%
metadata-eval99.8%
distribute-lft-neg-out99.8%
distribute-rgt-neg-in99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in y around inf 82.5%
if -2.2999999999999999e89 < y < -2e13 or -2.3500000000000001e-32 < y < 4.2e-92Initial program 99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in x around inf 80.8%
sub-neg80.8%
distribute-rgt-in80.8%
metadata-eval80.8%
neg-mul-180.8%
associate-*r*80.8%
*-commutative80.8%
associate-+r+80.8%
metadata-eval80.8%
associate-*r*80.8%
metadata-eval80.8%
*-commutative80.8%
Simplified80.8%
Final simplification81.7%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ x (* y 4.0))) (t_1 (* -6.0 (* (- y x) z))))
(if (<= z -1.25e-23)
t_1
(if (<= z 2.85e-145)
t_0
(if (<= z 7.5e-71) (* x -3.0) (if (<= z 0.68) t_0 t_1))))))
double code(double x, double y, double z) {
double t_0 = x + (y * 4.0);
double t_1 = -6.0 * ((y - x) * z);
double tmp;
if (z <= -1.25e-23) {
tmp = t_1;
} else if (z <= 2.85e-145) {
tmp = t_0;
} else if (z <= 7.5e-71) {
tmp = x * -3.0;
} else if (z <= 0.68) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: t_1
real(8) :: tmp
t_0 = x + (y * 4.0d0)
t_1 = (-6.0d0) * ((y - x) * z)
if (z <= (-1.25d-23)) then
tmp = t_1
else if (z <= 2.85d-145) then
tmp = t_0
else if (z <= 7.5d-71) then
tmp = x * (-3.0d0)
else if (z <= 0.68d0) then
tmp = t_0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = x + (y * 4.0);
double t_1 = -6.0 * ((y - x) * z);
double tmp;
if (z <= -1.25e-23) {
tmp = t_1;
} else if (z <= 2.85e-145) {
tmp = t_0;
} else if (z <= 7.5e-71) {
tmp = x * -3.0;
} else if (z <= 0.68) {
tmp = t_0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z): t_0 = x + (y * 4.0) t_1 = -6.0 * ((y - x) * z) tmp = 0 if z <= -1.25e-23: tmp = t_1 elif z <= 2.85e-145: tmp = t_0 elif z <= 7.5e-71: tmp = x * -3.0 elif z <= 0.68: tmp = t_0 else: tmp = t_1 return tmp
function code(x, y, z) t_0 = Float64(x + Float64(y * 4.0)) t_1 = Float64(-6.0 * Float64(Float64(y - x) * z)) tmp = 0.0 if (z <= -1.25e-23) tmp = t_1; elseif (z <= 2.85e-145) tmp = t_0; elseif (z <= 7.5e-71) tmp = Float64(x * -3.0); elseif (z <= 0.68) tmp = t_0; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z) t_0 = x + (y * 4.0); t_1 = -6.0 * ((y - x) * z); tmp = 0.0; if (z <= -1.25e-23) tmp = t_1; elseif (z <= 2.85e-145) tmp = t_0; elseif (z <= 7.5e-71) tmp = x * -3.0; elseif (z <= 0.68) tmp = t_0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(x + N[(y * 4.0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$1 = N[(-6.0 * N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.25e-23], t$95$1, If[LessEqual[z, 2.85e-145], t$95$0, If[LessEqual[z, 7.5e-71], N[(x * -3.0), $MachinePrecision], If[LessEqual[z, 0.68], t$95$0, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := x + y \cdot 4\\
t_1 := -6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{if}\;z \leq -1.25 \cdot 10^{-23}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.85 \cdot 10^{-145}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{-71}:\\
\;\;\;\;x \cdot -3\\
\mathbf{elif}\;z \leq 0.68:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.2500000000000001e-23 or 0.680000000000000049 < z Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 94.9%
if -1.2500000000000001e-23 < z < 2.85000000000000016e-145 or 7.5000000000000004e-71 < z < 0.680000000000000049Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in y around inf 58.4%
associate-*r*58.4%
Simplified58.4%
Taylor expanded in z around 0 58.3%
if 2.85000000000000016e-145 < z < 7.5000000000000004e-71Initial program 99.1%
metadata-eval99.1%
Simplified99.1%
Taylor expanded in x around inf 82.7%
sub-neg82.7%
distribute-rgt-in82.7%
metadata-eval82.7%
neg-mul-182.7%
associate-*r*82.7%
*-commutative82.7%
associate-+r+82.7%
metadata-eval82.7%
associate-*r*82.7%
metadata-eval82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in z around 0 82.7%
*-commutative82.7%
Simplified82.7%
Final simplification77.9%
(FPCore (x y z) :precision binary64 (if (<= z -0.6) (* -6.0 (* (- y x) z)) (if (<= z 0.58) (+ x (* (- y x) 4.0)) (* (- y x) (* z -6.0)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -0.6) {
tmp = -6.0 * ((y - x) * z);
} else if (z <= 0.58) {
tmp = x + ((y - x) * 4.0);
} else {
tmp = (y - x) * (z * -6.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-0.6d0)) then
tmp = (-6.0d0) * ((y - x) * z)
else if (z <= 0.58d0) then
tmp = x + ((y - x) * 4.0d0)
else
tmp = (y - x) * (z * (-6.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -0.6) {
tmp = -6.0 * ((y - x) * z);
} else if (z <= 0.58) {
tmp = x + ((y - x) * 4.0);
} else {
tmp = (y - x) * (z * -6.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -0.6: tmp = -6.0 * ((y - x) * z) elif z <= 0.58: tmp = x + ((y - x) * 4.0) else: tmp = (y - x) * (z * -6.0) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -0.6) tmp = Float64(-6.0 * Float64(Float64(y - x) * z)); elseif (z <= 0.58) tmp = Float64(x + Float64(Float64(y - x) * 4.0)); else tmp = Float64(Float64(y - x) * Float64(z * -6.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -0.6) tmp = -6.0 * ((y - x) * z); elseif (z <= 0.58) tmp = x + ((y - x) * 4.0); else tmp = (y - x) * (z * -6.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -0.6], N[(-6.0 * N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.58], N[(x + N[(N[(y - x), $MachinePrecision] * 4.0), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(z * -6.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.6:\\
\;\;\;\;-6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{elif}\;z \leq 0.58:\\
\;\;\;\;x + \left(y - x\right) \cdot 4\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \left(z \cdot -6\right)\\
\end{array}
\end{array}
if z < -0.599999999999999978Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.8%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 97.4%
if -0.599999999999999978 < z < 0.57999999999999996Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in z around 0 97.7%
if 0.57999999999999996 < z Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
fma-define99.6%
Applied egg-rr99.6%
Taylor expanded in z around inf 98.9%
associate-*r*99.0%
*-commutative99.0%
Simplified99.0%
Final simplification98.0%
(FPCore (x y z) :precision binary64 (if (<= z -0.58) (* -6.0 (* (- y x) z)) (if (<= z 0.56) (+ (* y 4.0) (* x -3.0)) (* (- y x) (* z -6.0)))))
double code(double x, double y, double z) {
double tmp;
if (z <= -0.58) {
tmp = -6.0 * ((y - x) * z);
} else if (z <= 0.56) {
tmp = (y * 4.0) + (x * -3.0);
} else {
tmp = (y - x) * (z * -6.0);
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (z <= (-0.58d0)) then
tmp = (-6.0d0) * ((y - x) * z)
else if (z <= 0.56d0) then
tmp = (y * 4.0d0) + (x * (-3.0d0))
else
tmp = (y - x) * (z * (-6.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (z <= -0.58) {
tmp = -6.0 * ((y - x) * z);
} else if (z <= 0.56) {
tmp = (y * 4.0) + (x * -3.0);
} else {
tmp = (y - x) * (z * -6.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if z <= -0.58: tmp = -6.0 * ((y - x) * z) elif z <= 0.56: tmp = (y * 4.0) + (x * -3.0) else: tmp = (y - x) * (z * -6.0) return tmp
function code(x, y, z) tmp = 0.0 if (z <= -0.58) tmp = Float64(-6.0 * Float64(Float64(y - x) * z)); elseif (z <= 0.56) tmp = Float64(Float64(y * 4.0) + Float64(x * -3.0)); else tmp = Float64(Float64(y - x) * Float64(z * -6.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (z <= -0.58) tmp = -6.0 * ((y - x) * z); elseif (z <= 0.56) tmp = (y * 4.0) + (x * -3.0); else tmp = (y - x) * (z * -6.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[z, -0.58], N[(-6.0 * N[(N[(y - x), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.56], N[(N[(y * 4.0), $MachinePrecision] + N[(x * -3.0), $MachinePrecision]), $MachinePrecision], N[(N[(y - x), $MachinePrecision] * N[(z * -6.0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.58:\\
\;\;\;\;-6 \cdot \left(\left(y - x\right) \cdot z\right)\\
\mathbf{elif}\;z \leq 0.56:\\
\;\;\;\;y \cdot 4 + x \cdot -3\\
\mathbf{else}:\\
\;\;\;\;\left(y - x\right) \cdot \left(z \cdot -6\right)\\
\end{array}
\end{array}
if z < -0.57999999999999996Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.8%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 97.4%
if -0.57999999999999996 < z < 0.56000000000000005Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around 0 99.5%
Taylor expanded in z around 0 97.8%
if 0.56000000000000005 < z Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
fma-define99.6%
Applied egg-rr99.6%
Taylor expanded in z around inf 98.9%
associate-*r*99.0%
*-commutative99.0%
Simplified99.0%
Final simplification98.0%
(FPCore (x y z) :precision binary64 (if (or (<= z -5.2e+20) (not (<= z 0.58))) (* -6.0 (* y z)) (* x -3.0)))
double code(double x, double y, double z) {
double tmp;
if ((z <= -5.2e+20) || !(z <= 0.58)) {
tmp = -6.0 * (y * z);
} else {
tmp = x * -3.0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((z <= (-5.2d+20)) .or. (.not. (z <= 0.58d0))) then
tmp = (-6.0d0) * (y * z)
else
tmp = x * (-3.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -5.2e+20) || !(z <= 0.58)) {
tmp = -6.0 * (y * z);
} else {
tmp = x * -3.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -5.2e+20) or not (z <= 0.58): tmp = -6.0 * (y * z) else: tmp = x * -3.0 return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -5.2e+20) || !(z <= 0.58)) tmp = Float64(-6.0 * Float64(y * z)); else tmp = Float64(x * -3.0); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -5.2e+20) || ~((z <= 0.58))) tmp = -6.0 * (y * z); else tmp = x * -3.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -5.2e+20], N[Not[LessEqual[z, 0.58]], $MachinePrecision]], N[(-6.0 * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(x * -3.0), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+20} \lor \neg \left(z \leq 0.58\right):\\
\;\;\;\;-6 \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot -3\\
\end{array}
\end{array}
if z < -5.2e20 or 0.57999999999999996 < z Initial program 99.7%
metadata-eval99.7%
Simplified99.7%
+-commutative99.7%
*-commutative99.7%
associate-*r*99.7%
fma-define99.7%
Applied egg-rr99.7%
Taylor expanded in z around inf 99.3%
associate-*r*99.4%
*-commutative99.4%
Simplified99.4%
Taylor expanded in y around inf 52.9%
if -5.2e20 < z < 0.57999999999999996Initial program 99.3%
metadata-eval99.3%
Simplified99.3%
Taylor expanded in x around inf 47.9%
sub-neg47.9%
distribute-rgt-in48.0%
metadata-eval48.0%
neg-mul-148.0%
associate-*r*48.0%
*-commutative48.0%
associate-+r+48.0%
metadata-eval48.0%
associate-*r*48.0%
metadata-eval48.0%
*-commutative48.0%
Simplified48.0%
Taylor expanded in z around 0 43.7%
*-commutative43.7%
Simplified43.7%
Final simplification48.0%
(FPCore (x y z) :precision binary64 (+ x (* (- 0.6666666666666666 z) (* (- y x) 6.0))))
double code(double x, double y, double z) {
return x + ((0.6666666666666666 - z) * ((y - x) * 6.0));
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + ((0.6666666666666666d0 - z) * ((y - x) * 6.0d0))
end function
public static double code(double x, double y, double z) {
return x + ((0.6666666666666666 - z) * ((y - x) * 6.0));
}
def code(x, y, z): return x + ((0.6666666666666666 - z) * ((y - x) * 6.0))
function code(x, y, z) return Float64(x + Float64(Float64(0.6666666666666666 - z) * Float64(Float64(y - x) * 6.0))) end
function tmp = code(x, y, z) tmp = x + ((0.6666666666666666 - z) * ((y - x) * 6.0)); end
code[x_, y_, z_] := N[(x + N[(N[(0.6666666666666666 - z), $MachinePrecision] * N[(N[(y - x), $MachinePrecision] * 6.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \left(0.6666666666666666 - z\right) \cdot \left(\left(y - x\right) \cdot 6\right)
\end{array}
Initial program 99.5%
metadata-eval99.5%
Simplified99.5%
Final simplification99.5%
(FPCore (x y z) :precision binary64 (* x -3.0))
double code(double x, double y, double z) {
return x * -3.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x * (-3.0d0)
end function
public static double code(double x, double y, double z) {
return x * -3.0;
}
def code(x, y, z): return x * -3.0
function code(x, y, z) return Float64(x * -3.0) end
function tmp = code(x, y, z) tmp = x * -3.0; end
code[x_, y_, z_] := N[(x * -3.0), $MachinePrecision]
\begin{array}{l}
\\
x \cdot -3
\end{array}
Initial program 99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in x around inf 50.3%
sub-neg50.3%
distribute-rgt-in50.3%
metadata-eval50.3%
neg-mul-150.3%
associate-*r*50.3%
*-commutative50.3%
associate-+r+50.3%
metadata-eval50.3%
associate-*r*50.3%
metadata-eval50.3%
*-commutative50.3%
Simplified50.3%
Taylor expanded in z around 0 24.4%
*-commutative24.4%
Simplified24.4%
Final simplification24.4%
(FPCore (x y z) :precision binary64 x)
double code(double x, double y, double z) {
return x;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x
end function
public static double code(double x, double y, double z) {
return x;
}
def code(x, y, z): return x
function code(x, y, z) return x end
function tmp = code(x, y, z) tmp = x; end
code[x_, y_, z_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 99.5%
metadata-eval99.5%
Simplified99.5%
Taylor expanded in y around inf 52.7%
associate-*r*52.7%
Simplified52.7%
Taylor expanded in x around inf 2.5%
Final simplification2.5%
herbie shell --seed 2024043
(FPCore (x y z)
:name "Data.Colour.RGBSpace.HSL:hsl from colour-2.3.3, D"
:precision binary64
(+ x (* (* (- y x) 6.0) (- (/ 2.0 3.0) z))))