
(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 18 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 (<=
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
4e+292)
(fma
y
(/
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)
(fma
y
(-
3.13060547623
(/
(-
36.52704169880642
(/
(+
457.9610022158428
(+
t
(/
(+
a
(+ 1112.0901850848957 (+ -6976.8927133548 (* t -15.234687407))))
z)))
z))
z))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= 4e+292) {
tmp = fma(y, (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
} else {
tmp = fma(y, (3.13060547623 - ((36.52704169880642 - ((457.9610022158428 + (t + ((a + (1112.0901850848957 + (-6976.8927133548 + (t * -15.234687407)))) / z))) / z)) / z)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= 4e+292) tmp = fma(y, Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); else tmp = fma(y, Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(1112.0901850848957 + Float64(-6976.8927133548 + Float64(t * -15.234687407)))) / z))) / z)) / z)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[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[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], 4e+292], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(1112.0901850848957 + N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\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)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq 4 \cdot 10^{+292}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 - \frac{36.52704169880642 - \frac{457.9610022158428 + \left(t + \frac{a + \left(1112.0901850848957 + \left(-6976.8927133548 + t \cdot -15.234687407\right)\right)}{z}\right)}{z}}{z}, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 4.0000000000000001e292Initial program 96.6%
Simplified98.5%
if 4.0000000000000001e292 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 4.9%
Simplified9.1%
Taylor expanded in z around -inf 99.1%
Simplified99.1%
Final simplification98.7%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
4e+292)
(fma
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(/ y (fma z (* (pow z 3.0) (+ 1.0 (/ 15.234687407 z))) 0.607771387771))
x)
(fma
y
(-
3.13060547623
(/
(-
36.52704169880642
(/
(+
457.9610022158428
(+
t
(/
(+
a
(+ 1112.0901850848957 (+ -6976.8927133548 (* t -15.234687407))))
z)))
z))
z))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= 4e+292) {
tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), (y / fma(z, (pow(z, 3.0) * (1.0 + (15.234687407 / z))), 0.607771387771)), x);
} else {
tmp = fma(y, (3.13060547623 - ((36.52704169880642 - ((457.9610022158428 + (t + ((a + (1112.0901850848957 + (-6976.8927133548 + (t * -15.234687407)))) / z))) / z)) / z)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= 4e+292) tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), Float64(y / fma(z, Float64((z ^ 3.0) * Float64(1.0 + Float64(15.234687407 / z))), 0.607771387771)), x); else tmp = fma(y, Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(1112.0901850848957 + Float64(-6976.8927133548 + Float64(t * -15.234687407)))) / z))) / z)) / z)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[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[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], 4e+292], N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] * N[(y / N[(z * N[(N[Power[z, 3.0], $MachinePrecision] * N[(1.0 + N[(15.234687407 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(1112.0901850848957 + N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\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)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq 4 \cdot 10^{+292}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), \frac{y}{\mathsf{fma}\left(z, {z}^{3} \cdot \left(1 + \frac{15.234687407}{z}\right), 0.607771387771\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 - \frac{36.52704169880642 - \frac{457.9610022158428 + \left(t + \frac{a + \left(1112.0901850848957 + \left(-6976.8927133548 + t \cdot -15.234687407\right)\right)}{z}\right)}{z}}{z}, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 4.0000000000000001e292Initial program 96.6%
Simplified97.8%
Taylor expanded in z around inf 96.6%
associate-*r/96.6%
metadata-eval96.6%
Simplified96.6%
if 4.0000000000000001e292 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 4.9%
Simplified9.1%
Taylor expanded in z around -inf 99.1%
Simplified99.1%
Final simplification97.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 4e+292)
(+ t_1 x)
(fma
y
(-
3.13060547623
(/
(-
36.52704169880642
(/
(+
457.9610022158428
(+
t
(/
(+
a
(+ 1112.0901850848957 (+ -6976.8927133548 (* t -15.234687407))))
z)))
z))
z))
x))))
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))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= 4e+292) {
tmp = t_1 + x;
} else {
tmp = fma(y, (3.13060547623 - ((36.52704169880642 - ((457.9610022158428 + (t + ((a + (1112.0901850848957 + (-6976.8927133548 + (t * -15.234687407)))) / z))) / z)) / z)), x);
}
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(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= 4e+292) tmp = Float64(t_1 + x); else tmp = fma(y, Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(1112.0901850848957 + Float64(-6976.8927133548 + Float64(t * -15.234687407)))) / z))) / z)) / z)), x); end return 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[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 4e+292], N[(t$95$1 + x), $MachinePrecision], N[(y * N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(1112.0901850848957 + N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $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)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_1 \leq 4 \cdot 10^{+292}:\\
\;\;\;\;t\_1 + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 - \frac{36.52704169880642 - \frac{457.9610022158428 + \left(t + \frac{a + \left(1112.0901850848957 + \left(-6976.8927133548 + t \cdot -15.234687407\right)\right)}{z}\right)}{z}}{z}, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 4.0000000000000001e292Initial program 96.6%
if 4.0000000000000001e292 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 4.9%
Simplified9.1%
Taylor expanded in z around -inf 99.1%
Simplified99.1%
Final simplification97.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 4e+292)
(+ t_1 x)
(fma
y
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
x))))
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))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= 4e+292) {
tmp = t_1 + x;
} else {
tmp = fma(y, (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)), x);
}
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(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= 4e+292) tmp = Float64(t_1 + x); else tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), x); end return 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[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, 4e+292], N[(t$95$1 + x), $MachinePrecision], N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $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)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_1 \leq 4 \cdot 10^{+292}:\\
\;\;\;\;t\_1 + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 4.0000000000000001e292Initial program 96.6%
if 4.0000000000000001e292 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 4.9%
Simplified9.1%
Taylor expanded in z around -inf 96.2%
mul-1-neg96.2%
unsub-neg96.2%
mul-1-neg96.2%
unsub-neg96.2%
+-commutative96.2%
Simplified96.2%
Final simplification96.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
(t_2
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(t_3 (/ (* y t_2) t_1)))
(if (<= t_3 2e+234)
(+ t_3 x)
(if (<= t_3 INFINITY)
(* y (+ (/ x y) (/ t_2 t_1)))
(+ x (* y (+ 3.13060547623 (/ -36.52704169880642 z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))));
double t_3 = (y * t_2) / t_1;
double tmp;
if (t_3 <= 2e+234) {
tmp = t_3 + x;
} else if (t_3 <= ((double) INFINITY)) {
tmp = y * ((x / y) + (t_2 / t_1));
} else {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))));
double t_3 = (y * t_2) / t_1;
double tmp;
if (t_3 <= 2e+234) {
tmp = t_3 + x;
} else if (t_3 <= Double.POSITIVE_INFINITY) {
tmp = y * ((x / y) + (t_2 / t_1));
} else {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771 t_2 = b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) t_3 = (y * t_2) / t_1 tmp = 0 if t_3 <= 2e+234: tmp = t_3 + x elif t_3 <= math.inf: tmp = y * ((x / y) + (t_2 / t_1)) else: tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) t_2 = Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623)))))))) t_3 = Float64(Float64(y * t_2) / t_1) tmp = 0.0 if (t_3 <= 2e+234) tmp = Float64(t_3 + x); elseif (t_3 <= Inf) tmp = Float64(y * Float64(Float64(x / y) + Float64(t_2 / t_1))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(-36.52704169880642 / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771; t_2 = b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))); t_3 = (y * t_2) / t_1; tmp = 0.0; if (t_3 <= 2e+234) tmp = t_3 + x; elseif (t_3 <= Inf) tmp = y * ((x / y) + (t_2 / t_1)); else tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, Block[{t$95$2 = 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]}, Block[{t$95$3 = N[(N[(y * t$95$2), $MachinePrecision] / t$95$1), $MachinePrecision]}, If[LessEqual[t$95$3, 2e+234], N[(t$95$3 + x), $MachinePrecision], If[LessEqual[t$95$3, Infinity], N[(y * N[(N[(x / y), $MachinePrecision] + N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
t_2 := b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\\
t_3 := \frac{y \cdot t\_2}{t\_1}\\
\mathbf{if}\;t\_3 \leq 2 \cdot 10^{+234}:\\
\;\;\;\;t\_3 + x\\
\mathbf{elif}\;t\_3 \leq \infty:\\
\;\;\;\;y \cdot \left(\frac{x}{y} + \frac{t\_2}{t\_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{-36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < 2.00000000000000004e234Initial program 96.5%
if 2.00000000000000004e234 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 59.0%
Simplified88.1%
Taylor expanded in y around -inf 88.0%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around -inf 98.0%
+-commutative98.0%
+-commutative98.0%
mul-1-neg98.0%
unsub-neg98.0%
*-commutative98.0%
distribute-rgt-out--98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 98.0%
associate-*r/98.0%
metadata-eval98.0%
sub-neg98.0%
distribute-neg-frac98.0%
metadata-eval98.0%
Simplified98.0%
Final simplification96.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY)
(+ t_1 x)
(+ x (* y (+ 3.13060547623 (/ -36.52704169880642 z)))))))
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))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1 + x;
} else {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
}
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))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1 + x;
} else {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) tmp = 0 if t_1 <= math.inf: tmp = t_1 + x else: tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))) 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(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(t_1 + x); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(-36.52704169880642 / z)))); 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))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771); tmp = 0.0; if (t_1 <= Inf) tmp = t_1 + x; else tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))); 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[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(t$95$1 + x), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $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)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1 + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{-36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 92.6%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around -inf 98.0%
+-commutative98.0%
+-commutative98.0%
mul-1-neg98.0%
unsub-neg98.0%
*-commutative98.0%
distribute-rgt-out--98.0%
metadata-eval98.0%
Simplified98.0%
Taylor expanded in y around 0 98.0%
associate-*r/98.0%
metadata-eval98.0%
sub-neg98.0%
distribute-neg-frac98.0%
metadata-eval98.0%
Simplified98.0%
Final simplification94.7%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.9e+59) (not (<= z 2e+68)))
(+ x (* y 3.13060547623))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.9e+59) || !(z <= 2e+68)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
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.9d+59)) .or. (.not. (z <= 2d+68))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
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.9e+59) || !(z <= 2e+68)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.9e+59) or not (z <= 2e+68): tmp = x + (y * 3.13060547623) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.9e+59) || !(z <= 2e+68)) tmp = Float64(x + 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(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.9e+59) || ~((z <= 2e+68))) tmp = x + (y * 3.13060547623); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.9e+59], N[Not[LessEqual[z, 2e+68]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $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[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+59} \lor \neg \left(z \leq 2 \cdot 10^{+68}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\end{array}
\end{array}
if z < -1.9e59 or 1.99999999999999991e68 < z Initial program 2.0%
Simplified3.9%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
*-commutative98.1%
Simplified98.1%
if -1.9e59 < z < 1.99999999999999991e68Initial program 93.7%
Taylor expanded in z around 0 92.0%
*-commutative92.0%
Simplified92.0%
Final simplification94.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.85e+59)
t_1
(if (<= z 2.9e-7)
(+
x
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(if (<= z 2.6e+68)
(+
x
(/ (- (* (/ y z) (+ t -170.12200846348443)) (* y -11.1667541262)) z))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.85e+59) {
tmp = t_1;
} else if (z <= 2.9e-7) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 2.6e+68) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} 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 <= (-1.85d+59)) then
tmp = t_1
else if (z <= 2.9d-7) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else if (z <= 2.6d+68) then
tmp = x + ((((y / z) * (t + (-170.12200846348443d0))) - (y * (-11.1667541262d0))) / z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.85e+59) {
tmp = t_1;
} else if (z <= 2.9e-7) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 2.6e+68) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -1.85e+59: tmp = t_1 elif z <= 2.9e-7: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) elif z <= 2.6e+68: tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z) 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 <= -1.85e+59) tmp = t_1; elseif (z <= 2.9e-7) 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)))))); elseif (z <= 2.6e+68) tmp = Float64(x + Float64(Float64(Float64(Float64(y / z) * Float64(t + -170.12200846348443)) - Float64(y * -11.1667541262)) / z)); 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 <= -1.85e+59) tmp = t_1; elseif (z <= 2.9e-7) tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); elseif (z <= 2.6e+68) tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z); 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, -1.85e+59], t$95$1, If[LessEqual[z, 2.9e-7], 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], If[LessEqual[z, 2.6e+68], N[(x + N[(N[(N[(N[(y / z), $MachinePrecision] * N[(t + -170.12200846348443), $MachinePrecision]), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-7}:\\
\;\;\;\;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)}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+68}:\\
\;\;\;\;x + \frac{\frac{y}{z} \cdot \left(t + -170.12200846348443\right) - y \cdot -11.1667541262}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.84999999999999999e59 or 2.5999999999999998e68 < z Initial program 2.0%
Simplified3.9%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
*-commutative98.1%
Simplified98.1%
if -1.84999999999999999e59 < z < 2.8999999999999998e-7Initial program 97.6%
Taylor expanded in z around 0 94.8%
*-commutative94.8%
Simplified94.8%
if 2.8999999999999998e-7 < z < 2.5999999999999998e68Initial program 71.4%
Taylor expanded in z around 0 64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in z around -inf 67.1%
mul-1-neg67.1%
distribute-neg-frac267.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
div-sub67.1%
associate-/l*78.3%
associate-*r/78.3%
distribute-rgt-out--78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -4.8e+60)
t_1
(if (<= z -12.5)
(+ x (/ (+ (* y 11.1667541262) (/ (* y (- t 170.12200846348443)) z)) z))
(if (<= z 2.9e-7)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))
(if (<= z 1.1e+82)
(+
x
(/
(- (* (/ y z) (+ t -170.12200846348443)) (* y -11.1667541262))
z))
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 <= -4.8e+60) {
tmp = t_1;
} else if (z <= -12.5) {
tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z);
} else if (z <= 2.9e-7) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 1.1e+82) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} 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 <= (-4.8d+60)) then
tmp = t_1
else if (z <= (-12.5d0)) then
tmp = x + (((y * 11.1667541262d0) + ((y * (t - 170.12200846348443d0)) / z)) / z)
else if (z <= 2.9d-7) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else if (z <= 1.1d+82) then
tmp = x + ((((y / z) * (t + (-170.12200846348443d0))) - (y * (-11.1667541262d0))) / z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -4.8e+60) {
tmp = t_1;
} else if (z <= -12.5) {
tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z);
} else if (z <= 2.9e-7) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 1.1e+82) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -4.8e+60: tmp = t_1 elif z <= -12.5: tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z) elif z <= 2.9e-7: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) elif z <= 1.1e+82: tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z) 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 <= -4.8e+60) tmp = t_1; elseif (z <= -12.5) tmp = Float64(x + Float64(Float64(Float64(y * 11.1667541262) + Float64(Float64(y * Float64(t - 170.12200846348443)) / z)) / z)); elseif (z <= 2.9e-7) 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)))); elseif (z <= 1.1e+82) tmp = Float64(x + Float64(Float64(Float64(Float64(y / z) * Float64(t + -170.12200846348443)) - Float64(y * -11.1667541262)) / z)); 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 <= -4.8e+60) tmp = t_1; elseif (z <= -12.5) tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z); elseif (z <= 2.9e-7) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); elseif (z <= 1.1e+82) tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z); 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, -4.8e+60], t$95$1, If[LessEqual[z, -12.5], N[(x + N[(N[(N[(y * 11.1667541262), $MachinePrecision] + N[(N[(y * N[(t - 170.12200846348443), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e-7], 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], If[LessEqual[z, 1.1e+82], N[(x + N[(N[(N[(N[(y / z), $MachinePrecision] * N[(t + -170.12200846348443), $MachinePrecision]), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -4.8 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -12.5:\\
\;\;\;\;x + \frac{y \cdot 11.1667541262 + \frac{y \cdot \left(t - 170.12200846348443\right)}{z}}{z}\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-7}:\\
\;\;\;\;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{elif}\;z \leq 1.1 \cdot 10^{+82}:\\
\;\;\;\;x + \frac{\frac{y}{z} \cdot \left(t + -170.12200846348443\right) - y \cdot -11.1667541262}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.8e60 or 1.1000000000000001e82 < z Initial program 2.0%
Simplified3.9%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
*-commutative98.1%
Simplified98.1%
if -4.8e60 < z < -12.5Initial program 84.1%
Taylor expanded in z around 0 78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in z around inf 77.2%
associate--l+77.2%
*-commutative77.2%
associate-*r/77.2%
div-sub77.2%
distribute-rgt-out--77.2%
Simplified77.2%
if -12.5 < z < 2.8999999999999998e-7Initial program 99.8%
Taylor expanded in z around 0 99.8%
*-commutative99.8%
Simplified99.8%
Taylor expanded in z around 0 99.6%
*-commutative99.6%
Simplified99.6%
if 2.8999999999999998e-7 < z < 1.1000000000000001e82Initial program 71.4%
Taylor expanded in z around 0 64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in z around -inf 67.1%
mul-1-neg67.1%
distribute-neg-frac267.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
div-sub67.1%
associate-/l*78.3%
associate-*r/78.3%
distribute-rgt-out--78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Final simplification95.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.85e+59)
t_1
(if (<= z 2.9e-7)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(if (<= z 1.18e+82)
(+
x
(/ (- (* (/ y z) (+ t -170.12200846348443)) (* y -11.1667541262)) z))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.85e+59) {
tmp = t_1;
} else if (z <= 2.9e-7) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 1.18e+82) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} 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 <= (-1.85d+59)) then
tmp = t_1
else if (z <= 2.9d-7) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else if (z <= 1.18d+82) then
tmp = x + ((((y / z) * (t + (-170.12200846348443d0))) - (y * (-11.1667541262d0))) / z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.85e+59) {
tmp = t_1;
} else if (z <= 2.9e-7) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 1.18e+82) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -1.85e+59: tmp = t_1 elif z <= 2.9e-7: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) elif z <= 1.18e+82: tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z) 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 <= -1.85e+59) tmp = t_1; elseif (z <= 2.9e-7) 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)))))); elseif (z <= 1.18e+82) tmp = Float64(x + Float64(Float64(Float64(Float64(y / z) * Float64(t + -170.12200846348443)) - Float64(y * -11.1667541262)) / z)); 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 <= -1.85e+59) tmp = t_1; elseif (z <= 2.9e-7) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); elseif (z <= 1.18e+82) tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z); 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, -1.85e+59], t$95$1, If[LessEqual[z, 2.9e-7], 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], If[LessEqual[z, 1.18e+82], N[(x + N[(N[(N[(N[(y / z), $MachinePrecision] * N[(t + -170.12200846348443), $MachinePrecision]), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-7}:\\
\;\;\;\;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)}\\
\mathbf{elif}\;z \leq 1.18 \cdot 10^{+82}:\\
\;\;\;\;x + \frac{\frac{y}{z} \cdot \left(t + -170.12200846348443\right) - y \cdot -11.1667541262}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.84999999999999999e59 or 1.1800000000000001e82 < z Initial program 2.0%
Simplified3.9%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
*-commutative98.1%
Simplified98.1%
if -1.84999999999999999e59 < z < 2.8999999999999998e-7Initial program 97.6%
Taylor expanded in z around 0 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in z around 0 94.7%
*-commutative94.8%
Simplified94.7%
if 2.8999999999999998e-7 < z < 1.1800000000000001e82Initial program 71.4%
Taylor expanded in z around 0 64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in z around -inf 67.1%
mul-1-neg67.1%
distribute-neg-frac267.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
div-sub67.1%
associate-/l*78.3%
associate-*r/78.3%
distribute-rgt-out--78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -7.7e+59)
t_1
(if (<= z -1.5e-7)
(+ x (/ (+ (* y 11.1667541262) (/ (* y (- t 170.12200846348443)) z)) z))
(if (<= z 1.65e-7)
(+ x (* y (* 1.6453555072203998 (+ b (* z a)))))
(if (<= z 1.2e+70)
(+
x
(/
(- (* (/ y z) (+ t -170.12200846348443)) (* y -11.1667541262))
z))
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 <= -7.7e+59) {
tmp = t_1;
} else if (z <= -1.5e-7) {
tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z);
} else if (z <= 1.65e-7) {
tmp = x + (y * (1.6453555072203998 * (b + (z * a))));
} else if (z <= 1.2e+70) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} 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 <= (-7.7d+59)) then
tmp = t_1
else if (z <= (-1.5d-7)) then
tmp = x + (((y * 11.1667541262d0) + ((y * (t - 170.12200846348443d0)) / z)) / z)
else if (z <= 1.65d-7) then
tmp = x + (y * (1.6453555072203998d0 * (b + (z * a))))
else if (z <= 1.2d+70) then
tmp = x + ((((y / z) * (t + (-170.12200846348443d0))) - (y * (-11.1667541262d0))) / z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -7.7e+59) {
tmp = t_1;
} else if (z <= -1.5e-7) {
tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z);
} else if (z <= 1.65e-7) {
tmp = x + (y * (1.6453555072203998 * (b + (z * a))));
} else if (z <= 1.2e+70) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -7.7e+59: tmp = t_1 elif z <= -1.5e-7: tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z) elif z <= 1.65e-7: tmp = x + (y * (1.6453555072203998 * (b + (z * a)))) elif z <= 1.2e+70: tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z) 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 <= -7.7e+59) tmp = t_1; elseif (z <= -1.5e-7) tmp = Float64(x + Float64(Float64(Float64(y * 11.1667541262) + Float64(Float64(y * Float64(t - 170.12200846348443)) / z)) / z)); elseif (z <= 1.65e-7) tmp = Float64(x + Float64(y * Float64(1.6453555072203998 * Float64(b + Float64(z * a))))); elseif (z <= 1.2e+70) tmp = Float64(x + Float64(Float64(Float64(Float64(y / z) * Float64(t + -170.12200846348443)) - Float64(y * -11.1667541262)) / z)); 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 <= -7.7e+59) tmp = t_1; elseif (z <= -1.5e-7) tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z); elseif (z <= 1.65e-7) tmp = x + (y * (1.6453555072203998 * (b + (z * a)))); elseif (z <= 1.2e+70) tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z); 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, -7.7e+59], t$95$1, If[LessEqual[z, -1.5e-7], N[(x + N[(N[(N[(y * 11.1667541262), $MachinePrecision] + N[(N[(y * N[(t - 170.12200846348443), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e-7], N[(x + N[(y * N[(1.6453555072203998 * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e+70], N[(x + N[(N[(N[(N[(y / z), $MachinePrecision] * N[(t + -170.12200846348443), $MachinePrecision]), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -7.7 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-7}:\\
\;\;\;\;x + \frac{y \cdot 11.1667541262 + \frac{y \cdot \left(t - 170.12200846348443\right)}{z}}{z}\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{-7}:\\
\;\;\;\;x + y \cdot \left(1.6453555072203998 \cdot \left(b + z \cdot a\right)\right)\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+70}:\\
\;\;\;\;x + \frac{\frac{y}{z} \cdot \left(t + -170.12200846348443\right) - y \cdot -11.1667541262}{z}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.69999999999999986e59 or 1.19999999999999993e70 < z Initial program 2.0%
Simplified3.9%
Taylor expanded in z around inf 98.1%
+-commutative98.1%
*-commutative98.1%
Simplified98.1%
if -7.69999999999999986e59 < z < -1.4999999999999999e-7Initial program 84.9%
Taylor expanded in z around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in z around inf 73.6%
associate--l+73.6%
*-commutative73.6%
associate-*r/73.6%
div-sub73.6%
distribute-rgt-out--73.6%
Simplified73.6%
if -1.4999999999999999e-7 < z < 1.6500000000000001e-7Initial program 99.8%
Taylor expanded in z around 0 87.7%
Taylor expanded in a around inf 93.7%
Taylor expanded in y around 0 96.4%
distribute-lft-out96.4%
*-commutative96.4%
Simplified96.4%
if 1.6500000000000001e-7 < z < 1.19999999999999993e70Initial program 71.4%
Taylor expanded in z around 0 64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in z around -inf 67.1%
mul-1-neg67.1%
distribute-neg-frac267.1%
mul-1-neg67.1%
unsub-neg67.1%
*-commutative67.1%
div-sub67.1%
associate-/l*78.3%
associate-*r/78.3%
distribute-rgt-out--78.3%
sub-neg78.3%
metadata-eval78.3%
Simplified78.3%
Final simplification93.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.88e+59)
t_1
(if (<= z -1.45e-7)
(+ x (/ (+ (* y 11.1667541262) (/ (* y (- t 170.12200846348443)) z)) z))
(if (<= z 2.2e+66)
(+ x (* y (* 1.6453555072203998 (+ b (* z a)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.88e+59) {
tmp = t_1;
} else if (z <= -1.45e-7) {
tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z);
} else if (z <= 2.2e+66) {
tmp = x + (y * (1.6453555072203998 * (b + (z * a))));
} 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 <= (-1.88d+59)) then
tmp = t_1
else if (z <= (-1.45d-7)) then
tmp = x + (((y * 11.1667541262d0) + ((y * (t - 170.12200846348443d0)) / z)) / z)
else if (z <= 2.2d+66) then
tmp = x + (y * (1.6453555072203998d0 * (b + (z * a))))
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 <= -1.88e+59) {
tmp = t_1;
} else if (z <= -1.45e-7) {
tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z);
} else if (z <= 2.2e+66) {
tmp = x + (y * (1.6453555072203998 * (b + (z * a))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -1.88e+59: tmp = t_1 elif z <= -1.45e-7: tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z) elif z <= 2.2e+66: tmp = x + (y * (1.6453555072203998 * (b + (z * a)))) 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 <= -1.88e+59) tmp = t_1; elseif (z <= -1.45e-7) tmp = Float64(x + Float64(Float64(Float64(y * 11.1667541262) + Float64(Float64(y * Float64(t - 170.12200846348443)) / z)) / z)); elseif (z <= 2.2e+66) tmp = Float64(x + Float64(y * Float64(1.6453555072203998 * Float64(b + Float64(z * a))))); 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 <= -1.88e+59) tmp = t_1; elseif (z <= -1.45e-7) tmp = x + (((y * 11.1667541262) + ((y * (t - 170.12200846348443)) / z)) / z); elseif (z <= 2.2e+66) tmp = x + (y * (1.6453555072203998 * (b + (z * a)))); 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, -1.88e+59], t$95$1, If[LessEqual[z, -1.45e-7], N[(x + N[(N[(N[(y * 11.1667541262), $MachinePrecision] + N[(N[(y * N[(t - 170.12200846348443), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+66], N[(x + N[(y * N[(1.6453555072203998 * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.88 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.45 \cdot 10^{-7}:\\
\;\;\;\;x + \frac{y \cdot 11.1667541262 + \frac{y \cdot \left(t - 170.12200846348443\right)}{z}}{z}\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+66}:\\
\;\;\;\;x + y \cdot \left(1.6453555072203998 \cdot \left(b + z \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.87999999999999989e59 or 2.1999999999999998e66 < z Initial program 3.0%
Simplified4.8%
Taylor expanded in z around inf 97.2%
+-commutative97.2%
*-commutative97.2%
Simplified97.2%
if -1.87999999999999989e59 < z < -1.4499999999999999e-7Initial program 84.9%
Taylor expanded in z around 0 79.7%
*-commutative79.7%
Simplified79.7%
Taylor expanded in z around inf 73.6%
associate--l+73.6%
*-commutative73.6%
associate-*r/73.6%
div-sub73.6%
distribute-rgt-out--73.6%
Simplified73.6%
if -1.4499999999999999e-7 < z < 2.1999999999999998e66Initial program 94.9%
Taylor expanded in z around 0 80.9%
Taylor expanded in a around inf 86.2%
Taylor expanded in y around 0 89.1%
distribute-lft-out89.1%
*-commutative89.1%
Simplified89.1%
Final simplification91.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6000000.0)
(+ x (* y (+ 3.13060547623 (/ -36.52704169880642 z))))
(if (<= z 2.2e+66)
(+ x (* y (* 1.6453555072203998 (+ b (* z a)))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6000000.0) {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
} else if (z <= 2.2e+66) {
tmp = x + (y * (1.6453555072203998 * (b + (z * a))));
} else {
tmp = x + (y * 3.13060547623);
}
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 <= (-6000000.0d0)) then
tmp = x + (y * (3.13060547623d0 + ((-36.52704169880642d0) / z)))
else if (z <= 2.2d+66) then
tmp = x + (y * (1.6453555072203998d0 * (b + (z * a))))
else
tmp = x + (y * 3.13060547623d0)
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 <= -6000000.0) {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
} else if (z <= 2.2e+66) {
tmp = x + (y * (1.6453555072203998 * (b + (z * a))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -6000000.0: tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))) elif z <= 2.2e+66: tmp = x + (y * (1.6453555072203998 * (b + (z * a)))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6000000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(-36.52704169880642 / z)))); elseif (z <= 2.2e+66) tmp = Float64(x + Float64(y * Float64(1.6453555072203998 * Float64(b + Float64(z * a))))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -6000000.0) tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))); elseif (z <= 2.2e+66) tmp = x + (y * (1.6453555072203998 * (b + (z * a)))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6000000.0], N[(x + N[(y * N[(3.13060547623 + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+66], N[(x + N[(y * N[(1.6453555072203998 * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6000000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{-36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+66}:\\
\;\;\;\;x + y \cdot \left(1.6453555072203998 \cdot \left(b + z \cdot a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -6e6Initial program 20.0%
Simplified22.7%
Taylor expanded in z around -inf 84.5%
+-commutative84.5%
+-commutative84.5%
mul-1-neg84.5%
unsub-neg84.5%
*-commutative84.5%
distribute-rgt-out--84.5%
metadata-eval84.5%
Simplified84.5%
Taylor expanded in y around 0 84.5%
associate-*r/84.5%
metadata-eval84.5%
sub-neg84.5%
distribute-neg-frac84.5%
metadata-eval84.5%
Simplified84.5%
if -6e6 < z < 2.1999999999999998e66Initial program 95.0%
Taylor expanded in z around 0 80.8%
Taylor expanded in a around inf 85.8%
Taylor expanded in y around 0 88.7%
distribute-lft-out88.7%
*-commutative88.7%
Simplified88.7%
if 2.1999999999999998e66 < z Initial program 2.1%
Simplified2.1%
Taylor expanded in z around inf 98.0%
+-commutative98.0%
*-commutative98.0%
Simplified98.0%
Final simplification89.3%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.5e-7) (not (<= z 4.5e-22))) (+ 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.5e-7) || !(z <= 4.5e-22)) {
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.5d-7)) .or. (.not. (z <= 4.5d-22))) 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.5e-7) || !(z <= 4.5e-22)) {
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.5e-7) or not (z <= 4.5e-22): 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.5e-7) || !(z <= 4.5e-22)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.5e-7) || ~((z <= 4.5e-22))) 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.5e-7], N[Not[LessEqual[z, 4.5e-22]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{-7} \lor \neg \left(z \leq 4.5 \cdot 10^{-22}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.4999999999999999e-7 or 4.49999999999999987e-22 < z Initial program 24.4%
Simplified28.8%
Taylor expanded in z around inf 83.0%
+-commutative83.0%
*-commutative83.0%
Simplified83.0%
if -1.4999999999999999e-7 < z < 4.49999999999999987e-22Initial program 99.8%
Taylor expanded in z around 0 80.4%
associate-*r*80.5%
*-commutative80.5%
Simplified80.5%
Final simplification81.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -4.2e-54)
(+ x (* y (+ 3.13060547623 (/ -36.52704169880642 z))))
(if (<= z 4.5e-22)
(+ x (* y (* b 1.6453555072203998)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.2e-54) {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
} else if (z <= 4.5e-22) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
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 <= (-4.2d-54)) then
tmp = x + (y * (3.13060547623d0 + ((-36.52704169880642d0) / z)))
else if (z <= 4.5d-22) then
tmp = x + (y * (b * 1.6453555072203998d0))
else
tmp = x + (y * 3.13060547623d0)
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 <= -4.2e-54) {
tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z)));
} else if (z <= 4.5e-22) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -4.2e-54: tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))) elif z <= 4.5e-22: tmp = x + (y * (b * 1.6453555072203998)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -4.2e-54) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(-36.52704169880642 / z)))); elseif (z <= 4.5e-22) tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -4.2e-54) tmp = x + (y * (3.13060547623 + (-36.52704169880642 / z))); elseif (z <= 4.5e-22) tmp = x + (y * (b * 1.6453555072203998)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4.2e-54], N[(x + N[(y * N[(3.13060547623 + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-22], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{-54}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{-36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-22}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -4.2e-54Initial program 29.0%
Simplified31.4%
Taylor expanded in z around -inf 82.7%
+-commutative82.7%
+-commutative82.7%
mul-1-neg82.7%
unsub-neg82.7%
*-commutative82.7%
distribute-rgt-out--82.7%
metadata-eval82.7%
Simplified82.7%
Taylor expanded in y around 0 82.7%
associate-*r/82.7%
metadata-eval82.7%
sub-neg82.7%
distribute-neg-frac82.7%
metadata-eval82.7%
Simplified82.7%
if -4.2e-54 < z < 4.49999999999999987e-22Initial program 99.8%
Taylor expanded in z around 0 80.4%
associate-*r*80.4%
*-commutative80.4%
Simplified80.4%
if 4.49999999999999987e-22 < z Initial program 24.5%
Simplified31.0%
Taylor expanded in z around inf 83.7%
+-commutative83.7%
*-commutative83.7%
Simplified83.7%
Final simplification82.1%
(FPCore (x y z t a b) :precision binary64 (if (<= y 4.7e+181) x (* y (* b 1.6453555072203998))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= 4.7e+181) {
tmp = x;
} else {
tmp = 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 (y <= 4.7d+181) then
tmp = x
else
tmp = 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 (y <= 4.7e+181) {
tmp = x;
} else {
tmp = y * (b * 1.6453555072203998);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= 4.7e+181: tmp = x else: tmp = y * (b * 1.6453555072203998) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= 4.7e+181) tmp = x; else tmp = Float64(y * Float64(b * 1.6453555072203998)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= 4.7e+181) tmp = x; else tmp = y * (b * 1.6453555072203998); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, 4.7e+181], x, N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.7 \cdot 10^{+181}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if y < 4.70000000000000027e181Initial program 57.5%
Simplified60.2%
Taylor expanded in y around 0 53.5%
if 4.70000000000000027e181 < y Initial program 49.9%
Simplified49.9%
Taylor expanded in x around inf 37.7%
Taylor expanded in z around 0 29.3%
associate-/l*24.7%
Simplified24.7%
Taylor expanded in x around 0 33.1%
*-commutative33.1%
*-commutative33.1%
associate-*r*33.1%
Simplified33.1%
(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 56.8%
Simplified59.3%
Taylor expanded in z around inf 67.6%
+-commutative67.6%
*-commutative67.6%
Simplified67.6%
Final simplification67.6%
(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 56.8%
Simplified59.3%
Taylor expanded in y around 0 49.1%
(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 2024108
(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))))