
(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 7 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 (<= t -3.1e-31)
(- 1.0 (/ x (* z t)))
(if (<= t 3.1e-48)
(+ 1.0 (/ -1.0 (* y (/ (- y z) x))))
(+ 1.0 (/ (/ x t) (- y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -3.1e-31) {
tmp = 1.0 - (x / (z * t));
} else if (t <= 3.1e-48) {
tmp = 1.0 + (-1.0 / (y * ((y - z) / x)));
} 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 <= (-3.1d-31)) then
tmp = 1.0d0 - (x / (z * t))
else if (t <= 3.1d-48) then
tmp = 1.0d0 + ((-1.0d0) / (y * ((y - z) / x)))
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 <= -3.1e-31) {
tmp = 1.0 - (x / (z * t));
} else if (t <= 3.1e-48) {
tmp = 1.0 + (-1.0 / (y * ((y - z) / x)));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -3.1e-31: tmp = 1.0 - (x / (z * t)) elif t <= 3.1e-48: tmp = 1.0 + (-1.0 / (y * ((y - z) / x))) else: tmp = 1.0 + ((x / t) / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -3.1e-31) tmp = Float64(1.0 - Float64(x / Float64(z * t))); elseif (t <= 3.1e-48) tmp = Float64(1.0 + Float64(-1.0 / Float64(y * Float64(Float64(y - z) / x)))); 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 <= -3.1e-31) tmp = 1.0 - (x / (z * t)); elseif (t <= 3.1e-48) tmp = 1.0 + (-1.0 / (y * ((y - z) / x))); else tmp = 1.0 + ((x / t) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -3.1e-31], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e-48], N[(1.0 + N[(-1.0 / N[(y * N[(N[(y - z), $MachinePrecision] / x), $MachinePrecision]), $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 -3.1 \cdot 10^{-31}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{-48}:\\
\;\;\;\;1 + \frac{-1}{y \cdot \frac{y - z}{x}}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < -3.1e-31Initial program 100.0%
Taylor expanded in y around 0 79.6%
if -3.1e-31 < t < 3.10000000000000016e-48Initial program 98.0%
Taylor expanded in t around 0 90.7%
clear-num90.6%
inv-pow90.6%
*-commutative90.6%
associate-/l*90.6%
Applied egg-rr90.6%
unpow-190.6%
associate-/r/91.6%
Simplified91.6%
if 3.10000000000000016e-48 < t Initial program 99.9%
Taylor expanded in t around inf 98.2%
mul-1-neg98.2%
distribute-frac-neg98.2%
associate-/r*98.2%
Simplified98.2%
Final simplification90.9%
(FPCore (x y z t) :precision binary64 (if (<= y -2e-25) (- 1.0 (/ x (* y (- y z)))) (if (<= y 2.2e-37) (+ 1.0 (/ (/ -1.0 t) (/ z x))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e-25) {
tmp = 1.0 - (x / (y * (y - z)));
} else if (y <= 2.2e-37) {
tmp = 1.0 + ((-1.0 / t) / (z / x));
} 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 <= (-2d-25)) then
tmp = 1.0d0 - (x / (y * (y - z)))
else if (y <= 2.2d-37) then
tmp = 1.0d0 + (((-1.0d0) / t) / (z / x))
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 <= -2e-25) {
tmp = 1.0 - (x / (y * (y - z)));
} else if (y <= 2.2e-37) {
tmp = 1.0 + ((-1.0 / t) / (z / x));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2e-25: tmp = 1.0 - (x / (y * (y - z))) elif y <= 2.2e-37: tmp = 1.0 + ((-1.0 / t) / (z / x)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2e-25) tmp = Float64(1.0 - Float64(x / Float64(y * Float64(y - z)))); elseif (y <= 2.2e-37) tmp = Float64(1.0 + Float64(Float64(-1.0 / t) / Float64(z / x))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (y <= -2e-25) tmp = 1.0 - (x / (y * (y - z))); elseif (y <= 2.2e-37) tmp = 1.0 + ((-1.0 / t) / (z / x)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2e-25], N[(1.0 - N[(x / N[(y * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-37], N[(1.0 + N[(N[(-1.0 / t), $MachinePrecision] / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{-25}:\\
\;\;\;\;1 - \frac{x}{y \cdot \left(y - z\right)}\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-37}:\\
\;\;\;\;1 + \frac{\frac{-1}{t}}{\frac{z}{x}}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.00000000000000008e-25Initial program 99.9%
Taylor expanded in t around 0 93.3%
if -2.00000000000000008e-25 < y < 2.20000000000000002e-37Initial program 98.2%
Taylor expanded in y around 0 78.5%
*-un-lft-identity78.5%
times-frac76.9%
Applied egg-rr76.9%
clear-num76.9%
un-div-inv76.9%
Applied egg-rr76.9%
if 2.20000000000000002e-37 < y Initial program 100.0%
Taylor expanded in z around 0 90.2%
associate-/l/90.2%
Simplified90.2%
Taylor expanded in y around 0 69.6%
associate-*r/69.6%
neg-mul-169.6%
*-commutative69.6%
Simplified69.6%
expm1-log1p-u67.1%
expm1-udef67.1%
add-sqr-sqrt35.1%
sqrt-unprod60.3%
sqr-neg60.3%
sqrt-unprod32.1%
add-sqr-sqrt67.3%
Applied egg-rr67.3%
expm1-def67.3%
expm1-log1p67.8%
Simplified67.8%
Taylor expanded in x around 0 93.8%
Final simplification86.1%
(FPCore (x y z t)
:precision binary64
(if (<= t -2.9e-31)
(- 1.0 (/ x (* z t)))
(if (<= t 2.25e-48)
(- 1.0 (/ x (* y (- y z))))
(+ 1.0 (/ (/ x t) (- y z))))))
double code(double x, double y, double z, double t) {
double tmp;
if (t <= -2.9e-31) {
tmp = 1.0 - (x / (z * t));
} else if (t <= 2.25e-48) {
tmp = 1.0 - (x / (y * (y - z)));
} 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 <= (-2.9d-31)) then
tmp = 1.0d0 - (x / (z * t))
else if (t <= 2.25d-48) then
tmp = 1.0d0 - (x / (y * (y - z)))
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 <= -2.9e-31) {
tmp = 1.0 - (x / (z * t));
} else if (t <= 2.25e-48) {
tmp = 1.0 - (x / (y * (y - z)));
} else {
tmp = 1.0 + ((x / t) / (y - z));
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if t <= -2.9e-31: tmp = 1.0 - (x / (z * t)) elif t <= 2.25e-48: tmp = 1.0 - (x / (y * (y - z))) else: tmp = 1.0 + ((x / t) / (y - z)) return tmp
function code(x, y, z, t) tmp = 0.0 if (t <= -2.9e-31) tmp = Float64(1.0 - Float64(x / Float64(z * t))); elseif (t <= 2.25e-48) tmp = Float64(1.0 - Float64(x / Float64(y * Float64(y - z)))); 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 <= -2.9e-31) tmp = 1.0 - (x / (z * t)); elseif (t <= 2.25e-48) tmp = 1.0 - (x / (y * (y - z))); else tmp = 1.0 + ((x / t) / (y - z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[t, -2.9e-31], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e-48], N[(1.0 - N[(x / N[(y * N[(y - z), $MachinePrecision]), $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 -2.9 \cdot 10^{-31}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-48}:\\
\;\;\;\;1 - \frac{x}{y \cdot \left(y - z\right)}\\
\mathbf{else}:\\
\;\;\;\;1 + \frac{\frac{x}{t}}{y - z}\\
\end{array}
\end{array}
if t < -2.9000000000000001e-31Initial program 100.0%
Taylor expanded in y around 0 79.6%
if -2.9000000000000001e-31 < t < 2.24999999999999994e-48Initial program 98.0%
Taylor expanded in t around 0 90.7%
if 2.24999999999999994e-48 < t Initial program 99.9%
Taylor expanded in t around inf 98.2%
mul-1-neg98.2%
distribute-frac-neg98.2%
associate-/r*98.2%
Simplified98.2%
Final simplification90.5%
(FPCore (x y z t) :precision binary64 (if (<= y -2.3e-25) 1.0 (if (<= y 1.95e-36) (- 1.0 (/ x (* z t))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2.3e-25) {
tmp = 1.0;
} else if (y <= 1.95e-36) {
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.3d-25)) then
tmp = 1.0d0
else if (y <= 1.95d-36) 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.3e-25) {
tmp = 1.0;
} else if (y <= 1.95e-36) {
tmp = 1.0 - (x / (z * t));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2.3e-25: tmp = 1.0 elif y <= 1.95e-36: tmp = 1.0 - (x / (z * t)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2.3e-25) tmp = 1.0; elseif (y <= 1.95e-36) 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.3e-25) tmp = 1.0; elseif (y <= 1.95e-36) tmp = 1.0 - (x / (z * t)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2.3e-25], 1.0, If[LessEqual[y, 1.95e-36], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{-25}:\\
\;\;\;\;1\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{-36}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.2999999999999999e-25 or 1.95e-36 < y Initial program 99.9%
Taylor expanded in z around 0 91.9%
associate-/l/91.9%
Simplified91.9%
Taylor expanded in y around 0 72.7%
associate-*r/72.7%
neg-mul-172.7%
*-commutative72.7%
Simplified72.7%
expm1-log1p-u70.0%
expm1-udef70.0%
add-sqr-sqrt31.4%
sqrt-unprod59.3%
sqr-neg59.3%
sqrt-unprod38.7%
add-sqr-sqrt69.5%
Applied egg-rr69.5%
expm1-def69.5%
expm1-log1p69.9%
Simplified69.9%
Taylor expanded in x around 0 94.3%
if -2.2999999999999999e-25 < y < 1.95e-36Initial program 98.2%
Taylor expanded in y around 0 78.5%
Final simplification87.2%
(FPCore (x y z t) :precision binary64 (if (<= y -2e-25) (- 1.0 (/ x (* y (- y z)))) (if (<= y 3e-37) (- 1.0 (/ x (* z t))) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (y <= -2e-25) {
tmp = 1.0 - (x / (y * (y - z)));
} else if (y <= 3e-37) {
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 <= (-2d-25)) then
tmp = 1.0d0 - (x / (y * (y - z)))
else if (y <= 3d-37) 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 <= -2e-25) {
tmp = 1.0 - (x / (y * (y - z)));
} else if (y <= 3e-37) {
tmp = 1.0 - (x / (z * t));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if y <= -2e-25: tmp = 1.0 - (x / (y * (y - z))) elif y <= 3e-37: tmp = 1.0 - (x / (z * t)) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (y <= -2e-25) tmp = Float64(1.0 - Float64(x / Float64(y * Float64(y - z)))); elseif (y <= 3e-37) 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 <= -2e-25) tmp = 1.0 - (x / (y * (y - z))); elseif (y <= 3e-37) tmp = 1.0 - (x / (z * t)); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[y, -2e-25], N[(1.0 - N[(x / N[(y * N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e-37], N[(1.0 - N[(x / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2 \cdot 10^{-25}:\\
\;\;\;\;1 - \frac{x}{y \cdot \left(y - z\right)}\\
\mathbf{elif}\;y \leq 3 \cdot 10^{-37}:\\
\;\;\;\;1 - \frac{x}{z \cdot t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if y < -2.00000000000000008e-25Initial program 99.9%
Taylor expanded in t around 0 93.3%
if -2.00000000000000008e-25 < y < 3e-37Initial program 98.2%
Taylor expanded in y around 0 78.5%
if 3e-37 < y Initial program 100.0%
Taylor expanded in z around 0 90.2%
associate-/l/90.2%
Simplified90.2%
Taylor expanded in y around 0 69.6%
associate-*r/69.6%
neg-mul-169.6%
*-commutative69.6%
Simplified69.6%
expm1-log1p-u67.1%
expm1-udef67.1%
add-sqr-sqrt35.1%
sqrt-unprod60.3%
sqr-neg60.3%
sqrt-unprod32.1%
add-sqr-sqrt67.3%
Applied egg-rr67.3%
expm1-def67.3%
expm1-log1p67.8%
Simplified67.8%
Taylor expanded in x around 0 93.8%
Final simplification86.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%
Taylor expanded in z around 0 70.6%
associate-/l/70.2%
Simplified70.2%
Taylor expanded in y around 0 58.1%
associate-*r/58.1%
neg-mul-158.1%
*-commutative58.1%
Simplified58.1%
expm1-log1p-u53.6%
expm1-udef53.6%
add-sqr-sqrt25.0%
sqrt-unprod47.8%
sqr-neg47.8%
sqrt-unprod29.0%
add-sqr-sqrt53.1%
Applied egg-rr53.1%
expm1-def53.1%
expm1-log1p55.1%
Simplified55.1%
Taylor expanded in x around 0 78.4%
Final simplification78.4%
herbie shell --seed 2023195
(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)))))