
(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) (- 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}
Initial program 99.2%
Final simplification99.2%
(FPCore (x y z t) :precision binary64 (if (or (<= z -1.28e-114) (not (<= z 9.2e-148))) (+ 1.0 (/ (/ x z) (- y t))) (- 1.0 (/ x (* y (- y t))))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.28e-114) || !(z <= 9.2e-148)) {
tmp = 1.0 + ((x / z) / (y - t));
} else {
tmp = 1.0 - (x / (y * (y - t)));
}
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 <= (-1.28d-114)) .or. (.not. (z <= 9.2d-148))) then
tmp = 1.0d0 + ((x / z) / (y - t))
else
tmp = 1.0d0 - (x / (y * (y - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -1.28e-114) || !(z <= 9.2e-148)) {
tmp = 1.0 + ((x / z) / (y - t));
} else {
tmp = 1.0 - (x / (y * (y - t)));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -1.28e-114) or not (z <= 9.2e-148): tmp = 1.0 + ((x / z) / (y - t)) else: tmp = 1.0 - (x / (y * (y - t))) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -1.28e-114) || !(z <= 9.2e-148)) tmp = Float64(1.0 + Float64(Float64(x / z) / Float64(y - t))); else tmp = Float64(1.0 - Float64(x / Float64(y * Float64(y - t)))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -1.28e-114) || ~((z <= 9.2e-148))) tmp = 1.0 + ((x / z) / (y - t)); else tmp = 1.0 - (x / (y * (y - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -1.28e-114], N[Not[LessEqual[z, 9.2e-148]], $MachinePrecision]], N[(1.0 + N[(N[(x / z), $MachinePrecision] / N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(x / N[(y * N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.28 \cdot 10^{-114} \lor \neg \left(z \leq 9.2 \cdot 10^{-148}\right):\\
\;\;\;\;1 + \frac{\frac{x}{z}}{y - t}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{x}{y \cdot \left(y - t\right)}\\
\end{array}
\end{array}
if z < -1.28e-114 or 9.1999999999999999e-148 < z Initial program 99.4%
sub-neg99.4%
distribute-frac-neg99.4%
*-lft-identity99.4%
associate-/r*98.3%
associate-*r/98.3%
metadata-eval98.3%
times-frac98.3%
neg-mul-198.3%
remove-double-neg98.3%
neg-mul-198.3%
sub-neg98.3%
+-commutative98.3%
distribute-neg-out98.3%
remove-double-neg98.3%
sub-neg98.3%
Simplified98.3%
Taylor expanded in z around inf 91.5%
if -1.28e-114 < z < 9.1999999999999999e-148Initial program 98.6%
Taylor expanded in z around 0 97.1%
Final simplification93.1%
(FPCore (x y z t) :precision binary64 (if (<= y -110000.0) 1.0 (if (<= y 4.2e+56) (+ 1.0 (/ (/ x z) (- y t))) (- 1.0 (/ x (* y y))))))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -110000.0) {
tmp = 1.0;
} else if (y <= 4.2e+56) {
tmp = 1.0 + ((x / z) / (y - t));
} else {
tmp = 1.0 - (x / (y * y));
}
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 <= (-110000.0d0)) then
tmp = 1.0d0
else if (y <= 4.2d+56) then
tmp = 1.0d0 + ((x / z) / (y - t))
else
tmp = 1.0d0 - (x / (y * y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if (y <= -110000.0) {
tmp = 1.0;
} else if (y <= 4.2e+56) {
tmp = 1.0 + ((x / z) / (y - t));
} else {
tmp = 1.0 - (x / (y * y));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -110000.0: tmp = 1.0 elif y <= 4.2e+56: tmp = 1.0 + ((x / z) / (y - t)) else: tmp = 1.0 - (x / (y * y)) return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -110000.0) tmp = 1.0; elseif (y <= 4.2e+56) tmp = Float64(1.0 + Float64(Float64(x / z) / Float64(y - t))); else tmp = Float64(1.0 - Float64(x / Float64(y * y))); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -110000.0) tmp = 1.0; elseif (y <= 4.2e+56) tmp = 1.0 + ((x / z) / (y - t)); else tmp = 1.0 - (x / (y * y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -110000.0], 1.0, If[LessEqual[y, 4.2e+56], N[(1.0 + N[(N[(x / z), $MachinePrecision] / N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 - N[(x / N[(y * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -110000:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+56}:\\
\;\;\;\;1 + \frac{\frac{x}{z}}{y - t}\\
\mathbf{else}:\\
\;\;\;\;1 - \frac{x}{y \cdot y}\\
\end{array}
\end{array}
if y < -1.1e5Initial program 99.9%
sub-neg99.9%
distribute-frac-neg99.9%
*-lft-identity99.9%
associate-/r*100.0%
associate-*r/100.0%
metadata-eval100.0%
times-frac100.0%
neg-mul-1100.0%
remove-double-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-out100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 89.6%
if -1.1e5 < y < 4.20000000000000034e56Initial program 98.6%
sub-neg98.6%
distribute-frac-neg98.6%
*-lft-identity98.6%
associate-/r*97.9%
associate-*r/97.9%
metadata-eval97.9%
times-frac97.9%
neg-mul-197.9%
remove-double-neg97.9%
neg-mul-197.9%
sub-neg97.9%
+-commutative97.9%
distribute-neg-out97.9%
remove-double-neg97.9%
sub-neg97.9%
Simplified97.9%
Taylor expanded in z around inf 81.6%
if 4.20000000000000034e56 < y Initial program 100.0%
sub-neg100.0%
distribute-frac-neg100.0%
*-lft-identity100.0%
associate-/r*100.0%
associate-*r/100.0%
metadata-eval100.0%
times-frac100.0%
neg-mul-1100.0%
remove-double-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-out100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in y around inf 99.7%
mul-1-neg99.7%
unsub-neg99.7%
unpow299.7%
Simplified99.7%
Final simplification86.8%
(FPCore (x y z t) :precision binary64 (if (<= y -2.6e-106) 1.0 (if (<= y 5.4e-56) (- 1.0 (/ x (* z t))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.6e-106) {
tmp = 1.0;
} else if (y <= 5.4e-56) {
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.6d-106)) then
tmp = 1.0d0
else if (y <= 5.4d-56) 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.6e-106) {
tmp = 1.0;
} else if (y <= 5.4e-56) {
tmp = 1.0 - (x / (z * t));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.6e-106: tmp = 1.0 elif y <= 5.4e-56: tmp = 1.0 - (x / (z * t)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.6e-106) tmp = 1.0; elseif (y <= 5.4e-56) 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.6e-106) tmp = 1.0; elseif (y <= 5.4e-56) tmp = 1.0 - (x / (z * t)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.6e-106], 1.0, If[LessEqual[y, 5.4e-56], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{-106}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 5.4 \cdot 10^{-56}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.6000000000000001e-106 or 5.3999999999999999e-56 < y Initial program 99.9%
sub-neg99.9%
distribute-frac-neg99.9%
*-lft-identity99.9%
associate-/r*100.0%
associate-*r/100.0%
metadata-eval100.0%
times-frac100.0%
neg-mul-1100.0%
remove-double-neg100.0%
neg-mul-1100.0%
sub-neg100.0%
+-commutative100.0%
distribute-neg-out100.0%
remove-double-neg100.0%
sub-neg100.0%
Simplified100.0%
Taylor expanded in x around 0 83.9%
if -2.6000000000000001e-106 < y < 5.3999999999999999e-56Initial program 98.1%
Taylor expanded in y around 0 80.5%
Final simplification82.5%
(FPCore (x y z t) :precision binary64 (+ 1.0 (/ (/ x (- z y)) (- y t))))
double code(double x, double y, double z, double t) {
return 1.0 + ((x / (z - y)) / (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 / (z - y)) / (y - t))
end function
public static double code(double x, double y, double z, double t) {
return 1.0 + ((x / (z - y)) / (y - t));
}
def code(x, y, z, t): return 1.0 + ((x / (z - y)) / (y - t))
function code(x, y, z, t) return Float64(1.0 + Float64(Float64(x / Float64(z - y)) / Float64(y - t))) end
function tmp = code(x, y, z, t) tmp = 1.0 + ((x / (z - y)) / (y - t)); end
code[x_, y_, z_, t_] := N[(1.0 + N[(N[(x / N[(z - y), $MachinePrecision]), $MachinePrecision] / N[(y - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
1 + \frac{\frac{x}{z - y}}{y - t}
\end{array}
Initial program 99.2%
sub-neg99.2%
distribute-frac-neg99.2%
*-lft-identity99.2%
associate-/r*98.8%
associate-*r/98.8%
metadata-eval98.8%
times-frac98.8%
neg-mul-198.8%
remove-double-neg98.8%
neg-mul-198.8%
sub-neg98.8%
+-commutative98.8%
distribute-neg-out98.8%
remove-double-neg98.8%
sub-neg98.8%
Simplified98.8%
Final simplification98.8%
(FPCore (x y z t) :precision binary64 (if (<= y 3.7e-264) 1.0 (if (<= y 8.5e-148) (/ (- x) (* z t)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 3.7e-264) {
tmp = 1.0;
} else if (y <= 8.5e-148) {
tmp = -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 <= 3.7d-264) then
tmp = 1.0d0
else if (y <= 8.5d-148) then
tmp = -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 <= 3.7e-264) {
tmp = 1.0;
} else if (y <= 8.5e-148) {
tmp = -x / (z * t);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 3.7e-264: tmp = 1.0 elif y <= 8.5e-148: tmp = -x / (z * t) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 3.7e-264) tmp = 1.0; elseif (y <= 8.5e-148) tmp = Float64(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 <= 3.7e-264) tmp = 1.0; elseif (y <= 8.5e-148) tmp = -x / (z * t); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 3.7e-264], 1.0, If[LessEqual[y, 8.5e-148], N[((-x) / N[(z * t), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 3.7 \cdot 10^{-264}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-148}:\\
\;\;\;\;\frac{-x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < 3.69999999999999996e-264 or 8.49999999999999989e-148 < y Initial program 99.1%
sub-neg99.1%
distribute-frac-neg99.1%
*-lft-identity99.1%
associate-/r*99.5%
associate-*r/99.5%
metadata-eval99.5%
times-frac99.5%
neg-mul-199.5%
remove-double-neg99.5%
neg-mul-199.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-out99.5%
remove-double-neg99.5%
sub-neg99.5%
Simplified99.5%
Taylor expanded in x around 0 75.0%
if 3.69999999999999996e-264 < y < 8.49999999999999989e-148Initial program 99.7%
Taylor expanded in y around 0 88.6%
Taylor expanded in x around inf 70.7%
associate-*r/70.7%
neg-mul-170.7%
Simplified70.7%
Final simplification74.6%
(FPCore (x y z t) :precision binary64 (if (<= y 1.25e-261) 1.0 (if (<= y 8.5e-148) (/ (/ x z) (- t)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= 1.25e-261) {
tmp = 1.0;
} else if (y <= 8.5e-148) {
tmp = (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 <= 1.25d-261) then
tmp = 1.0d0
else if (y <= 8.5d-148) then
tmp = (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 <= 1.25e-261) {
tmp = 1.0;
} else if (y <= 8.5e-148) {
tmp = (x / z) / -t;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= 1.25e-261: tmp = 1.0 elif y <= 8.5e-148: tmp = (x / z) / -t else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= 1.25e-261) tmp = 1.0; elseif (y <= 8.5e-148) tmp = Float64(Float64(x / z) / Float64(-t)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= 1.25e-261) tmp = 1.0; elseif (y <= 8.5e-148) tmp = (x / z) / -t; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, 1.25e-261], 1.0, If[LessEqual[y, 8.5e-148], N[(N[(x / z), $MachinePrecision] / (-t)), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 1.25 \cdot 10^{-261}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-148}:\\
\;\;\;\;\frac{\frac{x}{z}}{-t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < 1.24999999999999995e-261 or 8.49999999999999989e-148 < y Initial program 99.1%
sub-neg99.1%
distribute-frac-neg99.1%
*-lft-identity99.1%
associate-/r*99.5%
associate-*r/99.5%
metadata-eval99.5%
times-frac99.5%
neg-mul-199.5%
remove-double-neg99.5%
neg-mul-199.5%
sub-neg99.5%
+-commutative99.5%
distribute-neg-out99.5%
remove-double-neg99.5%
sub-neg99.5%
Simplified99.5%
Taylor expanded in x around 0 75.0%
if 1.24999999999999995e-261 < y < 8.49999999999999989e-148Initial program 99.7%
Taylor expanded in y around 0 88.6%
Taylor expanded in x around inf 70.7%
associate-*r/70.7%
neg-mul-170.7%
Simplified70.7%
neg-mul-170.7%
*-commutative70.7%
times-frac64.4%
Applied egg-rr64.4%
*-commutative64.4%
frac-2neg64.4%
associate-*l/63.5%
frac-2neg63.5%
metadata-eval63.5%
div-inv63.6%
frac-2neg63.6%
Applied egg-rr63.6%
Final simplification73.8%
(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.2%
sub-neg99.2%
distribute-frac-neg99.2%
*-lft-identity99.2%
associate-/r*98.8%
associate-*r/98.8%
metadata-eval98.8%
times-frac98.8%
neg-mul-198.8%
remove-double-neg98.8%
neg-mul-198.8%
sub-neg98.8%
+-commutative98.8%
distribute-neg-out98.8%
remove-double-neg98.8%
sub-neg98.8%
Simplified98.8%
Taylor expanded in x around 0 69.4%
Final simplification69.4%
herbie shell --seed 2023293
(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)))))