
(FPCore (x y z t a) :precision binary64 (- (+ x y) (/ (* (- z t) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 + y) - (((z - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\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) y) (- a t))))
double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - 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 + y) - (((z - t) * y) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return (x + y) - (((z - t) * y) / (a - t));
}
def code(x, y, z, t, a): return (x + y) - (((z - t) * y) / (a - t))
function code(x, y, z, t, a) return Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = (x + y) - (((z - t) * y) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.1e+97)
(- x (* y (/ (- a z) t)))
(if (<= t 3e+102)
(+ x (+ y (/ (- t z) (/ (- a t) y))))
(- x (/ y (/ t (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.1e+97) {
tmp = x - (y * ((a - z) / t));
} else if (t <= 3e+102) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x - (y / (t / (a - z)));
}
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 (t <= (-1.1d+97)) then
tmp = x - (y * ((a - z) / t))
else if (t <= 3d+102) then
tmp = x + (y + ((t - z) / ((a - t) / y)))
else
tmp = x - (y / (t / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.1e+97) {
tmp = x - (y * ((a - z) / t));
} else if (t <= 3e+102) {
tmp = x + (y + ((t - z) / ((a - t) / y)));
} else {
tmp = x - (y / (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.1e+97: tmp = x - (y * ((a - z) / t)) elif t <= 3e+102: tmp = x + (y + ((t - z) / ((a - t) / y))) else: tmp = x - (y / (t / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.1e+97) tmp = Float64(x - Float64(y * Float64(Float64(a - z) / t))); elseif (t <= 3e+102) tmp = Float64(x + Float64(y + Float64(Float64(t - z) / Float64(Float64(a - t) / y)))); else tmp = Float64(x - Float64(y / Float64(t / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.1e+97) tmp = x - (y * ((a - z) / t)); elseif (t <= 3e+102) tmp = x + (y + ((t - z) / ((a - t) / y))); else tmp = x - (y / (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.1e+97], N[(x - N[(y * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+102], N[(x + N[(y + N[(N[(t - z), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.1 \cdot 10^{+97}:\\
\;\;\;\;x - y \cdot \frac{a - z}{t}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+102}:\\
\;\;\;\;x + \left(y + \frac{t - z}{\frac{a - t}{y}}\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\
\end{array}
\end{array}
if t < -1.1e97Initial program 51.0%
associate--l+57.6%
associate-/l*73.3%
Simplified73.3%
Taylor expanded in y around 0 91.2%
Taylor expanded in t around inf 94.9%
associate-*r/94.9%
mul-1-neg94.9%
sub-neg94.9%
sub-neg94.9%
mul-1-neg94.9%
+-commutative94.9%
distribute-lft-in94.9%
neg-mul-194.9%
mul-1-neg94.9%
remove-double-neg94.9%
neg-mul-194.9%
Simplified94.9%
if -1.1e97 < t < 2.9999999999999998e102Initial program 91.2%
associate--l+91.8%
associate-/l*94.6%
Simplified94.6%
if 2.9999999999999998e102 < t Initial program 66.7%
associate--l+69.0%
associate-/l*77.0%
Simplified77.0%
Taylor expanded in y around 0 88.9%
Taylor expanded in t around inf 82.0%
mul-1-neg82.0%
unsub-neg82.0%
associate-/l*93.1%
mul-1-neg93.1%
sub-neg93.1%
Simplified93.1%
Final simplification94.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (- 1.0 (/ z a))))) (t_2 (- x (/ y (/ t (- a z))))))
(if (<= t -9e+37)
t_2
(if (<= t -5.2e-7)
t_1
(if (<= t -2.5e-115)
(+ x (/ (* y z) t))
(if (<= t 2.1e+28) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (1.0 - (z / a)));
double t_2 = x - (y / (t / (a - z)));
double tmp;
if (t <= -9e+37) {
tmp = t_2;
} else if (t <= -5.2e-7) {
tmp = t_1;
} else if (t <= -2.5e-115) {
tmp = x + ((y * z) / t);
} else if (t <= 2.1e+28) {
tmp = 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 = x + (y * (1.0d0 - (z / a)))
t_2 = x - (y / (t / (a - z)))
if (t <= (-9d+37)) then
tmp = t_2
else if (t <= (-5.2d-7)) then
tmp = t_1
else if (t <= (-2.5d-115)) then
tmp = x + ((y * z) / t)
else if (t <= 2.1d+28) then
tmp = 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 = x + (y * (1.0 - (z / a)));
double t_2 = x - (y / (t / (a - z)));
double tmp;
if (t <= -9e+37) {
tmp = t_2;
} else if (t <= -5.2e-7) {
tmp = t_1;
} else if (t <= -2.5e-115) {
tmp = x + ((y * z) / t);
} else if (t <= 2.1e+28) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (1.0 - (z / a))) t_2 = x - (y / (t / (a - z))) tmp = 0 if t <= -9e+37: tmp = t_2 elif t <= -5.2e-7: tmp = t_1 elif t <= -2.5e-115: tmp = x + ((y * z) / t) elif t <= 2.1e+28: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(1.0 - Float64(z / a)))) t_2 = Float64(x - Float64(y / Float64(t / Float64(a - z)))) tmp = 0.0 if (t <= -9e+37) tmp = t_2; elseif (t <= -5.2e-7) tmp = t_1; elseif (t <= -2.5e-115) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (t <= 2.1e+28) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (1.0 - (z / a))); t_2 = x - (y / (t / (a - z))); tmp = 0.0; if (t <= -9e+37) tmp = t_2; elseif (t <= -5.2e-7) tmp = t_1; elseif (t <= -2.5e-115) tmp = x + ((y * z) / t); elseif (t <= 2.1e+28) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -9e+37], t$95$2, If[LessEqual[t, -5.2e-7], t$95$1, If[LessEqual[t, -2.5e-115], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+28], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := x - \frac{y}{\frac{t}{a - z}}\\
\mathbf{if}\;t \leq -9 \cdot 10^{+37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-115}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+28}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -8.99999999999999923e37 or 2.09999999999999989e28 < t Initial program 65.9%
associate--l+69.6%
associate-/l*79.9%
Simplified79.9%
Taylor expanded in y around 0 92.4%
Taylor expanded in t around inf 78.1%
mul-1-neg78.1%
unsub-neg78.1%
associate-/l*90.9%
mul-1-neg90.9%
sub-neg90.9%
Simplified90.9%
if -8.99999999999999923e37 < t < -5.19999999999999998e-7 or -2.5000000000000001e-115 < t < 2.09999999999999989e28Initial program 90.6%
associate--l+91.5%
associate-/l*93.2%
Simplified93.2%
Taylor expanded in y around 0 94.1%
Taylor expanded in t around 0 80.7%
+-commutative80.7%
Simplified80.7%
if -5.19999999999999998e-7 < t < -2.5000000000000001e-115Initial program 91.4%
associate--l+91.4%
associate-/l*98.4%
Simplified98.4%
Taylor expanded in y around 0 95.8%
Taylor expanded in a around 0 83.8%
Final simplification86.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ x y) (/ (* y z) a))) (t_2 (- x (/ y (/ t (- a z))))))
(if (<= t -2.9e+46)
t_2
(if (<= t -1.65e-7)
t_1
(if (<= t -6.4e-115)
(+ x (/ (* y z) t))
(if (<= t 3.8e+22) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) - ((y * z) / a);
double t_2 = x - (y / (t / (a - z)));
double tmp;
if (t <= -2.9e+46) {
tmp = t_2;
} else if (t <= -1.65e-7) {
tmp = t_1;
} else if (t <= -6.4e-115) {
tmp = x + ((y * z) / t);
} else if (t <= 3.8e+22) {
tmp = 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 = (x + y) - ((y * z) / a)
t_2 = x - (y / (t / (a - z)))
if (t <= (-2.9d+46)) then
tmp = t_2
else if (t <= (-1.65d-7)) then
tmp = t_1
else if (t <= (-6.4d-115)) then
tmp = x + ((y * z) / t)
else if (t <= 3.8d+22) then
tmp = 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 = (x + y) - ((y * z) / a);
double t_2 = x - (y / (t / (a - z)));
double tmp;
if (t <= -2.9e+46) {
tmp = t_2;
} else if (t <= -1.65e-7) {
tmp = t_1;
} else if (t <= -6.4e-115) {
tmp = x + ((y * z) / t);
} else if (t <= 3.8e+22) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) - ((y * z) / a) t_2 = x - (y / (t / (a - z))) tmp = 0 if t <= -2.9e+46: tmp = t_2 elif t <= -1.65e-7: tmp = t_1 elif t <= -6.4e-115: tmp = x + ((y * z) / t) elif t <= 3.8e+22: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) - Float64(Float64(y * z) / a)) t_2 = Float64(x - Float64(y / Float64(t / Float64(a - z)))) tmp = 0.0 if (t <= -2.9e+46) tmp = t_2; elseif (t <= -1.65e-7) tmp = t_1; elseif (t <= -6.4e-115) tmp = Float64(x + Float64(Float64(y * z) / t)); elseif (t <= 3.8e+22) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) - ((y * z) / a); t_2 = x - (y / (t / (a - z))); tmp = 0.0; if (t <= -2.9e+46) tmp = t_2; elseif (t <= -1.65e-7) tmp = t_1; elseif (t <= -6.4e-115) tmp = x + ((y * z) / t); elseif (t <= 3.8e+22) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.9e+46], t$95$2, If[LessEqual[t, -1.65e-7], t$95$1, If[LessEqual[t, -6.4e-115], N[(x + N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.8e+22], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) - \frac{y \cdot z}{a}\\
t_2 := x - \frac{y}{\frac{t}{a - z}}\\
\mathbf{if}\;t \leq -2.9 \cdot 10^{+46}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq -1.65 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-115}:\\
\;\;\;\;x + \frac{y \cdot z}{t}\\
\mathbf{elif}\;t \leq 3.8 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if t < -2.9000000000000002e46 or 3.8000000000000004e22 < t Initial program 65.4%
associate--l+69.1%
associate-/l*80.3%
Simplified80.3%
Taylor expanded in y around 0 92.3%
Taylor expanded in t around inf 78.6%
mul-1-neg78.6%
unsub-neg78.6%
associate-/l*91.5%
mul-1-neg91.5%
sub-neg91.5%
Simplified91.5%
if -2.9000000000000002e46 < t < -1.6500000000000001e-7 or -6.4e-115 < t < 3.8000000000000004e22Initial program 90.8%
associate--l+91.8%
associate-/l*92.5%
Simplified92.5%
Taylor expanded in t around 0 81.4%
if -1.6500000000000001e-7 < t < -6.4e-115Initial program 91.0%
associate--l+91.0%
associate-/l*98.3%
Simplified98.3%
Taylor expanded in y around 0 95.6%
Taylor expanded in a around 0 83.1%
Final simplification86.5%
(FPCore (x y z t a) :precision binary64 (+ x (* y (- (+ (/ t (- a t)) 1.0) (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
return x + (y * (((t / (a - t)) + 1.0) - (z / (a - 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 + (y * (((t / (a - t)) + 1.0d0) - (z / (a - t))))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (y * (((t / (a - t)) + 1.0) - (z / (a - t))));
}
def code(x, y, z, t, a): return x + (y * (((t / (a - t)) + 1.0) - (z / (a - t))))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(Float64(t / Float64(a - t)) + 1.0) - Float64(z / Float64(a - t))))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * (((t / (a - t)) + 1.0) - (z / (a - t)))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(N[(t / N[(a - t), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision] - N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot \left(\left(\frac{t}{a - t} + 1\right) - \frac{z}{a - t}\right)
\end{array}
Initial program 78.4%
associate--l+80.6%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in y around 0 93.4%
Final simplification93.4%
(FPCore (x y z t a)
:precision binary64
(if (<= t -1.9e+95)
(- x (* y (/ (- a z) t)))
(if (<= t 1.5e+101)
(+ x (- y (/ y (/ (- a t) z))))
(- x (/ y (/ t (- a z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e+95) {
tmp = x - (y * ((a - z) / t));
} else if (t <= 1.5e+101) {
tmp = x + (y - (y / ((a - t) / z)));
} else {
tmp = x - (y / (t / (a - z)));
}
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 (t <= (-1.9d+95)) then
tmp = x - (y * ((a - z) / t))
else if (t <= 1.5d+101) then
tmp = x + (y - (y / ((a - t) / z)))
else
tmp = x - (y / (t / (a - z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -1.9e+95) {
tmp = x - (y * ((a - z) / t));
} else if (t <= 1.5e+101) {
tmp = x + (y - (y / ((a - t) / z)));
} else {
tmp = x - (y / (t / (a - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -1.9e+95: tmp = x - (y * ((a - z) / t)) elif t <= 1.5e+101: tmp = x + (y - (y / ((a - t) / z))) else: tmp = x - (y / (t / (a - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -1.9e+95) tmp = Float64(x - Float64(y * Float64(Float64(a - z) / t))); elseif (t <= 1.5e+101) tmp = Float64(x + Float64(y - Float64(y / Float64(Float64(a - t) / z)))); else tmp = Float64(x - Float64(y / Float64(t / Float64(a - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -1.9e+95) tmp = x - (y * ((a - z) / t)); elseif (t <= 1.5e+101) tmp = x + (y - (y / ((a - t) / z))); else tmp = x - (y / (t / (a - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -1.9e+95], N[(x - N[(y * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.5e+101], N[(x + N[(y - N[(y / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y / N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.9 \cdot 10^{+95}:\\
\;\;\;\;x - y \cdot \frac{a - z}{t}\\
\mathbf{elif}\;t \leq 1.5 \cdot 10^{+101}:\\
\;\;\;\;x + \left(y - \frac{y}{\frac{a - t}{z}}\right)\\
\mathbf{else}:\\
\;\;\;\;x - \frac{y}{\frac{t}{a - z}}\\
\end{array}
\end{array}
if t < -1.9e95Initial program 51.0%
associate--l+57.6%
associate-/l*73.3%
Simplified73.3%
Taylor expanded in y around 0 91.2%
Taylor expanded in t around inf 94.9%
associate-*r/94.9%
mul-1-neg94.9%
sub-neg94.9%
sub-neg94.9%
mul-1-neg94.9%
+-commutative94.9%
distribute-lft-in94.9%
neg-mul-194.9%
mul-1-neg94.9%
remove-double-neg94.9%
neg-mul-194.9%
Simplified94.9%
if -1.9e95 < t < 1.49999999999999997e101Initial program 91.2%
associate--l+91.8%
associate-/l*94.6%
Simplified94.6%
Taylor expanded in z around inf 91.7%
associate-/l*93.7%
Simplified93.7%
if 1.49999999999999997e101 < t Initial program 66.7%
associate--l+69.0%
associate-/l*77.0%
Simplified77.0%
Taylor expanded in y around 0 88.9%
Taylor expanded in t around inf 82.0%
mul-1-neg82.0%
unsub-neg82.0%
associate-/l*93.1%
mul-1-neg93.1%
sub-neg93.1%
Simplified93.1%
Final simplification93.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.8e-35) (not (<= a 9.5e-58))) (+ x (* y (- 1.0 (/ z a)))) (+ x (/ y (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.8e-35) || !(a <= 9.5e-58)) {
tmp = x + (y * (1.0 - (z / a)));
} else {
tmp = x + (y / (t / z));
}
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 ((a <= (-4.8d-35)) .or. (.not. (a <= 9.5d-58))) then
tmp = x + (y * (1.0d0 - (z / a)))
else
tmp = x + (y / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.8e-35) || !(a <= 9.5e-58)) {
tmp = x + (y * (1.0 - (z / a)));
} else {
tmp = x + (y / (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.8e-35) or not (a <= 9.5e-58): tmp = x + (y * (1.0 - (z / a))) else: tmp = x + (y / (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.8e-35) || !(a <= 9.5e-58)) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(z / a)))); else tmp = Float64(x + Float64(y / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.8e-35) || ~((a <= 9.5e-58))) tmp = x + (y * (1.0 - (z / a))); else tmp = x + (y / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.8e-35], N[Not[LessEqual[a, 9.5e-58]], $MachinePrecision]], N[(x + N[(y * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{-35} \lor \neg \left(a \leq 9.5 \cdot 10^{-58}\right):\\
\;\;\;\;x + y \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\end{array}
\end{array}
if a < -4.8000000000000003e-35 or 9.4999999999999994e-58 < a Initial program 80.0%
associate--l+81.3%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in y around 0 92.1%
Taylor expanded in t around 0 80.7%
+-commutative80.7%
Simplified80.7%
if -4.8000000000000003e-35 < a < 9.4999999999999994e-58Initial program 76.6%
associate--l+79.8%
associate-/l*83.5%
Simplified83.5%
Taylor expanded in y around 0 95.0%
Taylor expanded in a around 0 78.6%
+-commutative78.6%
associate-/l*85.2%
Simplified85.2%
Final simplification82.8%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -6.5e+101) (not (<= a 1.12e+129))) (+ x (* y (- 1.0 (/ z a)))) (- x (* y (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.5e+101) || !(a <= 1.12e+129)) {
tmp = x + (y * (1.0 - (z / a)));
} else {
tmp = x - (y * (z / (a - 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 ((a <= (-6.5d+101)) .or. (.not. (a <= 1.12d+129))) then
tmp = x + (y * (1.0d0 - (z / a)))
else
tmp = x - (y * (z / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -6.5e+101) || !(a <= 1.12e+129)) {
tmp = x + (y * (1.0 - (z / a)));
} else {
tmp = x - (y * (z / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -6.5e+101) or not (a <= 1.12e+129): tmp = x + (y * (1.0 - (z / a))) else: tmp = x - (y * (z / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -6.5e+101) || !(a <= 1.12e+129)) tmp = Float64(x + Float64(y * Float64(1.0 - Float64(z / a)))); else tmp = Float64(x - Float64(y * Float64(z / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -6.5e+101) || ~((a <= 1.12e+129))) tmp = x + (y * (1.0 - (z / a))); else tmp = x - (y * (z / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -6.5e+101], N[Not[LessEqual[a, 1.12e+129]], $MachinePrecision]], N[(x + N[(y * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.5 \cdot 10^{+101} \lor \neg \left(a \leq 1.12 \cdot 10^{+129}\right):\\
\;\;\;\;x + y \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if a < -6.50000000000000016e101 or 1.11999999999999993e129 < a Initial program 80.6%
associate--l+80.6%
associate-/l*91.0%
Simplified91.0%
Taylor expanded in y around 0 92.7%
Taylor expanded in t around 0 91.9%
+-commutative91.9%
Simplified91.9%
if -6.50000000000000016e101 < a < 1.11999999999999993e129Initial program 77.5%
associate--l+80.7%
associate-/l*85.4%
Simplified85.4%
Taylor expanded in y around 0 93.8%
Taylor expanded in z around inf 88.3%
neg-mul-188.3%
distribute-neg-frac88.3%
Simplified88.3%
Final simplification89.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.8e+93) (not (<= a 1.12e+129))) (+ x y) (+ x (* y (/ z t)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.8e+93) || !(a <= 1.12e+129)) {
tmp = x + y;
} 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 ((a <= (-2.8d+93)) .or. (.not. (a <= 1.12d+129))) then
tmp = x + y
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 ((a <= -2.8e+93) || !(a <= 1.12e+129)) {
tmp = x + y;
} else {
tmp = x + (y * (z / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.8e+93) or not (a <= 1.12e+129): tmp = x + y else: tmp = x + (y * (z / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.8e+93) || !(a <= 1.12e+129)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y * Float64(z / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.8e+93) || ~((a <= 1.12e+129))) tmp = x + y; else tmp = x + (y * (z / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.8e+93], N[Not[LessEqual[a, 1.12e+129]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.8 \cdot 10^{+93} \lor \neg \left(a \leq 1.12 \cdot 10^{+129}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{z}{t}\\
\end{array}
\end{array}
if a < -2.79999999999999989e93 or 1.11999999999999993e129 < a Initial program 81.3%
associate--l+81.3%
associate-/l*91.3%
Simplified91.3%
Taylor expanded in a around inf 84.9%
+-commutative84.9%
Simplified84.9%
if -2.79999999999999989e93 < a < 1.11999999999999993e129Initial program 77.1%
associate--l+80.3%
associate-/l*85.1%
Simplified85.1%
Taylor expanded in y around 0 93.7%
Taylor expanded in a around 0 76.9%
Final simplification79.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.6e+93) (not (<= a 1.12e+129))) (+ x y) (+ x (/ y (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.6e+93) || !(a <= 1.12e+129)) {
tmp = x + y;
} else {
tmp = x + (y / (t / z));
}
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 ((a <= (-3.6d+93)) .or. (.not. (a <= 1.12d+129))) then
tmp = x + y
else
tmp = x + (y / (t / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.6e+93) || !(a <= 1.12e+129)) {
tmp = x + y;
} else {
tmp = x + (y / (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.6e+93) or not (a <= 1.12e+129): tmp = x + y else: tmp = x + (y / (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.6e+93) || !(a <= 1.12e+129)) tmp = Float64(x + y); else tmp = Float64(x + Float64(y / Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.6e+93) || ~((a <= 1.12e+129))) tmp = x + y; else tmp = x + (y / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.6e+93], N[Not[LessEqual[a, 1.12e+129]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.6 \cdot 10^{+93} \lor \neg \left(a \leq 1.12 \cdot 10^{+129}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\end{array}
\end{array}
if a < -3.5999999999999999e93 or 1.11999999999999993e129 < a Initial program 81.3%
associate--l+81.3%
associate-/l*91.3%
Simplified91.3%
Taylor expanded in a around inf 84.9%
+-commutative84.9%
Simplified84.9%
if -3.5999999999999999e93 < a < 1.11999999999999993e129Initial program 77.1%
associate--l+80.3%
associate-/l*85.1%
Simplified85.1%
Taylor expanded in y around 0 93.7%
Taylor expanded in a around 0 71.1%
+-commutative71.1%
associate-/l*77.2%
Simplified77.2%
Final simplification79.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.3e-258) (not (<= a 2.4e-210))) (+ x y) (* z (/ y t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.3e-258) || !(a <= 2.4e-210)) {
tmp = x + y;
} else {
tmp = z * (y / 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 ((a <= (-3.3d-258)) .or. (.not. (a <= 2.4d-210))) then
tmp = x + y
else
tmp = z * (y / t)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.3e-258) || !(a <= 2.4e-210)) {
tmp = x + y;
} else {
tmp = z * (y / t);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.3e-258) or not (a <= 2.4e-210): tmp = x + y else: tmp = z * (y / t) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.3e-258) || !(a <= 2.4e-210)) tmp = Float64(x + y); else tmp = Float64(z * Float64(y / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.3e-258) || ~((a <= 2.4e-210))) tmp = x + y; else tmp = z * (y / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.3e-258], N[Not[LessEqual[a, 2.4e-210]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(z * N[(y / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.3 \cdot 10^{-258} \lor \neg \left(a \leq 2.4 \cdot 10^{-210}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;z \cdot \frac{y}{t}\\
\end{array}
\end{array}
if a < -3.3e-258 or 2.40000000000000004e-210 < a Initial program 79.7%
associate--l+81.9%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in a around inf 66.2%
+-commutative66.2%
Simplified66.2%
if -3.3e-258 < a < 2.40000000000000004e-210Initial program 71.7%
associate--l+74.1%
associate-/l*77.9%
Simplified77.9%
Taylor expanded in z around inf 71.1%
associate-/l*77.8%
Simplified77.8%
Taylor expanded in z around inf 57.8%
associate-*l/61.1%
associate-*r*61.1%
neg-mul-161.1%
*-commutative61.1%
distribute-neg-frac61.1%
Simplified61.1%
Taylor expanded in a around 0 54.8%
Final simplification64.3%
(FPCore (x y z t a) :precision binary64 (if (<= t -9.4e+216) x (+ x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.4e+216) {
tmp = x;
} else {
tmp = x + y;
}
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 (t <= (-9.4d+216)) then
tmp = x
else
tmp = x + y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -9.4e+216) {
tmp = x;
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -9.4e+216: tmp = x else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -9.4e+216) tmp = x; else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -9.4e+216) tmp = x; else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -9.4e+216], x, N[(x + y), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.4 \cdot 10^{+216}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if t < -9.4000000000000004e216Initial program 35.4%
associate--l+48.5%
associate-/l*54.4%
Simplified54.4%
Taylor expanded in x around inf 62.0%
if -9.4000000000000004e216 < t Initial program 82.3%
associate--l+83.5%
associate-/l*90.0%
Simplified90.0%
Taylor expanded in a around inf 61.6%
+-commutative61.6%
Simplified61.6%
Final simplification61.6%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 78.4%
associate--l+80.6%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in x around inf 50.7%
Final simplification50.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)))
(t_2 (- (+ x y) (/ (* (- z t) y) (- a t)))))
(if (< t_2 -1.3664970889390727e-7)
t_1
(if (< t_2 1.4754293444577233e-239)
(/ (- (* y (- a z)) (* x t)) (- a t))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - 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) :: t_2
real(8) :: tmp
t_1 = (y + x) - (((z - t) * (1.0d0 / (a - t))) * y)
t_2 = (x + y) - (((z - t) * y) / (a - t))
if (t_2 < (-1.3664970889390727d-7)) then
tmp = t_1
else if (t_2 < 1.4754293444577233d-239) then
tmp = ((y * (a - z)) - (x * t)) / (a - 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 - t) * (1.0 / (a - t))) * y);
double t_2 = (x + y) - (((z - t) * y) / (a - t));
double tmp;
if (t_2 < -1.3664970889390727e-7) {
tmp = t_1;
} else if (t_2 < 1.4754293444577233e-239) {
tmp = ((y * (a - z)) - (x * t)) / (a - t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y) t_2 = (x + y) - (((z - t) * y) / (a - t)) tmp = 0 if t_2 < -1.3664970889390727e-7: tmp = t_1 elif t_2 < 1.4754293444577233e-239: tmp = ((y * (a - z)) - (x * t)) / (a - t) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y + x) - Float64(Float64(Float64(z - t) * Float64(1.0 / Float64(a - t))) * y)) t_2 = Float64(Float64(x + y) - Float64(Float64(Float64(z - t) * y) / Float64(a - t))) tmp = 0.0 if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = Float64(Float64(Float64(y * Float64(a - z)) - Float64(x * t)) / Float64(a - t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y + x) - (((z - t) * (1.0 / (a - t))) * y); t_2 = (x + y) - (((z - t) * y) / (a - t)); tmp = 0.0; if (t_2 < -1.3664970889390727e-7) tmp = t_1; elseif (t_2 < 1.4754293444577233e-239) tmp = ((y * (a - z)) - (x * t)) / (a - t); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y + x), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * N[(1.0 / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x + y), $MachinePrecision] - N[(N[(N[(z - t), $MachinePrecision] * y), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t$95$2, -1.3664970889390727e-7], t$95$1, If[Less[t$95$2, 1.4754293444577233e-239], N[(N[(N[(y * N[(a - z), $MachinePrecision]), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y + x\right) - \left(\left(z - t\right) \cdot \frac{1}{a - t}\right) \cdot y\\
t_2 := \left(x + y\right) - \frac{\left(z - t\right) \cdot y}{a - t}\\
\mathbf{if}\;t_2 < -1.3664970889390727 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t_2 < 1.4754293444577233 \cdot 10^{-239}:\\
\;\;\;\;\frac{y \cdot \left(a - z\right) - x \cdot t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023318
(FPCore (x y z t a)
:name "Graphics.Rendering.Plot.Render.Plot.Axis:renderAxisTick from plot-0.2.3.4, B"
:precision binary64
:herbie-target
(if (< (- (+ x y) (/ (* (- z t) y) (- a t))) -1.3664970889390727e-7) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y)) (if (< (- (+ x y) (/ (* (- z t) y) (- a t))) 1.4754293444577233e-239) (/ (- (* y (- a z)) (* x t)) (- a t)) (- (+ y x) (* (* (- z t) (/ 1.0 (- a t))) y))))
(- (+ x y) (/ (* (- z t) y) (- a t))))