
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(/
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))))
(+
x
(-
(fma
-1.0
(/ (* y 36.52704169880642) z)
(fma 3.13060547623 y (* (/ y z) (/ t z))))
(fma
-15.234687407
(* (/ y z) (/ 36.52704169880642 z))
(* (/ y z) (/ 98.5170599679272 z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + (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 = x + (fma(-1.0, ((y * 36.52704169880642) / z), fma(3.13060547623, y, ((y / z) * (t / z)))) - fma(-15.234687407, ((y / z) * (36.52704169880642 / z)), ((y / z) * (98.5170599679272 / z))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(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 = Float64(x + Float64(fma(-1.0, Float64(Float64(y * 36.52704169880642) / z), fma(3.13060547623, y, Float64(Float64(y / z) * Float64(t / z)))) - fma(-15.234687407, Float64(Float64(y / z) * Float64(36.52704169880642 / z)), Float64(Float64(y / z) * Float64(98.5170599679272 / z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(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[(x + N[(N[(-1.0 * N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision] + N[(3.13060547623 * y + N[(N[(y / z), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-15.234687407 * N[(N[(y / z), $MachinePrecision] * N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * N[(98.5170599679272 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{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}:\\
\;\;\;\;x + \left(\mathsf{fma}\left(-1, \frac{y \cdot 36.52704169880642}{z}, \mathsf{fma}\left(3.13060547623, y, \frac{y}{z} \cdot \frac{t}{z}\right)\right) - \mathsf{fma}\left(-15.234687407, \frac{y}{z} \cdot \frac{36.52704169880642}{z}, \frac{y}{z} \cdot \frac{98.5170599679272}{z}\right)\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 91.1%
associate-/l*97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
fma-def97.8%
Simplified97.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 83.4%
fma-def83.4%
cancel-sign-sub-inv83.4%
metadata-eval83.4%
distribute-rgt-out83.4%
metadata-eval83.4%
fma-def83.4%
*-commutative83.4%
unpow283.4%
times-frac98.2%
fma-def98.2%
Simplified98.2%
Final simplification97.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
t_1)
INFINITY)
(+
x
(*
(/ y t_1)
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)))
(+
x
(-
(fma
-1.0
(/ (* y 36.52704169880642) z)
(fma 3.13060547623 y (* (/ y z) (/ t z))))
(fma
-15.234687407
(* (/ y z) (/ 36.52704169880642 z))
(* (/ y z) (/ 98.5170599679272 z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / t_1) <= ((double) INFINITY)) {
tmp = x + ((y / t_1) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b));
} else {
tmp = x + (fma(-1.0, ((y * 36.52704169880642) / z), fma(3.13060547623, y, ((y / z) * (t / z)))) - fma(-15.234687407, ((y / z) * (36.52704169880642 / z)), ((y / z) * (98.5170599679272 / z))));
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) 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)) / t_1) <= Inf) tmp = Float64(x + Float64(Float64(y / t_1) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b))); else tmp = Float64(x + Float64(fma(-1.0, Float64(Float64(y * 36.52704169880642) / z), fma(3.13060547623, y, Float64(Float64(y / z) * Float64(t / z)))) - fma(-15.234687407, Float64(Float64(y / z) * Float64(36.52704169880642 / z)), Float64(Float64(y / z) * Float64(98.5170599679272 / z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, 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] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(N[(y / t$95$1), $MachinePrecision] * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(-1.0 * N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision] + N[(3.13060547623 * y + N[(N[(y / z), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-15.234687407 * N[(N[(y / z), $MachinePrecision] * N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * N[(98.5170599679272 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
\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)}{t_1} \leq \infty:\\
\;\;\;\;x + \frac{y}{t_1} \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}:\\
\;\;\;\;x + \left(\mathsf{fma}\left(-1, \frac{y \cdot 36.52704169880642}{z}, \mathsf{fma}\left(3.13060547623, y, \frac{y}{z} \cdot \frac{t}{z}\right)\right) - \mathsf{fma}\left(-15.234687407, \frac{y}{z} \cdot \frac{36.52704169880642}{z}, \frac{y}{z} \cdot \frac{98.5170599679272}{z}\right)\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 91.1%
associate-*l/97.2%
*-commutative97.2%
fma-def97.2%
*-commutative97.2%
fma-def97.2%
*-commutative97.2%
fma-def97.2%
*-commutative97.2%
fma-def97.2%
Simplified97.2%
Taylor expanded in y around 0 97.2%
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 83.4%
fma-def83.4%
cancel-sign-sub-inv83.4%
metadata-eval83.4%
distribute-rgt-out83.4%
metadata-eval83.4%
fma-def83.4%
*-commutative83.4%
unpow283.4%
times-frac98.2%
fma-def98.2%
Simplified98.2%
Final simplification97.6%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -3.2e+14) (not (<= z 4.8e+40)))
(+
x
(-
(fma
-1.0
(/ (* y 36.52704169880642) z)
(fma 3.13060547623 y (* (/ y z) (/ t z))))
(fma
-15.234687407
(* (/ y z) (/ 36.52704169880642 z))
(* (/ y z) (/ 98.5170599679272 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 <= -3.2e+14) || !(z <= 4.8e+40)) {
tmp = x + (fma(-1.0, ((y * 36.52704169880642) / z), fma(3.13060547623, y, ((y / z) * (t / z)))) - fma(-15.234687407, ((y / z) * (36.52704169880642 / z)), ((y / z) * (98.5170599679272 / 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 <= -3.2e+14) || !(z <= 4.8e+40)) tmp = Float64(x + Float64(fma(-1.0, Float64(Float64(y * 36.52704169880642) / z), fma(3.13060547623, y, Float64(Float64(y / z) * Float64(t / z)))) - fma(-15.234687407, Float64(Float64(y / z) * Float64(36.52704169880642 / z)), Float64(Float64(y / z) * Float64(98.5170599679272 / 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
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.2e+14], N[Not[LessEqual[z, 4.8e+40]], $MachinePrecision]], N[(x + N[(N[(-1.0 * N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision] + N[(3.13060547623 * y + N[(N[(y / z), $MachinePrecision] * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-15.234687407 * N[(N[(y / z), $MachinePrecision] * N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * N[(98.5170599679272 / z), $MachinePrecision]), $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 -3.2 \cdot 10^{+14} \lor \neg \left(z \leq 4.8 \cdot 10^{+40}\right):\\
\;\;\;\;x + \left(\mathsf{fma}\left(-1, \frac{y \cdot 36.52704169880642}{z}, \mathsf{fma}\left(3.13060547623, y, \frac{y}{z} \cdot \frac{t}{z}\right)\right) - \mathsf{fma}\left(-15.234687407, \frac{y}{z} \cdot \frac{36.52704169880642}{z}, \frac{y}{z} \cdot \frac{98.5170599679272}{z}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\end{array}
\end{array}
if z < -3.2e14 or 4.8e40 < z Initial program 10.0%
associate-*l/16.2%
*-commutative16.2%
fma-def16.2%
*-commutative16.2%
fma-def16.2%
*-commutative16.2%
fma-def16.2%
*-commutative16.2%
fma-def16.2%
Simplified16.2%
Taylor expanded in z around -inf 83.9%
fma-def83.9%
cancel-sign-sub-inv83.9%
metadata-eval83.9%
distribute-rgt-out83.9%
metadata-eval83.9%
fma-def83.9%
*-commutative83.9%
unpow283.9%
times-frac96.6%
fma-def96.6%
Simplified96.6%
if -3.2e14 < z < 4.8e40Initial program 98.3%
Final simplification97.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2.9e+49) (not (<= z 1.9e+67)))
(+
x
(/
y
(+
0.31942702700572795
(fma
-1.0
(/ (+ 3.241970391368047 (* t 0.10203362558171805)) (* z z))
(/ 3.7269864963038164 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 <= -2.9e+49) || !(z <= 1.9e+67)) {
tmp = x + (y / (0.31942702700572795 + fma(-1.0, ((3.241970391368047 + (t * 0.10203362558171805)) / (z * z)), (3.7269864963038164 / 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 <= -2.9e+49) || !(z <= 1.9e+67)) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + fma(-1.0, Float64(Float64(3.241970391368047 + Float64(t * 0.10203362558171805)) / Float64(z * z)), Float64(3.7269864963038164 / 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
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.9e+49], N[Not[LessEqual[z, 1.9e+67]], $MachinePrecision]], N[(x + N[(y / N[(0.31942702700572795 + N[(-1.0 * N[(N[(3.241970391368047 + N[(t * 0.10203362558171805), $MachinePrecision]), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(3.7269864963038164 / z), $MachinePrecision]), $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 -2.9 \cdot 10^{+49} \lor \neg \left(z \leq 1.9 \cdot 10^{+67}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \mathsf{fma}\left(-1, \frac{3.241970391368047 + t \cdot 0.10203362558171805}{z \cdot z}, \frac{3.7269864963038164}{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 < -2.9e49 or 1.9000000000000001e67 < z Initial program 2.1%
associate-/l*8.1%
fma-def8.1%
fma-def8.1%
fma-def8.1%
fma-def8.1%
fma-def8.1%
fma-def8.1%
fma-def8.1%
Simplified8.1%
Taylor expanded in z around inf 94.6%
fma-def94.6%
*-commutative94.6%
unpow294.6%
associate-*r/94.6%
metadata-eval94.6%
Simplified94.6%
if -2.9e49 < z < 1.9000000000000001e67Initial program 97.1%
Final simplification96.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2.4e+55) (not (<= z 1.3e+48)))
(+ x (* y 3.13060547623))
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.4e+55) || !(z <= 1.3e+48)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-2.4d+55)) .or. (.not. (z <= 1.3d+48))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0)) + x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.4e+55) || !(z <= 1.3e+48)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.4e+55) or not (z <= 1.3e+48): tmp = x + (y * 3.13060547623) else: tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.4e+55) || !(z <= 1.3e+48)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.4e+55) || ~((z <= 1.3e+48))) tmp = x + (y * 3.13060547623); else tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.4e+55], N[Not[LessEqual[z, 1.3e+48]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+55} \lor \neg \left(z \leq 1.3 \cdot 10^{+48}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\end{array}
\end{array}
if z < -2.3999999999999999e55 or 1.29999999999999998e48 < z Initial program 2.9%
+-commutative2.9%
associate-*l/8.8%
fma-def8.8%
Simplified8.8%
Taylor expanded in z around inf 93.5%
+-commutative93.5%
*-commutative93.5%
Simplified93.5%
if -2.3999999999999999e55 < z < 1.29999999999999998e48Initial program 97.8%
Final simplification95.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a)))
(t_2 (+ x (* y 3.13060547623))))
(if (<= z -2.9e+75)
t_2
(if (<= z -4.5e-7)
(+
x
(/
y
(/
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)
t_1)))
(if (<= z 7.5e+48)
(+ 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 * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a);
double t_2 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.9e+75) {
tmp = t_2;
} else if (z <= -4.5e-7) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1));
} else if (z <= 7.5e+48) {
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 * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)
t_2 = x + (y * 3.13060547623d0)
if (z <= (-2.9d+75)) then
tmp = t_2
else if (z <= (-4.5d-7)) then
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0) / t_1))
else if (z <= 7.5d+48) 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 * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a);
double t_2 = x + (y * 3.13060547623);
double tmp;
if (z <= -2.9e+75) {
tmp = t_2;
} else if (z <= -4.5e-7) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1));
} else if (z <= 7.5e+48) {
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 * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a) t_2 = x + (y * 3.13060547623) tmp = 0 if z <= -2.9e+75: tmp = t_2 elif z <= -4.5e-7: tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1)) elif z <= 7.5e+48: 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(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) t_2 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -2.9e+75) tmp = t_2; elseif (z <= -4.5e-7) 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 <= 7.5e+48) 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 * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a); t_2 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -2.9e+75) tmp = t_2; elseif (z <= -4.5e-7) tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / t_1)); elseif (z <= 7.5e+48) 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[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.9e+75], t$95$2, If[LessEqual[z, -4.5e-7], 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, 7.5e+48], 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(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right)\\
t_2 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -2.9 \cdot 10^{+75}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-7}:\\
\;\;\;\;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 7.5 \cdot 10^{+48}:\\
\;\;\;\;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 < -2.8999999999999998e75 or 7.5000000000000006e48 < z Initial program 1.1%
+-commutative1.1%
associate-*l/5.6%
fma-def5.6%
Simplified5.6%
Taylor expanded in z around inf 95.2%
+-commutative95.2%
*-commutative95.2%
Simplified95.2%
if -2.8999999999999998e75 < z < -4.4999999999999998e-7Initial program 74.9%
associate-/l*91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
Simplified91.1%
Taylor expanded in b around 0 90.6%
if -4.4999999999999998e-7 < z < 7.5000000000000006e48Initial program 98.2%
Taylor expanded in z around 0 97.4%
*-commutative97.4%
Simplified97.4%
Final simplification95.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -9e+75)
t_1
(if (<= z -8.2e-7)
(+
x
(/
y
(/
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)
(* z (+ a (* z (+ t (* z (* z 3.13060547623)))))))))
(if (<= z 2.6e+40)
(+
x
(/
(*
y
(+
(*
z
(+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z 11.9400905721))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -9e+75) {
tmp = t_1;
} else if (z <= -8.2e-7) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / (z * (a + (z * (t + (z * (z * 3.13060547623))))))));
} else if (z <= 2.6e+40) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-9d+75)) then
tmp = t_1
else if (z <= (-8.2d-7)) then
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0) / (z * (a + (z * (t + (z * (z * 3.13060547623d0))))))))
else if (z <= 2.6d+40) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -9e+75) {
tmp = t_1;
} else if (z <= -8.2e-7) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / (z * (a + (z * (t + (z * (z * 3.13060547623))))))));
} else if (z <= 2.6e+40) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -9e+75: tmp = t_1 elif z <= -8.2e-7: tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / (z * (a + (z * (t + (z * (z * 3.13060547623)))))))) elif z <= 2.6e+40: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -9e+75) tmp = t_1; elseif (z <= -8.2e-7) 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) / Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(z * 3.13060547623))))))))); elseif (z <= 2.6e+40) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -9e+75) tmp = t_1; elseif (z <= -8.2e-7) tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / (z * (a + (z * (t + (z * (z * 3.13060547623)))))))); elseif (z <= 2.6e+40) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e+75], t$95$1, If[LessEqual[z, -8.2e-7], 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] / N[(z * N[(a + N[(z * N[(t + N[(z * N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+40], 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], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -9 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -8.2 \cdot 10^{-7}:\\
\;\;\;\;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}{z \cdot \left(a + z \cdot \left(t + z \cdot \left(z \cdot 3.13060547623\right)\right)\right)}}\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+40}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -9.0000000000000007e75 or 2.6000000000000001e40 < z Initial program 1.1%
+-commutative1.1%
associate-*l/5.6%
fma-def5.6%
Simplified5.6%
Taylor expanded in z around inf 95.2%
+-commutative95.2%
*-commutative95.2%
Simplified95.2%
if -9.0000000000000007e75 < z < -8.1999999999999998e-7Initial program 74.9%
associate-/l*91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
fma-def91.1%
Simplified91.1%
Taylor expanded in b around 0 90.6%
Taylor expanded in z around inf 90.6%
*-commutative90.6%
unpow290.6%
associate-*r*90.6%
Simplified90.6%
if -8.1999999999999998e-7 < z < 2.6000000000000001e40Initial program 98.2%
Taylor expanded in z around 0 97.4%
*-commutative97.4%
Simplified97.4%
Final simplification95.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -15500000000000.0)
(+ x (+ (* y 3.13060547623) (* (/ y z) -36.52704169880642)))
(if (<= z -2.7e-215)
(+
x
(+
(* 1.6453555072203998 (* y b))
(*
z
(- (* 1.6453555072203998 (* y a)) (* (* y b) 32.324150453290734)))))
(if (<= z 3e-32)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 2.2e+48)
(+
x
(+
(* y 3.13060547623)
(/
(* a (* y z))
(+
(*
z
(+
(* z (+ (* z (+ z 15.234687407)) 31.4690115749))
11.9400905721))
0.607771387771))))
(+ x (* y 3.13060547623)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -15500000000000.0) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= -2.7e-215) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 3e-32) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.2e+48) {
tmp = x + ((y * 3.13060547623) + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)));
} 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 <= (-15500000000000.0d0)) then
tmp = x + ((y * 3.13060547623d0) + ((y / z) * (-36.52704169880642d0)))
else if (z <= (-2.7d-215)) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (z * ((1.6453555072203998d0 * (y * a)) - ((y * b) * 32.324150453290734d0))))
else if (z <= 3d-32) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 2.2d+48) then
tmp = x + ((y * 3.13060547623d0) + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0)))
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 <= -15500000000000.0) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= -2.7e-215) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 3e-32) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.2e+48) {
tmp = x + ((y * 3.13060547623) + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -15500000000000.0: tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)) elif z <= -2.7e-215: tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))) elif z <= 3e-32: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 2.2e+48: tmp = x + ((y * 3.13060547623) + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -15500000000000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642))); elseif (z <= -2.7e-215) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(z * Float64(Float64(1.6453555072203998 * Float64(y * a)) - Float64(Float64(y * b) * 32.324150453290734))))); elseif (z <= 3e-32) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 2.2e+48) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(a * Float64(y * z)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -15500000000000.0) tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)); elseif (z <= -2.7e-215) tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))); elseif (z <= 3e-32) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 2.2e+48) tmp = x + ((y * 3.13060547623) + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -15500000000000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.7e-215], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-32], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+48], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(a * N[(y * z), $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]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -15500000000000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right)\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-215}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + z \cdot \left(1.6453555072203998 \cdot \left(y \cdot a\right) - \left(y \cdot b\right) \cdot 32.324150453290734\right)\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-32}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+48}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{a \cdot \left(y \cdot z\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.55e13Initial program 16.2%
associate-/l*21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
Simplified21.5%
Taylor expanded in b around 0 21.3%
Taylor expanded in z around inf 87.6%
associate--l+87.6%
*-commutative87.6%
associate-*r/87.6%
associate-*r/87.6%
*-commutative87.6%
div-sub87.6%
*-commutative87.6%
distribute-rgt-out--87.6%
metadata-eval87.6%
*-commutative87.6%
associate-*r/87.6%
*-commutative87.6%
Simplified87.6%
if -1.55e13 < z < -2.70000000000000018e-215Initial program 99.6%
associate-*l/99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in z around 0 73.7%
if -2.70000000000000018e-215 < z < 3e-32Initial program 99.8%
associate-/l*99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in b around inf 90.2%
associate-/r/90.3%
Applied egg-rr90.3%
Taylor expanded in z around 0 90.3%
*-commutative90.3%
Simplified90.3%
if 3e-32 < z < 2.1999999999999999e48Initial program 81.1%
associate-/l*99.8%
fma-def99.8%
fma-def99.8%
fma-def99.8%
fma-def99.8%
fma-def99.8%
fma-def99.8%
fma-def99.8%
Simplified99.8%
Taylor expanded in b around 0 90.7%
Taylor expanded in a around 0 71.1%
Taylor expanded in z around inf 87.8%
*-commutative87.8%
Simplified87.8%
if 2.1999999999999999e48 < z Initial program 2.1%
+-commutative2.1%
associate-*l/11.0%
fma-def11.0%
Simplified11.0%
Taylor expanded in z around inf 97.0%
+-commutative97.0%
*-commutative97.0%
Simplified97.0%
Final simplification87.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -12.8)
(+ x (+ (* y 3.13060547623) (* (/ y z) -36.52704169880642)))
(if (<= z 2.8e+40)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -12.8) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= 2.8e+40) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
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 <= (-12.8d0)) then
tmp = x + ((y * 3.13060547623d0) + ((y / z) * (-36.52704169880642d0)))
else if (z <= 2.8d+40) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * 3.13060547623d0)
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 <= -12.8) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= 2.8e+40) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -12.8: tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)) elif z <= 2.8e+40: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -12.8) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642))); elseif (z <= 2.8e+40) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -12.8) tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)); elseif (z <= 2.8e+40) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -12.8], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+40], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -12.8:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+40}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -12.800000000000001Initial program 17.3%
associate-/l*22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
fma-def22.6%
Simplified22.6%
Taylor expanded in b around 0 22.4%
Taylor expanded in z around inf 86.4%
associate--l+86.4%
*-commutative86.4%
associate-*r/86.4%
associate-*r/86.4%
*-commutative86.4%
div-sub86.4%
*-commutative86.4%
distribute-rgt-out--86.4%
metadata-eval86.4%
*-commutative86.4%
associate-*r/86.4%
*-commutative86.4%
Simplified86.4%
if -12.800000000000001 < z < 2.8000000000000001e40Initial program 98.3%
Taylor expanded in z around 0 97.3%
*-commutative97.3%
Simplified97.3%
if 2.8000000000000001e40 < z Initial program 2.1%
+-commutative2.1%
associate-*l/11.0%
fma-def11.0%
Simplified11.0%
Taylor expanded in z around inf 97.0%
+-commutative97.0%
*-commutative97.0%
Simplified97.0%
Final simplification94.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -16500000000000.0)
(+ x (+ (* y 3.13060547623) (* (/ y z) -36.52704169880642)))
(if (<= z -3.5e-215)
(+
x
(+
(* 1.6453555072203998 (* y b))
(*
z
(- (* 1.6453555072203998 (* y a)) (* (* y b) 32.324150453290734)))))
(if (<= z 4.5e+35)
(+
x
(/
y
(/
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)
b)))
(+ x (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -16500000000000.0) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= -3.5e-215) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 4.5e+35) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / 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 <= (-16500000000000.0d0)) then
tmp = x + ((y * 3.13060547623d0) + ((y / z) * (-36.52704169880642d0)))
else if (z <= (-3.5d-215)) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (z * ((1.6453555072203998d0 * (y * a)) - ((y * b) * 32.324150453290734d0))))
else if (z <= 4.5d+35) then
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0) / 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 <= -16500000000000.0) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= -3.5e-215) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 4.5e+35) {
tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / b));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -16500000000000.0: tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)) elif z <= -3.5e-215: tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))) elif z <= 4.5e+35: tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / b)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -16500000000000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642))); elseif (z <= -3.5e-215) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(z * Float64(Float64(1.6453555072203998 * Float64(y * a)) - Float64(Float64(y * b) * 32.324150453290734))))); elseif (z <= 4.5e+35) 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) / 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 <= -16500000000000.0) tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)); elseif (z <= -3.5e-215) tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))); elseif (z <= 4.5e+35) tmp = x + (y / (((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) / b)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -16500000000000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.5e-215], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+35], 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] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -16500000000000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right)\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-215}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + z \cdot \left(1.6453555072203998 \cdot \left(y \cdot a\right) - \left(y \cdot b\right) \cdot 32.324150453290734\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+35}:\\
\;\;\;\;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}{b}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.65e13Initial program 16.2%
associate-/l*21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
Simplified21.5%
Taylor expanded in b around 0 21.3%
Taylor expanded in z around inf 87.6%
associate--l+87.6%
*-commutative87.6%
associate-*r/87.6%
associate-*r/87.6%
*-commutative87.6%
div-sub87.6%
*-commutative87.6%
distribute-rgt-out--87.6%
metadata-eval87.6%
*-commutative87.6%
associate-*r/87.6%
*-commutative87.6%
Simplified87.6%
if -1.65e13 < z < -3.5000000000000002e-215Initial program 99.6%
associate-*l/99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in z around 0 73.7%
if -3.5000000000000002e-215 < z < 4.4999999999999997e35Initial program 98.5%
associate-/l*99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in b around inf 85.6%
if 4.4999999999999997e35 < z Initial program 5.6%
+-commutative5.6%
associate-*l/15.7%
fma-def15.7%
Simplified15.7%
Taylor expanded in z around inf 93.8%
+-commutative93.8%
*-commutative93.8%
Simplified93.8%
Final simplification85.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.2e+14)
(+ x (+ (* y 3.13060547623) (* (/ y z) -36.52704169880642)))
(if (<= z -2.7e-215)
(+
x
(+
(* 1.6453555072203998 (* y b))
(*
z
(- (* 1.6453555072203998 (* y a)) (* (* y b) 32.324150453290734)))))
(if (<= z 3.1e+34)
(+
x
(/
y
(/
(+
0.607771387771
(* z (+ 11.9400905721 (* z (+ 31.4690115749 (* z z))))))
b)))
(+ x (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.2e+14) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= -2.7e-215) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 3.1e+34) {
tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / 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 <= (-2.2d+14)) then
tmp = x + ((y * 3.13060547623d0) + ((y / z) * (-36.52704169880642d0)))
else if (z <= (-2.7d-215)) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (z * ((1.6453555072203998d0 * (y * a)) - ((y * b) * 32.324150453290734d0))))
else if (z <= 3.1d+34) then
tmp = x + (y / ((0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * z)))))) / 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 <= -2.2e+14) {
tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642));
} else if (z <= -2.7e-215) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 3.1e+34) {
tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / b));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.2e+14: tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)) elif z <= -2.7e-215: tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))) elif z <= 3.1e+34: tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / b)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.2e+14) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(y / z) * -36.52704169880642))); elseif (z <= -2.7e-215) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(z * Float64(Float64(1.6453555072203998 * Float64(y * a)) - Float64(Float64(y * b) * 32.324150453290734))))); elseif (z <= 3.1e+34) tmp = Float64(x + Float64(y / Float64(Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * z)))))) / 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 <= -2.2e+14) tmp = x + ((y * 3.13060547623) + ((y / z) * -36.52704169880642)); elseif (z <= -2.7e-215) tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))); elseif (z <= 3.1e+34) tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / b)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.2e+14], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(y / z), $MachinePrecision] * -36.52704169880642), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.7e-215], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e+34], N[(x + N[(y / N[(N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{+14}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{y}{z} \cdot -36.52704169880642\right)\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-215}:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + z \cdot \left(1.6453555072203998 \cdot \left(y \cdot a\right) - \left(y \cdot b\right) \cdot 32.324150453290734\right)\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{+34}:\\
\;\;\;\;x + \frac{y}{\frac{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot z\right)\right)}{b}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -2.2e14Initial program 16.2%
associate-/l*21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
fma-def21.5%
Simplified21.5%
Taylor expanded in b around 0 21.3%
Taylor expanded in z around inf 87.6%
associate--l+87.6%
*-commutative87.6%
associate-*r/87.6%
associate-*r/87.6%
*-commutative87.6%
div-sub87.6%
*-commutative87.6%
distribute-rgt-out--87.6%
metadata-eval87.6%
*-commutative87.6%
associate-*r/87.6%
*-commutative87.6%
Simplified87.6%
if -2.2e14 < z < -2.70000000000000018e-215Initial program 99.6%
associate-*l/99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
*-commutative99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in z around 0 73.7%
if -2.70000000000000018e-215 < z < 3.09999999999999977e34Initial program 98.5%
associate-/l*99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in b around inf 85.6%
Taylor expanded in z around inf 85.6%
unpow285.6%
Simplified85.6%
if 3.09999999999999977e34 < z Initial program 5.6%
+-commutative5.6%
associate-*l/15.7%
fma-def15.7%
Simplified15.7%
Taylor expanded in z around inf 93.8%
+-commutative93.8%
*-commutative93.8%
Simplified93.8%
Final simplification85.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 3.2e+34)
(+
x
(/
y
(/
(+
0.607771387771
(* z (+ 11.9400905721 (* z (+ 31.4690115749 (* z z))))))
b)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 3.2e+34) {
tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / 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 <= (-0.0006d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 3.2d+34) then
tmp = x + (y / ((0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * z)))))) / 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 <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 3.2e+34) {
tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / b));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 3.2e+34: tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / b)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 3.2e+34) tmp = Float64(x + Float64(y / Float64(Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * z)))))) / 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 <= -0.0006) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 3.2e+34) tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * z)))))) / b)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+34], N[(x + N[(y / N[(N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+34}:\\
\;\;\;\;x + \frac{y}{\frac{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot z\right)\right)}{b}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -5.99999999999999947e-4 < z < 3.1999999999999998e34Initial program 98.9%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 77.3%
Taylor expanded in z around inf 77.3%
unpow277.3%
Simplified77.3%
if 3.1999999999999998e34 < z Initial program 5.6%
+-commutative5.6%
associate-*l/15.7%
fma-def15.7%
Simplified15.7%
Taylor expanded in z around inf 93.8%
+-commutative93.8%
*-commutative93.8%
Simplified93.8%
Final simplification83.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.00045)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 70000000.0)
(+
x
(/
y
(/ (+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749)))) b)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.00045) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 70000000.0) {
tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))) / 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 <= (-0.00045d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 70000000.0d0) then
tmp = x + (y / ((0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))) / 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 <= -0.00045) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 70000000.0) {
tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))) / b));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.00045: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 70000000.0: tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))) / b)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.00045) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 70000000.0) tmp = Float64(x + Float64(y / Float64(Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))) / 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 <= -0.00045) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 70000000.0) tmp = x + (y / ((0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))) / b)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.00045], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 70000000.0], N[(x + N[(y / N[(N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.00045:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 70000000:\\
\;\;\;\;x + \frac{y}{\frac{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}{b}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -4.4999999999999999e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -4.4999999999999999e-4 < z < 7e7Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
Taylor expanded in z around inf 78.4%
unpow278.4%
Simplified78.4%
Taylor expanded in z around 0 78.4%
*-commutative78.4%
Simplified78.4%
if 7e7 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 3200000000.0)
(+ x (/ y (/ (+ 0.607771387771 (* z 11.9400905721)) b)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 3200000000.0) {
tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / 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 <= (-0.0006d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 3200000000.0d0) then
tmp = x + (y / ((0.607771387771d0 + (z * 11.9400905721d0)) / 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 <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 3200000000.0) {
tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / b));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 3200000000.0: tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / b)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 3200000000.0) tmp = Float64(x + Float64(y / Float64(Float64(0.607771387771 + Float64(z * 11.9400905721)) / 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 <= -0.0006) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 3200000000.0) tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / b)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3200000000.0], N[(x + N[(y / N[(N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 3200000000:\\
\;\;\;\;x + \frac{y}{\frac{0.607771387771 + z \cdot 11.9400905721}{b}}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -5.99999999999999947e-4 < z < 3.2e9Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
Taylor expanded in z around 0 78.3%
if 3.2e9 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 1750000.0)
(+ x (/ (* y b) (+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 1750000.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-0.0006d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 1750000.0d0) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 1750000.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 1750000.0: tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 1750000.0) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.0006) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 1750000.0) tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1750000.0], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 1750000:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -5.99999999999999947e-4 < z < 1.75e6Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
Taylor expanded in z around 0 78.3%
Taylor expanded in y around 0 78.3%
if 1.75e6 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.0006) (not (<= z 1040000000.0))) (+ x (* y 3.13060547623)) (+ x (* 1.6453555072203998 (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.0006) || !(z <= 1040000000.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (1.6453555072203998 * (y * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-0.0006d0)) .or. (.not. (z <= 1040000000.0d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (1.6453555072203998d0 * (y * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.0006) || !(z <= 1040000000.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (1.6453555072203998 * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.0006) or not (z <= 1040000000.0): tmp = x + (y * 3.13060547623) else: tmp = x + (1.6453555072203998 * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.0006) || !(z <= 1040000000.0)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.0006) || ~((z <= 1040000000.0))) tmp = x + (y * 3.13060547623); else tmp = x + (1.6453555072203998 * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.0006], N[Not[LessEqual[z, 1040000000.0]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006 \lor \neg \left(z \leq 1040000000\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4 or 1.04e9 < z Initial program 15.3%
+-commutative15.3%
associate-*l/22.4%
fma-def22.4%
Simplified22.4%
Taylor expanded in z around inf 87.4%
+-commutative87.4%
*-commutative87.4%
Simplified87.4%
if -5.99999999999999947e-4 < z < 1.04e9Initial program 99.7%
associate-*l/99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
*-commutative99.7%
fma-def99.7%
Simplified99.7%
Taylor expanded in z around 0 78.1%
Final simplification82.9%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -0.0006) (not (<= z 1650000000.0))) (+ x (* y 3.13060547623)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.0006) || !(z <= 1650000000.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-0.0006d0)) .or. (.not. (z <= 1650000000.0d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -0.0006) || !(z <= 1650000000.0)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -0.0006) or not (z <= 1650000000.0): tmp = x + (y * 3.13060547623) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -0.0006) || !(z <= 1650000000.0)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -0.0006) || ~((z <= 1650000000.0))) tmp = x + (y * 3.13060547623); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -0.0006], N[Not[LessEqual[z, 1650000000.0]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006 \lor \neg \left(z \leq 1650000000\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4 or 1.65e9 < z Initial program 15.3%
+-commutative15.3%
associate-*l/22.4%
fma-def22.4%
Simplified22.4%
Taylor expanded in z around inf 87.4%
+-commutative87.4%
*-commutative87.4%
Simplified87.4%
if -5.99999999999999947e-4 < z < 1.65e9Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
associate-/r/78.4%
Applied egg-rr78.4%
Taylor expanded in z around 0 78.1%
*-commutative78.1%
Simplified78.1%
Final simplification83.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (* y (- 3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 3500000000.0)
(+ x (* b (* y 1.6453555072203998)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 3500000000.0) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-0.0006d0)) then
tmp = x + (y * (3.13060547623d0 - (36.52704169880642d0 / z)))
else if (z <= 3500000000.0d0) then
tmp = x + (b * (y * 1.6453555072203998d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y * (3.13060547623 - (36.52704169880642 / z)));
} else if (z <= 3500000000.0) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))) elif z <= 3500000000.0: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y * Float64(3.13060547623 - Float64(36.52704169880642 / z)))); elseif (z <= 3500000000.0) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.0006) tmp = x + (y * (3.13060547623 - (36.52704169880642 / z))); elseif (z <= 3500000000.0) tmp = x + (b * (y * 1.6453555072203998)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y * N[(3.13060547623 - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3500000000.0], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + y \cdot \left(3.13060547623 - \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 3500000000:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in b around 0 25.6%
Taylor expanded in z around inf 85.6%
associate--l+85.6%
*-commutative85.6%
associate-*r/85.6%
associate-*r/85.6%
*-commutative85.6%
div-sub85.6%
*-commutative85.6%
distribute-rgt-out--85.6%
metadata-eval85.6%
*-commutative85.6%
associate-*r/85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in y around 0 85.6%
associate-*r/85.6%
metadata-eval85.6%
Simplified85.6%
if -5.99999999999999947e-4 < z < 3.5e9Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
associate-/r/78.4%
Applied egg-rr78.4%
Taylor expanded in z around 0 78.1%
*-commutative78.1%
Simplified78.1%
if 3.5e9 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.0006)
(+ x (/ y (+ 0.31942702700572795 (/ 3.7269864963038164 z))))
(if (<= z 660000000.0)
(+ x (* b (* y 1.6453555072203998)))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 660000000.0) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-0.0006d0)) then
tmp = x + (y / (0.31942702700572795d0 + (3.7269864963038164d0 / z)))
else if (z <= 660000000.0d0) then
tmp = x + (b * (y * 1.6453555072203998d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.0006) {
tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z)));
} else if (z <= 660000000.0) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -0.0006: tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))) elif z <= 660000000.0: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.0006) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(3.7269864963038164 / z)))); elseif (z <= 660000000.0) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -0.0006) tmp = x + (y / (0.31942702700572795 + (3.7269864963038164 / z))); elseif (z <= 660000000.0) tmp = x + (b * (y * 1.6453555072203998)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.0006], N[(x + N[(y / N[(0.31942702700572795 + N[(3.7269864963038164 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 660000000.0], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0006:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \frac{3.7269864963038164}{z}}\\
\mathbf{elif}\;z \leq 660000000:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -5.99999999999999947e-4Initial program 20.7%
associate-/l*25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
fma-def25.7%
Simplified25.7%
Taylor expanded in z around inf 85.7%
associate-*r/85.7%
metadata-eval85.7%
Simplified85.7%
if -5.99999999999999947e-4 < z < 6.6e8Initial program 99.7%
associate-/l*99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
fma-def99.6%
Simplified99.6%
Taylor expanded in b around inf 78.4%
associate-/r/78.4%
Applied egg-rr78.4%
Taylor expanded in z around 0 78.1%
*-commutative78.1%
Simplified78.1%
if 6.6e8 < z Initial program 8.7%
+-commutative8.7%
associate-*l/19.9%
fma-def19.9%
Simplified19.9%
Taylor expanded in z around inf 89.6%
+-commutative89.6%
*-commutative89.6%
Simplified89.6%
Final simplification83.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2.25e-43) (not (<= z 1.8e-57))) (+ x (* y 3.13060547623)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.25e-43) || !(z <= 1.8e-57)) {
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 <= (-2.25d-43)) .or. (.not. (z <= 1.8d-57))) 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 <= -2.25e-43) || !(z <= 1.8e-57)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.25e-43) or not (z <= 1.8e-57): tmp = x + (y * 3.13060547623) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.25e-43) || !(z <= 1.8e-57)) 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 <= -2.25e-43) || ~((z <= 1.8e-57))) tmp = x + (y * 3.13060547623); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.25e-43], N[Not[LessEqual[z, 1.8e-57]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.25 \cdot 10^{-43} \lor \neg \left(z \leq 1.8 \cdot 10^{-57}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -2.25000000000000012e-43 or 1.8000000000000001e-57 < z Initial program 24.8%
+-commutative24.8%
associate-*l/31.1%
fma-def31.1%
Simplified31.1%
Taylor expanded in z around inf 79.0%
+-commutative79.0%
*-commutative79.0%
Simplified79.0%
if -2.25000000000000012e-43 < z < 1.8000000000000001e-57Initial program 99.7%
+-commutative99.7%
associate-*l/99.7%
fma-def99.8%
Simplified99.8%
Taylor expanded in y around 0 38.3%
Final simplification62.3%
(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 55.5%
+-commutative55.5%
associate-*l/59.2%
fma-def59.3%
Simplified59.3%
Taylor expanded in y around 0 41.7%
Final simplification41.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
(+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
(/ y 1.0)))))
(if (< z -6.499344996252632e+53)
t_1
(if (< z 7.066965436914287e+59)
(+
x
(/
y
(/
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((3.13060547623d0 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
if (z < (-6.499344996252632d+53)) then
tmp = t_1
else if (z < 7.066965436914287d+59) then
tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)) tmp = 0 if z < -6.499344996252632e+53: tmp = t_1 elif z < 7.066965436914287e+59: tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0))) tmp = 0.0 if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)); tmp = 0.0; if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
\mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
herbie shell --seed 2023297
(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))))