
(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 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.16e+39)
(fma
y
(-
3.13060547623
(/
(-
36.52704169880642
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z))
z))
x)
(if (<= z 4.8e-17)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.16e+39) {
tmp = fma(y, (3.13060547623 - ((36.52704169880642 - ((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z)) / z)), x);
} else if (z <= 4.8e-17) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.16e+39) tmp = fma(y, Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z)) / z)), x); elseif (z <= 4.8e-17) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.16e+39], N[(y * N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.8e-17], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $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] + x), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.16 \cdot 10^{+39}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 - \frac{36.52704169880642 - \frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z}}{z}, x\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-17}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -1.16000000000000003e39Initial program 2.6%
Simplified9.2%
Taylor expanded in z around -inf 98.1%
Simplified98.1%
if -1.16000000000000003e39 < z < 4.79999999999999973e-17Initial program 99.1%
if 4.79999999999999973e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(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)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
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 = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) 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 = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $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], Infinity], 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[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\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}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\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 93.9%
Simplified98.5%
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.9%
mul-1-neg98.9%
unsub-neg98.9%
mul-1-neg98.9%
unsub-neg98.9%
+-commutative98.9%
Simplified98.9%
fma-undefine98.9%
Applied egg-rr98.9%
Taylor expanded in t around inf 98.9%
associate-*r/98.9%
mul-1-neg98.9%
Simplified98.9%
clear-num98.9%
inv-pow98.9%
Applied egg-rr98.9%
unpow-198.9%
associate-/r/98.9%
Simplified98.9%
Final simplification98.7%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(/
1.0
(/
(/
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771)
y)
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b))))
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + (1.0 / ((fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) / y) / fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)));
} else {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(1.0 / Float64(Float64(fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771) / y) / fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b)))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $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], Infinity], N[(x + N[(1.0 / N[(N[(N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision] / y), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{1}{\frac{\frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}{y}}{\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)}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\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 93.9%
Applied egg-rr93.9%
unpow-193.9%
associate-/r*97.9%
Simplified97.9%
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.9%
mul-1-neg98.9%
unsub-neg98.9%
mul-1-neg98.9%
unsub-neg98.9%
+-commutative98.9%
Simplified98.9%
fma-undefine98.9%
Applied egg-rr98.9%
Taylor expanded in t around inf 98.9%
associate-*r/98.9%
mul-1-neg98.9%
Simplified98.9%
clear-num98.9%
inv-pow98.9%
Applied egg-rr98.9%
unpow-198.9%
associate-/r/98.9%
Simplified98.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -5.6e+44)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))
(if (<= z 4.8e-17)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -5.6e+44) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
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 <= (-5.6d+44)) then
tmp = x + (y * (3.13060547623d0 + (1.0d0 / (z * (z / t)))))
else if (z <= 4.8d-17) then
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0)) + x
else
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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 <= -5.6e+44) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -5.6e+44: tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))) elif z <= 4.8e-17: tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x else: tmp = x + (y * (3.13060547623 + ((t / z) / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -5.6e+44) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); elseif (z <= 4.8e-17) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -5.6e+44) tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))); elseif (z <= 4.8e-17) tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x; else tmp = x + (y * (3.13060547623 + ((t / z) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5.6e+44], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-17], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $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] + x), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.6 \cdot 10^{+44}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-17}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -5.6000000000000002e44Initial program 2.6%
Simplified9.2%
Taylor expanded in z around -inf 95.2%
mul-1-neg95.2%
unsub-neg95.2%
mul-1-neg95.2%
unsub-neg95.2%
+-commutative95.2%
Simplified95.2%
fma-undefine95.2%
Applied egg-rr95.2%
Taylor expanded in t around inf 95.2%
associate-*r/95.2%
mul-1-neg95.2%
Simplified95.2%
clear-num95.2%
inv-pow95.2%
Applied egg-rr95.2%
unpow-195.2%
associate-/r/95.2%
Simplified95.2%
if -5.6000000000000002e44 < z < 4.79999999999999973e-17Initial program 99.1%
if 4.79999999999999973e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification98.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.15e+16)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))
(if (<= z 4.8e-17)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.15e+16) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
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.15d+16)) then
tmp = x + (y * (3.13060547623d0 + (1.0d0 / (z * (z / t)))))
else if (z <= 4.8d-17) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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.15e+16) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.15e+16: tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))) elif z <= 4.8e-17: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * (3.13060547623 + ((t / z) / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.15e+16) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); elseif (z <= 4.8e-17) 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))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.15e+16) tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))); elseif (z <= 4.8e-17) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * (3.13060547623 + ((t / z) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.15e+16], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-17], 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], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.15 \cdot 10^{+16}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-17}:\\
\;\;\;\;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}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -2.15e16Initial program 18.6%
Simplified25.4%
Taylor expanded in z around -inf 92.9%
mul-1-neg92.9%
unsub-neg92.9%
mul-1-neg92.9%
unsub-neg92.9%
+-commutative92.9%
Simplified92.9%
fma-undefine92.9%
Applied egg-rr92.9%
Taylor expanded in t around inf 92.9%
associate-*r/92.9%
mul-1-neg92.9%
Simplified92.9%
clear-num92.9%
inv-pow92.9%
Applied egg-rr92.9%
unpow-192.9%
associate-/r/92.9%
Simplified92.9%
if -2.15e16 < z < 4.79999999999999973e-17Initial program 99.7%
Taylor expanded in z around 0 99.5%
*-commutative99.5%
Simplified99.5%
if 4.79999999999999973e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification97.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -900000.0)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))
(if (<= z 4.8e-17)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -900000.0) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
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 <= (-900000.0d0)) then
tmp = x + (y * (3.13060547623d0 + (1.0d0 / (z * (z / t)))))
else if (z <= 4.8d-17) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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 <= -900000.0) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -900000.0: tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))) elif z <= 4.8e-17: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) else: tmp = x + (y * (3.13060547623 + ((t / z) / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -900000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); elseif (z <= 4.8e-17) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -900000.0) tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))); elseif (z <= 4.8e-17) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); else tmp = x + (y * (3.13060547623 + ((t / z) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -900000.0], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-17], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -900000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -9e5Initial program 24.2%
Simplified30.5%
Taylor expanded in z around -inf 90.9%
mul-1-neg90.9%
unsub-neg90.9%
mul-1-neg90.9%
unsub-neg90.9%
+-commutative90.9%
Simplified90.9%
fma-undefine90.9%
Applied egg-rr90.9%
Taylor expanded in t around inf 90.9%
associate-*r/90.9%
mul-1-neg90.9%
Simplified90.9%
clear-num90.9%
inv-pow90.9%
Applied egg-rr90.9%
unpow-190.9%
associate-/r/90.9%
Simplified90.9%
if -9e5 < z < 4.79999999999999973e-17Initial program 99.7%
Taylor expanded in z around 0 99.7%
*-commutative99.7%
Simplified99.7%
if 4.79999999999999973e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification97.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -13.0)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))
(if (<= z 4.8e-17)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -13.0) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
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 <= (-13.0d0)) then
tmp = x + (y * (3.13060547623d0 + (1.0d0 / (z * (z / t)))))
else if (z <= 4.8d-17) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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 <= -13.0) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -13.0: tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))) elif z <= 4.8e-17: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * (3.13060547623 + ((t / z) / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -13.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); elseif (z <= 4.8e-17) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -13.0) tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))); elseif (z <= 4.8e-17) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * (3.13060547623 + ((t / z) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -13.0], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-17], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -13:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -13Initial program 25.2%
Simplified31.5%
Taylor expanded in z around -inf 91.0%
mul-1-neg91.0%
unsub-neg91.0%
mul-1-neg91.0%
unsub-neg91.0%
+-commutative91.0%
Simplified91.0%
fma-undefine91.0%
Applied egg-rr91.0%
Taylor expanded in t around inf 91.0%
associate-*r/91.0%
mul-1-neg91.0%
Simplified91.0%
clear-num91.0%
inv-pow91.0%
Applied egg-rr91.0%
unpow-191.0%
associate-/r/91.0%
Simplified91.0%
if -13 < z < 4.79999999999999973e-17Initial program 99.7%
Taylor expanded in z around 0 99.7%
*-commutative82.7%
Simplified99.7%
if 4.79999999999999973e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification97.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.7e-17)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))
(if (<= z 4.8e-17)
(+
x
(+ (* 1.6453555072203998 (* y b)) (* 1.6453555072203998 (* a (* y z)))))
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.7e-17) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z))));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
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.7d-17)) then
tmp = x + (y * (3.13060547623d0 + (1.0d0 / (z * (z / t)))))
else if (z <= 4.8d-17) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (1.6453555072203998d0 * (a * (y * z))))
else
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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.7e-17) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z))));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.7e-17: tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))) elif z <= 4.8e-17: tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))) else: tmp = x + (y * (3.13060547623 + ((t / z) / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.7e-17) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); elseif (z <= 4.8e-17) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(1.6453555072203998 * Float64(a * Float64(y * z))))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.7e-17) tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))); elseif (z <= 4.8e-17) tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))); else tmp = x + (y * (3.13060547623 + ((t / z) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.7e-17], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-17], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-17}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-17}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + 1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -2.7000000000000001e-17Initial program 29.1%
Simplified35.0%
Taylor expanded in z around -inf 87.8%
mul-1-neg87.8%
unsub-neg87.8%
mul-1-neg87.8%
unsub-neg87.8%
+-commutative87.8%
Simplified87.8%
fma-undefine87.8%
Applied egg-rr87.8%
Taylor expanded in t around inf 87.7%
associate-*r/87.7%
mul-1-neg87.7%
Simplified87.7%
clear-num87.7%
inv-pow87.7%
Applied egg-rr87.7%
unpow-187.7%
associate-/r/87.8%
Simplified87.8%
if -2.7000000000000001e-17 < z < 4.79999999999999973e-17Initial program 99.7%
Taylor expanded in z around 0 78.5%
Taylor expanded in a around inf 94.3%
*-commutative94.3%
Simplified94.3%
if 4.79999999999999973e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification93.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.7e-17)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))
(if (<= z 4.8e-17)
(+
x
(+ (* 1.6453555072203998 (* y b)) (* y (* 1.6453555072203998 (* z a)))))
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.7e-17) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((1.6453555072203998 * (y * b)) + (y * (1.6453555072203998 * (z * a))));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
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.7d-17)) then
tmp = x + (y * (3.13060547623d0 + (1.0d0 / (z * (z / t)))))
else if (z <= 4.8d-17) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (y * (1.6453555072203998d0 * (z * a))))
else
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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.7e-17) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.8e-17) {
tmp = x + ((1.6453555072203998 * (y * b)) + (y * (1.6453555072203998 * (z * a))));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.7e-17: tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))) elif z <= 4.8e-17: tmp = x + ((1.6453555072203998 * (y * b)) + (y * (1.6453555072203998 * (z * a)))) else: tmp = x + (y * (3.13060547623 + ((t / z) / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.7e-17) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); elseif (z <= 4.8e-17) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(y * Float64(1.6453555072203998 * Float64(z * a))))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.7e-17) tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))); elseif (z <= 4.8e-17) tmp = x + ((1.6453555072203998 * (y * b)) + (y * (1.6453555072203998 * (z * a)))); else tmp = x + (y * (3.13060547623 + ((t / z) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.7e-17], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-17], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(1.6453555072203998 * N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{-17}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-17}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + y \cdot \left(1.6453555072203998 \cdot \left(z \cdot a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -2.7000000000000001e-17Initial program 29.1%
Simplified35.0%
Taylor expanded in z around -inf 87.8%
mul-1-neg87.8%
unsub-neg87.8%
mul-1-neg87.8%
unsub-neg87.8%
+-commutative87.8%
Simplified87.8%
fma-undefine87.8%
Applied egg-rr87.8%
Taylor expanded in t around inf 87.7%
associate-*r/87.7%
mul-1-neg87.7%
Simplified87.7%
clear-num87.7%
inv-pow87.7%
Applied egg-rr87.7%
unpow-187.7%
associate-/r/87.8%
Simplified87.8%
if -2.7000000000000001e-17 < z < 4.79999999999999973e-17Initial program 99.7%
Taylor expanded in z around 0 78.5%
Taylor expanded in y around 0 94.4%
Taylor expanded in a around inf 94.4%
*-commutative94.4%
Simplified94.4%
if 4.79999999999999973e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification93.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.3e-30) (not (<= z 4.8e-17))) (+ x (* y (+ 3.13060547623 (/ (/ t z) z)))) (+ x (* b (+ (* (* y z) -32.324150453290734) (* y 1.6453555072203998))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.3e-30) || !(z <= 4.8e-17)) {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
} else {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.3d-30)) .or. (.not. (z <= 4.8d-17))) then
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
else
tmp = x + (b * (((y * z) * (-32.324150453290734d0)) + (y * 1.6453555072203998d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.3e-30) || !(z <= 4.8e-17)) {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
} else {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.3e-30) or not (z <= 4.8e-17): tmp = x + (y * (3.13060547623 + ((t / z) / z))) else: tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.3e-30) || !(z <= 4.8e-17)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); else tmp = Float64(x + Float64(b * Float64(Float64(Float64(y * z) * -32.324150453290734) + Float64(y * 1.6453555072203998)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.3e-30) || ~((z <= 4.8e-17))) tmp = x + (y * (3.13060547623 + ((t / z) / z))); else tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.3e-30], N[Not[LessEqual[z, 4.8e-17]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(N[(N[(y * z), $MachinePrecision] * -32.324150453290734), $MachinePrecision] + N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-30} \lor \neg \left(z \leq 4.8 \cdot 10^{-17}\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(\left(y \cdot z\right) \cdot -32.324150453290734 + y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.29999999999999993e-30 or 4.79999999999999973e-17 < z Initial program 23.8%
Simplified29.2%
Taylor expanded in z around -inf 91.8%
mul-1-neg91.8%
unsub-neg91.8%
mul-1-neg91.8%
unsub-neg91.8%
+-commutative91.8%
Simplified91.8%
fma-undefine91.8%
Applied egg-rr91.8%
Taylor expanded in t around inf 91.7%
associate-*r/91.7%
mul-1-neg91.7%
Simplified91.7%
if -1.29999999999999993e-30 < z < 4.79999999999999973e-17Initial program 99.7%
Taylor expanded in z around 0 77.9%
Taylor expanded in b around inf 86.7%
Final simplification89.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.3e-30)
(+ x (* y (+ 3.13060547623 (/ 1.0 (* z (/ z t))))))
(if (<= z 4.5e-17)
(+ x (* b (+ (* (* y z) -32.324150453290734) (* y 1.6453555072203998))))
(+ x (* y (+ 3.13060547623 (/ (/ t z) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.3e-30) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.5e-17) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
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.3d-30)) then
tmp = x + (y * (3.13060547623d0 + (1.0d0 / (z * (z / t)))))
else if (z <= 4.5d-17) then
tmp = x + (b * (((y * z) * (-32.324150453290734d0)) + (y * 1.6453555072203998d0)))
else
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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.3e-30) {
tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t)))));
} else if (z <= 4.5e-17) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
} else {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.3e-30: tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))) elif z <= 4.5e-17: tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))) else: tmp = x + (y * (3.13060547623 + ((t / z) / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.3e-30) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(1.0 / Float64(z * Float64(z / t)))))); elseif (z <= 4.5e-17) tmp = Float64(x + Float64(b * Float64(Float64(Float64(y * z) * -32.324150453290734) + Float64(y * 1.6453555072203998)))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.3e-30) tmp = x + (y * (3.13060547623 + (1.0 / (z * (z / t))))); elseif (z <= 4.5e-17) tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))); else tmp = x + (y * (3.13060547623 + ((t / z) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.3e-30], N[(x + N[(y * N[(3.13060547623 + N[(1.0 / N[(z * N[(z / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e-17], N[(x + N[(b * N[(N[(N[(y * z), $MachinePrecision] * -32.324150453290734), $MachinePrecision] + N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-30}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{1}{z \cdot \frac{z}{t}}\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-17}:\\
\;\;\;\;x + b \cdot \left(\left(y \cdot z\right) \cdot -32.324150453290734 + y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -1.29999999999999993e-30Initial program 31.8%
Simplified37.5%
Taylor expanded in z around -inf 85.9%
mul-1-neg85.9%
unsub-neg85.9%
mul-1-neg85.9%
unsub-neg85.9%
+-commutative85.9%
Simplified85.9%
fma-undefine85.9%
Applied egg-rr85.9%
Taylor expanded in t around inf 85.8%
associate-*r/85.8%
mul-1-neg85.8%
Simplified85.8%
clear-num85.8%
inv-pow85.8%
Applied egg-rr85.8%
unpow-185.8%
associate-/r/85.8%
Simplified85.8%
if -1.29999999999999993e-30 < z < 4.49999999999999978e-17Initial program 99.7%
Taylor expanded in z around 0 77.9%
Taylor expanded in b around inf 86.7%
if 4.49999999999999978e-17 < z Initial program 12.6%
Simplified17.5%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine100.0%
Applied egg-rr100.0%
Taylor expanded in t around inf 100.0%
associate-*r/100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification89.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.3e-30) (not (<= z 4.8e-17))) (+ x (* y (+ 3.13060547623 (/ (/ t z) z)))) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.3e-30) || !(z <= 4.8e-17)) {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.3d-30)) .or. (.not. (z <= 4.8d-17))) then
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.3e-30) || !(z <= 4.8e-17)) {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.3e-30) or not (z <= 4.8e-17): tmp = x + (y * (3.13060547623 + ((t / z) / z))) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.3e-30) || !(z <= 4.8e-17)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.3e-30) || ~((z <= 4.8e-17))) tmp = x + (y * (3.13060547623 + ((t / z) / z))); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.3e-30], N[Not[LessEqual[z, 4.8e-17]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.3 \cdot 10^{-30} \lor \neg \left(z \leq 4.8 \cdot 10^{-17}\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.29999999999999993e-30 or 4.79999999999999973e-17 < z Initial program 23.8%
Simplified29.2%
Taylor expanded in z around -inf 91.8%
mul-1-neg91.8%
unsub-neg91.8%
mul-1-neg91.8%
unsub-neg91.8%
+-commutative91.8%
Simplified91.8%
fma-undefine91.8%
Applied egg-rr91.8%
Taylor expanded in t around inf 91.7%
associate-*r/91.7%
mul-1-neg91.7%
Simplified91.7%
if -1.29999999999999993e-30 < z < 4.79999999999999973e-17Initial program 99.7%
Taylor expanded in z around 0 86.5%
*-commutative86.5%
Simplified86.5%
Taylor expanded in z around 0 86.7%
*-commutative86.7%
associate-*r*86.7%
Simplified86.7%
Final simplification89.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.6e+15)
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 1800.0)
(+ x (/ (* y b) (+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.6e+15) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 1800.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} 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 <= (-1.6d+15)) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else if (z <= 1800.0d0) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * 11.9400905721d0)))
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 <= -1.6e+15) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 1800.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.6e+15: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) elif z <= 1800.0: tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.6e+15) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); elseif (z <= 1800.0) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); 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 <= -1.6e+15) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); elseif (z <= 1800.0) tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.6e+15], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1800.0], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{+15}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1800:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.6e15Initial program 19.8%
Simplified26.5%
Taylor expanded in z around -inf 91.7%
mul-1-neg91.7%
unsub-neg91.7%
mul-1-neg91.7%
unsub-neg91.7%
+-commutative91.7%
Simplified91.7%
fma-undefine91.7%
Applied egg-rr91.7%
Taylor expanded in z around inf 85.0%
if -1.6e15 < z < 1800Initial program 99.7%
Taylor expanded in z around 0 81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in z around 0 81.6%
*-commutative81.6%
Simplified81.6%
if 1800 < z Initial program 7.7%
Simplified12.9%
Taylor expanded in z around inf 96.7%
+-commutative96.7%
*-commutative96.7%
Simplified96.7%
Final simplification85.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2.9e+15) (not (<= z 2800.0))) (+ x (* y 3.13060547623)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.9e+15) || !(z <= 2800.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-2.9d+15)) .or. (.not. (z <= 2800.0d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.9e+15) || !(z <= 2800.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.9e+15) or not (z <= 2800.0): tmp = x + (y * 3.13060547623) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.9e+15) || !(z <= 2800.0)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.9e+15) || ~((z <= 2800.0))) tmp = x + (y * 3.13060547623); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.9e+15], N[Not[LessEqual[z, 2800.0]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{+15} \lor \neg \left(z \leq 2800\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -2.9e15 or 2800 < z Initial program 14.4%
Simplified20.5%
Taylor expanded in z around inf 90.2%
+-commutative90.2%
*-commutative90.2%
Simplified90.2%
if -2.9e15 < z < 2800Initial program 99.7%
Taylor expanded in z around 0 81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in z around 0 81.4%
*-commutative81.4%
associate-*r*81.4%
Simplified81.4%
Final simplification85.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -8e+15)
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 2800.0)
(+ x (* b (* y 1.6453555072203998)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -8e+15) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 2800.0) {
tmp = x + (b * (y * 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 <= (-8d+15)) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else if (z <= 2800.0d0) then
tmp = x + (b * (y * 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 <= -8e+15) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 2800.0) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -8e+15: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) elif z <= 2800.0: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -8e+15) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); elseif (z <= 2800.0) tmp = Float64(x + Float64(b * Float64(y * 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 <= -8e+15) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); elseif (z <= 2800.0) tmp = x + (b * (y * 1.6453555072203998)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -8e+15], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2800.0], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+15}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 2800:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -8e15Initial program 19.8%
Simplified26.5%
Taylor expanded in z around -inf 91.7%
mul-1-neg91.7%
unsub-neg91.7%
mul-1-neg91.7%
unsub-neg91.7%
+-commutative91.7%
Simplified91.7%
fma-undefine91.7%
Applied egg-rr91.7%
Taylor expanded in z around inf 85.0%
if -8e15 < z < 2800Initial program 99.7%
Taylor expanded in z around 0 81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in z around 0 81.4%
*-commutative81.4%
associate-*r*81.4%
Simplified81.4%
if 2800 < z Initial program 7.7%
Simplified12.9%
Taylor expanded in z around inf 96.7%
+-commutative96.7%
*-commutative96.7%
Simplified96.7%
Final simplification85.6%
(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 59.1%
Simplified62.0%
Taylor expanded in z around inf 62.1%
+-commutative62.1%
*-commutative62.1%
Simplified62.1%
Final simplification62.1%
(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 59.1%
Simplified62.0%
Taylor expanded in y around 0 43.7%
Final simplification43.7%
(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 2024115
(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))))