
(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 16 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
(let* ((t_1 (- (+ x y) (/ (* y (- z t)) (- a t)))))
(if (<= t_1 -2e-161)
(+ x (- y (/ (- z t) (/ (- a t) y))))
(if (<= t_1 0.0)
(- x (* y (+ (/ z (- a t)) (/ a t))))
(+ (+ x y) (* y (/ (- t z) (- a t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) - ((y * (z - t)) / (a - t));
double tmp;
if (t_1 <= -2e-161) {
tmp = x + (y - ((z - t) / ((a - t) / y)));
} else if (t_1 <= 0.0) {
tmp = x - (y * ((z / (a - t)) + (a / t)));
} else {
tmp = (x + y) + (y * ((t - 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) :: t_1
real(8) :: tmp
t_1 = (x + y) - ((y * (z - t)) / (a - t))
if (t_1 <= (-2d-161)) then
tmp = x + (y - ((z - t) / ((a - t) / y)))
else if (t_1 <= 0.0d0) then
tmp = x - (y * ((z / (a - t)) + (a / t)))
else
tmp = (x + y) + (y * ((t - z) / (a - t)))
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 - t)) / (a - t));
double tmp;
if (t_1 <= -2e-161) {
tmp = x + (y - ((z - t) / ((a - t) / y)));
} else if (t_1 <= 0.0) {
tmp = x - (y * ((z / (a - t)) + (a / t)));
} else {
tmp = (x + y) + (y * ((t - z) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) - ((y * (z - t)) / (a - t)) tmp = 0 if t_1 <= -2e-161: tmp = x + (y - ((z - t) / ((a - t) / y))) elif t_1 <= 0.0: tmp = x - (y * ((z / (a - t)) + (a / t))) else: tmp = (x + y) + (y * ((t - z) / (a - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) - Float64(Float64(y * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -2e-161) tmp = Float64(x + Float64(y - Float64(Float64(z - t) / Float64(Float64(a - t) / y)))); elseif (t_1 <= 0.0) tmp = Float64(x - Float64(y * Float64(Float64(z / Float64(a - t)) + Float64(a / t)))); else tmp = Float64(Float64(x + y) + Float64(y * Float64(Float64(t - z) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) - ((y * (z - t)) / (a - t)); tmp = 0.0; if (t_1 <= -2e-161) tmp = x + (y - ((z - t) / ((a - t) / y))); elseif (t_1 <= 0.0) tmp = x - (y * ((z / (a - t)) + (a / t))); else tmp = (x + y) + (y * ((t - z) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e-161], N[(x + N[(y - N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(x - N[(y * N[(N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision] + N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] + N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) - \frac{y \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -2 \cdot 10^{-161}:\\
\;\;\;\;x + \left(y - \frac{z - t}{\frac{a - t}{y}}\right)\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;x - y \cdot \left(\frac{z}{a - t} + \frac{a}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) + y \cdot \frac{t - z}{a - t}\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -2.00000000000000006e-161Initial program 86.6%
associate--l+86.7%
associate-/l*97.1%
Simplified97.1%
if -2.00000000000000006e-161 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0Initial program 26.5%
associate--l+58.9%
associate-/l*48.7%
Simplified48.7%
Taylor expanded in y around 0 78.6%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
neg-mul-1100.0%
Simplified100.0%
if 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 87.0%
associate--l+87.0%
associate-/l*92.6%
Simplified92.6%
associate-+r-91.0%
+-commutative91.0%
associate-/r/94.1%
Applied egg-rr94.1%
Final simplification96.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ x y) (/ (* y (- z t)) (- a t)))))
(if (or (<= t_1 -5e-222) (not (<= t_1 2e-173)))
(+ x (- y (/ (- z t) (/ (- a t) y))))
(+ x (/ (* y (- z a)) t)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) - ((y * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -5e-222) || !(t_1 <= 2e-173)) {
tmp = x + (y - ((z - t) / ((a - t) / y)));
} 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) :: t_1
real(8) :: tmp
t_1 = (x + y) - ((y * (z - t)) / (a - t))
if ((t_1 <= (-5d-222)) .or. (.not. (t_1 <= 2d-173))) then
tmp = x + (y - ((z - t) / ((a - t) / y)))
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 t_1 = (x + y) - ((y * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -5e-222) || !(t_1 <= 2e-173)) {
tmp = x + (y - ((z - t) / ((a - t) / y)));
} else {
tmp = x + ((y * (z - a)) / t);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) - ((y * (z - t)) / (a - t)) tmp = 0 if (t_1 <= -5e-222) or not (t_1 <= 2e-173): tmp = x + (y - ((z - t) / ((a - t) / y))) else: tmp = x + ((y * (z - a)) / t) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) - Float64(Float64(y * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -5e-222) || !(t_1 <= 2e-173)) tmp = Float64(x + Float64(y - Float64(Float64(z - t) / Float64(Float64(a - t) / y)))); else tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) - ((y * (z - t)) / (a - t)); tmp = 0.0; if ((t_1 <= -5e-222) || ~((t_1 <= 2e-173))) tmp = x + (y - ((z - t) / ((a - t) / y))); else tmp = x + ((y * (z - a)) / t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -5e-222], N[Not[LessEqual[t$95$1, 2e-173]], $MachinePrecision]], N[(x + N[(y - N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) - \frac{y \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-222} \lor \neg \left(t_1 \leq 2 \cdot 10^{-173}\right):\\
\;\;\;\;x + \left(y - \frac{z - t}{\frac{a - t}{y}}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -5.00000000000000008e-222 or 2.0000000000000001e-173 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 86.8%
associate--l+86.8%
associate-/l*95.6%
Simplified95.6%
if -5.00000000000000008e-222 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 2.0000000000000001e-173Initial program 20.9%
associate--l+56.6%
associate-/l*36.8%
Simplified36.8%
Taylor expanded in y around 0 76.4%
clear-num76.4%
inv-pow76.4%
Applied egg-rr76.4%
unpow-176.4%
Simplified76.4%
Taylor expanded in t around inf 96.4%
mul-1-neg96.4%
mul-1-neg96.4%
sub-neg96.4%
Simplified96.4%
Final simplification95.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- (+ x y) (/ (* y (- z t)) (- a t)))))
(if (<= t_1 -5e-222)
(+ x (- y (/ (- z t) (/ (- a t) y))))
(if (<= t_1 0.0)
(+ x (/ (* y (- z a)) t))
(+ (+ x y) (* y (/ (- t z) (- a t))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (x + y) - ((y * (z - t)) / (a - t));
double tmp;
if (t_1 <= -5e-222) {
tmp = x + (y - ((z - t) / ((a - t) / y)));
} else if (t_1 <= 0.0) {
tmp = x + ((y * (z - a)) / t);
} else {
tmp = (x + y) + (y * ((t - 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) :: t_1
real(8) :: tmp
t_1 = (x + y) - ((y * (z - t)) / (a - t))
if (t_1 <= (-5d-222)) then
tmp = x + (y - ((z - t) / ((a - t) / y)))
else if (t_1 <= 0.0d0) then
tmp = x + ((y * (z - a)) / t)
else
tmp = (x + y) + (y * ((t - z) / (a - t)))
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 - t)) / (a - t));
double tmp;
if (t_1 <= -5e-222) {
tmp = x + (y - ((z - t) / ((a - t) / y)));
} else if (t_1 <= 0.0) {
tmp = x + ((y * (z - a)) / t);
} else {
tmp = (x + y) + (y * ((t - z) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (x + y) - ((y * (z - t)) / (a - t)) tmp = 0 if t_1 <= -5e-222: tmp = x + (y - ((z - t) / ((a - t) / y))) elif t_1 <= 0.0: tmp = x + ((y * (z - a)) / t) else: tmp = (x + y) + (y * ((t - z) / (a - t))) return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(x + y) - Float64(Float64(y * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_1 <= -5e-222) tmp = Float64(x + Float64(y - Float64(Float64(z - t) / Float64(Float64(a - t) / y)))); elseif (t_1 <= 0.0) tmp = Float64(x + Float64(Float64(y * Float64(z - a)) / t)); else tmp = Float64(Float64(x + y) + Float64(y * Float64(Float64(t - z) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (x + y) - ((y * (z - t)) / (a - t)); tmp = 0.0; if (t_1 <= -5e-222) tmp = x + (y - ((z - t) / ((a - t) / y))); elseif (t_1 <= 0.0) tmp = x + ((y * (z - a)) / t); else tmp = (x + y) + (y * ((t - z) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(x + y), $MachinePrecision] - N[(N[(y * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e-222], N[(x + N[(y - N[(N[(z - t), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 0.0], N[(x + N[(N[(y * N[(z - a), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] + N[(y * N[(N[(t - z), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x + y\right) - \frac{y \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t_1 \leq -5 \cdot 10^{-222}:\\
\;\;\;\;x + \left(y - \frac{z - t}{\frac{a - t}{y}}\right)\\
\mathbf{elif}\;t_1 \leq 0:\\
\;\;\;\;x + \frac{y \cdot \left(z - a\right)}{t}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) + y \cdot \frac{t - z}{a - t}\\
\end{array}
\end{array}
if (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < -5.00000000000000008e-222Initial program 86.8%
associate--l+86.8%
associate-/l*97.3%
Simplified97.3%
if -5.00000000000000008e-222 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) < 0.0Initial program 11.9%
associate--l+51.7%
associate-/l*36.9%
Simplified36.9%
Taylor expanded in y around 0 73.7%
clear-num73.7%
inv-pow73.7%
Applied egg-rr73.7%
unpow-173.7%
Simplified73.7%
Taylor expanded in t around inf 99.8%
mul-1-neg99.8%
mul-1-neg99.8%
sub-neg99.8%
Simplified99.8%
if 0.0 < (-.f64 (+.f64 x y) (/.f64 (*.f64 (-.f64 z t) y) (-.f64 a t))) Initial program 87.0%
associate--l+87.0%
associate-/l*92.6%
Simplified92.6%
associate-+r-91.0%
+-commutative91.0%
associate-/r/94.1%
Applied egg-rr94.1%
Final simplification96.0%
(FPCore (x y z t a) :precision binary64 (+ x (* y (- (+ (/ 1.0 (/ (- a t) t)) 1.0) (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
return x + (y * (((1.0 / ((a - t) / 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 * (((1.0d0 / ((a - t) / 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 * (((1.0 / ((a - t) / t)) + 1.0) - (z / (a - t))));
}
def code(x, y, z, t, a): return x + (y * (((1.0 / ((a - t) / t)) + 1.0) - (z / (a - t))))
function code(x, y, z, t, a) return Float64(x + Float64(y * Float64(Float64(Float64(1.0 / Float64(Float64(a - t) / t)) + 1.0) - Float64(z / Float64(a - t))))) end
function tmp = code(x, y, z, t, a) tmp = x + (y * (((1.0 / ((a - t) / t)) + 1.0) - (z / (a - t)))); end
code[x_, y_, z_, t_, a_] := N[(x + N[(y * N[(N[(N[(1.0 / N[(N[(a - t), $MachinePrecision] / 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{1}{\frac{a - t}{t}} + 1\right) - \frac{z}{a - t}\right)
\end{array}
Initial program 79.3%
associate--l+83.4%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in y around 0 94.0%
clear-num94.0%
inv-pow94.0%
Applied egg-rr94.0%
unpow-194.0%
Simplified94.0%
Final simplification94.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ y (/ t z)))))
(if (<= a -4.8e+116)
(+ x y)
(if (<= a -2e+79)
t_1
(if (<= a -450000.0)
(+ x y)
(if (<= a 4.3e-110)
t_1
(if (<= a 8.5e+199) (- x (/ y (/ a z))) (+ x y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y / (t / z));
double tmp;
if (a <= -4.8e+116) {
tmp = x + y;
} else if (a <= -2e+79) {
tmp = t_1;
} else if (a <= -450000.0) {
tmp = x + y;
} else if (a <= 4.3e-110) {
tmp = t_1;
} else if (a <= 8.5e+199) {
tmp = x - (y / (a / z));
} 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) :: t_1
real(8) :: tmp
t_1 = x + (y / (t / z))
if (a <= (-4.8d+116)) then
tmp = x + y
else if (a <= (-2d+79)) then
tmp = t_1
else if (a <= (-450000.0d0)) then
tmp = x + y
else if (a <= 4.3d-110) then
tmp = t_1
else if (a <= 8.5d+199) then
tmp = x - (y / (a / z))
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 t_1 = x + (y / (t / z));
double tmp;
if (a <= -4.8e+116) {
tmp = x + y;
} else if (a <= -2e+79) {
tmp = t_1;
} else if (a <= -450000.0) {
tmp = x + y;
} else if (a <= 4.3e-110) {
tmp = t_1;
} else if (a <= 8.5e+199) {
tmp = x - (y / (a / z));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y / (t / z)) tmp = 0 if a <= -4.8e+116: tmp = x + y elif a <= -2e+79: tmp = t_1 elif a <= -450000.0: tmp = x + y elif a <= 4.3e-110: tmp = t_1 elif a <= 8.5e+199: tmp = x - (y / (a / z)) else: tmp = x + y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y / Float64(t / z))) tmp = 0.0 if (a <= -4.8e+116) tmp = Float64(x + y); elseif (a <= -2e+79) tmp = t_1; elseif (a <= -450000.0) tmp = Float64(x + y); elseif (a <= 4.3e-110) tmp = t_1; elseif (a <= 8.5e+199) tmp = Float64(x - Float64(y / Float64(a / z))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y / (t / z)); tmp = 0.0; if (a <= -4.8e+116) tmp = x + y; elseif (a <= -2e+79) tmp = t_1; elseif (a <= -450000.0) tmp = x + y; elseif (a <= 4.3e-110) tmp = t_1; elseif (a <= 8.5e+199) tmp = x - (y / (a / z)); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y / N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.8e+116], N[(x + y), $MachinePrecision], If[LessEqual[a, -2e+79], t$95$1, If[LessEqual[a, -450000.0], N[(x + y), $MachinePrecision], If[LessEqual[a, 4.3e-110], t$95$1, If[LessEqual[a, 8.5e+199], N[(x - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{\frac{t}{z}}\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+116}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq -2 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -450000:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq 4.3 \cdot 10^{-110}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+199}:\\
\;\;\;\;x - \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -4.8000000000000001e116 or -1.99999999999999993e79 < a < -4.5e5 or 8.49999999999999923e199 < a Initial program 84.7%
associate--l+87.2%
associate-/l*93.6%
Simplified93.6%
Taylor expanded in a around inf 83.3%
+-commutative83.3%
Simplified83.3%
if -4.8000000000000001e116 < a < -1.99999999999999993e79 or -4.5e5 < a < 4.30000000000000025e-110Initial program 74.6%
associate--l+80.1%
associate-/l*84.0%
Simplified84.0%
Taylor expanded in y around 0 92.6%
Taylor expanded in a around 0 81.4%
+-commutative81.4%
associate-/l*84.0%
Simplified84.0%
if 4.30000000000000025e-110 < a < 8.49999999999999923e199Initial program 81.6%
associate--l+84.8%
associate-/l*92.3%
Simplified92.3%
Taylor expanded in z around inf 77.2%
associate-*r/77.2%
associate-*r*77.2%
neg-mul-177.2%
Simplified77.2%
Taylor expanded in a around inf 72.8%
mul-1-neg72.8%
unsub-neg72.8%
associate-/l*75.7%
Simplified75.7%
Final simplification81.8%
(FPCore (x y z t a)
:precision binary64
(if (<= a -2.5e+157)
(+ x y)
(if (<= a -4.6e+56)
(- x (* y (/ z (- a t))))
(if (<= a -2.6e+45)
(+ y (/ t (/ (- a t) y)))
(if (<= a 4.4e+107) (- x (* z (/ y (- a t)))) (+ x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.5e+157) {
tmp = x + y;
} else if (a <= -4.6e+56) {
tmp = x - (y * (z / (a - t)));
} else if (a <= -2.6e+45) {
tmp = y + (t / ((a - t) / y));
} else if (a <= 4.4e+107) {
tmp = x - (z * (y / (a - t)));
} 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 (a <= (-2.5d+157)) then
tmp = x + y
else if (a <= (-4.6d+56)) then
tmp = x - (y * (z / (a - t)))
else if (a <= (-2.6d+45)) then
tmp = y + (t / ((a - t) / y))
else if (a <= 4.4d+107) then
tmp = x - (z * (y / (a - t)))
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 (a <= -2.5e+157) {
tmp = x + y;
} else if (a <= -4.6e+56) {
tmp = x - (y * (z / (a - t)));
} else if (a <= -2.6e+45) {
tmp = y + (t / ((a - t) / y));
} else if (a <= 4.4e+107) {
tmp = x - (z * (y / (a - t)));
} else {
tmp = x + y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.5e+157: tmp = x + y elif a <= -4.6e+56: tmp = x - (y * (z / (a - t))) elif a <= -2.6e+45: tmp = y + (t / ((a - t) / y)) elif a <= 4.4e+107: tmp = x - (z * (y / (a - t))) else: tmp = x + y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.5e+157) tmp = Float64(x + y); elseif (a <= -4.6e+56) tmp = Float64(x - Float64(y * Float64(z / Float64(a - t)))); elseif (a <= -2.6e+45) tmp = Float64(y + Float64(t / Float64(Float64(a - t) / y))); elseif (a <= 4.4e+107) tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); else tmp = Float64(x + y); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.5e+157) tmp = x + y; elseif (a <= -4.6e+56) tmp = x - (y * (z / (a - t))); elseif (a <= -2.6e+45) tmp = y + (t / ((a - t) / y)); elseif (a <= 4.4e+107) tmp = x - (z * (y / (a - t))); else tmp = x + y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.5e+157], N[(x + y), $MachinePrecision], If[LessEqual[a, -4.6e+56], N[(x - N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.6e+45], N[(y + N[(t / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e+107], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + y), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.5 \cdot 10^{+157}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{+56}:\\
\;\;\;\;x - y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{+45}:\\
\;\;\;\;y + \frac{t}{\frac{a - t}{y}}\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+107}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + y\\
\end{array}
\end{array}
if a < -2.49999999999999988e157 or 4.4e107 < a Initial program 82.3%
associate--l+82.3%
associate-/l*93.7%
Simplified93.7%
Taylor expanded in a around inf 83.1%
+-commutative83.1%
Simplified83.1%
if -2.49999999999999988e157 < a < -4.60000000000000029e56Initial program 81.1%
associate--l+83.9%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in z around inf 79.7%
associate-*r/79.7%
associate-*r*79.7%
neg-mul-179.7%
Simplified79.7%
Taylor expanded in x around 0 79.7%
mul-1-neg79.7%
sub-neg79.7%
associate-*r/82.6%
Simplified82.6%
if -4.60000000000000029e56 < a < -2.60000000000000007e45Initial program 84.6%
associate--l+84.6%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 84.6%
Taylor expanded in z around 0 68.3%
sub-neg68.3%
mul-1-neg68.3%
remove-double-neg68.3%
associate-/l*83.5%
Simplified83.5%
if -2.60000000000000007e45 < a < 4.4e107Initial program 77.6%
associate--l+83.6%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in z around inf 86.7%
associate-*r/86.7%
associate-*r*86.7%
neg-mul-186.7%
Simplified86.7%
Taylor expanded in x around 0 86.7%
mul-1-neg86.7%
sub-neg86.7%
associate-*r/89.4%
Simplified89.4%
Taylor expanded in y around 0 86.7%
associate-*l/90.8%
*-commutative90.8%
Simplified90.8%
Final simplification87.7%
(FPCore (x y z t a)
:precision binary64
(if (<= a -9.5e+158)
(+ x y)
(if (<= a -4.6e+56)
(- x (* y (/ z (- a t))))
(if (<= a -2.6e+45)
(+ y (/ t (/ (- a t) y)))
(if (<= a 4.1e+105)
(- x (* z (/ y (- a t))))
(- (+ x y) (/ (* y z) a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -9.5e+158) {
tmp = x + y;
} else if (a <= -4.6e+56) {
tmp = x - (y * (z / (a - t)));
} else if (a <= -2.6e+45) {
tmp = y + (t / ((a - t) / y));
} else if (a <= 4.1e+105) {
tmp = x - (z * (y / (a - t)));
} else {
tmp = (x + y) - ((y * 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 (a <= (-9.5d+158)) then
tmp = x + y
else if (a <= (-4.6d+56)) then
tmp = x - (y * (z / (a - t)))
else if (a <= (-2.6d+45)) then
tmp = y + (t / ((a - t) / y))
else if (a <= 4.1d+105) then
tmp = x - (z * (y / (a - t)))
else
tmp = (x + y) - ((y * 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 (a <= -9.5e+158) {
tmp = x + y;
} else if (a <= -4.6e+56) {
tmp = x - (y * (z / (a - t)));
} else if (a <= -2.6e+45) {
tmp = y + (t / ((a - t) / y));
} else if (a <= 4.1e+105) {
tmp = x - (z * (y / (a - t)));
} else {
tmp = (x + y) - ((y * z) / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -9.5e+158: tmp = x + y elif a <= -4.6e+56: tmp = x - (y * (z / (a - t))) elif a <= -2.6e+45: tmp = y + (t / ((a - t) / y)) elif a <= 4.1e+105: tmp = x - (z * (y / (a - t))) else: tmp = (x + y) - ((y * z) / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -9.5e+158) tmp = Float64(x + y); elseif (a <= -4.6e+56) tmp = Float64(x - Float64(y * Float64(z / Float64(a - t)))); elseif (a <= -2.6e+45) tmp = Float64(y + Float64(t / Float64(Float64(a - t) / y))); elseif (a <= 4.1e+105) tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); else tmp = Float64(Float64(x + y) - Float64(Float64(y * z) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -9.5e+158) tmp = x + y; elseif (a <= -4.6e+56) tmp = x - (y * (z / (a - t))); elseif (a <= -2.6e+45) tmp = y + (t / ((a - t) / y)); elseif (a <= 4.1e+105) tmp = x - (z * (y / (a - t))); else tmp = (x + y) - ((y * z) / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -9.5e+158], N[(x + y), $MachinePrecision], If[LessEqual[a, -4.6e+56], N[(x - N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.6e+45], N[(y + N[(t / N[(N[(a - t), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.1e+105], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + y), $MachinePrecision] - N[(N[(y * z), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{+158}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;a \leq -4.6 \cdot 10^{+56}:\\
\;\;\;\;x - y \cdot \frac{z}{a - t}\\
\mathbf{elif}\;a \leq -2.6 \cdot 10^{+45}:\\
\;\;\;\;y + \frac{t}{\frac{a - t}{y}}\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{+105}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\mathbf{else}:\\
\;\;\;\;\left(x + y\right) - \frac{y \cdot z}{a}\\
\end{array}
\end{array}
if a < -9.49999999999999913e158Initial program 73.2%
associate--l+73.2%
associate-/l*94.1%
Simplified94.1%
Taylor expanded in a around inf 88.3%
+-commutative88.3%
Simplified88.3%
if -9.49999999999999913e158 < a < -4.60000000000000029e56Initial program 81.1%
associate--l+83.9%
associate-/l*83.8%
Simplified83.8%
Taylor expanded in z around inf 79.7%
associate-*r/79.7%
associate-*r*79.7%
neg-mul-179.7%
Simplified79.7%
Taylor expanded in x around 0 79.7%
mul-1-neg79.7%
sub-neg79.7%
associate-*r/82.6%
Simplified82.6%
if -4.60000000000000029e56 < a < -2.60000000000000007e45Initial program 84.6%
associate--l+84.6%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 84.6%
Taylor expanded in z around 0 68.3%
sub-neg68.3%
mul-1-neg68.3%
remove-double-neg68.3%
associate-/l*83.5%
Simplified83.5%
if -2.60000000000000007e45 < a < 4.1000000000000002e105Initial program 77.6%
associate--l+83.6%
associate-/l*87.7%
Simplified87.7%
Taylor expanded in z around inf 86.7%
associate-*r/86.7%
associate-*r*86.7%
neg-mul-186.7%
Simplified86.7%
Taylor expanded in x around 0 86.7%
mul-1-neg86.7%
sub-neg86.7%
associate-*r/89.4%
Simplified89.4%
Taylor expanded in y around 0 86.7%
associate-*l/90.8%
*-commutative90.8%
Simplified90.8%
if 4.1000000000000002e105 < a Initial program 93.0%
associate--l+93.0%
associate-/l*93.1%
Simplified93.1%
Taylor expanded in t around 0 93.2%
Final simplification89.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 79.3%
associate--l+83.4%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in y around 0 94.0%
Final simplification94.0%
(FPCore (x y z t a)
:precision binary64
(if (or (<= a -5.7e+116)
(not (or (<= a -3.2e+79) (and (not (<= a -3900.0)) (<= a 3.7e-19)))))
(+ x y)
(+ x (/ y (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -5.7e+116) || !((a <= -3.2e+79) || (!(a <= -3900.0) && (a <= 3.7e-19)))) {
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 <= (-5.7d+116)) .or. (.not. (a <= (-3.2d+79)) .or. (.not. (a <= (-3900.0d0))) .and. (a <= 3.7d-19))) 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 <= -5.7e+116) || !((a <= -3.2e+79) || (!(a <= -3900.0) && (a <= 3.7e-19)))) {
tmp = x + y;
} else {
tmp = x + (y / (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -5.7e+116) or not ((a <= -3.2e+79) or (not (a <= -3900.0) and (a <= 3.7e-19))): tmp = x + y else: tmp = x + (y / (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -5.7e+116) || !((a <= -3.2e+79) || (!(a <= -3900.0) && (a <= 3.7e-19)))) 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 <= -5.7e+116) || ~(((a <= -3.2e+79) || (~((a <= -3900.0)) && (a <= 3.7e-19))))) tmp = x + y; else tmp = x + (y / (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -5.7e+116], N[Not[Or[LessEqual[a, -3.2e+79], And[N[Not[LessEqual[a, -3900.0]], $MachinePrecision], LessEqual[a, 3.7e-19]]]], $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 -5.7 \cdot 10^{+116} \lor \neg \left(a \leq -3.2 \cdot 10^{+79} \lor \neg \left(a \leq -3900\right) \land a \leq 3.7 \cdot 10^{-19}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{\frac{t}{z}}\\
\end{array}
\end{array}
if a < -5.69999999999999983e116 or -3.20000000000000003e79 < a < -3900 or 3.70000000000000005e-19 < a Initial program 82.4%
associate--l+84.8%
associate-/l*92.7%
Simplified92.7%
Taylor expanded in a around inf 74.6%
+-commutative74.6%
Simplified74.6%
if -5.69999999999999983e116 < a < -3.20000000000000003e79 or -3900 < a < 3.70000000000000005e-19Initial program 76.5%
associate--l+82.1%
associate-/l*85.5%
Simplified85.5%
Taylor expanded in y around 0 92.2%
Taylor expanded in a around 0 80.4%
+-commutative80.4%
associate-/l*82.6%
Simplified82.6%
Final simplification78.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z) a))))
(if (<= z -9.4e+222)
t_1
(if (<= z -4.8e-28)
(+ x y)
(if (<= z -1.05e-150) x (if (<= z 9.2e+246) (+ x y) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * (-z / a);
double tmp;
if (z <= -9.4e+222) {
tmp = t_1;
} else if (z <= -4.8e-28) {
tmp = x + y;
} else if (z <= -1.05e-150) {
tmp = x;
} else if (z <= 9.2e+246) {
tmp = x + y;
} 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 * (-z / a)
if (z <= (-9.4d+222)) then
tmp = t_1
else if (z <= (-4.8d-28)) then
tmp = x + y
else if (z <= (-1.05d-150)) then
tmp = x
else if (z <= 9.2d+246) then
tmp = x + y
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 * (-z / a);
double tmp;
if (z <= -9.4e+222) {
tmp = t_1;
} else if (z <= -4.8e-28) {
tmp = x + y;
} else if (z <= -1.05e-150) {
tmp = x;
} else if (z <= 9.2e+246) {
tmp = x + y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * (-z / a) tmp = 0 if z <= -9.4e+222: tmp = t_1 elif z <= -4.8e-28: tmp = x + y elif z <= -1.05e-150: tmp = x elif z <= 9.2e+246: tmp = x + y else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(-z) / a)) tmp = 0.0 if (z <= -9.4e+222) tmp = t_1; elseif (z <= -4.8e-28) tmp = Float64(x + y); elseif (z <= -1.05e-150) tmp = x; elseif (z <= 9.2e+246) tmp = Float64(x + y); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * (-z / a); tmp = 0.0; if (z <= -9.4e+222) tmp = t_1; elseif (z <= -4.8e-28) tmp = x + y; elseif (z <= -1.05e-150) tmp = x; elseif (z <= 9.2e+246) tmp = x + y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[((-z) / a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.4e+222], t$95$1, If[LessEqual[z, -4.8e-28], N[(x + y), $MachinePrecision], If[LessEqual[z, -1.05e-150], x, If[LessEqual[z, 9.2e+246], N[(x + y), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{-z}{a}\\
\mathbf{if}\;z \leq -9.4 \cdot 10^{+222}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-28}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{-150}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 9.2 \cdot 10^{+246}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -9.3999999999999998e222 or 9.20000000000000055e246 < z Initial program 81.6%
associate--l+81.6%
associate-/l*97.0%
Simplified97.0%
Taylor expanded in x around 0 70.5%
Taylor expanded in t around 0 43.7%
Taylor expanded in z around inf 43.7%
mul-1-neg43.7%
associate-*r/52.3%
distribute-rgt-neg-in52.3%
mul-1-neg52.3%
associate-*r/52.3%
mul-1-neg52.3%
Simplified52.3%
if -9.3999999999999998e222 < z < -4.8000000000000004e-28 or -1.0500000000000001e-150 < z < 9.20000000000000055e246Initial program 80.3%
associate--l+84.0%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in a around inf 67.3%
+-commutative67.3%
Simplified67.3%
if -4.8000000000000004e-28 < z < -1.0500000000000001e-150Initial program 71.8%
associate--l+81.9%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in x around inf 78.2%
Final simplification66.7%
(FPCore (x y z t a)
:precision binary64
(if (<= z -1.5e+223)
(* z (- (/ y a)))
(if (<= z -1.32e-27)
(+ x y)
(if (<= z -6e-151) x (if (<= z 9.8e+250) (+ x y) (* y (/ (- z) a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -1.5e+223) {
tmp = z * -(y / a);
} else if (z <= -1.32e-27) {
tmp = x + y;
} else if (z <= -6e-151) {
tmp = x;
} else if (z <= 9.8e+250) {
tmp = x + y;
} else {
tmp = y * (-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.5d+223)) then
tmp = z * -(y / a)
else if (z <= (-1.32d-27)) then
tmp = x + y
else if (z <= (-6d-151)) then
tmp = x
else if (z <= 9.8d+250) then
tmp = x + y
else
tmp = y * (-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.5e+223) {
tmp = z * -(y / a);
} else if (z <= -1.32e-27) {
tmp = x + y;
} else if (z <= -6e-151) {
tmp = x;
} else if (z <= 9.8e+250) {
tmp = x + y;
} else {
tmp = y * (-z / a);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -1.5e+223: tmp = z * -(y / a) elif z <= -1.32e-27: tmp = x + y elif z <= -6e-151: tmp = x elif z <= 9.8e+250: tmp = x + y else: tmp = y * (-z / a) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -1.5e+223) tmp = Float64(z * Float64(-Float64(y / a))); elseif (z <= -1.32e-27) tmp = Float64(x + y); elseif (z <= -6e-151) tmp = x; elseif (z <= 9.8e+250) tmp = Float64(x + y); else tmp = Float64(y * Float64(Float64(-z) / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -1.5e+223) tmp = z * -(y / a); elseif (z <= -1.32e-27) tmp = x + y; elseif (z <= -6e-151) tmp = x; elseif (z <= 9.8e+250) tmp = x + y; else tmp = y * (-z / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -1.5e+223], N[(z * (-N[(y / a), $MachinePrecision])), $MachinePrecision], If[LessEqual[z, -1.32e-27], N[(x + y), $MachinePrecision], If[LessEqual[z, -6e-151], x, If[LessEqual[z, 9.8e+250], N[(x + y), $MachinePrecision], N[(y * N[((-z) / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+223}:\\
\;\;\;\;z \cdot \left(-\frac{y}{a}\right)\\
\mathbf{elif}\;z \leq -1.32 \cdot 10^{-27}:\\
\;\;\;\;x + y\\
\mathbf{elif}\;z \leq -6 \cdot 10^{-151}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 9.8 \cdot 10^{+250}:\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{-z}{a}\\
\end{array}
\end{array}
if z < -1.50000000000000001e223Initial program 86.1%
associate--l+86.1%
associate-/l*95.1%
Simplified95.1%
Taylor expanded in x around 0 67.1%
Taylor expanded in t around 0 45.2%
associate-/l*53.5%
Simplified53.5%
Taylor expanded in a around 0 45.2%
associate-*l/56.2%
*-commutative56.2%
associate-*r*56.2%
neg-mul-156.2%
Simplified56.2%
if -1.50000000000000001e223 < z < -1.3200000000000001e-27 or -6e-151 < z < 9.79999999999999986e250Initial program 80.3%
associate--l+84.0%
associate-/l*87.3%
Simplified87.3%
Taylor expanded in a around inf 67.3%
+-commutative67.3%
Simplified67.3%
if -1.3200000000000001e-27 < z < -6e-151Initial program 71.8%
associate--l+81.9%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in x around inf 78.2%
if 9.79999999999999986e250 < z Initial program 75.1%
associate--l+75.1%
associate-/l*99.7%
Simplified99.7%
Taylor expanded in x around 0 75.1%
Taylor expanded in t around 0 41.7%
Taylor expanded in z around inf 41.7%
mul-1-neg41.7%
associate-*r/54.1%
distribute-rgt-neg-in54.1%
mul-1-neg54.1%
associate-*r/54.1%
mul-1-neg54.1%
Simplified54.1%
Final simplification67.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.3e+160) (not (<= a 7.5e+199))) (+ x y) (- x (* y (/ z (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.3e+160) || !(a <= 7.5e+199)) {
tmp = x + y;
} 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 <= (-2.3d+160)) .or. (.not. (a <= 7.5d+199))) then
tmp = x + y
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 <= -2.3e+160) || !(a <= 7.5e+199)) {
tmp = x + y;
} else {
tmp = x - (y * (z / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.3e+160) or not (a <= 7.5e+199): tmp = x + y else: tmp = x - (y * (z / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.3e+160) || !(a <= 7.5e+199)) tmp = Float64(x + y); 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 <= -2.3e+160) || ~((a <= 7.5e+199))) tmp = x + y; else tmp = x - (y * (z / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.3e+160], N[Not[LessEqual[a, 7.5e+199]], $MachinePrecision]], N[(x + y), $MachinePrecision], N[(x - N[(y * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.3 \cdot 10^{+160} \lor \neg \left(a \leq 7.5 \cdot 10^{+199}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \frac{z}{a - t}\\
\end{array}
\end{array}
if a < -2.29999999999999987e160 or 7.49999999999999977e199 < a Initial program 79.9%
associate--l+79.9%
associate-/l*95.6%
Simplified95.6%
Taylor expanded in a around inf 91.2%
+-commutative91.2%
Simplified91.2%
if -2.29999999999999987e160 < a < 7.49999999999999977e199Initial program 79.2%
associate--l+84.1%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in z around inf 81.7%
associate-*r/81.7%
associate-*r*81.7%
neg-mul-181.7%
Simplified81.7%
Taylor expanded in x around 0 81.7%
mul-1-neg81.7%
sub-neg81.7%
associate-*r/84.6%
Simplified84.6%
Final simplification85.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -2.2e+20) (not (<= a 5.2e+103))) (- (+ x y) (/ y (/ a z))) (- x (* z (/ y (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -2.2e+20) || !(a <= 5.2e+103)) {
tmp = (x + y) - (y / (a / z));
} else {
tmp = x - (z * (y / (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 <= (-2.2d+20)) .or. (.not. (a <= 5.2d+103))) then
tmp = (x + y) - (y / (a / z))
else
tmp = x - (z * (y / (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 <= -2.2e+20) || !(a <= 5.2e+103)) {
tmp = (x + y) - (y / (a / z));
} else {
tmp = x - (z * (y / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -2.2e+20) or not (a <= 5.2e+103): tmp = (x + y) - (y / (a / z)) else: tmp = x - (z * (y / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -2.2e+20) || !(a <= 5.2e+103)) tmp = Float64(Float64(x + y) - Float64(y / Float64(a / z))); else tmp = Float64(x - Float64(z * Float64(y / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -2.2e+20) || ~((a <= 5.2e+103))) tmp = (x + y) - (y / (a / z)); else tmp = x - (z * (y / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -2.2e+20], N[Not[LessEqual[a, 5.2e+103]], $MachinePrecision]], N[(N[(x + y), $MachinePrecision] - N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{+20} \lor \neg \left(a \leq 5.2 \cdot 10^{+103}\right):\\
\;\;\;\;\left(x + y\right) - \frac{y}{\frac{a}{z}}\\
\mathbf{else}:\\
\;\;\;\;x - z \cdot \frac{y}{a - t}\\
\end{array}
\end{array}
if a < -2.2e20 or 5.2000000000000003e103 < a Initial program 83.4%
associate--l+84.2%
associate-/l*91.4%
Simplified91.4%
Taylor expanded in t around 0 81.9%
+-commutative81.9%
associate-/l*87.2%
Simplified87.2%
if -2.2e20 < a < 5.2000000000000003e103Initial program 76.3%
associate--l+82.7%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in z around inf 86.7%
associate-*r/86.7%
associate-*r*86.7%
neg-mul-186.7%
Simplified86.7%
Taylor expanded in x around 0 86.7%
mul-1-neg86.7%
sub-neg86.7%
associate-*r/89.5%
Simplified89.5%
Taylor expanded in y around 0 86.7%
associate-*l/90.9%
*-commutative90.9%
Simplified90.9%
Final simplification89.4%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -850000000.0) (not (<= a 7.5e+103))) (+ x y) x))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -850000000.0) || !(a <= 7.5e+103)) {
tmp = x + y;
} else {
tmp = x;
}
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 <= (-850000000.0d0)) .or. (.not. (a <= 7.5d+103))) then
tmp = x + y
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -850000000.0) || !(a <= 7.5e+103)) {
tmp = x + y;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -850000000.0) or not (a <= 7.5e+103): tmp = x + y else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -850000000.0) || !(a <= 7.5e+103)) tmp = Float64(x + y); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -850000000.0) || ~((a <= 7.5e+103))) tmp = x + y; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -850000000.0], N[Not[LessEqual[a, 7.5e+103]], $MachinePrecision]], N[(x + y), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -850000000 \lor \neg \left(a \leq 7.5 \cdot 10^{+103}\right):\\
\;\;\;\;x + y\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -8.5e8 or 7.49999999999999922e103 < a Initial program 83.7%
associate--l+84.5%
associate-/l*91.6%
Simplified91.6%
Taylor expanded in a around inf 75.1%
+-commutative75.1%
Simplified75.1%
if -8.5e8 < a < 7.49999999999999922e103Initial program 76.0%
associate--l+82.5%
associate-/l*86.9%
Simplified86.9%
Taylor expanded in x around inf 54.4%
Final simplification63.3%
(FPCore (x y z t a) :precision binary64 (if (<= y -9e+91) y (if (<= y 2.55e+244) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -9e+91) {
tmp = y;
} else if (y <= 2.55e+244) {
tmp = x;
} else {
tmp = 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 (y <= (-9d+91)) then
tmp = y
else if (y <= 2.55d+244) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (y <= -9e+91) {
tmp = y;
} else if (y <= 2.55e+244) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if y <= -9e+91: tmp = y elif y <= 2.55e+244: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (y <= -9e+91) tmp = y; elseif (y <= 2.55e+244) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (y <= -9e+91) tmp = y; elseif (y <= 2.55e+244) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[y, -9e+91], y, If[LessEqual[y, 2.55e+244], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -9 \cdot 10^{+91}:\\
\;\;\;\;y\\
\mathbf{elif}\;y \leq 2.55 \cdot 10^{+244}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if y < -9e91 or 2.54999999999999993e244 < y Initial program 69.0%
associate--l+69.1%
associate-/l*85.4%
Simplified85.4%
Taylor expanded in x around 0 61.9%
Taylor expanded in t around 0 59.6%
associate-/l*65.2%
Simplified65.2%
Taylor expanded in a around inf 40.0%
if -9e91 < y < 2.54999999999999993e244Initial program 82.0%
associate--l+87.1%
associate-/l*89.8%
Simplified89.8%
Taylor expanded in x around inf 60.3%
Final simplification56.1%
(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 79.3%
associate--l+83.4%
associate-/l*88.9%
Simplified88.9%
Taylor expanded in x around inf 50.8%
Final simplification50.8%
(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 2023308
(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))))