
(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 15 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.4e+44)
(+
x
(/
y
(+
0.31942702700572795
(- (/ 3.7269864963038164 z) (/ (* t 0.10203362558171805) (* z z))))))
(if (<= z 1.6e+42)
(+
x
(*
(/
y
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)))
(+
x
(*
y
(+
3.13060547623
(-
(+ (/ t (* z z)) (/ 457.9610022158428 (* z z)))
(/ 36.52704169880642 z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.4e+44) {
tmp = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z)))));
} else if (z <= 1.6e+42) {
tmp = x + ((y / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b));
} else {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.4e+44) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(Float64(3.7269864963038164 / z) - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); elseif (z <= 1.6e+42) tmp = Float64(x + Float64(Float64(y / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) * fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(t / Float64(z * z)) + Float64(457.9610022158428 / Float64(z * z))) - Float64(36.52704169880642 / z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.4e+44], N[(x + N[(y / N[(0.31942702700572795 + N[(N[(3.7269864963038164 / z), $MachinePrecision] - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+42], N[(x + N[(N[(y / 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] * N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \left(\frac{3.7269864963038164}{z} - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+42}:\\
\;\;\;\;x + \frac{y}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \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 + y \cdot \left(3.13060547623 + \left(\left(\frac{t}{z \cdot z} + \frac{457.9610022158428}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\right)\\
\end{array}
\end{array}
if z < -2.40000000000000013e44Initial program 8.3%
associate-/l*9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
Simplified9.8%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
mul-1-neg99.9%
unsub-neg99.9%
associate-*r/99.9%
metadata-eval99.9%
+-commutative99.9%
*-commutative99.9%
fma-def99.9%
unpow299.9%
Simplified99.9%
Taylor expanded in t around inf 99.9%
associate-*r/99.9%
unpow299.9%
Simplified99.9%
if -2.40000000000000013e44 < z < 1.60000000000000001e42Initial 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 y around 0 99.7%
if 1.60000000000000001e42 < z Initial program 7.5%
associate-*l/12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
Simplified12.4%
Taylor expanded in z around -inf 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
*-commutative75.7%
fma-def75.7%
*-commutative75.7%
unpow275.7%
times-frac98.2%
distribute-rgt-out--98.2%
metadata-eval98.2%
+-commutative98.2%
fma-def98.2%
Simplified98.2%
Taylor expanded in y around 0 98.2%
associate--l+98.2%
+-commutative98.2%
unpow298.2%
associate-*r/98.2%
metadata-eval98.2%
unpow298.2%
associate-*r/98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification99.4%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(/
y
(/
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)
(fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))))
(+
x
(/
y
(+
0.31942702700572795
(- (/ 3.7269864963038164 z) (/ (* t 0.10203362558171805) (* z z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + (y / (fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)));
} else {
tmp = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z)))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(y / Float64(fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) / fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)))); else tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(Float64(3.7269864963038164 / z) - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(y / N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y / N[(0.31942702700572795 + N[(N[(3.7269864963038164 / z), $MachinePrecision] - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{y}{\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}}\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \left(\frac{3.7269864963038164}{z} - \frac{t \cdot 0.10203362558171805}{z \cdot z}\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 94.2%
associate-/l*97.2%
fma-def97.2%
fma-def97.2%
fma-def97.2%
fma-def97.2%
fma-def97.2%
fma-def97.2%
fma-def97.2%
Simplified97.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%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
fma-def0.0%
Simplified0.0%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
mul-1-neg99.9%
unsub-neg99.9%
associate-*r/99.9%
metadata-eval99.9%
+-commutative99.9%
*-commutative99.9%
fma-def99.9%
unpow299.9%
Simplified99.9%
Taylor expanded in t around inf 99.9%
associate-*r/99.9%
unpow299.9%
Simplified99.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.5e+44)
(+
x
(/
y
(+
0.31942702700572795
(- (/ 3.7269864963038164 z) (/ (* t 0.10203362558171805) (* z z))))))
(if (<= z 7e+37)
(+
x
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
0.607771387771
(* z (fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)))))
(+
x
(*
y
(+
3.13060547623
(-
(+ (/ t (* z z)) (/ 457.9610022158428 (* z z)))
(/ 36.52704169880642 z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.5e+44) {
tmp = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z)))));
} else if (z <= 7e+37) {
tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721))));
} else {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.5e+44) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(Float64(3.7269864963038164 / z) - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); elseif (z <= 7e+37) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(0.607771387771 + Float64(z * fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721))))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(t / Float64(z * z)) + Float64(457.9610022158428 / Float64(z * z))) - Float64(36.52704169880642 / z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.5e+44], N[(x + N[(y / N[(0.31942702700572795 + N[(N[(3.7269864963038164 / z), $MachinePrecision] - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+37], N[(x + N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.5 \cdot 10^{+44}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \left(\frac{3.7269864963038164}{z} - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+37}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{0.607771387771 + z \cdot \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(\left(\frac{t}{z \cdot z} + \frac{457.9610022158428}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\right)\\
\end{array}
\end{array}
if z < -2.4999999999999998e44Initial program 8.3%
associate-/l*9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
Simplified9.8%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
mul-1-neg99.9%
unsub-neg99.9%
associate-*r/99.9%
metadata-eval99.9%
+-commutative99.9%
*-commutative99.9%
fma-def99.9%
unpow299.9%
Simplified99.9%
Taylor expanded in t around inf 99.9%
associate-*r/99.9%
unpow299.9%
Simplified99.9%
if -2.4999999999999998e44 < z < 7e37Initial program 99.7%
expm1-log1p-u99.4%
expm1-udef99.4%
*-commutative99.4%
*-commutative99.4%
*-commutative99.4%
fma-udef99.4%
fma-udef99.4%
Applied egg-rr99.4%
expm1-def99.4%
expm1-log1p99.7%
Simplified99.7%
if 7e37 < z Initial program 7.5%
associate-*l/12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
Simplified12.4%
Taylor expanded in z around -inf 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
*-commutative75.7%
fma-def75.7%
*-commutative75.7%
unpow275.7%
times-frac98.2%
distribute-rgt-out--98.2%
metadata-eval98.2%
+-commutative98.2%
fma-def98.2%
Simplified98.2%
Taylor expanded in y around 0 98.2%
associate--l+98.2%
+-commutative98.2%
unpow298.2%
associate-*r/98.2%
metadata-eval98.2%
unpow298.2%
associate-*r/98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification99.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3.6e+45)
(+
x
(/
y
(+
0.31942702700572795
(- (/ 3.7269864963038164 z) (/ (* t 0.10203362558171805) (* z z))))))
(if (<= z 1.2e+39)
(+
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(+
x
(*
y
(+
3.13060547623
(-
(+ (/ t (* z z)) (/ 457.9610022158428 (* z z)))
(/ 36.52704169880642 z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.6e+45) {
tmp = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z)))));
} else if (z <= 1.2e+39) {
tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-3.6d+45)) then
tmp = x + (y / (0.31942702700572795d0 + ((3.7269864963038164d0 / z) - ((t * 0.10203362558171805d0) / (z * z)))))
else if (z <= 1.2d+39) then
tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0)) + x
else
tmp = x + (y * (3.13060547623d0 + (((t / (z * z)) + (457.9610022158428d0 / (z * z))) - (36.52704169880642d0 / z))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3.6e+45) {
tmp = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z)))));
} else if (z <= 1.2e+39) {
tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3.6e+45: tmp = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z))))) elif z <= 1.2e+39: tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x else: tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3.6e+45) tmp = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(Float64(3.7269864963038164 / z) - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))); elseif (z <= 1.2e+39) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(t / Float64(z * z)) + Float64(457.9610022158428 / Float64(z * z))) - Float64(36.52704169880642 / z))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -3.6e+45) tmp = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z))))); elseif (z <= 1.2e+39) tmp = ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x; else tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3.6e+45], N[(x + N[(y / N[(0.31942702700572795 + N[(N[(3.7269864963038164 / z), $MachinePrecision] - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e+39], N[(N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.6 \cdot 10^{+45}:\\
\;\;\;\;x + \frac{y}{0.31942702700572795 + \left(\frac{3.7269864963038164}{z} - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+39}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(\left(\frac{t}{z \cdot z} + \frac{457.9610022158428}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\right)\\
\end{array}
\end{array}
if z < -3.6e45Initial program 8.3%
associate-/l*9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
fma-def9.8%
Simplified9.8%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
mul-1-neg99.9%
unsub-neg99.9%
associate-*r/99.9%
metadata-eval99.9%
+-commutative99.9%
*-commutative99.9%
fma-def99.9%
unpow299.9%
Simplified99.9%
Taylor expanded in t around inf 99.9%
associate-*r/99.9%
unpow299.9%
Simplified99.9%
if -3.6e45 < z < 1.2e39Initial program 99.7%
if 1.2e39 < z Initial program 7.5%
associate-*l/12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
*-commutative12.4%
fma-def12.4%
Simplified12.4%
Taylor expanded in z around -inf 75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
*-commutative75.7%
fma-def75.7%
*-commutative75.7%
unpow275.7%
times-frac98.2%
distribute-rgt-out--98.2%
metadata-eval98.2%
+-commutative98.2%
fma-def98.2%
Simplified98.2%
Taylor expanded in y around 0 98.2%
associate--l+98.2%
+-commutative98.2%
unpow298.2%
associate-*r/98.2%
metadata-eval98.2%
unpow298.2%
associate-*r/98.2%
metadata-eval98.2%
Simplified98.2%
Final simplification99.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
y
(+
3.13060547623
(-
(+ (/ t (* z z)) (/ 457.9610022158428 (* z z)))
(/ 36.52704169880642 z)))))))
(if (<= z -5.5e+25)
t_1
(if (<= z 2.2e-57)
(+
x
(+
(* 1.6453555072203998 (* y b))
(*
z
(- (* 1.6453555072203998 (* y a)) (* (* y b) 32.324150453290734)))))
(if (<= z 4.8e+20)
(+
x
(/
y
(/
(+ 0.607771387771 (* z 11.9400905721))
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623))))))))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
double tmp;
if (z <= -5.5e+25) {
tmp = t_1;
} else if (z <= 2.2e-57) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 4.8e+20) {
tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))))));
} 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 + (((t / (z * z)) + (457.9610022158428d0 / (z * z))) - (36.52704169880642d0 / z))))
if (z <= (-5.5d+25)) then
tmp = t_1
else if (z <= 2.2d-57) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + (z * ((1.6453555072203998d0 * (y * a)) - ((y * b) * 32.324150453290734d0))))
else if (z <= 4.8d+20) then
tmp = x + (y / ((0.607771387771d0 + (z * 11.9400905721d0)) / (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0)))))))))
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 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
double tmp;
if (z <= -5.5e+25) {
tmp = t_1;
} else if (z <= 2.2e-57) {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
} else if (z <= 4.8e+20) {
tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))) tmp = 0 if z <= -5.5e+25: tmp = t_1 elif z <= 2.2e-57: tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))) elif z <= 4.8e+20: tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(t / Float64(z * z)) + Float64(457.9610022158428 / Float64(z * z))) - Float64(36.52704169880642 / z))))) tmp = 0.0 if (z <= -5.5e+25) tmp = t_1; elseif (z <= 2.2e-57) 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.8e+20) tmp = Float64(x + Float64(y / Float64(Float64(0.607771387771 + Float64(z * 11.9400905721)) / Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623)))))))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))); tmp = 0.0; if (z <= -5.5e+25) tmp = t_1; elseif (z <= 2.2e-57) tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))); elseif (z <= 4.8e+20) tmp = x + (y / ((0.607771387771 + (z * 11.9400905721)) / (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.5e+25], t$95$1, If[LessEqual[z, 2.2e-57], 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.8e+20], N[(x + N[(y / N[(N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision] / N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \left(3.13060547623 + \left(\left(\frac{t}{z \cdot z} + \frac{457.9610022158428}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\right)\\
\mathbf{if}\;z \leq -5.5 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-57}:\\
\;\;\;\;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.8 \cdot 10^{+20}:\\
\;\;\;\;x + \frac{y}{\frac{0.607771387771 + z \cdot 11.9400905721}{z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -5.50000000000000018e25 or 4.8e20 < z Initial program 10.9%
associate-*l/13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
fma-def13.1%
Simplified13.1%
Taylor expanded in z around -inf 82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
*-commutative82.5%
fma-def82.5%
*-commutative82.5%
unpow282.5%
times-frac98.6%
distribute-rgt-out--98.6%
metadata-eval98.6%
+-commutative98.6%
fma-def98.6%
Simplified98.6%
Taylor expanded in y around 0 98.6%
associate--l+98.6%
+-commutative98.6%
unpow298.6%
associate-*r/98.6%
metadata-eval98.6%
unpow298.6%
associate-*r/98.6%
metadata-eval98.6%
Simplified98.6%
if -5.50000000000000018e25 < z < 2.19999999999999999e-57Initial 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 88.5%
if 2.19999999999999999e-57 < z < 4.8e20Initial program 99.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 0 83.5%
Taylor expanded in z around 0 75.8%
*-commutative75.8%
Simplified75.8%
Final simplification92.2%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -12.6) (not (<= z 4.8e+20)))
(+
x
(*
y
(+
3.13060547623
(-
(+ (/ t (* z z)) (/ 457.9610022158428 (* z z)))
(/ 36.52704169880642 z)))))
(+
x
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -12.6) || !(z <= 4.8e+20)) {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
} else {
tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-12.6d0)) .or. (.not. (z <= 4.8d+20))) then
tmp = x + (y * (3.13060547623d0 + (((t / (z * z)) + (457.9610022158428d0 / (z * z))) - (36.52704169880642d0 / z))))
else
tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -12.6) || !(z <= 4.8e+20)) {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
} else {
tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -12.6) or not (z <= 4.8e+20): tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))) else: tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -12.6) || !(z <= 4.8e+20)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(t / Float64(z * z)) + Float64(457.9610022158428 / Float64(z * z))) - Float64(36.52704169880642 / z))))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -12.6) || ~((z <= 4.8e+20))) tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))); else tmp = x + ((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -12.6], N[Not[LessEqual[z, 4.8e+20]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -12.6 \lor \neg \left(z \leq 4.8 \cdot 10^{+20}\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(\left(\frac{t}{z \cdot z} + \frac{457.9610022158428}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -12.5999999999999996 or 4.8e20 < z Initial program 15.7%
associate-*l/17.8%
*-commutative17.8%
fma-def17.8%
*-commutative17.8%
fma-def17.8%
*-commutative17.8%
fma-def17.8%
*-commutative17.8%
fma-def17.8%
Simplified17.8%
Taylor expanded in z around -inf 80.4%
+-commutative80.4%
mul-1-neg80.4%
unsub-neg80.4%
*-commutative80.4%
fma-def80.4%
*-commutative80.4%
unpow280.4%
times-frac95.7%
distribute-rgt-out--95.7%
metadata-eval95.7%
+-commutative95.7%
fma-def95.7%
Simplified95.7%
Taylor expanded in y around 0 95.7%
associate--l+95.7%
+-commutative95.7%
unpow295.7%
associate-*r/95.7%
metadata-eval95.7%
unpow295.7%
associate-*r/95.7%
metadata-eval95.7%
Simplified95.7%
if -12.5999999999999996 < z < 4.8e20Initial program 99.7%
Taylor expanded in z around 0 97.6%
*-commutative97.6%
Simplified97.6%
Final simplification96.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
y
(+
3.13060547623
(-
(+ (/ t (* z z)) (/ 457.9610022158428 (* z z)))
(/ 36.52704169880642 z)))))))
(if (<= z -3450000000000.0)
t_1
(if (<= z 9e-57)
(+ x (* 1.6453555072203998 (* y b)))
(if (<= z 3.85e-19)
(+ x (* 1.6453555072203998 (* (* z z) (* y t))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
double tmp;
if (z <= -3450000000000.0) {
tmp = t_1;
} else if (z <= 9e-57) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 3.85e-19) {
tmp = x + (1.6453555072203998 * ((z * z) * (y * t)));
} 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 + (((t / (z * z)) + (457.9610022158428d0 / (z * z))) - (36.52704169880642d0 / z))))
if (z <= (-3450000000000.0d0)) then
tmp = t_1
else if (z <= 9d-57) then
tmp = x + (1.6453555072203998d0 * (y * b))
else if (z <= 3.85d-19) then
tmp = x + (1.6453555072203998d0 * ((z * z) * (y * t)))
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 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
double tmp;
if (z <= -3450000000000.0) {
tmp = t_1;
} else if (z <= 9e-57) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 3.85e-19) {
tmp = x + (1.6453555072203998 * ((z * z) * (y * t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))) tmp = 0 if z <= -3450000000000.0: tmp = t_1 elif z <= 9e-57: tmp = x + (1.6453555072203998 * (y * b)) elif z <= 3.85e-19: tmp = x + (1.6453555072203998 * ((z * z) * (y * t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(t / Float64(z * z)) + Float64(457.9610022158428 / Float64(z * z))) - Float64(36.52704169880642 / z))))) tmp = 0.0 if (z <= -3450000000000.0) tmp = t_1; elseif (z <= 9e-57) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); elseif (z <= 3.85e-19) tmp = Float64(x + Float64(1.6453555072203998 * Float64(Float64(z * z) * Float64(y * t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))); tmp = 0.0; if (z <= -3450000000000.0) tmp = t_1; elseif (z <= 9e-57) tmp = x + (1.6453555072203998 * (y * b)); elseif (z <= 3.85e-19) tmp = x + (1.6453555072203998 * ((z * z) * (y * t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3450000000000.0], t$95$1, If[LessEqual[z, 9e-57], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.85e-19], N[(x + N[(1.6453555072203998 * N[(N[(z * z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \left(3.13060547623 + \left(\left(\frac{t}{z \cdot z} + \frac{457.9610022158428}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\right)\\
\mathbf{if}\;z \leq -3450000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-57}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{elif}\;z \leq 3.85 \cdot 10^{-19}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(\left(z \cdot z\right) \cdot \left(y \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -3.45e12 or 3.85000000000000022e-19 < z Initial program 16.9%
associate-*l/19.0%
*-commutative19.0%
fma-def19.0%
*-commutative19.0%
fma-def19.0%
*-commutative19.0%
fma-def19.0%
*-commutative19.0%
fma-def19.0%
Simplified19.0%
Taylor expanded in z around -inf 80.0%
+-commutative80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
fma-def80.0%
*-commutative80.0%
unpow280.0%
times-frac95.1%
distribute-rgt-out--95.1%
metadata-eval95.1%
+-commutative95.1%
fma-def95.1%
Simplified95.1%
Taylor expanded in y around 0 95.1%
associate--l+95.1%
+-commutative95.1%
unpow295.1%
associate-*r/95.1%
metadata-eval95.1%
unpow295.1%
associate-*r/95.1%
metadata-eval95.1%
Simplified95.1%
if -3.45e12 < z < 8.99999999999999945e-57Initial 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 81.2%
*-commutative81.2%
Simplified81.2%
if 8.99999999999999945e-57 < z < 3.85000000000000022e-19Initial program 99.5%
Taylor expanded in t around inf 54.8%
*-commutative54.8%
associate-*l*60.4%
unpow260.4%
associate-*l*60.1%
Simplified60.1%
Taylor expanded in z around 0 54.9%
associate-*r*60.4%
*-commutative60.4%
unpow260.4%
Simplified60.4%
Final simplification87.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -5.5e+25) (not (<= z 4.8e+20)))
(+
x
(*
y
(+
3.13060547623
(-
(+ (/ t (* z z)) (/ 457.9610022158428 (* z z)))
(/ 36.52704169880642 z)))))
(+
x
(+
(* 1.6453555072203998 (* y b))
(*
z
(- (* 1.6453555072203998 (* y a)) (* (* y b) 32.324150453290734)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.5e+25) || !(z <= 4.8e+20)) {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-5.5d+25)) .or. (.not. (z <= 4.8d+20))) then
tmp = x + (y * (3.13060547623d0 + (((t / (z * z)) + (457.9610022158428d0 / (z * z))) - (36.52704169880642d0 / z))))
else
tmp = x + ((1.6453555072203998d0 * (y * b)) + (z * ((1.6453555072203998d0 * (y * a)) - ((y * b) * 32.324150453290734d0))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.5e+25) || !(z <= 4.8e+20)) {
tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z))));
} else {
tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.5e+25) or not (z <= 4.8e+20): tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))) else: tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.5e+25) || !(z <= 4.8e+20)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(t / Float64(z * z)) + Float64(457.9610022158428 / Float64(z * z))) - Float64(36.52704169880642 / z))))); else 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))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -5.5e+25) || ~((z <= 4.8e+20))) tmp = x + (y * (3.13060547623 + (((t / (z * z)) + (457.9610022158428 / (z * z))) - (36.52704169880642 / z)))); else tmp = x + ((1.6453555072203998 * (y * b)) + (z * ((1.6453555072203998 * (y * a)) - ((y * b) * 32.324150453290734)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.5e+25], N[Not[LessEqual[z, 4.8e+20]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.5 \cdot 10^{+25} \lor \neg \left(z \leq 4.8 \cdot 10^{+20}\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(\left(\frac{t}{z \cdot z} + \frac{457.9610022158428}{z \cdot z}\right) - \frac{36.52704169880642}{z}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;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)\\
\end{array}
\end{array}
if z < -5.50000000000000018e25 or 4.8e20 < z Initial program 10.9%
associate-*l/13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
fma-def13.1%
*-commutative13.1%
fma-def13.1%
Simplified13.1%
Taylor expanded in z around -inf 82.5%
+-commutative82.5%
mul-1-neg82.5%
unsub-neg82.5%
*-commutative82.5%
fma-def82.5%
*-commutative82.5%
unpow282.5%
times-frac98.6%
distribute-rgt-out--98.6%
metadata-eval98.6%
+-commutative98.6%
fma-def98.6%
Simplified98.6%
Taylor expanded in y around 0 98.6%
associate--l+98.6%
+-commutative98.6%
unpow298.6%
associate-*r/98.6%
metadata-eval98.6%
unpow298.6%
associate-*r/98.6%
metadata-eval98.6%
Simplified98.6%
if -5.50000000000000018e25 < z < 4.8e20Initial 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 82.6%
Final simplification90.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(/
y
(+
0.31942702700572795
(-
(/ 3.7269864963038164 z)
(/ (* t 0.10203362558171805) (* z z))))))))
(if (<= z -61.0)
t_1
(if (<= z 3.4e-56)
(+ x (* 1.6453555072203998 (* y b)))
(if (<= z 5.8e+22)
(+ x (* 1.6453555072203998 (* (* z z) (* y t))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z)))));
double tmp;
if (z <= -61.0) {
tmp = t_1;
} else if (z <= 3.4e-56) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 5.8e+22) {
tmp = x + (1.6453555072203998 * ((z * z) * (y * t)));
} 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 / (0.31942702700572795d0 + ((3.7269864963038164d0 / z) - ((t * 0.10203362558171805d0) / (z * z)))))
if (z <= (-61.0d0)) then
tmp = t_1
else if (z <= 3.4d-56) then
tmp = x + (1.6453555072203998d0 * (y * b))
else if (z <= 5.8d+22) then
tmp = x + (1.6453555072203998d0 * ((z * z) * (y * t)))
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 / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z)))));
double tmp;
if (z <= -61.0) {
tmp = t_1;
} else if (z <= 3.4e-56) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 5.8e+22) {
tmp = x + (1.6453555072203998 * ((z * z) * (y * t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z))))) tmp = 0 if z <= -61.0: tmp = t_1 elif z <= 3.4e-56: tmp = x + (1.6453555072203998 * (y * b)) elif z <= 5.8e+22: tmp = x + (1.6453555072203998 * ((z * z) * (y * t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y / Float64(0.31942702700572795 + Float64(Float64(3.7269864963038164 / z) - Float64(Float64(t * 0.10203362558171805) / Float64(z * z)))))) tmp = 0.0 if (z <= -61.0) tmp = t_1; elseif (z <= 3.4e-56) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); elseif (z <= 5.8e+22) tmp = Float64(x + Float64(1.6453555072203998 * Float64(Float64(z * z) * Float64(y * t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y / (0.31942702700572795 + ((3.7269864963038164 / z) - ((t * 0.10203362558171805) / (z * z))))); tmp = 0.0; if (z <= -61.0) tmp = t_1; elseif (z <= 3.4e-56) tmp = x + (1.6453555072203998 * (y * b)); elseif (z <= 5.8e+22) tmp = x + (1.6453555072203998 * ((z * z) * (y * t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y / N[(0.31942702700572795 + N[(N[(3.7269864963038164 / z), $MachinePrecision] - N[(N[(t * 0.10203362558171805), $MachinePrecision] / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -61.0], t$95$1, If[LessEqual[z, 3.4e-56], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.8e+22], N[(x + N[(1.6453555072203998 * N[(N[(z * z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{0.31942702700572795 + \left(\frac{3.7269864963038164}{z} - \frac{t \cdot 0.10203362558171805}{z \cdot z}\right)}\\
\mathbf{if}\;z \leq -61:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-56}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{+22}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(\left(z \cdot z\right) \cdot \left(y \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -61 or 5.8e22 < z Initial program 15.0%
associate-/l*18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
Simplified18.7%
Taylor expanded in z around inf 94.2%
+-commutative94.2%
mul-1-neg94.2%
unsub-neg94.2%
associate-*r/94.2%
metadata-eval94.2%
+-commutative94.2%
*-commutative94.2%
fma-def94.2%
unpow294.2%
Simplified94.2%
Taylor expanded in t around inf 94.2%
associate-*r/94.2%
unpow294.2%
Simplified94.2%
if -61 < z < 3.39999999999999982e-56Initial 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 83.3%
*-commutative83.3%
Simplified83.3%
if 3.39999999999999982e-56 < z < 5.8e22Initial program 99.5%
Taylor expanded in t around inf 48.0%
*-commutative48.0%
associate-*l*51.9%
unpow251.9%
associate-*l*51.8%
Simplified51.8%
Taylor expanded in z around 0 44.3%
associate-*r*48.2%
*-commutative48.2%
unpow248.2%
Simplified48.2%
Final simplification85.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ y 0.31942702700572795))))
(if (<= z -2.75e+14)
t_1
(if (<= z 1.7e-57)
(+ x (* 1.6453555072203998 (* y b)))
(if (<= z 4.2e+27)
(+ x (* 1.6453555072203998 (* (* z z) (* y t))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / 0.31942702700572795);
double tmp;
if (z <= -2.75e+14) {
tmp = t_1;
} else if (z <= 1.7e-57) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 4.2e+27) {
tmp = x + (1.6453555072203998 * ((z * z) * (y * t)));
} 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 / 0.31942702700572795d0)
if (z <= (-2.75d+14)) then
tmp = t_1
else if (z <= 1.7d-57) then
tmp = x + (1.6453555072203998d0 * (y * b))
else if (z <= 4.2d+27) then
tmp = x + (1.6453555072203998d0 * ((z * z) * (y * t)))
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 / 0.31942702700572795);
double tmp;
if (z <= -2.75e+14) {
tmp = t_1;
} else if (z <= 1.7e-57) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 4.2e+27) {
tmp = x + (1.6453555072203998 * ((z * z) * (y * t)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y / 0.31942702700572795) tmp = 0 if z <= -2.75e+14: tmp = t_1 elif z <= 1.7e-57: tmp = x + (1.6453555072203998 * (y * b)) elif z <= 4.2e+27: tmp = x + (1.6453555072203998 * ((z * z) * (y * t))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y / 0.31942702700572795)) tmp = 0.0 if (z <= -2.75e+14) tmp = t_1; elseif (z <= 1.7e-57) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); elseif (z <= 4.2e+27) tmp = Float64(x + Float64(1.6453555072203998 * Float64(Float64(z * z) * Float64(y * t)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y / 0.31942702700572795); tmp = 0.0; if (z <= -2.75e+14) tmp = t_1; elseif (z <= 1.7e-57) tmp = x + (1.6453555072203998 * (y * b)); elseif (z <= 4.2e+27) tmp = x + (1.6453555072203998 * ((z * z) * (y * t))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.75e+14], t$95$1, If[LessEqual[z, 1.7e-57], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+27], N[(x + N[(1.6453555072203998 * N[(N[(z * z), $MachinePrecision] * N[(y * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{0.31942702700572795}\\
\mathbf{if}\;z \leq -2.75 \cdot 10^{+14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-57}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+27}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(\left(z \cdot z\right) \cdot \left(y \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -2.75e14 or 4.19999999999999989e27 < z Initial program 12.3%
associate-/l*16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
fma-def16.1%
Simplified16.1%
Taylor expanded in z around inf 96.2%
if -2.75e14 < z < 1.70000000000000008e-57Initial 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 81.2%
*-commutative81.2%
Simplified81.2%
if 1.70000000000000008e-57 < z < 4.19999999999999989e27Initial program 99.5%
Taylor expanded in t around inf 48.0%
*-commutative48.0%
associate-*l*51.9%
unpow251.9%
associate-*l*51.8%
Simplified51.8%
Taylor expanded in z around 0 44.3%
associate-*r*48.2%
*-commutative48.2%
unpow248.2%
Simplified48.2%
Final simplification85.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ y 0.31942702700572795))))
(if (<= z -3.9e+15)
t_1
(if (<= z 8.5e-57)
(+ x (* 1.6453555072203998 (* y b)))
(if (<= z 2.35e+45) (+ x (* 1.6453555072203998 (* a (* y z)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / 0.31942702700572795);
double tmp;
if (z <= -3.9e+15) {
tmp = t_1;
} else if (z <= 8.5e-57) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 2.35e+45) {
tmp = x + (1.6453555072203998 * (a * (y * z)));
} 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 / 0.31942702700572795d0)
if (z <= (-3.9d+15)) then
tmp = t_1
else if (z <= 8.5d-57) then
tmp = x + (1.6453555072203998d0 * (y * b))
else if (z <= 2.35d+45) then
tmp = x + (1.6453555072203998d0 * (a * (y * z)))
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 / 0.31942702700572795);
double tmp;
if (z <= -3.9e+15) {
tmp = t_1;
} else if (z <= 8.5e-57) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 2.35e+45) {
tmp = x + (1.6453555072203998 * (a * (y * z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y / 0.31942702700572795) tmp = 0 if z <= -3.9e+15: tmp = t_1 elif z <= 8.5e-57: tmp = x + (1.6453555072203998 * (y * b)) elif z <= 2.35e+45: tmp = x + (1.6453555072203998 * (a * (y * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y / 0.31942702700572795)) tmp = 0.0 if (z <= -3.9e+15) tmp = t_1; elseif (z <= 8.5e-57) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); elseif (z <= 2.35e+45) tmp = Float64(x + Float64(1.6453555072203998 * Float64(a * Float64(y * z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y / 0.31942702700572795); tmp = 0.0; if (z <= -3.9e+15) tmp = t_1; elseif (z <= 8.5e-57) tmp = x + (1.6453555072203998 * (y * b)); elseif (z <= 2.35e+45) tmp = x + (1.6453555072203998 * (a * (y * z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.9e+15], t$95$1, If[LessEqual[z, 8.5e-57], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.35e+45], N[(x + N[(1.6453555072203998 * N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{0.31942702700572795}\\
\mathbf{if}\;z \leq -3.9 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-57}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{elif}\;z \leq 2.35 \cdot 10^{+45}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(a \cdot \left(y \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -3.9e15 or 2.35000000000000001e45 < z Initial program 9.5%
associate-/l*12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
Simplified12.7%
Taylor expanded in z around inf 97.4%
if -3.9e15 < z < 8.49999999999999955e-57Initial 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 81.2%
*-commutative81.2%
Simplified81.2%
if 8.49999999999999955e-57 < z < 2.35000000000000001e45Initial program 93.1%
Taylor expanded in a around inf 56.3%
Taylor expanded in z around 0 53.2%
Final simplification85.4%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (/ y 0.31942702700572795))))
(if (<= z -17500000000000.0)
t_1
(if (<= z 2.4e-56)
(+ x (* 1.6453555072203998 (* y b)))
(if (<= z 2.4e+45) (+ x (/ y (/ 0.607771387771 (* z a)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y / 0.31942702700572795);
double tmp;
if (z <= -17500000000000.0) {
tmp = t_1;
} else if (z <= 2.4e-56) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 2.4e+45) {
tmp = x + (y / (0.607771387771 / (z * a)));
} 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 / 0.31942702700572795d0)
if (z <= (-17500000000000.0d0)) then
tmp = t_1
else if (z <= 2.4d-56) then
tmp = x + (1.6453555072203998d0 * (y * b))
else if (z <= 2.4d+45) then
tmp = x + (y / (0.607771387771d0 / (z * a)))
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 / 0.31942702700572795);
double tmp;
if (z <= -17500000000000.0) {
tmp = t_1;
} else if (z <= 2.4e-56) {
tmp = x + (1.6453555072203998 * (y * b));
} else if (z <= 2.4e+45) {
tmp = x + (y / (0.607771387771 / (z * a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y / 0.31942702700572795) tmp = 0 if z <= -17500000000000.0: tmp = t_1 elif z <= 2.4e-56: tmp = x + (1.6453555072203998 * (y * b)) elif z <= 2.4e+45: tmp = x + (y / (0.607771387771 / (z * a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y / 0.31942702700572795)) tmp = 0.0 if (z <= -17500000000000.0) tmp = t_1; elseif (z <= 2.4e-56) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); elseif (z <= 2.4e+45) tmp = Float64(x + Float64(y / Float64(0.607771387771 / Float64(z * a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y / 0.31942702700572795); tmp = 0.0; if (z <= -17500000000000.0) tmp = t_1; elseif (z <= 2.4e-56) tmp = x + (1.6453555072203998 * (y * b)); elseif (z <= 2.4e+45) tmp = x + (y / (0.607771387771 / (z * a))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -17500000000000.0], t$95$1, If[LessEqual[z, 2.4e-56], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+45], N[(x + N[(y / N[(0.607771387771 / N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \frac{y}{0.31942702700572795}\\
\mathbf{if}\;z \leq -17500000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-56}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+45}:\\
\;\;\;\;x + \frac{y}{\frac{0.607771387771}{z \cdot a}}\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.75e13 or 2.39999999999999989e45 < z Initial program 9.5%
associate-/l*12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
fma-def12.7%
Simplified12.7%
Taylor expanded in z around inf 97.4%
if -1.75e13 < z < 2.40000000000000001e-56Initial 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 81.2%
*-commutative81.2%
Simplified81.2%
if 2.40000000000000001e-56 < z < 2.39999999999999989e45Initial program 93.1%
associate-/l*96.4%
fma-def96.4%
fma-def96.4%
fma-def96.4%
fma-def96.4%
fma-def96.4%
fma-def96.4%
fma-def96.4%
Simplified96.4%
Taylor expanded in b around 0 81.4%
Taylor expanded in z around 0 53.3%
*-commutative53.3%
Simplified53.3%
Final simplification85.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2e+15) (not (<= z 350.0))) (+ x (/ y 0.31942702700572795)) (+ x (* 1.6453555072203998 (* y b)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2e+15) || !(z <= 350.0)) {
tmp = x + (y / 0.31942702700572795);
} 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 <= (-2d+15)) .or. (.not. (z <= 350.0d0))) then
tmp = x + (y / 0.31942702700572795d0)
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 <= -2e+15) || !(z <= 350.0)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x + (1.6453555072203998 * (y * b));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2e+15) or not (z <= 350.0): tmp = x + (y / 0.31942702700572795) else: tmp = x + (1.6453555072203998 * (y * b)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2e+15) || !(z <= 350.0)) tmp = Float64(x + Float64(y / 0.31942702700572795)); 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 <= -2e+15) || ~((z <= 350.0))) tmp = x + (y / 0.31942702700572795); else tmp = x + (1.6453555072203998 * (y * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2e+15], N[Not[LessEqual[z, 350.0]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+15} \lor \neg \left(z \leq 350\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\end{array}
if z < -2e15 or 350 < z Initial program 15.0%
associate-/l*18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
fma-def18.7%
Simplified18.7%
Taylor expanded in z around inf 94.1%
if -2e15 < z < 350Initial 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 73.0%
*-commutative73.0%
Simplified73.0%
Final simplification83.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.65e-61) (not (<= z 3e-139))) (+ x (/ y 0.31942702700572795)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.65e-61) || !(z <= 3e-139)) {
tmp = x + (y / 0.31942702700572795);
} 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 <= (-1.65d-61)) .or. (.not. (z <= 3d-139))) then
tmp = x + (y / 0.31942702700572795d0)
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 <= -1.65e-61) || !(z <= 3e-139)) {
tmp = x + (y / 0.31942702700572795);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.65e-61) or not (z <= 3e-139): tmp = x + (y / 0.31942702700572795) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.65e-61) || !(z <= 3e-139)) tmp = Float64(x + Float64(y / 0.31942702700572795)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.65e-61) || ~((z <= 3e-139))) tmp = x + (y / 0.31942702700572795); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.65e-61], N[Not[LessEqual[z, 3e-139]], $MachinePrecision]], N[(x + N[(y / 0.31942702700572795), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.65 \cdot 10^{-61} \lor \neg \left(z \leq 3 \cdot 10^{-139}\right):\\
\;\;\;\;x + \frac{y}{0.31942702700572795}\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.64999999999999998e-61 or 2.9999999999999999e-139 < z Initial program 40.3%
associate-/l*42.9%
fma-def42.9%
fma-def42.9%
fma-def42.9%
fma-def42.9%
fma-def42.9%
fma-def42.9%
fma-def42.9%
Simplified42.9%
Taylor expanded in z around inf 73.0%
if -1.64999999999999998e-61 < z < 2.9999999999999999e-139Initial 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 z around inf 47.3%
Taylor expanded in x around inf 58.4%
Final simplification68.9%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 57.0%
associate-/l*58.9%
fma-def58.9%
fma-def58.9%
fma-def58.9%
fma-def58.9%
fma-def58.9%
fma-def58.9%
fma-def58.9%
Simplified58.9%
Taylor expanded in z around inf 65.8%
Taylor expanded in x around inf 45.3%
Final simplification45.3%
(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 2023271
(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))))