
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (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 - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y z) (- t x)) (- a z))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (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 - x)) / (a - z))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - z) * (t - x)) / (a - z));
}
def code(x, y, z, t, a): return x + (((y - z) * (t - x)) / (a - z))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - z) * (t - x)) / (a - z)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (- y z) (/ (- t x) (- a z)))))
(t_2 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -1e-294)
t_2
(if (<= t_2 0.0)
(- t (/ (* (- t x) (- y a)) z))
(if (<= t_2 2e+284) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -1e-294) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (t_2 <= 2e+284) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + ((y - z) * ((t - x) / (a - z)));
double t_2 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -1e-294) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t - (((t - x) * (y - a)) / z);
} else if (t_2 <= 2e+284) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + ((y - z) * ((t - x) / (a - z))) t_2 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -1e-294: tmp = t_2 elif t_2 <= 0.0: tmp = t - (((t - x) * (y - a)) / z) elif t_2 <= 2e+284: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))) t_2 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -1e-294) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); elseif (t_2 <= 2e+284) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + ((y - z) * ((t - x) / (a - z))); t_2 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -1e-294) tmp = t_2; elseif (t_2 <= 0.0) tmp = t - (((t - x) * (y - a)) / z); elseif (t_2 <= 2e+284) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -1e-294], t$95$2, If[LessEqual[t$95$2, 0.0], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 2e+284], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
t_2 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-294}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\mathbf{elif}\;t\_2 \leq 2 \cdot 10^{+284}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -inf.0 or 2.00000000000000016e284 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 33.8%
associate-/l*79.2%
Simplified79.2%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.00000000000000002e-294 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 2.00000000000000016e284Initial program 94.7%
if -1.00000000000000002e-294 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.3%
+-commutative4.3%
*-commutative4.3%
associate-/l*4.3%
fma-define4.3%
Simplified4.3%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.9%
mul-1-neg99.9%
distribute-lft-out--99.9%
associate-*r/99.9%
mul-1-neg99.9%
unsub-neg99.9%
distribute-rgt-out--99.9%
Simplified99.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -1e-294) (not (<= t_1 0.0)))
(fma (- t x) (/ (- y z) (- a z)) x)
(- t (/ (* (- t x) (- y a)) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) {
tmp = fma((t - x), ((y - z) / (a - z)), x);
} else {
tmp = t - (((t - x) * (y - a)) / z);
}
return tmp;
}
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) tmp = fma(Float64(t - x), Float64(Float64(y - z) / Float64(a - z)), x); else tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); end return tmp end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-294], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(N[(t - x), $MachinePrecision] * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-294} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;\mathsf{fma}\left(t - x, \frac{y - z}{a - z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.00000000000000002e-294 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 70.0%
+-commutative70.0%
*-commutative70.0%
associate-/l*87.6%
fma-define87.7%
Simplified87.7%
if -1.00000000000000002e-294 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.3%
+-commutative4.3%
*-commutative4.3%
associate-/l*4.3%
fma-define4.3%
Simplified4.3%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.9%
mul-1-neg99.9%
distribute-lft-out--99.9%
associate-*r/99.9%
mul-1-neg99.9%
unsub-neg99.9%
distribute-rgt-out--99.9%
Simplified99.9%
Final simplification88.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -1e-294) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(- t (/ (* (- t x) (- y a)) z)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t - (((t - x) * (y - 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) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-1d-294)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t - (((t - x) * (y - a)) / z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - z) * (t - x)) / (a - z));
double tmp;
if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t - (((t - x) * (y - a)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -1e-294) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t - (((t - x) * (y - a)) / z) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) tmp = 0.0 if ((t_1 <= -1e-294) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); tmp = 0.0; if ((t_1 <= -1e-294) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t - (((t - x) * (y - a)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-294], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-294} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -1.00000000000000002e-294 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 70.0%
associate-/l*82.5%
Simplified82.5%
Taylor expanded in y around 0 70.1%
mul-1-neg70.1%
associate-/l*80.4%
distribute-lft-neg-out80.4%
+-commutative80.4%
div-sub80.8%
distribute-rgt-out82.5%
sub-neg82.5%
associate-/r/87.6%
Simplified87.6%
if -1.00000000000000002e-294 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.3%
+-commutative4.3%
*-commutative4.3%
associate-/l*4.3%
fma-define4.3%
Simplified4.3%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
associate-*r/99.8%
associate-*r/99.8%
mul-1-neg99.8%
div-sub99.9%
mul-1-neg99.9%
distribute-lft-out--99.9%
associate-*r/99.9%
mul-1-neg99.9%
unsub-neg99.9%
distribute-rgt-out--99.9%
Simplified99.9%
Final simplification88.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* a (/ x z)))))
(if (<= z -2e+245)
t_1
(if (<= z -1.75)
(- x (* t (/ (- z y) (- a z))))
(if (<= z 6.5e-147)
(+ x (/ (- t x) (/ (- a z) y)))
(if (<= z 6.8e+230) (+ x (* (- y z) (/ t (- a z)))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - (a * (x / z));
double tmp;
if (z <= -2e+245) {
tmp = t_1;
} else if (z <= -1.75) {
tmp = x - (t * ((z - y) / (a - z)));
} else if (z <= 6.5e-147) {
tmp = x + ((t - x) / ((a - z) / y));
} else if (z <= 6.8e+230) {
tmp = x + ((y - z) * (t / (a - z)));
} 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 = t - (a * (x / z))
if (z <= (-2d+245)) then
tmp = t_1
else if (z <= (-1.75d0)) then
tmp = x - (t * ((z - y) / (a - z)))
else if (z <= 6.5d-147) then
tmp = x + ((t - x) / ((a - z) / y))
else if (z <= 6.8d+230) then
tmp = x + ((y - z) * (t / (a - z)))
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 = t - (a * (x / z));
double tmp;
if (z <= -2e+245) {
tmp = t_1;
} else if (z <= -1.75) {
tmp = x - (t * ((z - y) / (a - z)));
} else if (z <= 6.5e-147) {
tmp = x + ((t - x) / ((a - z) / y));
} else if (z <= 6.8e+230) {
tmp = x + ((y - z) * (t / (a - z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - (a * (x / z)) tmp = 0 if z <= -2e+245: tmp = t_1 elif z <= -1.75: tmp = x - (t * ((z - y) / (a - z))) elif z <= 6.5e-147: tmp = x + ((t - x) / ((a - z) / y)) elif z <= 6.8e+230: tmp = x + ((y - z) * (t / (a - z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(a * Float64(x / z))) tmp = 0.0 if (z <= -2e+245) tmp = t_1; elseif (z <= -1.75) tmp = Float64(x - Float64(t * Float64(Float64(z - y) / Float64(a - z)))); elseif (z <= 6.5e-147) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / y))); elseif (z <= 6.8e+230) tmp = Float64(x + Float64(Float64(y - z) * Float64(t / Float64(a - z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - (a * (x / z)); tmp = 0.0; if (z <= -2e+245) tmp = t_1; elseif (z <= -1.75) tmp = x - (t * ((z - y) / (a - z))); elseif (z <= 6.5e-147) tmp = x + ((t - x) / ((a - z) / y)); elseif (z <= 6.8e+230) tmp = x + ((y - z) * (t / (a - z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+245], t$95$1, If[LessEqual[z, -1.75], N[(x - N[(t * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-147], N[(x + N[(N[(t - x), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e+230], N[(x + N[(N[(y - z), $MachinePrecision] * N[(t / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - a \cdot \frac{x}{z}\\
\mathbf{if}\;z \leq -2 \cdot 10^{+245}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.75:\\
\;\;\;\;x - t \cdot \frac{z - y}{a - z}\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-147}:\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y}}\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+230}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.00000000000000009e245 or 6.79999999999999973e230 < z Initial program 29.5%
associate-/l*27.4%
Simplified27.4%
Taylor expanded in y around 0 28.4%
mul-1-neg28.4%
associate-/l*27.4%
distribute-lft-neg-out27.4%
*-commutative27.4%
Simplified27.4%
Taylor expanded in z around inf 78.2%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in t around 0 89.6%
neg-mul-189.6%
Simplified89.6%
*-commutative89.6%
add-sqr-sqrt57.1%
sqrt-unprod69.3%
sqr-neg69.3%
sqrt-unprod29.4%
add-sqr-sqrt69.2%
cancel-sign-sub69.2%
distribute-frac-neg69.2%
*-commutative69.2%
add-sqr-sqrt39.7%
sqrt-unprod60.4%
sqr-neg60.4%
sqrt-unprod32.4%
add-sqr-sqrt89.6%
Applied egg-rr89.6%
if -2.00000000000000009e245 < z < -1.75Initial program 50.1%
associate-/l*71.7%
Simplified71.7%
Taylor expanded in t around inf 48.3%
associate-/l*67.1%
Simplified67.1%
if -1.75 < z < 6.49999999999999967e-147Initial program 87.5%
associate-/l*90.8%
Simplified90.8%
Taylor expanded in y around 0 89.6%
mul-1-neg89.6%
associate-/l*84.8%
distribute-lft-neg-out84.8%
+-commutative84.8%
div-sub86.0%
distribute-rgt-out90.8%
sub-neg90.8%
associate-/r/94.0%
Simplified94.0%
Taylor expanded in y around inf 87.8%
if 6.49999999999999967e-147 < z < 6.79999999999999973e230Initial program 68.1%
associate-/l*85.5%
Simplified85.5%
Taylor expanded in t around inf 68.7%
Final simplification77.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* t (/ (- z y) (- a z))))) (t_2 (- t (* a (/ x z)))))
(if (<= z -2e+252)
t_2
(if (<= z -75.0)
t_1
(if (<= z 9.5e-47)
(+ x (* y (/ (- t x) (- a z))))
(if (<= z 4.5e+231) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t * ((z - y) / (a - z)));
double t_2 = t - (a * (x / z));
double tmp;
if (z <= -2e+252) {
tmp = t_2;
} else if (z <= -75.0) {
tmp = t_1;
} else if (z <= 9.5e-47) {
tmp = x + (y * ((t - x) / (a - z)));
} else if (z <= 4.5e+231) {
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 - (t * ((z - y) / (a - z)))
t_2 = t - (a * (x / z))
if (z <= (-2d+252)) then
tmp = t_2
else if (z <= (-75.0d0)) then
tmp = t_1
else if (z <= 9.5d-47) then
tmp = x + (y * ((t - x) / (a - z)))
else if (z <= 4.5d+231) 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 - (t * ((z - y) / (a - z)));
double t_2 = t - (a * (x / z));
double tmp;
if (z <= -2e+252) {
tmp = t_2;
} else if (z <= -75.0) {
tmp = t_1;
} else if (z <= 9.5e-47) {
tmp = x + (y * ((t - x) / (a - z)));
} else if (z <= 4.5e+231) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (t * ((z - y) / (a - z))) t_2 = t - (a * (x / z)) tmp = 0 if z <= -2e+252: tmp = t_2 elif z <= -75.0: tmp = t_1 elif z <= 9.5e-47: tmp = x + (y * ((t - x) / (a - z))) elif z <= 4.5e+231: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(t * Float64(Float64(z - y) / Float64(a - z)))) t_2 = Float64(t - Float64(a * Float64(x / z))) tmp = 0.0 if (z <= -2e+252) tmp = t_2; elseif (z <= -75.0) tmp = t_1; elseif (z <= 9.5e-47) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / Float64(a - z)))); elseif (z <= 4.5e+231) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (t * ((z - y) / (a - z))); t_2 = t - (a * (x / z)); tmp = 0.0; if (z <= -2e+252) tmp = t_2; elseif (z <= -75.0) tmp = t_1; elseif (z <= 9.5e-47) tmp = x + (y * ((t - x) / (a - z))); elseif (z <= 4.5e+231) 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[(t * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+252], t$95$2, If[LessEqual[z, -75.0], t$95$1, If[LessEqual[z, 9.5e-47], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+231], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - t \cdot \frac{z - y}{a - z}\\
t_2 := t - a \cdot \frac{x}{z}\\
\mathbf{if}\;z \leq -2 \cdot 10^{+252}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -75:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-47}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a - z}\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+231}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -2.0000000000000002e252 or 4.49999999999999991e231 < z Initial program 29.5%
associate-/l*27.4%
Simplified27.4%
Taylor expanded in y around 0 28.4%
mul-1-neg28.4%
associate-/l*27.4%
distribute-lft-neg-out27.4%
*-commutative27.4%
Simplified27.4%
Taylor expanded in z around inf 78.2%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in t around 0 89.6%
neg-mul-189.6%
Simplified89.6%
*-commutative89.6%
add-sqr-sqrt57.1%
sqrt-unprod69.3%
sqr-neg69.3%
sqrt-unprod29.4%
add-sqr-sqrt69.2%
cancel-sign-sub69.2%
distribute-frac-neg69.2%
*-commutative69.2%
add-sqr-sqrt39.7%
sqrt-unprod60.4%
sqr-neg60.4%
sqrt-unprod32.4%
add-sqr-sqrt89.6%
Applied egg-rr89.6%
if -2.0000000000000002e252 < z < -75 or 9.4999999999999991e-47 < z < 4.49999999999999991e231Initial program 53.7%
associate-/l*75.7%
Simplified75.7%
Taylor expanded in t around inf 47.9%
associate-/l*66.0%
Simplified66.0%
if -75 < z < 9.4999999999999991e-47Initial program 89.3%
associate-/l*92.1%
Simplified92.1%
Taylor expanded in y around inf 82.5%
associate-*r/85.3%
Simplified85.3%
Final simplification76.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- x (* t (/ (- z y) (- a z))))))
(if (<= a -1.05e-107)
t_1
(if (<= a -5.2e-182)
(+ t (* a (/ (- t x) z)))
(if (<= a 3.3e-26) (* t (/ (- y z) (- a z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x - (t * ((z - y) / (a - z)));
double tmp;
if (a <= -1.05e-107) {
tmp = t_1;
} else if (a <= -5.2e-182) {
tmp = t + (a * ((t - x) / z));
} else if (a <= 3.3e-26) {
tmp = t * ((y - z) / (a - z));
} 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 = x - (t * ((z - y) / (a - z)))
if (a <= (-1.05d-107)) then
tmp = t_1
else if (a <= (-5.2d-182)) then
tmp = t + (a * ((t - x) / z))
else if (a <= 3.3d-26) then
tmp = t * ((y - z) / (a - z))
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 = x - (t * ((z - y) / (a - z)));
double tmp;
if (a <= -1.05e-107) {
tmp = t_1;
} else if (a <= -5.2e-182) {
tmp = t + (a * ((t - x) / z));
} else if (a <= 3.3e-26) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x - (t * ((z - y) / (a - z))) tmp = 0 if a <= -1.05e-107: tmp = t_1 elif a <= -5.2e-182: tmp = t + (a * ((t - x) / z)) elif a <= 3.3e-26: tmp = t * ((y - z) / (a - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x - Float64(t * Float64(Float64(z - y) / Float64(a - z)))) tmp = 0.0 if (a <= -1.05e-107) tmp = t_1; elseif (a <= -5.2e-182) tmp = Float64(t + Float64(a * Float64(Float64(t - x) / z))); elseif (a <= 3.3e-26) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x - (t * ((z - y) / (a - z))); tmp = 0.0; if (a <= -1.05e-107) tmp = t_1; elseif (a <= -5.2e-182) tmp = t + (a * ((t - x) / z)); elseif (a <= 3.3e-26) tmp = t * ((y - z) / (a - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x - N[(t * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.05e-107], t$95$1, If[LessEqual[a, -5.2e-182], N[(t + N[(a * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.3e-26], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - t \cdot \frac{z - y}{a - z}\\
\mathbf{if}\;a \leq -1.05 \cdot 10^{-107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5.2 \cdot 10^{-182}:\\
\;\;\;\;t + a \cdot \frac{t - x}{z}\\
\mathbf{elif}\;a \leq 3.3 \cdot 10^{-26}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.05e-107 or 3.2999999999999998e-26 < a Initial program 67.6%
associate-/l*84.6%
Simplified84.6%
Taylor expanded in t around inf 61.7%
associate-/l*76.0%
Simplified76.0%
if -1.05e-107 < a < -5.20000000000000011e-182Initial program 33.3%
associate-/l*47.5%
Simplified47.5%
Taylor expanded in y around 0 8.6%
mul-1-neg8.6%
associate-/l*22.8%
distribute-lft-neg-out22.8%
*-commutative22.8%
Simplified22.8%
Taylor expanded in z around inf 65.4%
associate-/l*69.7%
Simplified69.7%
if -5.20000000000000011e-182 < a < 3.2999999999999998e-26Initial program 66.6%
+-commutative66.6%
*-commutative66.6%
associate-/l*73.7%
fma-define73.7%
Simplified73.7%
Taylor expanded in t around inf 75.1%
Taylor expanded in x around 0 71.7%
div-sub71.7%
Simplified71.7%
Final simplification74.1%
(FPCore (x y z t a)
:precision binary64
(if (<= z -2e+229)
(+ t (/ a (/ z (- t x))))
(if (<= z 1.76e+230)
(+ x (* (- y z) (/ (- t x) (- a z))))
(- t (* a (/ x z))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2e+229) {
tmp = t + (a / (z / (t - x)));
} else if (z <= 1.76e+230) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t - (a * (x / 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 (z <= (-2d+229)) then
tmp = t + (a / (z / (t - x)))
else if (z <= 1.76d+230) then
tmp = x + ((y - z) * ((t - x) / (a - z)))
else
tmp = t - (a * (x / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2e+229) {
tmp = t + (a / (z / (t - x)));
} else if (z <= 1.76e+230) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t - (a * (x / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2e+229: tmp = t + (a / (z / (t - x))) elif z <= 1.76e+230: tmp = x + ((y - z) * ((t - x) / (a - z))) else: tmp = t - (a * (x / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2e+229) tmp = Float64(t + Float64(a / Float64(z / Float64(t - x)))); elseif (z <= 1.76e+230) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); else tmp = Float64(t - Float64(a * Float64(x / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2e+229) tmp = t + (a / (z / (t - x))); elseif (z <= 1.76e+230) tmp = x + ((y - z) * ((t - x) / (a - z))); else tmp = t - (a * (x / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2e+229], N[(t + N[(a / N[(z / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.76e+230], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+229}:\\
\;\;\;\;t + \frac{a}{\frac{z}{t - x}}\\
\mathbf{elif}\;z \leq 1.76 \cdot 10^{+230}:\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\end{array}
\end{array}
if z < -2e229Initial program 44.0%
associate-/l*29.2%
Simplified29.2%
Taylor expanded in y around 0 37.8%
mul-1-neg37.8%
associate-/l*29.2%
distribute-lft-neg-out29.2%
*-commutative29.2%
Simplified29.2%
Taylor expanded in z around inf 65.9%
associate-/l*83.7%
Simplified83.7%
clear-num83.6%
un-div-inv83.8%
Applied egg-rr83.8%
if -2e229 < z < 1.76000000000000003e230Initial program 69.7%
associate-/l*83.9%
Simplified83.9%
if 1.76000000000000003e230 < z Initial program 20.9%
associate-/l*29.6%
Simplified29.6%
Taylor expanded in y around 0 20.9%
mul-1-neg20.9%
associate-/l*29.6%
distribute-lft-neg-out29.6%
*-commutative29.6%
Simplified29.6%
Taylor expanded in z around inf 88.5%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in t around 0 94.2%
neg-mul-194.2%
Simplified94.2%
*-commutative94.2%
add-sqr-sqrt52.9%
sqrt-unprod71.1%
sqr-neg71.1%
sqrt-unprod35.4%
add-sqr-sqrt76.9%
cancel-sign-sub76.9%
distribute-frac-neg76.9%
*-commutative76.9%
add-sqr-sqrt41.5%
sqrt-unprod65.6%
sqr-neg65.6%
sqrt-unprod41.2%
add-sqr-sqrt94.2%
Applied egg-rr94.2%
(FPCore (x y z t a)
:precision binary64
(if (<= z -5.4e+156)
t
(if (<= z 2.4e-159)
(* x (- 1.0 (/ y a)))
(if (<= z 1.15e-17) (* t (/ y (- a z))) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.4e+156) {
tmp = t;
} else if (z <= 2.4e-159) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.15e-17) {
tmp = t * (y / (a - z));
} else {
tmp = 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 <= (-5.4d+156)) then
tmp = t
else if (z <= 2.4d-159) then
tmp = x * (1.0d0 - (y / a))
else if (z <= 1.15d-17) then
tmp = t * (y / (a - z))
else
tmp = 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 <= -5.4e+156) {
tmp = t;
} else if (z <= 2.4e-159) {
tmp = x * (1.0 - (y / a));
} else if (z <= 1.15e-17) {
tmp = t * (y / (a - z));
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.4e+156: tmp = t elif z <= 2.4e-159: tmp = x * (1.0 - (y / a)) elif z <= 1.15e-17: tmp = t * (y / (a - z)) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.4e+156) tmp = t; elseif (z <= 2.4e-159) tmp = Float64(x * Float64(1.0 - Float64(y / a))); elseif (z <= 1.15e-17) tmp = Float64(t * Float64(y / Float64(a - z))); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.4e+156) tmp = t; elseif (z <= 2.4e-159) tmp = x * (1.0 - (y / a)); elseif (z <= 1.15e-17) tmp = t * (y / (a - z)); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.4e+156], t, If[LessEqual[z, 2.4e-159], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e-17], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.4 \cdot 10^{+156}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-159}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-17}:\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.4000000000000001e156 or 1.15000000000000004e-17 < z Initial program 41.9%
associate-/l*61.4%
Simplified61.4%
Taylor expanded in y around 0 32.4%
mul-1-neg32.4%
associate-/l*46.3%
distribute-lft-neg-out46.3%
*-commutative46.3%
Simplified46.3%
Taylor expanded in z around inf 53.0%
associate-/l*61.4%
Simplified61.4%
Taylor expanded in t around 0 61.7%
neg-mul-161.7%
Simplified61.7%
Taylor expanded in t around inf 52.0%
if -5.4000000000000001e156 < z < 2.39999999999999997e-159Initial program 77.8%
associate-/l*84.3%
Simplified84.3%
Taylor expanded in z around 0 53.8%
Taylor expanded in x around inf 43.2%
mul-1-neg43.2%
unsub-neg43.2%
Simplified43.2%
if 2.39999999999999997e-159 < z < 1.15000000000000004e-17Initial program 87.4%
associate-/l*91.4%
Simplified91.4%
Taylor expanded in t around inf 74.1%
associate-/l*74.1%
Simplified74.1%
Taylor expanded in y around inf 61.5%
Taylor expanded in x around 0 49.6%
associate-/l*49.7%
Simplified49.7%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -4.7e-96) (not (<= a 1.85e-12))) (- x (* t (/ (- z y) (- a z)))) (- t (/ (* (- t x) (- y a)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -4.7e-96) || !(a <= 1.85e-12)) {
tmp = x - (t * ((z - y) / (a - z)));
} else {
tmp = t - (((t - x) * (y - 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 ((a <= (-4.7d-96)) .or. (.not. (a <= 1.85d-12))) then
tmp = x - (t * ((z - y) / (a - z)))
else
tmp = t - (((t - x) * (y - 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 ((a <= -4.7e-96) || !(a <= 1.85e-12)) {
tmp = x - (t * ((z - y) / (a - z)));
} else {
tmp = t - (((t - x) * (y - a)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -4.7e-96) or not (a <= 1.85e-12): tmp = x - (t * ((z - y) / (a - z))) else: tmp = t - (((t - x) * (y - a)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -4.7e-96) || !(a <= 1.85e-12)) tmp = Float64(x - Float64(t * Float64(Float64(z - y) / Float64(a - z)))); else tmp = Float64(t - Float64(Float64(Float64(t - x) * Float64(y - a)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -4.7e-96) || ~((a <= 1.85e-12))) tmp = x - (t * ((z - y) / (a - z))); else tmp = t - (((t - x) * (y - a)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -4.7e-96], N[Not[LessEqual[a, 1.85e-12]], $MachinePrecision]], N[(x - N[(t * N[(N[(z - y), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t - N[(N[(N[(t - x), $MachinePrecision] * N[(y - a), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.7 \cdot 10^{-96} \lor \neg \left(a \leq 1.85 \cdot 10^{-12}\right):\\
\;\;\;\;x - t \cdot \frac{z - y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t - \frac{\left(t - x\right) \cdot \left(y - a\right)}{z}\\
\end{array}
\end{array}
if a < -4.6999999999999998e-96 or 1.84999999999999999e-12 < a Initial program 67.2%
associate-/l*85.1%
Simplified85.1%
Taylor expanded in t around inf 61.4%
associate-/l*77.2%
Simplified77.2%
if -4.6999999999999998e-96 < a < 1.84999999999999999e-12Initial program 60.7%
+-commutative60.7%
*-commutative60.7%
associate-/l*69.5%
fma-define69.6%
Simplified69.6%
Taylor expanded in z around inf 83.7%
associate--l+83.7%
associate-*r/83.7%
associate-*r/83.7%
mul-1-neg83.7%
div-sub83.7%
mul-1-neg83.7%
distribute-lft-out--83.7%
associate-*r/83.7%
mul-1-neg83.7%
unsub-neg83.7%
distribute-rgt-out--83.7%
Simplified83.7%
Final simplification80.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -3.5e+99) t (if (<= z 3.1e-307) x (if (<= z 14500.0) (* t (/ y a)) t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -3.5e+99) {
tmp = t;
} else if (z <= 3.1e-307) {
tmp = x;
} else if (z <= 14500.0) {
tmp = t * (y / a);
} else {
tmp = 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 <= (-3.5d+99)) then
tmp = t
else if (z <= 3.1d-307) then
tmp = x
else if (z <= 14500.0d0) then
tmp = t * (y / a)
else
tmp = 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 <= -3.5e+99) {
tmp = t;
} else if (z <= 3.1e-307) {
tmp = x;
} else if (z <= 14500.0) {
tmp = t * (y / a);
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -3.5e+99: tmp = t elif z <= 3.1e-307: tmp = x elif z <= 14500.0: tmp = t * (y / a) else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -3.5e+99) tmp = t; elseif (z <= 3.1e-307) tmp = x; elseif (z <= 14500.0) tmp = Float64(t * Float64(y / a)); else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -3.5e+99) tmp = t; elseif (z <= 3.1e-307) tmp = x; elseif (z <= 14500.0) tmp = t * (y / a); else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -3.5e+99], t, If[LessEqual[z, 3.1e-307], x, If[LessEqual[z, 14500.0], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+99}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-307}:\\
\;\;\;\;x\\
\mathbf{elif}\;z \leq 14500:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -3.4999999999999998e99 or 14500 < z Initial program 42.3%
associate-/l*61.1%
Simplified61.1%
Taylor expanded in y around 0 30.9%
mul-1-neg30.9%
associate-/l*45.5%
distribute-lft-neg-out45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in z around inf 52.0%
associate-/l*59.7%
Simplified59.7%
Taylor expanded in t around 0 60.1%
neg-mul-160.1%
Simplified60.1%
Taylor expanded in t around inf 48.9%
if -3.4999999999999998e99 < z < 3.0999999999999998e-307Initial program 77.5%
+-commutative77.5%
*-commutative77.5%
associate-/l*87.3%
fma-define87.3%
Simplified87.3%
Taylor expanded in a around inf 34.3%
if 3.0999999999999998e-307 < z < 14500Initial program 88.3%
+-commutative88.3%
*-commutative88.3%
associate-/l*92.1%
fma-define92.1%
Simplified92.1%
Taylor expanded in t around inf 76.8%
Taylor expanded in x around 0 53.7%
div-sub53.7%
Simplified53.7%
Taylor expanded in z around 0 35.0%
associate-/l*55.3%
Simplified40.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -4.3e-105) (not (<= z 2.8e-48))) (* t (/ (- y z) (- a z))) (+ x (* y (/ (- t x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -4.3e-105) || !(z <= 2.8e-48)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y * ((t - x) / 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.3d-105)) .or. (.not. (z <= 2.8d-48))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x + (y * ((t - x) / 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.3e-105) || !(z <= 2.8e-48)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (y * ((t - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -4.3e-105) or not (z <= 2.8e-48): tmp = t * ((y - z) / (a - z)) else: tmp = x + (y * ((t - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -4.3e-105) || !(z <= 2.8e-48)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -4.3e-105) || ~((z <= 2.8e-48))) tmp = t * ((y - z) / (a - z)); else tmp = x + (y * ((t - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -4.3e-105], N[Not[LessEqual[z, 2.8e-48]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.3 \cdot 10^{-105} \lor \neg \left(z \leq 2.8 \cdot 10^{-48}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if z < -4.29999999999999964e-105 or 2.80000000000000005e-48 < z Initial program 53.8%
+-commutative53.8%
*-commutative53.8%
associate-/l*74.9%
fma-define74.9%
Simplified74.9%
Taylor expanded in t around inf 65.7%
Taylor expanded in x around 0 61.6%
div-sub61.6%
Simplified61.6%
if -4.29999999999999964e-105 < z < 2.80000000000000005e-48Initial program 93.0%
associate-/l*94.2%
Simplified94.2%
Taylor expanded in z around 0 79.9%
associate-/l*81.2%
Simplified81.2%
Final simplification66.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -3.2e-127) (not (<= t 6.5e-63))) (* t (/ (- y z) (- a z))) (* x (+ (/ y (- z a)) 1.0))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e-127) || !(t <= 6.5e-63)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * ((y / (z - a)) + 1.0);
}
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 <= (-3.2d-127)) .or. (.not. (t <= 6.5d-63))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x * ((y / (z - a)) + 1.0d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -3.2e-127) || !(t <= 6.5e-63)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * ((y / (z - a)) + 1.0);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -3.2e-127) or not (t <= 6.5e-63): tmp = t * ((y - z) / (a - z)) else: tmp = x * ((y / (z - a)) + 1.0) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -3.2e-127) || !(t <= 6.5e-63)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x * Float64(Float64(y / Float64(z - a)) + 1.0)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -3.2e-127) || ~((t <= 6.5e-63))) tmp = t * ((y - z) / (a - z)); else tmp = x * ((y / (z - a)) + 1.0); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -3.2e-127], N[Not[LessEqual[t, 6.5e-63]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3.2 \cdot 10^{-127} \lor \neg \left(t \leq 6.5 \cdot 10^{-63}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(\frac{y}{z - a} + 1\right)\\
\end{array}
\end{array}
if t < -3.20000000000000017e-127 or 6.4999999999999998e-63 < t Initial program 64.2%
+-commutative64.2%
*-commutative64.2%
associate-/l*86.2%
fma-define86.2%
Simplified86.2%
Taylor expanded in t around inf 75.3%
Taylor expanded in x around 0 72.1%
div-sub72.1%
Simplified72.1%
if -3.20000000000000017e-127 < t < 6.4999999999999998e-63Initial program 64.5%
associate-/l*61.8%
Simplified61.8%
Taylor expanded in y around inf 59.5%
associate-*r/59.5%
Simplified59.5%
Taylor expanded in x around inf 53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
Final simplification66.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -5.5e-128) (not (<= t 9.5e-63))) (* t (/ (- y z) (- a z))) (* x (- 1.0 (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -5.5e-128) || !(t <= 9.5e-63)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (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 ((t <= (-5.5d-128)) .or. (.not. (t <= 9.5d-63))) then
tmp = t * ((y - z) / (a - z))
else
tmp = x * (1.0d0 - (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 ((t <= -5.5e-128) || !(t <= 9.5e-63)) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x * (1.0 - (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -5.5e-128) or not (t <= 9.5e-63): tmp = t * ((y - z) / (a - z)) else: tmp = x * (1.0 - (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -5.5e-128) || !(t <= 9.5e-63)) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x * Float64(1.0 - Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -5.5e-128) || ~((t <= 9.5e-63))) tmp = t * ((y - z) / (a - z)); else tmp = x * (1.0 - (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -5.5e-128], N[Not[LessEqual[t, 9.5e-63]], $MachinePrecision]], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.5 \cdot 10^{-128} \lor \neg \left(t \leq 9.5 \cdot 10^{-63}\right):\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\end{array}
\end{array}
if t < -5.5000000000000004e-128 or 9.50000000000000016e-63 < t Initial program 64.2%
+-commutative64.2%
*-commutative64.2%
associate-/l*86.2%
fma-define86.2%
Simplified86.2%
Taylor expanded in t around inf 75.3%
Taylor expanded in x around 0 72.1%
div-sub72.1%
Simplified72.1%
if -5.5000000000000004e-128 < t < 9.50000000000000016e-63Initial program 64.5%
associate-/l*61.8%
Simplified61.8%
Taylor expanded in z around 0 50.0%
Taylor expanded in x around inf 50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Final simplification64.9%
(FPCore (x y z t a) :precision binary64 (if (<= a -2.1e+34) (+ x (* y (/ (- t x) a))) (if (<= a 2.2e+80) (* t (/ (- y z) (- a z))) (+ x (/ t (/ a (- y z)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -2.1e+34) {
tmp = x + (y * ((t - x) / a));
} else if (a <= 2.2e+80) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (t / (a / (y - 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 <= (-2.1d+34)) then
tmp = x + (y * ((t - x) / a))
else if (a <= 2.2d+80) then
tmp = t * ((y - z) / (a - z))
else
tmp = x + (t / (a / (y - 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 <= -2.1e+34) {
tmp = x + (y * ((t - x) / a));
} else if (a <= 2.2e+80) {
tmp = t * ((y - z) / (a - z));
} else {
tmp = x + (t / (a / (y - z)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -2.1e+34: tmp = x + (y * ((t - x) / a)) elif a <= 2.2e+80: tmp = t * ((y - z) / (a - z)) else: tmp = x + (t / (a / (y - z))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -2.1e+34) tmp = Float64(x + Float64(y * Float64(Float64(t - x) / a))); elseif (a <= 2.2e+80) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); else tmp = Float64(x + Float64(t / Float64(a / Float64(y - z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -2.1e+34) tmp = x + (y * ((t - x) / a)); elseif (a <= 2.2e+80) tmp = t * ((y - z) / (a - z)); else tmp = x + (t / (a / (y - z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -2.1e+34], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e+80], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t / N[(a / N[(y - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.1 \cdot 10^{+34}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{+80}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{t}{\frac{a}{y - z}}\\
\end{array}
\end{array}
if a < -2.10000000000000017e34Initial program 65.3%
associate-/l*85.0%
Simplified85.0%
Taylor expanded in z around 0 56.4%
associate-/l*66.2%
Simplified66.2%
if -2.10000000000000017e34 < a < 2.20000000000000003e80Initial program 65.4%
+-commutative65.4%
*-commutative65.4%
associate-/l*74.3%
fma-define74.3%
Simplified74.3%
Taylor expanded in t around inf 69.1%
Taylor expanded in x around 0 67.0%
div-sub67.0%
Simplified67.0%
if 2.20000000000000003e80 < a Initial program 59.5%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in y around 0 72.0%
mul-1-neg72.0%
associate-/l*87.5%
distribute-lft-neg-out87.5%
+-commutative87.5%
div-sub87.5%
distribute-rgt-out87.5%
sub-neg87.5%
associate-/r/91.3%
Simplified91.3%
Taylor expanded in t around inf 85.1%
Taylor expanded in a around inf 72.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -3.8e+49) (not (<= a 9.8e-26))) (+ x (* t (/ y a))) (* t (/ (- z y) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -3.8e+49) || !(a <= 9.8e-26)) {
tmp = x + (t * (y / a));
} else {
tmp = t * ((z - y) / 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.8d+49)) .or. (.not. (a <= 9.8d-26))) then
tmp = x + (t * (y / a))
else
tmp = t * ((z - y) / 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.8e+49) || !(a <= 9.8e-26)) {
tmp = x + (t * (y / a));
} else {
tmp = t * ((z - y) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -3.8e+49) or not (a <= 9.8e-26): tmp = x + (t * (y / a)) else: tmp = t * ((z - y) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -3.8e+49) || !(a <= 9.8e-26)) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(t * Float64(Float64(z - y) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -3.8e+49) || ~((a <= 9.8e-26))) tmp = x + (t * (y / a)); else tmp = t * ((z - y) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -3.8e+49], N[Not[LessEqual[a, 9.8e-26]], $MachinePrecision]], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(z - y), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.8 \cdot 10^{+49} \lor \neg \left(a \leq 9.8 \cdot 10^{-26}\right):\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t \cdot \frac{z - y}{z}\\
\end{array}
\end{array}
if a < -3.7999999999999999e49 or 9.7999999999999998e-26 < a Initial program 66.0%
associate-/l*85.4%
Simplified85.4%
Taylor expanded in t around inf 61.4%
associate-/l*78.1%
Simplified78.1%
Taylor expanded in z around 0 49.6%
associate-/l*55.9%
Simplified55.9%
if -3.7999999999999999e49 < a < 9.7999999999999998e-26Initial program 62.9%
+-commutative62.9%
*-commutative62.9%
associate-/l*72.8%
fma-define72.9%
Simplified72.9%
Taylor expanded in t around inf 66.4%
Taylor expanded in x around 0 66.8%
div-sub66.8%
Simplified66.8%
Taylor expanded in a around 0 57.3%
associate-*r/57.3%
neg-mul-157.3%
Simplified57.3%
Final simplification56.6%
(FPCore (x y z t a) :precision binary64 (if (or (<= z -2.65e+65) (not (<= z 2.3e+20))) (- t (* a (/ x z))) (+ x (* t (/ y a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((z <= -2.65e+65) || !(z <= 2.3e+20)) {
tmp = t - (a * (x / z));
} else {
tmp = x + (t * (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 <= (-2.65d+65)) .or. (.not. (z <= 2.3d+20))) then
tmp = t - (a * (x / z))
else
tmp = x + (t * (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 <= -2.65e+65) || !(z <= 2.3e+20)) {
tmp = t - (a * (x / z));
} else {
tmp = x + (t * (y / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (z <= -2.65e+65) or not (z <= 2.3e+20): tmp = t - (a * (x / z)) else: tmp = x + (t * (y / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((z <= -2.65e+65) || !(z <= 2.3e+20)) tmp = Float64(t - Float64(a * Float64(x / z))); else tmp = Float64(x + Float64(t * Float64(y / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((z <= -2.65e+65) || ~((z <= 2.3e+20))) tmp = t - (a * (x / z)); else tmp = x + (t * (y / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[z, -2.65e+65], N[Not[LessEqual[z, 2.3e+20]], $MachinePrecision]], N[(t - N[(a * N[(x / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.65 \cdot 10^{+65} \lor \neg \left(z \leq 2.3 \cdot 10^{+20}\right):\\
\;\;\;\;t - a \cdot \frac{x}{z}\\
\mathbf{else}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\end{array}
\end{array}
if z < -2.65000000000000011e65 or 2.3e20 < z Initial program 43.1%
associate-/l*60.4%
Simplified60.4%
Taylor expanded in y around 0 28.6%
mul-1-neg28.6%
associate-/l*42.9%
distribute-lft-neg-out42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in z around inf 51.2%
associate-/l*58.4%
Simplified58.4%
Taylor expanded in t around 0 58.7%
neg-mul-158.7%
Simplified58.7%
*-commutative58.7%
add-sqr-sqrt30.9%
sqrt-unprod44.7%
sqr-neg44.7%
sqrt-unprod24.6%
add-sqr-sqrt46.7%
cancel-sign-sub46.7%
distribute-frac-neg46.7%
*-commutative46.7%
add-sqr-sqrt22.1%
sqrt-unprod42.8%
sqr-neg42.8%
sqrt-unprod27.8%
add-sqr-sqrt58.7%
Applied egg-rr58.7%
if -2.65000000000000011e65 < z < 2.3e20Initial program 83.4%
associate-/l*89.6%
Simplified89.6%
Taylor expanded in t around inf 69.3%
associate-/l*74.8%
Simplified74.8%
Taylor expanded in z around 0 47.6%
associate-/l*52.1%
Simplified52.1%
Final simplification55.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -33000000000000.0) (not (<= a 1.7e-16))) (* x (- 1.0 (/ y a))) (+ t (* a (/ t z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -33000000000000.0) || !(a <= 1.7e-16)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t + (a * (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 <= (-33000000000000.0d0)) .or. (.not. (a <= 1.7d-16))) then
tmp = x * (1.0d0 - (y / a))
else
tmp = t + (a * (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 <= -33000000000000.0) || !(a <= 1.7e-16)) {
tmp = x * (1.0 - (y / a));
} else {
tmp = t + (a * (t / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -33000000000000.0) or not (a <= 1.7e-16): tmp = x * (1.0 - (y / a)) else: tmp = t + (a * (t / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -33000000000000.0) || !(a <= 1.7e-16)) tmp = Float64(x * Float64(1.0 - Float64(y / a))); else tmp = Float64(t + Float64(a * Float64(t / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -33000000000000.0) || ~((a <= 1.7e-16))) tmp = x * (1.0 - (y / a)); else tmp = t + (a * (t / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -33000000000000.0], N[Not[LessEqual[a, 1.7e-16]], $MachinePrecision]], N[(x * N[(1.0 - N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -33000000000000 \lor \neg \left(a \leq 1.7 \cdot 10^{-16}\right):\\
\;\;\;\;x \cdot \left(1 - \frac{y}{a}\right)\\
\mathbf{else}:\\
\;\;\;\;t + a \cdot \frac{t}{z}\\
\end{array}
\end{array}
if a < -3.3e13 or 1.7e-16 < a Initial program 65.3%
associate-/l*84.8%
Simplified84.8%
Taylor expanded in z around 0 53.4%
Taylor expanded in x around inf 47.7%
mul-1-neg47.7%
unsub-neg47.7%
Simplified47.7%
if -3.3e13 < a < 1.7e-16Initial program 63.4%
associate-/l*66.7%
Simplified66.7%
Taylor expanded in y around 0 22.0%
mul-1-neg22.0%
associate-/l*31.8%
distribute-lft-neg-out31.8%
*-commutative31.8%
Simplified31.8%
Taylor expanded in z around inf 48.8%
associate-/l*52.3%
Simplified52.3%
Taylor expanded in t around inf 41.8%
associate-/l*44.8%
Simplified44.8%
Final simplification46.2%
(FPCore (x y z t a) :precision binary64 (if (or (<= y -6.5e-14) (not (<= y 3e+176))) (* t (/ y (- a z))) (+ x t)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((y <= -6.5e-14) || !(y <= 3e+176)) {
tmp = t * (y / (a - z));
} 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 ((y <= (-6.5d-14)) .or. (.not. (y <= 3d+176))) then
tmp = t * (y / (a - z))
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 ((y <= -6.5e-14) || !(y <= 3e+176)) {
tmp = t * (y / (a - z));
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (y <= -6.5e-14) or not (y <= 3e+176): tmp = t * (y / (a - z)) else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((y <= -6.5e-14) || !(y <= 3e+176)) tmp = Float64(t * Float64(y / Float64(a - z))); else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((y <= -6.5e-14) || ~((y <= 3e+176))) tmp = t * (y / (a - z)); else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[y, -6.5e-14], N[Not[LessEqual[y, 3e+176]], $MachinePrecision]], N[(t * N[(y / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + t), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -6.5 \cdot 10^{-14} \lor \neg \left(y \leq 3 \cdot 10^{+176}\right):\\
\;\;\;\;t \cdot \frac{y}{a - z}\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if y < -6.5000000000000001e-14 or 3e176 < y Initial program 69.0%
associate-/l*84.5%
Simplified84.5%
Taylor expanded in t around inf 53.7%
associate-/l*64.5%
Simplified64.5%
Taylor expanded in y around inf 49.7%
Taylor expanded in x around 0 39.2%
associate-/l*45.2%
Simplified45.2%
if -6.5000000000000001e-14 < y < 3e176Initial program 61.5%
associate-/l*70.5%
Simplified70.5%
Taylor expanded in t around inf 54.8%
associate-/l*67.1%
Simplified67.1%
Taylor expanded in z around inf 43.2%
Final simplification44.0%
(FPCore (x y z t a) :precision binary64 (if (<= z -2.75e+157) t (if (<= z 2.5e+107) (+ x (* t (/ y a))) (+ t (/ a (/ z x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.75e+157) {
tmp = t;
} else if (z <= 2.5e+107) {
tmp = x + (t * (y / a));
} else {
tmp = t + (a / (z / 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 (z <= (-2.75d+157)) then
tmp = t
else if (z <= 2.5d+107) then
tmp = x + (t * (y / a))
else
tmp = t + (a / (z / x))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -2.75e+157) {
tmp = t;
} else if (z <= 2.5e+107) {
tmp = x + (t * (y / a));
} else {
tmp = t + (a / (z / x));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -2.75e+157: tmp = t elif z <= 2.5e+107: tmp = x + (t * (y / a)) else: tmp = t + (a / (z / x)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -2.75e+157) tmp = t; elseif (z <= 2.5e+107) tmp = Float64(x + Float64(t * Float64(y / a))); else tmp = Float64(t + Float64(a / Float64(z / x))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -2.75e+157) tmp = t; elseif (z <= 2.5e+107) tmp = x + (t * (y / a)); else tmp = t + (a / (z / x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -2.75e+157], t, If[LessEqual[z, 2.5e+107], N[(x + N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(a / N[(z / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.75 \cdot 10^{+157}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{+107}:\\
\;\;\;\;x + t \cdot \frac{y}{a}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{a}{\frac{z}{x}}\\
\end{array}
\end{array}
if z < -2.7500000000000001e157Initial program 35.7%
associate-/l*54.2%
Simplified54.2%
Taylor expanded in y around 0 30.6%
mul-1-neg30.6%
associate-/l*47.1%
distribute-lft-neg-out47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in z around inf 57.7%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in t around 0 73.2%
neg-mul-173.2%
Simplified73.2%
Taylor expanded in t around inf 61.2%
if -2.7500000000000001e157 < z < 2.5000000000000001e107Initial program 75.4%
associate-/l*84.2%
Simplified84.2%
Taylor expanded in t around inf 63.5%
associate-/l*70.2%
Simplified70.2%
Taylor expanded in z around 0 42.8%
associate-/l*46.7%
Simplified46.7%
if 2.5000000000000001e107 < z Initial program 39.3%
associate-/l*56.5%
Simplified56.5%
Taylor expanded in y around 0 23.0%
mul-1-neg23.0%
associate-/l*34.0%
distribute-lft-neg-out34.0%
*-commutative34.0%
Simplified34.0%
Taylor expanded in z around inf 60.9%
associate-/l*67.2%
Simplified67.2%
Taylor expanded in t around 0 67.6%
neg-mul-167.6%
Simplified67.6%
clear-num67.6%
un-div-inv67.5%
add-sqr-sqrt34.1%
sqrt-unprod47.9%
sqr-neg47.9%
sqrt-unprod30.2%
add-sqr-sqrt58.4%
Applied egg-rr58.4%
(FPCore (x y z t a) :precision binary64 (if (<= a -4.2e+49) x (if (<= a 2.6e+80) t (+ x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -4.2e+49) {
tmp = x;
} else if (a <= 2.6e+80) {
tmp = t;
} 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 (a <= (-4.2d+49)) then
tmp = x
else if (a <= 2.6d+80) then
tmp = t
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 (a <= -4.2e+49) {
tmp = x;
} else if (a <= 2.6e+80) {
tmp = t;
} else {
tmp = x + t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -4.2e+49: tmp = x elif a <= 2.6e+80: tmp = t else: tmp = x + t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -4.2e+49) tmp = x; elseif (a <= 2.6e+80) tmp = t; else tmp = Float64(x + t); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -4.2e+49) tmp = x; elseif (a <= 2.6e+80) tmp = t; else tmp = x + t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -4.2e+49], x, If[LessEqual[a, 2.6e+80], t, N[(x + t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.2 \cdot 10^{+49}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+80}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x + t\\
\end{array}
\end{array}
if a < -4.20000000000000022e49Initial program 66.3%
+-commutative66.3%
*-commutative66.3%
associate-/l*90.4%
fma-define90.5%
Simplified90.5%
Taylor expanded in a around inf 41.3%
if -4.20000000000000022e49 < a < 2.59999999999999982e80Initial program 65.1%
associate-/l*68.8%
Simplified68.8%
Taylor expanded in y around 0 23.8%
mul-1-neg23.8%
associate-/l*32.8%
distribute-lft-neg-out32.8%
*-commutative32.8%
Simplified32.8%
Taylor expanded in z around inf 43.8%
associate-/l*48.4%
Simplified48.4%
Taylor expanded in t around 0 45.6%
neg-mul-145.6%
Simplified45.6%
Taylor expanded in t around inf 37.4%
if 2.59999999999999982e80 < a Initial program 59.5%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in t around inf 59.9%
associate-/l*85.1%
Simplified85.1%
Taylor expanded in z around inf 48.5%
(FPCore (x y z t a) :precision binary64 (if (<= a -3.9e+49) x (if (<= a 4e+80) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -3.9e+49) {
tmp = x;
} else if (a <= 4e+80) {
tmp = t;
} 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 <= (-3.9d+49)) then
tmp = x
else if (a <= 4d+80) then
tmp = t
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 <= -3.9e+49) {
tmp = x;
} else if (a <= 4e+80) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -3.9e+49: tmp = x elif a <= 4e+80: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -3.9e+49) tmp = x; elseif (a <= 4e+80) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -3.9e+49) tmp = x; elseif (a <= 4e+80) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -3.9e+49], x, If[LessEqual[a, 4e+80], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.9 \cdot 10^{+49}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 4 \cdot 10^{+80}:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -3.9000000000000001e49 or 4e80 < a Initial program 63.2%
+-commutative63.2%
*-commutative63.2%
associate-/l*90.8%
fma-define90.8%
Simplified90.8%
Taylor expanded in a around inf 43.6%
if -3.9000000000000001e49 < a < 4e80Initial program 65.1%
associate-/l*68.8%
Simplified68.8%
Taylor expanded in y around 0 23.8%
mul-1-neg23.8%
associate-/l*32.8%
distribute-lft-neg-out32.8%
*-commutative32.8%
Simplified32.8%
Taylor expanded in z around inf 43.8%
associate-/l*48.4%
Simplified48.4%
Taylor expanded in t around 0 45.6%
neg-mul-145.6%
Simplified45.6%
Taylor expanded in t around inf 37.4%
(FPCore (x y z t a) :precision binary64 t)
double code(double x, double y, double z, double t, double a) {
return 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 = t
end function
public static double code(double x, double y, double z, double t, double a) {
return t;
}
def code(x, y, z, t, a): return t
function code(x, y, z, t, a) return t end
function tmp = code(x, y, z, t, a) tmp = t; end
code[x_, y_, z_, t_, a_] := t
\begin{array}{l}
\\
t
\end{array}
Initial program 64.3%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in y around 0 33.8%
mul-1-neg33.8%
associate-/l*43.4%
distribute-lft-neg-out43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in z around inf 33.2%
associate-/l*38.3%
Simplified38.3%
Taylor expanded in t around 0 36.7%
neg-mul-136.7%
Simplified36.7%
Taylor expanded in t around inf 28.3%
(FPCore (x y z t a) :precision binary64 0.0)
double code(double x, double y, double z, double t, double a) {
return 0.0;
}
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 = 0.0d0
end function
public static double code(double x, double y, double z, double t, double a) {
return 0.0;
}
def code(x, y, z, t, a): return 0.0
function code(x, y, z, t, a) return 0.0 end
function tmp = code(x, y, z, t, a) tmp = 0.0; end
code[x_, y_, z_, t_, a_] := 0.0
\begin{array}{l}
\\
0
\end{array}
Initial program 64.3%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in y around 0 33.8%
mul-1-neg33.8%
associate-/l*43.4%
distribute-lft-neg-out43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in a around 0 20.8%
associate-*r/20.8%
neg-mul-120.8%
sub-neg20.8%
+-commutative20.8%
distribute-neg-in20.8%
remove-double-neg20.8%
Simplified20.8%
Taylor expanded in t around 0 2.8%
distribute-rgt1-in2.8%
metadata-eval2.8%
mul0-lft2.8%
Simplified2.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (- t (* (/ y z) (- t x)))))
(if (< z -1.2536131056095036e+188)
t_1
(if (< z 4.446702369113811e+64)
(+ x (/ (- y z) (/ (- a z) (- t x))))
t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} 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 = t - ((y / z) * (t - x))
if (z < (-1.2536131056095036d+188)) then
tmp = t_1
else if (z < 4.446702369113811d+64) then
tmp = x + ((y - z) / ((a - z) / (t - x)))
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 = t - ((y / z) * (t - x));
double tmp;
if (z < -1.2536131056095036e+188) {
tmp = t_1;
} else if (z < 4.446702369113811e+64) {
tmp = x + ((y - z) / ((a - z) / (t - x)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t - ((y / z) * (t - x)) tmp = 0 if z < -1.2536131056095036e+188: tmp = t_1 elif z < 4.446702369113811e+64: tmp = x + ((y - z) / ((a - z) / (t - x))) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(t - Float64(Float64(y / z) * Float64(t - x))) tmp = 0.0 if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = Float64(x + Float64(Float64(y - z) / Float64(Float64(a - z) / Float64(t - x)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t - ((y / z) * (t - x)); tmp = 0.0; if (z < -1.2536131056095036e+188) tmp = t_1; elseif (z < 4.446702369113811e+64) tmp = x + ((y - z) / ((a - z) / (t - x))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t - N[(N[(y / z), $MachinePrecision] * N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -1.2536131056095036e+188], t$95$1, If[Less[z, 4.446702369113811e+64], N[(x + N[(N[(y - z), $MachinePrecision] / N[(N[(a - z), $MachinePrecision] / N[(t - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t - \frac{y}{z} \cdot \left(t - x\right)\\
\mathbf{if}\;z < -1.2536131056095036 \cdot 10^{+188}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 4.446702369113811 \cdot 10^{+64}:\\
\;\;\;\;x + \frac{y - z}{\frac{a - z}{t - x}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024139
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(! :herbie-platform default (if (< z -125361310560950360000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- t (* (/ y z) (- t x))) (if (< z 44467023691138110000000000000000000000000000000000000000000000000) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x))))))
(+ x (/ (* (- y z) (- t x)) (- a z))))