
(FPCore (x y z t a) :precision binary64 (/ (- x (* y z)) (- t (* a z))))
double code(double x, double y, double z, double t, double a) {
return (x - (y * z)) / (t - (a * z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (x - (y * z)) / (t - (a * z))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x - (y * z)) / (t - (a * z));
}
def code(x, y, z, t, a): return (x - (y * z)) / (t - (a * z))
function code(x, y, z, t, a) return Float64(Float64(x - Float64(y * z)) / Float64(t - Float64(a * z))) end
function tmp = code(x, y, z, t, a) tmp = (x - (y * z)) / (t - (a * z)); end
code[x_, y_, z_, t_, a_] := N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(t - N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y \cdot z}{t - a \cdot z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 10 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (/ (- x (* y z)) (- t (* a z))))
double code(double x, double y, double z, double t, double a) {
return (x - (y * z)) / (t - (a * z));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = (x - (y * z)) / (t - (a * z))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x - (y * z)) / (t - (a * z));
}
def code(x, y, z, t, a): return (x - (y * z)) / (t - (a * z))
function code(x, y, z, t, a) return Float64(Float64(x - Float64(y * z)) / Float64(t - Float64(a * z))) end
function tmp = code(x, y, z, t, a) tmp = (x - (y * z)) / (t - (a * z)); end
code[x_, y_, z_, t_, a_] := N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(t - N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x - y \cdot z}{t - a \cdot z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (/ t a) z)) (t_2 (- t (* z a))) (t_3 (/ (- x (* y z)) t_2)))
(if (<= t_3 (- INFINITY))
(* y (+ (/ z (- (* z a) t)) (/ x (* y t_2))))
(if (<= t_3 -5e-311)
t_3
(if (<= t_3 0.0)
(- (/ (/ x a) t_1) (/ (* y (/ z a)) t_1))
(if (<= t_3 1e+295) t_3 (/ (- y (/ x z)) a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (t / a) - z;
double t_2 = t - (z * a);
double t_3 = (x - (y * z)) / t_2;
double tmp;
if (t_3 <= -((double) INFINITY)) {
tmp = y * ((z / ((z * a) - t)) + (x / (y * t_2)));
} else if (t_3 <= -5e-311) {
tmp = t_3;
} else if (t_3 <= 0.0) {
tmp = ((x / a) / t_1) - ((y * (z / a)) / t_1);
} else if (t_3 <= 1e+295) {
tmp = t_3;
} else {
tmp = (y - (x / z)) / a;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (t / a) - z;
double t_2 = t - (z * a);
double t_3 = (x - (y * z)) / t_2;
double tmp;
if (t_3 <= -Double.POSITIVE_INFINITY) {
tmp = y * ((z / ((z * a) - t)) + (x / (y * t_2)));
} else if (t_3 <= -5e-311) {
tmp = t_3;
} else if (t_3 <= 0.0) {
tmp = ((x / a) / t_1) - ((y * (z / a)) / t_1);
} else if (t_3 <= 1e+295) {
tmp = t_3;
} else {
tmp = (y - (x / z)) / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (t / a) - z t_2 = t - (z * a) t_3 = (x - (y * z)) / t_2 tmp = 0 if t_3 <= -math.inf: tmp = y * ((z / ((z * a) - t)) + (x / (y * t_2))) elif t_3 <= -5e-311: tmp = t_3 elif t_3 <= 0.0: tmp = ((x / a) / t_1) - ((y * (z / a)) / t_1) elif t_3 <= 1e+295: tmp = t_3 else: tmp = (y - (x / z)) / a return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(t / a) - z) t_2 = Float64(t - Float64(z * a)) t_3 = Float64(Float64(x - Float64(y * z)) / t_2) tmp = 0.0 if (t_3 <= Float64(-Inf)) tmp = Float64(y * Float64(Float64(z / Float64(Float64(z * a) - t)) + Float64(x / Float64(y * t_2)))); elseif (t_3 <= -5e-311) tmp = t_3; elseif (t_3 <= 0.0) tmp = Float64(Float64(Float64(x / a) / t_1) - Float64(Float64(y * Float64(z / a)) / t_1)); elseif (t_3 <= 1e+295) tmp = t_3; else tmp = Float64(Float64(y - Float64(x / z)) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (t / a) - z; t_2 = t - (z * a); t_3 = (x - (y * z)) / t_2; tmp = 0.0; if (t_3 <= -Inf) tmp = y * ((z / ((z * a) - t)) + (x / (y * t_2))); elseif (t_3 <= -5e-311) tmp = t_3; elseif (t_3 <= 0.0) tmp = ((x / a) / t_1) - ((y * (z / a)) / t_1); elseif (t_3 <= 1e+295) tmp = t_3; else tmp = (y - (x / z)) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(t / a), $MachinePrecision] - z), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision]}, If[LessEqual[t$95$3, (-Infinity)], N[(y * N[(N[(z / N[(N[(z * a), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision] + N[(x / N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, -5e-311], t$95$3, If[LessEqual[t$95$3, 0.0], N[(N[(N[(x / a), $MachinePrecision] / t$95$1), $MachinePrecision] - N[(N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, 1e+295], t$95$3, N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t}{a} - z\\
t_2 := t - z \cdot a\\
t_3 := \frac{x - y \cdot z}{t\_2}\\
\mathbf{if}\;t\_3 \leq -\infty:\\
\;\;\;\;y \cdot \left(\frac{z}{z \cdot a - t} + \frac{x}{y \cdot t\_2}\right)\\
\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{-311}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;t\_3 \leq 0:\\
\;\;\;\;\frac{\frac{x}{a}}{t\_1} - \frac{y \cdot \frac{z}{a}}{t\_1}\\
\mathbf{elif}\;t\_3 \leq 10^{+295}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;\frac{y - \frac{x}{z}}{a}\\
\end{array}
\end{array}
if (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) < -inf.0Initial program 58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in y around inf 99.8%
Simplified99.8%
if -inf.0 < (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) < -5.00000000000023e-311 or 0.0 < (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) < 9.9999999999999998e294Initial program 99.8%
if -5.00000000000023e-311 < (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) < 0.0Initial program 73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in a around inf 73.1%
Taylor expanded in x around 0 73.1%
+-commutative73.1%
mul-1-neg73.1%
unsub-neg73.1%
associate-/r*87.2%
associate-/r*99.9%
associate-/l*99.9%
Simplified99.9%
if 9.9999999999999998e294 < (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) Initial program 33.2%
*-commutative33.2%
Simplified33.2%
Taylor expanded in z around inf 33.2%
Taylor expanded in t around 0 88.8%
mul-1-neg88.8%
distribute-neg-frac288.8%
Simplified88.8%
Final simplification98.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (* z a) t)) (t_2 (/ (- x (* y z)) (- t (* z a)))))
(if (<= t_2 (- INFINITY))
(* y (- (/ z t_1) (/ x (* y t_1))))
(if (<= t_2 1e+295) t_2 (/ (- y (/ x z)) a)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z * a) - t;
double t_2 = (x - (y * z)) / (t - (z * a));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = y * ((z / t_1) - (x / (y * t_1)));
} else if (t_2 <= 1e+295) {
tmp = t_2;
} else {
tmp = (y - (x / z)) / a;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (z * a) - t;
double t_2 = (x - (y * z)) / (t - (z * a));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = y * ((z / t_1) - (x / (y * t_1)));
} else if (t_2 <= 1e+295) {
tmp = t_2;
} else {
tmp = (y - (x / z)) / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z * a) - t t_2 = (x - (y * z)) / (t - (z * a)) tmp = 0 if t_2 <= -math.inf: tmp = y * ((z / t_1) - (x / (y * t_1))) elif t_2 <= 1e+295: tmp = t_2 else: tmp = (y - (x / z)) / a return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z * a) - t) t_2 = Float64(Float64(x - Float64(y * z)) / Float64(t - Float64(z * a))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = Float64(y * Float64(Float64(z / t_1) - Float64(x / Float64(y * t_1)))); elseif (t_2 <= 1e+295) tmp = t_2; else tmp = Float64(Float64(y - Float64(x / z)) / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (z * a) - t; t_2 = (x - (y * z)) / (t - (z * a)); tmp = 0.0; if (t_2 <= -Inf) tmp = y * ((z / t_1) - (x / (y * t_1))); elseif (t_2 <= 1e+295) tmp = t_2; else tmp = (y - (x / z)) / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z * a), $MachinePrecision] - t), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], N[(y * N[(N[(z / t$95$1), $MachinePrecision] - N[(x / N[(y * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+295], t$95$2, N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot a - t\\
t_2 := \frac{x - y \cdot z}{t - z \cdot a}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;y \cdot \left(\frac{z}{t\_1} - \frac{x}{y \cdot t\_1}\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+295}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{y - \frac{x}{z}}{a}\\
\end{array}
\end{array}
if (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) < -inf.0Initial program 58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in y around inf 99.8%
Simplified99.8%
if -inf.0 < (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) < 9.9999999999999998e294Initial program 95.2%
if 9.9999999999999998e294 < (/.f64 (-.f64 x (*.f64 y z)) (-.f64 t (*.f64 a z))) Initial program 33.2%
*-commutative33.2%
Simplified33.2%
Taylor expanded in z around inf 33.2%
Taylor expanded in t around 0 88.8%
mul-1-neg88.8%
distribute-neg-frac288.8%
Simplified88.8%
Final simplification94.7%
(FPCore (x y z t a)
:precision binary64
(if (or (<= z -3500000.0)
(and (not (<= z 3.9e-75)) (or (<= z 2.3e-54) (not (<= z 1.1e+46)))))
(/ (- y (/ x z)) a)
(/ (- x (* y z)) t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3500000.0) || (!(z <= 3.9e-75) && ((z <= 2.3e-54) || !(z <= 1.1e+46)))) {
tmp = (y - (x / z)) / a;
} else {
tmp = (x - (y * z)) / t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-3500000.0d0)) .or. (.not. (z <= 3.9d-75)) .and. (z <= 2.3d-54) .or. (.not. (z <= 1.1d+46))) then
tmp = (y - (x / z)) / a
else
tmp = (x - (y * z)) / t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -3500000.0) || (!(z <= 3.9e-75) && ((z <= 2.3e-54) || !(z <= 1.1e+46)))) {
tmp = (y - (x / z)) / a;
} else {
tmp = (x - (y * z)) / t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -3500000.0) or (not (z <= 3.9e-75) and ((z <= 2.3e-54) or not (z <= 1.1e+46))): tmp = (y - (x / z)) / a else: tmp = (x - (y * z)) / t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -3500000.0) || (!(z <= 3.9e-75) && ((z <= 2.3e-54) || !(z <= 1.1e+46)))) tmp = Float64(Float64(y - Float64(x / z)) / a); else tmp = Float64(Float64(x - Float64(y * z)) / t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -3500000.0) || (~((z <= 3.9e-75)) && ((z <= 2.3e-54) || ~((z <= 1.1e+46))))) tmp = (y - (x / z)) / a; else tmp = (x - (y * z)) / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -3500000.0], And[N[Not[LessEqual[z, 3.9e-75]], $MachinePrecision], Or[LessEqual[z, 2.3e-54], N[Not[LessEqual[z, 1.1e+46]], $MachinePrecision]]]], N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3500000 \lor \neg \left(z \leq 3.9 \cdot 10^{-75}\right) \land \left(z \leq 2.3 \cdot 10^{-54} \lor \neg \left(z \leq 1.1 \cdot 10^{+46}\right)\right):\\
\;\;\;\;\frac{y - \frac{x}{z}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - y \cdot z}{t}\\
\end{array}
\end{array}
if z < -3.5e6 or 3.9000000000000001e-75 < z < 2.2999999999999999e-54 or 1.1e46 < z Initial program 67.2%
*-commutative67.2%
Simplified67.2%
Taylor expanded in z around inf 67.3%
Taylor expanded in t around 0 75.2%
mul-1-neg75.2%
distribute-neg-frac275.2%
Simplified75.2%
if -3.5e6 < z < 3.9000000000000001e-75 or 2.2999999999999999e-54 < z < 1.1e46Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in t around inf 83.6%
Final simplification79.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (- t (* z a)))))
(if (<= z -3.2e+23)
(/ y a)
(if (<= z -8.2e-54)
t_1
(if (<= z -4.2e-102)
(/ (* y z) (- t))
(if (<= z 4.7e+145) t_1 (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (t - (z * a));
double tmp;
if (z <= -3.2e+23) {
tmp = y / a;
} else if (z <= -8.2e-54) {
tmp = t_1;
} else if (z <= -4.2e-102) {
tmp = (y * z) / -t;
} else if (z <= 4.7e+145) {
tmp = t_1;
} else {
tmp = y / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x / (t - (z * a))
if (z <= (-3.2d+23)) then
tmp = y / a
else if (z <= (-8.2d-54)) then
tmp = t_1
else if (z <= (-4.2d-102)) then
tmp = (y * z) / -t
else if (z <= 4.7d+145) then
tmp = t_1
else
tmp = y / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x / (t - (z * a));
double tmp;
if (z <= -3.2e+23) {
tmp = y / a;
} else if (z <= -8.2e-54) {
tmp = t_1;
} else if (z <= -4.2e-102) {
tmp = (y * z) / -t;
} else if (z <= 4.7e+145) {
tmp = t_1;
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (t - (z * a)) tmp = 0 if z <= -3.2e+23: tmp = y / a elif z <= -8.2e-54: tmp = t_1 elif z <= -4.2e-102: tmp = (y * z) / -t elif z <= 4.7e+145: tmp = t_1 else: tmp = y / a return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(t - Float64(z * a))) tmp = 0.0 if (z <= -3.2e+23) tmp = Float64(y / a); elseif (z <= -8.2e-54) tmp = t_1; elseif (z <= -4.2e-102) tmp = Float64(Float64(y * z) / Float64(-t)); elseif (z <= 4.7e+145) tmp = t_1; else tmp = Float64(y / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x / (t - (z * a)); tmp = 0.0; if (z <= -3.2e+23) tmp = y / a; elseif (z <= -8.2e-54) tmp = t_1; elseif (z <= -4.2e-102) tmp = (y * z) / -t; elseif (z <= 4.7e+145) tmp = t_1; else tmp = y / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.2e+23], N[(y / a), $MachinePrecision], If[LessEqual[z, -8.2e-54], t$95$1, If[LessEqual[z, -4.2e-102], N[(N[(y * z), $MachinePrecision] / (-t)), $MachinePrecision], If[LessEqual[z, 4.7e+145], t$95$1, N[(y / a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{t - z \cdot a}\\
\mathbf{if}\;z \leq -3.2 \cdot 10^{+23}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -8.2 \cdot 10^{-54}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4.2 \cdot 10^{-102}:\\
\;\;\;\;\frac{y \cdot z}{-t}\\
\mathbf{elif}\;z \leq 4.7 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -3.2e23 or 4.7000000000000002e145 < z Initial program 54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around inf 70.0%
if -3.2e23 < z < -8.2000000000000001e-54 or -4.2e-102 < z < 4.7000000000000002e145Initial program 98.1%
*-commutative98.1%
Simplified98.1%
Taylor expanded in x around inf 66.9%
*-commutative66.9%
Simplified66.9%
if -8.2000000000000001e-54 < z < -4.2e-102Initial program 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in x around 0 68.3%
mul-1-neg68.3%
associate-/l*54.5%
distribute-rgt-neg-in54.5%
distribute-neg-frac254.5%
cancel-sign-sub-inv54.5%
*-commutative54.5%
+-commutative54.5%
*-commutative54.5%
distribute-lft-neg-in54.5%
distribute-rgt-neg-in54.5%
fma-undefine54.5%
neg-sub054.5%
fma-undefine54.5%
distribute-rgt-neg-in54.5%
mul-1-neg54.5%
associate-*r*54.5%
neg-mul-154.5%
*-commutative54.5%
associate--r+54.5%
neg-sub054.5%
distribute-rgt-neg-out54.5%
remove-double-neg54.5%
Simplified54.5%
Taylor expanded in z around 0 68.0%
associate-*r/68.0%
associate-*r*68.0%
mul-1-neg68.0%
Simplified68.0%
Final simplification67.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- x (* y z)) t)))
(if (<= z -6600000.0)
(/ y a)
(if (<= z 2.3e-75)
t_1
(if (<= z 3.3e+73)
(/ x (- t (* z a)))
(if (<= z 4.3e+145) t_1 (/ y a)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x - (y * z)) / t;
double tmp;
if (z <= -6600000.0) {
tmp = y / a;
} else if (z <= 2.3e-75) {
tmp = t_1;
} else if (z <= 3.3e+73) {
tmp = x / (t - (z * a));
} else if (z <= 4.3e+145) {
tmp = t_1;
} else {
tmp = y / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (x - (y * z)) / t
if (z <= (-6600000.0d0)) then
tmp = y / a
else if (z <= 2.3d-75) then
tmp = t_1
else if (z <= 3.3d+73) then
tmp = x / (t - (z * a))
else if (z <= 4.3d+145) then
tmp = t_1
else
tmp = y / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (x - (y * z)) / t;
double tmp;
if (z <= -6600000.0) {
tmp = y / a;
} else if (z <= 2.3e-75) {
tmp = t_1;
} else if (z <= 3.3e+73) {
tmp = x / (t - (z * a));
} else if (z <= 4.3e+145) {
tmp = t_1;
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x - (y * z)) / t tmp = 0 if z <= -6600000.0: tmp = y / a elif z <= 2.3e-75: tmp = t_1 elif z <= 3.3e+73: tmp = x / (t - (z * a)) elif z <= 4.3e+145: tmp = t_1 else: tmp = y / a return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x - Float64(y * z)) / t) tmp = 0.0 if (z <= -6600000.0) tmp = Float64(y / a); elseif (z <= 2.3e-75) tmp = t_1; elseif (z <= 3.3e+73) tmp = Float64(x / Float64(t - Float64(z * a))); elseif (z <= 4.3e+145) tmp = t_1; else tmp = Float64(y / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x - (y * z)) / t; tmp = 0.0; if (z <= -6600000.0) tmp = y / a; elseif (z <= 2.3e-75) tmp = t_1; elseif (z <= 3.3e+73) tmp = x / (t - (z * a)); elseif (z <= 4.3e+145) tmp = t_1; else tmp = y / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[z, -6600000.0], N[(y / a), $MachinePrecision], If[LessEqual[z, 2.3e-75], t$95$1, If[LessEqual[z, 3.3e+73], N[(x / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.3e+145], t$95$1, N[(y / a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x - y \cdot z}{t}\\
\mathbf{if}\;z \leq -6600000:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.3 \cdot 10^{+73}:\\
\;\;\;\;\frac{x}{t - z \cdot a}\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -6.6e6 or 4.29999999999999998e145 < z Initial program 59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in z around inf 66.6%
if -6.6e6 < z < 2.3e-75 or 3.3000000000000003e73 < z < 4.29999999999999998e145Initial program 99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in t around inf 81.9%
if 2.3e-75 < z < 3.3000000000000003e73Initial program 93.2%
*-commutative93.2%
Simplified93.2%
Taylor expanded in x around inf 61.3%
*-commutative61.3%
Simplified61.3%
Final simplification74.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- y (/ x z)) a)))
(if (<= a -3.1e+150)
t_1
(if (<= a -2.75e-62)
(/ x (- t (* z a)))
(if (<= a -4.2e-138)
(* y (/ z (- (* z a) t)))
(if (<= a 10.5) (/ (- x (* y z)) t) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y - (x / z)) / a;
double tmp;
if (a <= -3.1e+150) {
tmp = t_1;
} else if (a <= -2.75e-62) {
tmp = x / (t - (z * a));
} else if (a <= -4.2e-138) {
tmp = y * (z / ((z * a) - t));
} else if (a <= 10.5) {
tmp = (x - (y * z)) / t;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = (y - (x / z)) / a
if (a <= (-3.1d+150)) then
tmp = t_1
else if (a <= (-2.75d-62)) then
tmp = x / (t - (z * a))
else if (a <= (-4.2d-138)) then
tmp = y * (z / ((z * a) - t))
else if (a <= 10.5d0) then
tmp = (x - (y * z)) / t
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = (y - (x / z)) / a;
double tmp;
if (a <= -3.1e+150) {
tmp = t_1;
} else if (a <= -2.75e-62) {
tmp = x / (t - (z * a));
} else if (a <= -4.2e-138) {
tmp = y * (z / ((z * a) - t));
} else if (a <= 10.5) {
tmp = (x - (y * z)) / t;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y - (x / z)) / a tmp = 0 if a <= -3.1e+150: tmp = t_1 elif a <= -2.75e-62: tmp = x / (t - (z * a)) elif a <= -4.2e-138: tmp = y * (z / ((z * a) - t)) elif a <= 10.5: tmp = (x - (y * z)) / t else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y - Float64(x / z)) / a) tmp = 0.0 if (a <= -3.1e+150) tmp = t_1; elseif (a <= -2.75e-62) tmp = Float64(x / Float64(t - Float64(z * a))); elseif (a <= -4.2e-138) tmp = Float64(y * Float64(z / Float64(Float64(z * a) - t))); elseif (a <= 10.5) tmp = Float64(Float64(x - Float64(y * z)) / t); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y - (x / z)) / a; tmp = 0.0; if (a <= -3.1e+150) tmp = t_1; elseif (a <= -2.75e-62) tmp = x / (t - (z * a)); elseif (a <= -4.2e-138) tmp = y * (z / ((z * a) - t)); elseif (a <= 10.5) tmp = (x - (y * z)) / t; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]}, If[LessEqual[a, -3.1e+150], t$95$1, If[LessEqual[a, -2.75e-62], N[(x / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.2e-138], N[(y * N[(z / N[(N[(z * a), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 10.5], N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y - \frac{x}{z}}{a}\\
\mathbf{if}\;a \leq -3.1 \cdot 10^{+150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.75 \cdot 10^{-62}:\\
\;\;\;\;\frac{x}{t - z \cdot a}\\
\mathbf{elif}\;a \leq -4.2 \cdot 10^{-138}:\\
\;\;\;\;y \cdot \frac{z}{z \cdot a - t}\\
\mathbf{elif}\;a \leq 10.5:\\
\;\;\;\;\frac{x - y \cdot z}{t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.10000000000000014e150 or 10.5 < a Initial program 72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in z around inf 64.1%
Taylor expanded in t around 0 73.0%
mul-1-neg73.0%
distribute-neg-frac273.0%
Simplified73.0%
if -3.10000000000000014e150 < a < -2.75000000000000011e-62Initial program 86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in x around inf 65.3%
*-commutative65.3%
Simplified65.3%
if -2.75000000000000011e-62 < a < -4.19999999999999972e-138Initial program 78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in x around 0 52.3%
mul-1-neg52.3%
associate-/l*73.2%
distribute-rgt-neg-in73.2%
distribute-neg-frac273.2%
cancel-sign-sub-inv73.2%
*-commutative73.2%
+-commutative73.2%
*-commutative73.2%
distribute-lft-neg-in73.2%
distribute-rgt-neg-in73.2%
fma-undefine73.2%
neg-sub073.2%
fma-undefine73.2%
distribute-rgt-neg-in73.2%
mul-1-neg73.2%
associate-*r*73.2%
neg-mul-173.2%
*-commutative73.2%
associate--r+73.2%
neg-sub073.2%
distribute-rgt-neg-out73.2%
remove-double-neg73.2%
Simplified73.2%
if -4.19999999999999972e-138 < a < 10.5Initial program 95.4%
*-commutative95.4%
Simplified95.4%
Taylor expanded in t around inf 84.4%
Final simplification76.6%
(FPCore (x y z t a) :precision binary64 (if (<= z -3900000.0) (/ y a) (if (<= z 3.4e-75) (/ x t) (if (<= z 7e+63) (/ x (* z (- a))) (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3900000.0) {
tmp = y / a;
} else if (z <= 3.4e-75) {
tmp = x / t;
} else if (z <= 7e+63) {
tmp = x / (z * -a);
} else {
tmp = y / a;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (z <= (-3900000.0d0)) then
tmp = y / a
else if (z <= 3.4d-75) then
tmp = x / t
else if (z <= 7d+63) then
tmp = x / (z * -a)
else
tmp = y / a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3900000.0) {
tmp = y / a;
} else if (z <= 3.4e-75) {
tmp = x / t;
} else if (z <= 7e+63) {
tmp = x / (z * -a);
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3900000.0: tmp = y / a elif z <= 3.4e-75: tmp = x / t elif z <= 7e+63: tmp = x / (z * -a) else: tmp = y / a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3900000.0) tmp = Float64(y / a); elseif (z <= 3.4e-75) tmp = Float64(x / t); elseif (z <= 7e+63) tmp = Float64(x / Float64(z * Float64(-a))); else tmp = Float64(y / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3900000.0) tmp = y / a; elseif (z <= 3.4e-75) tmp = x / t; elseif (z <= 7e+63) tmp = x / (z * -a); else tmp = y / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3900000.0], N[(y / a), $MachinePrecision], If[LessEqual[z, 3.4e-75], N[(x / t), $MachinePrecision], If[LessEqual[z, 7e+63], N[(x / N[(z * (-a)), $MachinePrecision]), $MachinePrecision], N[(y / a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3900000:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-75}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+63}:\\
\;\;\;\;\frac{x}{z \cdot \left(-a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -3.9e6 or 7.00000000000000059e63 < z Initial program 64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in z around inf 61.6%
if -3.9e6 < z < 3.40000000000000015e-75Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 59.3%
if 3.40000000000000015e-75 < z < 7.00000000000000059e63Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in t around 0 59.1%
mul-1-neg59.1%
associate-/r*58.8%
sub-neg58.8%
distribute-rgt-neg-out58.8%
+-commutative58.8%
fma-define58.8%
Simplified58.8%
Taylor expanded in y around 0 51.6%
*-commutative51.6%
Simplified51.6%
Final simplification59.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.6e+231) (not (<= z 4.8e+145))) (/ (- y (/ x z)) a) (/ (- x (* y z)) (- t (* z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e+231) || !(z <= 4.8e+145)) {
tmp = (y - (x / z)) / a;
} else {
tmp = (x - (y * z)) / (t - (z * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-2.6d+231)) .or. (.not. (z <= 4.8d+145))) then
tmp = (y - (x / z)) / a
else
tmp = (x - (y * z)) / (t - (z * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.6e+231) || !(z <= 4.8e+145)) {
tmp = (y - (x / z)) / a;
} else {
tmp = (x - (y * z)) / (t - (z * a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.6e+231) or not (z <= 4.8e+145): tmp = (y - (x / z)) / a else: tmp = (x - (y * z)) / (t - (z * a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.6e+231) || !(z <= 4.8e+145)) tmp = Float64(Float64(y - Float64(x / z)) / a); else tmp = Float64(Float64(x - Float64(y * z)) / Float64(t - Float64(z * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.6e+231) || ~((z <= 4.8e+145))) tmp = (y - (x / z)) / a; else tmp = (x - (y * z)) / (t - (z * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.6e+231], N[Not[LessEqual[z, 4.8e+145]], $MachinePrecision]], N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.6 \cdot 10^{+231} \lor \neg \left(z \leq 4.8 \cdot 10^{+145}\right):\\
\;\;\;\;\frac{y - \frac{x}{z}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - y \cdot z}{t - z \cdot a}\\
\end{array}
\end{array}
if z < -2.5999999999999999e231 or 4.79999999999999984e145 < z Initial program 38.5%
*-commutative38.5%
Simplified38.5%
Taylor expanded in z around inf 38.5%
Taylor expanded in t around 0 84.9%
mul-1-neg84.9%
distribute-neg-frac284.9%
Simplified84.9%
if -2.5999999999999999e231 < z < 4.79999999999999984e145Initial program 96.2%
Final simplification93.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -46000.0) (not (<= z 4.4e+45))) (/ y a) (/ x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -46000.0) || !(z <= 4.4e+45)) {
tmp = y / a;
} else {
tmp = x / t;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((z <= (-46000.0d0)) .or. (.not. (z <= 4.4d+45))) then
tmp = y / a
else
tmp = x / t
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -46000.0) || !(z <= 4.4e+45)) {
tmp = y / a;
} else {
tmp = x / t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -46000.0) or not (z <= 4.4e+45): tmp = y / a else: tmp = x / t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -46000.0) || !(z <= 4.4e+45)) tmp = Float64(y / a); else tmp = Float64(x / t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -46000.0) || ~((z <= 4.4e+45))) tmp = y / a; else tmp = x / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -46000.0], N[Not[LessEqual[z, 4.4e+45]], $MachinePrecision]], N[(y / a), $MachinePrecision], N[(x / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -46000 \lor \neg \left(z \leq 4.4 \cdot 10^{+45}\right):\\
\;\;\;\;\frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{t}\\
\end{array}
\end{array}
if z < -46000 or 4.4000000000000001e45 < z Initial program 65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in z around inf 60.2%
if -46000 < z < 4.4000000000000001e45Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 54.8%
Final simplification57.3%
(FPCore (x y z t a) :precision binary64 (/ x t))
double code(double x, double y, double z, double t, double a) {
return x / t;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x / t
end function
public static double code(double x, double y, double z, double t, double a) {
return x / t;
}
def code(x, y, z, t, a): return x / t
function code(x, y, z, t, a) return Float64(x / t) end
function tmp = code(x, y, z, t, a) tmp = x / t; end
code[x_, y_, z_, t_, a_] := N[(x / t), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{t}
\end{array}
Initial program 84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in z around 0 35.7%
Final simplification35.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* a z))) (t_2 (- (/ x t_1) (/ y (- (/ t z) a)))))
(if (< z -32113435955957344.0)
t_2
(if (< z 3.5139522372978296e-86) (* (- x (* y z)) (/ 1.0 t_1)) t_2))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (a * z);
double t_2 = (x / t_1) - (y / ((t / z) - a));
double tmp;
if (z < -32113435955957344.0) {
tmp = t_2;
} else if (z < 3.5139522372978296e-86) {
tmp = (x - (y * z)) * (1.0 / t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t - (a * z)
t_2 = (x / t_1) - (y / ((t / z) - a))
if (z < (-32113435955957344.0d0)) then
tmp = t_2
else if (z < 3.5139522372978296d-86) then
tmp = (x - (y * z)) * (1.0d0 / t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t - (a * z);
double t_2 = (x / t_1) - (y / ((t / z) - a));
double tmp;
if (z < -32113435955957344.0) {
tmp = t_2;
} else if (z < 3.5139522372978296e-86) {
tmp = (x - (y * z)) * (1.0 / t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (a * z) t_2 = (x / t_1) - (y / ((t / z) - a)) tmp = 0 if z < -32113435955957344.0: tmp = t_2 elif z < 3.5139522372978296e-86: tmp = (x - (y * z)) * (1.0 / t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(a * z)) t_2 = Float64(Float64(x / t_1) - Float64(y / Float64(Float64(t / z) - a))) tmp = 0.0 if (z < -32113435955957344.0) tmp = t_2; elseif (z < 3.5139522372978296e-86) tmp = Float64(Float64(x - Float64(y * z)) * Float64(1.0 / t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (a * z); t_2 = (x / t_1) - (y / ((t / z) - a)); tmp = 0.0; if (z < -32113435955957344.0) tmp = t_2; elseif (z < 3.5139522372978296e-86) tmp = (x - (y * z)) * (1.0 / t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(a * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / t$95$1), $MachinePrecision] - N[(y / N[(N[(t / z), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -32113435955957344.0], t$95$2, If[Less[z, 3.5139522372978296e-86], N[(N[(x - N[(y * z), $MachinePrecision]), $MachinePrecision] * N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - a \cdot z\\
t_2 := \frac{x}{t\_1} - \frac{y}{\frac{t}{z} - a}\\
\mathbf{if}\;z < -32113435955957344:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z < 3.5139522372978296 \cdot 10^{-86}:\\
\;\;\;\;\left(x - y \cdot z\right) \cdot \frac{1}{t\_1}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024079
(FPCore (x y z t a)
:name "Diagrams.Solve.Tridiagonal:solveTriDiagonal from diagrams-solve-0.1, A"
:precision binary64
:alt
(if (< z -32113435955957344.0) (- (/ x (- t (* a z))) (/ y (- (/ t z) a))) (if (< z 3.5139522372978296e-86) (* (- x (* y z)) (/ 1.0 (- t (* a z)))) (- (/ x (- t (* a z))) (/ y (- (/ t z) a)))))
(/ (- x (* y z)) (- t (* a z))))