
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -9.2e+29) (not (<= z 2.2e+18)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
(+ t 457.9610022158428)
(/
(+ (+ -6976.8927133548 (* t -15.234687407)) (+ a 1112.0901850848957))
z))
z)
36.52704169880642)
z))
x)
(fma
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(/
y
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -9.2e+29) || !(z <= 2.2e+18)) {
tmp = fma(y, (3.13060547623 + (((((t + 457.9610022158428) + (((-6976.8927133548 + (t * -15.234687407)) + (a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x);
} else {
tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), (y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -9.2e+29) || !(z <= 2.2e+18)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(-6976.8927133548 + Float64(t * -15.234687407)) + Float64(a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x); else tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), Float64(y / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -9.2e+29], N[Not[LessEqual[z, 2.2e+18]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision] + N[(a + 1112.0901850848957), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] * N[(y / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.2 \cdot 10^{+29} \lor \neg \left(z \leq 2.2 \cdot 10^{+18}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(-6976.8927133548 + t \cdot -15.234687407\right) + \left(a + 1112.0901850848957\right)}{z}}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), \frac{y}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\end{array}
\end{array}
if z < -9.2000000000000004e29 or 2.2e18 < z Initial program 5.8%
Simplified8.7%
Taylor expanded in z around -inf 100.0%
Simplified100.0%
if -9.2000000000000004e29 < z < 2.2e18Initial program 98.9%
Simplified99.6%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2.05e+33) (not (<= z 3.1e+18)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
(+ t 457.9610022158428)
(/
(+ (+ -6976.8927133548 (* t -15.234687407)) (+ a 1112.0901850848957))
z))
z)
36.52704169880642)
z))
x)
(fma
y
(/
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.05e+33) || !(z <= 3.1e+18)) {
tmp = fma(y, (3.13060547623 + (((((t + 457.9610022158428) + (((-6976.8927133548 + (t * -15.234687407)) + (a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x);
} else {
tmp = fma(y, (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.05e+33) || !(z <= 3.1e+18)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(-6976.8927133548 + Float64(t * -15.234687407)) + Float64(a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x); else tmp = fma(y, Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.05e+33], N[Not[LessEqual[z, 3.1e+18]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision] + N[(a + 1112.0901850848957), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.05 \cdot 10^{+33} \lor \neg \left(z \leq 3.1 \cdot 10^{+18}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(-6976.8927133548 + t \cdot -15.234687407\right) + \left(a + 1112.0901850848957\right)}{z}}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\end{array}
\end{array}
if z < -2.04999999999999997e33 or 3.1e18 < z Initial program 5.8%
Simplified8.0%
Taylor expanded in z around -inf 100.0%
Simplified100.0%
if -2.04999999999999997e33 < z < 3.1e18Initial program 98.2%
Simplified99.6%
Final simplification99.8%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -6.2e+29) (not (<= z 1.56e+18)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
(+ t 457.9610022158428)
(/
(+ (+ -6976.8927133548 (* t -15.234687407)) (+ a 1112.0901850848957))
z))
z)
36.52704169880642)
z))
x)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+
11.9400905721
(*
z
(+
31.4690115749
(* z (/ (fma z z -232.09570038900438) (- z 15.234687407))))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -6.2e+29) || !(z <= 1.56e+18)) {
tmp = fma(y, (3.13060547623 + (((((t + 457.9610022158428) + (((-6976.8927133548 + (t * -15.234687407)) + (a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (fma(z, z, -232.09570038900438) / (z - 15.234687407)))))))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -6.2e+29) || !(z <= 1.56e+18)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(-6976.8927133548 + Float64(t * -15.234687407)) + Float64(a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(fma(z, z, -232.09570038900438) / Float64(z - 15.234687407)))))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -6.2e+29], N[Not[LessEqual[z, 1.56e+18]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision] + N[(a + 1112.0901850848957), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * N[(b + 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] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(N[(z * z + -232.09570038900438), $MachinePrecision] / N[(z - 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.2 \cdot 10^{+29} \lor \neg \left(z \leq 1.56 \cdot 10^{+18}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(-6976.8927133548 + t \cdot -15.234687407\right) + \left(a + 1112.0901850848957\right)}{z}}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \frac{\mathsf{fma}\left(z, z, -232.09570038900438\right)}{z - 15.234687407}\right)\right)}\\
\end{array}
\end{array}
if z < -6.1999999999999998e29 or 1.56e18 < z Initial program 5.8%
Simplified8.7%
Taylor expanded in z around -inf 100.0%
Simplified100.0%
if -6.1999999999999998e29 < z < 1.56e18Initial program 98.9%
flip-+98.9%
fma-neg98.9%
metadata-eval98.9%
metadata-eval98.9%
Applied egg-rr98.9%
Final simplification99.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.02e+30) (not (<= z 2.45e+18)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
(+ t 457.9610022158428)
(/
(+ (+ -6976.8927133548 (* t -15.234687407)) (+ a 1112.0901850848957))
z))
z)
36.52704169880642)
z))
x)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.02e+30) || !(z <= 2.45e+18)) {
tmp = fma(y, (3.13060547623 + (((((t + 457.9610022158428) + (((-6976.8927133548 + (t * -15.234687407)) + (a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.02e+30) || !(z <= 2.45e+18)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(-6976.8927133548 + Float64(t * -15.234687407)) + Float64(a + 1112.0901850848957)) / z)) / z) - 36.52704169880642) / z)), x); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.02e+30], N[Not[LessEqual[z, 2.45e+18]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(-6976.8927133548 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision] + N[(a + 1112.0901850848957), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * N[(b + 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] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{+30} \lor \neg \left(z \leq 2.45 \cdot 10^{+18}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(-6976.8927133548 + t \cdot -15.234687407\right) + \left(a + 1112.0901850848957\right)}{z}}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -1.02e30 or 2.45e18 < z Initial program 5.8%
Simplified8.7%
Taylor expanded in z around -inf 100.0%
Simplified100.0%
if -1.02e30 < z < 2.45e18Initial program 98.9%
Final simplification99.4%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.4e+32) (not (<= z 1.45e+56)))
(fma
y
(+ 3.13060547623 (/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))
x)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.4e+32) || !(z <= 1.45e+56)) {
tmp = fma(y, (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)), x);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.4e+32) || !(z <= 1.45e+56)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)), x); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.4e+32], N[Not[LessEqual[z, 1.45e+56]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * N[(b + 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] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+32} \lor \neg \left(z \leq 1.45 \cdot 10^{+56}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -1.4e32 or 1.45000000000000004e56 < z Initial program 3.6%
Simplified6.6%
Taylor expanded in z around -inf 97.7%
mul-1-neg97.7%
unsub-neg97.7%
mul-1-neg97.7%
unsub-neg97.7%
+-commutative97.7%
Simplified97.7%
if -1.4e32 < z < 1.45000000000000004e56Initial program 98.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -1.1e+34) (not (<= z 2.6e+56)))
(+ x (* y 3.13060547623))
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.1e+34) || !(z <= 2.6e+56)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
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.1d+34)) .or. (.not. (z <= 2.6d+56))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0))))))))
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.1e+34) || !(z <= 2.6e+56)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.1e+34) or not (z <= 2.6e+56): tmp = x + (y * 3.13060547623) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.1e+34) || !(z <= 2.6e+56)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.1e+34) || ~((z <= 2.6e+56))) tmp = x + (y * 3.13060547623); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.1e+34], N[Not[LessEqual[z, 2.6e+56]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + 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] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.1 \cdot 10^{+34} \lor \neg \left(z \leq 2.6 \cdot 10^{+56}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -1.1000000000000001e34 or 2.60000000000000011e56 < z Initial program 3.6%
Simplified5.8%
Taylor expanded in z around inf 93.9%
+-commutative93.9%
Simplified93.9%
if -1.1000000000000001e34 < z < 2.60000000000000011e56Initial program 98.2%
Final simplification96.1%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -2.75e+34) (not (<= z 1.45e+57)))
(+ x (* y 3.13060547623))
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
0.607771387771
(*
z
(+ 11.9400905721 (* z (+ 31.4690115749 (* z (+ z 15.234687407)))))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.75e+34) || !(z <= 1.45e+57)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
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.75d+34)) .or. (.not. (z <= 1.45d+57))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * (31.4690115749d0 + (z * (z + 15.234687407d0))))))))
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.75e+34) || !(z <= 1.45e+57)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407))))))));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.75e+34) or not (z <= 1.45e+57): tmp = x + (y * 3.13060547623) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.75e+34) || !(z <= 1.45e+57)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * Float64(31.4690115749 + Float64(z * Float64(z + 15.234687407))))))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2.75e+34) || ~((z <= 1.45e+57))) tmp = x + (y * 3.13060547623); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * (31.4690115749 + (z * (z + 15.234687407)))))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.75e+34], N[Not[LessEqual[z, 1.45e+57]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * N[(31.4690115749 + N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.75 \cdot 10^{+34} \lor \neg \left(z \leq 1.45 \cdot 10^{+57}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot \left(31.4690115749 + z \cdot \left(z + 15.234687407\right)\right)\right)}\\
\end{array}
\end{array}
if z < -2.7499999999999998e34 or 1.4500000000000001e57 < z Initial program 3.6%
Simplified5.8%
Taylor expanded in z around inf 93.9%
+-commutative93.9%
Simplified93.9%
if -2.7499999999999998e34 < z < 1.4500000000000001e57Initial program 98.2%
Taylor expanded in z around 0 97.5%
*-commutative97.5%
Simplified97.5%
Final simplification95.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(-
x
(-
(*
z
(- (* (* y b) 32.324150453290734) (* 1.6453555072203998 (* y a))))
(* 1.6453555072203998 (* y b))))))
(if (<= z -1.95e+15)
(-
x
(-
(* y -3.13060547623)
(/ (+ (* y -36.52704169880642) (/ (* y (+ t 457.9610022158428)) z)) z)))
(if (<= z -6.2e-157)
t_1
(if (<= z 2.75e-208)
(*
y
(+
(/ x y)
(+
(* b 1.6453555072203998)
(* z (- (* a 1.6453555072203998) (* b 32.324150453290734))))))
(if (<= z 38.0)
t_1
(-
(+ x (+ (* y 3.13060547623) (* 11.1667541262 (/ y z))))
(* (/ y z) 47.69379582500642))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - (1.6453555072203998 * (y * b)));
double tmp;
if (z <= -1.95e+15) {
tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z));
} else if (z <= -6.2e-157) {
tmp = t_1;
} else if (z <= 2.75e-208) {
tmp = y * ((x / y) + ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734)))));
} else if (z <= 38.0) {
tmp = t_1;
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
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 - ((z * (((y * b) * 32.324150453290734d0) - (1.6453555072203998d0 * (y * a)))) - (1.6453555072203998d0 * (y * b)))
if (z <= (-1.95d+15)) then
tmp = x - ((y * (-3.13060547623d0)) - (((y * (-36.52704169880642d0)) + ((y * (t + 457.9610022158428d0)) / z)) / z))
else if (z <= (-6.2d-157)) then
tmp = t_1
else if (z <= 2.75d-208) then
tmp = y * ((x / y) + ((b * 1.6453555072203998d0) + (z * ((a * 1.6453555072203998d0) - (b * 32.324150453290734d0)))))
else if (z <= 38.0d0) then
tmp = t_1
else
tmp = (x + ((y * 3.13060547623d0) + (11.1667541262d0 * (y / z)))) - ((y / z) * 47.69379582500642d0)
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 - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - (1.6453555072203998 * (y * b)));
double tmp;
if (z <= -1.95e+15) {
tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z));
} else if (z <= -6.2e-157) {
tmp = t_1;
} else if (z <= 2.75e-208) {
tmp = y * ((x / y) + ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734)))));
} else if (z <= 38.0) {
tmp = t_1;
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - (1.6453555072203998 * (y * b))) tmp = 0 if z <= -1.95e+15: tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z)) elif z <= -6.2e-157: tmp = t_1 elif z <= 2.75e-208: tmp = y * ((x / y) + ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734))))) elif z <= 38.0: tmp = t_1 else: tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(Float64(z * Float64(Float64(Float64(y * b) * 32.324150453290734) - Float64(1.6453555072203998 * Float64(y * a)))) - Float64(1.6453555072203998 * Float64(y * b)))) tmp = 0.0 if (z <= -1.95e+15) tmp = Float64(x - Float64(Float64(y * -3.13060547623) - Float64(Float64(Float64(y * -36.52704169880642) + Float64(Float64(y * Float64(t + 457.9610022158428)) / z)) / z))); elseif (z <= -6.2e-157) tmp = t_1; elseif (z <= 2.75e-208) tmp = Float64(y * Float64(Float64(x / y) + Float64(Float64(b * 1.6453555072203998) + Float64(z * Float64(Float64(a * 1.6453555072203998) - Float64(b * 32.324150453290734)))))); elseif (z <= 38.0) tmp = t_1; else tmp = Float64(Float64(x + Float64(Float64(y * 3.13060547623) + Float64(11.1667541262 * Float64(y / z)))) - Float64(Float64(y / z) * 47.69379582500642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - (1.6453555072203998 * (y * b))); tmp = 0.0; if (z <= -1.95e+15) tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z)); elseif (z <= -6.2e-157) tmp = t_1; elseif (z <= 2.75e-208) tmp = y * ((x / y) + ((b * 1.6453555072203998) + (z * ((a * 1.6453555072203998) - (b * 32.324150453290734))))); elseif (z <= 38.0) tmp = t_1; else tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x - N[(N[(z * N[(N[(N[(y * b), $MachinePrecision] * 32.324150453290734), $MachinePrecision] - N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.95e+15], N[(x - N[(N[(y * -3.13060547623), $MachinePrecision] - N[(N[(N[(y * -36.52704169880642), $MachinePrecision] + N[(N[(y * N[(t + 457.9610022158428), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.2e-157], t$95$1, If[LessEqual[z, 2.75e-208], N[(y * N[(N[(x / y), $MachinePrecision] + N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] - N[(b * 32.324150453290734), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 38.0], t$95$1, N[(N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y / z), $MachinePrecision] * 47.69379582500642), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - \left(z \cdot \left(\left(y \cdot b\right) \cdot 32.324150453290734 - 1.6453555072203998 \cdot \left(y \cdot a\right)\right) - 1.6453555072203998 \cdot \left(y \cdot b\right)\right)\\
\mathbf{if}\;z \leq -1.95 \cdot 10^{+15}:\\
\;\;\;\;x - \left(y \cdot -3.13060547623 - \frac{y \cdot -36.52704169880642 + \frac{y \cdot \left(t + 457.9610022158428\right)}{z}}{z}\right)\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{-157}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.75 \cdot 10^{-208}:\\
\;\;\;\;y \cdot \left(\frac{x}{y} + \left(b \cdot 1.6453555072203998 + z \cdot \left(a \cdot 1.6453555072203998 - b \cdot 32.324150453290734\right)\right)\right)\\
\mathbf{elif}\;z \leq 38:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x + \left(y \cdot 3.13060547623 + 11.1667541262 \cdot \frac{y}{z}\right)\right) - \frac{y}{z} \cdot 47.69379582500642\\
\end{array}
\end{array}
if z < -1.95e15Initial program 10.0%
Simplified14.5%
Taylor expanded in y around -inf 14.5%
Taylor expanded in z around -inf 80.4%
Taylor expanded in x around 0 92.5%
if -1.95e15 < z < -6.1999999999999996e-157 or 2.7499999999999998e-208 < z < 38Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-lft-neg-in99.6%
remove-double-neg99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 84.3%
if -6.1999999999999996e-157 < z < 2.7499999999999998e-208Initial program 99.8%
Simplified99.6%
Taylor expanded in y around -inf 97.6%
Taylor expanded in z around 0 97.9%
if 38 < z Initial program 11.1%
Simplified13.6%
Taylor expanded in z around inf 89.8%
Final simplification90.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 1.6453555072203998 (* y b))))
(if (<= z -7e+16)
(-
x
(-
(* y -3.13060547623)
(/ (+ (* y -36.52704169880642) (/ (* y (+ t 457.9610022158428)) z)) z)))
(if (<= z -3.2e-189)
(-
x
(-
(*
z
(- (* (* y b) 32.324150453290734) (* 1.6453555072203998 (* y a))))
t_1))
(if (<= z 3.25)
(+ x (+ t_1 (* -32.324150453290734 (* b (* z y)))))
(-
(+ x (+ (* y 3.13060547623) (* 11.1667541262 (/ y z))))
(* (/ y z) 47.69379582500642)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.6453555072203998 * (y * b);
double tmp;
if (z <= -7e+16) {
tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z));
} else if (z <= -3.2e-189) {
tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1);
} else if (z <= 3.25) {
tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
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 = 1.6453555072203998d0 * (y * b)
if (z <= (-7d+16)) then
tmp = x - ((y * (-3.13060547623d0)) - (((y * (-36.52704169880642d0)) + ((y * (t + 457.9610022158428d0)) / z)) / z))
else if (z <= (-3.2d-189)) then
tmp = x - ((z * (((y * b) * 32.324150453290734d0) - (1.6453555072203998d0 * (y * a)))) - t_1)
else if (z <= 3.25d0) then
tmp = x + (t_1 + ((-32.324150453290734d0) * (b * (z * y))))
else
tmp = (x + ((y * 3.13060547623d0) + (11.1667541262d0 * (y / z)))) - ((y / z) * 47.69379582500642d0)
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 = 1.6453555072203998 * (y * b);
double tmp;
if (z <= -7e+16) {
tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z));
} else if (z <= -3.2e-189) {
tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1);
} else if (z <= 3.25) {
tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.6453555072203998 * (y * b) tmp = 0 if z <= -7e+16: tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z)) elif z <= -3.2e-189: tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1) elif z <= 3.25: tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y)))) else: tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.6453555072203998 * Float64(y * b)) tmp = 0.0 if (z <= -7e+16) tmp = Float64(x - Float64(Float64(y * -3.13060547623) - Float64(Float64(Float64(y * -36.52704169880642) + Float64(Float64(y * Float64(t + 457.9610022158428)) / z)) / z))); elseif (z <= -3.2e-189) tmp = Float64(x - Float64(Float64(z * Float64(Float64(Float64(y * b) * 32.324150453290734) - Float64(1.6453555072203998 * Float64(y * a)))) - t_1)); elseif (z <= 3.25) tmp = Float64(x + Float64(t_1 + Float64(-32.324150453290734 * Float64(b * Float64(z * y))))); else tmp = Float64(Float64(x + Float64(Float64(y * 3.13060547623) + Float64(11.1667541262 * Float64(y / z)))) - Float64(Float64(y / z) * 47.69379582500642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.6453555072203998 * (y * b); tmp = 0.0; if (z <= -7e+16) tmp = x - ((y * -3.13060547623) - (((y * -36.52704169880642) + ((y * (t + 457.9610022158428)) / z)) / z)); elseif (z <= -3.2e-189) tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1); elseif (z <= 3.25) tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y)))); else tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7e+16], N[(x - N[(N[(y * -3.13060547623), $MachinePrecision] - N[(N[(N[(y * -36.52704169880642), $MachinePrecision] + N[(N[(y * N[(t + 457.9610022158428), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.2e-189], N[(x - N[(N[(z * N[(N[(N[(y * b), $MachinePrecision] * 32.324150453290734), $MachinePrecision] - N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.25], N[(x + N[(t$95$1 + N[(-32.324150453290734 * N[(b * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y / z), $MachinePrecision] * 47.69379582500642), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{if}\;z \leq -7 \cdot 10^{+16}:\\
\;\;\;\;x - \left(y \cdot -3.13060547623 - \frac{y \cdot -36.52704169880642 + \frac{y \cdot \left(t + 457.9610022158428\right)}{z}}{z}\right)\\
\mathbf{elif}\;z \leq -3.2 \cdot 10^{-189}:\\
\;\;\;\;x - \left(z \cdot \left(\left(y \cdot b\right) \cdot 32.324150453290734 - 1.6453555072203998 \cdot \left(y \cdot a\right)\right) - t\_1\right)\\
\mathbf{elif}\;z \leq 3.25:\\
\;\;\;\;x + \left(t\_1 + -32.324150453290734 \cdot \left(b \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + \left(y \cdot 3.13060547623 + 11.1667541262 \cdot \frac{y}{z}\right)\right) - \frac{y}{z} \cdot 47.69379582500642\\
\end{array}
\end{array}
if z < -7e16Initial program 10.0%
Simplified14.5%
Taylor expanded in y around -inf 14.5%
Taylor expanded in z around -inf 80.4%
Taylor expanded in x around 0 92.5%
if -7e16 < z < -3.2000000000000001e-189Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-lft-neg-in99.6%
remove-double-neg99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 86.3%
if -3.2000000000000001e-189 < z < 3.25Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in b around inf 86.0%
Taylor expanded in z around 0 86.0%
if 3.25 < z Initial program 11.1%
Simplified13.6%
Taylor expanded in z around inf 89.8%
Final simplification88.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (* 1.6453555072203998 (* y b))))
(if (<= z -6.8e+15)
(+ x (* y 3.13060547623))
(if (<= z -1.15e-188)
(-
x
(-
(*
z
(- (* (* y b) 32.324150453290734) (* 1.6453555072203998 (* y a))))
t_1))
(if (<= z 0.05)
(+ x (+ t_1 (* -32.324150453290734 (* b (* z y)))))
(-
(+ x (+ (* y 3.13060547623) (* 11.1667541262 (/ y z))))
(* (/ y z) 47.69379582500642)))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = 1.6453555072203998 * (y * b);
double tmp;
if (z <= -6.8e+15) {
tmp = x + (y * 3.13060547623);
} else if (z <= -1.15e-188) {
tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1);
} else if (z <= 0.05) {
tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
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 = 1.6453555072203998d0 * (y * b)
if (z <= (-6.8d+15)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= (-1.15d-188)) then
tmp = x - ((z * (((y * b) * 32.324150453290734d0) - (1.6453555072203998d0 * (y * a)))) - t_1)
else if (z <= 0.05d0) then
tmp = x + (t_1 + ((-32.324150453290734d0) * (b * (z * y))))
else
tmp = (x + ((y * 3.13060547623d0) + (11.1667541262d0 * (y / z)))) - ((y / z) * 47.69379582500642d0)
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 = 1.6453555072203998 * (y * b);
double tmp;
if (z <= -6.8e+15) {
tmp = x + (y * 3.13060547623);
} else if (z <= -1.15e-188) {
tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1);
} else if (z <= 0.05) {
tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = 1.6453555072203998 * (y * b) tmp = 0 if z <= -6.8e+15: tmp = x + (y * 3.13060547623) elif z <= -1.15e-188: tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1) elif z <= 0.05: tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y)))) else: tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(1.6453555072203998 * Float64(y * b)) tmp = 0.0 if (z <= -6.8e+15) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= -1.15e-188) tmp = Float64(x - Float64(Float64(z * Float64(Float64(Float64(y * b) * 32.324150453290734) - Float64(1.6453555072203998 * Float64(y * a)))) - t_1)); elseif (z <= 0.05) tmp = Float64(x + Float64(t_1 + Float64(-32.324150453290734 * Float64(b * Float64(z * y))))); else tmp = Float64(Float64(x + Float64(Float64(y * 3.13060547623) + Float64(11.1667541262 * Float64(y / z)))) - Float64(Float64(y / z) * 47.69379582500642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = 1.6453555072203998 * (y * b); tmp = 0.0; if (z <= -6.8e+15) tmp = x + (y * 3.13060547623); elseif (z <= -1.15e-188) tmp = x - ((z * (((y * b) * 32.324150453290734) - (1.6453555072203998 * (y * a)))) - t_1); elseif (z <= 0.05) tmp = x + (t_1 + (-32.324150453290734 * (b * (z * y)))); else tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.8e+15], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.15e-188], N[(x - N[(N[(z * N[(N[(N[(y * b), $MachinePrecision] * 32.324150453290734), $MachinePrecision] - N[(1.6453555072203998 * N[(y * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.05], N[(x + N[(t$95$1 + N[(-32.324150453290734 * N[(b * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y / z), $MachinePrecision] * 47.69379582500642), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{if}\;z \leq -6.8 \cdot 10^{+15}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-188}:\\
\;\;\;\;x - \left(z \cdot \left(\left(y \cdot b\right) \cdot 32.324150453290734 - 1.6453555072203998 \cdot \left(y \cdot a\right)\right) - t\_1\right)\\
\mathbf{elif}\;z \leq 0.05:\\
\;\;\;\;x + \left(t\_1 + -32.324150453290734 \cdot \left(b \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + \left(y \cdot 3.13060547623 + 11.1667541262 \cdot \frac{y}{z}\right)\right) - \frac{y}{z} \cdot 47.69379582500642\\
\end{array}
\end{array}
if z < -6.8e15Initial program 10.0%
Simplified14.5%
Taylor expanded in z around inf 92.2%
+-commutative92.2%
Simplified92.2%
if -6.8e15 < z < -1.15e-188Initial program 99.6%
remove-double-neg99.6%
distribute-lft-neg-out99.6%
distribute-lft-neg-in99.6%
remove-double-neg99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
fma-define99.6%
Simplified99.6%
Taylor expanded in z around 0 86.3%
if -1.15e-188 < z < 0.050000000000000003Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in b around inf 86.0%
Taylor expanded in z around 0 86.0%
if 0.050000000000000003 < z Initial program 11.1%
Simplified13.6%
Taylor expanded in z around inf 89.8%
Final simplification88.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.4e+19)
(+ x (* y 3.13060547623))
(if (<= z 0.05)
(+
x
(+ (* 1.6453555072203998 (* y b)) (* -32.324150453290734 (* b (* z y)))))
(-
(+ x (+ (* y 3.13060547623) (* 11.1667541262 (/ y z))))
(* (/ y z) 47.69379582500642)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.4e+19) {
tmp = x + (y * 3.13060547623);
} else if (z <= 0.05) {
tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
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+19)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 0.05d0) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + ((-32.324150453290734d0) * (b * (z * y))))
else
tmp = (x + ((y * 3.13060547623d0) + (11.1667541262d0 * (y / z)))) - ((y / z) * 47.69379582500642d0)
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+19) {
tmp = x + (y * 3.13060547623);
} else if (z <= 0.05) {
tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.4e+19: tmp = x + (y * 3.13060547623) elif z <= 0.05: tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y)))) else: tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.4e+19) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 0.05) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(-32.324150453290734 * Float64(b * Float64(z * y))))); else tmp = Float64(Float64(x + Float64(Float64(y * 3.13060547623) + Float64(11.1667541262 * Float64(y / z)))) - Float64(Float64(y / z) * 47.69379582500642)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.4e+19) tmp = x + (y * 3.13060547623); elseif (z <= 0.05) tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y)))); else tmp = (x + ((y * 3.13060547623) + (11.1667541262 * (y / z)))) - ((y / z) * 47.69379582500642); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.4e+19], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.05], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(-32.324150453290734 * N[(b * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(11.1667541262 * N[(y / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y / z), $MachinePrecision] * 47.69379582500642), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{+19}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 0.05:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + -32.324150453290734 \cdot \left(b \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x + \left(y \cdot 3.13060547623 + 11.1667541262 \cdot \frac{y}{z}\right)\right) - \frac{y}{z} \cdot 47.69379582500642\\
\end{array}
\end{array}
if z < -2.4e19Initial program 10.0%
Simplified14.5%
Taylor expanded in z around inf 92.2%
+-commutative92.2%
Simplified92.2%
if -2.4e19 < z < 0.050000000000000003Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in b around inf 81.4%
Taylor expanded in z around 0 80.7%
if 0.050000000000000003 < z Initial program 11.1%
Simplified13.6%
Taylor expanded in z around inf 89.8%
Final simplification86.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.8e+18)
(+ x (* y 3.13060547623))
(if (<= z 0.065)
(+
x
(+ (* 1.6453555072203998 (* y b)) (* -32.324150453290734 (* b (* z y)))))
(- x (* y (- (/ 36.52704169880642 z) 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.8e+18) {
tmp = x + (y * 3.13060547623);
} else if (z <= 0.065) {
tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = x - (y * ((36.52704169880642 / z) - 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.8d+18)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 0.065d0) then
tmp = x + ((1.6453555072203998d0 * (y * b)) + ((-32.324150453290734d0) * (b * (z * y))))
else
tmp = x - (y * ((36.52704169880642d0 / z) - 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.8e+18) {
tmp = x + (y * 3.13060547623);
} else if (z <= 0.065) {
tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y))));
} else {
tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.8e+18: tmp = x + (y * 3.13060547623) elif z <= 0.065: tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y)))) else: tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.8e+18) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 0.065) tmp = Float64(x + Float64(Float64(1.6453555072203998 * Float64(y * b)) + Float64(-32.324150453290734 * Float64(b * Float64(z * y))))); else tmp = Float64(x - Float64(y * Float64(Float64(36.52704169880642 / z) - 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.8e+18) tmp = x + (y * 3.13060547623); elseif (z <= 0.065) tmp = x + ((1.6453555072203998 * (y * b)) + (-32.324150453290734 * (b * (z * y)))); else tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.8e+18], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.065], N[(x + N[(N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision] + N[(-32.324150453290734 * N[(b * N[(z * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(N[(36.52704169880642 / z), $MachinePrecision] - 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.8 \cdot 10^{+18}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 0.065:\\
\;\;\;\;x + \left(1.6453555072203998 \cdot \left(y \cdot b\right) + -32.324150453290734 \cdot \left(b \cdot \left(z \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \left(\frac{36.52704169880642}{z} - 3.13060547623\right)\\
\end{array}
\end{array}
if z < -2.8e18Initial program 10.0%
Simplified14.5%
Taylor expanded in z around inf 92.2%
+-commutative92.2%
Simplified92.2%
if -2.8e18 < z < 0.065000000000000002Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in b around inf 81.4%
Taylor expanded in z around 0 80.7%
if 0.065000000000000002 < z Initial program 11.1%
remove-double-neg11.1%
distribute-lft-neg-out11.1%
distribute-lft-neg-in11.1%
remove-double-neg11.1%
fma-define11.1%
fma-define11.1%
fma-define11.1%
fma-define11.1%
Simplified11.1%
Taylor expanded in z around -inf 89.8%
Taylor expanded in y around 0 89.8%
associate-*r/89.8%
metadata-eval89.8%
Simplified89.8%
Final simplification86.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.7e+25)
(+ x (* y 3.13060547623))
(if (<= z 200.0)
(+ x (/ (* y b) (+ 0.607771387771 (* z 11.9400905721))))
(- x (* y (- (/ 36.52704169880642 z) 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.7e+25) {
tmp = x + (y * 3.13060547623);
} else if (z <= 200.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x - (y * ((36.52704169880642 / z) - 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.7d+25)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 200.0d0) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x - (y * ((36.52704169880642d0 / z) - 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.7e+25) {
tmp = x + (y * 3.13060547623);
} else if (z <= 200.0) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.7e+25: tmp = x + (y * 3.13060547623) elif z <= 200.0: tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.7e+25) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 200.0) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x - Float64(y * Float64(Float64(36.52704169880642 / z) - 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.7e+25) tmp = x + (y * 3.13060547623); elseif (z <= 200.0) tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))); else tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.7e+25], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 200.0], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(N[(36.52704169880642 / z), $MachinePrecision] - 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.7 \cdot 10^{+25}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 200:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \left(\frac{36.52704169880642}{z} - 3.13060547623\right)\\
\end{array}
\end{array}
if z < -2.7e25Initial program 8.5%
Simplified13.1%
Taylor expanded in z around inf 93.5%
+-commutative93.5%
Simplified93.5%
if -2.7e25 < z < 200Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in b around inf 80.7%
Taylor expanded in z around 0 80.1%
*-commutative80.1%
Simplified80.1%
if 200 < z Initial program 11.1%
remove-double-neg11.1%
distribute-lft-neg-out11.1%
distribute-lft-neg-in11.1%
remove-double-neg11.1%
fma-define11.1%
fma-define11.1%
fma-define11.1%
fma-define11.1%
Simplified11.1%
Taylor expanded in z around -inf 89.8%
Taylor expanded in y around 0 89.8%
associate-*r/89.8%
metadata-eval89.8%
Simplified89.8%
Final simplification86.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.25e+17)
(+ x (* y 3.13060547623))
(if (<= z 480.0)
(+ x (* 1.6453555072203998 (* y b)))
(- x (* y (- (/ 36.52704169880642 z) 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.25e+17) {
tmp = x + (y * 3.13060547623);
} else if (z <= 480.0) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = x - (y * ((36.52704169880642 / z) - 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 <= (-1.25d+17)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 480.0d0) then
tmp = x + (1.6453555072203998d0 * (y * b))
else
tmp = x - (y * ((36.52704169880642d0 / z) - 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 <= -1.25e+17) {
tmp = x + (y * 3.13060547623);
} else if (z <= 480.0) {
tmp = x + (1.6453555072203998 * (y * b));
} else {
tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.25e+17: tmp = x + (y * 3.13060547623) elif z <= 480.0: tmp = x + (1.6453555072203998 * (y * b)) else: tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.25e+17) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 480.0) tmp = Float64(x + Float64(1.6453555072203998 * Float64(y * b))); else tmp = Float64(x - Float64(y * Float64(Float64(36.52704169880642 / z) - 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.25e+17) tmp = x + (y * 3.13060547623); elseif (z <= 480.0) tmp = x + (1.6453555072203998 * (y * b)); else tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.25e+17], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 480.0], N[(x + N[(1.6453555072203998 * N[(y * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x - N[(y * N[(N[(36.52704169880642 / z), $MachinePrecision] - 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.25 \cdot 10^{+17}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 480:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x - y \cdot \left(\frac{36.52704169880642}{z} - 3.13060547623\right)\\
\end{array}
\end{array}
if z < -1.25e17Initial program 10.0%
Simplified14.5%
Taylor expanded in z around inf 92.2%
+-commutative92.2%
Simplified92.2%
if -1.25e17 < z < 480Initial program 99.7%
Simplified99.6%
Taylor expanded in z around 0 80.6%
+-commutative80.6%
*-commutative80.6%
Simplified80.6%
if 480 < z Initial program 11.1%
remove-double-neg11.1%
distribute-lft-neg-out11.1%
distribute-lft-neg-in11.1%
remove-double-neg11.1%
fma-define11.1%
fma-define11.1%
fma-define11.1%
fma-define11.1%
Simplified11.1%
Taylor expanded in z around -inf 89.8%
Taylor expanded in y around 0 89.8%
associate-*r/89.8%
metadata-eval89.8%
Simplified89.8%
Final simplification86.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -5e+15) (not (<= z 8.4e-13))) (+ 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 <= -5e+15) || !(z <= 8.4e-13)) {
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 <= (-5d+15)) .or. (.not. (z <= 8.4d-13))) 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 <= -5e+15) || !(z <= 8.4e-13)) {
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 <= -5e+15) or not (z <= 8.4e-13): 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 <= -5e+15) || !(z <= 8.4e-13)) 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 <= -5e+15) || ~((z <= 8.4e-13))) 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, -5e+15], N[Not[LessEqual[z, 8.4e-13]], $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 -5 \cdot 10^{+15} \lor \neg \left(z \leq 8.4 \cdot 10^{-13}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + 1.6453555072203998 \cdot \left(y \cdot b\right)\\
\end{array}
\end{array}
if z < -5e15 or 8.39999999999999955e-13 < z Initial program 11.2%
Simplified14.6%
Taylor expanded in z around inf 90.0%
+-commutative90.0%
Simplified90.0%
if -5e15 < z < 8.39999999999999955e-13Initial program 99.7%
Simplified99.6%
Taylor expanded in z around 0 81.3%
+-commutative81.3%
*-commutative81.3%
Simplified81.3%
Final simplification86.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.55e+20) (not (<= z 8.4e-13))) (+ x (* y 3.13060547623)) (+ x (* y (* b 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.55e+20) || !(z <= 8.4e-13)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * (b * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.55d+20)) .or. (.not. (z <= 8.4d-13))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (y * (b * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.55e+20) || !(z <= 8.4e-13)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * (b * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.55e+20) or not (z <= 8.4e-13): tmp = x + (y * 3.13060547623) else: tmp = x + (y * (b * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.55e+20) || !(z <= 8.4e-13)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(y * Float64(b * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.55e+20) || ~((z <= 8.4e-13))) tmp = x + (y * 3.13060547623); else tmp = x + (y * (b * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.55e+20], N[Not[LessEqual[z, 8.4e-13]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{+20} \lor \neg \left(z \leq 8.4 \cdot 10^{-13}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.55e20 or 8.39999999999999955e-13 < z Initial program 11.2%
Simplified14.6%
Taylor expanded in z around inf 90.0%
+-commutative90.0%
Simplified90.0%
if -1.55e20 < z < 8.39999999999999955e-13Initial program 99.7%
remove-double-neg99.7%
distribute-lft-neg-out99.7%
distribute-lft-neg-in99.7%
remove-double-neg99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
fma-define99.7%
Simplified99.7%
Taylor expanded in b around inf 82.1%
Taylor expanded in z around 0 81.3%
+-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in z around 0 81.2%
Taylor expanded in b around 0 81.3%
*-commutative81.3%
*-commutative81.3%
associate-*r*81.3%
*-commutative81.3%
Simplified81.3%
Final simplification86.0%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.6e-216) (not (<= z 1.16e-14))) (+ x (* y 3.13060547623)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.6e-216) || !(z <= 1.16e-14)) {
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 <= (-1.6d-216)) .or. (.not. (z <= 1.16d-14))) 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 <= -1.6e-216) || !(z <= 1.16e-14)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.6e-216) or not (z <= 1.16e-14): tmp = x + (y * 3.13060547623) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.6e-216) || !(z <= 1.16e-14)) 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 <= -1.6e-216) || ~((z <= 1.16e-14))) tmp = x + (y * 3.13060547623); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.6e-216], N[Not[LessEqual[z, 1.16e-14]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.6 \cdot 10^{-216} \lor \neg \left(z \leq 1.16 \cdot 10^{-14}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -1.60000000000000013e-216 or 1.16000000000000007e-14 < z Initial program 33.9%
Simplified36.4%
Taylor expanded in z around inf 78.9%
+-commutative78.9%
Simplified78.9%
if -1.60000000000000013e-216 < z < 1.16000000000000007e-14Initial program 99.7%
Simplified99.7%
Taylor expanded in y around 0 51.1%
Final simplification71.4%
(FPCore (x y z t a b) :precision binary64 (if (<= x -2.95e-165) x (if (<= x 1.05e-62) (* y 3.13060547623) x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.95e-165) {
tmp = x;
} else if (x <= 1.05e-62) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (x <= (-2.95d-165)) then
tmp = x
else if (x <= 1.05d-62) then
tmp = y * 3.13060547623d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (x <= -2.95e-165) {
tmp = x;
} else if (x <= 1.05e-62) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if x <= -2.95e-165: tmp = x elif x <= 1.05e-62: tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (x <= -2.95e-165) tmp = x; elseif (x <= 1.05e-62) tmp = Float64(y * 3.13060547623); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (x <= -2.95e-165) tmp = x; elseif (x <= 1.05e-62) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[x, -2.95e-165], x, If[LessEqual[x, 1.05e-62], N[(y * 3.13060547623), $MachinePrecision], x]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.95 \cdot 10^{-165}:\\
\;\;\;\;x\\
\mathbf{elif}\;x \leq 1.05 \cdot 10^{-62}:\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if x < -2.95000000000000019e-165 or 1.05e-62 < x Initial program 52.3%
Simplified53.7%
Taylor expanded in y around 0 66.3%
if -2.95000000000000019e-165 < x < 1.05e-62Initial program 49.8%
Simplified52.7%
Taylor expanded in z around inf 50.4%
+-commutative50.4%
Simplified50.4%
Taylor expanded in y around inf 41.6%
Final simplification60.1%
(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 51.6%
Simplified53.4%
Taylor expanded in y around 0 52.8%
(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 2024139
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(! :herbie-platform default (if (< z -649934499625263200000000000000000000000000000000000000) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))) (if (< z 706696543691428700000000000000000000000000000000000000000000) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000) (+ (* (+ (* (+ (* (+ (* z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)))) (+ x (* (+ (- 313060547623/100000000000 (/ 18263520849403207/500000000000000 z)) (/ t (* z z))) (/ y 1))))))
(+ 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))))