\[x + \frac{y \cdot \left(\left(z \cdot 0.0692910599291889 + 0.4917317610505968\right) \cdot z + 0.279195317918525\right)}{\left(z + 6.012459259764103\right) \cdot z + 3.350343815022304}
\]
↓
\[\begin{array}{l}
t_0 := x + \frac{y}{14.431876219268936 + \frac{-15.646356830292042}{z}}\\
\mathbf{if}\;z \leq -1932794297.6222742:\\
\;\;\;\;t_0\\
\mathbf{elif}\;z \leq 0.11217360939673404:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(-0.00277777777751721 + z \cdot \left(0.0007936505811533442 + z \cdot -0.0005951669793454025\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_0\\
\end{array}
\]
(FPCore (x y z)
:precision binary64
(+
x
(/
(*
y
(+
(* (+ (* z 0.0692910599291889) 0.4917317610505968) z)
0.279195317918525))
(+ (* (+ z 6.012459259764103) z) 3.350343815022304))))
↓
(FPCore (x y z)
:precision binary64
(let* ((t_0 (+ x (/ y (+ 14.431876219268936 (/ -15.646356830292042 z))))))
(if (<= z -1932794297.6222742)
t_0
(if (<= z 0.11217360939673404)
(+
x
(*
y
(+
0.08333333333333323
(*
z
(+
-0.00277777777751721
(* z (+ 0.0007936505811533442 (* z -0.0005951669793454025))))))))
t_0))))
double code(double x, double y, double z) {
double t_0 = x + (y / (14.431876219268936 + (-15.646356830292042 / z)));
double tmp;
if (z <= -1932794297.6222742) {
tmp = t_0;
} else if (z <= 0.11217360939673404) {
tmp = x + (y * (0.08333333333333323 + (z * (-0.00277777777751721 + (z * (0.0007936505811533442 + (z * -0.0005951669793454025)))))));
} else {
tmp = t_0;
}
return tmp;
}
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = x + ((y * ((((z * 0.0692910599291889d0) + 0.4917317610505968d0) * z) + 0.279195317918525d0)) / (((z + 6.012459259764103d0) * z) + 3.350343815022304d0))
end function
↓
real(8) function code(x, y, z)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: t_0
real(8) :: tmp
t_0 = x + (y / (14.431876219268936d0 + ((-15.646356830292042d0) / z)))
if (z <= (-1932794297.6222742d0)) then
tmp = t_0
else if (z <= 0.11217360939673404d0) then
tmp = x + (y * (0.08333333333333323d0 + (z * ((-0.00277777777751721d0) + (z * (0.0007936505811533442d0 + (z * (-0.0005951669793454025d0))))))))
else
tmp = t_0
end if
code = tmp
end function
def code(x, y, z):
t_0 = x + (y / (14.431876219268936 + (-15.646356830292042 / z)))
tmp = 0
if z <= -1932794297.6222742:
tmp = t_0
elif z <= 0.11217360939673404:
tmp = x + (y * (0.08333333333333323 + (z * (-0.00277777777751721 + (z * (0.0007936505811533442 + (z * -0.0005951669793454025)))))))
else:
tmp = t_0
return tmp
function code(x, y, z)
return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / Float64(Float64(Float64(z + 6.012459259764103) * z) + 3.350343815022304)))
end
↓
function code(x, y, z)
t_0 = Float64(x + Float64(y / Float64(14.431876219268936 + Float64(-15.646356830292042 / z))))
tmp = 0.0
if (z <= -1932794297.6222742)
tmp = t_0;
elseif (z <= 0.11217360939673404)
tmp = Float64(x + Float64(y * Float64(0.08333333333333323 + Float64(z * Float64(-0.00277777777751721 + Float64(z * Float64(0.0007936505811533442 + Float64(z * -0.0005951669793454025))))))));
else
tmp = t_0;
end
return tmp
end
function tmp = code(x, y, z)
tmp = x + ((y * ((((z * 0.0692910599291889) + 0.4917317610505968) * z) + 0.279195317918525)) / (((z + 6.012459259764103) * z) + 3.350343815022304));
end
↓
function tmp_2 = code(x, y, z)
t_0 = x + (y / (14.431876219268936 + (-15.646356830292042 / z)));
tmp = 0.0;
if (z <= -1932794297.6222742)
tmp = t_0;
elseif (z <= 0.11217360939673404)
tmp = x + (y * (0.08333333333333323 + (z * (-0.00277777777751721 + (z * (0.0007936505811533442 + (z * -0.0005951669793454025)))))));
else
tmp = t_0;
end
tmp_2 = tmp;
end
\[\leadsto \color{blue}{x + y \cdot \left(0.08333333333333323 + z \cdot \left(-0.00277777777751721 + z \cdot \left(0.0007936505811533442 + z \cdot -0.0005951669793454025\right)\right)\right)}
\]
Recombined 2 regimes into one program.
Final simplification0.4
\[\leadsto \begin{array}{l}
\mathbf{if}\;z \leq -1932794297.6222742:\\
\;\;\;\;x + \frac{y}{14.431876219268936 + \frac{-15.646356830292042}{z}}\\
\mathbf{elif}\;z \leq 0.11217360939673404:\\
\;\;\;\;x + y \cdot \left(0.08333333333333323 + z \cdot \left(-0.00277777777751721 + z \cdot \left(0.0007936505811533442 + z \cdot -0.0005951669793454025\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{14.431876219268936 + \frac{-15.646356830292042}{z}}\\
\end{array}
\]