
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a) :precision binary64 (+ x (/ (* (- y x) (- z t)) (- a t))))
double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x + (((y - x) * (z - t)) / (a - t))
end function
public static double code(double x, double y, double z, double t, double a) {
return x + (((y - x) * (z - t)) / (a - t));
}
def code(x, y, z, t, a): return x + (((y - x) * (z - t)) / (a - t))
function code(x, y, z, t, a) return Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) end
function tmp = code(x, y, z, t, a) tmp = x + (((y - x) * (z - t)) / (a - t)); end
code[x_, y_, z_, t_, a_] := N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}
\end{array}
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (or (<= t_1 -1e-249) (not (<= t_1 0.0)))
(+ x (/ (- x y) (/ (- a t) (- t z))))
(+ y (* (- y x) (/ (- a z) t))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -1e-249) || !(t_1 <= 0.0)) {
tmp = x + ((x - y) / ((a - t) / (t - z)));
} else {
tmp = y + ((y - x) * ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((y - x) * (z - t)) / (a - t))
if ((t_1 <= (-1d-249)) .or. (.not. (t_1 <= 0.0d0))) then
tmp = x + ((x - y) / ((a - t) / (t - z)))
else
tmp = y + ((y - x) * ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if ((t_1 <= -1e-249) || !(t_1 <= 0.0)) {
tmp = x + ((x - y) / ((a - t) / (t - z)));
} else {
tmp = y + ((y - x) * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if (t_1 <= -1e-249) or not (t_1 <= 0.0): tmp = x + ((x - y) / ((a - t) / (t - z))) else: tmp = y + ((y - x) * ((a - z) / t)) return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if ((t_1 <= -1e-249) || !(t_1 <= 0.0)) tmp = Float64(x + Float64(Float64(x - y) / Float64(Float64(a - t) / Float64(t - z)))); else tmp = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if ((t_1 <= -1e-249) || ~((t_1 <= 0.0))) tmp = x + ((x - y) / ((a - t) / (t - z))); else tmp = y + ((y - x) * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[t$95$1, -1e-249], N[Not[LessEqual[t$95$1, 0.0]], $MachinePrecision]], N[(x + N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_1 \leq -1 \cdot 10^{-249} \lor \neg \left(t\_1 \leq 0\right):\\
\;\;\;\;x + \frac{x - y}{\frac{a - t}{t - z}}\\
\mathbf{else}:\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-249 or 0.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 76.8%
clear-num76.7%
inv-pow76.7%
*-commutative76.7%
associate-/r*91.7%
Applied egg-rr91.7%
unpow-191.7%
clear-num91.9%
div-sub89.3%
Applied egg-rr89.3%
div-sub91.9%
Simplified91.9%
if -1.00000000000000005e-249 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 0.0Initial program 4.0%
Taylor expanded in t around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
div-sub99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
associate-/l*99.8%
Simplified99.8%
Final simplification92.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* (- z a) (/ (- x y) t))))
(t_2 (+ x (/ (* (- y x) (- z t)) (- a t)))))
(if (<= t_2 (- INFINITY))
t_1
(if (<= t_2 -1e-249)
t_2
(if (<= t_2 5e-263)
(+ y (* (- y x) (/ (- a z) t)))
(if (<= t_2 4e+298) t_2 t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + ((z - a) * ((x - y) / t));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -((double) INFINITY)) {
tmp = t_1;
} else if (t_2 <= -1e-249) {
tmp = t_2;
} else if (t_2 <= 5e-263) {
tmp = y + ((y - x) * ((a - z) / t));
} else if (t_2 <= 4e+298) {
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 = y + ((z - a) * ((x - y) / t));
double t_2 = x + (((y - x) * (z - t)) / (a - t));
double tmp;
if (t_2 <= -Double.POSITIVE_INFINITY) {
tmp = t_1;
} else if (t_2 <= -1e-249) {
tmp = t_2;
} else if (t_2 <= 5e-263) {
tmp = y + ((y - x) * ((a - z) / t));
} else if (t_2 <= 4e+298) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + ((z - a) * ((x - y) / t)) t_2 = x + (((y - x) * (z - t)) / (a - t)) tmp = 0 if t_2 <= -math.inf: tmp = t_1 elif t_2 <= -1e-249: tmp = t_2 elif t_2 <= 5e-263: tmp = y + ((y - x) * ((a - z) / t)) elif t_2 <= 4e+298: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(Float64(z - a) * Float64(Float64(x - y) / t))) t_2 = Float64(x + Float64(Float64(Float64(y - x) * Float64(z - t)) / Float64(a - t))) tmp = 0.0 if (t_2 <= Float64(-Inf)) tmp = t_1; elseif (t_2 <= -1e-249) tmp = t_2; elseif (t_2 <= 5e-263) tmp = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))); elseif (t_2 <= 4e+298) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + ((z - a) * ((x - y) / t)); t_2 = x + (((y - x) * (z - t)) / (a - t)); tmp = 0.0; if (t_2 <= -Inf) tmp = t_1; elseif (t_2 <= -1e-249) tmp = t_2; elseif (t_2 <= 5e-263) tmp = y + ((y - x) * ((a - z) / t)); elseif (t_2 <= 4e+298) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(N[(z - a), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(N[(N[(y - x), $MachinePrecision] * N[(z - t), $MachinePrecision]), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, (-Infinity)], t$95$1, If[LessEqual[t$95$2, -1e-249], t$95$2, If[LessEqual[t$95$2, 5e-263], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 4e+298], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(z - a\right) \cdot \frac{x - y}{t}\\
t_2 := x + \frac{\left(y - x\right) \cdot \left(z - t\right)}{a - t}\\
\mathbf{if}\;t\_2 \leq -\infty:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t\_2 \leq -1 \cdot 10^{-249}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t\_2 \leq 5 \cdot 10^{-263}:\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\mathbf{elif}\;t\_2 \leq 4 \cdot 10^{+298}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -inf.0 or 3.9999999999999998e298 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) Initial program 41.1%
clear-num41.1%
inv-pow41.1%
*-commutative41.1%
associate-/r*80.0%
Applied egg-rr80.0%
unpow-180.1%
clear-num80.1%
div-sub73.2%
Applied egg-rr73.2%
div-sub80.1%
Simplified80.1%
Taylor expanded in t around inf 49.5%
associate--l+49.5%
associate-*r/49.5%
associate-*r/49.5%
div-sub50.6%
distribute-lft-out--50.6%
associate-*r/50.6%
mul-1-neg50.6%
unsub-neg50.6%
div-sub49.5%
associate-/l*43.9%
associate-/l*57.9%
distribute-rgt-out--68.5%
Simplified68.5%
if -inf.0 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < -1.00000000000000005e-249 or 5.00000000000000006e-263 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 3.9999999999999998e298Initial program 98.7%
if -1.00000000000000005e-249 < (+.f64 x (/.f64 (*.f64 (-.f64 y x) (-.f64 z t)) (-.f64 a t))) < 5.00000000000000006e-263Initial program 4.0%
Taylor expanded in t around inf 99.7%
associate--l+99.7%
associate-*r/99.7%
associate-*r/99.7%
div-sub99.7%
distribute-lft-out--99.7%
associate-*r/99.7%
mul-1-neg99.7%
unsub-neg99.7%
distribute-rgt-out--99.7%
associate-/l*99.8%
Simplified99.8%
Final simplification88.6%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* y (/ z a)))) (t_2 (* x (- 1.0 (/ z a)))))
(if (<= t -7.5e+80)
y
(if (<= t -4000000000.0)
t_2
(if (<= t -42000.0)
y
(if (<= t -1.95e-150)
t_1
(if (<= t -2.5e-248)
t_2
(if (<= t 5.8e-285)
t_1
(if (<= t 1e-235) t_2 (if (<= t 3.2e+128) t_1 y))))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (t <= -7.5e+80) {
tmp = y;
} else if (t <= -4000000000.0) {
tmp = t_2;
} else if (t <= -42000.0) {
tmp = y;
} else if (t <= -1.95e-150) {
tmp = t_1;
} else if (t <= -2.5e-248) {
tmp = t_2;
} else if (t <= 5.8e-285) {
tmp = t_1;
} else if (t <= 1e-235) {
tmp = t_2;
} else if (t <= 3.2e+128) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x + (y * (z / a))
t_2 = x * (1.0d0 - (z / a))
if (t <= (-7.5d+80)) then
tmp = y
else if (t <= (-4000000000.0d0)) then
tmp = t_2
else if (t <= (-42000.0d0)) then
tmp = y
else if (t <= (-1.95d-150)) then
tmp = t_1
else if (t <= (-2.5d-248)) then
tmp = t_2
else if (t <= 5.8d-285) then
tmp = t_1
else if (t <= 1d-235) then
tmp = t_2
else if (t <= 3.2d+128) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x + (y * (z / a));
double t_2 = x * (1.0 - (z / a));
double tmp;
if (t <= -7.5e+80) {
tmp = y;
} else if (t <= -4000000000.0) {
tmp = t_2;
} else if (t <= -42000.0) {
tmp = y;
} else if (t <= -1.95e-150) {
tmp = t_1;
} else if (t <= -2.5e-248) {
tmp = t_2;
} else if (t <= 5.8e-285) {
tmp = t_1;
} else if (t <= 1e-235) {
tmp = t_2;
} else if (t <= 3.2e+128) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (y * (z / a)) t_2 = x * (1.0 - (z / a)) tmp = 0 if t <= -7.5e+80: tmp = y elif t <= -4000000000.0: tmp = t_2 elif t <= -42000.0: tmp = y elif t <= -1.95e-150: tmp = t_1 elif t <= -2.5e-248: tmp = t_2 elif t <= 5.8e-285: tmp = t_1 elif t <= 1e-235: tmp = t_2 elif t <= 3.2e+128: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(y * Float64(z / a))) t_2 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -7.5e+80) tmp = y; elseif (t <= -4000000000.0) tmp = t_2; elseif (t <= -42000.0) tmp = y; elseif (t <= -1.95e-150) tmp = t_1; elseif (t <= -2.5e-248) tmp = t_2; elseif (t <= 5.8e-285) tmp = t_1; elseif (t <= 1e-235) tmp = t_2; elseif (t <= 3.2e+128) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (y * (z / a)); t_2 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -7.5e+80) tmp = y; elseif (t <= -4000000000.0) tmp = t_2; elseif (t <= -42000.0) tmp = y; elseif (t <= -1.95e-150) tmp = t_1; elseif (t <= -2.5e-248) tmp = t_2; elseif (t <= 5.8e-285) tmp = t_1; elseif (t <= 1e-235) tmp = t_2; elseif (t <= 3.2e+128) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.5e+80], y, If[LessEqual[t, -4000000000.0], t$95$2, If[LessEqual[t, -42000.0], y, If[LessEqual[t, -1.95e-150], t$95$1, If[LessEqual[t, -2.5e-248], t$95$2, If[LessEqual[t, 5.8e-285], t$95$1, If[LessEqual[t, 1e-235], t$95$2, If[LessEqual[t, 3.2e+128], t$95$1, y]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \frac{z}{a}\\
t_2 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -7.5 \cdot 10^{+80}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -4000000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -42000:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.95 \cdot 10^{-150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -2.5 \cdot 10^{-248}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 5.8 \cdot 10^{-285}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 10^{-235}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.49999999999999994e80 or -4e9 < t < -42000 or 3.19999999999999986e128 < t Initial program 43.5%
Taylor expanded in t around inf 47.1%
if -7.49999999999999994e80 < t < -4e9 or -1.9500000000000001e-150 < t < -2.5e-248 or 5.7999999999999999e-285 < t < 9.9999999999999996e-236Initial program 82.7%
Taylor expanded in t around 0 68.7%
associate-/l*64.7%
Simplified64.7%
Taylor expanded in x around inf 64.0%
mul-1-neg64.0%
unsub-neg64.0%
Simplified64.0%
if -42000 < t < -1.9500000000000001e-150 or -2.5e-248 < t < 5.7999999999999999e-285 or 9.9999999999999996e-236 < t < 3.19999999999999986e128Initial program 83.3%
Taylor expanded in t around 0 64.6%
associate-/l*66.3%
Simplified66.3%
Taylor expanded in y around inf 56.1%
associate-/l*62.2%
Simplified62.2%
Final simplification57.7%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ (- z t) (- a t))) (t_2 (* y t_1)))
(if (<= t -2.5e+80)
t_2
(if (<= t -15500000000.0)
(- x (/ (* z (- x y)) a))
(if (<= t -3.7e-41)
t_2
(if (<= t -3.4e-76)
(* x (- 1.0 t_1))
(if (<= t 7e-24)
(+ x (/ (- y x) (/ a z)))
(if (<= t 1.1e+48)
(+ x (* z (/ (- x y) t)))
(if (<= t 9e+78) (* (- y x) (/ z (- a t))) t_2)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = (z - t) / (a - t);
double t_2 = y * t_1;
double tmp;
if (t <= -2.5e+80) {
tmp = t_2;
} else if (t <= -15500000000.0) {
tmp = x - ((z * (x - y)) / a);
} else if (t <= -3.7e-41) {
tmp = t_2;
} else if (t <= -3.4e-76) {
tmp = x * (1.0 - t_1);
} else if (t <= 7e-24) {
tmp = x + ((y - x) / (a / z));
} else if (t <= 1.1e+48) {
tmp = x + (z * ((x - y) / t));
} else if (t <= 9e+78) {
tmp = (y - x) * (z / (a - t));
} 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 = (z - t) / (a - t)
t_2 = y * t_1
if (t <= (-2.5d+80)) then
tmp = t_2
else if (t <= (-15500000000.0d0)) then
tmp = x - ((z * (x - y)) / a)
else if (t <= (-3.7d-41)) then
tmp = t_2
else if (t <= (-3.4d-76)) then
tmp = x * (1.0d0 - t_1)
else if (t <= 7d-24) then
tmp = x + ((y - x) / (a / z))
else if (t <= 1.1d+48) then
tmp = x + (z * ((x - y) / t))
else if (t <= 9d+78) then
tmp = (y - x) * (z / (a - t))
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 = (z - t) / (a - t);
double t_2 = y * t_1;
double tmp;
if (t <= -2.5e+80) {
tmp = t_2;
} else if (t <= -15500000000.0) {
tmp = x - ((z * (x - y)) / a);
} else if (t <= -3.7e-41) {
tmp = t_2;
} else if (t <= -3.4e-76) {
tmp = x * (1.0 - t_1);
} else if (t <= 7e-24) {
tmp = x + ((y - x) / (a / z));
} else if (t <= 1.1e+48) {
tmp = x + (z * ((x - y) / t));
} else if (t <= 9e+78) {
tmp = (y - x) * (z / (a - t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = (z - t) / (a - t) t_2 = y * t_1 tmp = 0 if t <= -2.5e+80: tmp = t_2 elif t <= -15500000000.0: tmp = x - ((z * (x - y)) / a) elif t <= -3.7e-41: tmp = t_2 elif t <= -3.4e-76: tmp = x * (1.0 - t_1) elif t <= 7e-24: tmp = x + ((y - x) / (a / z)) elif t <= 1.1e+48: tmp = x + (z * ((x - y) / t)) elif t <= 9e+78: tmp = (y - x) * (z / (a - t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(Float64(z - t) / Float64(a - t)) t_2 = Float64(y * t_1) tmp = 0.0 if (t <= -2.5e+80) tmp = t_2; elseif (t <= -15500000000.0) tmp = Float64(x - Float64(Float64(z * Float64(x - y)) / a)); elseif (t <= -3.7e-41) tmp = t_2; elseif (t <= -3.4e-76) tmp = Float64(x * Float64(1.0 - t_1)); elseif (t <= 7e-24) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif (t <= 1.1e+48) tmp = Float64(x + Float64(z * Float64(Float64(x - y) / t))); elseif (t <= 9e+78) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = (z - t) / (a - t); t_2 = y * t_1; tmp = 0.0; if (t <= -2.5e+80) tmp = t_2; elseif (t <= -15500000000.0) tmp = x - ((z * (x - y)) / a); elseif (t <= -3.7e-41) tmp = t_2; elseif (t <= -3.4e-76) tmp = x * (1.0 - t_1); elseif (t <= 7e-24) tmp = x + ((y - x) / (a / z)); elseif (t <= 1.1e+48) tmp = x + (z * ((x - y) / t)); elseif (t <= 9e+78) tmp = (y - x) * (z / (a - t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * t$95$1), $MachinePrecision]}, If[LessEqual[t, -2.5e+80], t$95$2, If[LessEqual[t, -15500000000.0], N[(x - N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.7e-41], t$95$2, If[LessEqual[t, -3.4e-76], N[(x * N[(1.0 - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-24], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.1e+48], N[(x + N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e+78], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{z - t}{a - t}\\
t_2 := y \cdot t\_1\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+80}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -15500000000:\\
\;\;\;\;x - \frac{z \cdot \left(x - y\right)}{a}\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{-41}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -3.4 \cdot 10^{-76}:\\
\;\;\;\;x \cdot \left(1 - t\_1\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-24}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{+48}:\\
\;\;\;\;x + z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+78}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -2.4999999999999998e80 or -1.55e10 < t < -3.7000000000000002e-41 or 8.9999999999999999e78 < t Initial program 47.3%
clear-num47.3%
inv-pow47.3%
*-commutative47.3%
associate-/r*71.1%
Applied egg-rr71.1%
Taylor expanded in x around 0 42.6%
associate-/l*63.6%
Simplified63.6%
if -2.4999999999999998e80 < t < -1.55e10Initial program 72.9%
Taylor expanded in t around 0 54.9%
if -3.7000000000000002e-41 < t < -3.3999999999999999e-76Initial program 100.0%
Taylor expanded in x around inf 88.2%
mul-1-neg88.2%
unsub-neg88.2%
Simplified88.2%
if -3.3999999999999999e-76 < t < 6.9999999999999993e-24Initial program 89.5%
clear-num89.5%
inv-pow89.5%
*-commutative89.5%
associate-/r*96.5%
Applied egg-rr96.5%
unpow-196.5%
clear-num96.7%
div-sub91.1%
Applied egg-rr91.1%
div-sub96.7%
Simplified96.7%
Taylor expanded in t around 0 84.7%
if 6.9999999999999993e-24 < t < 1.1e48Initial program 91.9%
Taylor expanded in z around inf 83.7%
associate-/l*91.6%
Simplified91.6%
Taylor expanded in a around 0 83.7%
mul-1-neg83.7%
unsub-neg83.7%
associate-/l*83.8%
Simplified83.8%
if 1.1e48 < t < 8.9999999999999999e78Initial program 42.3%
clear-num42.3%
inv-pow42.3%
*-commutative42.3%
associate-/r*60.8%
Applied egg-rr60.8%
Taylor expanded in z around inf 81.0%
div-sub81.0%
associate-*r/62.1%
*-commutative62.1%
associate-*r/81.3%
*-commutative81.3%
Simplified81.3%
Final simplification73.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))) (t_2 (* y (/ (- z t) (- a t)))))
(if (<= y -5.5e+87)
t_2
(if (<= y -6.5e+47)
t_1
(if (<= y -3.6e-48)
t_2
(if (<= y -3.9e-232)
t_1
(if (<= y 7.6e-259) (* x (/ z t)) (if (<= y 8.5e-63) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (y <= -5.5e+87) {
tmp = t_2;
} else if (y <= -6.5e+47) {
tmp = t_1;
} else if (y <= -3.6e-48) {
tmp = t_2;
} else if (y <= -3.9e-232) {
tmp = t_1;
} else if (y <= 7.6e-259) {
tmp = x * (z / t);
} else if (y <= 8.5e-63) {
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 * (1.0d0 - (z / a))
t_2 = y * ((z - t) / (a - t))
if (y <= (-5.5d+87)) then
tmp = t_2
else if (y <= (-6.5d+47)) then
tmp = t_1
else if (y <= (-3.6d-48)) then
tmp = t_2
else if (y <= (-3.9d-232)) then
tmp = t_1
else if (y <= 7.6d-259) then
tmp = x * (z / t)
else if (y <= 8.5d-63) 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 * (1.0 - (z / a));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (y <= -5.5e+87) {
tmp = t_2;
} else if (y <= -6.5e+47) {
tmp = t_1;
} else if (y <= -3.6e-48) {
tmp = t_2;
} else if (y <= -3.9e-232) {
tmp = t_1;
} else if (y <= 7.6e-259) {
tmp = x * (z / t);
} else if (y <= 8.5e-63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) t_2 = y * ((z - t) / (a - t)) tmp = 0 if y <= -5.5e+87: tmp = t_2 elif y <= -6.5e+47: tmp = t_1 elif y <= -3.6e-48: tmp = t_2 elif y <= -3.9e-232: tmp = t_1 elif y <= 7.6e-259: tmp = x * (z / t) elif y <= 8.5e-63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) t_2 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (y <= -5.5e+87) tmp = t_2; elseif (y <= -6.5e+47) tmp = t_1; elseif (y <= -3.6e-48) tmp = t_2; elseif (y <= -3.9e-232) tmp = t_1; elseif (y <= 7.6e-259) tmp = Float64(x * Float64(z / t)); elseif (y <= 8.5e-63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); t_2 = y * ((z - t) / (a - t)); tmp = 0.0; if (y <= -5.5e+87) tmp = t_2; elseif (y <= -6.5e+47) tmp = t_1; elseif (y <= -3.6e-48) tmp = t_2; elseif (y <= -3.9e-232) tmp = t_1; elseif (y <= 7.6e-259) tmp = x * (z / t); elseif (y <= 8.5e-63) 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[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+87], t$95$2, If[LessEqual[y, -6.5e+47], t$95$1, If[LessEqual[y, -3.6e-48], t$95$2, If[LessEqual[y, -3.9e-232], t$95$1, If[LessEqual[y, 7.6e-259], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e-63], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+87}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.5 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -3.6 \cdot 10^{-48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -3.9 \cdot 10^{-232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{-259}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{-63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.50000000000000022e87 or -6.49999999999999988e47 < y < -3.6000000000000002e-48 or 8.49999999999999969e-63 < y Initial program 71.4%
clear-num71.3%
inv-pow71.3%
*-commutative71.3%
associate-/r*92.0%
Applied egg-rr92.0%
Taylor expanded in x around 0 54.6%
associate-/l*74.0%
Simplified74.0%
if -5.50000000000000022e87 < y < -6.49999999999999988e47 or -3.6000000000000002e-48 < y < -3.8999999999999998e-232 or 7.6000000000000001e-259 < y < 8.49999999999999969e-63Initial program 75.8%
Taylor expanded in t around 0 61.1%
associate-/l*59.3%
Simplified59.3%
Taylor expanded in x around inf 61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
if -3.8999999999999998e-232 < y < 7.6000000000000001e-259Initial program 41.3%
clear-num41.2%
inv-pow41.2%
*-commutative41.2%
associate-/r*46.1%
Applied egg-rr46.1%
Taylor expanded in z around -inf 55.2%
Taylor expanded in y around 0 50.9%
mul-1-neg50.9%
*-commutative50.9%
distribute-lft-neg-in50.9%
Simplified50.9%
Taylor expanded in a around 0 41.5%
associate-/l*53.9%
Simplified53.9%
Final simplification67.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))) (t_2 (* y (/ (- z t) (- a t)))))
(if (<= y -5.5e+87)
t_2
(if (<= y -6.4e+47)
t_1
(if (<= y -1.46e-46)
(* (- z t) (/ y (- a t)))
(if (<= y -3.4e-232)
t_1
(if (<= y 1e-258) (* x (/ z t)) (if (<= y 3.5e-61) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (y <= -5.5e+87) {
tmp = t_2;
} else if (y <= -6.4e+47) {
tmp = t_1;
} else if (y <= -1.46e-46) {
tmp = (z - t) * (y / (a - t));
} else if (y <= -3.4e-232) {
tmp = t_1;
} else if (y <= 1e-258) {
tmp = x * (z / t);
} else if (y <= 3.5e-61) {
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 * (1.0d0 - (z / a))
t_2 = y * ((z - t) / (a - t))
if (y <= (-5.5d+87)) then
tmp = t_2
else if (y <= (-6.4d+47)) then
tmp = t_1
else if (y <= (-1.46d-46)) then
tmp = (z - t) * (y / (a - t))
else if (y <= (-3.4d-232)) then
tmp = t_1
else if (y <= 1d-258) then
tmp = x * (z / t)
else if (y <= 3.5d-61) 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 * (1.0 - (z / a));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (y <= -5.5e+87) {
tmp = t_2;
} else if (y <= -6.4e+47) {
tmp = t_1;
} else if (y <= -1.46e-46) {
tmp = (z - t) * (y / (a - t));
} else if (y <= -3.4e-232) {
tmp = t_1;
} else if (y <= 1e-258) {
tmp = x * (z / t);
} else if (y <= 3.5e-61) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) t_2 = y * ((z - t) / (a - t)) tmp = 0 if y <= -5.5e+87: tmp = t_2 elif y <= -6.4e+47: tmp = t_1 elif y <= -1.46e-46: tmp = (z - t) * (y / (a - t)) elif y <= -3.4e-232: tmp = t_1 elif y <= 1e-258: tmp = x * (z / t) elif y <= 3.5e-61: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) t_2 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (y <= -5.5e+87) tmp = t_2; elseif (y <= -6.4e+47) tmp = t_1; elseif (y <= -1.46e-46) tmp = Float64(Float64(z - t) * Float64(y / Float64(a - t))); elseif (y <= -3.4e-232) tmp = t_1; elseif (y <= 1e-258) tmp = Float64(x * Float64(z / t)); elseif (y <= 3.5e-61) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); t_2 = y * ((z - t) / (a - t)); tmp = 0.0; if (y <= -5.5e+87) tmp = t_2; elseif (y <= -6.4e+47) tmp = t_1; elseif (y <= -1.46e-46) tmp = (z - t) * (y / (a - t)); elseif (y <= -3.4e-232) tmp = t_1; elseif (y <= 1e-258) tmp = x * (z / t); elseif (y <= 3.5e-61) 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[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.5e+87], t$95$2, If[LessEqual[y, -6.4e+47], t$95$1, If[LessEqual[y, -1.46e-46], N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3.4e-232], t$95$1, If[LessEqual[y, 1e-258], N[(x * N[(z / t), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.5e-61], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y \leq -5.5 \cdot 10^{+87}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.4 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.46 \cdot 10^{-46}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{elif}\;y \leq -3.4 \cdot 10^{-232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 10^{-258}:\\
\;\;\;\;x \cdot \frac{z}{t}\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{-61}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.50000000000000022e87 or 3.5000000000000003e-61 < y Initial program 69.5%
clear-num69.5%
inv-pow69.5%
*-commutative69.5%
associate-/r*93.6%
Applied egg-rr93.6%
Taylor expanded in x around 0 52.0%
associate-/l*74.6%
Simplified74.6%
if -5.50000000000000022e87 < y < -6.4e47 or -1.46000000000000008e-46 < y < -3.4000000000000002e-232 or 9.99999999999999954e-259 < y < 3.5000000000000003e-61Initial program 75.8%
Taylor expanded in t around 0 61.1%
associate-/l*59.3%
Simplified59.3%
Taylor expanded in x around inf 61.0%
mul-1-neg61.0%
unsub-neg61.0%
Simplified61.0%
if -6.4e47 < y < -1.46000000000000008e-46Initial program 82.5%
clear-num82.4%
inv-pow82.4%
*-commutative82.4%
associate-/r*82.4%
Applied egg-rr82.4%
unpow-182.4%
clear-num82.5%
div-sub72.6%
Applied egg-rr72.6%
div-sub82.5%
Simplified82.5%
Taylor expanded in x around 0 70.1%
associate-*l/70.4%
Simplified70.4%
if -3.4000000000000002e-232 < y < 9.99999999999999954e-259Initial program 41.3%
clear-num41.2%
inv-pow41.2%
*-commutative41.2%
associate-/r*46.1%
Applied egg-rr46.1%
Taylor expanded in z around -inf 55.2%
Taylor expanded in y around 0 50.9%
mul-1-neg50.9%
*-commutative50.9%
distribute-lft-neg-in50.9%
Simplified50.9%
Taylor expanded in a around 0 41.5%
associate-/l*53.9%
Simplified53.9%
Final simplification67.5%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))) (t_2 (* y (/ (- z t) (- a t)))))
(if (<= y -6e+87)
t_2
(if (<= y -6.4e+47)
t_1
(if (<= y -2.5e-39)
(* (- z t) (/ y (- a t)))
(if (<= y -1.9e-231)
t_1
(if (<= y 4.4e-64) (* (- y x) (/ z (- a t))) t_2)))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (y <= -6e+87) {
tmp = t_2;
} else if (y <= -6.4e+47) {
tmp = t_1;
} else if (y <= -2.5e-39) {
tmp = (z - t) * (y / (a - t));
} else if (y <= -1.9e-231) {
tmp = t_1;
} else if (y <= 4.4e-64) {
tmp = (y - x) * (z / (a - t));
} 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 * (1.0d0 - (z / a))
t_2 = y * ((z - t) / (a - t))
if (y <= (-6d+87)) then
tmp = t_2
else if (y <= (-6.4d+47)) then
tmp = t_1
else if (y <= (-2.5d-39)) then
tmp = (z - t) * (y / (a - t))
else if (y <= (-1.9d-231)) then
tmp = t_1
else if (y <= 4.4d-64) then
tmp = (y - x) * (z / (a - t))
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 * (1.0 - (z / a));
double t_2 = y * ((z - t) / (a - t));
double tmp;
if (y <= -6e+87) {
tmp = t_2;
} else if (y <= -6.4e+47) {
tmp = t_1;
} else if (y <= -2.5e-39) {
tmp = (z - t) * (y / (a - t));
} else if (y <= -1.9e-231) {
tmp = t_1;
} else if (y <= 4.4e-64) {
tmp = (y - x) * (z / (a - t));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) t_2 = y * ((z - t) / (a - t)) tmp = 0 if y <= -6e+87: tmp = t_2 elif y <= -6.4e+47: tmp = t_1 elif y <= -2.5e-39: tmp = (z - t) * (y / (a - t)) elif y <= -1.9e-231: tmp = t_1 elif y <= 4.4e-64: tmp = (y - x) * (z / (a - t)) else: tmp = t_2 return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) t_2 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (y <= -6e+87) tmp = t_2; elseif (y <= -6.4e+47) tmp = t_1; elseif (y <= -2.5e-39) tmp = Float64(Float64(z - t) * Float64(y / Float64(a - t))); elseif (y <= -1.9e-231) tmp = t_1; elseif (y <= 4.4e-64) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); t_2 = y * ((z - t) / (a - t)); tmp = 0.0; if (y <= -6e+87) tmp = t_2; elseif (y <= -6.4e+47) tmp = t_1; elseif (y <= -2.5e-39) tmp = (z - t) * (y / (a - t)); elseif (y <= -1.9e-231) tmp = t_1; elseif (y <= 4.4e-64) tmp = (y - x) * (z / (a - t)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e+87], t$95$2, If[LessEqual[y, -6.4e+47], t$95$1, If[LessEqual[y, -2.5e-39], N[(N[(z - t), $MachinePrecision] * N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.9e-231], t$95$1, If[LessEqual[y, 4.4e-64], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
t_2 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;y \leq -6 \cdot 10^{+87}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -6.4 \cdot 10^{+47}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.5 \cdot 10^{-39}:\\
\;\;\;\;\left(z - t\right) \cdot \frac{y}{a - t}\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-231}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{-64}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -5.9999999999999998e87 or 4.3999999999999999e-64 < y Initial program 69.8%
clear-num69.7%
inv-pow69.7%
*-commutative69.7%
associate-/r*93.7%
Applied egg-rr93.7%
Taylor expanded in x around 0 51.6%
associate-/l*74.0%
Simplified74.0%
if -5.9999999999999998e87 < y < -6.4e47 or -2.4999999999999999e-39 < y < -1.90000000000000007e-231Initial program 70.9%
Taylor expanded in t around 0 62.6%
associate-/l*63.0%
Simplified63.0%
Taylor expanded in x around inf 66.8%
mul-1-neg66.8%
unsub-neg66.8%
Simplified66.8%
if -6.4e47 < y < -2.4999999999999999e-39Initial program 82.5%
clear-num82.4%
inv-pow82.4%
*-commutative82.4%
associate-/r*82.4%
Applied egg-rr82.4%
unpow-182.4%
clear-num82.5%
div-sub72.6%
Applied egg-rr72.6%
div-sub82.5%
Simplified82.5%
Taylor expanded in x around 0 70.1%
associate-*l/70.4%
Simplified70.4%
if -1.90000000000000007e-231 < y < 4.3999999999999999e-64Initial program 67.2%
clear-num67.1%
inv-pow67.1%
*-commutative67.1%
associate-/r*68.8%
Applied egg-rr68.8%
Taylor expanded in z around inf 57.1%
div-sub57.1%
associate-*r/58.8%
*-commutative58.8%
associate-*r/64.3%
*-commutative64.3%
Simplified64.3%
Final simplification69.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (/ y (/ a z))))
(if (<= t -6600.0)
y
(if (<= t -1.05e-248)
x
(if (<= t 1.8e-287)
t_1
(if (<= t 1.1e-236)
(* x (- (/ z a)))
(if (<= t 2.9e-151) t_1 (if (<= t 9e+122) x y))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y / (a / z);
double tmp;
if (t <= -6600.0) {
tmp = y;
} else if (t <= -1.05e-248) {
tmp = x;
} else if (t <= 1.8e-287) {
tmp = t_1;
} else if (t <= 1.1e-236) {
tmp = x * -(z / a);
} else if (t <= 2.9e-151) {
tmp = t_1;
} else if (t <= 9e+122) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y / (a / z)
if (t <= (-6600.0d0)) then
tmp = y
else if (t <= (-1.05d-248)) then
tmp = x
else if (t <= 1.8d-287) then
tmp = t_1
else if (t <= 1.1d-236) then
tmp = x * -(z / a)
else if (t <= 2.9d-151) then
tmp = t_1
else if (t <= 9d+122) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y / (a / z);
double tmp;
if (t <= -6600.0) {
tmp = y;
} else if (t <= -1.05e-248) {
tmp = x;
} else if (t <= 1.8e-287) {
tmp = t_1;
} else if (t <= 1.1e-236) {
tmp = x * -(z / a);
} else if (t <= 2.9e-151) {
tmp = t_1;
} else if (t <= 9e+122) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y / (a / z) tmp = 0 if t <= -6600.0: tmp = y elif t <= -1.05e-248: tmp = x elif t <= 1.8e-287: tmp = t_1 elif t <= 1.1e-236: tmp = x * -(z / a) elif t <= 2.9e-151: tmp = t_1 elif t <= 9e+122: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(y / Float64(a / z)) tmp = 0.0 if (t <= -6600.0) tmp = y; elseif (t <= -1.05e-248) tmp = x; elseif (t <= 1.8e-287) tmp = t_1; elseif (t <= 1.1e-236) tmp = Float64(x * Float64(-Float64(z / a))); elseif (t <= 2.9e-151) tmp = t_1; elseif (t <= 9e+122) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y / (a / z); tmp = 0.0; if (t <= -6600.0) tmp = y; elseif (t <= -1.05e-248) tmp = x; elseif (t <= 1.8e-287) tmp = t_1; elseif (t <= 1.1e-236) tmp = x * -(z / a); elseif (t <= 2.9e-151) tmp = t_1; elseif (t <= 9e+122) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6600.0], y, If[LessEqual[t, -1.05e-248], x, If[LessEqual[t, 1.8e-287], t$95$1, If[LessEqual[t, 1.1e-236], N[(x * (-N[(z / a), $MachinePrecision])), $MachinePrecision], If[LessEqual[t, 2.9e-151], t$95$1, If[LessEqual[t, 9e+122], x, y]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y}{\frac{a}{z}}\\
\mathbf{if}\;t \leq -6600:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-248}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-287}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.1 \cdot 10^{-236}:\\
\;\;\;\;x \cdot \left(-\frac{z}{a}\right)\\
\mathbf{elif}\;t \leq 2.9 \cdot 10^{-151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 9 \cdot 10^{+122}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -6600 or 8.99999999999999995e122 < t Initial program 48.5%
Taylor expanded in t around inf 42.6%
if -6600 < t < -1.05e-248 or 2.90000000000000013e-151 < t < 8.99999999999999995e122Initial program 81.1%
Taylor expanded in a around inf 38.1%
if -1.05e-248 < t < 1.8000000000000001e-287 or 1.09999999999999996e-236 < t < 2.90000000000000013e-151Initial program 89.1%
Taylor expanded in t around 0 89.1%
associate-/l*89.3%
Simplified89.3%
Taylor expanded in y around inf 70.1%
Taylor expanded in x around 0 48.1%
associate-*r/58.7%
Simplified58.7%
clear-num58.8%
div-inv58.9%
Applied egg-rr58.9%
if 1.8000000000000001e-287 < t < 1.09999999999999996e-236Initial program 95.9%
Taylor expanded in t around 0 86.2%
associate-/l*85.6%
Simplified85.6%
Taylor expanded in z around inf 50.7%
Taylor expanded in y around 0 50.6%
mul-1-neg50.6%
associate-/l*50.7%
distribute-rgt-neg-in50.7%
distribute-frac-neg250.7%
Simplified50.7%
Final simplification43.4%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -2.5e+80)
t_1
(if (<= t -26500000000.0)
(- x (/ (* z (- x y)) a))
(if (or (<= t -1.05e-18) (not (<= t 6.6e+16)))
t_1
(- x (/ z (/ a (- x y)))))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.5e+80) {
tmp = t_1;
} else if (t <= -26500000000.0) {
tmp = x - ((z * (x - y)) / a);
} else if ((t <= -1.05e-18) || !(t <= 6.6e+16)) {
tmp = t_1;
} else {
tmp = x - (z / (a / (x - y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-2.5d+80)) then
tmp = t_1
else if (t <= (-26500000000.0d0)) then
tmp = x - ((z * (x - y)) / a)
else if ((t <= (-1.05d-18)) .or. (.not. (t <= 6.6d+16))) then
tmp = t_1
else
tmp = x - (z / (a / (x - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.5e+80) {
tmp = t_1;
} else if (t <= -26500000000.0) {
tmp = x - ((z * (x - y)) / a);
} else if ((t <= -1.05e-18) || !(t <= 6.6e+16)) {
tmp = t_1;
} else {
tmp = x - (z / (a / (x - y)));
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -2.5e+80: tmp = t_1 elif t <= -26500000000.0: tmp = x - ((z * (x - y)) / a) elif (t <= -1.05e-18) or not (t <= 6.6e+16): tmp = t_1 else: tmp = x - (z / (a / (x - y))) return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -2.5e+80) tmp = t_1; elseif (t <= -26500000000.0) tmp = Float64(x - Float64(Float64(z * Float64(x - y)) / a)); elseif ((t <= -1.05e-18) || !(t <= 6.6e+16)) tmp = t_1; else tmp = Float64(x - Float64(z / Float64(a / Float64(x - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -2.5e+80) tmp = t_1; elseif (t <= -26500000000.0) tmp = x - ((z * (x - y)) / a); elseif ((t <= -1.05e-18) || ~((t <= 6.6e+16))) tmp = t_1; else tmp = x - (z / (a / (x - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+80], t$95$1, If[LessEqual[t, -26500000000.0], N[(x - N[(N[(z * N[(x - y), $MachinePrecision]), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[t, -1.05e-18], N[Not[LessEqual[t, 6.6e+16]], $MachinePrecision]], t$95$1, N[(x - N[(z / N[(a / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -26500000000:\\
\;\;\;\;x - \frac{z \cdot \left(x - y\right)}{a}\\
\mathbf{elif}\;t \leq -1.05 \cdot 10^{-18} \lor \neg \left(t \leq 6.6 \cdot 10^{+16}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x - \frac{z}{\frac{a}{x - y}}\\
\end{array}
\end{array}
if t < -2.4999999999999998e80 or -2.65e10 < t < -1.05e-18 or 6.6e16 < t Initial program 47.8%
clear-num47.9%
inv-pow47.9%
*-commutative47.9%
associate-/r*71.0%
Applied egg-rr71.0%
Taylor expanded in x around 0 42.4%
associate-/l*63.8%
Simplified63.8%
if -2.4999999999999998e80 < t < -2.65e10Initial program 72.9%
Taylor expanded in t around 0 54.9%
if -1.05e-18 < t < 6.6e16Initial program 89.1%
Taylor expanded in t around 0 73.0%
associate-/l*73.7%
Simplified73.7%
clear-num73.7%
un-div-inv75.0%
Applied egg-rr75.0%
Final simplification68.9%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* y (/ (- z t) (- a t)))))
(if (<= t -2.5e+80)
t_1
(if (<= t 1.2e-20)
(+ x (/ (- y x) (/ a z)))
(if (<= t 1.4e+48)
(+ x (* z (/ (- x y) t)))
(if (<= t 1.35e+78) (* (- y x) (/ z (- a t))) t_1))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.5e+80) {
tmp = t_1;
} else if (t <= 1.2e-20) {
tmp = x + ((y - x) / (a / z));
} else if (t <= 1.4e+48) {
tmp = x + (z * ((x - y) / t));
} else if (t <= 1.35e+78) {
tmp = (y - x) * (z / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((z - t) / (a - t))
if (t <= (-2.5d+80)) then
tmp = t_1
else if (t <= 1.2d-20) then
tmp = x + ((y - x) / (a / z))
else if (t <= 1.4d+48) then
tmp = x + (z * ((x - y) / t))
else if (t <= 1.35d+78) then
tmp = (y - x) * (z / (a - t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = y * ((z - t) / (a - t));
double tmp;
if (t <= -2.5e+80) {
tmp = t_1;
} else if (t <= 1.2e-20) {
tmp = x + ((y - x) / (a / z));
} else if (t <= 1.4e+48) {
tmp = x + (z * ((x - y) / t));
} else if (t <= 1.35e+78) {
tmp = (y - x) * (z / (a - t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y * ((z - t) / (a - t)) tmp = 0 if t <= -2.5e+80: tmp = t_1 elif t <= 1.2e-20: tmp = x + ((y - x) / (a / z)) elif t <= 1.4e+48: tmp = x + (z * ((x - y) / t)) elif t <= 1.35e+78: tmp = (y - x) * (z / (a - t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y * Float64(Float64(z - t) / Float64(a - t))) tmp = 0.0 if (t <= -2.5e+80) tmp = t_1; elseif (t <= 1.2e-20) tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); elseif (t <= 1.4e+48) tmp = Float64(x + Float64(z * Float64(Float64(x - y) / t))); elseif (t <= 1.35e+78) tmp = Float64(Float64(y - x) * Float64(z / Float64(a - t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y * ((z - t) / (a - t)); tmp = 0.0; if (t <= -2.5e+80) tmp = t_1; elseif (t <= 1.2e-20) tmp = x + ((y - x) / (a / z)); elseif (t <= 1.4e+48) tmp = x + (z * ((x - y) / t)); elseif (t <= 1.35e+78) tmp = (y - x) * (z / (a - t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.5e+80], t$95$1, If[LessEqual[t, 1.2e-20], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.4e+48], N[(x + N[(z * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+78], N[(N[(y - x), $MachinePrecision] * N[(z / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;t \leq -2.5 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-20}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.4 \cdot 10^{+48}:\\
\;\;\;\;x + z \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+78}:\\
\;\;\;\;\left(y - x\right) \cdot \frac{z}{a - t}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.4999999999999998e80 or 1.35000000000000002e78 < t Initial program 42.9%
clear-num42.9%
inv-pow42.9%
*-commutative42.9%
associate-/r*68.6%
Applied egg-rr68.6%
Taylor expanded in x around 0 40.5%
associate-/l*64.0%
Simplified64.0%
if -2.4999999999999998e80 < t < 1.19999999999999996e-20Initial program 86.6%
clear-num86.5%
inv-pow86.5%
*-commutative86.5%
associate-/r*93.0%
Applied egg-rr93.0%
unpow-193.0%
clear-num93.1%
div-sub89.0%
Applied egg-rr89.0%
div-sub93.1%
Simplified93.1%
Taylor expanded in t around 0 76.3%
if 1.19999999999999996e-20 < t < 1.40000000000000006e48Initial program 91.9%
Taylor expanded in z around inf 83.7%
associate-/l*91.6%
Simplified91.6%
Taylor expanded in a around 0 83.7%
mul-1-neg83.7%
unsub-neg83.7%
associate-/l*83.8%
Simplified83.8%
if 1.40000000000000006e48 < t < 1.35000000000000002e78Initial program 42.3%
clear-num42.3%
inv-pow42.3%
*-commutative42.3%
associate-/r*60.8%
Applied egg-rr60.8%
Taylor expanded in z around inf 81.0%
div-sub81.0%
associate-*r/62.1%
*-commutative62.1%
associate-*r/81.3%
*-commutative81.3%
Simplified81.3%
Final simplification72.3%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (* x (- 1.0 (/ z a)))))
(if (<= t -7.4e+80)
y
(if (<= t -2.45e-248)
t_1
(if (<= t -1.5e-277) (/ y (/ a z)) (if (<= t 6.6e+128) t_1 y))))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -7.4e+80) {
tmp = y;
} else if (t <= -2.45e-248) {
tmp = t_1;
} else if (t <= -1.5e-277) {
tmp = y / (a / z);
} else if (t <= 6.6e+128) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: t_1
real(8) :: tmp
t_1 = x * (1.0d0 - (z / a))
if (t <= (-7.4d+80)) then
tmp = y
else if (t <= (-2.45d-248)) then
tmp = t_1
else if (t <= (-1.5d-277)) then
tmp = y / (a / z)
else if (t <= 6.6d+128) then
tmp = t_1
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double t_1 = x * (1.0 - (z / a));
double tmp;
if (t <= -7.4e+80) {
tmp = y;
} else if (t <= -2.45e-248) {
tmp = t_1;
} else if (t <= -1.5e-277) {
tmp = y / (a / z);
} else if (t <= 6.6e+128) {
tmp = t_1;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x * (1.0 - (z / a)) tmp = 0 if t <= -7.4e+80: tmp = y elif t <= -2.45e-248: tmp = t_1 elif t <= -1.5e-277: tmp = y / (a / z) elif t <= 6.6e+128: tmp = t_1 else: tmp = y return tmp
function code(x, y, z, t, a) t_1 = Float64(x * Float64(1.0 - Float64(z / a))) tmp = 0.0 if (t <= -7.4e+80) tmp = y; elseif (t <= -2.45e-248) tmp = t_1; elseif (t <= -1.5e-277) tmp = Float64(y / Float64(a / z)); elseif (t <= 6.6e+128) tmp = t_1; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x * (1.0 - (z / a)); tmp = 0.0; if (t <= -7.4e+80) tmp = y; elseif (t <= -2.45e-248) tmp = t_1; elseif (t <= -1.5e-277) tmp = y / (a / z); elseif (t <= 6.6e+128) tmp = t_1; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.4e+80], y, If[LessEqual[t, -2.45e-248], t$95$1, If[LessEqual[t, -1.5e-277], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.6e+128], t$95$1, y]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{if}\;t \leq -7.4 \cdot 10^{+80}:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -2.45 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-277}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 6.6 \cdot 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -7.39999999999999992e80 or 6.6000000000000001e128 < t Initial program 41.4%
Taylor expanded in t around inf 46.3%
if -7.39999999999999992e80 < t < -2.4499999999999998e-248 or -1.49999999999999989e-277 < t < 6.6000000000000001e128Initial program 82.9%
Taylor expanded in t around 0 63.1%
associate-/l*63.6%
Simplified63.6%
Taylor expanded in x around inf 52.8%
mul-1-neg52.8%
unsub-neg52.8%
Simplified52.8%
if -2.4499999999999998e-248 < t < -1.49999999999999989e-277Initial program 91.2%
Taylor expanded in t around 0 91.2%
associate-/l*82.8%
Simplified82.8%
Taylor expanded in y around inf 82.8%
Taylor expanded in x around 0 74.2%
associate-*r/82.7%
Simplified82.7%
clear-num82.9%
div-inv82.9%
Applied egg-rr82.9%
Final simplification52.1%
(FPCore (x y z t a)
:precision binary64
(if (<= x -5.8e-56)
(* x (- 1.0 (/ z a)))
(if (<= x 3.1e-73)
(+ x (* y (/ z a)))
(if (<= x 5e-10)
(/ (* x z) (- t a))
(if (<= x 2.6e+129) y (- x (* x (/ z a))))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -5.8e-56) {
tmp = x * (1.0 - (z / a));
} else if (x <= 3.1e-73) {
tmp = x + (y * (z / a));
} else if (x <= 5e-10) {
tmp = (x * z) / (t - a);
} else if (x <= 2.6e+129) {
tmp = y;
} else {
tmp = x - (x * (z / a));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (x <= (-5.8d-56)) then
tmp = x * (1.0d0 - (z / a))
else if (x <= 3.1d-73) then
tmp = x + (y * (z / a))
else if (x <= 5d-10) then
tmp = (x * z) / (t - a)
else if (x <= 2.6d+129) then
tmp = y
else
tmp = x - (x * (z / a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (x <= -5.8e-56) {
tmp = x * (1.0 - (z / a));
} else if (x <= 3.1e-73) {
tmp = x + (y * (z / a));
} else if (x <= 5e-10) {
tmp = (x * z) / (t - a);
} else if (x <= 2.6e+129) {
tmp = y;
} else {
tmp = x - (x * (z / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if x <= -5.8e-56: tmp = x * (1.0 - (z / a)) elif x <= 3.1e-73: tmp = x + (y * (z / a)) elif x <= 5e-10: tmp = (x * z) / (t - a) elif x <= 2.6e+129: tmp = y else: tmp = x - (x * (z / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (x <= -5.8e-56) tmp = Float64(x * Float64(1.0 - Float64(z / a))); elseif (x <= 3.1e-73) tmp = Float64(x + Float64(y * Float64(z / a))); elseif (x <= 5e-10) tmp = Float64(Float64(x * z) / Float64(t - a)); elseif (x <= 2.6e+129) tmp = y; else tmp = Float64(x - Float64(x * Float64(z / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (x <= -5.8e-56) tmp = x * (1.0 - (z / a)); elseif (x <= 3.1e-73) tmp = x + (y * (z / a)); elseif (x <= 5e-10) tmp = (x * z) / (t - a); elseif (x <= 2.6e+129) tmp = y; else tmp = x - (x * (z / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[x, -5.8e-56], N[(x * N[(1.0 - N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.1e-73], N[(x + N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5e-10], N[(N[(x * z), $MachinePrecision] / N[(t - a), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e+129], y, N[(x - N[(x * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -5.8 \cdot 10^{-56}:\\
\;\;\;\;x \cdot \left(1 - \frac{z}{a}\right)\\
\mathbf{elif}\;x \leq 3.1 \cdot 10^{-73}:\\
\;\;\;\;x + y \cdot \frac{z}{a}\\
\mathbf{elif}\;x \leq 5 \cdot 10^{-10}:\\
\;\;\;\;\frac{x \cdot z}{t - a}\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{+129}:\\
\;\;\;\;y\\
\mathbf{else}:\\
\;\;\;\;x - x \cdot \frac{z}{a}\\
\end{array}
\end{array}
if x < -5.79999999999999982e-56Initial program 63.1%
Taylor expanded in t around 0 47.7%
associate-/l*50.3%
Simplified50.3%
Taylor expanded in x around inf 49.5%
mul-1-neg49.5%
unsub-neg49.5%
Simplified49.5%
if -5.79999999999999982e-56 < x < 3.09999999999999969e-73Initial program 84.3%
Taylor expanded in t around 0 52.9%
associate-/l*52.9%
Simplified52.9%
Taylor expanded in y around inf 46.6%
associate-/l*51.1%
Simplified51.1%
if 3.09999999999999969e-73 < x < 5.00000000000000031e-10Initial program 80.8%
clear-num81.0%
inv-pow81.0%
*-commutative81.0%
associate-/r*81.2%
Applied egg-rr81.2%
Taylor expanded in z around -inf 67.9%
Taylor expanded in y around 0 67.5%
mul-1-neg67.5%
*-commutative67.5%
distribute-lft-neg-in67.5%
Simplified67.5%
if 5.00000000000000031e-10 < x < 2.60000000000000012e129Initial program 48.8%
Taylor expanded in t around inf 52.0%
if 2.60000000000000012e129 < x Initial program 55.3%
Taylor expanded in t around 0 47.1%
associate-/l*49.4%
Simplified49.4%
Taylor expanded in y around 0 46.8%
mul-1-neg46.8%
unsub-neg46.8%
associate-/l*53.7%
Simplified53.7%
Final simplification52.1%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ y (* (- y x) (/ (- a z) t)))))
(if (<= t -1.8e+34)
t_1
(if (<= t 1.08e+24)
(- x (/ (- x y) (/ (- a t) z)))
(if (<= t 2.5e+125) (- x (* (/ y (- a t)) (- t z))) t_1)))))
double code(double x, double y, double z, double t, double a) {
double t_1 = y + ((y - x) * ((a - z) / t));
double tmp;
if (t <= -1.8e+34) {
tmp = t_1;
} else if (t <= 1.08e+24) {
tmp = x - ((x - y) / ((a - t) / z));
} else if (t <= 2.5e+125) {
tmp = x - ((y / (a - t)) * (t - 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 = y + ((y - x) * ((a - z) / t))
if (t <= (-1.8d+34)) then
tmp = t_1
else if (t <= 1.08d+24) then
tmp = x - ((x - y) / ((a - t) / z))
else if (t <= 2.5d+125) then
tmp = x - ((y / (a - t)) * (t - 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 = y + ((y - x) * ((a - z) / t));
double tmp;
if (t <= -1.8e+34) {
tmp = t_1;
} else if (t <= 1.08e+24) {
tmp = x - ((x - y) / ((a - t) / z));
} else if (t <= 2.5e+125) {
tmp = x - ((y / (a - t)) * (t - z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = y + ((y - x) * ((a - z) / t)) tmp = 0 if t <= -1.8e+34: tmp = t_1 elif t <= 1.08e+24: tmp = x - ((x - y) / ((a - t) / z)) elif t <= 2.5e+125: tmp = x - ((y / (a - t)) * (t - z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))) tmp = 0.0 if (t <= -1.8e+34) tmp = t_1; elseif (t <= 1.08e+24) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / z))); elseif (t <= 2.5e+125) tmp = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = y + ((y - x) * ((a - z) / t)); tmp = 0.0; if (t <= -1.8e+34) tmp = t_1; elseif (t <= 1.08e+24) tmp = x - ((x - y) / ((a - t) / z)); elseif (t <= 2.5e+125) tmp = x - ((y / (a - t)) * (t - z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.8e+34], t$95$1, If[LessEqual[t, 1.08e+24], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e+125], N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\mathbf{if}\;t \leq -1.8 \cdot 10^{+34}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.08 \cdot 10^{+24}:\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{+125}:\\
\;\;\;\;x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.8e34 or 2.49999999999999981e125 < t Initial program 43.9%
Taylor expanded in t around inf 68.9%
associate--l+68.9%
associate-*r/68.9%
associate-*r/68.9%
div-sub68.9%
distribute-lft-out--68.9%
associate-*r/68.9%
mul-1-neg68.9%
unsub-neg68.9%
distribute-rgt-out--70.1%
associate-/l*82.7%
Simplified82.7%
if -1.8e34 < t < 1.0799999999999999e24Initial program 88.4%
clear-num88.4%
inv-pow88.4%
*-commutative88.4%
associate-/r*95.4%
Applied egg-rr95.4%
unpow-195.4%
clear-num95.5%
div-sub91.5%
Applied egg-rr91.5%
div-sub95.5%
Simplified95.5%
Taylor expanded in z around inf 88.7%
if 1.0799999999999999e24 < t < 2.49999999999999981e125Initial program 55.1%
Taylor expanded in y around inf 54.9%
*-commutative54.9%
associate-/l*79.4%
Simplified79.4%
Final simplification85.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -2.8e+34)
(+ y (* (- z a) (/ (- x y) t)))
(if (<= t 6.4e+35)
(- x (/ (- x y) (/ (- a t) z)))
(if (<= t 3e+123)
(- x (* (/ y (- a t)) (- t z)))
(+ y (* (- y x) (/ (- a z) t)))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+34) {
tmp = y + ((z - a) * ((x - y) / t));
} else if (t <= 6.4e+35) {
tmp = x - ((x - y) / ((a - t) / z));
} else if (t <= 3e+123) {
tmp = x - ((y / (a - t)) * (t - z));
} else {
tmp = y + ((y - x) * ((a - z) / t));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-2.8d+34)) then
tmp = y + ((z - a) * ((x - y) / t))
else if (t <= 6.4d+35) then
tmp = x - ((x - y) / ((a - t) / z))
else if (t <= 3d+123) then
tmp = x - ((y / (a - t)) * (t - z))
else
tmp = y + ((y - x) * ((a - z) / t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -2.8e+34) {
tmp = y + ((z - a) * ((x - y) / t));
} else if (t <= 6.4e+35) {
tmp = x - ((x - y) / ((a - t) / z));
} else if (t <= 3e+123) {
tmp = x - ((y / (a - t)) * (t - z));
} else {
tmp = y + ((y - x) * ((a - z) / t));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -2.8e+34: tmp = y + ((z - a) * ((x - y) / t)) elif t <= 6.4e+35: tmp = x - ((x - y) / ((a - t) / z)) elif t <= 3e+123: tmp = x - ((y / (a - t)) * (t - z)) else: tmp = y + ((y - x) * ((a - z) / t)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -2.8e+34) tmp = Float64(y + Float64(Float64(z - a) * Float64(Float64(x - y) / t))); elseif (t <= 6.4e+35) tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / z))); elseif (t <= 3e+123) tmp = Float64(x - Float64(Float64(y / Float64(a - t)) * Float64(t - z))); else tmp = Float64(y + Float64(Float64(y - x) * Float64(Float64(a - z) / t))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -2.8e+34) tmp = y + ((z - a) * ((x - y) / t)); elseif (t <= 6.4e+35) tmp = x - ((x - y) / ((a - t) / z)); elseif (t <= 3e+123) tmp = x - ((y / (a - t)) * (t - z)); else tmp = y + ((y - x) * ((a - z) / t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -2.8e+34], N[(y + N[(N[(z - a), $MachinePrecision] * N[(N[(x - y), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.4e+35], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3e+123], N[(x - N[(N[(y / N[(a - t), $MachinePrecision]), $MachinePrecision] * N[(t - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y + N[(N[(y - x), $MachinePrecision] * N[(N[(a - z), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{+34}:\\
\;\;\;\;y + \left(z - a\right) \cdot \frac{x - y}{t}\\
\mathbf{elif}\;t \leq 6.4 \cdot 10^{+35}:\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z}}\\
\mathbf{elif}\;t \leq 3 \cdot 10^{+123}:\\
\;\;\;\;x - \frac{y}{a - t} \cdot \left(t - z\right)\\
\mathbf{else}:\\
\;\;\;\;y + \left(y - x\right) \cdot \frac{a - z}{t}\\
\end{array}
\end{array}
if t < -2.80000000000000008e34Initial program 49.0%
clear-num48.8%
inv-pow48.8%
*-commutative48.8%
associate-/r*66.8%
Applied egg-rr66.8%
unpow-166.9%
clear-num67.0%
div-sub67.0%
Applied egg-rr67.0%
div-sub67.0%
Simplified67.0%
Taylor expanded in t around inf 70.1%
associate--l+70.1%
associate-*r/70.1%
associate-*r/70.1%
div-sub70.1%
distribute-lft-out--70.1%
associate-*r/70.1%
mul-1-neg70.1%
unsub-neg70.1%
div-sub70.1%
associate-/l*72.1%
associate-/l*75.7%
distribute-rgt-out--75.7%
Simplified75.7%
if -2.80000000000000008e34 < t < 6.39999999999999965e35Initial program 88.4%
clear-num88.4%
inv-pow88.4%
*-commutative88.4%
associate-/r*95.4%
Applied egg-rr95.4%
unpow-195.4%
clear-num95.5%
div-sub91.5%
Applied egg-rr91.5%
div-sub95.5%
Simplified95.5%
Taylor expanded in z around inf 88.7%
if 6.39999999999999965e35 < t < 3.00000000000000008e123Initial program 55.1%
Taylor expanded in y around inf 54.9%
*-commutative54.9%
associate-/l*79.4%
Simplified79.4%
if 3.00000000000000008e123 < t Initial program 36.9%
Taylor expanded in t around inf 67.2%
associate--l+67.2%
associate-*r/67.2%
associate-*r/67.2%
div-sub67.2%
distribute-lft-out--67.2%
associate-*r/67.2%
mul-1-neg67.2%
unsub-neg67.2%
distribute-rgt-out--70.0%
associate-/l*92.2%
Simplified92.2%
Final simplification85.9%
(FPCore (x y z t a)
:precision binary64
(if (<= t -3200.0)
y
(if (<= t -8.8e-246)
x
(if (<= t 1.9e-153) (* y (/ z a)) (if (<= t 8.6e+122) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3200.0) {
tmp = y;
} else if (t <= -8.8e-246) {
tmp = x;
} else if (t <= 1.9e-153) {
tmp = y * (z / a);
} else if (t <= 8.6e+122) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-3200.0d0)) then
tmp = y
else if (t <= (-8.8d-246)) then
tmp = x
else if (t <= 1.9d-153) then
tmp = y * (z / a)
else if (t <= 8.6d+122) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3200.0) {
tmp = y;
} else if (t <= -8.8e-246) {
tmp = x;
} else if (t <= 1.9e-153) {
tmp = y * (z / a);
} else if (t <= 8.6e+122) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3200.0: tmp = y elif t <= -8.8e-246: tmp = x elif t <= 1.9e-153: tmp = y * (z / a) elif t <= 8.6e+122: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3200.0) tmp = y; elseif (t <= -8.8e-246) tmp = x; elseif (t <= 1.9e-153) tmp = Float64(y * Float64(z / a)); elseif (t <= 8.6e+122) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3200.0) tmp = y; elseif (t <= -8.8e-246) tmp = x; elseif (t <= 1.9e-153) tmp = y * (z / a); elseif (t <= 8.6e+122) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3200.0], y, If[LessEqual[t, -8.8e-246], x, If[LessEqual[t, 1.9e-153], N[(y * N[(z / a), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.6e+122], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3200:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -8.8 \cdot 10^{-246}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-153}:\\
\;\;\;\;y \cdot \frac{z}{a}\\
\mathbf{elif}\;t \leq 8.6 \cdot 10^{+122}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3200 or 8.59999999999999943e122 < t Initial program 48.5%
Taylor expanded in t around inf 42.6%
if -3200 < t < -8.79999999999999992e-246 or 1.90000000000000011e-153 < t < 8.59999999999999943e122Initial program 81.1%
Taylor expanded in a around inf 38.1%
if -8.79999999999999992e-246 < t < 1.90000000000000011e-153Initial program 91.0%
Taylor expanded in t around 0 88.3%
associate-/l*88.3%
Simplified88.3%
Taylor expanded in y around inf 61.2%
Taylor expanded in x around 0 37.7%
associate-*r/45.3%
Simplified45.3%
Final simplification41.3%
(FPCore (x y z t a)
:precision binary64
(if (<= t -245.0)
y
(if (<= t -7e-248)
x
(if (<= t 5.6e-154) (/ y (/ a z)) (if (<= t 1.05e+123) x y)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -245.0) {
tmp = y;
} else if (t <= -7e-248) {
tmp = x;
} else if (t <= 5.6e-154) {
tmp = y / (a / z);
} else if (t <= 1.05e+123) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-245.0d0)) then
tmp = y
else if (t <= (-7d-248)) then
tmp = x
else if (t <= 5.6d-154) then
tmp = y / (a / z)
else if (t <= 1.05d+123) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -245.0) {
tmp = y;
} else if (t <= -7e-248) {
tmp = x;
} else if (t <= 5.6e-154) {
tmp = y / (a / z);
} else if (t <= 1.05e+123) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -245.0: tmp = y elif t <= -7e-248: tmp = x elif t <= 5.6e-154: tmp = y / (a / z) elif t <= 1.05e+123: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -245.0) tmp = y; elseif (t <= -7e-248) tmp = x; elseif (t <= 5.6e-154) tmp = Float64(y / Float64(a / z)); elseif (t <= 1.05e+123) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -245.0) tmp = y; elseif (t <= -7e-248) tmp = x; elseif (t <= 5.6e-154) tmp = y / (a / z); elseif (t <= 1.05e+123) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -245.0], y, If[LessEqual[t, -7e-248], x, If[LessEqual[t, 5.6e-154], N[(y / N[(a / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+123], x, y]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -245:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq -7 \cdot 10^{-248}:\\
\;\;\;\;x\\
\mathbf{elif}\;t \leq 5.6 \cdot 10^{-154}:\\
\;\;\;\;\frac{y}{\frac{a}{z}}\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+123}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -245 or 1.04999999999999997e123 < t Initial program 48.5%
Taylor expanded in t around inf 42.6%
if -245 < t < -6.99999999999999966e-248 or 5.60000000000000025e-154 < t < 1.04999999999999997e123Initial program 81.1%
Taylor expanded in a around inf 38.1%
if -6.99999999999999966e-248 < t < 5.60000000000000025e-154Initial program 91.0%
Taylor expanded in t around 0 88.3%
associate-/l*88.3%
Simplified88.3%
Taylor expanded in y around inf 61.2%
Taylor expanded in x around 0 37.7%
associate-*r/45.3%
Simplified45.3%
clear-num45.3%
div-inv45.4%
Applied egg-rr45.4%
Final simplification41.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -6.6e+34) (not (<= t 5.8e+65))) (* y (/ (- z t) (- a t))) (+ x (* z (/ (- y x) (- a t))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -6.6e+34) || !(t <= 5.8e+65)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / (a - t)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-6.6d+34)) .or. (.not. (t <= 5.8d+65))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z * ((y - x) / (a - t)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -6.6e+34) || !(t <= 5.8e+65)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / (a - t)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -6.6e+34) or not (t <= 5.8e+65): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z * ((y - x) / (a - t))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -6.6e+34) || !(t <= 5.8e+65)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z * Float64(Float64(y - x) / Float64(a - t)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -6.6e+34) || ~((t <= 5.8e+65))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z * ((y - x) / (a - t))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -6.6e+34], N[Not[LessEqual[t, 5.8e+65]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -6.6 \cdot 10^{+34} \lor \neg \left(t \leq 5.8 \cdot 10^{+65}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a - t}\\
\end{array}
\end{array}
if t < -6.59999999999999976e34 or 5.8000000000000001e65 < t Initial program 44.5%
clear-num44.5%
inv-pow44.5%
*-commutative44.5%
associate-/r*67.4%
Applied egg-rr67.4%
Taylor expanded in x around 0 39.4%
associate-/l*60.4%
Simplified60.4%
if -6.59999999999999976e34 < t < 5.8000000000000001e65Initial program 87.6%
Taylor expanded in z around inf 81.0%
associate-/l*82.3%
Simplified82.3%
Final simplification73.5%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4.5e+34) (not (<= t 6.5e+72))) (* y (/ (- z t) (- a t))) (+ x (/ z (/ (- a t) (- y x))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.5e+34) || !(t <= 6.5e+72)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z / ((a - t) / (y - 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 ((t <= (-4.5d+34)) .or. (.not. (t <= 6.5d+72))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z / ((a - t) / (y - x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.5e+34) || !(t <= 6.5e+72)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z / ((a - t) / (y - x)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4.5e+34) or not (t <= 6.5e+72): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z / ((a - t) / (y - x))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4.5e+34) || !(t <= 6.5e+72)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z / Float64(Float64(a - t) / Float64(y - x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4.5e+34) || ~((t <= 6.5e+72))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z / ((a - t) / (y - x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4.5e+34], N[Not[LessEqual[t, 6.5e+72]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z / N[(N[(a - t), $MachinePrecision] / N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.5 \cdot 10^{+34} \lor \neg \left(t \leq 6.5 \cdot 10^{+72}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{z}{\frac{a - t}{y - x}}\\
\end{array}
\end{array}
if t < -4.5e34 or 6.5000000000000001e72 < t Initial program 44.5%
clear-num44.5%
inv-pow44.5%
*-commutative44.5%
associate-/r*67.4%
Applied egg-rr67.4%
Taylor expanded in x around 0 39.4%
associate-/l*60.4%
Simplified60.4%
if -4.5e34 < t < 6.5000000000000001e72Initial program 87.6%
Taylor expanded in z around inf 81.0%
associate-/l*82.3%
Simplified82.3%
clear-num82.3%
un-div-inv83.4%
Applied egg-rr83.4%
Final simplification74.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -8e+80) (not (<= t 1.62e+67))) (* y (/ (- z t) (- a t))) (- x (/ (- x y) (/ (- a t) z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -8e+80) || !(t <= 1.62e+67)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x - ((x - y) / ((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 ((t <= (-8d+80)) .or. (.not. (t <= 1.62d+67))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x - ((x - y) / ((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 ((t <= -8e+80) || !(t <= 1.62e+67)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x - ((x - y) / ((a - t) / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -8e+80) or not (t <= 1.62e+67): tmp = y * ((z - t) / (a - t)) else: tmp = x - ((x - y) / ((a - t) / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -8e+80) || !(t <= 1.62e+67)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x - Float64(Float64(x - y) / Float64(Float64(a - t) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -8e+80) || ~((t <= 1.62e+67))) tmp = y * ((z - t) / (a - t)); else tmp = x - ((x - y) / ((a - t) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -8e+80], N[Not[LessEqual[t, 1.62e+67]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(N[(x - y), $MachinePrecision] / N[(N[(a - t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -8 \cdot 10^{+80} \lor \neg \left(t \leq 1.62 \cdot 10^{+67}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{x - y}{\frac{a - t}{z}}\\
\end{array}
\end{array}
if t < -8e80 or 1.6199999999999999e67 < t Initial program 42.5%
clear-num42.5%
inv-pow42.5%
*-commutative42.5%
associate-/r*67.9%
Applied egg-rr67.9%
Taylor expanded in x around 0 40.1%
associate-/l*63.3%
Simplified63.3%
if -8e80 < t < 1.6199999999999999e67Initial program 86.1%
clear-num86.1%
inv-pow86.1%
*-commutative86.1%
associate-/r*93.0%
Applied egg-rr93.0%
unpow-193.0%
clear-num93.1%
div-sub89.5%
Applied egg-rr89.5%
div-sub93.1%
Simplified93.1%
Taylor expanded in z around inf 85.0%
Final simplification77.1%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -4.6e-19) (not (<= t 7e+16))) (* y (/ (- z t) (- a t))) (+ x (* z (/ (- y x) a)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -4.6e-19) || !(t <= 7e+16)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - 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 ((t <= (-4.6d-19)) .or. (.not. (t <= 7d+16))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + (z * ((y - 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 ((t <= -4.6e-19) || !(t <= 7e+16)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + (z * ((y - x) / a));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -4.6e-19) or not (t <= 7e+16): tmp = y * ((z - t) / (a - t)) else: tmp = x + (z * ((y - x) / a)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -4.6e-19) || !(t <= 7e+16)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(z * Float64(Float64(y - x) / a))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -4.6e-19) || ~((t <= 7e+16))) tmp = y * ((z - t) / (a - t)); else tmp = x + (z * ((y - x) / a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -4.6e-19], N[Not[LessEqual[t, 7e+16]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(z * N[(N[(y - x), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.6 \cdot 10^{-19} \lor \neg \left(t \leq 7 \cdot 10^{+16}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + z \cdot \frac{y - x}{a}\\
\end{array}
\end{array}
if t < -4.5999999999999996e-19 or 7e16 < t Initial program 51.2%
clear-num51.2%
inv-pow51.2%
*-commutative51.2%
associate-/r*71.2%
Applied egg-rr71.2%
Taylor expanded in x around 0 40.2%
associate-/l*58.7%
Simplified58.7%
if -4.5999999999999996e-19 < t < 7e16Initial program 89.1%
Taylor expanded in t around 0 73.0%
associate-/l*73.7%
Simplified73.7%
Final simplification66.3%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.2e+31) (not (<= t 1.45e+17))) (* y (/ (- z t) (- a t))) (- x (/ z (/ a (- x y))))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.2e+31) || !(t <= 1.45e+17)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x - (z / (a / (x - y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.2d+31)) .or. (.not. (t <= 1.45d+17))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x - (z / (a / (x - y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.2e+31) || !(t <= 1.45e+17)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x - (z / (a / (x - y)));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.2e+31) or not (t <= 1.45e+17): tmp = y * ((z - t) / (a - t)) else: tmp = x - (z / (a / (x - y))) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.2e+31) || !(t <= 1.45e+17)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x - Float64(z / Float64(a / Float64(x - y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.2e+31) || ~((t <= 1.45e+17))) tmp = y * ((z - t) / (a - t)); else tmp = x - (z / (a / (x - y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.2e+31], N[Not[LessEqual[t, 1.45e+17]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(z / N[(a / N[(x - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.2 \cdot 10^{+31} \lor \neg \left(t \leq 1.45 \cdot 10^{+17}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x - \frac{z}{\frac{a}{x - y}}\\
\end{array}
\end{array}
if t < -2.2000000000000001e31 or 1.45e17 < t Initial program 46.4%
clear-num46.4%
inv-pow46.4%
*-commutative46.4%
associate-/r*69.1%
Applied egg-rr69.1%
Taylor expanded in x around 0 39.1%
associate-/l*60.1%
Simplified60.1%
if -2.2000000000000001e31 < t < 1.45e17Initial program 88.8%
Taylor expanded in t around 0 71.1%
associate-/l*71.1%
Simplified71.1%
clear-num71.1%
un-div-inv72.3%
Applied egg-rr72.3%
Final simplification67.0%
(FPCore (x y z t a) :precision binary64 (if (or (<= t -2.5e+80) (not (<= t 8e+16))) (* y (/ (- z t) (- a t))) (+ x (/ (- y x) (/ a z)))))
double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.5e+80) || !(t <= 8e+16)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if ((t <= (-2.5d+80)) .or. (.not. (t <= 8d+16))) then
tmp = y * ((z - t) / (a - t))
else
tmp = x + ((y - x) / (a / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if ((t <= -2.5e+80) || !(t <= 8e+16)) {
tmp = y * ((z - t) / (a - t));
} else {
tmp = x + ((y - x) / (a / z));
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if (t <= -2.5e+80) or not (t <= 8e+16): tmp = y * ((z - t) / (a - t)) else: tmp = x + ((y - x) / (a / z)) return tmp
function code(x, y, z, t, a) tmp = 0.0 if ((t <= -2.5e+80) || !(t <= 8e+16)) tmp = Float64(y * Float64(Float64(z - t) / Float64(a - t))); else tmp = Float64(x + Float64(Float64(y - x) / Float64(a / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if ((t <= -2.5e+80) || ~((t <= 8e+16))) tmp = y * ((z - t) / (a - t)); else tmp = x + ((y - x) / (a / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[Or[LessEqual[t, -2.5e+80], N[Not[LessEqual[t, 8e+16]], $MachinePrecision]], N[(y * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y - x), $MachinePrecision] / N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+80} \lor \neg \left(t \leq 8 \cdot 10^{+16}\right):\\
\;\;\;\;y \cdot \frac{z - t}{a - t}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y - x}{\frac{a}{z}}\\
\end{array}
\end{array}
if t < -2.4999999999999998e80 or 8e16 < t Initial program 44.7%
clear-num44.7%
inv-pow44.7%
*-commutative44.7%
associate-/r*69.7%
Applied egg-rr69.7%
Taylor expanded in x around 0 39.8%
associate-/l*62.8%
Simplified62.8%
if -2.4999999999999998e80 < t < 8e16Initial program 87.2%
clear-num87.1%
inv-pow87.1%
*-commutative87.1%
associate-/r*93.3%
Applied egg-rr93.3%
unpow-193.3%
clear-num93.4%
div-sub89.5%
Applied egg-rr89.5%
div-sub93.4%
Simplified93.4%
Taylor expanded in t around 0 74.8%
Final simplification70.0%
(FPCore (x y z t a) :precision binary64 (if (<= t -3500.0) y (if (<= t 9.5e+122) x y)))
double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3500.0) {
tmp = y;
} else if (t <= 9.5e+122) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8) :: tmp
if (t <= (-3500.0d0)) then
tmp = y
else if (t <= 9.5d+122) then
tmp = x
else
tmp = y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a) {
double tmp;
if (t <= -3500.0) {
tmp = y;
} else if (t <= 9.5e+122) {
tmp = x;
} else {
tmp = y;
}
return tmp;
}
def code(x, y, z, t, a): tmp = 0 if t <= -3500.0: tmp = y elif t <= 9.5e+122: tmp = x else: tmp = y return tmp
function code(x, y, z, t, a) tmp = 0.0 if (t <= -3500.0) tmp = y; elseif (t <= 9.5e+122) tmp = x; else tmp = y; end return tmp end
function tmp_2 = code(x, y, z, t, a) tmp = 0.0; if (t <= -3500.0) tmp = y; elseif (t <= 9.5e+122) tmp = x; else tmp = y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := If[LessEqual[t, -3500.0], y, If[LessEqual[t, 9.5e+122], x, y]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3500:\\
\;\;\;\;y\\
\mathbf{elif}\;t \leq 9.5 \cdot 10^{+122}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y\\
\end{array}
\end{array}
if t < -3500 or 9.49999999999999986e122 < t Initial program 48.5%
Taylor expanded in t around inf 42.6%
if -3500 < t < 9.49999999999999986e122Initial program 84.2%
Taylor expanded in a around inf 34.5%
Final simplification37.7%
(FPCore (x y z t a) :precision binary64 x)
double code(double x, double y, double z, double t, double a) {
return x;
}
real(8) function code(x, y, z, t, a)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
code = x
end function
public static double code(double x, double y, double z, double t, double a) {
return x;
}
def code(x, y, z, t, a): return x
function code(x, y, z, t, a) return x end
function tmp = code(x, y, z, t, a) tmp = x; end
code[x_, y_, z_, t_, a_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 70.3%
Taylor expanded in a around inf 24.8%
Final simplification24.8%
(FPCore (x y z t a)
:precision binary64
(let* ((t_1 (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(if (< a -1.6153062845442575e-142)
t_1
(if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) t_1))))
double code(double x, double y, double z, double t, double a) {
double t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - 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 = x + (((y - x) / 1.0d0) * ((z - t) / (a - t)))
if (a < (-1.6153062845442575d-142)) then
tmp = t_1
else if (a < 3.774403170083174d-182) then
tmp = y - ((z / t) * (y - 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 = x + (((y - x) / 1.0) * ((z - t) / (a - t)));
double tmp;
if (a < -1.6153062845442575e-142) {
tmp = t_1;
} else if (a < 3.774403170083174e-182) {
tmp = y - ((z / t) * (y - x));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a): t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))) tmp = 0 if a < -1.6153062845442575e-142: tmp = t_1 elif a < 3.774403170083174e-182: tmp = y - ((z / t) * (y - x)) else: tmp = t_1 return tmp
function code(x, y, z, t, a) t_1 = Float64(x + Float64(Float64(Float64(y - x) / 1.0) * Float64(Float64(z - t) / Float64(a - t)))) tmp = 0.0 if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = Float64(y - Float64(Float64(z / t) * Float64(y - x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a) t_1 = x + (((y - x) / 1.0) * ((z - t) / (a - t))); tmp = 0.0; if (a < -1.6153062845442575e-142) tmp = t_1; elseif (a < 3.774403170083174e-182) tmp = y - ((z / t) * (y - x)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_] := Block[{t$95$1 = N[(x + N[(N[(N[(y - x), $MachinePrecision] / 1.0), $MachinePrecision] * N[(N[(z - t), $MachinePrecision] / N[(a - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[a, -1.6153062845442575e-142], t$95$1, If[Less[a, 3.774403170083174e-182], N[(y - N[(N[(z / t), $MachinePrecision] * N[(y - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y - x}{1} \cdot \frac{z - t}{a - t}\\
\mathbf{if}\;a < -1.6153062845442575 \cdot 10^{-142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a < 3.774403170083174 \cdot 10^{-182}:\\
\;\;\;\;y - \frac{z}{t} \cdot \left(y - x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024043
(FPCore (x y z t a)
:name "Graphics.Rendering.Chart.Axis.Types:linMap from Chart-1.5.3"
:precision binary64
:alt
(if (< a -1.6153062845442575e-142) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t)))) (if (< a 3.774403170083174e-182) (- y (* (/ z t) (- y x))) (+ x (* (/ (- y x) 1.0) (/ (- z t) (- a t))))))
(+ x (/ (* (- y x) (- z t)) (- a t))))