
(FPCore (x y z t) :precision binary64 (/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 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 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
def code(x, y, z, t): return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t) :precision binary64 (/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 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 = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0);
}
def code(x, y, z, t): return (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / Float64(Float64(t * z) - x))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + (((y * z) - x) / ((t * z) - x))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \frac{y \cdot z - x}{t \cdot z - x}}{x + 1}
\end{array}
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* z t) x)) (t_2 (/ (+ x (/ (- (* y z) x) t_1)) (+ x 1.0))))
(if (<= t_2 -1e+164)
(* (/ y (+ x 1.0)) (/ z t_1))
(if (<= t_2 1e+246)
t_2
(-
(+ (/ y (* t (+ x 1.0))) (/ x (+ x 1.0)))
(/ x (* t (* z (+ x 1.0)))))))))
double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double tmp;
if (t_2 <= -1e+164) {
tmp = (y / (x + 1.0)) * (z / t_1);
} else if (t_2 <= 1e+246) {
tmp = t_2;
} else {
tmp = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / (t * (z * (x + 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z * t) - x
t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0d0)
if (t_2 <= (-1d+164)) then
tmp = (y / (x + 1.0d0)) * (z / t_1)
else if (t_2 <= 1d+246) then
tmp = t_2
else
tmp = ((y / (t * (x + 1.0d0))) + (x / (x + 1.0d0))) - (x / (t * (z * (x + 1.0d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double tmp;
if (t_2 <= -1e+164) {
tmp = (y / (x + 1.0)) * (z / t_1);
} else if (t_2 <= 1e+246) {
tmp = t_2;
} else {
tmp = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / (t * (z * (x + 1.0))));
}
return tmp;
}
def code(x, y, z, t): t_1 = (z * t) - x t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0) tmp = 0 if t_2 <= -1e+164: tmp = (y / (x + 1.0)) * (z / t_1) elif t_2 <= 1e+246: tmp = t_2 else: tmp = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / (t * (z * (x + 1.0)))) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(z * t) - x) t_2 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / t_1)) / Float64(x + 1.0)) tmp = 0.0 if (t_2 <= -1e+164) tmp = Float64(Float64(y / Float64(x + 1.0)) * Float64(z / t_1)); elseif (t_2 <= 1e+246) tmp = t_2; else tmp = Float64(Float64(Float64(y / Float64(t * Float64(x + 1.0))) + Float64(x / Float64(x + 1.0))) - Float64(x / Float64(t * Float64(z * Float64(x + 1.0))))); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (z * t) - x; t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0); tmp = 0.0; if (t_2 <= -1e+164) tmp = (y / (x + 1.0)) * (z / t_1); elseif (t_2 <= 1e+246) tmp = t_2; else tmp = ((y / (t * (x + 1.0))) + (x / (x + 1.0))) - (x / (t * (z * (x + 1.0)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+164], N[(N[(y / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+246], t$95$2, N[(N[(N[(y / N[(t * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(t * N[(z * N[(x + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x + \frac{y \cdot z - x}{t\_1}}{x + 1}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+164}:\\
\;\;\;\;\frac{y}{x + 1} \cdot \frac{z}{t\_1}\\
\mathbf{elif}\;t\_2 \leq 10^{+246}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(\frac{y}{t \cdot \left(x + 1\right)} + \frac{x}{x + 1}\right) - \frac{x}{t \cdot \left(z \cdot \left(x + 1\right)\right)}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x 1)) < -1e164Initial program 65.2%
*-commutative65.2%
Simplified65.2%
div-inv65.2%
fma-neg65.2%
Applied egg-rr65.2%
Taylor expanded in y around inf 64.5%
times-frac90.2%
+-commutative90.2%
Simplified90.2%
if -1e164 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x 1)) < 1.00000000000000007e246Initial program 99.9%
if 1.00000000000000007e246 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x 1)) Initial program 18.2%
*-commutative18.2%
Simplified18.2%
Taylor expanded in t around inf 89.9%
Final simplification98.2%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* z t) x)) (t_2 (/ (+ x (/ (- (* y z) x) t_1)) (+ x 1.0))))
(if (<= t_2 -1e+164)
(* (/ y (+ x 1.0)) (/ z t_1))
(if (<= t_2 1e+246) t_2 (/ (+ x (/ y t)) (+ x 1.0))))))
double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double tmp;
if (t_2 <= -1e+164) {
tmp = (y / (x + 1.0)) * (z / t_1);
} else if (t_2 <= 1e+246) {
tmp = t_2;
} else {
tmp = (x + (y / t)) / (x + 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (z * t) - x
t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0d0)
if (t_2 <= (-1d+164)) then
tmp = (y / (x + 1.0d0)) * (z / t_1)
else if (t_2 <= 1d+246) then
tmp = t_2
else
tmp = (x + (y / t)) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0);
double tmp;
if (t_2 <= -1e+164) {
tmp = (y / (x + 1.0)) * (z / t_1);
} else if (t_2 <= 1e+246) {
tmp = t_2;
} else {
tmp = (x + (y / t)) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): t_1 = (z * t) - x t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0) tmp = 0 if t_2 <= -1e+164: tmp = (y / (x + 1.0)) * (z / t_1) elif t_2 <= 1e+246: tmp = t_2 else: tmp = (x + (y / t)) / (x + 1.0) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(z * t) - x) t_2 = Float64(Float64(x + Float64(Float64(Float64(y * z) - x) / t_1)) / Float64(x + 1.0)) tmp = 0.0 if (t_2 <= -1e+164) tmp = Float64(Float64(y / Float64(x + 1.0)) * Float64(z / t_1)); elseif (t_2 <= 1e+246) tmp = t_2; else tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (z * t) - x; t_2 = (x + (((y * z) - x) / t_1)) / (x + 1.0); tmp = 0.0; if (t_2 <= -1e+164) tmp = (y / (x + 1.0)) * (z / t_1); elseif (t_2 <= 1e+246) tmp = t_2; else tmp = (x + (y / t)) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + N[(N[(N[(y * z), $MachinePrecision] - x), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -1e+164], N[(N[(y / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+246], t$95$2, N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot t - x\\
t_2 := \frac{x + \frac{y \cdot z - x}{t\_1}}{x + 1}\\
\mathbf{if}\;t\_2 \leq -1 \cdot 10^{+164}:\\
\;\;\;\;\frac{y}{x + 1} \cdot \frac{z}{t\_1}\\
\mathbf{elif}\;t\_2 \leq 10^{+246}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\end{array}
\end{array}
if (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x 1)) < -1e164Initial program 65.2%
*-commutative65.2%
Simplified65.2%
div-inv65.2%
fma-neg65.2%
Applied egg-rr65.2%
Taylor expanded in y around inf 64.5%
times-frac90.2%
+-commutative90.2%
Simplified90.2%
if -1e164 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x 1)) < 1.00000000000000007e246Initial program 99.9%
if 1.00000000000000007e246 < (/.f64 (+.f64 x (/.f64 (-.f64 (*.f64 y z) x) (-.f64 (*.f64 t z) x))) (+.f64 x 1)) Initial program 18.2%
*-commutative18.2%
Simplified18.2%
Taylor expanded in z around inf 85.4%
Final simplification97.8%
(FPCore (x y z t)
:precision binary64
(let* ((t_1 (- (* z t) x)))
(if (<= y -1.6e+270)
(* (/ y (+ x 1.0)) (/ z t_1))
(if (or (<= y -5.6e-58) (not (<= y 8e-189)))
(/ (+ x (/ (* y z) t_1)) (+ x 1.0))
(/ (- x (/ x t_1)) (+ x 1.0))))))
double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double tmp;
if (y <= -1.6e+270) {
tmp = (y / (x + 1.0)) * (z / t_1);
} else if ((y <= -5.6e-58) || !(y <= 8e-189)) {
tmp = (x + ((y * z) / t_1)) / (x + 1.0);
} else {
tmp = (x - (x / t_1)) / (x + 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) :: t_1
real(8) :: tmp
t_1 = (z * t) - x
if (y <= (-1.6d+270)) then
tmp = (y / (x + 1.0d0)) * (z / t_1)
else if ((y <= (-5.6d-58)) .or. (.not. (y <= 8d-189))) then
tmp = (x + ((y * z) / t_1)) / (x + 1.0d0)
else
tmp = (x - (x / t_1)) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double t_1 = (z * t) - x;
double tmp;
if (y <= -1.6e+270) {
tmp = (y / (x + 1.0)) * (z / t_1);
} else if ((y <= -5.6e-58) || !(y <= 8e-189)) {
tmp = (x + ((y * z) / t_1)) / (x + 1.0);
} else {
tmp = (x - (x / t_1)) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): t_1 = (z * t) - x tmp = 0 if y <= -1.6e+270: tmp = (y / (x + 1.0)) * (z / t_1) elif (y <= -5.6e-58) or not (y <= 8e-189): tmp = (x + ((y * z) / t_1)) / (x + 1.0) else: tmp = (x - (x / t_1)) / (x + 1.0) return tmp
function code(x, y, z, t) t_1 = Float64(Float64(z * t) - x) tmp = 0.0 if (y <= -1.6e+270) tmp = Float64(Float64(y / Float64(x + 1.0)) * Float64(z / t_1)); elseif ((y <= -5.6e-58) || !(y <= 8e-189)) tmp = Float64(Float64(x + Float64(Float64(y * z) / t_1)) / Float64(x + 1.0)); else tmp = Float64(Float64(x - Float64(x / t_1)) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) t_1 = (z * t) - x; tmp = 0.0; if (y <= -1.6e+270) tmp = (y / (x + 1.0)) * (z / t_1); elseif ((y <= -5.6e-58) || ~((y <= 8e-189))) tmp = (x + ((y * z) / t_1)) / (x + 1.0); else tmp = (x - (x / t_1)) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := Block[{t$95$1 = N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]}, If[LessEqual[y, -1.6e+270], N[(N[(y / N[(x + 1.0), $MachinePrecision]), $MachinePrecision] * N[(z / t$95$1), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -5.6e-58], N[Not[LessEqual[y, 8e-189]], $MachinePrecision]], N[(N[(x + N[(N[(y * z), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(x / t$95$1), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot t - x\\
\mathbf{if}\;y \leq -1.6 \cdot 10^{+270}:\\
\;\;\;\;\frac{y}{x + 1} \cdot \frac{z}{t\_1}\\
\mathbf{elif}\;y \leq -5.6 \cdot 10^{-58} \lor \neg \left(y \leq 8 \cdot 10^{-189}\right):\\
\;\;\;\;\frac{x + \frac{y \cdot z}{t\_1}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \frac{x}{t\_1}}{x + 1}\\
\end{array}
\end{array}
if y < -1.6000000000000001e270Initial program 53.0%
*-commutative53.0%
Simplified53.0%
div-inv53.3%
fma-neg53.3%
Applied egg-rr53.3%
Taylor expanded in y around inf 43.9%
times-frac91.3%
+-commutative91.3%
Simplified91.3%
if -1.6000000000000001e270 < y < -5.6000000000000001e-58 or 8.00000000000000055e-189 < y Initial program 88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in y around inf 83.4%
if -5.6000000000000001e-58 < y < 8.00000000000000055e-189Initial program 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around 0 95.0%
Final simplification87.4%
(FPCore (x y z t)
:precision binary64
(if (<= x -3.4e-84)
(/ x (+ x 1.0))
(if (<= x 1.22e-119)
(/ y t)
(if (<= x 1.55e-42) (* x (+ 1.0 (/ -1.0 (* z t)))) 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -3.4e-84) {
tmp = x / (x + 1.0);
} else if (x <= 1.22e-119) {
tmp = y / t;
} else if (x <= 1.55e-42) {
tmp = x * (1.0 + (-1.0 / (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 (x <= (-3.4d-84)) then
tmp = x / (x + 1.0d0)
else if (x <= 1.22d-119) then
tmp = y / t
else if (x <= 1.55d-42) then
tmp = x * (1.0d0 + ((-1.0d0) / (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 (x <= -3.4e-84) {
tmp = x / (x + 1.0);
} else if (x <= 1.22e-119) {
tmp = y / t;
} else if (x <= 1.55e-42) {
tmp = x * (1.0 + (-1.0 / (z * t)));
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -3.4e-84: tmp = x / (x + 1.0) elif x <= 1.22e-119: tmp = y / t elif x <= 1.55e-42: tmp = x * (1.0 + (-1.0 / (z * t))) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -3.4e-84) tmp = Float64(x / Float64(x + 1.0)); elseif (x <= 1.22e-119) tmp = Float64(y / t); elseif (x <= 1.55e-42) tmp = Float64(x * Float64(1.0 + Float64(-1.0 / Float64(z * t)))); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -3.4e-84) tmp = x / (x + 1.0); elseif (x <= 1.22e-119) tmp = y / t; elseif (x <= 1.55e-42) tmp = x * (1.0 + (-1.0 / (z * t))); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -3.4e-84], N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.22e-119], N[(y / t), $MachinePrecision], If[LessEqual[x, 1.55e-42], N[(x * N[(1.0 + N[(-1.0 / N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1.0]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.4 \cdot 10^{-84}:\\
\;\;\;\;\frac{x}{x + 1}\\
\mathbf{elif}\;x \leq 1.22 \cdot 10^{-119}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{elif}\;x \leq 1.55 \cdot 10^{-42}:\\
\;\;\;\;x \cdot \left(1 + \frac{-1}{z \cdot t}\right)\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -3.40000000000000021e-84Initial program 90.7%
*-commutative90.7%
Simplified90.7%
Taylor expanded in t around inf 81.3%
+-commutative81.3%
Simplified81.3%
if -3.40000000000000021e-84 < x < 1.22e-119Initial program 90.5%
*-commutative90.5%
Simplified90.5%
div-inv90.4%
fma-neg90.4%
Applied egg-rr90.4%
clear-num90.3%
inv-pow90.3%
fma-neg90.3%
un-div-inv90.4%
Applied egg-rr90.4%
Taylor expanded in x around 0 54.7%
if 1.22e-119 < x < 1.5500000000000001e-42Initial program 99.4%
*-commutative99.4%
Simplified99.4%
Taylor expanded in y around 0 60.1%
Taylor expanded in x around 0 61.3%
Taylor expanded in x around 0 61.4%
if 1.5500000000000001e-42 < x Initial program 88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in z around inf 75.4%
Taylor expanded in x around inf 80.5%
Final simplification71.7%
(FPCore (x y z t)
:precision binary64
(if (<= x -1.35e-71)
1.0
(if (<= x 2e-117)
(/ y t)
(if (<= x 6.8e-44) x (if (<= x 1.65e-31) (/ y t) 1.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.35e-71) {
tmp = 1.0;
} else if (x <= 2e-117) {
tmp = y / t;
} else if (x <= 6.8e-44) {
tmp = x;
} else if (x <= 1.65e-31) {
tmp = y / 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 (x <= (-1.35d-71)) then
tmp = 1.0d0
else if (x <= 2d-117) then
tmp = y / t
else if (x <= 6.8d-44) then
tmp = x
else if (x <= 1.65d-31) then
tmp = y / 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 (x <= -1.35e-71) {
tmp = 1.0;
} else if (x <= 2e-117) {
tmp = y / t;
} else if (x <= 6.8e-44) {
tmp = x;
} else if (x <= 1.65e-31) {
tmp = y / t;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.35e-71: tmp = 1.0 elif x <= 2e-117: tmp = y / t elif x <= 6.8e-44: tmp = x elif x <= 1.65e-31: tmp = y / t else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.35e-71) tmp = 1.0; elseif (x <= 2e-117) tmp = Float64(y / t); elseif (x <= 6.8e-44) tmp = x; elseif (x <= 1.65e-31) tmp = Float64(y / t); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.35e-71) tmp = 1.0; elseif (x <= 2e-117) tmp = y / t; elseif (x <= 6.8e-44) tmp = x; elseif (x <= 1.65e-31) tmp = y / t; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.35e-71], 1.0, If[LessEqual[x, 2e-117], N[(y / t), $MachinePrecision], If[LessEqual[x, 6.8e-44], x, If[LessEqual[x, 1.65e-31], N[(y / t), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.35 \cdot 10^{-71}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 2 \cdot 10^{-117}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{-44}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-31}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.3500000000000001e-71 or 1.65e-31 < x Initial program 89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in z around inf 74.4%
Taylor expanded in x around inf 82.3%
if -1.3500000000000001e-71 < x < 2.00000000000000006e-117 or 6.80000000000000033e-44 < x < 1.65e-31Initial program 90.4%
*-commutative90.4%
Simplified90.4%
div-inv90.3%
fma-neg90.3%
Applied egg-rr90.3%
clear-num90.3%
inv-pow90.3%
fma-neg90.3%
un-div-inv90.3%
Applied egg-rr90.3%
Taylor expanded in x around 0 53.4%
if 2.00000000000000006e-117 < x < 6.80000000000000033e-44Initial program 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in t around inf 56.1%
+-commutative56.1%
Simplified56.1%
Taylor expanded in x around 0 56.1%
Final simplification71.1%
(FPCore (x y z t)
:precision binary64
(if (<= x -1.8e-84)
(/ x (+ x 1.0))
(if (<= x 4.6e-117)
(/ y t)
(if (<= x 6.6e-43) x (if (<= x 4.2e-30) (/ y t) 1.0)))))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -1.8e-84) {
tmp = x / (x + 1.0);
} else if (x <= 4.6e-117) {
tmp = y / t;
} else if (x <= 6.6e-43) {
tmp = x;
} else if (x <= 4.2e-30) {
tmp = y / 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 (x <= (-1.8d-84)) then
tmp = x / (x + 1.0d0)
else if (x <= 4.6d-117) then
tmp = y / t
else if (x <= 6.6d-43) then
tmp = x
else if (x <= 4.2d-30) then
tmp = y / 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 (x <= -1.8e-84) {
tmp = x / (x + 1.0);
} else if (x <= 4.6e-117) {
tmp = y / t;
} else if (x <= 6.6e-43) {
tmp = x;
} else if (x <= 4.2e-30) {
tmp = y / t;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -1.8e-84: tmp = x / (x + 1.0) elif x <= 4.6e-117: tmp = y / t elif x <= 6.6e-43: tmp = x elif x <= 4.2e-30: tmp = y / t else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -1.8e-84) tmp = Float64(x / Float64(x + 1.0)); elseif (x <= 4.6e-117) tmp = Float64(y / t); elseif (x <= 6.6e-43) tmp = x; elseif (x <= 4.2e-30) tmp = Float64(y / t); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -1.8e-84) tmp = x / (x + 1.0); elseif (x <= 4.6e-117) tmp = y / t; elseif (x <= 6.6e-43) tmp = x; elseif (x <= 4.2e-30) tmp = y / t; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -1.8e-84], N[(x / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.6e-117], N[(y / t), $MachinePrecision], If[LessEqual[x, 6.6e-43], x, If[LessEqual[x, 4.2e-30], N[(y / t), $MachinePrecision], 1.0]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{-84}:\\
\;\;\;\;\frac{x}{x + 1}\\
\mathbf{elif}\;x \leq 4.6 \cdot 10^{-117}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{elif}\;x \leq 6.6 \cdot 10^{-43}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{-30}:\\
\;\;\;\;\frac{y}{t}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.80000000000000002e-84Initial program 90.7%
*-commutative90.7%
Simplified90.7%
Taylor expanded in t around inf 81.3%
+-commutative81.3%
Simplified81.3%
if -1.80000000000000002e-84 < x < 4.59999999999999989e-117 or 6.60000000000000031e-43 < x < 4.2000000000000004e-30Initial program 90.0%
*-commutative90.0%
Simplified90.0%
div-inv90.0%
fma-neg90.0%
Applied egg-rr90.0%
clear-num90.0%
inv-pow90.0%
fma-neg90.0%
un-div-inv90.0%
Applied egg-rr90.0%
Taylor expanded in x around 0 55.1%
if 4.59999999999999989e-117 < x < 6.60000000000000031e-43Initial program 99.5%
*-commutative99.5%
Simplified99.5%
Taylor expanded in t around inf 56.1%
+-commutative56.1%
Simplified56.1%
Taylor expanded in x around 0 56.1%
if 4.2000000000000004e-30 < x Initial program 88.5%
*-commutative88.5%
Simplified88.5%
Taylor expanded in z around inf 76.2%
Taylor expanded in x around inf 82.9%
Final simplification71.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -2.4e-18) (not (<= z 5.8e-150))) (/ (+ x (/ y t)) (+ x 1.0)) (/ (- x (/ x (- (* z t) x))) (+ x 1.0))))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.4e-18) || !(z <= 5.8e-150)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = (x - (x / ((z * t) - x))) / (x + 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 ((z <= (-2.4d-18)) .or. (.not. (z <= 5.8d-150))) then
tmp = (x + (y / t)) / (x + 1.0d0)
else
tmp = (x - (x / ((z * t) - x))) / (x + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -2.4e-18) || !(z <= 5.8e-150)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = (x - (x / ((z * t) - x))) / (x + 1.0);
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -2.4e-18) or not (z <= 5.8e-150): tmp = (x + (y / t)) / (x + 1.0) else: tmp = (x - (x / ((z * t) - x))) / (x + 1.0) return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -2.4e-18) || !(z <= 5.8e-150)) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = Float64(Float64(x - Float64(x / Float64(Float64(z * t) - x))) / Float64(x + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -2.4e-18) || ~((z <= 5.8e-150))) tmp = (x + (y / t)) / (x + 1.0); else tmp = (x - (x / ((z * t) - x))) / (x + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -2.4e-18], N[Not[LessEqual[z, 5.8e-150]], $MachinePrecision]], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], N[(N[(x - N[(x / N[(N[(z * t), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{-18} \lor \neg \left(z \leq 5.8 \cdot 10^{-150}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - \frac{x}{z \cdot t - x}}{x + 1}\\
\end{array}
\end{array}
if z < -2.39999999999999994e-18 or 5.7999999999999996e-150 < z Initial program 83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in z around inf 84.3%
if -2.39999999999999994e-18 < z < 5.7999999999999996e-150Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around 0 83.8%
Final simplification84.1%
(FPCore (x y z t) :precision binary64 (if (<= x -13000000.0) 1.0 (if (<= x 5.5e-29) (/ (+ x (/ (- y (/ x z)) t)) (+ x 1.0)) 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -13000000.0) {
tmp = 1.0;
} else if (x <= 5.5e-29) {
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0);
} 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 (x <= (-13000000.0d0)) then
tmp = 1.0d0
else if (x <= 5.5d-29) then
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0d0)
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 (x <= -13000000.0) {
tmp = 1.0;
} else if (x <= 5.5e-29) {
tmp = (x + ((y - (x / z)) / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -13000000.0: tmp = 1.0 elif x <= 5.5e-29: tmp = (x + ((y - (x / z)) / t)) / (x + 1.0) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -13000000.0) tmp = 1.0; elseif (x <= 5.5e-29) tmp = Float64(Float64(x + Float64(Float64(y - Float64(x / z)) / t)) / Float64(x + 1.0)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -13000000.0) tmp = 1.0; elseif (x <= 5.5e-29) tmp = (x + ((y - (x / z)) / t)) / (x + 1.0); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -13000000.0], 1.0, If[LessEqual[x, 5.5e-29], N[(N[(x + N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -13000000:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{-29}:\\
\;\;\;\;\frac{x + \frac{y - \frac{x}{z}}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -1.3e7 or 5.4999999999999999e-29 < x Initial program 89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in z around inf 75.2%
Taylor expanded in x around inf 85.9%
if -1.3e7 < x < 5.4999999999999999e-29Initial program 91.1%
*-commutative91.1%
Simplified91.1%
Taylor expanded in t around inf 67.9%
Taylor expanded in y around 0 75.7%
+-commutative75.7%
mul-1-neg75.7%
sub-neg75.7%
*-commutative75.7%
associate-/r*76.7%
div-sub76.7%
Simplified76.7%
Final simplification81.9%
(FPCore (x y z t) :precision binary64 (if (or (<= z -3e-17) (not (<= z 7.2e-152))) (/ (+ x (/ y t)) (+ x 1.0)) 1.0))
double code(double x, double y, double z, double t) {
double tmp;
if ((z <= -3e-17) || !(z <= 7.2e-152)) {
tmp = (x + (y / t)) / (x + 1.0);
} 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 ((z <= (-3d-17)) .or. (.not. (z <= 7.2d-152))) then
tmp = (x + (y / t)) / (x + 1.0d0)
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 ((z <= -3e-17) || !(z <= 7.2e-152)) {
tmp = (x + (y / t)) / (x + 1.0);
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if (z <= -3e-17) or not (z <= 7.2e-152): tmp = (x + (y / t)) / (x + 1.0) else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if ((z <= -3e-17) || !(z <= 7.2e-152)) tmp = Float64(Float64(x + Float64(y / t)) / Float64(x + 1.0)); else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if ((z <= -3e-17) || ~((z <= 7.2e-152))) tmp = (x + (y / t)) / (x + 1.0); else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[Or[LessEqual[z, -3e-17], N[Not[LessEqual[z, 7.2e-152]], $MachinePrecision]], N[(N[(x + N[(y / t), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision], 1.0]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{-17} \lor \neg \left(z \leq 7.2 \cdot 10^{-152}\right):\\
\;\;\;\;\frac{x + \frac{y}{t}}{x + 1}\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if z < -3.00000000000000006e-17 or 7.2e-152 < z Initial program 83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in z around inf 84.3%
if -3.00000000000000006e-17 < z < 7.2e-152Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around inf 53.4%
Taylor expanded in x around inf 71.2%
Final simplification79.0%
(FPCore (x y z t) :precision binary64 (if (<= x -4e-210) 1.0 (if (<= x 1.9e-42) x 1.0)))
double code(double x, double y, double z, double t) {
double tmp;
if (x <= -4e-210) {
tmp = 1.0;
} else if (x <= 1.9e-42) {
tmp = 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 (x <= (-4d-210)) then
tmp = 1.0d0
else if (x <= 1.9d-42) then
tmp = 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 (x <= -4e-210) {
tmp = 1.0;
} else if (x <= 1.9e-42) {
tmp = x;
} else {
tmp = 1.0;
}
return tmp;
}
def code(x, y, z, t): tmp = 0 if x <= -4e-210: tmp = 1.0 elif x <= 1.9e-42: tmp = x else: tmp = 1.0 return tmp
function code(x, y, z, t) tmp = 0.0 if (x <= -4e-210) tmp = 1.0; elseif (x <= 1.9e-42) tmp = x; else tmp = 1.0; end return tmp end
function tmp_2 = code(x, y, z, t) tmp = 0.0; if (x <= -4e-210) tmp = 1.0; elseif (x <= 1.9e-42) tmp = x; else tmp = 1.0; end tmp_2 = tmp; end
code[x_, y_, z_, t_] := If[LessEqual[x, -4e-210], 1.0, If[LessEqual[x, 1.9e-42], x, 1.0]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4 \cdot 10^{-210}:\\
\;\;\;\;1\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-42}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;1\\
\end{array}
\end{array}
if x < -4.0000000000000002e-210 or 1.90000000000000009e-42 < x Initial program 89.7%
*-commutative89.7%
Simplified89.7%
Taylor expanded in z around inf 72.2%
Taylor expanded in x around inf 72.6%
if -4.0000000000000002e-210 < x < 1.90000000000000009e-42Initial program 91.2%
*-commutative91.2%
Simplified91.2%
Taylor expanded in t around inf 24.7%
+-commutative24.7%
Simplified24.7%
Taylor expanded in x around 0 24.7%
Final simplification60.0%
(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 90.1%
*-commutative90.1%
Simplified90.1%
Taylor expanded in z around inf 71.8%
Taylor expanded in x around inf 55.6%
Final simplification55.6%
(FPCore (x y z t) :precision binary64 (/ (+ x (- (/ y (- t (/ x z))) (/ x (- (* t z) x)))) (+ x 1.0)))
double code(double x, double y, double z, double t) {
return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 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 = (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0d0)
end function
public static double code(double x, double y, double z, double t) {
return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0);
}
def code(x, y, z, t): return (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0)
function code(x, y, z, t) return Float64(Float64(x + Float64(Float64(y / Float64(t - Float64(x / z))) - Float64(x / Float64(Float64(t * z) - x)))) / Float64(x + 1.0)) end
function tmp = code(x, y, z, t) tmp = (x + ((y / (t - (x / z))) - (x / ((t * z) - x)))) / (x + 1.0); end
code[x_, y_, z_, t_] := N[(N[(x + N[(N[(y / N[(t - N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x / N[(N[(t * z), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(x + 1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x + \left(\frac{y}{t - \frac{x}{z}} - \frac{x}{t \cdot z - x}\right)}{x + 1}
\end{array}
herbie shell --seed 2024027
(FPCore (x y z t)
:name "Diagrams.Trail:splitAtParam from diagrams-lib-1.3.0.3, A"
:precision binary64
:herbie-target
(/ (+ x (- (/ y (- t (/ x z))) (/ x (- (* t z) x)))) (+ x 1.0))
(/ (+ x (/ (- (* y z) x) (- (* t z) x))) (+ x 1.0)))