
(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 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(/
y
(/
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)
(fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))))
(fma y 3.13060547623 x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + (y / (fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)));
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(y / Float64(fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)))); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(y / N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\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)}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 92.1%
associate-/l*97.4%
fma-def97.4%
fma-def97.4%
fma-def97.4%
fma-def97.4%
fma-def97.4%
fma-def97.4%
fma-def97.4%
Simplified97.4%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
associate-*l/0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around inf 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in x around 0 96.9%
*-commutative96.9%
fma-def96.9%
Simplified96.9%
Final simplification97.2%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(*
(/
y
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)))
(fma y 3.13060547623 x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + ((y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b));
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(Float64(y / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b))); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(N[(y / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{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)} \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 92.1%
associate-*l/95.6%
*-commutative95.6%
fma-def95.6%
*-commutative95.6%
fma-def95.6%
*-commutative95.6%
fma-def95.6%
*-commutative95.6%
fma-def95.6%
Simplified95.6%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
associate-*l/0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around inf 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in x around 0 96.9%
*-commutative96.9%
fma-def96.9%
Simplified96.9%
Final simplification96.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 (- INFINITY))
(+
x
(*
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(/ y (pow z 4.0))))
(if (<= t_1 INFINITY) (+ t_1 x) (fma y 3.13060547623 x)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= -((double) INFINITY)) {
tmp = x + (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) * (y / pow(z, 4.0)));
} else if (t_1 <= ((double) INFINITY)) {
tmp = t_1 + x;
} else {
tmp = fma(y, 3.13060547623, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= Float64(-Inf)) tmp = Float64(x + Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) * Float64(y / (z ^ 4.0)))); elseif (t_1 <= Inf) tmp = Float64(t_1 + x); else tmp = fma(y, 3.13060547623, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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]}, If[LessEqual[t$95$1, (-Infinity)], N[(x + N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] * N[(y / N[Power[z, 4.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, Infinity], N[(t$95$1 + x), $MachinePrecision], N[(y * 3.13060547623 + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t_1 \leq -\infty:\\
\;\;\;\;x + \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) \cdot \frac{y}{{z}^{4}}\\
\mathbf{elif}\;t_1 \leq \infty:\\
\;\;\;\;t_1 + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623, x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < -inf.0Initial program 61.0%
associate-*l/88.7%
*-commutative88.7%
fma-def88.7%
*-commutative88.7%
fma-def88.7%
*-commutative88.7%
fma-def88.7%
*-commutative88.7%
fma-def88.7%
Simplified88.7%
Taylor expanded in z around inf 88.7%
if -inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 95.8%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
associate-*l/0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
*-commutative0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around inf 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in x around 0 96.9%
*-commutative96.9%
fma-def96.9%
Simplified96.9%
Final simplification95.7%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.45e+58) (not (<= z 6.3e+35)))
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ (* t 0.10203362558171805) (* z z))))))
(+
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
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.45e+58) || !(z <= 6.3e+35)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + 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.45d+58)) .or. (.not. (z <= 6.3d+35))) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((t * 0.10203362558171805d0) / (z * z)))))
else
tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))) + 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.45e+58) || !(z <= 6.3e+35)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + 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.45e+58) or not (z <= 6.3e+35): tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))) else: tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + 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.45e+58) || !(z <= 6.3e+35)) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); else tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + 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.45e+58) || ~((z <= 6.3e+35))) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))); else tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + 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.45e+58], N[Not[LessEqual[z, 6.3e+35]], $MachinePrecision]], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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.45 \cdot 10^{+58} \lor \neg \left(z \leq 6.3 \cdot 10^{+35}\right):\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\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.45000000000000001e58 or 6.29999999999999969e35 < z Initial program 3.3%
associate-/l*8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
Simplified8.5%
Taylor expanded in z around inf 93.5%
associate-*r/93.5%
metadata-eval93.5%
mul-1-neg93.5%
*-commutative93.5%
unpow293.5%
Simplified93.5%
Taylor expanded in t around inf 93.5%
associate-*r/93.5%
unpow293.5%
Simplified93.5%
if -1.45000000000000001e58 < z < 6.29999999999999969e35Initial program 97.2%
Final simplification95.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623))))))))
(t_2
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ (* t 0.10203362558171805) (* z z))))))))
(if (<= z -5.9e+69)
t_2
(if (<= z -1350.0)
(+
x
(/
y
(/
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)
t_1)))
(if (<= z 3.2e+32)
(+ x (/ (* y (+ t_1 b)) (+ 0.607771387771 (* z 11.9400905721))))
t_2)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double t_2 = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
double tmp;
if (z <= -5.9e+69) {
tmp = t_2;
} else if (z <= -1350.0) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1));
} else if (z <= 3.2e+32) {
tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))
t_2 = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((t * 0.10203362558171805d0) / (z * z)))))
if (z <= (-5.9d+69)) then
tmp = t_2
else if (z <= (-1350.0d0)) then
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0) / t_1))
else if (z <= 3.2d+32) then
tmp = x + ((y * (t_1 + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double t_2 = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
double tmp;
if (z <= -5.9e+69) {
tmp = t_2;
} else if (z <= -1350.0) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1));
} else if (z <= 3.2e+32) {
tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))) t_2 = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))) tmp = 0 if z <= -5.9e+69: tmp = t_2 elif z <= -1350.0: tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1)) elif z <= 3.2e+32: tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * 11.9400905721))) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) t_2 = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))) tmp = 0.0 if (z <= -5.9e+69) tmp = t_2; elseif (z <= -1350.0) tmp = Float64(x + Float64(y / Float64(Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1))); elseif (z <= 3.2e+32) tmp = Float64(x + Float64(Float64(y * Float64(t_1 + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))); t_2 = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))); tmp = 0.0; if (z <= -5.9e+69) tmp = t_2; elseif (z <= -1350.0) tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1)); elseif (z <= 3.2e+32) tmp = x + ((y * (t_1 + b)) / (0.607771387771 + (z * 11.9400905721))); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.9e+69], t$95$2, If[LessEqual[z, -1350.0], N[(x + N[(y / N[(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] / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+32], N[(x + N[(N[(y * N[(t$95$1 + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\\
t_2 := x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{if}\;z \leq -5.9 \cdot 10^{+69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1350:\\
\;\;\;\;x + \frac{y}{\frac{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}{t_1}}\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+32}:\\
\;\;\;\;x + \frac{y \cdot \left(t_1 + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -5.90000000000000004e69 or 3.1999999999999999e32 < z Initial program 2.3%
associate-/l*6.8%
fma-def6.8%
fma-def6.8%
fma-def6.8%
fma-def6.8%
fma-def6.8%
fma-def6.8%
fma-def6.8%
Simplified6.8%
Taylor expanded in z around inf 94.3%
associate-*r/94.3%
metadata-eval94.3%
mul-1-neg94.3%
*-commutative94.3%
unpow294.3%
Simplified94.3%
Taylor expanded in t around inf 94.3%
associate-*r/94.3%
unpow294.3%
Simplified94.3%
if -5.90000000000000004e69 < z < -1350Initial program 59.4%
associate-/l*86.1%
fma-def86.1%
fma-def86.1%
fma-def86.1%
fma-def86.1%
fma-def86.1%
fma-def86.1%
fma-def86.1%
Simplified86.1%
Taylor expanded in b around 0 65.4%
if -1350 < z < 3.1999999999999999e32Initial program 99.7%
Taylor expanded in z around 0 97.6%
*-commutative97.6%
Simplified97.6%
Final simplification94.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1350.0) (not (<= z 3.7e+33)))
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ (* t 0.10203362558171805) (* z z))))))
(+
x
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1350.0) || !(z <= 3.7e+33)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + 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 <= (-1350.0d0)) .or. (.not. (z <= 3.7d+33))) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((t * 0.10203362558171805d0) / (z * z)))))
else
tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))) + 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 <= -1350.0) || !(z <= 3.7e+33)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1350.0) or not (z <= 3.7e+33): tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))) else: tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1350.0) || !(z <= 3.7e+33)) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + 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 <= -1350.0) || ~((z <= 3.7e+33))) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))); else tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1350.0], N[Not[LessEqual[z, 3.7e+33]], $MachinePrecision]], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $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 -1350 \lor \neg \left(z \leq 3.7 \cdot 10^{+33}\right):\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -1350 or 3.6999999999999999e33 < z Initial program 9.0%
associate-/l*16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
Simplified16.1%
Taylor expanded in z around inf 86.0%
associate-*r/86.0%
metadata-eval86.0%
mul-1-neg86.0%
*-commutative86.0%
unpow286.0%
Simplified86.0%
Taylor expanded in t around inf 86.0%
associate-*r/86.0%
unpow286.0%
Simplified86.0%
if -1350 < z < 3.6999999999999999e33Initial program 99.7%
Taylor expanded in z around 0 97.6%
*-commutative97.6%
Simplified97.6%
Final simplification92.2%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6.2e+58) (not (<= z 1.75e+33)))
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ (* t 0.10203362558171805) (* z z))))))
(+
x
(/
(* y (+ b (* z a)))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.2e+58) || !(z <= 1.75e+33)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-6.2d+58)) .or. (.not. (z <= 1.75d+33))) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((t * 0.10203362558171805d0) / (z * z)))))
else
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.2e+58) || !(z <= 1.75e+33)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.2e+58) or not (z <= 1.75e+33): tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))) else: tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.2e+58) || !(z <= 1.75e+33)) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -6.2e+58) || ~((z <= 1.75e+33))) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))); else tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.2e+58], N[Not[LessEqual[z, 1.75e+33]], $MachinePrecision]], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+58} \lor \neg \left(z \leq 1.75 \cdot 10^{+33}\right):\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\end{array}
\end{array}
if z < -6.1999999999999998e58 or 1.75000000000000005e33 < z Initial program 3.3%
associate-/l*8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
fma-def8.5%
Simplified8.5%
Taylor expanded in z around inf 93.5%
associate-*r/93.5%
metadata-eval93.5%
mul-1-neg93.5%
*-commutative93.5%
unpow293.5%
Simplified93.5%
Taylor expanded in t around inf 93.5%
associate-*r/93.5%
unpow293.5%
Simplified93.5%
if -6.1999999999999998e58 < z < 1.75000000000000005e33Initial program 97.2%
Taylor expanded in z around 0 87.2%
+-commutative87.2%
associate-*r*85.1%
*-commutative85.1%
associate-*r*89.1%
distribute-lft-out89.1%
*-commutative89.1%
Simplified89.1%
Final simplification91.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -27500000.0) (not (<= z 2e+34)))
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ (* t 0.10203362558171805) (* z z))))))
(+
x
(/
(* y (+ b (* z a)))
(+ 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 <= -27500000.0) || !(z <= 2e+34)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = x + ((y * (b + (z * a))) / (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 <= (-27500000.0d0)) .or. (.not. (z <= 2d+34))) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((t * 0.10203362558171805d0) / (z * z)))))
else
tmp = x + ((y * (b + (z * a))) / (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 <= -27500000.0) || !(z <= 2e+34)) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -27500000.0) or not (z <= 2e+34): tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))) else: tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -27500000.0) || !(z <= 2e+34)) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / 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 <= -27500000.0) || ~((z <= 2e+34))) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))); else tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -27500000.0], N[Not[LessEqual[z, 2e+34]], $MachinePrecision]], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $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 -27500000 \lor \neg \left(z \leq 2 \cdot 10^{+34}\right):\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\end{array}
\end{array}
if z < -2.75e7 or 1.99999999999999989e34 < z Initial program 8.3%
associate-/l*15.4%
fma-def15.4%
fma-def15.4%
fma-def15.4%
fma-def15.4%
fma-def15.4%
fma-def15.4%
fma-def15.4%
Simplified15.4%
Taylor expanded in z around inf 86.7%
associate-*r/86.7%
metadata-eval86.7%
mul-1-neg86.7%
*-commutative86.7%
unpow286.7%
Simplified86.7%
Taylor expanded in t around inf 86.7%
associate-*r/86.7%
unpow286.7%
Simplified86.7%
if -2.75e7 < z < 1.99999999999999989e34Initial program 99.7%
Taylor expanded in z around 0 91.1%
Taylor expanded in z around 0 89.7%
*-commutative89.7%
Simplified89.7%
Taylor expanded in y around 0 91.8%
Final simplification89.4%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -210000000.0) (not (<= z 880000.0)))
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(+
x
(*
y
(+
(* z (- (* a 1.6453555072203998) (* b 32.324150453290734)))
(* b 1.6453555072203998))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -210000000.0) || !(z <= 880000.0)) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (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 <= (-210000000.0d0)) .or. (.not. (z <= 880000.0d0))) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else
tmp = x + (y * ((z * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0))) + (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 <= -210000000.0) || !(z <= 880000.0)) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -210000000.0) or not (z <= 880000.0): tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) else: tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -210000000.0) || !(z <= 880000.0)) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); else tmp = Float64(x + Float64(y * Float64(Float64(z * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734))) + Float64(b * 1.6453555072203998)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -210000000.0) || ~((z <= 880000.0))) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); else tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -210000000.0], N[Not[LessEqual[z, 880000.0]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -210000000 \lor \neg \left(z \leq 880000\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right) + b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -2.1e8 or 8.8e5 < z Initial program 11.3%
associate-*l/16.6%
*-commutative16.6%
fma-def16.6%
*-commutative16.6%
fma-def16.6%
*-commutative16.6%
fma-def16.6%
*-commutative16.6%
fma-def16.6%
Simplified16.6%
Taylor expanded in z around -inf 84.2%
+-commutative84.2%
mul-1-neg84.2%
unsub-neg84.2%
*-commutative84.2%
distribute-rgt-out--84.2%
metadata-eval84.2%
Simplified84.2%
Taylor expanded in y around 0 84.2%
associate-*r/84.2%
metadata-eval84.2%
Simplified84.2%
if -2.1e8 < z < 8.8e5Initial program 99.7%
associate-*l/99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in z around 0 83.8%
Taylor expanded in y around 0 92.7%
Final simplification88.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -5400000000.0)
(+
x
(/
y
(+
(/ 3.7269864963038164 z)
(- 0.31942702700572795 (/ (* t 0.10203362558171805) (* z z))))))
(if (<= z 5800000.0)
(+
x
(*
y
(+
(* z (- (* a 1.6453555072203998) (* b 32.324150453290734)))
(* b 1.6453555072203998))))
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -5400000000.0) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else if (z <= 5800000.0) {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998)));
} else {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / 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 <= (-5400000000.0d0)) then
tmp = x + (y / ((3.7269864963038164d0 / z) + (0.31942702700572795d0 - ((t * 0.10203362558171805d0) / (z * z)))))
else if (z <= 5800000.0d0) then
tmp = x + (y * ((z * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0))) + (b * 1.6453555072203998d0)))
else
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / 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 <= -5400000000.0) {
tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z)))));
} else if (z <= 5800000.0) {
tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998)));
} else {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -5400000000.0: tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))) elif z <= 5800000.0: tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))) else: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -5400000000.0) tmp = Float64(x + Float64(y / Float64(Float64(3.7269864963038164 / z) + Float64(0.31942702700572795 - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); elseif (z <= 5800000.0) tmp = Float64(x + Float64(y * Float64(Float64(z * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734))) + Float64(b * 1.6453555072203998)))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -5400000000.0) tmp = x + (y / ((3.7269864963038164 / z) + (0.31942702700572795 - ((t * 0.10203362558171805) / (z * z))))); elseif (z <= 5800000.0) tmp = x + (y * ((z * ((a * 1.6453555072203998) - (b * 32.324150453290734))) + (b * 1.6453555072203998))); else tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -5400000000.0], N[(x + N[(y / N[(N[(3.7269864963038164 / z), $MachinePrecision] + N[(0.31942702700572795 - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5800000.0], N[(x + N[(y * N[(N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5400000000:\\
\;\;\;\;x + \frac{y}{\frac{3.7269864963038164}{z} + \left(0.31942702700572795 - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{elif}\;z \leq 5800000:\\
\;\;\;\;x + y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right) + b \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -5.4e9Initial program 11.7%
associate-/l*19.1%
fma-def19.1%
fma-def19.1%
fma-def19.1%
fma-def19.1%
fma-def19.1%
fma-def19.1%
fma-def19.1%
Simplified19.1%
Taylor expanded in z around inf 81.3%
associate-*r/81.3%
metadata-eval81.3%
mul-1-neg81.3%
*-commutative81.3%
unpow281.3%
Simplified81.3%
Taylor expanded in t around inf 81.3%
associate-*r/81.3%
unpow281.3%
Simplified81.3%
if -5.4e9 < z < 5.8e6Initial program 99.7%
associate-*l/99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
*-commutative99.0%
fma-def99.0%
Simplified99.0%
Taylor expanded in z around 0 83.8%
Taylor expanded in y around 0 92.7%
if 5.8e6 < z Initial program 10.8%
associate-*l/15.5%
*-commutative15.5%
fma-def15.5%
*-commutative15.5%
fma-def15.5%
*-commutative15.5%
fma-def15.5%
*-commutative15.5%
fma-def15.5%
Simplified15.5%
Taylor expanded in z around -inf 87.4%
+-commutative87.4%
mul-1-neg87.4%
unsub-neg87.4%
*-commutative87.4%
distribute-rgt-out--87.4%
metadata-eval87.4%
Simplified87.4%
Taylor expanded in y around 0 87.4%
associate-*r/87.4%
metadata-eval87.4%
Simplified87.4%
Final simplification88.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3500000000.0)
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 4.3e+32)
(+
x
(+ (* 1.6453555072203998 (* y b)) (* z (* 1.6453555072203998 (* y a)))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3500000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 4.3e+32) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * (1.6453555072203998 * (y * a))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-3500000000.0d0)) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else if (z <= 4.3d+32) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (z * (1.6453555072203998d0 * (y * a))))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3500000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 4.3e+32) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * (1.6453555072203998 * (y * a))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3500000000.0: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) elif z <= 4.3e+32: tmp = x + ((1.6453555072203998 * (y * b)) + (z * (1.6453555072203998 * (y * a)))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3500000000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); elseif (z <= 4.3e+32) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(z * Float64(1.6453555072203998 * Float64(y * a))))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -3500000000.0) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); elseif (z <= 4.3e+32) tmp = x + ((1.6453555072203998 * (y * b)) + (z * (1.6453555072203998 * (y * a)))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3500000000.0], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.3e+32], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z * N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3500000000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+32}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + z \cdot \left(1.6453555072203998 \cdot \left(y \cdot a\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -3.5e9Initial program 11.7%
associate-*l/17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
Simplified17.6%
Taylor expanded in z around -inf 81.2%
+-commutative81.2%
mul-1-neg81.2%
unsub-neg81.2%
*-commutative81.2%
distribute-rgt-out--81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 81.3%
associate-*r/81.3%
metadata-eval81.3%
Simplified81.3%
if -3.5e9 < z < 4.2999999999999997e32Initial program 99.7%
associate-*l/98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in z around 0 81.4%
Taylor expanded in a around inf 86.3%
*-commutative86.3%
Simplified86.3%
if 4.2999999999999997e32 < z Initial program 4.3%
associate-*l/11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
Simplified11.1%
Taylor expanded in z around inf 92.7%
*-commutative92.7%
Simplified92.7%
Final simplification86.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -140000000.0)
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 1.65e+34)
(+
x
(+ (* 1.6453555072203998 (* y b)) (* z (* a (* y 1.6453555072203998)))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -140000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 1.65e+34) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * (a * (y * 1.6453555072203998))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-140000000.0d0)) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else if (z <= 1.65d+34) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (z * (a * (y * 1.6453555072203998d0))))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -140000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 1.65e+34) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * (a * (y * 1.6453555072203998))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -140000000.0: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) elif z <= 1.65e+34: tmp = x + ((1.6453555072203998 * (y * b)) + (z * (a * (y * 1.6453555072203998)))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -140000000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); elseif (z <= 1.65e+34) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(z * Float64(a * Float64(y * 1.6453555072203998))))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -140000000.0) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); elseif (z <= 1.65e+34) tmp = x + ((1.6453555072203998 * (y * b)) + (z * (a * (y * 1.6453555072203998)))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -140000000.0], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.65e+34], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z * N[(a * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -140000000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1.65 \cdot 10^{+34}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + z \cdot \left(a \cdot \left(y \cdot 1.6453555072203998\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.4e8Initial program 11.7%
associate-*l/17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
Simplified17.6%
Taylor expanded in z around -inf 81.2%
+-commutative81.2%
mul-1-neg81.2%
unsub-neg81.2%
*-commutative81.2%
distribute-rgt-out--81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 81.3%
associate-*r/81.3%
metadata-eval81.3%
Simplified81.3%
if -1.4e8 < z < 1.64999999999999994e34Initial program 99.7%
associate-*l/98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in z around 0 81.4%
Taylor expanded in a around inf 86.3%
*-commutative86.3%
associate-*r*86.4%
*-commutative86.4%
*-commutative86.4%
Simplified86.4%
if 1.64999999999999994e34 < z Initial program 4.3%
associate-*l/11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
Simplified11.1%
Taylor expanded in z around inf 92.7%
*-commutative92.7%
Simplified92.7%
Final simplification86.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -115000000.0)
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 6.2e+32)
(+
x
(+ (* 1.6453555072203998 (* a (* y z))) (* 1.6453555072203998 (* y b))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -115000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 6.2e+32) {
tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b)));
} 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 <= (-115000000.0d0)) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else if (z <= 6.2d+32) then
tmp = x + ((1.6453555072203998d0 * (a * (y * z))) + (1.6453555072203998d0 * (y * b)))
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 <= -115000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 6.2e+32) {
tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -115000000.0: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) elif z <= 6.2e+32: tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -115000000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); elseif (z <= 6.2e+32) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(a * Float64(y * z))) + Float64(1.6453555072203998 * Float64(y * b)))); 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 <= -115000000.0) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); elseif (z <= 6.2e+32) tmp = x + ((1.6453555072203998 * (a * (y * z))) + (1.6453555072203998 * (y * b))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -115000000.0], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+32], N[(x + N[(N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -115000000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+32}:\\
\;\;\;\;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}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.15e8Initial program 11.7%
associate-*l/17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
Simplified17.6%
Taylor expanded in z around -inf 81.2%
+-commutative81.2%
mul-1-neg81.2%
unsub-neg81.2%
*-commutative81.2%
distribute-rgt-out--81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 81.3%
associate-*r/81.3%
metadata-eval81.3%
Simplified81.3%
if -1.15e8 < z < 6.19999999999999986e32Initial program 99.7%
associate-*l/98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in z around 0 81.4%
Taylor expanded in a around inf 88.6%
*-commutative88.6%
Simplified88.6%
if 6.19999999999999986e32 < z Initial program 4.3%
associate-*l/11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
Simplified11.1%
Taylor expanded in z around inf 92.7%
*-commutative92.7%
Simplified92.7%
Final simplification87.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -920000.0) (not (<= z 3.2e+32))) (+ 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 <= -920000.0) || !(z <= 3.2e+32)) {
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 <= (-920000.0d0)) .or. (.not. (z <= 3.2d+32))) 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 <= -920000.0) || !(z <= 3.2e+32)) {
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 <= -920000.0) or not (z <= 3.2e+32): 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 <= -920000.0) || !(z <= 3.2e+32)) 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 <= -920000.0) || ~((z <= 3.2e+32))) 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, -920000.0], N[Not[LessEqual[z, 3.2e+32]], $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 -920000 \lor \neg \left(z \leq 3.2 \cdot 10^{+32}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\end{array}
if z < -9.2e5 or 3.1999999999999999e32 < z Initial program 8.3%
associate-*l/14.6%
*-commutative14.6%
fma-def14.6%
*-commutative14.6%
fma-def14.6%
*-commutative14.6%
fma-def14.6%
*-commutative14.6%
fma-def14.6%
Simplified14.6%
Taylor expanded in z around inf 86.3%
*-commutative86.3%
Simplified86.3%
if -9.2e5 < z < 3.1999999999999999e32Initial program 99.7%
associate-*l/98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
*-commutative98.4%
fma-def98.4%
Simplified98.4%
Taylor expanded in z around 0 78.8%
Final simplification82.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -220000.0) (not (<= z 3.2e+32))) (+ 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 <= -220000.0) || !(z <= 3.2e+32)) {
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 <= (-220000.0d0)) .or. (.not. (z <= 3.2d+32))) 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 <= -220000.0) || !(z <= 3.2e+32)) {
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 <= -220000.0) or not (z <= 3.2e+32): 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 <= -220000.0) || !(z <= 3.2e+32)) 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 <= -220000.0) || ~((z <= 3.2e+32))) 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, -220000.0], N[Not[LessEqual[z, 3.2e+32]], $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 -220000 \lor \neg \left(z \leq 3.2 \cdot 10^{+32}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -2.2e5 or 3.1999999999999999e32 < z Initial program 8.3%
associate-*l/14.6%
*-commutative14.6%
fma-def14.6%
*-commutative14.6%
fma-def14.6%
*-commutative14.6%
fma-def14.6%
*-commutative14.6%
fma-def14.6%
Simplified14.6%
Taylor expanded in z around inf 86.3%
*-commutative86.3%
Simplified86.3%
if -2.2e5 < z < 3.1999999999999999e32Initial program 99.7%
Taylor expanded in z around 0 91.1%
Taylor expanded in z around 0 78.8%
associate-*r*78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
Final simplification82.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -145000000.0)
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 4.3e+32)
(+ x (* b (* y 1.6453555072203998)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -145000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 4.3e+32) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-145000000.0d0)) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else if (z <= 4.3d+32) then
tmp = x + (b * (y * 1.6453555072203998d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -145000000.0) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 4.3e+32) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -145000000.0: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) elif z <= 4.3e+32: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -145000000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); elseif (z <= 4.3e+32) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -145000000.0) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); elseif (z <= 4.3e+32) tmp = x + (b * (y * 1.6453555072203998)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -145000000.0], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.3e+32], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -145000000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 4.3 \cdot 10^{+32}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.45e8Initial program 11.7%
associate-*l/17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
*-commutative17.6%
fma-def17.6%
Simplified17.6%
Taylor expanded in z around -inf 81.2%
+-commutative81.2%
mul-1-neg81.2%
unsub-neg81.2%
*-commutative81.2%
distribute-rgt-out--81.2%
metadata-eval81.2%
Simplified81.2%
Taylor expanded in y around 0 81.3%
associate-*r/81.3%
metadata-eval81.3%
Simplified81.3%
if -1.45e8 < z < 4.2999999999999997e32Initial program 99.7%
Taylor expanded in z around 0 91.1%
Taylor expanded in z around 0 78.8%
associate-*r*78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
if 4.2999999999999997e32 < z Initial program 4.3%
associate-*l/11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
*-commutative11.1%
fma-def11.1%
Simplified11.1%
Taylor expanded in z around inf 92.7%
*-commutative92.7%
Simplified92.7%
Final simplification82.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -6.2e-27) (not (<= z 5e-215))) (+ x (* y 3.13060547623)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.2e-27) || !(z <= 5e-215)) {
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 <= (-6.2d-27)) .or. (.not. (z <= 5d-215))) 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 <= -6.2e-27) || !(z <= 5e-215)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -6.2e-27) or not (z <= 5e-215): tmp = x + (y * 3.13060547623) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.2e-27) || !(z <= 5e-215)) 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 <= -6.2e-27) || ~((z <= 5e-215))) tmp = x + (y * 3.13060547623); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.2e-27], N[Not[LessEqual[z, 5e-215]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{-27} \lor \neg \left(z \leq 5 \cdot 10^{-215}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -6.1999999999999997e-27 or 4.99999999999999956e-215 < z Initial program 36.6%
associate-*l/40.4%
*-commutative40.4%
fma-def40.4%
*-commutative40.4%
fma-def40.4%
*-commutative40.4%
fma-def40.4%
*-commutative40.4%
fma-def40.4%
Simplified40.4%
Taylor expanded in z around inf 69.0%
*-commutative69.0%
Simplified69.0%
if -6.1999999999999997e-27 < z < 4.99999999999999956e-215Initial program 99.7%
associate-*l/98.6%
*-commutative98.6%
fma-def98.6%
*-commutative98.6%
fma-def98.6%
*-commutative98.6%
fma-def98.6%
*-commutative98.6%
fma-def98.6%
Simplified98.6%
Taylor expanded in z around inf 43.9%
*-commutative43.9%
Simplified43.9%
Taylor expanded in x around inf 53.6%
Final simplification63.9%
(FPCore (x y z t a b) :precision binary64 (if (<= y -2.05e+218) (* y 3.13060547623) (if (<= y 7.6e+55) x (* y 3.13060547623))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (y <= -2.05e+218) {
tmp = y * 3.13060547623;
} else if (y <= 7.6e+55) {
tmp = x;
} else {
tmp = 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 (y <= (-2.05d+218)) then
tmp = y * 3.13060547623d0
else if (y <= 7.6d+55) then
tmp = x
else
tmp = 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 (y <= -2.05e+218) {
tmp = y * 3.13060547623;
} else if (y <= 7.6e+55) {
tmp = x;
} else {
tmp = y * 3.13060547623;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if y <= -2.05e+218: tmp = y * 3.13060547623 elif y <= 7.6e+55: tmp = x else: tmp = y * 3.13060547623 return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (y <= -2.05e+218) tmp = Float64(y * 3.13060547623); elseif (y <= 7.6e+55) tmp = x; else tmp = Float64(y * 3.13060547623); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (y <= -2.05e+218) tmp = y * 3.13060547623; elseif (y <= 7.6e+55) tmp = x; else tmp = y * 3.13060547623; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[y, -2.05e+218], N[(y * 3.13060547623), $MachinePrecision], If[LessEqual[y, 7.6e+55], x, N[(y * 3.13060547623), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.05 \cdot 10^{+218}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{+55}:\\
\;\;\;\;x\\
\mathbf{else}:\\
\;\;\;\;y \cdot 3.13060547623\\
\end{array}
\end{array}
if y < -2.04999999999999983e218 or 7.5999999999999999e55 < y Initial program 49.0%
associate-*l/54.0%
*-commutative54.0%
fma-def54.0%
*-commutative54.0%
fma-def54.0%
*-commutative54.0%
fma-def54.0%
*-commutative54.0%
fma-def54.0%
Simplified54.0%
Taylor expanded in z around inf 51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in x around 0 51.3%
*-commutative51.3%
fma-def51.3%
Simplified51.3%
Taylor expanded in y around inf 43.2%
*-commutative43.2%
Simplified43.2%
if -2.04999999999999983e218 < y < 7.5999999999999999e55Initial program 60.9%
associate-*l/62.0%
*-commutative62.0%
fma-def62.0%
*-commutative62.0%
fma-def62.0%
*-commutative62.0%
fma-def62.0%
*-commutative62.0%
fma-def62.0%
Simplified62.0%
Taylor expanded in z around inf 64.4%
*-commutative64.4%
Simplified64.4%
Taylor expanded in x around inf 57.7%
Final simplification53.6%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 57.5%
associate-*l/59.7%
*-commutative59.7%
fma-def59.7%
*-commutative59.7%
fma-def59.7%
*-commutative59.7%
fma-def59.7%
*-commutative59.7%
fma-def59.7%
Simplified59.7%
Taylor expanded in z around inf 60.7%
*-commutative60.7%
Simplified60.7%
Taylor expanded in x around inf 44.4%
Final simplification44.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 2023268
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:herbie-target
(if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (if (< z 7.066965436914287e+59) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771) (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))