
(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 21 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 (or (<= z -3.8e+23) (not (<= z 1.65e+14)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)
(+
(/
(*
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)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.8e+23) || !(z <= 1.65e+14)) {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
} else {
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;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.8e+23) || !(z <= 1.65e+14)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); else tmp = Float64(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); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.8e+23], N[Not[LessEqual[z, 1.65e+14]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.8 \cdot 10^{+23} \lor \neg \left(z \leq 1.65 \cdot 10^{+14}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\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\\
\end{array}
\end{array}
if z < -3.79999999999999975e23 or 1.65e14 < z Initial program 11.3%
Simplified17.1%
Taylor expanded in z around -inf 98.4%
Simplified98.4%
if -3.79999999999999975e23 < z < 1.65e14Initial program 99.0%
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))
1e+297)
(fma
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(/
y
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
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 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)) <= 1e+297) {
tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), (y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), 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) 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)) <= 1e+297) tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), Float64(y / 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(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), x); 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], 1e+297], 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[(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[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $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 10^{+297}:\\
\;\;\;\;\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, \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{\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))) < 1e297Initial program 94.8%
Simplified97.5%
if 1e297 < (/.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 8.0%
Simplified11.9%
Taylor expanded in z around -inf 98.2%
mul-1-neg98.2%
unsub-neg98.2%
mul-1-neg98.2%
unsub-neg98.2%
+-commutative98.2%
Simplified98.2%
Final simplification97.8%
(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))
1e+297)
(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 (/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
x)))
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)) <= 1e+297) {
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 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)), x);
}
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)) <= 1e+297) 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(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), x); 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], 1e+297], 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[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $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 10^{+297}:\\
\;\;\;\;\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{\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))) < 1e297Initial program 94.8%
Simplified97.5%
if 1e297 < (/.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 8.0%
Simplified11.9%
Taylor expanded in z around -inf 98.2%
mul-1-neg98.2%
unsub-neg98.2%
mul-1-neg98.2%
unsub-neg98.2%
+-commutative98.2%
Simplified98.2%
Final simplification97.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -4e+23) (not (<= z 1.7e+23)))
(fma
y
(+ 3.13060547623 (/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
x)
(+
(/
(*
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)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -4e+23) || !(z <= 1.7e+23)) {
tmp = fma(y, (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)), x);
} else {
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;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -4e+23) || !(z <= 1.7e+23)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), x); else 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); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -4e+23], N[Not[LessEqual[z, 1.7e+23]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+23} \lor \neg \left(z \leq 1.7 \cdot 10^{+23}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\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\\
\end{array}
\end{array}
if z < -3.9999999999999997e23 or 1.69999999999999996e23 < z Initial program 8.5%
Simplified13.8%
Taylor expanded in z around -inf 98.7%
mul-1-neg98.7%
unsub-neg98.7%
mul-1-neg98.7%
unsub-neg98.7%
+-commutative98.7%
Simplified98.7%
if -3.9999999999999997e23 < z < 1.69999999999999996e23Initial program 97.6%
Final simplification98.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -4.2e+23)
(+
x
(+
(/
(+
(* y -47.69379582500642)
(-
(/
(+
(* y t)
(-
(* -15.234687407 (- (* y -47.69379582500642) (* y -11.1667541262)))
(* y 98.5170599679272)))
z)
(* y -11.1667541262)))
z)
(* y 3.13060547623)))
(if (<= z 2.45e+29)
(+
(/
(*
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)
(fma y 3.13060547623 x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.2e+23) {
tmp = x + ((((y * -47.69379582500642) + ((((y * t) + ((-15.234687407 * ((y * -47.69379582500642) - (y * -11.1667541262))) - (y * 98.5170599679272))) / z) - (y * -11.1667541262))) / z) + (y * 3.13060547623));
} else if (z <= 2.45e+29) {
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 = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -4.2e+23) tmp = Float64(x + Float64(Float64(Float64(Float64(y * -47.69379582500642) + Float64(Float64(Float64(Float64(y * t) + Float64(Float64(-15.234687407 * Float64(Float64(y * -47.69379582500642) - Float64(y * -11.1667541262))) - Float64(y * 98.5170599679272))) / z) - Float64(y * -11.1667541262))) / z) + Float64(y * 3.13060547623))); elseif (z <= 2.45e+29) 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 = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4.2e+23], N[(x + N[(N[(N[(N[(y * -47.69379582500642), $MachinePrecision] + N[(N[(N[(N[(y * t), $MachinePrecision] + N[(N[(-15.234687407 * N[(N[(y * -47.69379582500642), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * 98.5170599679272), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.45e+29], 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[(y * 3.13060547623 + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+23}:\\
\;\;\;\;x + \left(\frac{y \cdot -47.69379582500642 + \left(\frac{y \cdot t + \left(-15.234687407 \cdot \left(y \cdot -47.69379582500642 - y \cdot -11.1667541262\right) - y \cdot 98.5170599679272\right)}{z} - y \cdot -11.1667541262\right)}{z} + y \cdot 3.13060547623\right)\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{+29}:\\
\;\;\;\;\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}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if z < -4.2000000000000003e23Initial program 7.0%
Taylor expanded in z around -inf 92.5%
if -4.2000000000000003e23 < z < 2.4500000000000001e29Initial program 97.0%
if 2.4500000000000001e29 < z Initial program 7.1%
Simplified11.7%
Taylor expanded in z around inf 99.8%
Final simplification96.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.4e+125)
t_1
(if (<= z -1.82e+19)
(*
y
(+
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
(/ x y)))
(if (<= z 2.45e+29)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(*
z
(+
(* z (+ (* z (+ z 15.234687407)) 31.4690115749))
11.9400905721))
0.607771387771)))
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.4e+125) {
tmp = t_1;
} else if (z <= -1.82e+19) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 2.45e+29) {
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 = 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.4d+125)) then
tmp = t_1
else if (z <= (-1.82d+19)) then
tmp = y * ((3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)) + (x / y))
else if (z <= 2.45d+29) 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 = 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.4e+125) {
tmp = t_1;
} else if (z <= -1.82e+19) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 2.45e+29) {
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 = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -1.4e+125: tmp = t_1 elif z <= -1.82e+19: tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)) elif z <= 2.45e+29: 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 = 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.4e+125) tmp = t_1; elseif (z <= -1.82e+19) tmp = Float64(y * Float64(Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)) + Float64(x / y))); elseif (z <= 2.45e+29) 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 = 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.4e+125) tmp = t_1; elseif (z <= -1.82e+19) tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)); elseif (z <= 2.45e+29) 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 = 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.4e+125], t$95$1, If[LessEqual[z, -1.82e+19], N[(y * N[(N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.45e+29], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.82 \cdot 10^{+19}:\\
\;\;\;\;y \cdot \left(\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right) + \frac{x}{y}\right)\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{+29}:\\
\;\;\;\;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}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.4e125 or 2.4500000000000001e29 < z Initial program 4.4%
Simplified7.2%
Taylor expanded in z around inf 99.8%
+-commutative99.8%
*-commutative99.8%
Simplified99.8%
if -1.4e125 < z < -1.82e19Initial program 27.6%
Simplified38.4%
Taylor expanded in y around -inf 34.8%
Taylor expanded in z around -inf 90.2%
mul-1-neg90.2%
unsub-neg90.2%
mul-1-neg90.2%
unsub-neg90.2%
+-commutative90.2%
Simplified90.2%
if -1.82e19 < z < 2.4500000000000001e29Initial program 96.9%
Taylor expanded in z around 0 95.1%
*-commutative95.1%
Simplified95.1%
Final simplification96.4%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -8.2e+46) (not (<= z 1.7e+29)))
(+ x (* y 3.13060547623))
(+
(/
(*
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)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -8.2e+46) || !(z <= 1.7e+29)) {
tmp = x + (y * 3.13060547623);
} else {
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;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-8.2d+46)) .or. (.not. (z <= 1.7d+29))) then
tmp = x + (y * 3.13060547623d0)
else
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
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -8.2e+46) || !(z <= 1.7e+29)) {
tmp = x + (y * 3.13060547623);
} else {
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;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -8.2e+46) or not (z <= 1.7e+29): tmp = x + (y * 3.13060547623) else: 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 return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -8.2e+46) || !(z <= 1.7e+29)) tmp = Float64(x + Float64(y * 3.13060547623)); else 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); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -8.2e+46) || ~((z <= 1.7e+29))) tmp = x + (y * 3.13060547623); else 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; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -8.2e+46], N[Not[LessEqual[z, 1.7e+29]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+46} \lor \neg \left(z \leq 1.7 \cdot 10^{+29}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;\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\\
\end{array}
\end{array}
if z < -8.19999999999999999e46 or 1.69999999999999991e29 < z Initial program 4.6%
Simplified8.7%
Taylor expanded in z around inf 96.5%
+-commutative96.5%
*-commutative96.5%
Simplified96.5%
if -8.19999999999999999e46 < z < 1.69999999999999991e29Initial program 95.7%
Final simplification96.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -4.3e+23)
(+
x
(+
(/
(+
(* y -47.69379582500642)
(-
(/
(+
(* y t)
(-
(* -15.234687407 (- (* y -47.69379582500642) (* y -11.1667541262)))
(* y 98.5170599679272)))
z)
(* y -11.1667541262)))
z)
(* y 3.13060547623)))
(if (<= z 6.1e+28)
(+
(/
(*
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)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -4.3e+23) {
tmp = x + ((((y * -47.69379582500642) + ((((y * t) + ((-15.234687407 * ((y * -47.69379582500642) - (y * -11.1667541262))) - (y * 98.5170599679272))) / z) - (y * -11.1667541262))) / z) + (y * 3.13060547623));
} else if (z <= 6.1e+28) {
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);
}
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.3d+23)) then
tmp = x + ((((y * (-47.69379582500642d0)) + ((((y * t) + (((-15.234687407d0) * ((y * (-47.69379582500642d0)) - (y * (-11.1667541262d0)))) - (y * 98.5170599679272d0))) / z) - (y * (-11.1667541262d0)))) / z) + (y * 3.13060547623d0))
else if (z <= 6.1d+28) 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)
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.3e+23) {
tmp = x + ((((y * -47.69379582500642) + ((((y * t) + ((-15.234687407 * ((y * -47.69379582500642) - (y * -11.1667541262))) - (y * 98.5170599679272))) / z) - (y * -11.1667541262))) / z) + (y * 3.13060547623));
} else if (z <= 6.1e+28) {
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);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -4.3e+23: tmp = x + ((((y * -47.69379582500642) + ((((y * t) + ((-15.234687407 * ((y * -47.69379582500642) - (y * -11.1667541262))) - (y * 98.5170599679272))) / z) - (y * -11.1667541262))) / z) + (y * 3.13060547623)) elif z <= 6.1e+28: 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) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -4.3e+23) tmp = Float64(x + Float64(Float64(Float64(Float64(y * -47.69379582500642) + Float64(Float64(Float64(Float64(y * t) + Float64(Float64(-15.234687407 * Float64(Float64(y * -47.69379582500642) - Float64(y * -11.1667541262))) - Float64(y * 98.5170599679272))) / z) - Float64(y * -11.1667541262))) / z) + Float64(y * 3.13060547623))); elseif (z <= 6.1e+28) 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 * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -4.3e+23) tmp = x + ((((y * -47.69379582500642) + ((((y * t) + ((-15.234687407 * ((y * -47.69379582500642) - (y * -11.1667541262))) - (y * 98.5170599679272))) / z) - (y * -11.1667541262))) / z) + (y * 3.13060547623)); elseif (z <= 6.1e+28) 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); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -4.3e+23], N[(x + N[(N[(N[(N[(y * -47.69379582500642), $MachinePrecision] + N[(N[(N[(N[(y * t), $MachinePrecision] + N[(N[(-15.234687407 * N[(N[(y * -47.69379582500642), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * 98.5170599679272), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.1e+28], 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 * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.3 \cdot 10^{+23}:\\
\;\;\;\;x + \left(\frac{y \cdot -47.69379582500642 + \left(\frac{y \cdot t + \left(-15.234687407 \cdot \left(y \cdot -47.69379582500642 - y \cdot -11.1667541262\right) - y \cdot 98.5170599679272\right)}{z} - y \cdot -11.1667541262\right)}{z} + y \cdot 3.13060547623\right)\\
\mathbf{elif}\;z \leq 6.1 \cdot 10^{+28}:\\
\;\;\;\;\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 3.13060547623\\
\end{array}
\end{array}
if z < -4.2999999999999999e23Initial program 7.0%
Taylor expanded in z around -inf 92.5%
if -4.2999999999999999e23 < z < 6.1000000000000002e28Initial program 97.0%
if 6.1000000000000002e28 < z Initial program 7.1%
Simplified11.7%
Taylor expanded in z around inf 99.8%
+-commutative99.8%
*-commutative99.8%
Simplified99.8%
Final simplification96.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -5.8e+131)
t_1
(if (<= z -33000.0)
(*
y
(+
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
(/ x y)))
(if (<= z 1.35e+23)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z 15.234687407))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -5.8e+131) {
tmp = t_1;
} else if (z <= -33000.0) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 1.35e+23) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * 15.234687407)))))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-5.8d+131)) then
tmp = t_1
else if (z <= (-33000.0d0)) then
tmp = y * ((3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)) + (x / y))
else if (z <= 1.35d+23) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * 15.234687407d0)))))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -5.8e+131) {
tmp = t_1;
} else if (z <= -33000.0) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 1.35e+23) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * 15.234687407)))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -5.8e+131: tmp = t_1 elif z <= -33000.0: tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)) elif z <= 1.35e+23: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * 15.234687407))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -5.8e+131) tmp = t_1; elseif (z <= -33000.0) tmp = Float64(y * Float64(Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)) + Float64(x / y))); elseif (z <= 1.35e+23) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * 15.234687407)))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -5.8e+131) tmp = t_1; elseif (z <= -33000.0) tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)); elseif (z <= 1.35e+23) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * 15.234687407))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.8e+131], t$95$1, If[LessEqual[z, -33000.0], N[(y * N[(N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e+23], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -5.8 \cdot 10^{+131}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -33000:\\
\;\;\;\;y \cdot \left(\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right) + \frac{x}{y}\right)\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+23}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot 15.234687407\right)\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.8000000000000002e131 or 1.3499999999999999e23 < z Initial program 6.3%
Simplified10.0%
Taylor expanded in z around inf 98.9%
+-commutative98.9%
*-commutative98.9%
Simplified98.9%
if -5.8000000000000002e131 < z < -33000Initial program 30.2%
Simplified40.7%
Taylor expanded in y around -inf 37.1%
Taylor expanded in z around -inf 87.1%
mul-1-neg87.1%
unsub-neg87.1%
mul-1-neg87.1%
unsub-neg87.1%
+-commutative87.1%
Simplified87.1%
if -33000 < z < 1.3499999999999999e23Initial program 97.5%
Taylor expanded in z around 0 95.7%
*-commutative95.7%
Simplified95.7%
Taylor expanded in z around 0 94.0%
*-commutative94.0%
Simplified94.0%
Final simplification95.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -3.5e+128)
t_1
(if (<= z -10500000000.0)
(*
y
(+
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
(/ x y)))
(if (<= z 6.4e+16)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
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 <= -3.5e+128) {
tmp = t_1;
} else if (z <= -10500000000.0) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 6.4e+16) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} 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 <= (-3.5d+128)) then
tmp = t_1
else if (z <= (-10500000000.0d0)) then
tmp = y * ((3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)) + (x / y))
else if (z <= 6.4d+16) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
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 <= -3.5e+128) {
tmp = t_1;
} else if (z <= -10500000000.0) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 6.4e+16) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -3.5e+128: tmp = t_1 elif z <= -10500000000.0: tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)) elif z <= 6.4e+16: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) 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 <= -3.5e+128) tmp = t_1; elseif (z <= -10500000000.0) tmp = Float64(y * Float64(Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)) + Float64(x / y))); elseif (z <= 6.4e+16) 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)))))); 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 <= -3.5e+128) tmp = t_1; elseif (z <= -10500000000.0) tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)); elseif (z <= 6.4e+16) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); 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, -3.5e+128], t$95$1, If[LessEqual[z, -10500000000.0], N[(y * N[(N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.4e+16], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -10500000000:\\
\;\;\;\;y \cdot \left(\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right) + \frac{x}{y}\right)\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{+16}:\\
\;\;\;\;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{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.49999999999999969e128 or 6.4e16 < z Initial program 9.0%
Simplified13.3%
Taylor expanded in z around inf 96.1%
+-commutative96.1%
*-commutative96.1%
Simplified96.1%
if -3.49999999999999969e128 < z < -1.05e10Initial program 27.6%
Simplified38.4%
Taylor expanded in y around -inf 34.8%
Taylor expanded in z around -inf 90.2%
mul-1-neg90.2%
unsub-neg90.2%
mul-1-neg90.2%
unsub-neg90.2%
+-commutative90.2%
Simplified90.2%
if -1.05e10 < z < 6.4e16Initial program 99.0%
Taylor expanded in z around 0 97.0%
*-commutative97.0%
Simplified97.0%
Taylor expanded in z around 0 95.1%
*-commutative95.1%
Simplified95.1%
Final simplification95.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.4e+133)
t_1
(if (<= z -35000.0)
(*
y
(+
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
(/ x y)))
(if (<= z 1.6e+17)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.4e+133) {
tmp = t_1;
} else if (z <= -35000.0) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 1.6e+17) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-1.4d+133)) then
tmp = t_1
else if (z <= (-35000.0d0)) then
tmp = y * ((3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)) + (x / y))
else if (z <= 1.6d+17) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.4e+133) {
tmp = t_1;
} else if (z <= -35000.0) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 1.6e+17) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} 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.4e+133: tmp = t_1 elif z <= -35000.0: tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)) elif z <= 1.6e+17: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) 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.4e+133) tmp = t_1; elseif (z <= -35000.0) tmp = Float64(y * Float64(Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)) + Float64(x / y))); elseif (z <= 1.6e+17) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = 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.4e+133) tmp = t_1; elseif (z <= -35000.0) tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)); elseif (z <= 1.6e+17) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+133], t$95$1, If[LessEqual[z, -35000.0], N[(y * N[(N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+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[(0.607771387771 + N[(z * 11.9400905721), $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.4 \cdot 10^{+133}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -35000:\\
\;\;\;\;y \cdot \left(\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right) + \frac{x}{y}\right)\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+17}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.40000000000000008e133 or 1.6e17 < z Initial program 9.0%
Simplified13.3%
Taylor expanded in z around inf 96.1%
+-commutative96.1%
*-commutative96.1%
Simplified96.1%
if -1.40000000000000008e133 < z < -35000Initial program 30.2%
Simplified40.7%
Taylor expanded in y around -inf 37.1%
Taylor expanded in z around -inf 87.1%
mul-1-neg87.1%
unsub-neg87.1%
mul-1-neg87.1%
unsub-neg87.1%
+-commutative87.1%
Simplified87.1%
if -35000 < z < 1.6e17Initial program 99.0%
Taylor expanded in z around 0 97.0%
*-commutative97.0%
Simplified97.0%
Taylor expanded in z around 0 95.5%
*-commutative95.5%
Simplified95.5%
Final simplification94.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -5e+125)
t_1
(if (<= z -5.5e-8)
(*
y
(+
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
(/ x y)))
(if (<= z 2.2e+23)
(-
x
(*
y
(-
(* z (- (* b 32.324150453290734) (* a 1.6453555072203998)))
(* b 1.6453555072203998))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -5e+125) {
tmp = t_1;
} else if (z <= -5.5e-8) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 2.2e+23) {
tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-5d+125)) then
tmp = t_1
else if (z <= (-5.5d-8)) then
tmp = y * ((3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)) + (x / y))
else if (z <= 2.2d+23) then
tmp = x - (y * ((z * ((b * 32.324150453290734d0) - (a * 1.6453555072203998d0))) - (b * 1.6453555072203998d0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -5e+125) {
tmp = t_1;
} else if (z <= -5.5e-8) {
tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y));
} else if (z <= 2.2e+23) {
tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -5e+125: tmp = t_1 elif z <= -5.5e-8: tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)) elif z <= 2.2e+23: tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -5e+125) tmp = t_1; elseif (z <= -5.5e-8) tmp = Float64(y * Float64(Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)) + Float64(x / y))); elseif (z <= 2.2e+23) tmp = Float64(x - Float64(y * Float64(Float64(z * Float64(Float64(b * 32.324150453290734) - Float64(a * 1.6453555072203998))) - Float64(b * 1.6453555072203998)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -5e+125) tmp = t_1; elseif (z <= -5.5e-8) tmp = y * ((3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)) + (x / y)); elseif (z <= 2.2e+23) tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e+125], t$95$1, If[LessEqual[z, -5.5e-8], N[(y * N[(N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(x / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+23], N[(x - N[(y * N[(N[(z * N[(N[(b * 32.324150453290734), $MachinePrecision] - N[(a * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -5 \cdot 10^{+125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-8}:\\
\;\;\;\;y \cdot \left(\left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right) + \frac{x}{y}\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+23}:\\
\;\;\;\;x - y \cdot \left(z \cdot \left(b \cdot 32.324150453290734 - a \cdot 1.6453555072203998\right) - b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.99999999999999962e125 or 2.20000000000000008e23 < z Initial program 6.3%
Simplified10.0%
Taylor expanded in z around inf 98.9%
+-commutative98.9%
*-commutative98.9%
Simplified98.9%
if -4.99999999999999962e125 < z < -5.5000000000000003e-8Initial program 41.9%
Simplified52.8%
Taylor expanded in y around -inf 44.5%
Taylor expanded in z around -inf 76.2%
mul-1-neg76.2%
unsub-neg76.2%
mul-1-neg76.2%
unsub-neg76.2%
+-commutative76.2%
Simplified76.2%
if -5.5000000000000003e-8 < z < 2.20000000000000008e23Initial program 98.2%
Taylor expanded in z around 0 80.1%
Taylor expanded in y around 0 91.1%
Final simplification92.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -4.2e+111)
t_1
(if (<= z -2.6e-13)
(+
x
(/ (+ (* y 11.1667541262) (* (/ y z) (+ t -170.12200846348443))) z))
(if (<= z 1.32e+23)
(-
x
(*
y
(-
(* z (- (* b 32.324150453290734) (* a 1.6453555072203998)))
(* b 1.6453555072203998))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -4.2e+111) {
tmp = t_1;
} else if (z <= -2.6e-13) {
tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z);
} else if (z <= 1.32e+23) {
tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-4.2d+111)) then
tmp = t_1
else if (z <= (-2.6d-13)) then
tmp = x + (((y * 11.1667541262d0) + ((y / z) * (t + (-170.12200846348443d0)))) / z)
else if (z <= 1.32d+23) then
tmp = x - (y * ((z * ((b * 32.324150453290734d0) - (a * 1.6453555072203998d0))) - (b * 1.6453555072203998d0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -4.2e+111) {
tmp = t_1;
} else if (z <= -2.6e-13) {
tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z);
} else if (z <= 1.32e+23) {
tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -4.2e+111: tmp = t_1 elif z <= -2.6e-13: tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z) elif z <= 1.32e+23: tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -4.2e+111) tmp = t_1; elseif (z <= -2.6e-13) tmp = Float64(x + Float64(Float64(Float64(y * 11.1667541262) + Float64(Float64(y / z) * Float64(t + -170.12200846348443))) / z)); elseif (z <= 1.32e+23) tmp = Float64(x - Float64(y * Float64(Float64(z * Float64(Float64(b * 32.324150453290734) - Float64(a * 1.6453555072203998))) - Float64(b * 1.6453555072203998)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -4.2e+111) tmp = t_1; elseif (z <= -2.6e-13) tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z); elseif (z <= 1.32e+23) tmp = x - (y * ((z * ((b * 32.324150453290734) - (a * 1.6453555072203998))) - (b * 1.6453555072203998))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+111], t$95$1, If[LessEqual[z, -2.6e-13], N[(x + N[(N[(N[(y * 11.1667541262), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * N[(t + -170.12200846348443), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.32e+23], N[(x - N[(y * N[(N[(z * N[(N[(b * 32.324150453290734), $MachinePrecision] - N[(a * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-13}:\\
\;\;\;\;x + \frac{y \cdot 11.1667541262 + \frac{y}{z} \cdot \left(t + -170.12200846348443\right)}{z}\\
\mathbf{elif}\;z \leq 1.32 \cdot 10^{+23}:\\
\;\;\;\;x - y \cdot \left(z \cdot \left(b \cdot 32.324150453290734 - a \cdot 1.6453555072203998\right) - b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.1999999999999999e111 or 1.3199999999999999e23 < z Initial program 6.1%
Simplified9.7%
Taylor expanded in z around inf 98.9%
+-commutative98.9%
*-commutative98.9%
Simplified98.9%
if -4.1999999999999999e111 < z < -2.6e-13Initial program 45.9%
Taylor expanded in z around 0 46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in z around inf 68.7%
associate--l+68.7%
*-commutative68.7%
associate-/l*71.8%
distribute-rgt-out--71.8%
sub-neg71.8%
metadata-eval71.8%
Simplified71.8%
if -2.6e-13 < z < 1.3199999999999999e23Initial program 98.2%
Taylor expanded in z around 0 80.1%
Taylor expanded in y around 0 91.1%
Final simplification91.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -4.2e+111)
t_1
(if (<= z -5.4e-8)
(+
x
(/ (+ (* y 11.1667541262) (* (/ y z) (+ t -170.12200846348443))) z))
(if (<= z 720.0)
(+
x
(+
(* 1.6453555072203998 (* a (* y z)))
(* 1.6453555072203998 (* y b))))
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.2e+111) {
tmp = t_1;
} else if (z <= -5.4e-8) {
tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z);
} else if (z <= 720.0) {
tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * 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 + (y * 3.13060547623d0)
if (z <= (-4.2d+111)) then
tmp = t_1
else if (z <= (-5.4d-8)) then
tmp = x + (((y * 11.1667541262d0) + ((y / z) * (t + (-170.12200846348443d0)))) / z)
else if (z <= 720.0d0) then
tmp = x + ((1.6453555072203998d0 * (a * (y * z))) + (1.6453555072203998d0 * (y * 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 + (y * 3.13060547623);
double tmp;
if (z <= -4.2e+111) {
tmp = t_1;
} else if (z <= -5.4e-8) {
tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z);
} else if (z <= 720.0) {
tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b)));
} 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.2e+111: tmp = t_1 elif z <= -5.4e-8: tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z) elif z <= 720.0: tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b))) 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.2e+111) tmp = t_1; elseif (z <= -5.4e-8) tmp = Float64(x + Float64(Float64(Float64(y * 11.1667541262) + Float64(Float64(y / z) * Float64(t + -170.12200846348443))) / z)); elseif (z <= 720.0) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(a * Float64(y * z))) + Float64(1.6453555072203998 * Float64(y * b)))); 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.2e+111) tmp = t_1; elseif (z <= -5.4e-8) tmp = x + (((y * 11.1667541262) + ((y / z) * (t + -170.12200846348443))) / z); elseif (z <= 720.0) tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b))); 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.2e+111], t$95$1, If[LessEqual[z, -5.4e-8], N[(x + N[(N[(N[(y * 11.1667541262), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * N[(t + -170.12200846348443), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 720.0], N[(x + N[(N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.4 \cdot 10^{-8}:\\
\;\;\;\;x + \frac{y \cdot 11.1667541262 + \frac{y}{z} \cdot \left(t + -170.12200846348443\right)}{z}\\
\mathbf{elif}\;z \leq 720:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right) + 1.6453555072203998 \cdot \left(y \cdot b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.1999999999999999e111 or 720 < z Initial program 12.0%
Simplified16.1%
Taylor expanded in z around inf 95.0%
+-commutative95.0%
*-commutative95.0%
Simplified95.0%
if -4.1999999999999999e111 < z < -5.40000000000000005e-8Initial program 45.9%
Taylor expanded in z around 0 46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in z around inf 68.7%
associate--l+68.7%
*-commutative68.7%
associate-/l*71.8%
distribute-rgt-out--71.8%
sub-neg71.8%
metadata-eval71.8%
Simplified71.8%
if -5.40000000000000005e-8 < z < 720Initial program 99.7%
Taylor expanded in z around 0 82.9%
Taylor expanded in a around inf 93.0%
Final simplification91.3%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -5.5e-8) (not (<= z 720.0)))
(+ x (* y 3.13060547623))
(+
x
(+ (* 1.6453555072203998 (* a (* y z))) (* 1.6453555072203998 (* y b))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.5e-8) || !(z <= 720.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b)));
}
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.5d-8)) .or. (.not. (z <= 720.0d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + ((1.6453555072203998d0 * (a * (y * z))) + (1.6453555072203998d0 * (y * b)))
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.5e-8) || !(z <= 720.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.5e-8) or not (z <= 720.0): tmp = x + (y * 3.13060547623) else: tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.5e-8) || !(z <= 720.0)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(a * Float64(y * z))) + Float64(1.6453555072203998 * Float64(y * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -5.5e-8) || ~((z <= 720.0))) tmp = x + (y * 3.13060547623); else tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.5e-8], N[Not[LessEqual[z, 720.0]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{-8} \lor \neg \left(z \leq 720\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right) + 1.6453555072203998 \cdot \left(y \cdot b\right)\right)\\
\end{array}
\end{array}
if z < -5.5000000000000003e-8 or 720 < z Initial program 19.3%
Simplified25.1%
Taylor expanded in z around inf 86.6%
+-commutative86.6%
*-commutative86.6%
Simplified86.6%
if -5.5000000000000003e-8 < z < 720Initial program 99.7%
Taylor expanded in z around 0 82.9%
Taylor expanded in a around inf 93.0%
Final simplification89.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.096) (not (<= z 1.2e+15))) (+ x (* y 3.13060547623)) (+ 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 <= -0.096) || !(z <= 1.2e+15)) {
tmp = x + (y * 3.13060547623);
} 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 <= (-0.096d0)) .or. (.not. (z <= 1.2d+15))) then
tmp = x + (y * 3.13060547623d0)
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 <= -0.096) || !(z <= 1.2e+15)) {
tmp = x + (y * 3.13060547623);
} 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 <= -0.096) or not (z <= 1.2e+15): tmp = x + (y * 3.13060547623) 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 <= -0.096) || !(z <= 1.2e+15)) tmp = Float64(x + Float64(y * 3.13060547623)); 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 <= -0.096) || ~((z <= 1.2e+15))) tmp = x + (y * 3.13060547623); 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, -0.096], N[Not[LessEqual[z, 1.2e+15]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $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 -0.096 \lor \neg \left(z \leq 1.2 \cdot 10^{+15}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\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 < -0.096000000000000002 or 1.2e15 < z Initial program 15.8%
Simplified21.9%
Taylor expanded in z around inf 87.8%
+-commutative87.8%
*-commutative87.8%
Simplified87.8%
if -0.096000000000000002 < z < 1.2e15Initial program 99.7%
Taylor expanded in z around 0 81.2%
Taylor expanded in b around inf 79.2%
Final simplification83.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.115) (not (<= z 380.0))) (+ x (* y 3.13060547623)) (+ x (* 1.6453555072203998 (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.115) || !(z <= 380.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (1.6453555072203998 * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-0.115d0)) .or. (.not. (z <= 380.0d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (1.6453555072203998d0 * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.115) || !(z <= 380.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (1.6453555072203998 * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.115) or not (z <= 380.0): tmp = x + (y * 3.13060547623) else: tmp = x + (1.6453555072203998 * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.115) || !(z <= 380.0)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.115) || ~((z <= 380.0))) tmp = x + (y * 3.13060547623); else tmp = x + (1.6453555072203998 * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.115], N[Not[LessEqual[z, 380.0]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.115 \lor \neg \left(z \leq 380\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\end{array}
if z < -0.115000000000000005 or 380 < z Initial program 18.2%
Simplified24.1%
Taylor expanded in z around inf 87.1%
+-commutative87.1%
*-commutative87.1%
Simplified87.1%
if -0.115000000000000005 < z < 380Initial program 99.7%
Simplified99.7%
Taylor expanded in z around 0 79.4%
+-commutative79.4%
*-commutative79.4%
Simplified79.4%
Final simplification83.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.026) (not (<= z 15.5))) (+ 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 <= -0.026) || !(z <= 15.5)) {
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 <= (-0.026d0)) .or. (.not. (z <= 15.5d0))) 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 <= -0.026) || !(z <= 15.5)) {
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 <= -0.026) or not (z <= 15.5): 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 <= -0.026) || !(z <= 15.5)) 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 <= -0.026) || ~((z <= 15.5))) 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, -0.026], N[Not[LessEqual[z, 15.5]], $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 -0.026 \lor \neg \left(z \leq 15.5\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -0.0259999999999999988 or 15.5 < z Initial program 18.2%
Simplified24.1%
Taylor expanded in z around inf 87.1%
+-commutative87.1%
*-commutative87.1%
Simplified87.1%
if -0.0259999999999999988 < z < 15.5Initial program 99.7%
Taylor expanded in z around 0 82.3%
Taylor expanded in b around inf 79.3%
Taylor expanded in z around 0 79.3%
*-commutative79.3%
Simplified79.3%
Final simplification83.6%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.8e-110) x (if (<= x 7.5e-152) (* y 3.13060547623) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.8e-110) {
tmp = x;
} else if (x <= 7.5e-152) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
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 (x <= (-2.8d-110)) then
tmp = x
else if (x <= 7.5d-152) then
tmp = y * 3.13060547623d0
else
tmp = x
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 (x <= -2.8e-110) {
tmp = x;
} else if (x <= 7.5e-152) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -2.8e-110: tmp = x elif x <= 7.5e-152: tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.8e-110) tmp = x; elseif (x <= 7.5e-152) tmp = Float64(y * 3.13060547623); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -2.8e-110) tmp = x; elseif (x <= 7.5e-152) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.8e-110], x, If[LessEqual[x, 7.5e-152], N[(y * 3.13060547623), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.8 \cdot 10^{-110}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-152}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.8e-110 or 7.5e-152 < x Initial program 56.7%
Simplified60.1%
Taylor expanded in y around 0 63.4%
if -2.8e-110 < x < 7.5e-152Initial program 49.3%
Simplified52.1%
Taylor expanded in z around inf 52.8%
Taylor expanded in y around inf 42.7%
Final simplification58.2%
(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 54.8%
Simplified58.1%
Taylor expanded in z around inf 67.2%
+-commutative67.2%
*-commutative67.2%
Simplified67.2%
Final simplification67.2%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 54.8%
Simplified58.1%
Taylor expanded in y around 0 51.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 2024091
(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))))