
(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = 1.0d0 - (x / ((y - z) * (y - t)))
end function
public static double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
def code(x, y, z, t): return 1.0 - (x / ((y - z) * (y - t)))
function code(x, y, z, t) return Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t)))) end
function tmp = code(x, y, z, t) tmp = 1.0 - (x / ((y - z) * (y - t))); end
code[x_, y_, z_, t_] := N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 8 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (- 1.0 (/ x (* (- y z) (- y t)))))
double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = 1.0d0 - (x / ((y - z) * (y - t)))
end function
public static double code(double x, double y, double z, double t) {
return 1.0 - (x / ((y - z) * (y - t)));
}
def code(x, y, z, t): return 1.0 - (x / ((y - z) * (y - t)))
function code(x, y, z, t) return Float64(1.0 - Float64(x / Float64(Float64(y - z) * Float64(y - t)))) end
function tmp = code(x, y, z, t) tmp = 1.0 - (x / ((y - z) * (y - t))); end
code[x_, y_, z_, t_] := N[(1.0 - N[(x / N[(N[(y - z), $MachinePrecision] * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 - \frac{x}{\left(y - z\right) \cdot \left(y - t\right)}
\end{array}
(FPCore (x y z t) :precision binary64 (+ 1.0 (/ x (* (- y z) (- t y)))))
double code(double x, double y, double z, double t) {
return 1.0 + (x / ((y - z) * (t - y)));
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = 1.0d0 + (x / ((y - z) * (t - y)))
end function
public static double code(double x, double y, double z, double t) {
return 1.0 + (x / ((y - z) * (t - y)));
}
def code(x, y, z, t): return 1.0 + (x / ((y - z) * (t - y)))
function code(x, y, z, t) return Float64(1.0 + Float64(x / Float64(Float64(y - z) * Float64(t - y)))) end
function tmp = code(x, y, z, t) tmp = 1.0 + (x / ((y - z) * (t - y))); end
code[x_, y_, z_, t_] := N[(1.0 + N[(x / N[(N[(y - z), $MachinePrecision] * N[(t - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{x}{\left(y - z\right) \cdot \left(t - y\right)}
\end{array}
Initial program 99.7%
Final simplification99.7%
(FPCore (x y z t) :precision binary64 (if (or (<= y -1.2e-17) (not (<= y 0.052))) (+ 1.0 (/ (/ x y) (- t y))) (+ 1.0 (/ (/ x t) (- y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.2e-17) || !(y <= 0.052)) {
tmp = 1.0 + ((x / y) / (t - y));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((y <= (-1.2d-17)) .or. (.not. (y <= 0.052d0))) then
tmp = 1.0d0 + ((x / y) / (t - y))
else
tmp = 1.0d0 + ((x / t) / (y - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((y <= -1.2e-17) || !(y <= 0.052)) {
tmp = 1.0 + ((x / y) / (t - y));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (y <= -1.2e-17) or not (y <= 0.052): tmp = 1.0 + ((x / y) / (t - y)) else: tmp = 1.0 + ((x / t) / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((y <= -1.2e-17) || !(y <= 0.052)) tmp = Float64(1.0 + Float64(Float64(x / y) / Float64(t - y))); else tmp = Float64(1.0 + Float64(Float64(x / t) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((y <= -1.2e-17) || ~((y <= 0.052))) tmp = 1.0 + ((x / y) / (t - y)); else tmp = 1.0 + ((x / t) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[y, -1.2e-17], N[Not[LessEqual[y, 0.052]], $MachinePrecision]], N[(1.0 + N[(N[(x / y), $MachinePrecision] / N[(t - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.2 \cdot 10^{-17} \lor \neg \left(y \leq 0.052\right):\\
\;\;\;\;1 + \frac{\frac{x}{y}}{t - y}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if y < -1.19999999999999993e-17 or 0.0519999999999999976 < y Initial program 100.0%
Taylor expanded in z around 0 96.8%
sub-neg96.8%
associate-/r*96.8%
distribute-neg-frac296.8%
neg-sub096.8%
sub-neg96.8%
+-commutative96.8%
associate--r+96.8%
neg-sub096.8%
remove-double-neg96.8%
Simplified96.8%
if -1.19999999999999993e-17 < y < 0.0519999999999999976Initial program 99.3%
Taylor expanded in t around inf 80.8%
associate-/r*80.4%
Simplified80.4%
Final simplification89.4%
(FPCore (x y z t) :precision binary64 (if (or (<= t -8e-29) (not (<= t 9.5e-224))) (+ 1.0 (/ (/ x t) (- y z))) (+ 1.0 (/ x (* y z)))))
double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -8e-29) || !(t <= 9.5e-224)) {
tmp = 1.0 + ((x / t) / (y - z));
} else {
tmp = 1.0 + (x / (y * z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if ((t <= (-8d-29)) .or. (.not. (t <= 9.5d-224))) then
tmp = 1.0d0 + ((x / t) / (y - z))
else
tmp = 1.0d0 + (x / (y * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((t <= -8e-29) || !(t <= 9.5e-224)) {
tmp = 1.0 + ((x / t) / (y - z));
} else {
tmp = 1.0 + (x / (y * z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (t <= -8e-29) or not (t <= 9.5e-224): tmp = 1.0 + ((x / t) / (y - z)) else: tmp = 1.0 + (x / (y * z)) return tmp
function code(x, y, z, t) tmp = 0.0 if ((t <= -8e-29) || !(t <= 9.5e-224)) tmp = Float64(1.0 + Float64(Float64(x / t) / Float64(y - z))); else tmp = Float64(1.0 + Float64(x / Float64(y * z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((t <= -8e-29) || ~((t <= 9.5e-224))) tmp = 1.0 + ((x / t) / (y - z)); else tmp = 1.0 + (x / (y * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[t, -8e-29], N[Not[LessEqual[t, 9.5e-224]], $MachinePrecision]], N[(1.0 + N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{-29} \lor \neg \left(t \leq 9.5 \cdot 10^{-224}\right):\\
\;\;\;\;1 + \frac{\frac{x}{t}}{y - z}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{x}{y \cdot z}\\
\end{array}
\end{array}
if t < -7.99999999999999955e-29 or 9.5000000000000003e-224 < t Initial program 100.0%
Taylor expanded in t around inf 92.7%
associate-/r*92.6%
Simplified92.6%
if -7.99999999999999955e-29 < t < 9.5000000000000003e-224Initial program 98.9%
Taylor expanded in z around inf 71.7%
associate-/r*72.7%
Simplified72.7%
Taylor expanded in y around inf 63.7%
*-commutative63.7%
Simplified63.7%
Final simplification84.4%
(FPCore (x y z t)
:precision binary64
(if (<= t -1.4e-148)
(+ 1.0 (/ (/ x z) (- y t)))
(if (<= t 1.6e-60)
(+ 1.0 (/ (/ x y) (- z y)))
(+ 1.0 (/ (/ x t) (- y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.4e-148) {
tmp = 1.0 + ((x / z) / (y - t));
} else if (t <= 1.6e-60) {
tmp = 1.0 + ((x / y) / (z - y));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1.4d-148)) then
tmp = 1.0d0 + ((x / z) / (y - t))
else if (t <= 1.6d-60) then
tmp = 1.0d0 + ((x / y) / (z - y))
else
tmp = 1.0d0 + ((x / t) / (y - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1.4e-148) {
tmp = 1.0 + ((x / z) / (y - t));
} else if (t <= 1.6e-60) {
tmp = 1.0 + ((x / y) / (z - y));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1.4e-148: tmp = 1.0 + ((x / z) / (y - t)) elif t <= 1.6e-60: tmp = 1.0 + ((x / y) / (z - y)) else: tmp = 1.0 + ((x / t) / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1.4e-148) tmp = Float64(1.0 + Float64(Float64(x / z) / Float64(y - t))); elseif (t <= 1.6e-60) tmp = Float64(1.0 + Float64(Float64(x / y) / Float64(z - y))); else tmp = Float64(1.0 + Float64(Float64(x / t) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1.4e-148) tmp = 1.0 + ((x / z) / (y - t)); elseif (t <= 1.6e-60) tmp = 1.0 + ((x / y) / (z - y)); else tmp = 1.0 + ((x / t) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1.4e-148], N[(1.0 + N[(N[(x / z), $MachinePrecision] / N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-60], N[(1.0 + N[(N[(x / y), $MachinePrecision] / N[(z - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{-148}:\\
\;\;\;\;1 + \frac{\frac{x}{z}}{y - t}\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-60}:\\
\;\;\;\;1 + \frac{\frac{x}{y}}{z - y}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < -1.4e-148Initial program 99.9%
Taylor expanded in z around inf 72.9%
associate-/r*71.8%
Simplified71.8%
if -1.4e-148 < t < 1.6000000000000001e-60Initial program 99.1%
clear-num98.9%
inv-pow98.9%
associate-/l*96.1%
Applied egg-rr96.1%
unpow-196.1%
Simplified96.1%
Taylor expanded in t around 0 87.5%
associate-/r*86.1%
Simplified86.1%
if 1.6000000000000001e-60 < t Initial program 100.0%
Taylor expanded in t around inf 96.4%
associate-/r*96.4%
Simplified96.4%
Final simplification84.6%
(FPCore (x y z t)
:precision binary64
(if (<= z -2e-44)
(+ 1.0 (/ (/ x z) (- y t)))
(if (<= z 8.5e-227)
(+ 1.0 (/ (/ x y) (- t y)))
(+ 1.0 (/ (/ x t) (- y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2e-44) {
tmp = 1.0 + ((x / z) / (y - t));
} else if (z <= 8.5e-227) {
tmp = 1.0 + ((x / y) / (t - y));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (z <= (-2d-44)) then
tmp = 1.0d0 + ((x / z) / (y - t))
else if (z <= 8.5d-227) then
tmp = 1.0d0 + ((x / y) / (t - y))
else
tmp = 1.0d0 + ((x / t) / (y - z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (z <= -2e-44) {
tmp = 1.0 + ((x / z) / (y - t));
} else if (z <= 8.5e-227) {
tmp = 1.0 + ((x / y) / (t - y));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if z <= -2e-44: tmp = 1.0 + ((x / z) / (y - t)) elif z <= 8.5e-227: tmp = 1.0 + ((x / y) / (t - y)) else: tmp = 1.0 + ((x / t) / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (z <= -2e-44) tmp = Float64(1.0 + Float64(Float64(x / z) / Float64(y - t))); elseif (z <= 8.5e-227) tmp = Float64(1.0 + Float64(Float64(x / y) / Float64(t - y))); else tmp = Float64(1.0 + Float64(Float64(x / t) / Float64(y - z))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (z <= -2e-44) tmp = 1.0 + ((x / z) / (y - t)); elseif (z <= 8.5e-227) tmp = 1.0 + ((x / y) / (t - y)); else tmp = 1.0 + ((x / t) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[z, -2e-44], N[(1.0 + N[(N[(x / z), $MachinePrecision] / N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e-227], N[(1.0 + N[(N[(x / y), $MachinePrecision] / N[(t - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(N[(x / t), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-44}:\\
\;\;\;\;1 + \frac{\frac{x}{z}}{y - t}\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-227}:\\
\;\;\;\;1 + \frac{\frac{x}{y}}{t - y}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if z < -1.99999999999999991e-44Initial program 100.0%
Taylor expanded in z around inf 96.3%
associate-/r*96.3%
Simplified96.3%
if -1.99999999999999991e-44 < z < 8.50000000000000018e-227Initial program 99.9%
Taylor expanded in z around 0 89.3%
sub-neg89.3%
associate-/r*86.7%
distribute-neg-frac286.7%
neg-sub086.7%
sub-neg86.7%
+-commutative86.7%
associate--r+86.7%
neg-sub086.7%
remove-double-neg86.7%
Simplified86.7%
if 8.50000000000000018e-227 < z Initial program 99.3%
Taylor expanded in t around inf 78.2%
associate-/r*77.8%
Simplified77.8%
(FPCore (x y z t) :precision binary64 (if (<= y -2.65e-132) 1.0 (if (<= y 3e-132) (- 1.0 (/ x (* z t))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.65e-132) {
tmp = 1.0;
} else if (y <= 3e-132) {
tmp = 1.0 - (x / (z * t));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (y <= (-2.65d-132)) then
tmp = 1.0d0
else if (y <= 3d-132) then
tmp = 1.0d0 - (x / (z * t))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.65e-132) {
tmp = 1.0;
} else if (y <= 3e-132) {
tmp = 1.0 - (x / (z * t));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.65e-132: tmp = 1.0 elif y <= 3e-132: tmp = 1.0 - (x / (z * t)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.65e-132) tmp = 1.0; elseif (y <= 3e-132) tmp = Float64(1.0 - Float64(x / Float64(z * t))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2.65e-132) tmp = 1.0; elseif (y <= 3e-132) tmp = 1.0 - (x / (z * t)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.65e-132], 1.0, If[LessEqual[y, 3e-132], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.65 \cdot 10^{-132}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-132}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.65000000000000015e-132 or 3e-132 < y Initial program 100.0%
Taylor expanded in x around 0 87.8%
if -2.65000000000000015e-132 < y < 3e-132Initial program 98.9%
Taylor expanded in y around 0 77.1%
Final simplification84.8%
(FPCore (x y z t) :precision binary64 (if (<= t -1e-134) 1.0 (if (<= t 5.8e-226) (+ 1.0 (/ x (* y z))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1e-134) {
tmp = 1.0;
} else if (t <= 5.8e-226) {
tmp = 1.0 + (x / (y * z));
} else {
tmp = 1.0;
}
return tmp;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8) :: tmp
if (t <= (-1d-134)) then
tmp = 1.0d0
else if (t <= 5.8d-226) then
tmp = 1.0d0 + (x / (y * z))
else
tmp = 1.0d0
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (t <= -1e-134) {
tmp = 1.0;
} else if (t <= 5.8e-226) {
tmp = 1.0 + (x / (y * z));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -1e-134: tmp = 1.0 elif t <= 5.8e-226: tmp = 1.0 + (x / (y * z)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -1e-134) tmp = 1.0; elseif (t <= 5.8e-226) tmp = Float64(1.0 + Float64(x / Float64(y * z))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (t <= -1e-134) tmp = 1.0; elseif (t <= 5.8e-226) tmp = 1.0 + (x / (y * z)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -1e-134], 1.0, If[LessEqual[t, 5.8e-226], N[(1.0 + N[(x / N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-134}:\\
\;\;\;\;1\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-226}:\\
\;\;\;\;1 + \frac{x}{y \cdot z}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if t < -1.00000000000000004e-134 or 5.80000000000000003e-226 < t Initial program 99.9%
Taylor expanded in x around 0 82.2%
if -1.00000000000000004e-134 < t < 5.80000000000000003e-226Initial program 98.5%
Taylor expanded in z around inf 79.0%
associate-/r*80.4%
Simplified80.4%
Taylor expanded in y around inf 69.8%
*-commutative69.8%
Simplified69.8%
Final simplification79.6%
(FPCore (x y z t) :precision binary64 1.0)
double code(double x, double y, double z, double t) {
return 1.0;
}
real(8) function code(x, y, z, t)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
code = 1.0d0
end function
public static double code(double x, double y, double z, double t) {
return 1.0;
}
def code(x, y, z, t): return 1.0
function code(x, y, z, t) return 1.0 end
function tmp = code(x, y, z, t) tmp = 1.0; end
code[x_, y_, z_, t_] := 1.0
\begin{array}{l}
\\
1
\end{array}
Initial program 99.7%
Taylor expanded in x around 0 76.5%
herbie shell --seed 2024181
(FPCore (x y z t)
:name "Data.Random.Distribution.Triangular:triangularCDF from random-fu-0.2.6.2, A"
:precision binary64
(- 1.0 (/ x (* (- y z) (- y t)))))