
(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 20 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 -2e-279)
t_2
(if (<= t_2 0.0)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= t_2 5e+289) 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 <= -2e-279) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_2 <= 5e+289) {
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 <= -2e-279) {
tmp = t_2;
} else if (t_2 <= 0.0) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (t_2 <= 5e+289) {
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 <= -2e-279: tmp = t_2 elif t_2 <= 0.0: tmp = t + (((t - x) * (a - y)) / z) elif t_2 <= 5e+289: 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 <= -2e-279) tmp = t_2; elseif (t_2 <= 0.0) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (t_2 <= 5e+289) 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 <= -2e-279) tmp = t_2; elseif (t_2 <= 0.0) tmp = t + (((t - x) * (a - y)) / z); elseif (t_2 <= 5e+289) 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, -2e-279], t$95$2, If[LessEqual[t$95$2, 0.0], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 5e+289], 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 -2 \cdot 10^{-279}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 0:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{+289}:\\
\;\;\;\;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 5.00000000000000031e289 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 36.6%
associate-/l*85.8%
Simplified85.8%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -2.00000000000000011e-279 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 5.00000000000000031e289Initial program 98.3%
if -2.00000000000000011e-279 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.2%
associate-/l*4.0%
Simplified4.0%
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.8%
mul-1-neg99.8%
distribute-lft-out--99.8%
associate-*r/99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-rgt-out--99.8%
Simplified99.8%
Final simplification93.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))) (t_2 (/ (- t x) z)))
(if (or (<= t_1 -2e-279) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+
t
(- (* a t_2) (- (* y t_2) (* a (/ (* (- t x) (- a y)) (pow z 2.0)))))))))
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 = (t - x) / z;
double tmp;
if ((t_1 <= -2e-279) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((a * t_2) - ((y * t_2) - (a * (((t - x) * (a - y)) / pow(z, 2.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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
t_2 = (t - x) / z
if ((t_1 <= (-2d-279)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + ((a * t_2) - ((y * t_2) - (a * (((t - x) * (a - y)) / (z ** 2.0d0)))))
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 t_2 = (t - x) / z;
double tmp;
if ((t_1 <= -2e-279) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + ((a * t_2) - ((y * t_2) - (a * (((t - x) * (a - y)) / Math.pow(z, 2.0)))));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) t_2 = (t - x) / z tmp = 0 if (t_1 <= -2e-279) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + ((a * t_2) - ((y * t_2) - (a * (((t - x) * (a - y)) / math.pow(z, 2.0))))) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - z) * Float64(t - x)) / Float64(a - z))) t_2 = Float64(Float64(t - x) / z) tmp = 0.0 if ((t_1 <= -2e-279) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(t - x) / Float64(Float64(a - z) / Float64(y - z)))); else tmp = Float64(t + Float64(Float64(a * t_2) - Float64(Float64(y * t_2) - Float64(a * Float64(Float64(Float64(t - x) * Float64(a - y)) / (z ^ 2.0)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - z) * (t - x)) / (a - z)); t_2 = (t - x) / z; tmp = 0.0; if ((t_1 <= -2e-279) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + ((a * t_2) - ((y * t_2) - (a * (((t - x) * (a - y)) / (z ^ 2.0))))); 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]}, Block[{t$95$2 = N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -2e-279], 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[(a * t$95$2), $MachinePrecision] - N[(N[(y * t$95$2), $MachinePrecision] - N[(a * N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - z\right) \cdot \left(t - x\right)}{a - z}\\
t_2 := \frac{t - x}{z}\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{-279} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{t - x}{\frac{a - z}{y - z}}\\
\mathbf{else}:\\
\;\;\;\;t + \left(a \cdot t\_2 - \left(y \cdot t\_2 - a \cdot \frac{\left(t - x\right) \cdot \left(a - y\right)}{{z}^{2}}\right)\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -2.00000000000000011e-279 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 73.1%
associate-/l*86.4%
Simplified86.4%
*-commutative86.4%
associate-*l/73.1%
associate-*r/92.3%
clear-num92.3%
un-div-inv92.8%
Applied egg-rr92.8%
if -2.00000000000000011e-279 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.2%
associate-/l*4.0%
Simplified4.0%
*-commutative4.0%
associate-*l/4.2%
associate-*r/4.2%
clear-num4.2%
un-div-inv4.2%
Applied egg-rr4.2%
Taylor expanded in z around inf 99.8%
associate--l+99.8%
sub-neg99.8%
Simplified100.0%
Final simplification93.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y z) (- t x)) (- a z)))))
(if (or (<= t_1 -2e-279) (not (<= t_1 0.0)))
(+ x (/ (- t x) (/ (- a z) (- y z))))
(+ t (/ (* (- t x) (- a y)) 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 <= -2e-279) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + (((t - x) * (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) :: t_1
real(8) :: tmp
t_1 = x + (((y - z) * (t - x)) / (a - z))
if ((t_1 <= (-2d-279)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((t - x) / ((a - z) / (y - z)))
else
tmp = t + (((t - x) * (a - y)) / 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 <= -2e-279) || !(t_1 <= 0.0)) {
tmp = x + ((t - x) / ((a - z) / (y - z)));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - z) * (t - x)) / (a - z)) tmp = 0 if (t_1 <= -2e-279) or not (t_1 <= 0.0): tmp = x + ((t - x) / ((a - z) / (y - z))) else: tmp = t + (((t - x) * (a - y)) / 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 <= -2e-279) || !(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(a - y)) / 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 <= -2e-279) || ~((t_1 <= 0.0))) tmp = x + ((t - x) / ((a - z) / (y - z))); else tmp = t + (((t - x) * (a - y)) / 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, -2e-279], 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[(a - y), $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 -2 \cdot 10^{-279} \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(a - y\right)}{z}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < -2.00000000000000011e-279 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) Initial program 73.1%
associate-/l*86.4%
Simplified86.4%
*-commutative86.4%
associate-*l/73.1%
associate-*r/92.3%
clear-num92.3%
un-div-inv92.8%
Applied egg-rr92.8%
if -2.00000000000000011e-279 < (+.f64 x (/.f64 (*.f64 (-.f64 y z) (-.f64 t x)) (-.f64 a z))) < 0.0Initial program 4.2%
associate-/l*4.0%
Simplified4.0%
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.8%
mul-1-neg99.8%
distribute-lft-out--99.8%
associate-*r/99.8%
mul-1-neg99.8%
unsub-neg99.8%
distribute-rgt-out--99.8%
Simplified99.8%
Final simplification93.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (+ x (* (- y z) (/ (- t x) a)))))
(if (<= a -4.8e+30)
t_2
(if (<= a -5.8e-124)
t_1
(if (<= a -7.5e-151)
(* x (+ (/ (- y z) (- z a)) 1.0))
(if (<= a -9.2e-224)
t_1
(if (<= a 4.7e-176)
(+ t (/ (* y (- x t)) z))
(if (<= a 1050.0) (+ t (* (- x t) (/ y z))) t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = x + ((y - z) * ((t - x) / a));
double tmp;
if (a <= -4.8e+30) {
tmp = t_2;
} else if (a <= -5.8e-124) {
tmp = t_1;
} else if (a <= -7.5e-151) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} else if (a <= -9.2e-224) {
tmp = t_1;
} else if (a <= 4.7e-176) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 1050.0) {
tmp = t + ((x - t) * (y / z));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
t_2 = x + ((y - z) * ((t - x) / a))
if (a <= (-4.8d+30)) then
tmp = t_2
else if (a <= (-5.8d-124)) then
tmp = t_1
else if (a <= (-7.5d-151)) then
tmp = x * (((y - z) / (z - a)) + 1.0d0)
else if (a <= (-9.2d-224)) then
tmp = t_1
else if (a <= 4.7d-176) then
tmp = t + ((y * (x - t)) / z)
else if (a <= 1050.0d0) then
tmp = t + ((x - t) * (y / z))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = x + ((y - z) * ((t - x) / a));
double tmp;
if (a <= -4.8e+30) {
tmp = t_2;
} else if (a <= -5.8e-124) {
tmp = t_1;
} else if (a <= -7.5e-151) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} else if (a <= -9.2e-224) {
tmp = t_1;
} else if (a <= 4.7e-176) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 1050.0) {
tmp = t + ((x - t) * (y / z));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) t_2 = x + ((y - z) * ((t - x) / a)) tmp = 0 if a <= -4.8e+30: tmp = t_2 elif a <= -5.8e-124: tmp = t_1 elif a <= -7.5e-151: tmp = x * (((y - z) / (z - a)) + 1.0) elif a <= -9.2e-224: tmp = t_1 elif a <= 4.7e-176: tmp = t + ((y * (x - t)) / z) elif a <= 1050.0: tmp = t + ((x - t) * (y / z)) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / a))) tmp = 0.0 if (a <= -4.8e+30) tmp = t_2; elseif (a <= -5.8e-124) tmp = t_1; elseif (a <= -7.5e-151) tmp = Float64(x * Float64(Float64(Float64(y - z) / Float64(z - a)) + 1.0)); elseif (a <= -9.2e-224) tmp = t_1; elseif (a <= 4.7e-176) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); elseif (a <= 1050.0) tmp = Float64(t + Float64(Float64(x - t) * Float64(y / z))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); t_2 = x + ((y - z) * ((t - x) / a)); tmp = 0.0; if (a <= -4.8e+30) tmp = t_2; elseif (a <= -5.8e-124) tmp = t_1; elseif (a <= -7.5e-151) tmp = x * (((y - z) / (z - a)) + 1.0); elseif (a <= -9.2e-224) tmp = t_1; elseif (a <= 4.7e-176) tmp = t + ((y * (x - t)) / z); elseif (a <= 1050.0) tmp = t + ((x - t) * (y / z)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.8e+30], t$95$2, If[LessEqual[a, -5.8e-124], t$95$1, If[LessEqual[a, -7.5e-151], N[(x * N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -9.2e-224], t$95$1, If[LessEqual[a, 4.7e-176], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1050.0], N[(t + N[(N[(x - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -4.8 \cdot 10^{+30}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-151}:\\
\;\;\;\;x \cdot \left(\frac{y - z}{z - a} + 1\right)\\
\mathbf{elif}\;a \leq -9.2 \cdot 10^{-224}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.7 \cdot 10^{-176}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{elif}\;a \leq 1050:\\
\;\;\;\;t + \left(x - t\right) \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -4.7999999999999999e30 or 1050 < a Initial program 66.9%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in a around inf 78.6%
if -4.7999999999999999e30 < a < -5.8000000000000004e-124 or -7.5000000000000004e-151 < a < -9.1999999999999995e-224Initial program 73.7%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in x around 0 66.5%
associate-/l*76.3%
Simplified76.3%
if -5.8000000000000004e-124 < a < -7.5000000000000004e-151Initial program 70.5%
associate-/l*77.8%
Simplified77.8%
Taylor expanded in x around inf 70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
if -9.1999999999999995e-224 < a < 4.69999999999999984e-176Initial program 67.1%
associate-/l*67.2%
Simplified67.2%
Taylor expanded in a around 0 66.7%
associate-*r/66.7%
associate-*r*66.7%
neg-mul-166.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in y around 0 67.2%
+-commutative67.2%
div-sub67.3%
associate-/l*72.6%
mul-1-neg72.6%
unsub-neg72.6%
associate-/l*67.3%
Simplified67.3%
Taylor expanded in z around inf 99.5%
if 4.69999999999999984e-176 < a < 1050Initial program 64.6%
associate-/l*76.4%
Simplified76.4%
Taylor expanded in a around 0 48.9%
associate-*r/48.9%
associate-*r*48.9%
neg-mul-148.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in y around 0 60.8%
+-commutative60.8%
div-sub63.0%
associate-/l*59.1%
mul-1-neg59.1%
unsub-neg59.1%
associate-/l*63.0%
Simplified63.0%
Taylor expanded in y around 0 71.9%
div-sub74.0%
Simplified74.0%
clear-num73.9%
un-div-inv73.9%
Applied egg-rr73.9%
associate-/r/77.9%
Simplified77.9%
Final simplification80.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (+ x (* (- y z) (/ (- t x) a)))))
(if (<= a -7e+26)
t_2
(if (<= a -5.8e-124)
t_1
(if (<= a -8.5e-150)
(* x (+ (/ (- y z) (- z a)) 1.0))
(if (<= a -2.25e-226)
t_1
(if (<= a 2.6e-40)
(+ t (/ (* (- t x) (- a y)) z))
(if (<= a 150.0) (- t (* y (/ (- t x) z))) t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = x + ((y - z) * ((t - x) / a));
double tmp;
if (a <= -7e+26) {
tmp = t_2;
} else if (a <= -5.8e-124) {
tmp = t_1;
} else if (a <= -8.5e-150) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} else if (a <= -2.25e-226) {
tmp = t_1;
} else if (a <= 2.6e-40) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 150.0) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
t_2 = x + ((y - z) * ((t - x) / a))
if (a <= (-7d+26)) then
tmp = t_2
else if (a <= (-5.8d-124)) then
tmp = t_1
else if (a <= (-8.5d-150)) then
tmp = x * (((y - z) / (z - a)) + 1.0d0)
else if (a <= (-2.25d-226)) then
tmp = t_1
else if (a <= 2.6d-40) then
tmp = t + (((t - x) * (a - y)) / z)
else if (a <= 150.0d0) then
tmp = t - (y * ((t - x) / z))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = x + ((y - z) * ((t - x) / a));
double tmp;
if (a <= -7e+26) {
tmp = t_2;
} else if (a <= -5.8e-124) {
tmp = t_1;
} else if (a <= -8.5e-150) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} else if (a <= -2.25e-226) {
tmp = t_1;
} else if (a <= 2.6e-40) {
tmp = t + (((t - x) * (a - y)) / z);
} else if (a <= 150.0) {
tmp = t - (y * ((t - x) / z));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) t_2 = x + ((y - z) * ((t - x) / a)) tmp = 0 if a <= -7e+26: tmp = t_2 elif a <= -5.8e-124: tmp = t_1 elif a <= -8.5e-150: tmp = x * (((y - z) / (z - a)) + 1.0) elif a <= -2.25e-226: tmp = t_1 elif a <= 2.6e-40: tmp = t + (((t - x) * (a - y)) / z) elif a <= 150.0: tmp = t - (y * ((t - x) / z)) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) t_2 = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / a))) tmp = 0.0 if (a <= -7e+26) tmp = t_2; elseif (a <= -5.8e-124) tmp = t_1; elseif (a <= -8.5e-150) tmp = Float64(x * Float64(Float64(Float64(y - z) / Float64(z - a)) + 1.0)); elseif (a <= -2.25e-226) tmp = t_1; elseif (a <= 2.6e-40) tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); elseif (a <= 150.0) tmp = Float64(t - Float64(y * Float64(Float64(t - x) / z))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); t_2 = x + ((y - z) * ((t - x) / a)); tmp = 0.0; if (a <= -7e+26) tmp = t_2; elseif (a <= -5.8e-124) tmp = t_1; elseif (a <= -8.5e-150) tmp = x * (((y - z) / (z - a)) + 1.0); elseif (a <= -2.25e-226) tmp = t_1; elseif (a <= 2.6e-40) tmp = t + (((t - x) * (a - y)) / z); elseif (a <= 150.0) tmp = t - (y * ((t - x) / z)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7e+26], t$95$2, If[LessEqual[a, -5.8e-124], t$95$1, If[LessEqual[a, -8.5e-150], N[(x * N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.25e-226], t$95$1, If[LessEqual[a, 2.6e-40], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 150.0], N[(t - N[(y * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := x + \left(y - z\right) \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -7 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -5.8 \cdot 10^{-124}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-150}:\\
\;\;\;\;x \cdot \left(\frac{y - z}{z - a} + 1\right)\\
\mathbf{elif}\;a \leq -2.25 \cdot 10^{-226}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-40}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\mathbf{elif}\;a \leq 150:\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.9999999999999998e26 or 150 < a Initial program 66.9%
associate-/l*90.7%
Simplified90.7%
Taylor expanded in a around inf 78.6%
if -6.9999999999999998e26 < a < -5.8000000000000004e-124 or -8.4999999999999997e-150 < a < -2.25000000000000006e-226Initial program 73.7%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in x around 0 66.5%
associate-/l*76.3%
Simplified76.3%
if -5.8000000000000004e-124 < a < -8.4999999999999997e-150Initial program 70.5%
associate-/l*77.8%
Simplified77.8%
Taylor expanded in x around inf 70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
if -2.25000000000000006e-226 < a < 2.6000000000000001e-40Initial program 69.3%
associate-/l*72.1%
Simplified72.1%
Taylor expanded in z around inf 89.3%
associate--l+89.3%
associate-*r/89.3%
associate-*r/89.3%
mul-1-neg89.3%
div-sub89.3%
mul-1-neg89.3%
distribute-lft-out--89.3%
associate-*r/89.3%
mul-1-neg89.3%
unsub-neg89.3%
distribute-rgt-out--89.3%
Simplified89.3%
if 2.6000000000000001e-40 < a < 150Initial program 45.5%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in a around 0 37.7%
associate-*r/37.7%
associate-*r*37.7%
neg-mul-137.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in y around 0 75.8%
+-commutative75.8%
div-sub75.8%
associate-/l*53.2%
mul-1-neg53.2%
unsub-neg53.2%
associate-/l*75.8%
Simplified75.8%
Taylor expanded in y around 0 84.3%
div-sub84.3%
Simplified84.3%
Final simplification80.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- x t)) z)) (t_2 (* t (/ (- y z) (- a z)))))
(if (<= a -1.85e+146)
x
(if (<= a -1e-231)
t_2
(if (<= a -1.25e-281)
t_1
(if (<= a 2.6e-107)
t_2
(if (<= a 1.25e-59) t_1 (if (<= a 1.2e+209) t_2 x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (x - t)) / z;
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (a <= -1.85e+146) {
tmp = x;
} else if (a <= -1e-231) {
tmp = t_2;
} else if (a <= -1.25e-281) {
tmp = t_1;
} else if (a <= 2.6e-107) {
tmp = t_2;
} else if (a <= 1.25e-59) {
tmp = t_1;
} else if (a <= 1.2e+209) {
tmp = t_2;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * (x - t)) / z
t_2 = t * ((y - z) / (a - z))
if (a <= (-1.85d+146)) then
tmp = x
else if (a <= (-1d-231)) then
tmp = t_2
else if (a <= (-1.25d-281)) then
tmp = t_1
else if (a <= 2.6d-107) then
tmp = t_2
else if (a <= 1.25d-59) then
tmp = t_1
else if (a <= 1.2d+209) then
tmp = t_2
else
tmp = x
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 - t)) / z;
double t_2 = t * ((y - z) / (a - z));
double tmp;
if (a <= -1.85e+146) {
tmp = x;
} else if (a <= -1e-231) {
tmp = t_2;
} else if (a <= -1.25e-281) {
tmp = t_1;
} else if (a <= 2.6e-107) {
tmp = t_2;
} else if (a <= 1.25e-59) {
tmp = t_1;
} else if (a <= 1.2e+209) {
tmp = t_2;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * (x - t)) / z t_2 = t * ((y - z) / (a - z)) tmp = 0 if a <= -1.85e+146: tmp = x elif a <= -1e-231: tmp = t_2 elif a <= -1.25e-281: tmp = t_1 elif a <= 2.6e-107: tmp = t_2 elif a <= 1.25e-59: tmp = t_1 elif a <= 1.2e+209: tmp = t_2 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y * Float64(x - t)) / z) t_2 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (a <= -1.85e+146) tmp = x; elseif (a <= -1e-231) tmp = t_2; elseif (a <= -1.25e-281) tmp = t_1; elseif (a <= 2.6e-107) tmp = t_2; elseif (a <= 1.25e-59) tmp = t_1; elseif (a <= 1.2e+209) tmp = t_2; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y * (x - t)) / z; t_2 = t * ((y - z) / (a - z)); tmp = 0.0; if (a <= -1.85e+146) tmp = x; elseif (a <= -1e-231) tmp = t_2; elseif (a <= -1.25e-281) tmp = t_1; elseif (a <= 2.6e-107) tmp = t_2; elseif (a <= 1.25e-59) tmp = t_1; elseif (a <= 1.2e+209) tmp = t_2; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.85e+146], x, If[LessEqual[a, -1e-231], t$95$2, If[LessEqual[a, -1.25e-281], t$95$1, If[LessEqual[a, 2.6e-107], t$95$2, If[LessEqual[a, 1.25e-59], t$95$1, If[LessEqual[a, 1.2e+209], t$95$2, x]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(x - t\right)}{z}\\
t_2 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -1.85 \cdot 10^{+146}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-231}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.25 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{+209}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.85000000000000002e146 or 1.19999999999999998e209 < a Initial program 65.2%
associate-/l*94.6%
Simplified94.6%
Taylor expanded in a around inf 60.3%
if -1.85000000000000002e146 < a < -9.9999999999999999e-232 or -1.2499999999999999e-281 < a < 2.6000000000000001e-107 or 1.25e-59 < a < 1.19999999999999998e209Initial program 67.2%
associate-/l*75.9%
Simplified75.9%
Taylor expanded in x around 0 46.2%
associate-/l*62.6%
Simplified62.6%
if -9.9999999999999999e-232 < a < -1.2499999999999999e-281 or 2.6000000000000001e-107 < a < 1.25e-59Initial program 84.4%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in a around 0 79.4%
associate-*r/79.4%
associate-*r*79.4%
neg-mul-179.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in y around -inf 84.2%
Final simplification63.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= a -9.5e+29)
(+ x (/ (- y z) (/ a t)))
(if (<= a -8.5e-120)
t_1
(if (<= a -9.6e-150)
(* x (+ (/ (- y z) (- z a)) 1.0))
(if (<= a -5e-221)
t_1
(if (<= a 4.7e-176)
(+ t (/ (* y (- x t)) z))
(if (<= a 0.0115)
(+ t (* (- x t) (/ y z)))
(+ x (* y (/ (- t x) a)))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -9.5e+29) {
tmp = x + ((y - z) / (a / t));
} else if (a <= -8.5e-120) {
tmp = t_1;
} else if (a <= -9.6e-150) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} else if (a <= -5e-221) {
tmp = t_1;
} else if (a <= 4.7e-176) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 0.0115) {
tmp = t + ((x - t) * (y / 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) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (a <= (-9.5d+29)) then
tmp = x + ((y - z) / (a / t))
else if (a <= (-8.5d-120)) then
tmp = t_1
else if (a <= (-9.6d-150)) then
tmp = x * (((y - z) / (z - a)) + 1.0d0)
else if (a <= (-5d-221)) then
tmp = t_1
else if (a <= 4.7d-176) then
tmp = t + ((y * (x - t)) / z)
else if (a <= 0.0115d0) then
tmp = t + ((x - t) * (y / 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 t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -9.5e+29) {
tmp = x + ((y - z) / (a / t));
} else if (a <= -8.5e-120) {
tmp = t_1;
} else if (a <= -9.6e-150) {
tmp = x * (((y - z) / (z - a)) + 1.0);
} else if (a <= -5e-221) {
tmp = t_1;
} else if (a <= 4.7e-176) {
tmp = t + ((y * (x - t)) / z);
} else if (a <= 0.0115) {
tmp = t + ((x - t) * (y / z));
} else {
tmp = x + (y * ((t - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if a <= -9.5e+29: tmp = x + ((y - z) / (a / t)) elif a <= -8.5e-120: tmp = t_1 elif a <= -9.6e-150: tmp = x * (((y - z) / (z - a)) + 1.0) elif a <= -5e-221: tmp = t_1 elif a <= 4.7e-176: tmp = t + ((y * (x - t)) / z) elif a <= 0.0115: tmp = t + ((x - t) * (y / z)) else: tmp = x + (y * ((t - x) / a)) return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (a <= -9.5e+29) tmp = Float64(x + Float64(Float64(y - z) / Float64(a / t))); elseif (a <= -8.5e-120) tmp = t_1; elseif (a <= -9.6e-150) tmp = Float64(x * Float64(Float64(Float64(y - z) / Float64(z - a)) + 1.0)); elseif (a <= -5e-221) tmp = t_1; elseif (a <= 4.7e-176) tmp = Float64(t + Float64(Float64(y * Float64(x - t)) / z)); elseif (a <= 0.0115) tmp = Float64(t + Float64(Float64(x - t) * Float64(y / 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) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (a <= -9.5e+29) tmp = x + ((y - z) / (a / t)); elseif (a <= -8.5e-120) tmp = t_1; elseif (a <= -9.6e-150) tmp = x * (((y - z) / (z - a)) + 1.0); elseif (a <= -5e-221) tmp = t_1; elseif (a <= 4.7e-176) tmp = t + ((y * (x - t)) / z); elseif (a <= 0.0115) tmp = t + ((x - t) * (y / z)); else tmp = x + (y * ((t - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -9.5e+29], N[(x + N[(N[(y - z), $MachinePrecision] / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.5e-120], t$95$1, If[LessEqual[a, -9.6e-150], N[(x * N[(N[(N[(y - z), $MachinePrecision] / N[(z - a), $MachinePrecision]), $MachinePrecision] + 1.0), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -5e-221], t$95$1, If[LessEqual[a, 4.7e-176], N[(t + N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.0115], N[(t + N[(N[(x - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -9.5 \cdot 10^{+29}:\\
\;\;\;\;x + \frac{y - z}{\frac{a}{t}}\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-120}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -9.6 \cdot 10^{-150}:\\
\;\;\;\;x \cdot \left(\frac{y - z}{z - a} + 1\right)\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-221}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 4.7 \cdot 10^{-176}:\\
\;\;\;\;t + \frac{y \cdot \left(x - t\right)}{z}\\
\mathbf{elif}\;a \leq 0.0115:\\
\;\;\;\;t + \left(x - t\right) \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if a < -9.5000000000000003e29Initial program 67.8%
associate-/l*90.9%
Simplified90.9%
clear-num90.1%
un-div-inv90.3%
Applied egg-rr90.3%
Taylor expanded in a around inf 79.3%
Taylor expanded in t around inf 75.8%
if -9.5000000000000003e29 < a < -8.50000000000000059e-120 or -9.6e-150 < a < -4.99999999999999996e-221Initial program 73.7%
associate-/l*68.1%
Simplified68.1%
Taylor expanded in x around 0 66.5%
associate-/l*76.3%
Simplified76.3%
if -8.50000000000000059e-120 < a < -9.6e-150Initial program 70.5%
associate-/l*77.8%
Simplified77.8%
Taylor expanded in x around inf 70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
if -4.99999999999999996e-221 < a < 4.69999999999999984e-176Initial program 67.1%
associate-/l*67.2%
Simplified67.2%
Taylor expanded in a around 0 66.7%
associate-*r/66.7%
associate-*r*66.7%
neg-mul-166.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in y around 0 67.2%
+-commutative67.2%
div-sub67.3%
associate-/l*72.6%
mul-1-neg72.6%
unsub-neg72.6%
associate-/l*67.3%
Simplified67.3%
Taylor expanded in z around inf 99.5%
if 4.69999999999999984e-176 < a < 0.0115Initial program 62.1%
associate-/l*76.9%
Simplified76.9%
Taylor expanded in a around 0 47.6%
associate-*r/47.6%
associate-*r*47.6%
neg-mul-147.6%
*-commutative47.6%
Simplified47.6%
Taylor expanded in y around 0 60.3%
+-commutative60.3%
div-sub62.6%
associate-/l*58.4%
mul-1-neg58.4%
unsub-neg58.4%
associate-/l*62.6%
Simplified62.6%
Taylor expanded in y around 0 72.1%
div-sub74.4%
Simplified74.4%
clear-num74.2%
un-div-inv74.3%
Applied egg-rr74.3%
associate-/r/78.6%
Simplified78.6%
if 0.0115 < a Initial program 67.6%
associate-/l*89.4%
Simplified89.4%
Taylor expanded in z around 0 55.2%
associate-/l*70.8%
Simplified70.8%
Final simplification77.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- x t)) z)) (t_2 (* t (- 1.0 (/ y z)))))
(if (<= a -1.9e+48)
x
(if (<= a -1e-231)
t_2
(if (<= a -1.1e-281)
t_1
(if (<= a 2.6e-107)
t_2
(if (<= a 1.25e-59) t_1 (if (<= a 27000000000.0) t_2 x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (x - t)) / z;
double t_2 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.9e+48) {
tmp = x;
} else if (a <= -1e-231) {
tmp = t_2;
} else if (a <= -1.1e-281) {
tmp = t_1;
} else if (a <= 2.6e-107) {
tmp = t_2;
} else if (a <= 1.25e-59) {
tmp = t_1;
} else if (a <= 27000000000.0) {
tmp = t_2;
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * (x - t)) / z
t_2 = t * (1.0d0 - (y / z))
if (a <= (-1.9d+48)) then
tmp = x
else if (a <= (-1d-231)) then
tmp = t_2
else if (a <= (-1.1d-281)) then
tmp = t_1
else if (a <= 2.6d-107) then
tmp = t_2
else if (a <= 1.25d-59) then
tmp = t_1
else if (a <= 27000000000.0d0) then
tmp = t_2
else
tmp = x
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 - t)) / z;
double t_2 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.9e+48) {
tmp = x;
} else if (a <= -1e-231) {
tmp = t_2;
} else if (a <= -1.1e-281) {
tmp = t_1;
} else if (a <= 2.6e-107) {
tmp = t_2;
} else if (a <= 1.25e-59) {
tmp = t_1;
} else if (a <= 27000000000.0) {
tmp = t_2;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * (x - t)) / z t_2 = t * (1.0 - (y / z)) tmp = 0 if a <= -1.9e+48: tmp = x elif a <= -1e-231: tmp = t_2 elif a <= -1.1e-281: tmp = t_1 elif a <= 2.6e-107: tmp = t_2 elif a <= 1.25e-59: tmp = t_1 elif a <= 27000000000.0: tmp = t_2 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y * Float64(x - t)) / z) t_2 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -1.9e+48) tmp = x; elseif (a <= -1e-231) tmp = t_2; elseif (a <= -1.1e-281) tmp = t_1; elseif (a <= 2.6e-107) tmp = t_2; elseif (a <= 1.25e-59) tmp = t_1; elseif (a <= 27000000000.0) tmp = t_2; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y * (x - t)) / z; t_2 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -1.9e+48) tmp = x; elseif (a <= -1e-231) tmp = t_2; elseif (a <= -1.1e-281) tmp = t_1; elseif (a <= 2.6e-107) tmp = t_2; elseif (a <= 1.25e-59) tmp = t_1; elseif (a <= 27000000000.0) tmp = t_2; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e+48], x, If[LessEqual[a, -1e-231], t$95$2, If[LessEqual[a, -1.1e-281], t$95$1, If[LessEqual[a, 2.6e-107], t$95$2, If[LessEqual[a, 1.25e-59], t$95$1, If[LessEqual[a, 27000000000.0], t$95$2, x]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(x - t\right)}{z}\\
t_2 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{+48}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-231}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 27000000000:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.9e48 or 2.7e10 < a Initial program 66.7%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in a around inf 47.1%
if -1.9e48 < a < -9.9999999999999999e-232 or -1.10000000000000002e-281 < a < 2.6000000000000001e-107 or 1.25e-59 < a < 2.7e10Initial program 66.7%
associate-/l*71.9%
Simplified71.9%
Taylor expanded in a around 0 44.4%
associate-*r/44.4%
associate-*r*44.4%
neg-mul-144.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in y around 0 55.5%
+-commutative55.5%
div-sub56.2%
associate-/l*51.1%
mul-1-neg51.1%
unsub-neg51.1%
associate-/l*56.2%
Simplified56.2%
Taylor expanded in x around 0 51.9%
*-rgt-identity51.9%
mul-1-neg51.9%
associate-/l*57.7%
distribute-rgt-neg-in57.7%
mul-1-neg57.7%
distribute-lft-in57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
if -9.9999999999999999e-232 < a < -1.10000000000000002e-281 or 2.6000000000000001e-107 < a < 1.25e-59Initial program 84.4%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in a around 0 79.4%
associate-*r/79.4%
associate-*r*79.4%
neg-mul-179.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in y around -inf 84.2%
Final simplification55.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (* y (- x t)) z)) (t_2 (* t (- 1.0 (/ y z)))))
(if (<= a -8.8e+42)
x
(if (<= a -1e-231)
t_2
(if (<= a -1.1e-281)
t_1
(if (<= a 2.2e-107)
t_2
(if (<= a 1.25e-59)
t_1
(if (<= a 29500000000.0) (- t (* y (/ t z))) x))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (y * (x - t)) / z;
double t_2 = t * (1.0 - (y / z));
double tmp;
if (a <= -8.8e+42) {
tmp = x;
} else if (a <= -1e-231) {
tmp = t_2;
} else if (a <= -1.1e-281) {
tmp = t_1;
} else if (a <= 2.2e-107) {
tmp = t_2;
} else if (a <= 1.25e-59) {
tmp = t_1;
} else if (a <= 29500000000.0) {
tmp = t - (y * (t / z));
} 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * (x - t)) / z
t_2 = t * (1.0d0 - (y / z))
if (a <= (-8.8d+42)) then
tmp = x
else if (a <= (-1d-231)) then
tmp = t_2
else if (a <= (-1.1d-281)) then
tmp = t_1
else if (a <= 2.2d-107) then
tmp = t_2
else if (a <= 1.25d-59) then
tmp = t_1
else if (a <= 29500000000.0d0) then
tmp = t - (y * (t / z))
else
tmp = x
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 - t)) / z;
double t_2 = t * (1.0 - (y / z));
double tmp;
if (a <= -8.8e+42) {
tmp = x;
} else if (a <= -1e-231) {
tmp = t_2;
} else if (a <= -1.1e-281) {
tmp = t_1;
} else if (a <= 2.2e-107) {
tmp = t_2;
} else if (a <= 1.25e-59) {
tmp = t_1;
} else if (a <= 29500000000.0) {
tmp = t - (y * (t / z));
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (y * (x - t)) / z t_2 = t * (1.0 - (y / z)) tmp = 0 if a <= -8.8e+42: tmp = x elif a <= -1e-231: tmp = t_2 elif a <= -1.1e-281: tmp = t_1 elif a <= 2.2e-107: tmp = t_2 elif a <= 1.25e-59: tmp = t_1 elif a <= 29500000000.0: tmp = t - (y * (t / z)) else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(y * Float64(x - t)) / z) t_2 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -8.8e+42) tmp = x; elseif (a <= -1e-231) tmp = t_2; elseif (a <= -1.1e-281) tmp = t_1; elseif (a <= 2.2e-107) tmp = t_2; elseif (a <= 1.25e-59) tmp = t_1; elseif (a <= 29500000000.0) tmp = Float64(t - Float64(y * Float64(t / z))); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (y * (x - t)) / z; t_2 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -8.8e+42) tmp = x; elseif (a <= -1e-231) tmp = t_2; elseif (a <= -1.1e-281) tmp = t_1; elseif (a <= 2.2e-107) tmp = t_2; elseif (a <= 1.25e-59) tmp = t_1; elseif (a <= 29500000000.0) tmp = t - (y * (t / z)); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(y * N[(x - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.8e+42], x, If[LessEqual[a, -1e-231], t$95$2, If[LessEqual[a, -1.1e-281], t$95$1, If[LessEqual[a, 2.2e-107], t$95$2, If[LessEqual[a, 1.25e-59], t$95$1, If[LessEqual[a, 29500000000.0], N[(t - N[(y * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], x]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(x - t\right)}{z}\\
t_2 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -8.8 \cdot 10^{+42}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-231}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.1 \cdot 10^{-281}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-107}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 29500000000:\\
\;\;\;\;t - y \cdot \frac{t}{z}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -8.8000000000000005e42 or 2.95e10 < a Initial program 66.7%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in a around inf 47.1%
if -8.8000000000000005e42 < a < -9.9999999999999999e-232 or -1.10000000000000002e-281 < a < 2.20000000000000012e-107Initial program 70.2%
associate-/l*71.2%
Simplified71.2%
Taylor expanded in a around 0 46.8%
associate-*r/46.8%
associate-*r*46.8%
neg-mul-146.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in y around 0 53.9%
+-commutative53.9%
div-sub54.9%
associate-/l*51.3%
mul-1-neg51.3%
unsub-neg51.3%
associate-/l*54.9%
Simplified54.9%
Taylor expanded in x around 0 52.6%
*-rgt-identity52.6%
mul-1-neg52.6%
associate-/l*57.7%
distribute-rgt-neg-in57.7%
mul-1-neg57.7%
distribute-lft-in57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
if -9.9999999999999999e-232 < a < -1.10000000000000002e-281 or 2.20000000000000012e-107 < a < 1.25e-59Initial program 84.4%
associate-/l*79.1%
Simplified79.1%
Taylor expanded in a around 0 79.4%
associate-*r/79.4%
associate-*r*79.4%
neg-mul-179.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in y around -inf 84.2%
if 1.25e-59 < a < 2.95e10Initial program 48.2%
associate-/l*75.5%
Simplified75.5%
Taylor expanded in a around 0 31.6%
associate-*r/31.6%
associate-*r*31.6%
neg-mul-131.6%
*-commutative31.6%
Simplified31.6%
Taylor expanded in y around 0 63.7%
+-commutative63.7%
div-sub63.7%
associate-/l*50.1%
mul-1-neg50.1%
unsub-neg50.1%
associate-/l*63.7%
Simplified63.7%
Taylor expanded in y around 0 73.7%
div-sub73.7%
Simplified73.7%
Taylor expanded in x around 0 57.2%
neg-mul-157.2%
distribute-neg-frac257.2%
Simplified57.2%
Final simplification55.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))) (t_2 (* y (/ (- t x) (- a z)))))
(if (<= y -5e+158)
t_2
(if (<= y 8.5e-161)
t_1
(if (<= y 4.6e-80) x (if (<= y 1.7e+47) t_1 t_2))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double t_2 = y * ((t - x) / (a - z));
double tmp;
if (y <= -5e+158) {
tmp = t_2;
} else if (y <= 8.5e-161) {
tmp = t_1;
} else if (y <= 4.6e-80) {
tmp = x;
} else if (y <= 1.7e+47) {
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 = t * ((y - z) / (a - z))
t_2 = y * ((t - x) / (a - z))
if (y <= (-5d+158)) then
tmp = t_2
else if (y <= 8.5d-161) then
tmp = t_1
else if (y <= 4.6d-80) then
tmp = x
else if (y <= 1.7d+47) 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 = t * ((y - z) / (a - z));
double t_2 = y * ((t - x) / (a - z));
double tmp;
if (y <= -5e+158) {
tmp = t_2;
} else if (y <= 8.5e-161) {
tmp = t_1;
} else if (y <= 4.6e-80) {
tmp = x;
} else if (y <= 1.7e+47) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) t_2 = y * ((t - x) / (a - z)) tmp = 0 if y <= -5e+158: tmp = t_2 elif y <= 8.5e-161: tmp = t_1 elif y <= 4.6e-80: tmp = x elif y <= 1.7e+47: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) t_2 = Float64(y * Float64(Float64(t - x) / Float64(a - z))) tmp = 0.0 if (y <= -5e+158) tmp = t_2; elseif (y <= 8.5e-161) tmp = t_1; elseif (y <= 4.6e-80) tmp = x; elseif (y <= 1.7e+47) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); t_2 = y * ((t - x) / (a - z)); tmp = 0.0; if (y <= -5e+158) tmp = t_2; elseif (y <= 8.5e-161) tmp = t_1; elseif (y <= 4.6e-80) tmp = x; elseif (y <= 1.7e+47) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5e+158], t$95$2, If[LessEqual[y, 8.5e-161], t$95$1, If[LessEqual[y, 4.6e-80], x, If[LessEqual[y, 1.7e+47], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
t_2 := y \cdot \frac{t - x}{a - z}\\
\mathbf{if}\;y \leq -5 \cdot 10^{+158}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-161}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-80}:\\
\;\;\;\;x\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.9999999999999996e158 or 1.6999999999999999e47 < y Initial program 70.9%
associate-/l*95.5%
Simplified95.5%
Taylor expanded in y around inf 80.2%
div-sub80.2%
Simplified80.2%
if -4.9999999999999996e158 < y < 8.50000000000000054e-161 or 4.5999999999999996e-80 < y < 1.6999999999999999e47Initial program 64.9%
associate-/l*71.6%
Simplified71.6%
Taylor expanded in x around 0 43.7%
associate-/l*57.3%
Simplified57.3%
if 8.50000000000000054e-161 < y < 4.5999999999999996e-80Initial program 80.5%
associate-/l*74.4%
Simplified74.4%
Taylor expanded in a around inf 55.7%
Final simplification65.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= a -2.1e+148)
x
(if (<= a -3.6e-118)
t_1
(if (<= a 30000000000.0)
(- t (* y (/ (- t x) z)))
(if (<= a 6.2e+208) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -2.1e+148) {
tmp = x;
} else if (a <= -3.6e-118) {
tmp = t_1;
} else if (a <= 30000000000.0) {
tmp = t - (y * ((t - x) / z));
} else if (a <= 6.2e+208) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (a <= (-2.1d+148)) then
tmp = x
else if (a <= (-3.6d-118)) then
tmp = t_1
else if (a <= 30000000000.0d0) then
tmp = t - (y * ((t - x) / z))
else if (a <= 6.2d+208) then
tmp = t_1
else
tmp = x
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) / (a - z));
double tmp;
if (a <= -2.1e+148) {
tmp = x;
} else if (a <= -3.6e-118) {
tmp = t_1;
} else if (a <= 30000000000.0) {
tmp = t - (y * ((t - x) / z));
} else if (a <= 6.2e+208) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if a <= -2.1e+148: tmp = x elif a <= -3.6e-118: tmp = t_1 elif a <= 30000000000.0: tmp = t - (y * ((t - x) / z)) elif a <= 6.2e+208: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (a <= -2.1e+148) tmp = x; elseif (a <= -3.6e-118) tmp = t_1; elseif (a <= 30000000000.0) tmp = Float64(t - Float64(y * Float64(Float64(t - x) / z))); elseif (a <= 6.2e+208) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (a <= -2.1e+148) tmp = x; elseif (a <= -3.6e-118) tmp = t_1; elseif (a <= 30000000000.0) tmp = t - (y * ((t - x) / z)); elseif (a <= 6.2e+208) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.1e+148], x, If[LessEqual[a, -3.6e-118], t$95$1, If[LessEqual[a, 30000000000.0], N[(t - N[(y * N[(N[(t - x), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.2e+208], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -2.1 \cdot 10^{+148}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -3.6 \cdot 10^{-118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 30000000000:\\
\;\;\;\;t - y \cdot \frac{t - x}{z}\\
\mathbf{elif}\;a \leq 6.2 \cdot 10^{+208}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -2.09999999999999999e148 or 6.19999999999999961e208 < a Initial program 65.2%
associate-/l*94.6%
Simplified94.6%
Taylor expanded in a around inf 60.3%
if -2.09999999999999999e148 < a < -3.6000000000000002e-118 or 3e10 < a < 6.19999999999999961e208Initial program 67.4%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in x around 0 39.7%
associate-/l*59.3%
Simplified59.3%
if -3.6000000000000002e-118 < a < 3e10Initial program 69.7%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in a around 0 53.2%
associate-*r/53.2%
associate-*r*53.2%
neg-mul-153.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in y around 0 61.4%
+-commutative61.4%
div-sub62.3%
associate-/l*58.9%
mul-1-neg58.9%
unsub-neg58.9%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in y around 0 75.1%
div-sub76.0%
Simplified76.0%
Final simplification67.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (/ (- y z) (- a z)))))
(if (<= a -1.8e+145)
x
(if (<= a -2e-121)
t_1
(if (<= a 55000000000.0)
(+ t (* (- x t) (/ y z)))
(if (<= a 1.6e+209) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * ((y - z) / (a - z));
double tmp;
if (a <= -1.8e+145) {
tmp = x;
} else if (a <= -2e-121) {
tmp = t_1;
} else if (a <= 55000000000.0) {
tmp = t + ((x - t) * (y / z));
} else if (a <= 1.6e+209) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t * ((y - z) / (a - z))
if (a <= (-1.8d+145)) then
tmp = x
else if (a <= (-2d-121)) then
tmp = t_1
else if (a <= 55000000000.0d0) then
tmp = t + ((x - t) * (y / z))
else if (a <= 1.6d+209) then
tmp = t_1
else
tmp = x
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) / (a - z));
double tmp;
if (a <= -1.8e+145) {
tmp = x;
} else if (a <= -2e-121) {
tmp = t_1;
} else if (a <= 55000000000.0) {
tmp = t + ((x - t) * (y / z));
} else if (a <= 1.6e+209) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * ((y - z) / (a - z)) tmp = 0 if a <= -1.8e+145: tmp = x elif a <= -2e-121: tmp = t_1 elif a <= 55000000000.0: tmp = t + ((x - t) * (y / z)) elif a <= 1.6e+209: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(Float64(y - z) / Float64(a - z))) tmp = 0.0 if (a <= -1.8e+145) tmp = x; elseif (a <= -2e-121) tmp = t_1; elseif (a <= 55000000000.0) tmp = Float64(t + Float64(Float64(x - t) * Float64(y / z))); elseif (a <= 1.6e+209) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * ((y - z) / (a - z)); tmp = 0.0; if (a <= -1.8e+145) tmp = x; elseif (a <= -2e-121) tmp = t_1; elseif (a <= 55000000000.0) tmp = t + ((x - t) * (y / z)); elseif (a <= 1.6e+209) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.8e+145], x, If[LessEqual[a, -2e-121], t$95$1, If[LessEqual[a, 55000000000.0], N[(t + N[(N[(x - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e+209], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \frac{y - z}{a - z}\\
\mathbf{if}\;a \leq -1.8 \cdot 10^{+145}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-121}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 55000000000:\\
\;\;\;\;t + \left(x - t\right) \cdot \frac{y}{z}\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.79999999999999987e145 or 1.6e209 < a Initial program 65.2%
associate-/l*94.6%
Simplified94.6%
Taylor expanded in a around inf 60.3%
if -1.79999999999999987e145 < a < -2e-121 or 5.5e10 < a < 1.6e209Initial program 67.4%
associate-/l*80.5%
Simplified80.5%
Taylor expanded in x around 0 39.7%
associate-/l*59.3%
Simplified59.3%
if -2e-121 < a < 5.5e10Initial program 69.7%
associate-/l*73.0%
Simplified73.0%
Taylor expanded in a around 0 53.2%
associate-*r/53.2%
associate-*r*53.2%
neg-mul-153.2%
*-commutative53.2%
Simplified53.2%
Taylor expanded in y around 0 61.4%
+-commutative61.4%
div-sub62.3%
associate-/l*58.9%
mul-1-neg58.9%
unsub-neg58.9%
associate-/l*62.3%
Simplified62.3%
Taylor expanded in y around 0 75.1%
div-sub76.0%
Simplified76.0%
clear-num75.9%
un-div-inv76.0%
Applied egg-rr76.0%
associate-/r/78.3%
Simplified78.3%
Final simplification68.0%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* t (- 1.0 (/ y z)))))
(if (<= a -1.42e+48)
x
(if (<= a 1.75e-107)
t_1
(if (<= a 1.25e-59) (/ (* x y) z) (if (<= a 14000000.0) t_1 x))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.42e+48) {
tmp = x;
} else if (a <= 1.75e-107) {
tmp = t_1;
} else if (a <= 1.25e-59) {
tmp = (x * y) / z;
} else if (a <= 14000000.0) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = t * (1.0d0 - (y / z))
if (a <= (-1.42d+48)) then
tmp = x
else if (a <= 1.75d-107) then
tmp = t_1
else if (a <= 1.25d-59) then
tmp = (x * y) / z
else if (a <= 14000000.0d0) then
tmp = t_1
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = t * (1.0 - (y / z));
double tmp;
if (a <= -1.42e+48) {
tmp = x;
} else if (a <= 1.75e-107) {
tmp = t_1;
} else if (a <= 1.25e-59) {
tmp = (x * y) / z;
} else if (a <= 14000000.0) {
tmp = t_1;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = t * (1.0 - (y / z)) tmp = 0 if a <= -1.42e+48: tmp = x elif a <= 1.75e-107: tmp = t_1 elif a <= 1.25e-59: tmp = (x * y) / z elif a <= 14000000.0: tmp = t_1 else: tmp = x return tmp
function code(x, y, z, t, a) t_1 = Float64(t * Float64(1.0 - Float64(y / z))) tmp = 0.0 if (a <= -1.42e+48) tmp = x; elseif (a <= 1.75e-107) tmp = t_1; elseif (a <= 1.25e-59) tmp = Float64(Float64(x * y) / z); elseif (a <= 14000000.0) tmp = t_1; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = t * (1.0 - (y / z)); tmp = 0.0; if (a <= -1.42e+48) tmp = x; elseif (a <= 1.75e-107) tmp = t_1; elseif (a <= 1.25e-59) tmp = (x * y) / z; elseif (a <= 14000000.0) tmp = t_1; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(t * N[(1.0 - N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.42e+48], x, If[LessEqual[a, 1.75e-107], t$95$1, If[LessEqual[a, 1.25e-59], N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision], If[LessEqual[a, 14000000.0], t$95$1, x]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(1 - \frac{y}{z}\right)\\
\mathbf{if}\;a \leq -1.42 \cdot 10^{+48}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{-59}:\\
\;\;\;\;\frac{x \cdot y}{z}\\
\mathbf{elif}\;a \leq 14000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -1.42e48 or 1.4e7 < a Initial program 66.7%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in a around inf 47.1%
if -1.42e48 < a < 1.74999999999999993e-107 or 1.25e-59 < a < 1.4e7Initial program 68.0%
associate-/l*72.1%
Simplified72.1%
Taylor expanded in a around 0 47.0%
associate-*r/47.0%
associate-*r*47.0%
neg-mul-147.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in y around 0 56.7%
+-commutative56.7%
div-sub57.5%
associate-/l*53.3%
mul-1-neg53.3%
unsub-neg53.3%
associate-/l*57.5%
Simplified57.5%
Taylor expanded in x around 0 51.7%
*-rgt-identity51.7%
mul-1-neg51.7%
associate-/l*57.0%
distribute-rgt-neg-in57.0%
mul-1-neg57.0%
distribute-lft-in57.0%
mul-1-neg57.0%
unsub-neg57.0%
Simplified57.0%
if 1.74999999999999993e-107 < a < 1.25e-59Initial program 81.4%
associate-/l*81.1%
Simplified81.1%
Taylor expanded in a around 0 72.5%
associate-*r/72.5%
associate-*r*72.5%
neg-mul-172.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in x around inf 71.8%
Final simplification53.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ (- t x) a)))))
(if (<= a -2.8e+27)
t_1
(if (<= a -5e-122)
(* t (/ (- y z) (- a z)))
(if (<= a 0.00235) (+ t (* (- x t) (/ y z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * ((t - x) / a));
double tmp;
if (a <= -2.8e+27) {
tmp = t_1;
} else if (a <= -5e-122) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 0.00235) {
tmp = t + ((x - t) * (y / 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 + (y * ((t - x) / a))
if (a <= (-2.8d+27)) then
tmp = t_1
else if (a <= (-5d-122)) then
tmp = t * ((y - z) / (a - z))
else if (a <= 0.00235d0) then
tmp = t + ((x - t) * (y / 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 + (y * ((t - x) / a));
double tmp;
if (a <= -2.8e+27) {
tmp = t_1;
} else if (a <= -5e-122) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 0.00235) {
tmp = t + ((x - t) * (y / z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * ((t - x) / a)) tmp = 0 if a <= -2.8e+27: tmp = t_1 elif a <= -5e-122: tmp = t * ((y - z) / (a - z)) elif a <= 0.00235: tmp = t + ((x - t) * (y / z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(Float64(t - x) / a))) tmp = 0.0 if (a <= -2.8e+27) tmp = t_1; elseif (a <= -5e-122) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 0.00235) tmp = Float64(t + Float64(Float64(x - t) * Float64(y / z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * ((t - x) / a)); tmp = 0.0; if (a <= -2.8e+27) tmp = t_1; elseif (a <= -5e-122) tmp = t * ((y - z) / (a - z)); elseif (a <= 0.00235) tmp = t + ((x - t) * (y / z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(N[(t - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.8e+27], t$95$1, If[LessEqual[a, -5e-122], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.00235], N[(t + N[(N[(x - t), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{t - x}{a}\\
\mathbf{if}\;a \leq -2.8 \cdot 10^{+27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -5 \cdot 10^{-122}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 0.00235:\\
\;\;\;\;t + \left(x - t\right) \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.7999999999999999e27 or 0.00235000000000000009 < a Initial program 67.7%
associate-/l*90.1%
Simplified90.1%
Taylor expanded in z around 0 58.7%
associate-/l*71.7%
Simplified71.7%
if -2.7999999999999999e27 < a < -4.9999999999999999e-122Initial program 68.6%
associate-/l*68.8%
Simplified68.8%
Taylor expanded in x around 0 62.3%
associate-/l*72.3%
Simplified72.3%
if -4.9999999999999999e-122 < a < 0.00235000000000000009Initial program 68.1%
associate-/l*72.4%
Simplified72.4%
Taylor expanded in a around 0 53.3%
associate-*r/53.3%
associate-*r*53.3%
neg-mul-153.3%
*-commutative53.3%
Simplified53.3%
Taylor expanded in y around 0 61.9%
+-commutative61.9%
div-sub62.9%
associate-/l*59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*62.9%
Simplified62.9%
Taylor expanded in y around 0 76.4%
div-sub77.4%
Simplified77.4%
clear-num77.3%
un-div-inv77.3%
Applied egg-rr77.3%
associate-/r/79.8%
Simplified79.8%
Final simplification75.2%
(FPCore (x y z t a)
:precision binary64
(if (<= a -1.6e+30)
(+ x (/ (- y z) (/ a t)))
(if (<= a -3.7e-117)
(* t (/ (- y z) (- a z)))
(if (<= a 0.0054) (+ t (* (- x t) (/ y z))) (+ x (* y (/ (- t x) a)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -1.6e+30) {
tmp = x + ((y - z) / (a / t));
} else if (a <= -3.7e-117) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 0.0054) {
tmp = t + ((x - t) * (y / 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 (a <= (-1.6d+30)) then
tmp = x + ((y - z) / (a / t))
else if (a <= (-3.7d-117)) then
tmp = t * ((y - z) / (a - z))
else if (a <= 0.0054d0) then
tmp = t + ((x - t) * (y / 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 (a <= -1.6e+30) {
tmp = x + ((y - z) / (a / t));
} else if (a <= -3.7e-117) {
tmp = t * ((y - z) / (a - z));
} else if (a <= 0.0054) {
tmp = t + ((x - t) * (y / z));
} else {
tmp = x + (y * ((t - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -1.6e+30: tmp = x + ((y - z) / (a / t)) elif a <= -3.7e-117: tmp = t * ((y - z) / (a - z)) elif a <= 0.0054: tmp = t + ((x - t) * (y / z)) else: tmp = x + (y * ((t - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -1.6e+30) tmp = Float64(x + Float64(Float64(y - z) / Float64(a / t))); elseif (a <= -3.7e-117) tmp = Float64(t * Float64(Float64(y - z) / Float64(a - z))); elseif (a <= 0.0054) tmp = Float64(t + Float64(Float64(x - t) * Float64(y / 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 (a <= -1.6e+30) tmp = x + ((y - z) / (a / t)); elseif (a <= -3.7e-117) tmp = t * ((y - z) / (a - z)); elseif (a <= 0.0054) tmp = t + ((x - t) * (y / z)); else tmp = x + (y * ((t - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -1.6e+30], N[(x + N[(N[(y - z), $MachinePrecision] / N[(a / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -3.7e-117], N[(t * N[(N[(y - z), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.0054], N[(t + N[(N[(x - t), $MachinePrecision] * N[(y / 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}\;a \leq -1.6 \cdot 10^{+30}:\\
\;\;\;\;x + \frac{y - z}{\frac{a}{t}}\\
\mathbf{elif}\;a \leq -3.7 \cdot 10^{-117}:\\
\;\;\;\;t \cdot \frac{y - z}{a - z}\\
\mathbf{elif}\;a \leq 0.0054:\\
\;\;\;\;t + \left(x - t\right) \cdot \frac{y}{z}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \frac{t - x}{a}\\
\end{array}
\end{array}
if a < -1.59999999999999986e30Initial program 67.8%
associate-/l*90.9%
Simplified90.9%
clear-num90.1%
un-div-inv90.3%
Applied egg-rr90.3%
Taylor expanded in a around inf 79.3%
Taylor expanded in t around inf 75.8%
if -1.59999999999999986e30 < a < -3.7000000000000002e-117Initial program 68.6%
associate-/l*68.8%
Simplified68.8%
Taylor expanded in x around 0 62.3%
associate-/l*72.3%
Simplified72.3%
if -3.7000000000000002e-117 < a < 0.0054000000000000003Initial program 68.1%
associate-/l*72.4%
Simplified72.4%
Taylor expanded in a around 0 53.3%
associate-*r/53.3%
associate-*r*53.3%
neg-mul-153.3%
*-commutative53.3%
Simplified53.3%
Taylor expanded in y around 0 61.9%
+-commutative61.9%
div-sub62.9%
associate-/l*59.3%
mul-1-neg59.3%
unsub-neg59.3%
associate-/l*62.9%
Simplified62.9%
Taylor expanded in y around 0 76.4%
div-sub77.4%
Simplified77.4%
clear-num77.3%
un-div-inv77.3%
Applied egg-rr77.3%
associate-/r/79.8%
Simplified79.8%
if 0.0054000000000000003 < a Initial program 67.6%
associate-/l*89.4%
Simplified89.4%
Taylor expanded in z around 0 55.2%
associate-/l*70.8%
Simplified70.8%
Final simplification75.9%
(FPCore (x y z t a) :precision binary64 (if (or (<= a -9.5e-222) (not (<= a 9.5e-51))) (+ x (* (- y z) (/ (- t x) (- a z)))) (+ t (/ (* (- t x) (- a y)) z))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((a <= -9.5e-222) || !(a <= 9.5e-51)) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t + (((t - x) * (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 <= (-9.5d-222)) .or. (.not. (a <= 9.5d-51))) then
tmp = x + ((y - z) * ((t - x) / (a - z)))
else
tmp = t + (((t - x) * (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 <= -9.5e-222) || !(a <= 9.5e-51)) {
tmp = x + ((y - z) * ((t - x) / (a - z)));
} else {
tmp = t + (((t - x) * (a - y)) / z);
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (a <= -9.5e-222) or not (a <= 9.5e-51): tmp = x + ((y - z) * ((t - x) / (a - z))) else: tmp = t + (((t - x) * (a - y)) / z) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((a <= -9.5e-222) || !(a <= 9.5e-51)) tmp = Float64(x + Float64(Float64(y - z) * Float64(Float64(t - x) / Float64(a - z)))); else tmp = Float64(t + Float64(Float64(Float64(t - x) * Float64(a - y)) / z)); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((a <= -9.5e-222) || ~((a <= 9.5e-51))) tmp = x + ((y - z) * ((t - x) / (a - z))); else tmp = t + (((t - x) * (a - y)) / z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[a, -9.5e-222], N[Not[LessEqual[a, 9.5e-51]], $MachinePrecision]], N[(x + N[(N[(y - z), $MachinePrecision] * N[(N[(t - x), $MachinePrecision] / N[(a - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(N[(N[(t - x), $MachinePrecision] * N[(a - y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.5 \cdot 10^{-222} \lor \neg \left(a \leq 9.5 \cdot 10^{-51}\right):\\
\;\;\;\;x + \left(y - z\right) \cdot \frac{t - x}{a - z}\\
\mathbf{else}:\\
\;\;\;\;t + \frac{\left(t - x\right) \cdot \left(a - y\right)}{z}\\
\end{array}
\end{array}
if a < -9.5000000000000002e-222 or 9.4999999999999998e-51 < a Initial program 67.8%
associate-/l*83.3%
Simplified83.3%
if -9.5000000000000002e-222 < a < 9.4999999999999998e-51Initial program 68.3%
associate-/l*71.2%
Simplified71.2%
Taylor expanded in z around inf 90.5%
associate--l+90.5%
associate-*r/90.5%
associate-*r/90.5%
mul-1-neg90.5%
div-sub90.5%
mul-1-neg90.5%
distribute-lft-out--90.5%
associate-*r/90.5%
mul-1-neg90.5%
unsub-neg90.5%
distribute-rgt-out--90.5%
Simplified90.5%
Final simplification85.1%
(FPCore (x y z t a) :precision binary64 (if (<= z -5.2e+46) t (if (<= z 1.4e-291) (* t (/ y a)) (if (<= z 2.2e+141) x t))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (z <= -5.2e+46) {
tmp = t;
} else if (z <= 1.4e-291) {
tmp = t * (y / a);
} else if (z <= 2.2e+141) {
tmp = x;
} 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.2d+46)) then
tmp = t
else if (z <= 1.4d-291) then
tmp = t * (y / a)
else if (z <= 2.2d+141) then
tmp = x
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.2e+46) {
tmp = t;
} else if (z <= 1.4e-291) {
tmp = t * (y / a);
} else if (z <= 2.2e+141) {
tmp = x;
} else {
tmp = t;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if z <= -5.2e+46: tmp = t elif z <= 1.4e-291: tmp = t * (y / a) elif z <= 2.2e+141: tmp = x else: tmp = t return tmp
function code(x, y, z, t, a) tmp = 0.0 if (z <= -5.2e+46) tmp = t; elseif (z <= 1.4e-291) tmp = Float64(t * Float64(y / a)); elseif (z <= 2.2e+141) tmp = x; else tmp = t; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (z <= -5.2e+46) tmp = t; elseif (z <= 1.4e-291) tmp = t * (y / a); elseif (z <= 2.2e+141) tmp = x; else tmp = t; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[z, -5.2e+46], t, If[LessEqual[z, 1.4e-291], N[(t * N[(y / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+141], x, t]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.2 \cdot 10^{+46}:\\
\;\;\;\;t\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-291}:\\
\;\;\;\;t \cdot \frac{y}{a}\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+141}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;t\\
\end{array}
\end{array}
if z < -5.20000000000000027e46 or 2.2e141 < z Initial program 37.8%
associate-/l*66.1%
Simplified66.1%
Taylor expanded in z around inf 50.7%
if -5.20000000000000027e46 < z < 1.4e-291Initial program 87.6%
associate-/l*87.5%
Simplified87.5%
Taylor expanded in x around 0 45.2%
Taylor expanded in z around 0 25.6%
associate-/l*34.0%
Simplified34.0%
if 1.4e-291 < z < 2.2e141Initial program 84.1%
associate-/l*89.8%
Simplified89.8%
Taylor expanded in a around inf 36.3%
Final simplification41.0%
(FPCore (x y z t a) :precision binary64 (if (<= a -6.9e+40) x (if (<= a 23000000000.0) t x)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (a <= -6.9e+40) {
tmp = x;
} else if (a <= 23000000000.0) {
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 <= (-6.9d+40)) then
tmp = x
else if (a <= 23000000000.0d0) 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 <= -6.9e+40) {
tmp = x;
} else if (a <= 23000000000.0) {
tmp = t;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if a <= -6.9e+40: tmp = x elif a <= 23000000000.0: tmp = t else: tmp = x return tmp
function code(x, y, z, t, a) tmp = 0.0 if (a <= -6.9e+40) tmp = x; elseif (a <= 23000000000.0) tmp = t; else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (a <= -6.9e+40) tmp = x; elseif (a <= 23000000000.0) tmp = t; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[a, -6.9e+40], x, If[LessEqual[a, 23000000000.0], t, x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.9 \cdot 10^{+40}:\\
\;\;\;\;x\\
\mathbf{elif}\;a \leq 23000000000:\\
\;\;\;\;t\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if a < -6.9000000000000003e40 or 2.3e10 < a Initial program 66.7%
associate-/l*90.2%
Simplified90.2%
Taylor expanded in a around inf 47.1%
if -6.9000000000000003e40 < a < 2.3e10Initial program 68.9%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in z around inf 34.4%
Final simplification39.9%
(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 68.0%
associate-/l*80.3%
Simplified80.3%
Taylor expanded in a around 0 32.1%
associate-*r/32.1%
associate-*r*32.1%
neg-mul-132.1%
*-commutative32.1%
Simplified32.1%
Taylor expanded in t around 0 17.2%
*-commutative17.2%
Simplified17.2%
Taylor expanded in y around 0 2.7%
distribute-rgt1-in2.7%
metadata-eval2.7%
mul0-lft2.7%
Simplified2.7%
Final simplification2.7%
(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 68.0%
associate-/l*80.3%
Simplified80.3%
Taylor expanded in z around inf 25.9%
Final simplification25.9%
(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 2024077
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:invLinMap from Chart-1.5.3"
:precision binary64
:alt
(if (< z -1.2536131056095036e+188) (- t (* (/ y z) (- t x))) (if (< z 4.446702369113811e+64) (+ x (/ (- y z) (/ (- a z) (- t x)))) (- t (* (/ y z) (- t x)))))
(+ x (/ (* (- y z) (- t x)) (- a z))))