
(FPCore (x y z) :precision binary64 (+ 1.0 (/ (* 4.0 (- (+ x (* y 0.25)) z)) y)))
double code(double x, double y, double z) {
return 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 1.0d0 + ((4.0d0 * ((x + (y * 0.25d0)) - z)) / y)
end function
public static double code(double x, double y, double z) {
return 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y);
}
def code(x, y, z): return 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y)
function code(x, y, z) return Float64(1.0 + Float64(Float64(4.0 * Float64(Float64(x + Float64(y * 0.25)) - z)) / y)) end
function tmp = code(x, y, z) tmp = 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y); end
code[x_, y_, z_] := N[(1.0 + N[(N[(4.0 * N[(N[(x + N[(y * 0.25), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{4 \cdot \left(\left(x + y \cdot 0.25\right) - z\right)}{y}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 7 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (+ 1.0 (/ (* 4.0 (- (+ x (* y 0.25)) z)) y)))
double code(double x, double y, double z) {
return 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y);
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 1.0d0 + ((4.0d0 * ((x + (y * 0.25d0)) - z)) / y)
end function
public static double code(double x, double y, double z) {
return 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y);
}
def code(x, y, z): return 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y)
function code(x, y, z) return Float64(1.0 + Float64(Float64(4.0 * Float64(Float64(x + Float64(y * 0.25)) - z)) / y)) end
function tmp = code(x, y, z) tmp = 1.0 + ((4.0 * ((x + (y * 0.25)) - z)) / y); end
code[x_, y_, z_] := N[(1.0 + N[(N[(4.0 * N[(N[(x + N[(y * 0.25), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{4 \cdot \left(\left(x + y \cdot 0.25\right) - z\right)}{y}
\end{array}
(FPCore (x y z) :precision binary64 (+ (* (/ 4.0 y) (- x z)) 2.0))
double code(double x, double y, double z) {
return ((4.0 / y) * (x - z)) + 2.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((4.0d0 / y) * (x - z)) + 2.0d0
end function
public static double code(double x, double y, double z) {
return ((4.0 / y) * (x - z)) + 2.0;
}
def code(x, y, z): return ((4.0 / y) * (x - z)) + 2.0
function code(x, y, z) return Float64(Float64(Float64(4.0 / y) * Float64(x - z)) + 2.0) end
function tmp = code(x, y, z) tmp = ((4.0 / y) * (x - z)) + 2.0; end
code[x_, y_, z_] := N[(N[(N[(4.0 / y), $MachinePrecision] * N[(x - z), $MachinePrecision]), $MachinePrecision] + 2.0), $MachinePrecision]
\begin{array}{l}
\\
\frac{4}{y} \cdot \left(x - z\right) + 2
\end{array}
Initial program 99.6%
+-commutative99.6%
associate-*l/99.8%
+-commutative99.8%
associate--l+99.8%
+-commutative99.8%
distribute-lft-in99.8%
associate-+l+99.8%
associate-*l/99.8%
*-commutative99.8%
associate-*l*99.8%
metadata-eval99.8%
*-rgt-identity99.8%
*-inverses99.8%
metadata-eval99.8%
Simplified99.8%
(FPCore (x y z)
:precision binary64
(let* ((t_0 (/ (* z -4.0) y)) (t_1 (* 4.0 (/ x y))))
(if (<= y -4.5e+43)
2.0
(if (<= y -5.6e-183)
t_1
(if (<= y 1.5e-292)
t_0
(if (<= y 2.3e-43) t_1 (if (<= y 0.6) t_0 2.0)))))))
double code(double x, double y, double z) {
double t_0 = (z * -4.0) / y;
double t_1 = 4.0 * (x / y);
double tmp;
if (y <= -4.5e+43) {
tmp = 2.0;
} else if (y <= -5.6e-183) {
tmp = t_1;
} else if (y <= 1.5e-292) {
tmp = t_0;
} else if (y <= 2.3e-43) {
tmp = t_1;
} else if (y <= 0.6) {
tmp = t_0;
} else {
tmp = 2.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 = (z * (-4.0d0)) / y
t_1 = 4.0d0 * (x / y)
if (y <= (-4.5d+43)) then
tmp = 2.0d0
else if (y <= (-5.6d-183)) then
tmp = t_1
else if (y <= 1.5d-292) then
tmp = t_0
else if (y <= 2.3d-43) then
tmp = t_1
else if (y <= 0.6d0) then
tmp = t_0
else
tmp = 2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double t_0 = (z * -4.0) / y;
double t_1 = 4.0 * (x / y);
double tmp;
if (y <= -4.5e+43) {
tmp = 2.0;
} else if (y <= -5.6e-183) {
tmp = t_1;
} else if (y <= 1.5e-292) {
tmp = t_0;
} else if (y <= 2.3e-43) {
tmp = t_1;
} else if (y <= 0.6) {
tmp = t_0;
} else {
tmp = 2.0;
}
return tmp;
}
def code(x, y, z): t_0 = (z * -4.0) / y t_1 = 4.0 * (x / y) tmp = 0 if y <= -4.5e+43: tmp = 2.0 elif y <= -5.6e-183: tmp = t_1 elif y <= 1.5e-292: tmp = t_0 elif y <= 2.3e-43: tmp = t_1 elif y <= 0.6: tmp = t_0 else: tmp = 2.0 return tmp
function code(x, y, z) t_0 = Float64(Float64(z * -4.0) / y) t_1 = Float64(4.0 * Float64(x / y)) tmp = 0.0 if (y <= -4.5e+43) tmp = 2.0; elseif (y <= -5.6e-183) tmp = t_1; elseif (y <= 1.5e-292) tmp = t_0; elseif (y <= 2.3e-43) tmp = t_1; elseif (y <= 0.6) tmp = t_0; else tmp = 2.0; end return tmp end
function tmp_2 = code(x, y, z) t_0 = (z * -4.0) / y; t_1 = 4.0 * (x / y); tmp = 0.0; if (y <= -4.5e+43) tmp = 2.0; elseif (y <= -5.6e-183) tmp = t_1; elseif (y <= 1.5e-292) tmp = t_0; elseif (y <= 2.3e-43) tmp = t_1; elseif (y <= 0.6) tmp = t_0; else tmp = 2.0; end tmp_2 = tmp; end
code[x_, y_, z_] := Block[{t$95$0 = N[(N[(z * -4.0), $MachinePrecision] / y), $MachinePrecision]}, Block[{t$95$1 = N[(4.0 * N[(x / y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.5e+43], 2.0, If[LessEqual[y, -5.6e-183], t$95$1, If[LessEqual[y, 1.5e-292], t$95$0, If[LessEqual[y, 2.3e-43], t$95$1, If[LessEqual[y, 0.6], t$95$0, 2.0]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{z \cdot -4}{y}\\
t_1 := 4 \cdot \frac{x}{y}\\
\mathbf{if}\;y \leq -4.5 \cdot 10^{+43}:\\
\;\;\;\;2\\
\mathbf{elif}\;y \leq -5.6 \cdot 10^{-183}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-292}:\\
\;\;\;\;t\_0\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 0.6:\\
\;\;\;\;t\_0\\
\mathbf{else}:\\
\;\;\;\;2\\
\end{array}
\end{array}
if y < -4.5e43 or 0.599999999999999978 < y Initial program 99.1%
Taylor expanded in y around inf 68.5%
if -4.5e43 < y < -5.5999999999999997e-183 or 1.50000000000000008e-292 < y < 2.2999999999999999e-43Initial program 100.0%
+-commutative100.0%
associate-*l/99.8%
+-commutative99.8%
associate--l+99.8%
+-commutative99.8%
distribute-lft-in99.8%
associate-+l+99.8%
associate-*l/99.8%
*-commutative99.8%
associate-*l*99.8%
metadata-eval99.8%
*-rgt-identity99.8%
*-inverses99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in z around 0 69.9%
Taylor expanded in x around inf 61.0%
if -5.5999999999999997e-183 < y < 1.50000000000000008e-292 or 2.2999999999999999e-43 < y < 0.599999999999999978Initial program 100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in y around 0 95.9%
associate-*r/95.9%
Simplified95.9%
Taylor expanded in x around 0 75.8%
associate-*r/75.8%
Simplified75.8%
Final simplification66.7%
(FPCore (x y z) :precision binary64 (if (or (<= y -2.95e-15) (not (<= y 0.48))) (+ 2.0 (* 4.0 (/ x y))) (/ (* 4.0 (- x z)) y)))
double code(double x, double y, double z) {
double tmp;
if ((y <= -2.95e-15) || !(y <= 0.48)) {
tmp = 2.0 + (4.0 * (x / y));
} else {
tmp = (4.0 * (x - z)) / y;
}
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.95d-15)) .or. (.not. (y <= 0.48d0))) then
tmp = 2.0d0 + (4.0d0 * (x / y))
else
tmp = (4.0d0 * (x - z)) / y
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((y <= -2.95e-15) || !(y <= 0.48)) {
tmp = 2.0 + (4.0 * (x / y));
} else {
tmp = (4.0 * (x - z)) / y;
}
return tmp;
}
def code(x, y, z): tmp = 0 if (y <= -2.95e-15) or not (y <= 0.48): tmp = 2.0 + (4.0 * (x / y)) else: tmp = (4.0 * (x - z)) / y return tmp
function code(x, y, z) tmp = 0.0 if ((y <= -2.95e-15) || !(y <= 0.48)) tmp = Float64(2.0 + Float64(4.0 * Float64(x / y))); else tmp = Float64(Float64(4.0 * Float64(x - z)) / y); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((y <= -2.95e-15) || ~((y <= 0.48))) tmp = 2.0 + (4.0 * (x / y)); else tmp = (4.0 * (x - z)) / y; end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[y, -2.95e-15], N[Not[LessEqual[y, 0.48]], $MachinePrecision]], N[(2.0 + N[(4.0 * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(4.0 * N[(x - z), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.95 \cdot 10^{-15} \lor \neg \left(y \leq 0.48\right):\\
\;\;\;\;2 + 4 \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;\frac{4 \cdot \left(x - z\right)}{y}\\
\end{array}
\end{array}
if y < -2.94999999999999982e-15 or 0.47999999999999998 < y Initial program 99.2%
+-commutative99.2%
associate-*l/99.9%
+-commutative99.9%
associate--l+99.9%
+-commutative99.9%
distribute-lft-in99.9%
associate-+l+99.9%
associate-*l/99.9%
*-commutative99.9%
associate-*l*99.9%
metadata-eval99.9%
*-rgt-identity99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 89.0%
if -2.94999999999999982e-15 < y < 0.47999999999999998Initial program 100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in y around 0 95.2%
associate-*r/95.2%
Simplified95.2%
Final simplification92.3%
(FPCore (x y z) :precision binary64 (if (or (<= x -4.4e+63) (not (<= x 3.5e-17))) (+ 2.0 (* 4.0 (/ x y))) (+ 2.0 (* (/ z y) -4.0))))
double code(double x, double y, double z) {
double tmp;
if ((x <= -4.4e+63) || !(x <= 3.5e-17)) {
tmp = 2.0 + (4.0 * (x / y));
} else {
tmp = 2.0 + ((z / y) * -4.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 ((x <= (-4.4d+63)) .or. (.not. (x <= 3.5d-17))) then
tmp = 2.0d0 + (4.0d0 * (x / y))
else
tmp = 2.0d0 + ((z / y) * (-4.0d0))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x <= -4.4e+63) || !(x <= 3.5e-17)) {
tmp = 2.0 + (4.0 * (x / y));
} else {
tmp = 2.0 + ((z / y) * -4.0);
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x <= -4.4e+63) or not (x <= 3.5e-17): tmp = 2.0 + (4.0 * (x / y)) else: tmp = 2.0 + ((z / y) * -4.0) return tmp
function code(x, y, z) tmp = 0.0 if ((x <= -4.4e+63) || !(x <= 3.5e-17)) tmp = Float64(2.0 + Float64(4.0 * Float64(x / y))); else tmp = Float64(2.0 + Float64(Float64(z / y) * -4.0)); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x <= -4.4e+63) || ~((x <= 3.5e-17))) tmp = 2.0 + (4.0 * (x / y)); else tmp = 2.0 + ((z / y) * -4.0); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[x, -4.4e+63], N[Not[LessEqual[x, 3.5e-17]], $MachinePrecision]], N[(2.0 + N[(4.0 * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(2.0 + N[(N[(z / y), $MachinePrecision] * -4.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.4 \cdot 10^{+63} \lor \neg \left(x \leq 3.5 \cdot 10^{-17}\right):\\
\;\;\;\;2 + 4 \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;2 + \frac{z}{y} \cdot -4\\
\end{array}
\end{array}
if x < -4.3999999999999997e63 or 3.5000000000000002e-17 < x Initial program 99.2%
+-commutative99.2%
associate-*l/99.8%
+-commutative99.8%
associate--l+99.8%
+-commutative99.8%
distribute-lft-in99.8%
associate-+l+99.9%
associate-*l/99.9%
*-commutative99.9%
associate-*l*99.9%
metadata-eval99.9%
*-rgt-identity99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 87.2%
if -4.3999999999999997e63 < x < 3.5000000000000002e-17Initial program 100.0%
+-commutative100.0%
associate-*l/99.8%
+-commutative99.8%
associate--l+99.8%
+-commutative99.8%
distribute-lft-in99.8%
associate-+l+99.8%
associate-*l/99.8%
*-commutative99.8%
associate-*l*99.8%
metadata-eval99.8%
*-rgt-identity99.8%
*-inverses99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in x around 0 89.3%
+-commutative89.3%
*-commutative89.3%
Simplified89.3%
Final simplification88.3%
(FPCore (x y z) :precision binary64 (if (or (<= z -6e+85) (not (<= z 8.2e+215))) (/ (* z -4.0) y) (+ 2.0 (* 4.0 (/ x y)))))
double code(double x, double y, double z) {
double tmp;
if ((z <= -6e+85) || !(z <= 8.2e+215)) {
tmp = (z * -4.0) / y;
} else {
tmp = 2.0 + (4.0 * (x / y));
}
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 <= (-6d+85)) .or. (.not. (z <= 8.2d+215))) then
tmp = (z * (-4.0d0)) / y
else
tmp = 2.0d0 + (4.0d0 * (x / y))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((z <= -6e+85) || !(z <= 8.2e+215)) {
tmp = (z * -4.0) / y;
} else {
tmp = 2.0 + (4.0 * (x / y));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (z <= -6e+85) or not (z <= 8.2e+215): tmp = (z * -4.0) / y else: tmp = 2.0 + (4.0 * (x / y)) return tmp
function code(x, y, z) tmp = 0.0 if ((z <= -6e+85) || !(z <= 8.2e+215)) tmp = Float64(Float64(z * -4.0) / y); else tmp = Float64(2.0 + Float64(4.0 * Float64(x / y))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((z <= -6e+85) || ~((z <= 8.2e+215))) tmp = (z * -4.0) / y; else tmp = 2.0 + (4.0 * (x / y)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[Or[LessEqual[z, -6e+85], N[Not[LessEqual[z, 8.2e+215]], $MachinePrecision]], N[(N[(z * -4.0), $MachinePrecision] / y), $MachinePrecision], N[(2.0 + N[(4.0 * N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6 \cdot 10^{+85} \lor \neg \left(z \leq 8.2 \cdot 10^{+215}\right):\\
\;\;\;\;\frac{z \cdot -4}{y}\\
\mathbf{else}:\\
\;\;\;\;2 + 4 \cdot \frac{x}{y}\\
\end{array}
\end{array}
if z < -6.0000000000000001e85 or 8.2000000000000007e215 < z Initial program 100.0%
Taylor expanded in y around 0 100.0%
Taylor expanded in y around 0 90.6%
associate-*r/90.6%
Simplified90.6%
Taylor expanded in x around 0 80.3%
associate-*r/80.3%
Simplified80.3%
if -6.0000000000000001e85 < z < 8.2000000000000007e215Initial program 99.5%
+-commutative99.5%
associate-*l/99.9%
+-commutative99.9%
associate--l+99.9%
+-commutative99.9%
distribute-lft-in99.9%
associate-+l+99.9%
associate-*l/99.9%
*-commutative99.9%
associate-*l*99.9%
metadata-eval99.9%
*-rgt-identity99.9%
*-inverses99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in z around 0 83.3%
Final simplification82.7%
(FPCore (x y z) :precision binary64 (if (<= y -4.1e+43) 2.0 (if (<= y 1.3e+88) (* 4.0 (/ x y)) 2.0)))
double code(double x, double y, double z) {
double tmp;
if (y <= -4.1e+43) {
tmp = 2.0;
} else if (y <= 1.3e+88) {
tmp = 4.0 * (x / y);
} else {
tmp = 2.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 <= (-4.1d+43)) then
tmp = 2.0d0
else if (y <= 1.3d+88) then
tmp = 4.0d0 * (x / y)
else
tmp = 2.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (y <= -4.1e+43) {
tmp = 2.0;
} else if (y <= 1.3e+88) {
tmp = 4.0 * (x / y);
} else {
tmp = 2.0;
}
return tmp;
}
def code(x, y, z): tmp = 0 if y <= -4.1e+43: tmp = 2.0 elif y <= 1.3e+88: tmp = 4.0 * (x / y) else: tmp = 2.0 return tmp
function code(x, y, z) tmp = 0.0 if (y <= -4.1e+43) tmp = 2.0; elseif (y <= 1.3e+88) tmp = Float64(4.0 * Float64(x / y)); else tmp = 2.0; end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (y <= -4.1e+43) tmp = 2.0; elseif (y <= 1.3e+88) tmp = 4.0 * (x / y); else tmp = 2.0; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[y, -4.1e+43], 2.0, If[LessEqual[y, 1.3e+88], N[(4.0 * N[(x / y), $MachinePrecision]), $MachinePrecision], 2.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.1 \cdot 10^{+43}:\\
\;\;\;\;2\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+88}:\\
\;\;\;\;4 \cdot \frac{x}{y}\\
\mathbf{else}:\\
\;\;\;\;2\\
\end{array}
\end{array}
if y < -4.1e43 or 1.3e88 < y Initial program 100.0%
Taylor expanded in y around inf 72.9%
if -4.1e43 < y < 1.3e88Initial program 99.4%
+-commutative99.4%
associate-*l/99.8%
+-commutative99.8%
associate--l+99.8%
+-commutative99.8%
distribute-lft-in99.8%
associate-+l+99.8%
associate-*l/99.8%
*-commutative99.8%
associate-*l*99.8%
metadata-eval99.8%
*-rgt-identity99.8%
*-inverses99.8%
metadata-eval99.8%
Simplified99.8%
Taylor expanded in z around 0 61.7%
Taylor expanded in x around inf 51.6%
(FPCore (x y z) :precision binary64 2.0)
double code(double x, double y, double z) {
return 2.0;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = 2.0d0
end function
public static double code(double x, double y, double z) {
return 2.0;
}
def code(x, y, z): return 2.0
function code(x, y, z) return 2.0 end
function tmp = code(x, y, z) tmp = 2.0; end
code[x_, y_, z_] := 2.0
\begin{array}{l}
\\
2
\end{array}
Initial program 99.6%
Taylor expanded in y around inf 34.4%
herbie shell --seed 2024111
(FPCore (x y z)
:name "Data.Array.Repa.Algorithms.ColorRamp:rampColorHotToCold from repa-algorithms-3.4.0.1, C"
:precision binary64
(+ 1.0 (/ (* 4.0 (- (+ x (* y 0.25)) z)) y)))