\[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\]
↓
\[\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+53}:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(z \cdot \left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) + a\right)\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
↓
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.45e+62)
t_1
(if (<= z 3.6e+53)
(+
x
(/
(+
(* y b)
(*
y
(*
z
(+ (* z (+ (* (+ (* 3.13060547623 z) 11.1667541262) z) t)) a))))
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.45e+62) {
tmp = t_1;
} else if (z <= 3.6e+53) {
tmp = x + (((y * b) + (y * (z * ((z * ((((3.13060547623 * z) + 11.1667541262) * z) + t)) + a)))) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
↓
real(8) function code(x, y, z, t, a, b)
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), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-1.45d+62)) then
tmp = t_1
else if (z <= 3.6d+53) then
tmp = x + (((y * b) + (y * (z * ((z * ((((3.13060547623d0 * z) + 11.1667541262d0) * z) + t)) + a)))) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
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 b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
↓
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.45e+62) {
tmp = t_1;
} else if (z <= 3.6e+53) {
tmp = x + (((y * b) + (y * (z * ((z * ((((3.13060547623 * z) + 11.1667541262) * z) + t)) + a)))) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
↓
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+53}:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(z \cdot \left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) + a\right)\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\]
Taylor expanded in z around inf 2.5
\[\leadsto x + \color{blue}{3.13060547623 \cdot y}
\]
Simplified2.5
\[\leadsto x + \color{blue}{y \cdot 3.13060547623}
\]
Proof
[Start]2.5
\[ x + 3.13060547623 \cdot y
\]
rational.json-simplify-2 [=>]2.5
\[ x + \color{blue}{y \cdot 3.13060547623}
\]
if -1.44999999999999992e62 < z < 3.6e53
Initial program 3.0
\[x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\]
Taylor expanded in b around 0 3.0
\[\leadsto x + \frac{\color{blue}{y \cdot b + y \cdot \left(z \cdot \left(z \cdot \left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) + a\right)\right)}}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\]
Recombined 2 regimes into one program.
Final simplification2.8
\[\leadsto \begin{array}{l}
\mathbf{if}\;z \leq -1.45 \cdot 10^{+62}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+53}:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(z \cdot \left(\left(3.13060547623 \cdot z + 11.1667541262\right) \cdot z + t\right) + a\right)\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\]
Alternatives
Alternative 1
Error
2.8
Cost
2632
\[\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.45 \cdot 10^{+62}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+53}:\\
\;\;\;\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 2
Error
3.2
Cost
2504
\[\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.6 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+53}:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(z \cdot \left(z \cdot 11.1667541262 + t\right) + a\right)\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]
Alternative 3
Error
3.2
Cost
2376
\[\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -4.6 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.6 \cdot 10^{+53}:\\
\;\;\;\;x + \frac{y \cdot \left(\left(\left(z \cdot 11.1667541262 + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\]