
(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 12 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 (if (or (<= z -1.95e+143) (not (<= z 4.2e+124))) (/ (- y (/ x z)) a) (/ (- x (* z y)) (- t (* z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -1.95e+143) || !(z <= 4.2e+124)) {
tmp = (y - (x / z)) / a;
} else {
tmp = (x - (z * y)) / (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 <= (-1.95d+143)) .or. (.not. (z <= 4.2d+124))) then
tmp = (y - (x / z)) / a
else
tmp = (x - (z * y)) / (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 <= -1.95e+143) || !(z <= 4.2e+124)) {
tmp = (y - (x / z)) / a;
} else {
tmp = (x - (z * y)) / (t - (z * a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -1.95e+143) or not (z <= 4.2e+124): tmp = (y - (x / z)) / a else: tmp = (x - (z * y)) / (t - (z * a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -1.95e+143) || !(z <= 4.2e+124)) tmp = Float64(Float64(y - Float64(x / z)) / a); else tmp = Float64(Float64(x - Float64(z * y)) / Float64(t - Float64(z * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -1.95e+143) || ~((z <= 4.2e+124))) tmp = (y - (x / z)) / a; else tmp = (x - (z * y)) / (t - (z * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -1.95e+143], N[Not[LessEqual[z, 4.2e+124]], $MachinePrecision]], N[(N[(y - N[(x / z), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision], N[(N[(x - N[(z * y), $MachinePrecision]), $MachinePrecision] / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.95 \cdot 10^{+143} \lor \neg \left(z \leq 4.2 \cdot 10^{+124}\right):\\
\;\;\;\;\frac{y - \frac{x}{z}}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x - z \cdot y}{t - z \cdot a}\\
\end{array}
\end{array}
if z < -1.9499999999999999e143 or 4.20000000000000023e124 < z Initial program 59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in z around inf 59.7%
Taylor expanded in t around 0 89.5%
associate-*r/89.5%
mul-1-neg89.5%
Simplified89.5%
Taylor expanded in x around 0 81.8%
+-commutative81.8%
mul-1-neg81.8%
sub-neg81.8%
associate-/l/89.5%
div-sub89.5%
Simplified89.5%
if -1.9499999999999999e143 < z < 4.20000000000000023e124Initial program 97.9%
Final simplification95.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (* z (- a)))) (t_2 (* z (/ (- y) t))))
(if (<= z -9e+149)
(/ y a)
(if (<= z -2.05e+135)
(/ (/ x a) (- z))
(if (<= z -5.2e+99)
(/ y a)
(if (<= z -4.6e-98)
(/ x t)
(if (<= z -3e-114)
t_2
(if (<= z 3.1e-116)
(/ x t)
(if (<= z 1.15e-37)
t_1
(if (<= z 6e+44)
t_2
(if (<= z 1.5e+107) t_1 (/ y a))))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (z * -a);
double t_2 = z * (-y / t);
double tmp;
if (z <= -9e+149) {
tmp = y / a;
} else if (z <= -2.05e+135) {
tmp = (x / a) / -z;
} else if (z <= -5.2e+99) {
tmp = y / a;
} else if (z <= -4.6e-98) {
tmp = x / t;
} else if (z <= -3e-114) {
tmp = t_2;
} else if (z <= 3.1e-116) {
tmp = x / t;
} else if (z <= 1.15e-37) {
tmp = t_1;
} else if (z <= 6e+44) {
tmp = t_2;
} else if (z <= 1.5e+107) {
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) :: t_2
real(8) :: tmp
t_1 = x / (z * -a)
t_2 = z * (-y / t)
if (z <= (-9d+149)) then
tmp = y / a
else if (z <= (-2.05d+135)) then
tmp = (x / a) / -z
else if (z <= (-5.2d+99)) then
tmp = y / a
else if (z <= (-4.6d-98)) then
tmp = x / t
else if (z <= (-3d-114)) then
tmp = t_2
else if (z <= 3.1d-116) then
tmp = x / t
else if (z <= 1.15d-37) then
tmp = t_1
else if (z <= 6d+44) then
tmp = t_2
else if (z <= 1.5d+107) 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 / (z * -a);
double t_2 = z * (-y / t);
double tmp;
if (z <= -9e+149) {
tmp = y / a;
} else if (z <= -2.05e+135) {
tmp = (x / a) / -z;
} else if (z <= -5.2e+99) {
tmp = y / a;
} else if (z <= -4.6e-98) {
tmp = x / t;
} else if (z <= -3e-114) {
tmp = t_2;
} else if (z <= 3.1e-116) {
tmp = x / t;
} else if (z <= 1.15e-37) {
tmp = t_1;
} else if (z <= 6e+44) {
tmp = t_2;
} else if (z <= 1.5e+107) {
tmp = t_1;
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (z * -a) t_2 = z * (-y / t) tmp = 0 if z <= -9e+149: tmp = y / a elif z <= -2.05e+135: tmp = (x / a) / -z elif z <= -5.2e+99: tmp = y / a elif z <= -4.6e-98: tmp = x / t elif z <= -3e-114: tmp = t_2 elif z <= 3.1e-116: tmp = x / t elif z <= 1.15e-37: tmp = t_1 elif z <= 6e+44: tmp = t_2 elif z <= 1.5e+107: tmp = t_1 else: tmp = y / a return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(z * Float64(-a))) t_2 = Float64(z * Float64(Float64(-y) / t)) tmp = 0.0 if (z <= -9e+149) tmp = Float64(y / a); elseif (z <= -2.05e+135) tmp = Float64(Float64(x / a) / Float64(-z)); elseif (z <= -5.2e+99) tmp = Float64(y / a); elseif (z <= -4.6e-98) tmp = Float64(x / t); elseif (z <= -3e-114) tmp = t_2; elseif (z <= 3.1e-116) tmp = Float64(x / t); elseif (z <= 1.15e-37) tmp = t_1; elseif (z <= 6e+44) tmp = t_2; elseif (z <= 1.5e+107) tmp = t_1; else tmp = Float64(y / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x / (z * -a); t_2 = z * (-y / t); tmp = 0.0; if (z <= -9e+149) tmp = y / a; elseif (z <= -2.05e+135) tmp = (x / a) / -z; elseif (z <= -5.2e+99) tmp = y / a; elseif (z <= -4.6e-98) tmp = x / t; elseif (z <= -3e-114) tmp = t_2; elseif (z <= 3.1e-116) tmp = x / t; elseif (z <= 1.15e-37) tmp = t_1; elseif (z <= 6e+44) tmp = t_2; elseif (z <= 1.5e+107) 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[(z * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[((-y) / t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e+149], N[(y / a), $MachinePrecision], If[LessEqual[z, -2.05e+135], N[(N[(x / a), $MachinePrecision] / (-z)), $MachinePrecision], If[LessEqual[z, -5.2e+99], N[(y / a), $MachinePrecision], If[LessEqual[z, -4.6e-98], N[(x / t), $MachinePrecision], If[LessEqual[z, -3e-114], t$95$2, If[LessEqual[z, 3.1e-116], N[(x / t), $MachinePrecision], If[LessEqual[z, 1.15e-37], t$95$1, If[LessEqual[z, 6e+44], t$95$2, If[LessEqual[z, 1.5e+107], t$95$1, N[(y / a), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{z \cdot \left(-a\right)}\\
t_2 := z \cdot \frac{-y}{t}\\
\mathbf{if}\;z \leq -9 \cdot 10^{+149}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{+135}:\\
\;\;\;\;\frac{\frac{x}{a}}{-z}\\
\mathbf{elif}\;z \leq -5.2 \cdot 10^{+99}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -4.6 \cdot 10^{-98}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq -3 \cdot 10^{-114}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-116}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-37}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.5 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -8.99999999999999965e149 or -2.05e135 < z < -5.1999999999999999e99 or 1.50000000000000012e107 < z Initial program 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in z around inf 70.7%
if -8.99999999999999965e149 < z < -2.05e135Initial program 87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in t around 0 75.6%
mul-1-neg75.6%
associate-/r*87.4%
sub-neg87.4%
distribute-rgt-neg-out87.4%
+-commutative87.4%
fma-define87.4%
Simplified87.4%
Taylor expanded in y around 0 75.6%
associate-/r*87.4%
Simplified87.4%
if -5.1999999999999999e99 < z < -4.60000000000000001e-98 or -3.00000000000000015e-114 < z < 3.10000000000000018e-116Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 60.1%
if -4.60000000000000001e-98 < z < -3.00000000000000015e-114 or 1.15e-37 < z < 5.99999999999999974e44Initial program 95.2%
*-commutative95.2%
Simplified95.2%
Taylor expanded in x around 0 66.6%
mul-1-neg66.6%
associate-/l*60.9%
distribute-rgt-neg-in60.9%
distribute-neg-frac260.9%
cancel-sign-sub-inv60.9%
*-commutative60.9%
+-commutative60.9%
distribute-rgt-neg-out60.9%
distribute-lft-neg-in60.9%
*-commutative60.9%
fma-undefine60.9%
neg-sub060.9%
fma-undefine60.9%
distribute-rgt-neg-in60.9%
mul-1-neg60.9%
associate-*r*60.9%
neg-mul-160.9%
*-commutative60.9%
associate--r+60.9%
neg-sub060.9%
distribute-rgt-neg-out60.9%
remove-double-neg60.9%
Simplified60.9%
Taylor expanded in z around 0 51.7%
associate-*r/51.7%
mul-1-neg51.7%
Simplified51.7%
Taylor expanded in y around 0 61.9%
associate-*r/61.9%
neg-mul-161.9%
distribute-lft-neg-in61.9%
Simplified61.9%
Taylor expanded in y around 0 61.9%
mul-1-neg61.9%
associate-*r/51.7%
*-commutative51.7%
associate-*l/61.9%
associate-*r/61.9%
distribute-rgt-neg-in61.9%
distribute-neg-frac261.9%
Simplified61.9%
if 3.10000000000000018e-116 < z < 1.15e-37 or 5.99999999999999974e44 < z < 1.50000000000000012e107Initial program 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in t around 0 65.0%
mul-1-neg65.0%
associate-/r*63.5%
sub-neg63.5%
distribute-rgt-neg-out63.5%
+-commutative63.5%
fma-define63.5%
Simplified63.5%
Taylor expanded in y around 0 47.5%
Final simplification62.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* z (/ (- y) t))) (t_2 (/ (/ x z) (- a))))
(if (<= z -1.7e+150)
(/ y a)
(if (<= z -2.1e+135)
t_2
(if (<= z -4e+99)
(/ y a)
(if (<= z -8e-101)
(/ x t)
(if (<= z -3.6e-114)
t_1
(if (<= z 3.1e-116)
(/ x t)
(if (<= z 2.9e-42)
(/ x (* z (- a)))
(if (<= z 9.2e+45)
t_1
(if (<= z 1.2e+107) t_2 (/ y a))))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = z * (-y / t);
double t_2 = (x / z) / -a;
double tmp;
if (z <= -1.7e+150) {
tmp = y / a;
} else if (z <= -2.1e+135) {
tmp = t_2;
} else if (z <= -4e+99) {
tmp = y / a;
} else if (z <= -8e-101) {
tmp = x / t;
} else if (z <= -3.6e-114) {
tmp = t_1;
} else if (z <= 3.1e-116) {
tmp = x / t;
} else if (z <= 2.9e-42) {
tmp = x / (z * -a);
} else if (z <= 9.2e+45) {
tmp = t_1;
} else if (z <= 1.2e+107) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = z * (-y / t)
t_2 = (x / z) / -a
if (z <= (-1.7d+150)) then
tmp = y / a
else if (z <= (-2.1d+135)) then
tmp = t_2
else if (z <= (-4d+99)) then
tmp = y / a
else if (z <= (-8d-101)) then
tmp = x / t
else if (z <= (-3.6d-114)) then
tmp = t_1
else if (z <= 3.1d-116) then
tmp = x / t
else if (z <= 2.9d-42) then
tmp = x / (z * -a)
else if (z <= 9.2d+45) then
tmp = t_1
else if (z <= 1.2d+107) then
tmp = t_2
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 = z * (-y / t);
double t_2 = (x / z) / -a;
double tmp;
if (z <= -1.7e+150) {
tmp = y / a;
} else if (z <= -2.1e+135) {
tmp = t_2;
} else if (z <= -4e+99) {
tmp = y / a;
} else if (z <= -8e-101) {
tmp = x / t;
} else if (z <= -3.6e-114) {
tmp = t_1;
} else if (z <= 3.1e-116) {
tmp = x / t;
} else if (z <= 2.9e-42) {
tmp = x / (z * -a);
} else if (z <= 9.2e+45) {
tmp = t_1;
} else if (z <= 1.2e+107) {
tmp = t_2;
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = z * (-y / t) t_2 = (x / z) / -a tmp = 0 if z <= -1.7e+150: tmp = y / a elif z <= -2.1e+135: tmp = t_2 elif z <= -4e+99: tmp = y / a elif z <= -8e-101: tmp = x / t elif z <= -3.6e-114: tmp = t_1 elif z <= 3.1e-116: tmp = x / t elif z <= 2.9e-42: tmp = x / (z * -a) elif z <= 9.2e+45: tmp = t_1 elif z <= 1.2e+107: tmp = t_2 else: tmp = y / a return tmp
function code(x, y, z, t, a) t_1 = Float64(z * Float64(Float64(-y) / t)) t_2 = Float64(Float64(x / z) / Float64(-a)) tmp = 0.0 if (z <= -1.7e+150) tmp = Float64(y / a); elseif (z <= -2.1e+135) tmp = t_2; elseif (z <= -4e+99) tmp = Float64(y / a); elseif (z <= -8e-101) tmp = Float64(x / t); elseif (z <= -3.6e-114) tmp = t_1; elseif (z <= 3.1e-116) tmp = Float64(x / t); elseif (z <= 2.9e-42) tmp = Float64(x / Float64(z * Float64(-a))); elseif (z <= 9.2e+45) tmp = t_1; elseif (z <= 1.2e+107) tmp = t_2; else tmp = Float64(y / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = z * (-y / t); t_2 = (x / z) / -a; tmp = 0.0; if (z <= -1.7e+150) tmp = y / a; elseif (z <= -2.1e+135) tmp = t_2; elseif (z <= -4e+99) tmp = y / a; elseif (z <= -8e-101) tmp = x / t; elseif (z <= -3.6e-114) tmp = t_1; elseif (z <= 3.1e-116) tmp = x / t; elseif (z <= 2.9e-42) tmp = x / (z * -a); elseif (z <= 9.2e+45) tmp = t_1; elseif (z <= 1.2e+107) tmp = t_2; else tmp = y / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(z * N[((-y) / t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x / z), $MachinePrecision] / (-a)), $MachinePrecision]}, If[LessEqual[z, -1.7e+150], N[(y / a), $MachinePrecision], If[LessEqual[z, -2.1e+135], t$95$2, If[LessEqual[z, -4e+99], N[(y / a), $MachinePrecision], If[LessEqual[z, -8e-101], N[(x / t), $MachinePrecision], If[LessEqual[z, -3.6e-114], t$95$1, If[LessEqual[z, 3.1e-116], N[(x / t), $MachinePrecision], If[LessEqual[z, 2.9e-42], N[(x / N[(z * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.2e+45], t$95$1, If[LessEqual[z, 1.2e+107], t$95$2, N[(y / a), $MachinePrecision]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \frac{-y}{t}\\
t_2 := \frac{\frac{x}{z}}{-a}\\
\mathbf{if}\;z \leq -1.7 \cdot 10^{+150}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+135}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4 \cdot 10^{+99}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-101}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-116}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-42}:\\
\;\;\;\;\frac{x}{z \cdot \left(-a\right)}\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+107}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -1.69999999999999991e150 or -2.1000000000000001e135 < z < -3.9999999999999999e99 or 1.2e107 < z Initial program 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in z around inf 70.7%
if -1.69999999999999991e150 < z < -2.1000000000000001e135 or 9.20000000000000049e45 < z < 1.2e107Initial program 96.3%
*-commutative96.3%
Simplified96.3%
Taylor expanded in z around inf 96.3%
Taylor expanded in t around 0 73.0%
associate-*r/73.0%
mul-1-neg73.0%
Simplified73.0%
Taylor expanded in x around inf 58.7%
if -3.9999999999999999e99 < z < -8.00000000000000041e-101 or -3.60000000000000018e-114 < z < 3.10000000000000018e-116Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 60.1%
if -8.00000000000000041e-101 < z < -3.60000000000000018e-114 or 2.9000000000000003e-42 < z < 9.20000000000000049e45Initial program 95.2%
*-commutative95.2%
Simplified95.2%
Taylor expanded in x around 0 66.6%
mul-1-neg66.6%
associate-/l*60.9%
distribute-rgt-neg-in60.9%
distribute-neg-frac260.9%
cancel-sign-sub-inv60.9%
*-commutative60.9%
+-commutative60.9%
distribute-rgt-neg-out60.9%
distribute-lft-neg-in60.9%
*-commutative60.9%
fma-undefine60.9%
neg-sub060.9%
fma-undefine60.9%
distribute-rgt-neg-in60.9%
mul-1-neg60.9%
associate-*r*60.9%
neg-mul-160.9%
*-commutative60.9%
associate--r+60.9%
neg-sub060.9%
distribute-rgt-neg-out60.9%
remove-double-neg60.9%
Simplified60.9%
Taylor expanded in z around 0 51.7%
associate-*r/51.7%
mul-1-neg51.7%
Simplified51.7%
Taylor expanded in y around 0 61.9%
associate-*r/61.9%
neg-mul-161.9%
distribute-lft-neg-in61.9%
Simplified61.9%
Taylor expanded in y around 0 61.9%
mul-1-neg61.9%
associate-*r/51.7%
*-commutative51.7%
associate-*l/61.9%
associate-*r/61.9%
distribute-rgt-neg-in61.9%
distribute-neg-frac261.9%
Simplified61.9%
if 3.10000000000000018e-116 < z < 2.9000000000000003e-42Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in t around 0 62.7%
mul-1-neg62.7%
associate-/r*59.5%
sub-neg59.5%
distribute-rgt-neg-out59.5%
+-commutative59.5%
fma-define59.5%
Simplified59.5%
Taylor expanded in y around 0 47.8%
Final simplification62.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* z (- y)) t)))
(if (<= z -1.1e+150)
(/ y a)
(if (<= z -2.1e+135)
(/ (/ x z) (- a))
(if (<= z -2.9e+100)
(/ y a)
(if (<= z -7.4e-101)
(/ x t)
(if (<= z -1.06e-114)
t_1
(if (<= z 7.1e-84)
(/ x t)
(if (<= z 5.4e+72)
t_1
(if (<= z 1.42e+107) (/ x (* z (- a))) (/ y a)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z * -y) / t;
double tmp;
if (z <= -1.1e+150) {
tmp = y / a;
} else if (z <= -2.1e+135) {
tmp = (x / z) / -a;
} else if (z <= -2.9e+100) {
tmp = y / a;
} else if (z <= -7.4e-101) {
tmp = x / t;
} else if (z <= -1.06e-114) {
tmp = t_1;
} else if (z <= 7.1e-84) {
tmp = x / t;
} else if (z <= 5.4e+72) {
tmp = t_1;
} else if (z <= 1.42e+107) {
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) :: t_1
real(8) :: tmp
t_1 = (z * -y) / t
if (z <= (-1.1d+150)) then
tmp = y / a
else if (z <= (-2.1d+135)) then
tmp = (x / z) / -a
else if (z <= (-2.9d+100)) then
tmp = y / a
else if (z <= (-7.4d-101)) then
tmp = x / t
else if (z <= (-1.06d-114)) then
tmp = t_1
else if (z <= 7.1d-84) then
tmp = x / t
else if (z <= 5.4d+72) then
tmp = t_1
else if (z <= 1.42d+107) 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 t_1 = (z * -y) / t;
double tmp;
if (z <= -1.1e+150) {
tmp = y / a;
} else if (z <= -2.1e+135) {
tmp = (x / z) / -a;
} else if (z <= -2.9e+100) {
tmp = y / a;
} else if (z <= -7.4e-101) {
tmp = x / t;
} else if (z <= -1.06e-114) {
tmp = t_1;
} else if (z <= 7.1e-84) {
tmp = x / t;
} else if (z <= 5.4e+72) {
tmp = t_1;
} else if (z <= 1.42e+107) {
tmp = x / (z * -a);
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z * -y) / t tmp = 0 if z <= -1.1e+150: tmp = y / a elif z <= -2.1e+135: tmp = (x / z) / -a elif z <= -2.9e+100: tmp = y / a elif z <= -7.4e-101: tmp = x / t elif z <= -1.06e-114: tmp = t_1 elif z <= 7.1e-84: tmp = x / t elif z <= 5.4e+72: tmp = t_1 elif z <= 1.42e+107: tmp = x / (z * -a) else: tmp = y / a return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z * Float64(-y)) / t) tmp = 0.0 if (z <= -1.1e+150) tmp = Float64(y / a); elseif (z <= -2.1e+135) tmp = Float64(Float64(x / z) / Float64(-a)); elseif (z <= -2.9e+100) tmp = Float64(y / a); elseif (z <= -7.4e-101) tmp = Float64(x / t); elseif (z <= -1.06e-114) tmp = t_1; elseif (z <= 7.1e-84) tmp = Float64(x / t); elseif (z <= 5.4e+72) tmp = t_1; elseif (z <= 1.42e+107) 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) t_1 = (z * -y) / t; tmp = 0.0; if (z <= -1.1e+150) tmp = y / a; elseif (z <= -2.1e+135) tmp = (x / z) / -a; elseif (z <= -2.9e+100) tmp = y / a; elseif (z <= -7.4e-101) tmp = x / t; elseif (z <= -1.06e-114) tmp = t_1; elseif (z <= 7.1e-84) tmp = x / t; elseif (z <= 5.4e+72) tmp = t_1; elseif (z <= 1.42e+107) tmp = x / (z * -a); else tmp = y / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z * (-y)), $MachinePrecision] / t), $MachinePrecision]}, If[LessEqual[z, -1.1e+150], N[(y / a), $MachinePrecision], If[LessEqual[z, -2.1e+135], N[(N[(x / z), $MachinePrecision] / (-a)), $MachinePrecision], If[LessEqual[z, -2.9e+100], N[(y / a), $MachinePrecision], If[LessEqual[z, -7.4e-101], N[(x / t), $MachinePrecision], If[LessEqual[z, -1.06e-114], t$95$1, If[LessEqual[z, 7.1e-84], N[(x / t), $MachinePrecision], If[LessEqual[z, 5.4e+72], t$95$1, If[LessEqual[z, 1.42e+107], N[(x / N[(z * (-a)), $MachinePrecision]), $MachinePrecision], N[(y / a), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z \cdot \left(-y\right)}{t}\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+150}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{+135}:\\
\;\;\;\;\frac{\frac{x}{z}}{-a}\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{+100}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -7.4 \cdot 10^{-101}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq -1.06 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 7.1 \cdot 10^{-84}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{+72}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.42 \cdot 10^{+107}:\\
\;\;\;\;\frac{x}{z \cdot \left(-a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -1.1e150 or -2.1000000000000001e135 < z < -2.9e100 or 1.42000000000000006e107 < z Initial program 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in z around inf 70.7%
if -1.1e150 < z < -2.1000000000000001e135Initial program 87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in z around inf 87.9%
Taylor expanded in t around 0 87.6%
associate-*r/87.6%
mul-1-neg87.6%
Simplified87.6%
Taylor expanded in x around inf 87.6%
if -2.9e100 < z < -7.4000000000000001e-101 or -1.06e-114 < z < 7.0999999999999997e-84Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 58.8%
if -7.4000000000000001e-101 < z < -1.06e-114 or 7.0999999999999997e-84 < z < 5.4000000000000001e72Initial program 97.2%
*-commutative97.2%
Simplified97.2%
Taylor expanded in x around 0 65.0%
mul-1-neg65.0%
associate-/l*59.0%
distribute-rgt-neg-in59.0%
distribute-neg-frac259.0%
cancel-sign-sub-inv59.0%
*-commutative59.0%
+-commutative59.0%
distribute-rgt-neg-out59.0%
distribute-lft-neg-in59.0%
*-commutative59.0%
fma-undefine59.0%
neg-sub059.0%
fma-undefine59.0%
distribute-rgt-neg-in59.0%
mul-1-neg59.0%
associate-*r*59.0%
neg-mul-159.0%
*-commutative59.0%
associate--r+59.0%
neg-sub059.0%
distribute-rgt-neg-out59.0%
remove-double-neg59.0%
Simplified59.0%
Taylor expanded in z around 0 53.5%
associate-*r/53.5%
mul-1-neg53.5%
distribute-lft-neg-out53.5%
*-commutative53.5%
Simplified53.5%
if 5.4000000000000001e72 < z < 1.42000000000000006e107Initial program 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in t around 0 69.0%
mul-1-neg69.0%
associate-/r*69.0%
sub-neg69.0%
distribute-rgt-neg-out69.0%
+-commutative69.0%
fma-define69.0%
Simplified69.0%
Taylor expanded in y around 0 55.5%
Final simplification62.2%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ x (* z (- a)))))
(if (<= z -4.5e+149)
(/ y a)
(if (<= z -1.7e+135)
(/ (/ x a) (- z))
(if (<= z -4.5e+99)
(/ y a)
(if (<= z 2.6e-116)
(/ x t)
(if (<= z 3.4e-43)
t_1
(if (<= z 8.5e+47)
(* y (/ (- z) t))
(if (<= z 1.25e+107) t_1 (/ y a))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x / (z * -a);
double tmp;
if (z <= -4.5e+149) {
tmp = y / a;
} else if (z <= -1.7e+135) {
tmp = (x / a) / -z;
} else if (z <= -4.5e+99) {
tmp = y / a;
} else if (z <= 2.6e-116) {
tmp = x / t;
} else if (z <= 3.4e-43) {
tmp = t_1;
} else if (z <= 8.5e+47) {
tmp = y * (-z / t);
} else if (z <= 1.25e+107) {
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 / (z * -a)
if (z <= (-4.5d+149)) then
tmp = y / a
else if (z <= (-1.7d+135)) then
tmp = (x / a) / -z
else if (z <= (-4.5d+99)) then
tmp = y / a
else if (z <= 2.6d-116) then
tmp = x / t
else if (z <= 3.4d-43) then
tmp = t_1
else if (z <= 8.5d+47) then
tmp = y * (-z / t)
else if (z <= 1.25d+107) 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 / (z * -a);
double tmp;
if (z <= -4.5e+149) {
tmp = y / a;
} else if (z <= -1.7e+135) {
tmp = (x / a) / -z;
} else if (z <= -4.5e+99) {
tmp = y / a;
} else if (z <= 2.6e-116) {
tmp = x / t;
} else if (z <= 3.4e-43) {
tmp = t_1;
} else if (z <= 8.5e+47) {
tmp = y * (-z / t);
} else if (z <= 1.25e+107) {
tmp = t_1;
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x / (z * -a) tmp = 0 if z <= -4.5e+149: tmp = y / a elif z <= -1.7e+135: tmp = (x / a) / -z elif z <= -4.5e+99: tmp = y / a elif z <= 2.6e-116: tmp = x / t elif z <= 3.4e-43: tmp = t_1 elif z <= 8.5e+47: tmp = y * (-z / t) elif z <= 1.25e+107: tmp = t_1 else: tmp = y / a return tmp
function code(x, y, z, t, a) t_1 = Float64(x / Float64(z * Float64(-a))) tmp = 0.0 if (z <= -4.5e+149) tmp = Float64(y / a); elseif (z <= -1.7e+135) tmp = Float64(Float64(x / a) / Float64(-z)); elseif (z <= -4.5e+99) tmp = Float64(y / a); elseif (z <= 2.6e-116) tmp = Float64(x / t); elseif (z <= 3.4e-43) tmp = t_1; elseif (z <= 8.5e+47) tmp = Float64(y * Float64(Float64(-z) / t)); elseif (z <= 1.25e+107) tmp = t_1; else tmp = Float64(y / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x / (z * -a); tmp = 0.0; if (z <= -4.5e+149) tmp = y / a; elseif (z <= -1.7e+135) tmp = (x / a) / -z; elseif (z <= -4.5e+99) tmp = y / a; elseif (z <= 2.6e-116) tmp = x / t; elseif (z <= 3.4e-43) tmp = t_1; elseif (z <= 8.5e+47) tmp = y * (-z / t); elseif (z <= 1.25e+107) 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[(z * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.5e+149], N[(y / a), $MachinePrecision], If[LessEqual[z, -1.7e+135], N[(N[(x / a), $MachinePrecision] / (-z)), $MachinePrecision], If[LessEqual[z, -4.5e+99], N[(y / a), $MachinePrecision], If[LessEqual[z, 2.6e-116], N[(x / t), $MachinePrecision], If[LessEqual[z, 3.4e-43], t$95$1, If[LessEqual[z, 8.5e+47], N[(y * N[((-z) / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e+107], t$95$1, N[(y / a), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{x}{z \cdot \left(-a\right)}\\
\mathbf{if}\;z \leq -4.5 \cdot 10^{+149}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -1.7 \cdot 10^{+135}:\\
\;\;\;\;\frac{\frac{x}{a}}{-z}\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{+99}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-116}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+47}:\\
\;\;\;\;y \cdot \frac{-z}{t}\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -4.49999999999999982e149 or -1.70000000000000005e135 < z < -4.5e99 or 1.25e107 < z Initial program 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in z around inf 70.7%
if -4.49999999999999982e149 < z < -1.70000000000000005e135Initial program 87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in t around 0 75.6%
mul-1-neg75.6%
associate-/r*87.4%
sub-neg87.4%
distribute-rgt-neg-out87.4%
+-commutative87.4%
fma-define87.4%
Simplified87.4%
Taylor expanded in y around 0 75.6%
associate-/r*87.4%
Simplified87.4%
if -4.5e99 < z < 2.6e-116Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 58.0%
if 2.6e-116 < z < 3.4000000000000001e-43 or 8.5000000000000008e47 < z < 1.25e107Initial program 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in t around 0 65.0%
mul-1-neg65.0%
associate-/r*63.5%
sub-neg63.5%
distribute-rgt-neg-out63.5%
+-commutative63.5%
fma-define63.5%
Simplified63.5%
Taylor expanded in y around 0 47.5%
if 3.4000000000000001e-43 < z < 8.5000000000000008e47Initial program 93.2%
*-commutative93.2%
Simplified93.2%
Taylor expanded in x around 0 59.2%
mul-1-neg59.2%
associate-/l*64.5%
distribute-rgt-neg-in64.5%
distribute-neg-frac264.5%
cancel-sign-sub-inv64.5%
*-commutative64.5%
+-commutative64.5%
distribute-rgt-neg-out64.5%
distribute-lft-neg-in64.5%
*-commutative64.5%
fma-undefine64.5%
neg-sub064.5%
fma-undefine64.5%
distribute-rgt-neg-in64.5%
mul-1-neg64.5%
associate-*r*64.5%
neg-mul-164.5%
*-commutative64.5%
associate--r+64.5%
neg-sub064.5%
distribute-rgt-neg-out64.5%
remove-double-neg64.5%
Simplified64.5%
Taylor expanded in z around 0 51.1%
associate-*r/51.1%
mul-1-neg51.1%
Simplified51.1%
Final simplification60.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (/ x a) (- z))))
(if (<= z -7e+150)
(/ y a)
(if (<= z -1.8e+135)
t_1
(if (<= z -4e+99)
(/ y a)
(if (<= z 9.5e-117) (/ x t) (if (<= z 2e+110) t_1 (/ y a))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x / a) / -z;
double tmp;
if (z <= -7e+150) {
tmp = y / a;
} else if (z <= -1.8e+135) {
tmp = t_1;
} else if (z <= -4e+99) {
tmp = y / a;
} else if (z <= 9.5e-117) {
tmp = x / t;
} else if (z <= 2e+110) {
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 / a) / -z
if (z <= (-7d+150)) then
tmp = y / a
else if (z <= (-1.8d+135)) then
tmp = t_1
else if (z <= (-4d+99)) then
tmp = y / a
else if (z <= 9.5d-117) then
tmp = x / t
else if (z <= 2d+110) 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 / a) / -z;
double tmp;
if (z <= -7e+150) {
tmp = y / a;
} else if (z <= -1.8e+135) {
tmp = t_1;
} else if (z <= -4e+99) {
tmp = y / a;
} else if (z <= 9.5e-117) {
tmp = x / t;
} else if (z <= 2e+110) {
tmp = t_1;
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x / a) / -z tmp = 0 if z <= -7e+150: tmp = y / a elif z <= -1.8e+135: tmp = t_1 elif z <= -4e+99: tmp = y / a elif z <= 9.5e-117: tmp = x / t elif z <= 2e+110: tmp = t_1 else: tmp = y / a return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x / a) / Float64(-z)) tmp = 0.0 if (z <= -7e+150) tmp = Float64(y / a); elseif (z <= -1.8e+135) tmp = t_1; elseif (z <= -4e+99) tmp = Float64(y / a); elseif (z <= 9.5e-117) tmp = Float64(x / t); elseif (z <= 2e+110) tmp = t_1; else tmp = Float64(y / a); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x / a) / -z; tmp = 0.0; if (z <= -7e+150) tmp = y / a; elseif (z <= -1.8e+135) tmp = t_1; elseif (z <= -4e+99) tmp = y / a; elseif (z <= 9.5e-117) tmp = x / t; elseif (z <= 2e+110) 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 / a), $MachinePrecision] / (-z)), $MachinePrecision]}, If[LessEqual[z, -7e+150], N[(y / a), $MachinePrecision], If[LessEqual[z, -1.8e+135], t$95$1, If[LessEqual[z, -4e+99], N[(y / a), $MachinePrecision], If[LessEqual[z, 9.5e-117], N[(x / t), $MachinePrecision], If[LessEqual[z, 2e+110], t$95$1, N[(y / a), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{\frac{x}{a}}{-z}\\
\mathbf{if}\;z \leq -7 \cdot 10^{+150}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{+135}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4 \cdot 10^{+99}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -6.99999999999999968e150 or -1.7999999999999999e135 < z < -3.9999999999999999e99 or 2e110 < z Initial program 61.5%
*-commutative61.5%
Simplified61.5%
Taylor expanded in z around inf 70.7%
if -6.99999999999999968e150 < z < -1.7999999999999999e135 or 9.5000000000000004e-117 < z < 2e110Initial program 96.7%
*-commutative96.7%
Simplified96.7%
Taylor expanded in t around 0 58.3%
mul-1-neg58.3%
associate-/r*59.0%
sub-neg59.0%
distribute-rgt-neg-out59.0%
+-commutative59.0%
fma-define59.0%
Simplified59.0%
Taylor expanded in y around 0 44.1%
associate-/r*45.7%
Simplified45.7%
if -3.9999999999999999e99 < z < 9.5000000000000004e-117Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 58.0%
Final simplification58.8%
(FPCore (x y z t a) :precision binary64 (if (<= y -2.6e+95) (/ (* z (- y)) t) (if (or (<= y -3.2e+40) (not (<= y 3.9e+83))) (/ y a) (/ x (- t (* z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.6e+95) {
tmp = (z * -y) / t;
} else if ((y <= -3.2e+40) || !(y <= 3.9e+83)) {
tmp = y / a;
} else {
tmp = x / (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 (y <= (-2.6d+95)) then
tmp = (z * -y) / t
else if ((y <= (-3.2d+40)) .or. (.not. (y <= 3.9d+83))) then
tmp = y / a
else
tmp = x / (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 (y <= -2.6e+95) {
tmp = (z * -y) / t;
} else if ((y <= -3.2e+40) || !(y <= 3.9e+83)) {
tmp = y / a;
} else {
tmp = x / (t - (z * a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -2.6e+95: tmp = (z * -y) / t elif (y <= -3.2e+40) or not (y <= 3.9e+83): tmp = y / a else: tmp = x / (t - (z * a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2.6e+95) tmp = Float64(Float64(z * Float64(-y)) / t); elseif ((y <= -3.2e+40) || !(y <= 3.9e+83)) tmp = Float64(y / a); else tmp = Float64(x / Float64(t - Float64(z * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -2.6e+95) tmp = (z * -y) / t; elseif ((y <= -3.2e+40) || ~((y <= 3.9e+83))) tmp = y / a; else tmp = x / (t - (z * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2.6e+95], N[(N[(z * (-y)), $MachinePrecision] / t), $MachinePrecision], If[Or[LessEqual[y, -3.2e+40], N[Not[LessEqual[y, 3.9e+83]], $MachinePrecision]], N[(y / a), $MachinePrecision], N[(x / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.6 \cdot 10^{+95}:\\
\;\;\;\;\frac{z \cdot \left(-y\right)}{t}\\
\mathbf{elif}\;y \leq -3.2 \cdot 10^{+40} \lor \neg \left(y \leq 3.9 \cdot 10^{+83}\right):\\
\;\;\;\;\frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{t - z \cdot a}\\
\end{array}
\end{array}
if y < -2.5999999999999999e95Initial program 87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in x around 0 63.5%
mul-1-neg63.5%
associate-/l*56.5%
distribute-rgt-neg-in56.5%
distribute-neg-frac256.5%
cancel-sign-sub-inv56.5%
*-commutative56.5%
+-commutative56.5%
distribute-rgt-neg-out56.5%
distribute-lft-neg-in56.5%
*-commutative56.5%
fma-undefine56.5%
neg-sub056.5%
fma-undefine56.5%
distribute-rgt-neg-in56.5%
mul-1-neg56.5%
associate-*r*56.5%
neg-mul-156.5%
*-commutative56.5%
associate--r+56.5%
neg-sub056.5%
distribute-rgt-neg-out56.5%
remove-double-neg56.5%
Simplified56.5%
Taylor expanded in z around 0 48.7%
associate-*r/48.7%
mul-1-neg48.7%
distribute-lft-neg-out48.7%
*-commutative48.7%
Simplified48.7%
if -2.5999999999999999e95 < y < -3.19999999999999981e40 or 3.9000000000000002e83 < y Initial program 72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in z around inf 63.8%
if -3.19999999999999981e40 < y < 3.9000000000000002e83Initial program 93.9%
*-commutative93.9%
Simplified93.9%
Taylor expanded in x around inf 79.9%
*-commutative79.9%
Simplified79.9%
Final simplification71.4%
(FPCore (x y z t a)
:precision binary64
(if (<= y -2.4e+105)
(/ (- x (* z y)) t)
(if (or (<= y -1.7e+31) (not (<= y 1.25e-52)))
(/ y (- a (/ t z)))
(/ x (- t (* z a))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -2.4e+105) {
tmp = (x - (z * y)) / t;
} else if ((y <= -1.7e+31) || !(y <= 1.25e-52)) {
tmp = y / (a - (t / z));
} else {
tmp = x / (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 (y <= (-2.4d+105)) then
tmp = (x - (z * y)) / t
else if ((y <= (-1.7d+31)) .or. (.not. (y <= 1.25d-52))) then
tmp = y / (a - (t / z))
else
tmp = x / (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 (y <= -2.4e+105) {
tmp = (x - (z * y)) / t;
} else if ((y <= -1.7e+31) || !(y <= 1.25e-52)) {
tmp = y / (a - (t / z));
} else {
tmp = x / (t - (z * a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -2.4e+105: tmp = (x - (z * y)) / t elif (y <= -1.7e+31) or not (y <= 1.25e-52): tmp = y / (a - (t / z)) else: tmp = x / (t - (z * a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -2.4e+105) tmp = Float64(Float64(x - Float64(z * y)) / t); elseif ((y <= -1.7e+31) || !(y <= 1.25e-52)) tmp = Float64(y / Float64(a - Float64(t / z))); else tmp = Float64(x / Float64(t - Float64(z * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -2.4e+105) tmp = (x - (z * y)) / t; elseif ((y <= -1.7e+31) || ~((y <= 1.25e-52))) tmp = y / (a - (t / z)); else tmp = x / (t - (z * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -2.4e+105], N[(N[(x - N[(z * y), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision], If[Or[LessEqual[y, -1.7e+31], N[Not[LessEqual[y, 1.25e-52]], $MachinePrecision]], N[(y / N[(a - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.4 \cdot 10^{+105}:\\
\;\;\;\;\frac{x - z \cdot y}{t}\\
\mathbf{elif}\;y \leq -1.7 \cdot 10^{+31} \lor \neg \left(y \leq 1.25 \cdot 10^{-52}\right):\\
\;\;\;\;\frac{y}{a - \frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{t - z \cdot a}\\
\end{array}
\end{array}
if y < -2.39999999999999975e105Initial program 87.1%
*-commutative87.1%
Simplified87.1%
Taylor expanded in t around inf 71.4%
if -2.39999999999999975e105 < y < -1.6999999999999999e31 or 1.25e-52 < y Initial program 77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in x around 0 57.0%
mul-1-neg57.0%
associate-/l*62.7%
distribute-rgt-neg-in62.7%
distribute-neg-frac262.7%
cancel-sign-sub-inv62.7%
*-commutative62.7%
+-commutative62.7%
distribute-rgt-neg-out62.7%
distribute-lft-neg-in62.7%
*-commutative62.7%
fma-undefine62.8%
neg-sub062.8%
fma-undefine62.7%
distribute-rgt-neg-in62.7%
mul-1-neg62.7%
associate-*r*62.7%
neg-mul-162.7%
*-commutative62.7%
associate--r+62.7%
neg-sub062.7%
distribute-rgt-neg-out62.7%
remove-double-neg62.7%
Simplified62.7%
Taylor expanded in z around inf 61.6%
mul-1-neg61.6%
unsub-neg61.6%
Simplified61.6%
Taylor expanded in y around 0 75.6%
if -1.6999999999999999e31 < y < 1.25e-52Initial program 95.0%
*-commutative95.0%
Simplified95.0%
Taylor expanded in x around inf 85.2%
*-commutative85.2%
Simplified85.2%
Final simplification80.0%
(FPCore (x y z t a)
:precision binary64
(if (<= z -4.4e+99)
(/ y a)
(if (<= z 9.5e-117)
(/ x t)
(if (<= z 9.8e+106) (/ x (* z (- a))) (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -4.4e+99) {
tmp = y / a;
} else if (z <= 9.5e-117) {
tmp = x / t;
} else if (z <= 9.8e+106) {
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 <= (-4.4d+99)) then
tmp = y / a
else if (z <= 9.5d-117) then
tmp = x / t
else if (z <= 9.8d+106) 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 <= -4.4e+99) {
tmp = y / a;
} else if (z <= 9.5e-117) {
tmp = x / t;
} else if (z <= 9.8e+106) {
tmp = x / (z * -a);
} else {
tmp = y / a;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -4.4e+99: tmp = y / a elif z <= 9.5e-117: tmp = x / t elif z <= 9.8e+106: tmp = x / (z * -a) else: tmp = y / a return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -4.4e+99) tmp = Float64(y / a); elseif (z <= 9.5e-117) tmp = Float64(x / t); elseif (z <= 9.8e+106) 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 <= -4.4e+99) tmp = y / a; elseif (z <= 9.5e-117) tmp = x / t; elseif (z <= 9.8e+106) tmp = x / (z * -a); else tmp = y / a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -4.4e+99], N[(y / a), $MachinePrecision], If[LessEqual[z, 9.5e-117], N[(x / t), $MachinePrecision], If[LessEqual[z, 9.8e+106], N[(x / N[(z * (-a)), $MachinePrecision]), $MachinePrecision], N[(y / a), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.4 \cdot 10^{+99}:\\
\;\;\;\;\frac{y}{a}\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-117}:\\
\;\;\;\;\frac{x}{t}\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{+106}:\\
\;\;\;\;\frac{x}{z \cdot \left(-a\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{a}\\
\end{array}
\end{array}
if z < -4.39999999999999956e99 or 9.79999999999999996e106 < z Initial program 64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in z around inf 66.4%
if -4.39999999999999956e99 < z < 9.5000000000000004e-117Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 58.0%
if 9.5000000000000004e-117 < z < 9.79999999999999996e106Initial program 98.0%
*-commutative98.0%
Simplified98.0%
Taylor expanded in t around 0 55.6%
mul-1-neg55.6%
associate-/r*54.6%
sub-neg54.6%
distribute-rgt-neg-out54.6%
+-commutative54.6%
fma-define54.6%
Simplified54.6%
Taylor expanded in y around 0 39.2%
Final simplification56.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -2.3e+31) (not (<= y 2.45e-51))) (/ y (- a (/ t z))) (/ x (- t (* z a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -2.3e+31) || !(y <= 2.45e-51)) {
tmp = y / (a - (t / z));
} else {
tmp = x / (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 ((y <= (-2.3d+31)) .or. (.not. (y <= 2.45d-51))) then
tmp = y / (a - (t / z))
else
tmp = x / (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 ((y <= -2.3e+31) || !(y <= 2.45e-51)) {
tmp = y / (a - (t / z));
} else {
tmp = x / (t - (z * a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -2.3e+31) or not (y <= 2.45e-51): tmp = y / (a - (t / z)) else: tmp = x / (t - (z * a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -2.3e+31) || !(y <= 2.45e-51)) tmp = Float64(y / Float64(a - Float64(t / z))); else tmp = Float64(x / Float64(t - Float64(z * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -2.3e+31) || ~((y <= 2.45e-51))) tmp = y / (a - (t / z)); else tmp = x / (t - (z * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -2.3e+31], N[Not[LessEqual[y, 2.45e-51]], $MachinePrecision]], N[(y / N[(a - N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x / N[(t - N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.3 \cdot 10^{+31} \lor \neg \left(y \leq 2.45 \cdot 10^{-51}\right):\\
\;\;\;\;\frac{y}{a - \frac{t}{z}}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{t - z \cdot a}\\
\end{array}
\end{array}
if y < -2.3e31 or 2.44999999999999987e-51 < y Initial program 80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in x around 0 58.5%
mul-1-neg58.5%
associate-/l*60.1%
distribute-rgt-neg-in60.1%
distribute-neg-frac260.1%
cancel-sign-sub-inv60.1%
*-commutative60.1%
+-commutative60.1%
distribute-rgt-neg-out60.1%
distribute-lft-neg-in60.1%
*-commutative60.1%
fma-undefine60.1%
neg-sub060.1%
fma-undefine60.1%
distribute-rgt-neg-in60.1%
mul-1-neg60.1%
associate-*r*60.1%
neg-mul-160.1%
*-commutative60.1%
associate--r+60.1%
neg-sub060.1%
distribute-rgt-neg-out60.1%
remove-double-neg60.1%
Simplified60.1%
Taylor expanded in z around inf 59.3%
mul-1-neg59.3%
unsub-neg59.3%
Simplified59.3%
Taylor expanded in y around 0 70.6%
if -2.3e31 < y < 2.44999999999999987e-51Initial program 95.0%
*-commutative95.0%
Simplified95.0%
Taylor expanded in x around inf 85.2%
*-commutative85.2%
Simplified85.2%
Final simplification78.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4e+99) (not (<= z 1.35e-6))) (/ y a) (/ x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4e+99) || !(z <= 1.35e-6)) {
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 <= (-4d+99)) .or. (.not. (z <= 1.35d-6))) 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 <= -4e+99) || !(z <= 1.35e-6)) {
tmp = y / a;
} else {
tmp = x / t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4e+99) or not (z <= 1.35e-6): tmp = y / a else: tmp = x / t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4e+99) || !(z <= 1.35e-6)) 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 <= -4e+99) || ~((z <= 1.35e-6))) tmp = y / a; else tmp = x / t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4e+99], N[Not[LessEqual[z, 1.35e-6]], $MachinePrecision]], N[(y / a), $MachinePrecision], N[(x / t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+99} \lor \neg \left(z \leq 1.35 \cdot 10^{-6}\right):\\
\;\;\;\;\frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;\frac{x}{t}\\
\end{array}
\end{array}
if z < -3.9999999999999999e99 or 1.34999999999999999e-6 < z Initial program 72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in z around inf 57.2%
if -3.9999999999999999e99 < z < 1.34999999999999999e-6Initial program 99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in z around 0 53.4%
Final simplification55.0%
(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 88.2%
*-commutative88.2%
Simplified88.2%
Taylor expanded in z around 0 38.0%
Final simplification38.0%
(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 2024067
(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))))