
(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 16 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
(let* ((t_1
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))
(if (or (<= z -1.8e+27) (not (<= z 1.9e+16)))
(fma
(+
3.13060547623
(+
(+
(+ (/ 457.9610022158428 (pow z 2.0)) (/ t (pow z 2.0)))
(/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) (pow z 3.0)))
(/ -36.52704169880642 z)))
y
x)
(fma
(+
(/ b t_1)
(+
(/ (* z a) t_1)
(/
(* (pow z 2.0) (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))
t_1)))
y
x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double tmp;
if ((z <= -1.8e+27) || !(z <= 1.9e+16)) {
tmp = fma((3.13060547623 + ((((457.9610022158428 / pow(z, 2.0)) + (t / pow(z, 2.0))) + ((a + (-5864.8025282699045 + (t * -15.234687407))) / pow(z, 3.0))) + (-36.52704169880642 / z))), y, x);
} else {
tmp = fma(((b / t_1) + (((z * a) / t_1) + ((pow(z, 2.0) * (t + (z * (11.1667541262 + (z * 3.13060547623))))) / t_1))), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))) tmp = 0.0 if ((z <= -1.8e+27) || !(z <= 1.9e+16)) tmp = fma(Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 / (z ^ 2.0)) + Float64(t / (z ^ 2.0))) + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / (z ^ 3.0))) + Float64(-36.52704169880642 / z))), y, x); else tmp = fma(Float64(Float64(b / t_1) + Float64(Float64(Float64(z * a) / t_1) + Float64(Float64((z ^ 2.0) * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))) / t_1))), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = 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]}, If[Or[LessEqual[z, -1.8e+27], N[Not[LessEqual[z, 1.9e+16]], $MachinePrecision]], N[(N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[Power[z, 3.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(N[(b / t$95$1), $MachinePrecision] + N[(N[(N[(z * a), $MachinePrecision] / t$95$1), $MachinePrecision] + N[(N[(N[Power[z, 2.0], $MachinePrecision] * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{+27} \lor \neg \left(z \leq 1.9 \cdot 10^{+16}\right):\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 + \left(\left(\left(\frac{457.9610022158428}{{z}^{2}} + \frac{t}{{z}^{2}}\right) + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{{z}^{3}}\right) + \frac{-36.52704169880642}{z}\right), y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\frac{b}{t_1} + \left(\frac{z \cdot a}{t_1} + \frac{{z}^{2} \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)}{t_1}\right), y, x\right)\\
\end{array}
\end{array}
if z < -1.79999999999999991e27 or 1.9e16 < z Initial program 12.2%
Simplified13.5%
Taylor expanded in z around -inf 99.9%
Simplified99.9%
if -1.79999999999999991e27 < z < 1.9e16Initial program 98.9%
Simplified99.7%
Taylor expanded in a around 0 99.7%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))
(t_2
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))
(if (<= (/ (* y (+ b (* z (+ a (* z t_1))))) t_2) INFINITY)
(fma (+ (/ b t_2) (+ (/ (* z a) t_2) (/ (* (pow z 2.0) t_1) t_2))) y x)
(fma
(+
3.13060547623
(-
(+ (/ 457.9610022158428 (pow z 2.0)) (/ t (pow z 2.0)))
(/ 36.52704169880642 z)))
y
x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t + (z * (11.1667541262 + (z * 3.13060547623)));
double t_2 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double tmp;
if (((y * (b + (z * (a + (z * t_1))))) / t_2) <= ((double) INFINITY)) {
tmp = fma(((b / t_2) + (((z * a) / t_2) + ((pow(z, 2.0) * t_1) / t_2))), y, x);
} else {
tmp = fma((3.13060547623 + (((457.9610022158428 / pow(z, 2.0)) + (t / pow(z, 2.0))) - (36.52704169880642 / z))), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623)))) t_2 = Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))) tmp = 0.0 if (Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * t_1))))) / t_2) <= Inf) tmp = fma(Float64(Float64(b / t_2) + Float64(Float64(Float64(z * a) / t_2) + Float64(Float64((z ^ 2.0) * t_1) / t_2))), y, x); else tmp = fma(Float64(3.13060547623 + Float64(Float64(Float64(457.9610022158428 / (z ^ 2.0)) + Float64(t / (z ^ 2.0))) - Float64(36.52704169880642 / z))), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[N[(N[(y * N[(b + N[(z * N[(a + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], Infinity], N[(N[(N[(b / t$95$2), $MachinePrecision] + N[(N[(N[(z * a), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(N[Power[z, 2.0], $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(3.13060547623 + N[(N[(N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\\
t_2 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
\mathbf{if}\;\frac{y \cdot \left(b + z \cdot \left(a + z \cdot t_1\right)\right)}{t_2} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{b}{t_2} + \left(\frac{z \cdot a}{t_2} + \frac{{z}^{2} \cdot t_1}{t_2}\right), y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 + \left(\left(\frac{457.9610022158428}{{z}^{2}} + \frac{t}{{z}^{2}}\right) - \frac{36.52704169880642}{z}\right), y, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 93.8%
Simplified95.7%
Taylor expanded in a around 0 95.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 99.1%
associate--l+99.1%
associate-*r/99.1%
metadata-eval99.1%
associate-*r/99.1%
metadata-eval99.1%
Simplified99.1%
Final simplification97.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))
(t_2
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))
(if (<= (/ (* y (+ b (* z (+ a (* z t_1))))) t_2) INFINITY)
(fma (+ (/ b t_2) (+ (/ (* z a) t_2) (/ (* (pow z 2.0) t_1) t_2))) y x)
(+ x (* 3.13060547623 y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = t + (z * (11.1667541262 + (z * 3.13060547623)));
double t_2 = 0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))));
double tmp;
if (((y * (b + (z * (a + (z * t_1))))) / t_2) <= ((double) INFINITY)) {
tmp = fma(((b / t_2) + (((z * a) / t_2) + ((pow(z, 2.0) * t_1) / t_2))), y, x);
} else {
tmp = x + (3.13060547623 * y);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623)))) t_2 = Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))) tmp = 0.0 if (Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * t_1))))) / t_2) <= Inf) tmp = fma(Float64(Float64(b / t_2) + Float64(Float64(Float64(z * a) / t_2) + Float64(Float64((z ^ 2.0) * t_1) / t_2))), y, x); else tmp = Float64(x + Float64(3.13060547623 * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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]}, If[LessEqual[N[(N[(y * N[(b + N[(z * N[(a + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / t$95$2), $MachinePrecision], Infinity], N[(N[(N[(b / t$95$2), $MachinePrecision] + N[(N[(N[(z * a), $MachinePrecision] / t$95$2), $MachinePrecision] + N[(N[(N[Power[z, 2.0], $MachinePrecision] * t$95$1), $MachinePrecision] / t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\\
t_2 := 0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)\\
\mathbf{if}\;\frac{y \cdot \left(b + z \cdot \left(a + z \cdot t_1\right)\right)}{t_2} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{b}{t_2} + \left(\frac{z \cdot a}{t_2} + \frac{{z}^{2} \cdot t_1}{t_2}\right), y, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + 3.13060547623 \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 93.8%
Simplified95.7%
Taylor expanded in a around 0 95.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 95.6%
+-commutative95.6%
*-commutative95.6%
Simplified95.6%
Final simplification95.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+
11.9400905721
(* z (+ 31.4690115749 (* z (+ z 15.234687407))))))))))
(if (<= t_1 INFINITY) (+ x t_1) (+ x (* 3.13060547623 y)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (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 tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = x + t_1;
} else {
tmp = x + (3.13060547623 * y);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (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 tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = x + t_1;
} else {
tmp = x + (3.13060547623 * y);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))) tmp = 0 if t_1 <= math.inf: tmp = x + t_1 else: tmp = x + (3.13060547623 * y) return tmp
function code(x, y, z, t, a, b) t_1 = 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)))))))) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(x + t_1); else tmp = Float64(x + Float64(3.13060547623 * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))); tmp = 0.0; if (t_1 <= Inf) tmp = x + t_1; else tmp = x + (3.13060547623 * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = 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]}, If[LessEqual[t$95$1, Infinity], N[(x + t$95$1), $MachinePrecision], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \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)}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;x + t_1\\
\mathbf{else}:\\
\;\;\;\;x + 3.13060547623 \cdot y\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 93.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 95.6%
+-commutative95.6%
*-commutative95.6%
Simplified95.6%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.32e+69) (not (<= z 1.55e+49)))
(+ x (* 3.13060547623 y))
(+
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 <= -1.32e+69) || !(z <= 1.55e+49)) {
tmp = x + (3.13060547623 * y);
} 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 <= (-1.32d+69)) .or. (.not. (z <= 1.55d+49))) then
tmp = x + (3.13060547623d0 * y)
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 <= -1.32e+69) || !(z <= 1.55e+49)) {
tmp = x + (3.13060547623 * y);
} 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 <= -1.32e+69) or not (z <= 1.55e+49): tmp = x + (3.13060547623 * y) 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 <= -1.32e+69) || !(z <= 1.55e+49)) tmp = Float64(x + Float64(3.13060547623 * y)); 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 <= -1.32e+69) || ~((z <= 1.55e+49))) tmp = x + (3.13060547623 * y); 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, -1.32e+69], N[Not[LessEqual[z, 1.55e+49]], $MachinePrecision]], N[(x + N[(3.13060547623 * y), $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 -1.32 \cdot 10^{+69} \lor \neg \left(z \leq 1.55 \cdot 10^{+49}\right):\\
\;\;\;\;x + 3.13060547623 \cdot y\\
\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 < -1.32e69 or 1.54999999999999996e49 < z Initial program 1.8%
Simplified1.8%
Taylor expanded in z around inf 93.3%
+-commutative93.3%
*-commutative93.3%
Simplified93.3%
if -1.32e69 < z < 1.54999999999999996e49Initial program 96.3%
Taylor expanded in z around 0 94.1%
*-commutative86.0%
Simplified94.1%
Final simplification93.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -30000.0)
(+ x (- (* 3.13060547623 y) (/ (* y 36.52704169880642) z)))
(if (<= z 6.0)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+ 0.607771387771 (* z 11.9400905721))))
(+ x (* 3.13060547623 y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -30000.0) {
tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z));
} else if (z <= 6.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (3.13060547623 * y);
}
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 <= (-30000.0d0)) then
tmp = x + ((3.13060547623d0 * y) - ((y * 36.52704169880642d0) / z))
else if (z <= 6.0d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (3.13060547623d0 * y)
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 <= -30000.0) {
tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z));
} else if (z <= 6.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (3.13060547623 * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -30000.0: tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z)) elif z <= 6.0: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (3.13060547623 * y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -30000.0) tmp = Float64(x + Float64(Float64(3.13060547623 * y) - Float64(Float64(y * 36.52704169880642) / z))); elseif (z <= 6.0) 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 * 11.9400905721)))); else tmp = Float64(x + Float64(3.13060547623 * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -30000.0) tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z)); elseif (z <= 6.0) tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (3.13060547623 * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -30000.0], N[(x + N[(N[(3.13060547623 * y), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.0], 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 * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -30000:\\
\;\;\;\;x + \left(3.13060547623 \cdot y - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 6:\\
\;\;\;\;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 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + 3.13060547623 \cdot y\\
\end{array}
\end{array}
if z < -3e4Initial program 19.8%
Simplified22.4%
Taylor expanded in z around -inf 83.4%
+-commutative83.4%
mul-1-neg83.4%
unsub-neg83.4%
*-commutative83.4%
cancel-sign-sub-inv83.4%
metadata-eval83.4%
distribute-rgt-out83.4%
metadata-eval83.4%
Simplified83.4%
if -3e4 < z < 6Initial program 99.7%
Taylor expanded in z around 0 99.2%
*-commutative99.2%
Simplified99.2%
if 6 < z Initial program 12.3%
Simplified10.9%
Taylor expanded in z around inf 89.1%
+-commutative89.1%
*-commutative89.1%
Simplified89.1%
Final simplification92.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -30000.0)
(+ x (- (* 3.13060547623 y) (/ (* y 36.52704169880642) z)))
(if (<= z 6.0)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))
(+ x (* 3.13060547623 y)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -30000.0) {
tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z));
} else if (z <= 6.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (3.13060547623 * y);
}
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 <= (-30000.0d0)) then
tmp = x + ((3.13060547623d0 * y) - ((y * 36.52704169880642d0) / z))
else if (z <= 6.0d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (3.13060547623d0 * y)
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 <= -30000.0) {
tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z));
} else if (z <= 6.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (3.13060547623 * y);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -30000.0: tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z)) elif z <= 6.0: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (3.13060547623 * y) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -30000.0) tmp = Float64(x + Float64(Float64(3.13060547623 * y) - Float64(Float64(y * 36.52704169880642) / z))); elseif (z <= 6.0) 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)))); else tmp = Float64(x + Float64(3.13060547623 * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -30000.0) tmp = x + ((3.13060547623 * y) - ((y * 36.52704169880642) / z)); elseif (z <= 6.0) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (3.13060547623 * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -30000.0], N[(x + N[(N[(3.13060547623 * y), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.0], 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], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -30000:\\
\;\;\;\;x + \left(3.13060547623 \cdot y - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 6:\\
\;\;\;\;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}\\
\mathbf{else}:\\
\;\;\;\;x + 3.13060547623 \cdot y\\
\end{array}
\end{array}
if z < -3e4Initial program 19.8%
Simplified22.4%
Taylor expanded in z around -inf 83.4%
+-commutative83.4%
mul-1-neg83.4%
unsub-neg83.4%
*-commutative83.4%
cancel-sign-sub-inv83.4%
metadata-eval83.4%
distribute-rgt-out83.4%
metadata-eval83.4%
Simplified83.4%
if -3e4 < z < 6Initial program 99.7%
Taylor expanded in z around 0 99.2%
*-commutative99.2%
Simplified99.2%
Taylor expanded in z around 0 98.9%
*-commutative98.9%
Simplified98.9%
if 6 < z Initial program 12.3%
Simplified10.9%
Taylor expanded in z around inf 89.1%
+-commutative89.1%
*-commutative89.1%
Simplified89.1%
Final simplification92.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* 3.13060547623 y))))
(if (<= z -6.5e+33)
t_1
(if (<= z -1.56e-91)
(+ x (* 1.6453555072203998 (* z (* a y))))
(if (<= z 3.8e-144)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 1.4e-41)
(+ x (* 1.6453555072203998 (* a (* z y))))
(if (<= z 8.2e-8)
(+ x (/ (* y b) (+ 0.607771387771 (* z 11.9400905721))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (3.13060547623 * y);
double tmp;
if (z <= -6.5e+33) {
tmp = t_1;
} else if (z <= -1.56e-91) {
tmp = x + (1.6453555072203998 * (z * (a * y)));
} else if (z <= 3.8e-144) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 1.4e-41) {
tmp = x + (1.6453555072203998 * (a * (z * y)));
} else if (z <= 8.2e-8) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} 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 * y)
if (z <= (-6.5d+33)) then
tmp = t_1
else if (z <= (-1.56d-91)) then
tmp = x + (1.6453555072203998d0 * (z * (a * y)))
else if (z <= 3.8d-144) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 1.4d-41) then
tmp = x + (1.6453555072203998d0 * (a * (z * y)))
else if (z <= 8.2d-8) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * 11.9400905721d0)))
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 * y);
double tmp;
if (z <= -6.5e+33) {
tmp = t_1;
} else if (z <= -1.56e-91) {
tmp = x + (1.6453555072203998 * (z * (a * y)));
} else if (z <= 3.8e-144) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 1.4e-41) {
tmp = x + (1.6453555072203998 * (a * (z * y)));
} else if (z <= 8.2e-8) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (3.13060547623 * y) tmp = 0 if z <= -6.5e+33: tmp = t_1 elif z <= -1.56e-91: tmp = x + (1.6453555072203998 * (z * (a * y))) elif z <= 3.8e-144: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 1.4e-41: tmp = x + (1.6453555072203998 * (a * (z * y))) elif z <= 8.2e-8: tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(3.13060547623 * y)) tmp = 0.0 if (z <= -6.5e+33) tmp = t_1; elseif (z <= -1.56e-91) tmp = Float64(x + Float64(1.6453555072203998 * Float64(z * Float64(a * y)))); elseif (z <= 3.8e-144) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 1.4e-41) tmp = Float64(x + Float64(1.6453555072203998 * Float64(a * Float64(z * y)))); elseif (z <= 8.2e-8) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (3.13060547623 * y); tmp = 0.0; if (z <= -6.5e+33) tmp = t_1; elseif (z <= -1.56e-91) tmp = x + (1.6453555072203998 * (z * (a * y))); elseif (z <= 3.8e-144) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 1.4e-41) tmp = x + (1.6453555072203998 * (a * (z * y))); elseif (z <= 8.2e-8) tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+33], t$95$1, If[LessEqual[z, -1.56e-91], N[(x + N[(1.6453555072203998 * N[(z * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e-144], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e-41], N[(x + N[(1.6453555072203998 * N[(a * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e-8], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + 3.13060547623 \cdot y\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.56 \cdot 10^{-91}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(z \cdot \left(a \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-144}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-41}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(a \cdot \left(z \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-8}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -6.49999999999999993e33 or 8.20000000000000063e-8 < z Initial program 12.9%
Simplified12.7%
Taylor expanded in z around inf 88.0%
+-commutative88.0%
*-commutative88.0%
Simplified88.0%
if -6.49999999999999993e33 < z < -1.5599999999999999e-91Initial program 92.7%
Taylor expanded in a around inf 64.7%
associate-*r*71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in z around 0 64.6%
associate-*r*71.2%
*-commutative71.2%
Simplified71.2%
if -1.5599999999999999e-91 < z < 3.79999999999999993e-144Initial program 99.7%
Simplified99.7%
Taylor expanded in z around 0 89.4%
associate-*r*89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in b around 0 89.4%
*-commutative89.4%
associate-*r*89.5%
Simplified89.5%
if 3.79999999999999993e-144 < z < 1.4000000000000001e-41Initial program 99.7%
Taylor expanded in a around inf 80.3%
associate-*r*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in z around 0 80.3%
if 1.4000000000000001e-41 < z < 8.20000000000000063e-8Initial program 99.7%
Taylor expanded in z around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around 0 83.7%
*-commutative83.7%
Simplified83.7%
Final simplification86.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ 0.607771387771 (* z 11.9400905721)))
(t_2 (+ x (* 3.13060547623 y))))
(if (<= z -6.2e+33)
t_2
(if (<= z -3.4e-91)
(+ x (* 1.6453555072203998 (* z (* a y))))
(if (<= z 3.8e-142)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 4.6e-39)
(+ x (/ (* a (* z y)) t_1))
(if (<= z 8.2e-8) (+ x (/ (* y b) t_1)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 0.607771387771 + (z * 11.9400905721);
double t_2 = x + (3.13060547623 * y);
double tmp;
if (z <= -6.2e+33) {
tmp = t_2;
} else if (z <= -3.4e-91) {
tmp = x + (1.6453555072203998 * (z * (a * y)));
} else if (z <= 3.8e-142) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 4.6e-39) {
tmp = x + ((a * (z * y)) / t_1);
} else if (z <= 8.2e-8) {
tmp = x + ((y * b) / t_1);
} else {
tmp = t_2;
}
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) :: t_2
real(8) :: tmp
t_1 = 0.607771387771d0 + (z * 11.9400905721d0)
t_2 = x + (3.13060547623d0 * y)
if (z <= (-6.2d+33)) then
tmp = t_2
else if (z <= (-3.4d-91)) then
tmp = x + (1.6453555072203998d0 * (z * (a * y)))
else if (z <= 3.8d-142) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 4.6d-39) then
tmp = x + ((a * (z * y)) / t_1)
else if (z <= 8.2d-8) then
tmp = x + ((y * b) / 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 b) {
double t_1 = 0.607771387771 + (z * 11.9400905721);
double t_2 = x + (3.13060547623 * y);
double tmp;
if (z <= -6.2e+33) {
tmp = t_2;
} else if (z <= -3.4e-91) {
tmp = x + (1.6453555072203998 * (z * (a * y)));
} else if (z <= 3.8e-142) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 4.6e-39) {
tmp = x + ((a * (z * y)) / t_1);
} else if (z <= 8.2e-8) {
tmp = x + ((y * b) / t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 0.607771387771 + (z * 11.9400905721) t_2 = x + (3.13060547623 * y) tmp = 0 if z <= -6.2e+33: tmp = t_2 elif z <= -3.4e-91: tmp = x + (1.6453555072203998 * (z * (a * y))) elif z <= 3.8e-142: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 4.6e-39: tmp = x + ((a * (z * y)) / t_1) elif z <= 8.2e-8: tmp = x + ((y * b) / t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(0.607771387771 + Float64(z * 11.9400905721)) t_2 = Float64(x + Float64(3.13060547623 * y)) tmp = 0.0 if (z <= -6.2e+33) tmp = t_2; elseif (z <= -3.4e-91) tmp = Float64(x + Float64(1.6453555072203998 * Float64(z * Float64(a * y)))); elseif (z <= 3.8e-142) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 4.6e-39) tmp = Float64(x + Float64(Float64(a * Float64(z * y)) / t_1)); elseif (z <= 8.2e-8) tmp = Float64(x + Float64(Float64(y * b) / t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 0.607771387771 + (z * 11.9400905721); t_2 = x + (3.13060547623 * y); tmp = 0.0; if (z <= -6.2e+33) tmp = t_2; elseif (z <= -3.4e-91) tmp = x + (1.6453555072203998 * (z * (a * y))); elseif (z <= 3.8e-142) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 4.6e-39) tmp = x + ((a * (z * y)) / t_1); elseif (z <= 8.2e-8) tmp = x + ((y * b) / t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.2e+33], t$95$2, If[LessEqual[z, -3.4e-91], N[(x + N[(1.6453555072203998 * N[(z * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e-142], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e-39], N[(x + N[(N[(a * N[(z * y), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e-8], N[(x + N[(N[(y * b), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 0.607771387771 + z \cdot 11.9400905721\\
t_2 := x + 3.13060547623 \cdot y\\
\mathbf{if}\;z \leq -6.2 \cdot 10^{+33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{-91}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(z \cdot \left(a \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-142}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{-39}:\\
\;\;\;\;x + \frac{a \cdot \left(z \cdot y\right)}{t_1}\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-8}:\\
\;\;\;\;x + \frac{y \cdot b}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -6.2e33 or 8.20000000000000063e-8 < z Initial program 12.9%
Simplified12.7%
Taylor expanded in z around inf 88.0%
+-commutative88.0%
*-commutative88.0%
Simplified88.0%
if -6.2e33 < z < -3.40000000000000027e-91Initial program 92.7%
Taylor expanded in a around inf 64.7%
associate-*r*71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in z around 0 64.6%
associate-*r*71.2%
*-commutative71.2%
Simplified71.2%
if -3.40000000000000027e-91 < z < 3.79999999999999972e-142Initial program 99.7%
Simplified99.7%
Taylor expanded in z around 0 89.4%
associate-*r*89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in b around 0 89.4%
*-commutative89.4%
associate-*r*89.5%
Simplified89.5%
if 3.79999999999999972e-142 < z < 4.60000000000000016e-39Initial program 99.7%
Taylor expanded in z around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in a around inf 80.3%
if 4.60000000000000016e-39 < z < 8.20000000000000063e-8Initial program 99.7%
Taylor expanded in z around 0 99.7%
*-commutative99.7%
Simplified99.7%
Taylor expanded in z around 0 83.7%
*-commutative83.7%
Simplified83.7%
Final simplification86.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2.8e+33) (not (<= z 8.2e-8)))
(+ x (* 3.13060547623 y))
(+
x
(+ (* 1.6453555072203998 (* y b)) (* (* a 1.6453555072203998) (* z y))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.8e+33) || !(z <= 8.2e-8)) {
tmp = x + (3.13060547623 * y);
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + ((a * 1.6453555072203998) * (z * y)));
}
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 <= (-2.8d+33)) .or. (.not. (z <= 8.2d-8))) then
tmp = x + (3.13060547623d0 * y)
else
tmp = x + ((1.6453555072203998d0 * (y * b)) + ((a * 1.6453555072203998d0) * (z * y)))
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 <= -2.8e+33) || !(z <= 8.2e-8)) {
tmp = x + (3.13060547623 * y);
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + ((a * 1.6453555072203998) * (z * y)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.8e+33) or not (z <= 8.2e-8): tmp = x + (3.13060547623 * y) else: tmp = x + ((1.6453555072203998 * (y * b)) + ((a * 1.6453555072203998) * (z * y))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.8e+33) || !(z <= 8.2e-8)) tmp = Float64(x + Float64(3.13060547623 * y)); else tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(Float64(a * 1.6453555072203998) * Float64(z * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.8e+33) || ~((z <= 8.2e-8))) tmp = x + (3.13060547623 * y); else tmp = x + ((1.6453555072203998 * (y * b)) + ((a * 1.6453555072203998) * (z * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.8e+33], N[Not[LessEqual[z, 8.2e-8]], $MachinePrecision]], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(N[(a * 1.6453555072203998), $MachinePrecision] * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+33} \lor \neg \left(z \leq 8.2 \cdot 10^{-8}\right):\\
\;\;\;\;x + 3.13060547623 \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + \left(a \cdot 1.6453555072203998\right) \cdot \left(z \cdot y\right)\right)\\
\end{array}
\end{array}
if z < -2.8000000000000001e33 or 8.20000000000000063e-8 < z Initial program 12.9%
Simplified12.7%
Taylor expanded in z around inf 88.0%
+-commutative88.0%
*-commutative88.0%
Simplified88.0%
if -2.8000000000000001e33 < z < 8.20000000000000063e-8Initial program 98.2%
Simplified98.9%
Taylor expanded in z around 0 85.0%
Taylor expanded in a around inf 89.4%
associate-*r*89.4%
*-commutative89.4%
Simplified89.4%
Final simplification88.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* 3.13060547623 y))))
(if (<= z -4.1e+86)
t_1
(if (<= z -2.05e-67)
(+ x (* 0.031777292960723624 (/ a (/ z y))))
(if (<= z 3.8e-142)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 2.8e-41)
(+ x (* 1.6453555072203998 (* a (* z y))))
(if (<= z 8.2e-8) (+ 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 + (3.13060547623 * y);
double tmp;
if (z <= -4.1e+86) {
tmp = t_1;
} else if (z <= -2.05e-67) {
tmp = x + (0.031777292960723624 * (a / (z / y)));
} else if (z <= 3.8e-142) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.8e-41) {
tmp = x + (1.6453555072203998 * (a * (z * y)));
} else if (z <= 8.2e-8) {
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 + (3.13060547623d0 * y)
if (z <= (-4.1d+86)) then
tmp = t_1
else if (z <= (-2.05d-67)) then
tmp = x + (0.031777292960723624d0 * (a / (z / y)))
else if (z <= 3.8d-142) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 2.8d-41) then
tmp = x + (1.6453555072203998d0 * (a * (z * y)))
else if (z <= 8.2d-8) 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 + (3.13060547623 * y);
double tmp;
if (z <= -4.1e+86) {
tmp = t_1;
} else if (z <= -2.05e-67) {
tmp = x + (0.031777292960723624 * (a / (z / y)));
} else if (z <= 3.8e-142) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.8e-41) {
tmp = x + (1.6453555072203998 * (a * (z * y)));
} else if (z <= 8.2e-8) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (3.13060547623 * y) tmp = 0 if z <= -4.1e+86: tmp = t_1 elif z <= -2.05e-67: tmp = x + (0.031777292960723624 * (a / (z / y))) elif z <= 3.8e-142: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 2.8e-41: tmp = x + (1.6453555072203998 * (a * (z * y))) elif z <= 8.2e-8: 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(3.13060547623 * y)) tmp = 0.0 if (z <= -4.1e+86) tmp = t_1; elseif (z <= -2.05e-67) tmp = Float64(x + Float64(0.031777292960723624 * Float64(a / Float64(z / y)))); elseif (z <= 3.8e-142) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 2.8e-41) tmp = Float64(x + Float64(1.6453555072203998 * Float64(a * Float64(z * y)))); elseif (z <= 8.2e-8) tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (3.13060547623 * y); tmp = 0.0; if (z <= -4.1e+86) tmp = t_1; elseif (z <= -2.05e-67) tmp = x + (0.031777292960723624 * (a / (z / y))); elseif (z <= 3.8e-142) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 2.8e-41) tmp = x + (1.6453555072203998 * (a * (z * y))); elseif (z <= 8.2e-8) 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[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.1e+86], t$95$1, If[LessEqual[z, -2.05e-67], N[(x + N[(0.031777292960723624 * N[(a / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e-142], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e-41], N[(x + N[(1.6453555072203998 * N[(a * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e-8], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + 3.13060547623 \cdot y\\
\mathbf{if}\;z \leq -4.1 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{-67}:\\
\;\;\;\;x + 0.031777292960723624 \cdot \frac{a}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{-142}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-41}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(a \cdot \left(z \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-8}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -4.0999999999999999e86 or 8.20000000000000063e-8 < z Initial program 8.2%
Simplified7.4%
Taylor expanded in z around inf 91.0%
+-commutative91.0%
*-commutative91.0%
Simplified91.0%
if -4.0999999999999999e86 < z < -2.0499999999999999e-67Initial program 81.9%
Taylor expanded in a around inf 63.9%
associate-*r*66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in z around 0 66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in z around inf 63.9%
associate-/l*66.8%
Simplified66.8%
if -2.0499999999999999e-67 < z < 3.79999999999999972e-142Initial program 99.7%
Simplified99.7%
Taylor expanded in z around 0 86.6%
associate-*r*86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in b around 0 86.6%
*-commutative86.6%
associate-*r*86.6%
Simplified86.6%
if 3.79999999999999972e-142 < z < 2.8000000000000002e-41Initial program 99.7%
Taylor expanded in a around inf 80.3%
associate-*r*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in z around 0 80.3%
if 2.8000000000000002e-41 < z < 8.20000000000000063e-8Initial program 99.7%
Simplified99.2%
Taylor expanded in z around 0 81.8%
associate-*r*81.8%
*-commutative81.8%
Simplified81.8%
Final simplification85.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* 3.13060547623 y))))
(if (<= z -2.8e+33)
t_1
(if (<= z -7.2e-92)
(+ x (* 1.6453555072203998 (* z (* a y))))
(if (<= z 4.5e-146)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 4.5e-40)
(+ x (* 1.6453555072203998 (* a (* z y))))
(if (<= z 8.2e-8) (+ 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 + (3.13060547623 * y);
double tmp;
if (z <= -2.8e+33) {
tmp = t_1;
} else if (z <= -7.2e-92) {
tmp = x + (1.6453555072203998 * (z * (a * y)));
} else if (z <= 4.5e-146) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 4.5e-40) {
tmp = x + (1.6453555072203998 * (a * (z * y)));
} else if (z <= 8.2e-8) {
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 + (3.13060547623d0 * y)
if (z <= (-2.8d+33)) then
tmp = t_1
else if (z <= (-7.2d-92)) then
tmp = x + (1.6453555072203998d0 * (z * (a * y)))
else if (z <= 4.5d-146) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 4.5d-40) then
tmp = x + (1.6453555072203998d0 * (a * (z * y)))
else if (z <= 8.2d-8) 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 + (3.13060547623 * y);
double tmp;
if (z <= -2.8e+33) {
tmp = t_1;
} else if (z <= -7.2e-92) {
tmp = x + (1.6453555072203998 * (z * (a * y)));
} else if (z <= 4.5e-146) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 4.5e-40) {
tmp = x + (1.6453555072203998 * (a * (z * y)));
} else if (z <= 8.2e-8) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (3.13060547623 * y) tmp = 0 if z <= -2.8e+33: tmp = t_1 elif z <= -7.2e-92: tmp = x + (1.6453555072203998 * (z * (a * y))) elif z <= 4.5e-146: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 4.5e-40: tmp = x + (1.6453555072203998 * (a * (z * y))) elif z <= 8.2e-8: 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(3.13060547623 * y)) tmp = 0.0 if (z <= -2.8e+33) tmp = t_1; elseif (z <= -7.2e-92) tmp = Float64(x + Float64(1.6453555072203998 * Float64(z * Float64(a * y)))); elseif (z <= 4.5e-146) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 4.5e-40) tmp = Float64(x + Float64(1.6453555072203998 * Float64(a * Float64(z * y)))); elseif (z <= 8.2e-8) tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (3.13060547623 * y); tmp = 0.0; if (z <= -2.8e+33) tmp = t_1; elseif (z <= -7.2e-92) tmp = x + (1.6453555072203998 * (z * (a * y))); elseif (z <= 4.5e-146) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 4.5e-40) tmp = x + (1.6453555072203998 * (a * (z * y))); elseif (z <= 8.2e-8) 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[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.8e+33], t$95$1, If[LessEqual[z, -7.2e-92], N[(x + N[(1.6453555072203998 * N[(z * N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-146], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-40], N[(x + N[(1.6453555072203998 * N[(a * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e-8], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + 3.13060547623 \cdot y\\
\mathbf{if}\;z \leq -2.8 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -7.2 \cdot 10^{-92}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(z \cdot \left(a \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-146}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-40}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(a \cdot \left(z \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-8}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.8000000000000001e33 or 8.20000000000000063e-8 < z Initial program 12.9%
Simplified12.7%
Taylor expanded in z around inf 88.0%
+-commutative88.0%
*-commutative88.0%
Simplified88.0%
if -2.8000000000000001e33 < z < -7.20000000000000032e-92Initial program 92.7%
Taylor expanded in a around inf 64.7%
associate-*r*71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in z around 0 64.6%
associate-*r*71.2%
*-commutative71.2%
Simplified71.2%
if -7.20000000000000032e-92 < z < 4.5000000000000001e-146Initial program 99.7%
Simplified99.7%
Taylor expanded in z around 0 89.4%
associate-*r*89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in b around 0 89.4%
*-commutative89.4%
associate-*r*89.5%
Simplified89.5%
if 4.5000000000000001e-146 < z < 4.5000000000000001e-40Initial program 99.7%
Taylor expanded in a around inf 80.3%
associate-*r*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in z around 0 80.3%
if 4.5000000000000001e-40 < z < 8.20000000000000063e-8Initial program 99.7%
Simplified99.2%
Taylor expanded in z around 0 81.8%
associate-*r*81.8%
*-commutative81.8%
Simplified81.8%
Final simplification86.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* 3.13060547623 y))))
(if (<= z -4.1e+86)
t_1
(if (<= z -4.7e-68)
(+ x (* 0.031777292960723624 (/ a (/ z y))))
(if (<= z 8.2e-8) (+ x (* b (* y 1.6453555072203998))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (3.13060547623 * y);
double tmp;
if (z <= -4.1e+86) {
tmp = t_1;
} else if (z <= -4.7e-68) {
tmp = x + (0.031777292960723624 * (a / (z / y)));
} else if (z <= 8.2e-8) {
tmp = x + (b * (y * 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 + (3.13060547623d0 * y)
if (z <= (-4.1d+86)) then
tmp = t_1
else if (z <= (-4.7d-68)) then
tmp = x + (0.031777292960723624d0 * (a / (z / y)))
else if (z <= 8.2d-8) then
tmp = x + (b * (y * 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 + (3.13060547623 * y);
double tmp;
if (z <= -4.1e+86) {
tmp = t_1;
} else if (z <= -4.7e-68) {
tmp = x + (0.031777292960723624 * (a / (z / y)));
} else if (z <= 8.2e-8) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (3.13060547623 * y) tmp = 0 if z <= -4.1e+86: tmp = t_1 elif z <= -4.7e-68: tmp = x + (0.031777292960723624 * (a / (z / y))) elif z <= 8.2e-8: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(3.13060547623 * y)) tmp = 0.0 if (z <= -4.1e+86) tmp = t_1; elseif (z <= -4.7e-68) tmp = Float64(x + Float64(0.031777292960723624 * Float64(a / Float64(z / y)))); elseif (z <= 8.2e-8) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (3.13060547623 * y); tmp = 0.0; if (z <= -4.1e+86) tmp = t_1; elseif (z <= -4.7e-68) tmp = x + (0.031777292960723624 * (a / (z / y))); elseif (z <= 8.2e-8) tmp = x + (b * (y * 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[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.1e+86], t$95$1, If[LessEqual[z, -4.7e-68], N[(x + N[(0.031777292960723624 * N[(a / N[(z / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e-8], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + 3.13060547623 \cdot y\\
\mathbf{if}\;z \leq -4.1 \cdot 10^{+86}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -4.7 \cdot 10^{-68}:\\
\;\;\;\;x + 0.031777292960723624 \cdot \frac{a}{\frac{z}{y}}\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{-8}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -4.0999999999999999e86 or 8.20000000000000063e-8 < z Initial program 8.2%
Simplified7.4%
Taylor expanded in z around inf 91.0%
+-commutative91.0%
*-commutative91.0%
Simplified91.0%
if -4.0999999999999999e86 < z < -4.69999999999999988e-68Initial program 81.9%
Taylor expanded in a around inf 63.9%
associate-*r*66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in z around 0 66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in z around inf 63.9%
associate-/l*66.8%
Simplified66.8%
if -4.69999999999999988e-68 < z < 8.20000000000000063e-8Initial program 99.7%
Simplified99.7%
Taylor expanded in z around 0 81.0%
associate-*r*81.0%
*-commutative81.0%
Simplified81.0%
Taylor expanded in b around 0 81.0%
*-commutative81.0%
associate-*r*81.1%
Simplified81.1%
Final simplification84.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1020000.0) (not (<= z 2.7e-8))) (+ x (* 3.13060547623 y)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1020000.0) || !(z <= 2.7e-8)) {
tmp = x + (3.13060547623 * y);
} 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 <= (-1020000.0d0)) .or. (.not. (z <= 2.7d-8))) then
tmp = x + (3.13060547623d0 * y)
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 <= -1020000.0) || !(z <= 2.7e-8)) {
tmp = x + (3.13060547623 * y);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1020000.0) or not (z <= 2.7e-8): tmp = x + (3.13060547623 * y) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1020000.0) || !(z <= 2.7e-8)) tmp = Float64(x + Float64(3.13060547623 * y)); 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 <= -1020000.0) || ~((z <= 2.7e-8))) tmp = x + (3.13060547623 * y); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1020000.0], N[Not[LessEqual[z, 2.7e-8]], $MachinePrecision]], N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1020000 \lor \neg \left(z \leq 2.7 \cdot 10^{-8}\right):\\
\;\;\;\;x + 3.13060547623 \cdot y\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.02e6 or 2.70000000000000002e-8 < z Initial program 16.4%
Simplified17.0%
Taylor expanded in z around inf 85.6%
+-commutative85.6%
*-commutative85.6%
Simplified85.6%
if -1.02e6 < z < 2.70000000000000002e-8Initial program 99.7%
Simplified99.7%
Taylor expanded in z around 0 78.3%
associate-*r*78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in b around 0 78.3%
*-commutative78.3%
associate-*r*78.3%
Simplified78.3%
Final simplification82.3%
(FPCore (x y z t a b) :precision binary64 (+ x (* 3.13060547623 y)))
double code(double x, double y, double z, double t, double a, double b) {
return x + (3.13060547623 * y);
}
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 + (3.13060547623d0 * y)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (3.13060547623 * y);
}
def code(x, y, z, t, a, b): return x + (3.13060547623 * y)
function code(x, y, z, t, a, b) return Float64(x + Float64(3.13060547623 * y)) end
function tmp = code(x, y, z, t, a, b) tmp = x + (3.13060547623 * y); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(3.13060547623 * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + 3.13060547623 \cdot y
\end{array}
Initial program 53.5%
Simplified53.8%
Taylor expanded in z around inf 66.3%
+-commutative66.3%
*-commutative66.3%
Simplified66.3%
Final simplification66.3%
(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 53.5%
Simplified53.8%
Taylor expanded in y around 0 47.8%
Final simplification47.8%
(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 2023322
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:herbie-target
(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))))