
(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))))
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));
}
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
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));
}
def code(x, y, z, t, a, 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))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = 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)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
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}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(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))))
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));
}
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
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));
}
def code(x, y, z, t, a, 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))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = 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)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
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}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3.9e+19)
(fma
y
(+
(+
3.13060547623
(+
(* 1112.0901850848957 (/ 1.0 (pow z 3.0)))
(+
(/ 457.9610022158428 (pow z 2.0))
(+ (/ a (pow z 3.0)) (/ t (pow z 2.0))))))
(-
(* 36.52704169880642 (/ -1.0 z))
(* 15.234687407 (/ (+ 457.9610022158428 t) (pow z 3.0)))))
x)
(if (<= z 4.0)
(+
x
(/
(* y (fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.9e+19) {
tmp = fma(y, ((3.13060547623 + ((1112.0901850848957 * (1.0 / pow(z, 3.0))) + ((457.9610022158428 / pow(z, 2.0)) + ((a / pow(z, 3.0)) + (t / pow(z, 2.0)))))) + ((36.52704169880642 * (-1.0 / z)) - (15.234687407 * ((457.9610022158428 + t) / pow(z, 3.0))))), x);
} else if (z <= 4.0) {
tmp = x + ((y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771));
} else {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.9e+19) tmp = fma(y, Float64(Float64(3.13060547623 + Float64(Float64(1112.0901850848957 * Float64(1.0 / (z ^ 3.0))) + Float64(Float64(457.9610022158428 / (z ^ 2.0)) + Float64(Float64(a / (z ^ 3.0)) + Float64(t / (z ^ 2.0)))))) + Float64(Float64(36.52704169880642 * Float64(-1.0 / z)) - Float64(15.234687407 * Float64(Float64(457.9610022158428 + t) / (z ^ 3.0))))), x); elseif (z <= 4.0) tmp = Float64(x + Float64(Float64(y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771))); else tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.9e+19], N[(y * N[(N[(3.13060547623 + N[(N[(1112.0901850848957 * N[(1.0 / N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(a / N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision] + N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(36.52704169880642 * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision] - N[(15.234687407 * N[(N[(457.9610022158428 + t), $MachinePrecision] / N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.0], N[(x + N[(N[(y * N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(y, \left(3.13060547623 + \left(1112.0901850848957 \cdot \frac{1}{{z}^{3}} + \left(\frac{457.9610022158428}{{z}^{2}} + \left(\frac{a}{{z}^{3}} + \frac{t}{{z}^{2}}\right)\right)\right)\right) + \left(36.52704169880642 \cdot \frac{-1}{z} - 15.234687407 \cdot \frac{457.9610022158428 + t}{{z}^{3}}\right), x\right)\\
\mathbf{elif}\;z \leq 4:\\
\;\;\;\;x + \frac{y \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\end{array}
\end{array}
if z < -3.9e19Initial program 15.1%
Simplified16.6%
Taylor expanded in z around inf 99.9%
if -3.9e19 < z < 4Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-lft-neg-in99.6%
remove-double-neg99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
if 4 < z Initial program 18.5%
Simplified19.9%
Taylor expanded in z around -inf 100.0%
Simplified100.0%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.5e+21)
(fma
y
(+
(+
3.13060547623
(+
(* 1112.0901850848957 (/ 1.0 (pow z 3.0)))
(+
(/ 457.9610022158428 (pow z 2.0))
(+ (/ a (pow z 3.0)) (/ t (pow z 2.0))))))
(-
(* 36.52704169880642 (/ -1.0 z))
(* 15.234687407 (/ (+ 457.9610022158428 t) (pow z 3.0)))))
x)
(if (<= z 4.0)
(+
x
(/
(*
y
(+
b
(*
z
(+
a
(*
z
(+
t
(pow (cbrt (* z (fma z 3.13060547623 11.1667541262))) 3.0)))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.5e+21) {
tmp = fma(y, ((3.13060547623 + ((1112.0901850848957 * (1.0 / pow(z, 3.0))) + ((457.9610022158428 / pow(z, 2.0)) + ((a / pow(z, 3.0)) + (t / pow(z, 2.0)))))) + ((36.52704169880642 * (-1.0 / z)) - (15.234687407 * ((457.9610022158428 + t) / pow(z, 3.0))))), x);
} else if (z <= 4.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + pow(cbrt((z * fma(z, 3.13060547623, 11.1667541262))), 3.0))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
} else {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.5e+21) tmp = fma(y, Float64(Float64(3.13060547623 + Float64(Float64(1112.0901850848957 * Float64(1.0 / (z ^ 3.0))) + Float64(Float64(457.9610022158428 / (z ^ 2.0)) + Float64(Float64(a / (z ^ 3.0)) + Float64(t / (z ^ 2.0)))))) + Float64(Float64(36.52704169880642 * Float64(-1.0 / z)) - Float64(15.234687407 * Float64(Float64(457.9610022158428 + t) / (z ^ 3.0))))), x); elseif (z <= 4.0) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + (cbrt(Float64(z * fma(z, 3.13060547623, 11.1667541262))) ^ 3.0))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); else tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.5e+21], N[(y * N[(N[(3.13060547623 + N[(N[(1112.0901850848957 * N[(1.0 / N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(N[(a / N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision] + N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(36.52704169880642 * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision] - N[(15.234687407 * N[(N[(457.9610022158428 + t), $MachinePrecision] / N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.0], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[Power[N[Power[N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+21}:\\
\;\;\;\;\mathsf{fma}\left(y, \left(3.13060547623 + \left(1112.0901850848957 \cdot \frac{1}{{z}^{3}} + \left(\frac{457.9610022158428}{{z}^{2}} + \left(\frac{a}{{z}^{3}} + \frac{t}{{z}^{2}}\right)\right)\right)\right) + \left(36.52704169880642 \cdot \frac{-1}{z} - 15.234687407 \cdot \frac{457.9610022158428 + t}{{z}^{3}}\right), x\right)\\
\mathbf{elif}\;z \leq 4:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + {\left(\sqrt[3]{z \cdot \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right)}\right)}^{3}\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\end{array}
\end{array}
if z < -1.5e21Initial program 15.1%
Simplified16.6%
Taylor expanded in z around inf 99.9%
if -1.5e21 < z < 4Initial program 99.6%
fma-define99.6%
add-cube-cbrt99.6%
pow399.6%
*-commutative99.6%
Applied egg-rr99.6%
if 4 < z Initial program 18.5%
Simplified19.9%
Taylor expanded in z around -inf 100.0%
Simplified100.0%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -3.1e+19) (not (<= z 4.0)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)
(+
x
(/
(*
y
(+
b
(*
z
(+
a
(*
z
(+ t (pow (cbrt (* z (fma z 3.13060547623 11.1667541262))) 3.0)))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.1e+19) || !(z <= 4.0)) {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + pow(cbrt((z * fma(z, 3.13060547623, 11.1667541262))), 3.0))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.1e+19) || !(z <= 4.0)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + (cbrt(Float64(z * fma(z, 3.13060547623, 11.1667541262))) ^ 3.0))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.1e+19], N[Not[LessEqual[z, 4.0]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[Power[N[Power[N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.1 \cdot 10^{+19} \lor \neg \left(z \leq 4\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + {\left(\sqrt[3]{z \cdot \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right)}\right)}^{3}\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -3.1e19 or 4 < z Initial program 16.8%
Simplified18.3%
Taylor expanded in z around -inf 99.9%
Simplified99.9%
if -3.1e19 < z < 4Initial program 99.6%
fma-define99.6%
add-cube-cbrt99.6%
pow399.6%
*-commutative99.6%
Applied egg-rr99.6%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -9e+20) (not (<= z 4.0)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -9e+20) || !(z <= 4.0)) {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -9e+20) || !(z <= 4.0)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -9e+20], N[Not[LessEqual[z, 4.0]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9 \cdot 10^{+20} \lor \neg \left(z \leq 4\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -9e20 or 4 < z Initial program 16.8%
Simplified18.3%
Taylor expanded in z around -inf 99.9%
Simplified99.9%
if -9e20 < z < 4Initial program 99.6%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2.2e+22) (not (<= z 27500000000.0)))
(fma
y
(+ 3.13060547623 (/ (- (/ (+ 457.9610022158428 t) z) 36.52704169880642) z))
x)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.2e+22) || !(z <= 27500000000.0)) {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + t) / z) - 36.52704169880642) / z)), x);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.2e+22) || !(z <= 27500000000.0)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + t) / z) - 36.52704169880642) / z)), x); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.2e+22], N[Not[LessEqual[z, 27500000000.0]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+22} \lor \neg \left(z \leq 27500000000\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + t}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -2.2e22 or 2.75e10 < z Initial program 15.5%
Simplified17.0%
Taylor expanded in z around -inf 98.4%
mul-1-neg98.4%
unsub-neg98.4%
mul-1-neg98.4%
unsub-neg98.4%
+-commutative98.4%
Simplified98.4%
if -2.2e22 < z < 2.75e10Initial program 99.6%
Final simplification99.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -3.4e+22) (not (<= z 27500000000.0)))
(+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623)))
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.4e+22) || !(z <= 27500000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
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
real(8) :: tmp
if ((z <= (-3.4d+22)) .or. (.not. (z <= 27500000000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.4e+22) || !(z <= 27500000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -3.4e+22) or not (z <= 27500000000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.4e+22) || !(z <= 27500000000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -3.4e+22) || ~((z <= 27500000000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.4e+22], N[Not[LessEqual[z, 27500000000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.4 \cdot 10^{+22} \lor \neg \left(z \leq 27500000000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -3.4e22 or 2.75e10 < z Initial program 15.5%
Taylor expanded in z around -inf 88.6%
Taylor expanded in t around inf 89.4%
mul-1-neg89.4%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-frac-neg97.4%
Simplified97.4%
if -3.4e22 < z < 2.75e10Initial program 99.6%
Final simplification98.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -8.5e+21) (not (<= z 27500000000.0)))
(+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623)))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -8.5e+21) || !(z <= 27500000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
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
real(8) :: tmp
if ((z <= (-8.5d+21)) .or. (.not. (z <= 27500000000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0))))))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -8.5e+21) || !(z <= 27500000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -8.5e+21) or not (z <= 27500000000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -8.5e+21) || !(z <= 27500000000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -8.5e+21) || ~((z <= 27500000000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -8.5e+21], N[Not[LessEqual[z, 27500000000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+21} \lor \neg \left(z \leq 27500000000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -8.5e21 or 2.75e10 < z Initial program 15.5%
Taylor expanded in z around -inf 88.6%
Taylor expanded in t around inf 89.4%
mul-1-neg89.4%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-frac-neg97.4%
Simplified97.4%
if -8.5e21 < z < 2.75e10Initial program 99.6%
Taylor expanded in z around 0 98.7%
*-commutative98.7%
Simplified98.7%
Final simplification98.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6.8e+19) (not (<= z 6000000.0)))
(+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623)))
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.8e+19) || !(z <= 6000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
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
real(8) :: tmp
if ((z <= (-6.8d+19)) .or. (.not. (z <= 6000000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.8e+19) || !(z <= 6000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.8e+19) or not (z <= 6000000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.8e+19) || !(z <= 6000000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.8e+19) || ~((z <= 6000000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.8e+19], N[Not[LessEqual[z, 6000000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.8 \cdot 10^{+19} \lor \neg \left(z \leq 6000000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\end{array}
\end{array}
if z < -6.8e19 or 6e6 < z Initial program 15.5%
Taylor expanded in z around -inf 88.6%
Taylor expanded in t around inf 89.4%
mul-1-neg89.4%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-frac-neg97.4%
Simplified97.4%
if -6.8e19 < z < 6e6Initial program 99.6%
Taylor expanded in z around 0 98.1%
*-commutative97.8%
Simplified98.1%
Final simplification97.7%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2e+20) (not (<= z 120000000.0)))
(+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623)))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2e+20) || !(z <= 120000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
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
real(8) :: tmp
if ((z <= (-2d+20)) .or. (.not. (z <= 120000000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2e+20) || !(z <= 120000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2e+20) or not (z <= 120000000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2e+20) || !(z <= 120000000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2e+20) || ~((z <= 120000000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2e+20], N[Not[LessEqual[z, 120000000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+20} \lor \neg \left(z \leq 120000000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\end{array}
\end{array}
if z < -2e20 or 1.2e8 < z Initial program 15.5%
Taylor expanded in z around -inf 88.6%
Taylor expanded in t around inf 89.4%
mul-1-neg89.4%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-frac-neg97.4%
Simplified97.4%
if -2e20 < z < 1.2e8Initial program 99.6%
Taylor expanded in z around 0 98.7%
*-commutative98.7%
Simplified98.7%
Taylor expanded in z around 0 97.8%
*-commutative97.8%
Simplified97.8%
Final simplification97.6%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -3.9e+19) (not (<= z 1150000000.0)))
(+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623)))
(+
x
(/
(* y (+ b (* z (+ a (* z t)))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.9e+19) || !(z <= 1150000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
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
real(8) :: tmp
if ((z <= (-3.9d+19)) .or. (.not. (z <= 1150000000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.9e+19) || !(z <= 1150000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -3.9e+19) or not (z <= 1150000000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.9e+19) || !(z <= 1150000000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * t))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -3.9e+19) || ~((z <= 1150000000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.9e+19], N[Not[LessEqual[z, 1150000000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.9 \cdot 10^{+19} \lor \neg \left(z \leq 1150000000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot t\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\end{array}
\end{array}
if z < -3.9e19 or 1.15e9 < z Initial program 15.5%
Taylor expanded in z around -inf 88.6%
Taylor expanded in t around inf 89.4%
mul-1-neg89.4%
associate-/l*97.4%
distribute-rgt-neg-in97.4%
distribute-frac-neg97.4%
Simplified97.4%
if -3.9e19 < z < 1.15e9Initial program 99.6%
Taylor expanded in z around 0 90.9%
Taylor expanded in y around 0 97.5%
*-commutative97.5%
Simplified97.5%
Taylor expanded in z around 0 96.5%
*-commutative96.5%
Simplified96.5%
Final simplification96.9%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -0.42) (not (<= z 16500000.0)))
(+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623)))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 16500000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
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
real(8) :: tmp
if ((z <= (-0.42d0)) .or. (.not. (z <= 16500000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 16500000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.42) or not (z <= 16500000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.42) || !(z <= 16500000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.42) || ~((z <= 16500000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.42], N[Not[LessEqual[z, 16500000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.42 \lor \neg \left(z \leq 16500000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -0.419999999999999984 or 1.65e7 < z Initial program 19.4%
Taylor expanded in z around -inf 88.4%
Taylor expanded in t around inf 89.1%
mul-1-neg89.1%
associate-/l*96.7%
distribute-rgt-neg-in96.7%
distribute-frac-neg96.7%
Simplified96.7%
if -0.419999999999999984 < z < 1.65e7Initial program 99.6%
Taylor expanded in z around 0 98.6%
*-commutative98.6%
Simplified98.6%
Taylor expanded in z around 0 98.0%
*-commutative93.9%
Simplified98.0%
Final simplification97.4%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -0.42) (not (<= z 1750000000.0)))
(+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623)))
(+
x
(/
(* y (+ b (* z (+ a (* z t)))))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 1750000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * 11.9400905721)));
}
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
real(8) :: tmp
if ((z <= (-0.42d0)) .or. (.not. (z <= 1750000000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 1750000000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.42) or not (z <= 1750000000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.42) || !(z <= 1750000000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * t))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.42) || ~((z <= 1750000000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * t))))) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.42], N[Not[LessEqual[z, 1750000000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.42 \lor \neg \left(z \leq 1750000000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot t\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -0.419999999999999984 or 1.75e9 < z Initial program 19.4%
Taylor expanded in z around -inf 88.4%
Taylor expanded in t around inf 89.1%
mul-1-neg89.1%
associate-/l*96.7%
distribute-rgt-neg-in96.7%
distribute-frac-neg96.7%
Simplified96.7%
if -0.419999999999999984 < z < 1.75e9Initial program 99.6%
Taylor expanded in z around 0 90.5%
Taylor expanded in y around 0 97.4%
*-commutative97.4%
Simplified97.4%
Taylor expanded in z around 0 96.8%
*-commutative93.9%
Simplified96.8%
Final simplification96.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -5.5e+81)
t_1
(if (<= z -1.08e-13)
(+ x (/ (- (* y 11.1667541262) (/ (* y (- 170.12200846348443 t)) z)) z))
(if (<= z -2.6e-23)
(+ x (* (* a (* z y)) 1.6453555072203998))
(if (<= z 2.3e+21) (+ x (* (* y b) 1.6453555072203998)) 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 <= -5.5e+81) {
tmp = t_1;
} else if (z <= -1.08e-13) {
tmp = x + (((y * 11.1667541262) - ((y * (170.12200846348443 - t)) / z)) / z);
} else if (z <= -2.6e-23) {
tmp = x + ((a * (z * y)) * 1.6453555072203998);
} else if (z <= 2.3e+21) {
tmp = x + ((y * b) * 1.6453555072203998);
} 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
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-5.5d+81)) then
tmp = t_1
else if (z <= (-1.08d-13)) then
tmp = x + (((y * 11.1667541262d0) - ((y * (170.12200846348443d0 - t)) / z)) / z)
else if (z <= (-2.6d-23)) then
tmp = x + ((a * (z * y)) * 1.6453555072203998d0)
else if (z <= 2.3d+21) then
tmp = x + ((y * b) * 1.6453555072203998d0)
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) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -5.5e+81) {
tmp = t_1;
} else if (z <= -1.08e-13) {
tmp = x + (((y * 11.1667541262) - ((y * (170.12200846348443 - t)) / z)) / z);
} else if (z <= -2.6e-23) {
tmp = x + ((a * (z * y)) * 1.6453555072203998);
} else if (z <= 2.3e+21) {
tmp = x + ((y * b) * 1.6453555072203998);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -5.5e+81: tmp = t_1 elif z <= -1.08e-13: tmp = x + (((y * 11.1667541262) - ((y * (170.12200846348443 - t)) / z)) / z) elif z <= -2.6e-23: tmp = x + ((a * (z * y)) * 1.6453555072203998) elif z <= 2.3e+21: tmp = x + ((y * b) * 1.6453555072203998) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -5.5e+81) tmp = t_1; elseif (z <= -1.08e-13) tmp = Float64(x + Float64(Float64(Float64(y * 11.1667541262) - Float64(Float64(y * Float64(170.12200846348443 - t)) / z)) / z)); elseif (z <= -2.6e-23) tmp = Float64(x + Float64(Float64(a * Float64(z * y)) * 1.6453555072203998)); elseif (z <= 2.3e+21) tmp = Float64(x + Float64(Float64(y * b) * 1.6453555072203998)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -5.5e+81) tmp = t_1; elseif (z <= -1.08e-13) tmp = x + (((y * 11.1667541262) - ((y * (170.12200846348443 - t)) / z)) / z); elseif (z <= -2.6e-23) tmp = x + ((a * (z * y)) * 1.6453555072203998); elseif (z <= 2.3e+21) tmp = x + ((y * b) * 1.6453555072203998); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.5e+81], t$95$1, If[LessEqual[z, -1.08e-13], N[(x + N[(N[(N[(y * 11.1667541262), $MachinePrecision] - N[(N[(y * N[(170.12200846348443 - t), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e-23], N[(x + N[(N[(a * N[(z * y), $MachinePrecision]), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+21], N[(x + N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{+81}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.08 \cdot 10^{-13}:\\
\;\;\;\;x + \frac{y \cdot 11.1667541262 - \frac{y \cdot \left(170.12200846348443 - t\right)}{z}}{z}\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-23}:\\
\;\;\;\;x + \left(a \cdot \left(z \cdot y\right)\right) \cdot 1.6453555072203998\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+21}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.5000000000000003e81 or 2.3e21 < z Initial program 8.5%
Simplified8.5%
Taylor expanded in z around inf 96.4%
+-commutative96.4%
*-commutative96.4%
Simplified96.4%
if -5.5000000000000003e81 < z < -1.0799999999999999e-13Initial program 76.6%
Taylor expanded in z around 0 72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in z around inf 77.1%
associate--l+77.1%
*-commutative77.1%
associate-*r/77.1%
div-sub77.1%
distribute-rgt-out--77.1%
Simplified77.1%
if -1.0799999999999999e-13 < z < -2.6e-23Initial program 100.0%
Taylor expanded in a around inf 100.0%
Taylor expanded in z around 0 100.0%
*-commutative100.0%
Simplified100.0%
if -2.6e-23 < z < 2.3e21Initial program 97.3%
Simplified98.1%
Taylor expanded in z around 0 78.9%
+-commutative78.9%
*-commutative78.9%
Simplified78.9%
Final simplification86.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.42) (not (<= z 4100000.0))) (+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623))) (+ x (/ (+ (* a (* z y)) (* y b)) (+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 4100000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + (((a * (z * y)) + (y * b)) / (0.607771387771 + (z * 11.9400905721)));
}
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
real(8) :: tmp
if ((z <= (-0.42d0)) .or. (.not. (z <= 4100000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + (((a * (z * y)) + (y * b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.42) || !(z <= 4100000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + (((a * (z * y)) + (y * b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.42) or not (z <= 4100000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + (((a * (z * y)) + (y * b)) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.42) || !(z <= 4100000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(Float64(a * Float64(z * y)) + Float64(y * b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.42) || ~((z <= 4100000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + (((a * (z * y)) + (y * b)) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.42], N[Not[LessEqual[z, 4100000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(N[(a * N[(z * y), $MachinePrecision]), $MachinePrecision] + N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.42 \lor \neg \left(z \leq 4100000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{a \cdot \left(z \cdot y\right) + y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -0.419999999999999984 or 4.1e6 < z Initial program 19.4%
Taylor expanded in z around -inf 88.4%
Taylor expanded in t around inf 89.1%
mul-1-neg89.1%
associate-/l*96.7%
distribute-rgt-neg-in96.7%
distribute-frac-neg96.7%
Simplified96.7%
if -0.419999999999999984 < z < 4.1e6Initial program 99.6%
Taylor expanded in t around 0 94.6%
Taylor expanded in z around 0 93.9%
*-commutative93.9%
Simplified93.9%
Taylor expanded in z around 0 89.5%
Final simplification93.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -20500.0) (not (<= z 2200000.0))) (+ x (+ (/ (* t (/ y z)) z) (* y 3.13060547623))) (+ x (* (* y b) 1.6453555072203998))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -20500.0) || !(z <= 2200000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * b) * 1.6453555072203998);
}
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
real(8) :: tmp
if ((z <= (-20500.0d0)) .or. (.not. (z <= 2200000.0d0))) then
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623d0))
else
tmp = x + ((y * b) * 1.6453555072203998d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -20500.0) || !(z <= 2200000.0)) {
tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623));
} else {
tmp = x + ((y * b) * 1.6453555072203998);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -20500.0) or not (z <= 2200000.0): tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)) else: tmp = x + ((y * b) * 1.6453555072203998) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -20500.0) || !(z <= 2200000.0)) tmp = Float64(x + Float64(Float64(Float64(t * Float64(y / z)) / z) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * b) * 1.6453555072203998)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -20500.0) || ~((z <= 2200000.0))) tmp = x + (((t * (y / z)) / z) + (y * 3.13060547623)); else tmp = x + ((y * b) * 1.6453555072203998); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -20500.0], N[Not[LessEqual[z, 2200000.0]], $MachinePrecision]], N[(x + N[(N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -20500 \lor \neg \left(z \leq 2200000\right):\\
\;\;\;\;x + \left(\frac{t \cdot \frac{y}{z}}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\end{array}
\end{array}
if z < -20500 or 2.2e6 < z Initial program 18.8%
Taylor expanded in z around -inf 89.0%
Taylor expanded in t around inf 89.8%
mul-1-neg89.8%
associate-/l*97.5%
distribute-rgt-neg-in97.5%
distribute-frac-neg97.5%
Simplified97.5%
if -20500 < z < 2.2e6Initial program 99.6%
Simplified99.6%
Taylor expanded in z around 0 75.9%
+-commutative75.9%
*-commutative75.9%
Simplified75.9%
Final simplification86.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.55e+20) (not (<= z 2.3e+21))) (+ x (* y 3.13060547623)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.55e+20) || !(z <= 2.3e+21)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
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
real(8) :: tmp
if ((z <= (-1.55d+20)) .or. (.not. (z <= 2.3d+21))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.55e+20) || !(z <= 2.3e+21)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.55e+20) or not (z <= 2.3e+21): tmp = x + (y * 3.13060547623) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.55e+20) || !(z <= 2.3e+21)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.55e+20) || ~((z <= 2.3e+21))) tmp = x + (y * 3.13060547623); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.55e+20], N[Not[LessEqual[z, 2.3e+21]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+20} \lor \neg \left(z \leq 2.3 \cdot 10^{+21}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.55e20 or 2.3e21 < z Initial program 15.0%
Simplified15.8%
Taylor expanded in z around inf 92.1%
+-commutative92.1%
*-commutative92.1%
Simplified92.1%
if -1.55e20 < z < 2.3e21Initial program 97.5%
Taylor expanded in z around 0 76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in z around 0 76.1%
*-commutative76.1%
associate-*r*76.1%
Simplified76.1%
Final simplification83.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.1e+21) (not (<= z 2.5e+21))) (+ x (* y 3.13060547623)) (+ x (* (* y b) 1.6453555072203998))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.1e+21) || !(z <= 2.5e+21)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * b) * 1.6453555072203998);
}
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
real(8) :: tmp
if ((z <= (-1.1d+21)) .or. (.not. (z <= 2.5d+21))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + ((y * b) * 1.6453555072203998d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.1e+21) || !(z <= 2.5e+21)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * b) * 1.6453555072203998);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.1e+21) or not (z <= 2.5e+21): tmp = x + (y * 3.13060547623) else: tmp = x + ((y * b) * 1.6453555072203998) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.1e+21) || !(z <= 2.5e+21)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(Float64(y * b) * 1.6453555072203998)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.1e+21) || ~((z <= 2.5e+21))) tmp = x + (y * 3.13060547623); else tmp = x + ((y * b) * 1.6453555072203998); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.1e+21], N[Not[LessEqual[z, 2.5e+21]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.1 \cdot 10^{+21} \lor \neg \left(z \leq 2.5 \cdot 10^{+21}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\end{array}
\end{array}
if z < -1.1e21 or 2.5e21 < z Initial program 15.0%
Simplified15.8%
Taylor expanded in z around inf 92.1%
+-commutative92.1%
*-commutative92.1%
Simplified92.1%
if -1.1e21 < z < 2.5e21Initial program 97.5%
Simplified98.2%
Taylor expanded in z around 0 76.1%
+-commutative76.1%
*-commutative76.1%
Simplified76.1%
Final simplification83.7%
(FPCore (x y z t a b) :precision binary64 (+ x (* y 3.13060547623)))
double code(double x, double y, double z, double t, double a, double b) {
return x + (y * 3.13060547623);
}
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 * 3.13060547623d0)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (y * 3.13060547623);
}
def code(x, y, z, t, a, b): return x + (y * 3.13060547623)
function code(x, y, z, t, a, b) return Float64(x + Float64(y * 3.13060547623)) end
function tmp = code(x, y, z, t, a, b) tmp = x + (y * 3.13060547623); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot 3.13060547623
\end{array}
Initial program 58.5%
Simplified59.3%
Taylor expanded in z around inf 66.2%
+-commutative66.2%
*-commutative66.2%
Simplified66.2%
Final simplification66.2%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
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
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 58.5%
Simplified59.3%
Taylor expanded in y around 0 50.2%
Final simplification50.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
(+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
(/ y 1.0)))))
(if (< z -6.499344996252632e+53)
t_1
(if (< z 7.066965436914287e+59)
(+
x
(/
y
(/
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} 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
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((3.13060547623d0 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
if (z < (-6.499344996252632d+53)) then
tmp = t_1
else if (z < 7.066965436914287d+59) then
tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
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) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)) tmp = 0 if z < -6.499344996252632e+53: tmp = t_1 elif z < 7.066965436914287e+59: tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0))) tmp = 0.0 if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)); tmp = 0.0; if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
\mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024067
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (if (< z 7.066965436914287e+59) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771) (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))
(+ 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))))