
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -6.5e+45)
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))
(if (<= z 210000.0)
(+
x
(/
(*
y
(fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)))
(fma
y
(- 3.13060547623 (pow (cbrt (/ (- 36.52704169880642 t_1) z)) 3.0))
x)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -6.5e+45) {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
} else if (z <= 210000.0) {
tmp = x + ((y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771));
} else {
tmp = fma(y, (3.13060547623 - pow(cbrt(((36.52704169880642 - t_1) / z)), 3.0)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -6.5e+45) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); elseif (z <= 210000.0) tmp = Float64(x + Float64(Float64(y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771))); else tmp = fma(y, Float64(3.13060547623 - (cbrt(Float64(Float64(36.52704169880642 - t_1) / z)) ^ 3.0)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -6.5e+45], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 210000.0], N[(x + N[(N[(y * N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(3.13060547623 - N[Power[N[Power[N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] / z), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+45}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 210000:\\
\;\;\;\;x + \frac{y \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 - {\left(\sqrt[3]{\frac{36.52704169880642 - t\_1}{z}}\right)}^{3}, x\right)\\
\end{array}
\end{array}
if z < -6.50000000000000034e45Initial program 0.2%
Simplified2.0%
Taylor expanded in z around -inf 99.9%
mul-1-neg99.9%
unsub-neg99.9%
mul-1-neg99.9%
unsub-neg99.9%
+-commutative99.9%
Simplified99.9%
fma-undefine99.9%
Applied egg-rr99.9%
if -6.50000000000000034e45 < z < 2.1e5Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
if 2.1e5 < z Initial program 13.3%
Simplified17.2%
Taylor expanded in z around -inf 97.1%
mul-1-neg97.1%
unsub-neg97.1%
mul-1-neg97.1%
unsub-neg97.1%
+-commutative97.1%
Simplified97.1%
add-cube-cbrt97.1%
pow397.1%
Applied egg-rr97.1%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
y
(/
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)
(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)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
} else {
tmp = 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)) <= Inf) tmp = fma(y, Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); else tmp = 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], Infinity], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(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 \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\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))) < +inf.0Initial program 95.5%
Simplified97.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around -inf 99.9%
mul-1-neg99.9%
unsub-neg99.9%
mul-1-neg99.9%
unsub-neg99.9%
+-commutative99.9%
Simplified99.9%
Final simplification98.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -7.5e+44)
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))
(if (<= z 210000.0)
(+
(/
(*
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 (pow (cbrt (/ (- 36.52704169880642 t_1) z)) 3.0))
x)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -7.5e+44) {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
} else if (z <= 210000.0) {
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 - pow(cbrt(((36.52704169880642 - t_1) / z)), 3.0)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -7.5e+44) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); elseif (z <= 210000.0) 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, Float64(3.13060547623 - (cbrt(Float64(Float64(36.52704169880642 - t_1) / z)) ^ 3.0)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -7.5e+44], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 210000.0], 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 * N[(3.13060547623 - N[Power[N[Power[N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] / z), $MachinePrecision], 1/3], $MachinePrecision], 3.0], $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -7.5 \cdot 10^{+44}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 210000:\\
\;\;\;\;\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 - {\left(\sqrt[3]{\frac{36.52704169880642 - t\_1}{z}}\right)}^{3}, x\right)\\
\end{array}
\end{array}
if z < -7.50000000000000027e44Initial program 0.2%
Simplified2.0%
Taylor expanded in z around -inf 99.9%
mul-1-neg99.9%
unsub-neg99.9%
mul-1-neg99.9%
unsub-neg99.9%
+-commutative99.9%
Simplified99.9%
fma-undefine99.9%
Applied egg-rr99.9%
if -7.50000000000000027e44 < z < 2.1e5Initial program 99.7%
if 2.1e5 < z Initial program 13.3%
Simplified17.2%
Taylor expanded in z around -inf 97.1%
mul-1-neg97.1%
unsub-neg97.1%
mul-1-neg97.1%
unsub-neg97.1%
+-commutative97.1%
Simplified97.1%
add-cube-cbrt97.1%
pow397.1%
Applied egg-rr97.1%
Final simplification99.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))))
(if (<= z -6.4e+44)
(+ x (* y t_1))
(if (<= z 210000.0)
(+
(/
(*
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 t_1 x)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z);
double tmp;
if (z <= -6.4e+44) {
tmp = x + (y * t_1);
} else if (z <= 210000.0) {
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, t_1, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)) tmp = 0.0 if (z <= -6.4e+44) tmp = Float64(x + Float64(y * t_1)); elseif (z <= 210000.0) 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, t_1, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.4e+44], N[(x + N[(y * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 210000.0], 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 * t$95$1 + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\\
\mathbf{if}\;z \leq -6.4 \cdot 10^{+44}:\\
\;\;\;\;x + y \cdot t\_1\\
\mathbf{elif}\;z \leq 210000:\\
\;\;\;\;\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, t\_1, x\right)\\
\end{array}
\end{array}
if z < -6.40000000000000009e44Initial program 0.2%
Simplified2.0%
Taylor expanded in z around -inf 99.9%
mul-1-neg99.9%
unsub-neg99.9%
mul-1-neg99.9%
unsub-neg99.9%
+-commutative99.9%
Simplified99.9%
fma-undefine99.9%
Applied egg-rr99.9%
if -6.40000000000000009e44 < z < 2.1e5Initial program 99.7%
if 2.1e5 < z Initial program 13.3%
Simplified17.2%
Taylor expanded in z around -inf 97.1%
mul-1-neg97.1%
unsub-neg97.1%
mul-1-neg97.1%
unsub-neg97.1%
+-commutative97.1%
Simplified97.1%
Final simplification99.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.8e+45) (not (<= z 210000.0)))
(+
x
(*
y
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))))
(+
(/
(*
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 <= -1.8e+45) || !(z <= 210000.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} 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 <= (-1.8d+45)) .or. (.not. (z <= 210000.0d0))) then
tmp = x + (y * (3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)))
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 <= -1.8e+45) || !(z <= 210000.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} 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 <= -1.8e+45) or not (z <= 210000.0): tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))) 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 <= -1.8e+45) || !(z <= 210000.0)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)))); 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 <= -1.8e+45) || ~((z <= 210000.0))) tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))); 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, -1.8e+45], N[Not[LessEqual[z, 210000.0]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $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 -1.8 \cdot 10^{+45} \lor \neg \left(z \leq 210000\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\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 < -1.8e45 or 2.1e5 < z Initial program 7.9%
Simplified11.0%
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%
fma-undefine98.2%
Applied egg-rr98.2%
if -1.8e45 < z < 2.1e5Initial program 99.7%
Final simplification99.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6.4e+44) (not (<= z 180000.0)))
(+
x
(*
y
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))))
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.4e+44) || !(z <= 180000.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-6.4d+44)) .or. (.not. (z <= 180000.0d0))) then
tmp = x + (y * (3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)))
else
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.4e+44) || !(z <= 180000.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.4e+44) or not (z <= 180000.0): tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))) else: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.4e+44) || !(z <= 180000.0)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.4e+44) || ~((z <= 180000.0))) tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))); else tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.4e+44], N[Not[LessEqual[z, 180000.0]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+44} \lor \neg \left(z \leq 180000\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\end{array}
\end{array}
if z < -6.40000000000000009e44 or 1.8e5 < z Initial program 7.9%
Simplified11.0%
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%
fma-undefine98.2%
Applied egg-rr98.2%
if -6.40000000000000009e44 < z < 1.8e5Initial program 99.7%
Taylor expanded in z around 0 99.2%
*-commutative99.2%
Simplified99.2%
Final simplification98.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -210.0) (not (<= z 20000.0)))
(+
x
(*
y
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))))
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -210.0) || !(z <= 20000.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-210.0d0)) .or. (.not. (z <= 20000.0d0))) then
tmp = x + (y * (3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)))
else
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -210.0) || !(z <= 20000.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -210.0) or not (z <= 20000.0): tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))) else: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -210.0) || !(z <= 20000.0)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -210.0) || ~((z <= 20000.0))) tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))); else tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -210.0], N[Not[LessEqual[z, 20000.0]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -210 \lor \neg \left(z \leq 20000\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -210 or 2e4 < z Initial program 12.3%
Simplified15.2%
Taylor expanded in z around -inf 96.8%
mul-1-neg96.8%
unsub-neg96.8%
mul-1-neg96.8%
unsub-neg96.8%
+-commutative96.8%
Simplified96.8%
fma-undefine96.8%
Applied egg-rr96.8%
if -210 < z < 2e4Initial program 99.7%
Taylor expanded in z around 0 98.8%
*-commutative98.8%
Simplified98.8%
Final simplification97.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* a (* 1.6453555072203998 (+ (* y z) (/ (* y b) a)))))))
(if (<= z -6.4e+44)
(+ x (* y 3.13060547623))
(if (<= z -1.55e-114)
t_1
(if (<= z 4.8e-271)
(+
x
(* b (+ (* (* y z) -32.324150453290734) (* y 1.6453555072203998))))
(if (<= z 116000.0)
t_1
(+ x (+ (* y 3.13060547623) (* -36.52704169880642 (/ y z))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (a * (1.6453555072203998 * ((y * z) + ((y * b) / a))));
double tmp;
if (z <= -6.4e+44) {
tmp = x + (y * 3.13060547623);
} else if (z <= -1.55e-114) {
tmp = t_1;
} else if (z <= 4.8e-271) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
} else if (z <= 116000.0) {
tmp = t_1;
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (a * (1.6453555072203998d0 * ((y * z) + ((y * b) / a))))
if (z <= (-6.4d+44)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= (-1.55d-114)) then
tmp = t_1
else if (z <= 4.8d-271) then
tmp = x + (b * (((y * z) * (-32.324150453290734d0)) + (y * 1.6453555072203998d0)))
else if (z <= 116000.0d0) then
tmp = t_1
else
tmp = x + ((y * 3.13060547623d0) + ((-36.52704169880642d0) * (y / z)))
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 + (a * (1.6453555072203998 * ((y * z) + ((y * b) / a))));
double tmp;
if (z <= -6.4e+44) {
tmp = x + (y * 3.13060547623);
} else if (z <= -1.55e-114) {
tmp = t_1;
} else if (z <= 4.8e-271) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
} else if (z <= 116000.0) {
tmp = t_1;
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (a * (1.6453555072203998 * ((y * z) + ((y * b) / a)))) tmp = 0 if z <= -6.4e+44: tmp = x + (y * 3.13060547623) elif z <= -1.55e-114: tmp = t_1 elif z <= 4.8e-271: tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))) elif z <= 116000.0: tmp = t_1 else: tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(a * Float64(1.6453555072203998 * Float64(Float64(y * z) + Float64(Float64(y * b) / a))))) tmp = 0.0 if (z <= -6.4e+44) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= -1.55e-114) tmp = t_1; elseif (z <= 4.8e-271) tmp = Float64(x + Float64(b * Float64(Float64(Float64(y * z) * -32.324150453290734) + Float64(y * 1.6453555072203998)))); elseif (z <= 116000.0) tmp = t_1; else tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(-36.52704169880642 * Float64(y / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (a * (1.6453555072203998 * ((y * z) + ((y * b) / a)))); tmp = 0.0; if (z <= -6.4e+44) tmp = x + (y * 3.13060547623); elseif (z <= -1.55e-114) tmp = t_1; elseif (z <= 4.8e-271) tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))); elseif (z <= 116000.0) tmp = t_1; else tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(a * N[(1.6453555072203998 * N[(N[(y * z), $MachinePrecision] + N[(N[(y * b), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.4e+44], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.55e-114], t$95$1, If[LessEqual[z, 4.8e-271], N[(x + N[(b * N[(N[(N[(y * z), $MachinePrecision] * -32.324150453290734), $MachinePrecision] + N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 116000.0], t$95$1, N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + a \cdot \left(1.6453555072203998 \cdot \left(y \cdot z + \frac{y \cdot b}{a}\right)\right)\\
\mathbf{if}\;z \leq -6.4 \cdot 10^{+44}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-271}:\\
\;\;\;\;x + b \cdot \left(\left(y \cdot z\right) \cdot -32.324150453290734 + y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 116000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + -36.52704169880642 \cdot \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -6.40000000000000009e44Initial program 0.2%
Simplified2.0%
Taylor expanded in z around inf 96.5%
+-commutative96.5%
*-commutative96.5%
Simplified96.5%
if -6.40000000000000009e44 < z < -1.55e-114 or 4.8000000000000005e-271 < z < 116000Initial program 99.7%
Taylor expanded in z around 0 76.4%
Taylor expanded in a around inf 87.8%
*-commutative87.8%
Simplified87.8%
Taylor expanded in a around inf 86.7%
distribute-lft-out86.7%
Simplified86.7%
if -1.55e-114 < z < 4.8000000000000005e-271Initial program 99.8%
Taylor expanded in z around 0 88.3%
Taylor expanded in b around inf 94.4%
if 116000 < z Initial program 13.3%
Simplified17.2%
Taylor expanded in z around -inf 97.1%
mul-1-neg97.1%
unsub-neg97.1%
mul-1-neg97.1%
unsub-neg97.1%
+-commutative97.1%
Simplified97.1%
Taylor expanded in z around inf 91.6%
Final simplification91.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6.4e+44) (not (<= z 30.0)))
(+
x
(*
y
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))))
(+
x
(*
y
(+
(* b 1.6453555072203998)
(* z (- (* a 1.6453555072203998) (* b 32.324150453290734))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.4e+44) || !(z <= 30.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + (y * ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734)))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-6.4d+44)) .or. (.not. (z <= 30.0d0))) then
tmp = x + (y * (3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)))
else
tmp = x + (y * ((b * 1.6453555072203998d0) + (z * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0)))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.4e+44) || !(z <= 30.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + (y * ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.4e+44) or not (z <= 30.0): tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))) else: tmp = x + (y * ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.4e+44) || !(z <= 30.0)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)))); else tmp = Float64(x + Float64(y * Float64(Float64(b * 1.6453555072203998) + Float64(z * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.4e+44) || ~((z <= 30.0))) tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))); else tmp = x + (y * ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.4e+44], N[Not[LessEqual[z, 30.0]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+44} \lor \neg \left(z \leq 30\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998 + z \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right)\right)\\
\end{array}
\end{array}
if z < -6.40000000000000009e44 or 30 < z Initial program 7.9%
Simplified11.0%
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%
fma-undefine98.2%
Applied egg-rr98.2%
if -6.40000000000000009e44 < z < 30Initial program 99.7%
Taylor expanded in z around 0 80.8%
Taylor expanded in y around 0 92.3%
Final simplification95.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6.4e+44) (not (<= z 6500.0)))
(+
x
(*
y
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))))
(+
x
(+ (* 1.6453555072203998 (* y b)) (* 1.6453555072203998 (* a (* y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.4e+44) || !(z <= 6500.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-6.4d+44)) .or. (.not. (z <= 6500.0d0))) then
tmp = x + (y * (3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)))
else
tmp = x + ((1.6453555072203998d0 * (y * b)) + (1.6453555072203998d0 * (a * (y * z))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.4e+44) || !(z <= 6500.0)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.4e+44) or not (z <= 6500.0): tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))) else: tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.4e+44) || !(z <= 6500.0)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)))); else tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(1.6453555072203998 * Float64(a * Float64(y * z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.4e+44) || ~((z <= 6500.0))) tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))); else tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.4e+44], N[Not[LessEqual[z, 6500.0]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+44} \lor \neg \left(z \leq 6500\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + 1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if z < -6.40000000000000009e44 or 6500 < z Initial program 7.9%
Simplified11.0%
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%
fma-undefine98.2%
Applied egg-rr98.2%
if -6.40000000000000009e44 < z < 6500Initial program 99.7%
Taylor expanded in z around 0 80.8%
Taylor expanded in a around inf 90.2%
*-commutative90.2%
Simplified90.2%
Final simplification94.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -6.5e+44)
(+ x (* y 3.13060547623))
(if (<= z 210000.0)
(+
x
(+ (* 1.6453555072203998 (* y b)) (* 1.6453555072203998 (* a (* y z)))))
(+ x (+ (* y 3.13060547623) (* -36.52704169880642 (/ y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.5e+44) {
tmp = x + (y * 3.13060547623);
} else if (z <= 210000.0) {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z))));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-6.5d+44)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 210000.0d0) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (1.6453555072203998d0 * (a * (y * z))))
else
tmp = x + ((y * 3.13060547623d0) + ((-36.52704169880642d0) * (y / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -6.5e+44) {
tmp = x + (y * 3.13060547623);
} else if (z <= 210000.0) {
tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z))));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -6.5e+44: tmp = x + (y * 3.13060547623) elif z <= 210000.0: tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))) else: tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -6.5e+44) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 210000.0) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(1.6453555072203998 * Float64(a * Float64(y * z))))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(-36.52704169880642 * Float64(y / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -6.5e+44) tmp = x + (y * 3.13060547623); elseif (z <= 210000.0) tmp = x + ((1.6453555072203998 * (y * b)) + (1.6453555072203998 * (a * (y * z)))); else tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -6.5e+44], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 210000.0], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.5 \cdot 10^{+44}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 210000:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + 1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + -36.52704169880642 \cdot \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -6.50000000000000018e44Initial program 0.2%
Simplified2.0%
Taylor expanded in z around inf 96.5%
+-commutative96.5%
*-commutative96.5%
Simplified96.5%
if -6.50000000000000018e44 < z < 2.1e5Initial program 99.7%
Taylor expanded in z around 0 80.8%
Taylor expanded in a around inf 90.2%
*-commutative90.2%
Simplified90.2%
if 2.1e5 < z Initial program 13.3%
Simplified17.2%
Taylor expanded in z around -inf 97.1%
mul-1-neg97.1%
unsub-neg97.1%
mul-1-neg97.1%
unsub-neg97.1%
+-commutative97.1%
Simplified97.1%
Taylor expanded in z around inf 91.6%
Final simplification91.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= y -8e+159)
(and (not (<= y -1.08e+122))
(or (<= y -6.2e-25) (not (<= y 4.8e-58)))))
(* y 3.13060547623)
x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -8e+159) || (!(y <= -1.08e+122) && ((y <= -6.2e-25) || !(y <= 4.8e-58)))) {
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 ((y <= (-8d+159)) .or. (.not. (y <= (-1.08d+122))) .and. (y <= (-6.2d-25)) .or. (.not. (y <= 4.8d-58))) 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 ((y <= -8e+159) || (!(y <= -1.08e+122) && ((y <= -6.2e-25) || !(y <= 4.8e-58)))) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -8e+159) or (not (y <= -1.08e+122) and ((y <= -6.2e-25) or not (y <= 4.8e-58))): tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -8e+159) || (!(y <= -1.08e+122) && ((y <= -6.2e-25) || !(y <= 4.8e-58)))) 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 ((y <= -8e+159) || (~((y <= -1.08e+122)) && ((y <= -6.2e-25) || ~((y <= 4.8e-58))))) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -8e+159], And[N[Not[LessEqual[y, -1.08e+122]], $MachinePrecision], Or[LessEqual[y, -6.2e-25], N[Not[LessEqual[y, 4.8e-58]], $MachinePrecision]]]], N[(y * 3.13060547623), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{+159} \lor \neg \left(y \leq -1.08 \cdot 10^{+122}\right) \land \left(y \leq -6.2 \cdot 10^{-25} \lor \neg \left(y \leq 4.8 \cdot 10^{-58}\right)\right):\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -7.9999999999999994e159 or -1.0800000000000001e122 < y < -6.19999999999999989e-25 or 4.8000000000000001e-58 < y Initial program 58.0%
Simplified60.7%
Taylor expanded in z around inf 46.9%
+-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in y around inf 46.8%
+-commutative46.8%
Simplified46.8%
Taylor expanded in y around inf 37.8%
*-commutative37.8%
Simplified37.8%
if -7.9999999999999994e159 < y < -1.0800000000000001e122 or -6.19999999999999989e-25 < y < 4.8000000000000001e-58Initial program 56.1%
Simplified56.1%
Taylor expanded in y around 0 77.0%
Final simplification56.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= y -1.8e+160)
(* y 3.13060547623)
(if (<= y -1.95e+132)
(* y (/ x y))
(if (or (<= y -9e-24) (not (<= y 4.8e-58))) (* y 3.13060547623) x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -1.8e+160) {
tmp = y * 3.13060547623;
} else if (y <= -1.95e+132) {
tmp = y * (x / y);
} else if ((y <= -9e-24) || !(y <= 4.8e-58)) {
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 (y <= (-1.8d+160)) then
tmp = y * 3.13060547623d0
else if (y <= (-1.95d+132)) then
tmp = y * (x / y)
else if ((y <= (-9d-24)) .or. (.not. (y <= 4.8d-58))) 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 (y <= -1.8e+160) {
tmp = y * 3.13060547623;
} else if (y <= -1.95e+132) {
tmp = y * (x / y);
} else if ((y <= -9e-24) || !(y <= 4.8e-58)) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -1.8e+160: tmp = y * 3.13060547623 elif y <= -1.95e+132: tmp = y * (x / y) elif (y <= -9e-24) or not (y <= 4.8e-58): tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -1.8e+160) tmp = Float64(y * 3.13060547623); elseif (y <= -1.95e+132) tmp = Float64(y * Float64(x / y)); elseif ((y <= -9e-24) || !(y <= 4.8e-58)) 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 (y <= -1.8e+160) tmp = y * 3.13060547623; elseif (y <= -1.95e+132) tmp = y * (x / y); elseif ((y <= -9e-24) || ~((y <= 4.8e-58))) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -1.8e+160], N[(y * 3.13060547623), $MachinePrecision], If[LessEqual[y, -1.95e+132], N[(y * N[(x / y), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[y, -9e-24], N[Not[LessEqual[y, 4.8e-58]], $MachinePrecision]], N[(y * 3.13060547623), $MachinePrecision], x]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.8 \cdot 10^{+160}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{elif}\;y \leq -1.95 \cdot 10^{+132}:\\
\;\;\;\;y \cdot \frac{x}{y}\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-24} \lor \neg \left(y \leq 4.8 \cdot 10^{-58}\right):\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.80000000000000011e160 or -1.95000000000000001e132 < y < -8.9999999999999995e-24 or 4.8000000000000001e-58 < y Initial program 58.0%
Simplified60.7%
Taylor expanded in z around inf 46.9%
+-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in y around inf 46.8%
+-commutative46.8%
Simplified46.8%
Taylor expanded in y around inf 37.8%
*-commutative37.8%
Simplified37.8%
if -1.80000000000000011e160 < y < -1.95000000000000001e132Initial program 88.9%
Simplified88.9%
Taylor expanded in z around inf 30.6%
+-commutative30.6%
*-commutative30.6%
Simplified30.6%
Taylor expanded in y around inf 30.6%
+-commutative30.6%
Simplified30.6%
Taylor expanded in x around inf 49.7%
if -8.9999999999999995e-24 < y < 4.8000000000000001e-58Initial program 53.5%
Simplified53.5%
Taylor expanded in y around 0 79.2%
Final simplification56.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.1e+26)
(+ x (* y 3.13060547623))
(if (<= z 265000000000.0)
(+ x (* b (+ (* (* y z) -32.324150453290734) (* y 1.6453555072203998))))
(+ x (+ (* y 3.13060547623) (* -36.52704169880642 (/ y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.1e+26) {
tmp = x + (y * 3.13060547623);
} else if (z <= 265000000000.0) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-2.1d+26)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 265000000000.0d0) then
tmp = x + (b * (((y * z) * (-32.324150453290734d0)) + (y * 1.6453555072203998d0)))
else
tmp = x + ((y * 3.13060547623d0) + ((-36.52704169880642d0) * (y / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.1e+26) {
tmp = x + (y * 3.13060547623);
} else if (z <= 265000000000.0) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.1e+26: tmp = x + (y * 3.13060547623) elif z <= 265000000000.0: tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))) else: tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.1e+26) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 265000000000.0) tmp = Float64(x + Float64(b * Float64(Float64(Float64(y * z) * -32.324150453290734) + Float64(y * 1.6453555072203998)))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(-36.52704169880642 * Float64(y / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.1e+26) tmp = x + (y * 3.13060547623); elseif (z <= 265000000000.0) tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))); else tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.1e+26], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 265000000000.0], N[(x + N[(b * N[(N[(N[(y * z), $MachinePrecision] * -32.324150453290734), $MachinePrecision] + N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.1 \cdot 10^{+26}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 265000000000:\\
\;\;\;\;x + b \cdot \left(\left(y \cdot z\right) \cdot -32.324150453290734 + y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + -36.52704169880642 \cdot \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -2.1000000000000001e26Initial program 5.9%
Simplified7.7%
Taylor expanded in z around inf 93.0%
+-commutative93.0%
*-commutative93.0%
Simplified93.0%
if -2.1000000000000001e26 < z < 2.65e11Initial program 99.0%
Taylor expanded in z around 0 80.0%
Taylor expanded in b around inf 80.4%
if 2.65e11 < z Initial program 10.9%
Simplified15.0%
Taylor expanded in z around -inf 96.9%
mul-1-neg96.9%
unsub-neg96.9%
mul-1-neg96.9%
unsub-neg96.9%
+-commutative96.9%
Simplified96.9%
Taylor expanded in z around inf 92.7%
Final simplification86.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -7e+24)
(+ x (* y 3.13060547623))
(if (<= z 4.05e-10)
(+ x (* y (* b 1.6453555072203998)))
(+ x (+ (* y 3.13060547623) (* -36.52704169880642 (/ y z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7e+24) {
tmp = x + (y * 3.13060547623);
} else if (z <= 4.05e-10) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-7d+24)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 4.05d-10) then
tmp = x + (y * (b * 1.6453555072203998d0))
else
tmp = x + ((y * 3.13060547623d0) + ((-36.52704169880642d0) * (y / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7e+24) {
tmp = x + (y * 3.13060547623);
} else if (z <= 4.05e-10) {
tmp = x + (y * (b * 1.6453555072203998));
} else {
tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -7e+24: tmp = x + (y * 3.13060547623) elif z <= 4.05e-10: tmp = x + (y * (b * 1.6453555072203998)) else: tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -7e+24) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 4.05e-10) tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(-36.52704169880642 * Float64(y / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -7e+24) tmp = x + (y * 3.13060547623); elseif (z <= 4.05e-10) tmp = x + (y * (b * 1.6453555072203998)); else tmp = x + ((y * 3.13060547623) + (-36.52704169880642 * (y / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -7e+24], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.05e-10], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{+24}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 4.05 \cdot 10^{-10}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + -36.52704169880642 \cdot \frac{y}{z}\right)\\
\end{array}
\end{array}
if z < -7.0000000000000004e24Initial program 5.9%
Simplified7.7%
Taylor expanded in z around inf 93.0%
+-commutative93.0%
*-commutative93.0%
Simplified93.0%
if -7.0000000000000004e24 < z < 4.04999999999999997e-10Initial program 99.8%
Taylor expanded in z around 0 82.1%
associate-*r*82.2%
*-commutative82.2%
Simplified82.2%
if 4.04999999999999997e-10 < z Initial program 19.0%
Simplified22.7%
Taylor expanded in z around -inf 92.3%
mul-1-neg92.3%
unsub-neg92.3%
mul-1-neg92.3%
unsub-neg92.3%
+-commutative92.3%
Simplified92.3%
Taylor expanded in z around inf 87.0%
Final simplification85.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.32e+26) (not (<= z 4.8e-8))) (+ x (* y 3.13060547623)) (+ x (* y (* b 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.32e+26) || !(z <= 4.8e-8)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * (b * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.32d+26)) .or. (.not. (z <= 4.8d-8))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (y * (b * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.32e+26) || !(z <= 4.8e-8)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * (b * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.32e+26) or not (z <= 4.8e-8): tmp = x + (y * 3.13060547623) else: tmp = x + (y * (b * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.32e+26) || !(z <= 4.8e-8)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.32e+26) || ~((z <= 4.8e-8))) tmp = x + (y * 3.13060547623); else tmp = x + (y * (b * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.32e+26], N[Not[LessEqual[z, 4.8e-8]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.32 \cdot 10^{+26} \lor \neg \left(z \leq 4.8 \cdot 10^{-8}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.32e26 or 4.79999999999999997e-8 < z Initial program 12.3%
Simplified15.2%
Taylor expanded in z around inf 90.0%
+-commutative90.0%
*-commutative90.0%
Simplified90.0%
if -1.32e26 < z < 4.79999999999999997e-8Initial program 99.7%
Taylor expanded in z around 0 81.7%
associate-*r*81.7%
*-commutative81.7%
Simplified81.7%
Final simplification85.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -4.8e-76) (not (<= z 2e-8))) (+ x (* y 3.13060547623)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -4.8e-76) || !(z <= 2e-8)) {
tmp = x + (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 ((z <= (-4.8d-76)) .or. (.not. (z <= 2d-8))) then
tmp = x + (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 ((z <= -4.8e-76) || !(z <= 2e-8)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -4.8e-76) or not (z <= 2e-8): tmp = x + (y * 3.13060547623) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -4.8e-76) || !(z <= 2e-8)) tmp = Float64(x + 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 ((z <= -4.8e-76) || ~((z <= 2e-8))) tmp = x + (y * 3.13060547623); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -4.8e-76], N[Not[LessEqual[z, 2e-8]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.8 \cdot 10^{-76} \lor \neg \left(z \leq 2 \cdot 10^{-8}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -4.80000000000000026e-76 or 2e-8 < z Initial program 22.8%
Simplified25.4%
Taylor expanded in z around inf 84.3%
+-commutative84.3%
*-commutative84.3%
Simplified84.3%
if -4.80000000000000026e-76 < z < 2e-8Initial program 99.7%
Simplified99.7%
Taylor expanded in y around 0 42.9%
Final simplification65.9%
(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 57.0%
Simplified58.5%
Taylor expanded in y around 0 44.4%
(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 2024100
(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))))