
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -3.3e+59) (not (<= z 4.2e+22)))
(fma
y
(- 3.13060547623 (/ (- 36.52704169880642 (/ (+ t 457.9610022158428) z)) z))
x)
(+
x
(/
(* y (fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.3e+59) || !(z <= 4.2e+22)) {
tmp = fma(y, (3.13060547623 - ((36.52704169880642 - ((t + 457.9610022158428) / z)) / z)), x);
} else {
tmp = x + ((y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.3e+59) || !(z <= 4.2e+22)) tmp = fma(y, Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(t + 457.9610022158428) / z)) / z)), x); else tmp = Float64(x + Float64(Float64(y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.3e+59], N[Not[LessEqual[z, 4.2e+22]], $MachinePrecision]], N[(y * N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(N[(y * N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+59} \lor \neg \left(z \leq 4.2 \cdot 10^{+22}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}\\
\end{array}
\end{array}
if z < -3.2999999999999999e59 or 4.1999999999999996e22 < z Initial program 6.8%
Simplified10.9%
Taylor expanded in z around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
+-commutative99.1%
Simplified99.1%
if -3.2999999999999999e59 < z < 4.1999999999999996e22Initial program 99.1%
remove-double-neg99.1%
distribute-lft-neg-out99.1%
distribute-lft-neg-in99.1%
remove-double-neg99.1%
fma-define99.1%
fma-define99.1%
fma-define99.1%
fma-define99.1%
Simplified99.1%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
y
(/
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)
(+ x (* y 3.13060547623))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = fma(y, Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 95.6%
Simplified99.1%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 99.0%
+-commutative99.0%
*-commutative99.0%
Simplified99.0%
Final simplification99.0%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -3.3e+59) (not (<= z 3.6e+20)))
(fma
y
(- 3.13060547623 (/ (- 36.52704169880642 (/ (+ t 457.9610022158428) z)) z))
x)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -3.3e+59) || !(z <= 3.6e+20)) {
tmp = fma(y, (3.13060547623 - ((36.52704169880642 - ((t + 457.9610022158428) / z)) / z)), x);
} else {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -3.3e+59) || !(z <= 3.6e+20)) tmp = fma(y, Float64(3.13060547623 - Float64(Float64(36.52704169880642 - Float64(Float64(t + 457.9610022158428) / z)) / z)), x); else tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -3.3e+59], N[Not[LessEqual[z, 3.6e+20]], $MachinePrecision]], N[(y * N[(3.13060547623 - N[(N[(36.52704169880642 - N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.3 \cdot 10^{+59} \lor \neg \left(z \leq 3.6 \cdot 10^{+20}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 - \frac{36.52704169880642 - \frac{t + 457.9610022158428}{z}}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\end{array}
\end{array}
if z < -3.2999999999999999e59 or 3.6e20 < z Initial program 6.8%
Simplified10.9%
Taylor expanded in z around -inf 99.1%
mul-1-neg99.1%
unsub-neg99.1%
mul-1-neg99.1%
unsub-neg99.1%
+-commutative99.1%
Simplified99.1%
if -3.2999999999999999e59 < z < 3.6e20Initial program 99.1%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY) (+ t_1 x) (+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1 + x;
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1 + x;
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) tmp = 0 if t_1 <= math.inf: tmp = t_1 + x else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= Inf) tmp = Float64(t_1 + x); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771); tmp = 0.0; if (t_1 <= Inf) tmp = t_1 + x; else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(t$95$1 + x), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1 + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 95.6%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 99.0%
+-commutative99.0%
*-commutative99.0%
Simplified99.0%
Final simplification96.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.2e+68)
(+ x (* y 3.13060547623))
(if (<= z 1.22e+36)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.2e+68) {
tmp = x + (y * 3.13060547623);
} else if (z <= 1.22e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-1.2d+68)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 1.22d+36) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -1.2e+68) {
tmp = x + (y * 3.13060547623);
} else if (z <= 1.22e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.2e+68: tmp = x + (y * 3.13060547623) elif z <= 1.22e+36: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.2e+68) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 1.22e+36) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.2e+68) tmp = x + (y * 3.13060547623); elseif (z <= 1.22e+36) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.2e+68], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.22e+36], 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[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.2 \cdot 10^{+68}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{+36}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -1.20000000000000004e68Initial program 0.1%
Simplified2.2%
Taylor expanded in z around inf 98.0%
+-commutative98.0%
*-commutative98.0%
Simplified98.0%
if -1.20000000000000004e68 < z < 1.21999999999999995e36Initial program 98.5%
Taylor expanded in z around 0 97.4%
*-commutative97.4%
Simplified97.4%
if 1.21999999999999995e36 < z Initial program 5.6%
Taylor expanded in z around -inf 96.7%
+-commutative96.7%
mul-1-neg96.7%
unsub-neg96.7%
*-commutative96.7%
distribute-rgt-out--96.7%
metadata-eval96.7%
Simplified96.7%
Final simplification97.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -8.5e+72)
(+ x (* y 3.13060547623))
(if (<= z -0.41)
(+ x (/ (- (* (/ y z) (+ t -170.12200846348443)) (* y -11.1667541262)) z))
(if (<= z 1.22e+36)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -8.5e+72) {
tmp = x + (y * 3.13060547623);
} else if (z <= -0.41) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} else if (z <= 1.22e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-8.5d+72)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= (-0.41d0)) then
tmp = x + ((((y / z) * (t + (-170.12200846348443d0))) - (y * (-11.1667541262d0))) / z)
else if (z <= 1.22d+36) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -8.5e+72) {
tmp = x + (y * 3.13060547623);
} else if (z <= -0.41) {
tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z);
} else if (z <= 1.22e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -8.5e+72: tmp = x + (y * 3.13060547623) elif z <= -0.41: tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z) elif z <= 1.22e+36: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -8.5e+72) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= -0.41) tmp = Float64(x + Float64(Float64(Float64(Float64(y / z) * Float64(t + -170.12200846348443)) - Float64(y * -11.1667541262)) / z)); elseif (z <= 1.22e+36) 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 * 11.9400905721)))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -8.5e+72) tmp = x + (y * 3.13060547623); elseif (z <= -0.41) tmp = x + ((((y / z) * (t + -170.12200846348443)) - (y * -11.1667541262)) / z); elseif (z <= 1.22e+36) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -8.5e+72], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -0.41], N[(x + N[(N[(N[(N[(y / z), $MachinePrecision] * N[(t + -170.12200846348443), $MachinePrecision]), $MachinePrecision] - N[(y * -11.1667541262), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.22e+36], 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 * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+72}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq -0.41:\\
\;\;\;\;x + \frac{\frac{y}{z} \cdot \left(t + -170.12200846348443\right) - y \cdot -11.1667541262}{z}\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{+36}:\\
\;\;\;\;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 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -8.5000000000000004e72Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 99.9%
+-commutative99.9%
*-commutative99.9%
Simplified99.9%
if -8.5000000000000004e72 < z < -0.409999999999999976Initial program 85.0%
Taylor expanded in z around 0 74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in z around -inf 70.9%
mul-1-neg70.9%
distribute-neg-frac270.9%
mul-1-neg70.9%
unsub-neg70.9%
*-commutative70.9%
div-sub70.9%
associate-/l*70.9%
associate-*r/70.9%
distribute-rgt-out--70.9%
sub-neg70.9%
metadata-eval70.9%
Simplified70.9%
if -0.409999999999999976 < z < 1.21999999999999995e36Initial program 99.1%
Taylor expanded in z around 0 98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in z around 0 95.6%
*-commutative75.5%
Simplified95.6%
if 1.21999999999999995e36 < z Initial program 5.6%
Taylor expanded in z around -inf 96.7%
+-commutative96.7%
mul-1-neg96.7%
unsub-neg96.7%
*-commutative96.7%
distribute-rgt-out--96.7%
metadata-eval96.7%
Simplified96.7%
Final simplification95.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -9.5e+37)
(+ x (* y 3.13060547623))
(if (<= z 1.02e+36)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -9.5e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= 1.02e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-9.5d+37)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 1.02d+36) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -9.5e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= 1.02e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -9.5e+37: tmp = x + (y * 3.13060547623) elif z <= 1.02e+36: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -9.5e+37) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 1.02e+36) 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 * 31.4690115749)))))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -9.5e+37) tmp = x + (y * 3.13060547623); elseif (z <= 1.02e+36) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -9.5e+37], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.02e+36], 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 * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.5 \cdot 10^{+37}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{+36}:\\
\;\;\;\;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 31.4690115749\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -9.4999999999999995e37Initial program 2.3%
Simplified4.3%
Taylor expanded in z around inf 96.0%
+-commutative96.0%
*-commutative96.0%
Simplified96.0%
if -9.4999999999999995e37 < z < 1.02000000000000003e36Initial program 99.1%
Taylor expanded in z around 0 98.0%
*-commutative98.0%
Simplified98.0%
Taylor expanded in z around 0 93.4%
*-commutative93.4%
Simplified93.4%
if 1.02000000000000003e36 < z Initial program 5.6%
Taylor expanded in z around -inf 96.7%
+-commutative96.7%
mul-1-neg96.7%
unsub-neg96.7%
*-commutative96.7%
distribute-rgt-out--96.7%
metadata-eval96.7%
Simplified96.7%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
y
(*
z
(+ (* a 1.6453555072203998) (* 1.6453555072203998 (* z t))))))))
(if (<= z -9.5e+37)
(+ x (* y 3.13060547623))
(if (<= z -2.1e-64)
t_1
(if (<= z 4.5e-61)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 1.1e+36)
t_1
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t)))));
double tmp;
if (z <= -9.5e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= -2.1e-64) {
tmp = t_1;
} else if (z <= 4.5e-61) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 1.1e+36) {
tmp = t_1;
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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) :: t_1
real(8) :: tmp
t_1 = x + (y * (z * ((a * 1.6453555072203998d0) + (1.6453555072203998d0 * (z * t)))))
if (z <= (-9.5d+37)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= (-2.1d-64)) then
tmp = t_1
else if (z <= 4.5d-61) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 1.1d+36) then
tmp = t_1
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 t_1 = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t)))));
double tmp;
if (z <= -9.5e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= -2.1e-64) {
tmp = t_1;
} else if (z <= 4.5e-61) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 1.1e+36) {
tmp = t_1;
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t))))) tmp = 0 if z <= -9.5e+37: tmp = x + (y * 3.13060547623) elif z <= -2.1e-64: tmp = t_1 elif z <= 4.5e-61: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 1.1e+36: tmp = t_1 else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * Float64(z * Float64(Float64(a * 1.6453555072203998) + Float64(1.6453555072203998 * Float64(z * t)))))) tmp = 0.0 if (z <= -9.5e+37) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= -2.1e-64) tmp = t_1; elseif (z <= 4.5e-61) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 1.1e+36) tmp = t_1; else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t))))); tmp = 0.0; if (z <= -9.5e+37) tmp = x + (y * 3.13060547623); elseif (z <= -2.1e-64) tmp = t_1; elseif (z <= 4.5e-61) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 1.1e+36) tmp = t_1; else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] + N[(1.6453555072203998 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.5e+37], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.1e-64], t$95$1, If[LessEqual[z, 4.5e-61], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.1e+36], t$95$1, N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 + 1.6453555072203998 \cdot \left(z \cdot t\right)\right)\right)\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{+37}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{-64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-61}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 1.1 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -9.4999999999999995e37Initial program 2.3%
Simplified4.3%
Taylor expanded in z around inf 96.0%
+-commutative96.0%
*-commutative96.0%
Simplified96.0%
if -9.4999999999999995e37 < z < -2.10000000000000011e-64 or 4.5e-61 < z < 1.1e36Initial program 97.9%
Taylor expanded in b around 0 86.2%
Taylor expanded in z around 0 59.0%
Taylor expanded in y around 0 68.3%
Taylor expanded in t around inf 68.4%
*-commutative68.4%
Simplified68.4%
if -2.10000000000000011e-64 < z < 4.5e-61Initial program 99.7%
Taylor expanded in z around 0 96.9%
Taylor expanded in z around 0 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in z around 0 87.6%
*-commutative87.6%
associate-*l*87.7%
Simplified87.7%
if 1.1e36 < z Initial program 5.6%
Taylor expanded in z around -inf 96.7%
+-commutative96.7%
mul-1-neg96.7%
unsub-neg96.7%
*-commutative96.7%
distribute-rgt-out--96.7%
metadata-eval96.7%
Simplified96.7%
Final simplification87.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.9e+37)
(+ x (* y 3.13060547623))
(if (<= z -2.35e-64)
(+
x
(* y (* z (+ (* a 1.6453555072203998) (* z (* t 1.6453555072203998))))))
(if (<= z 6.5e-59)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 1.06e+36)
(+
x
(*
y
(* z (+ (* a 1.6453555072203998) (* 1.6453555072203998 (* z t))))))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.9e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= -2.35e-64) {
tmp = x + (y * (z * ((a * 1.6453555072203998) + (z * (t * 1.6453555072203998)))));
} else if (z <= 6.5e-59) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 1.06e+36) {
tmp = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t)))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-1.9d+37)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= (-2.35d-64)) then
tmp = x + (y * (z * ((a * 1.6453555072203998d0) + (z * (t * 1.6453555072203998d0)))))
else if (z <= 6.5d-59) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 1.06d+36) then
tmp = x + (y * (z * ((a * 1.6453555072203998d0) + (1.6453555072203998d0 * (z * t)))))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -1.9e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= -2.35e-64) {
tmp = x + (y * (z * ((a * 1.6453555072203998) + (z * (t * 1.6453555072203998)))));
} else if (z <= 6.5e-59) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 1.06e+36) {
tmp = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t)))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.9e+37: tmp = x + (y * 3.13060547623) elif z <= -2.35e-64: tmp = x + (y * (z * ((a * 1.6453555072203998) + (z * (t * 1.6453555072203998))))) elif z <= 6.5e-59: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 1.06e+36: tmp = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t))))) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.9e+37) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= -2.35e-64) tmp = Float64(x + Float64(y * Float64(z * Float64(Float64(a * 1.6453555072203998) + Float64(z * Float64(t * 1.6453555072203998)))))); elseif (z <= 6.5e-59) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 1.06e+36) tmp = Float64(x + Float64(y * Float64(z * Float64(Float64(a * 1.6453555072203998) + Float64(1.6453555072203998 * Float64(z * t)))))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.9e+37) tmp = x + (y * 3.13060547623); elseif (z <= -2.35e-64) tmp = x + (y * (z * ((a * 1.6453555072203998) + (z * (t * 1.6453555072203998))))); elseif (z <= 6.5e-59) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 1.06e+36) tmp = x + (y * (z * ((a * 1.6453555072203998) + (1.6453555072203998 * (z * t))))); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.9e+37], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.35e-64], N[(x + N[(y * N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] + N[(z * N[(t * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-59], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e+36], N[(x + N[(y * N[(z * N[(N[(a * 1.6453555072203998), $MachinePrecision] + N[(1.6453555072203998 * N[(z * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+37}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq -2.35 \cdot 10^{-64}:\\
\;\;\;\;x + y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 + z \cdot \left(t \cdot 1.6453555072203998\right)\right)\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-59}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+36}:\\
\;\;\;\;x + y \cdot \left(z \cdot \left(a \cdot 1.6453555072203998 + 1.6453555072203998 \cdot \left(z \cdot t\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -1.89999999999999995e37Initial program 2.3%
Simplified4.3%
Taylor expanded in z around inf 96.0%
+-commutative96.0%
*-commutative96.0%
Simplified96.0%
if -1.89999999999999995e37 < z < -2.3499999999999999e-64Initial program 99.7%
Taylor expanded in b around 0 92.7%
Taylor expanded in z around 0 65.1%
Taylor expanded in y around 0 74.1%
Taylor expanded in t around inf 74.0%
*-commutative74.0%
*-commutative74.0%
associate-*l*74.1%
*-commutative74.1%
Simplified74.1%
if -2.3499999999999999e-64 < z < 6.50000000000000017e-59Initial program 99.7%
Taylor expanded in z around 0 96.9%
Taylor expanded in z around 0 96.9%
*-commutative96.9%
Simplified96.9%
Taylor expanded in z around 0 87.6%
*-commutative87.6%
associate-*l*87.7%
Simplified87.7%
if 6.50000000000000017e-59 < z < 1.06000000000000002e36Initial program 95.2%
Taylor expanded in b around 0 76.8%
Taylor expanded in z around 0 50.0%
Taylor expanded in y around 0 59.9%
Taylor expanded in t around inf 60.3%
*-commutative60.3%
Simplified60.3%
if 1.06000000000000002e36 < z Initial program 5.6%
Taylor expanded in z around -inf 96.7%
+-commutative96.7%
mul-1-neg96.7%
unsub-neg96.7%
*-commutative96.7%
distribute-rgt-out--96.7%
metadata-eval96.7%
Simplified96.7%
Final simplification87.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.5e+27)
(+ x (* y 3.13060547623))
(if (<= z 2.4e+35)
(+
x
(/
(* y (+ b (* z a)))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.5e+27) {
tmp = x + (y * 3.13060547623);
} else if (z <= 2.4e+35) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-1.5d+27)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 2.4d+35) then
tmp = x + ((y * (b + (z * a))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -1.5e+27) {
tmp = x + (y * 3.13060547623);
} else if (z <= 2.4e+35) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.5e+27: tmp = x + (y * 3.13060547623) elif z <= 2.4e+35: tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.5e+27) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 2.4e+35) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.5e+27) tmp = x + (y * 3.13060547623); elseif (z <= 2.4e+35) tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.5e+27], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+35], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.5 \cdot 10^{+27}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+35}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -1.49999999999999988e27Initial program 6.3%
Simplified8.3%
Taylor expanded in z around inf 92.4%
+-commutative92.4%
*-commutative92.4%
Simplified92.4%
if -1.49999999999999988e27 < z < 2.40000000000000015e35Initial program 99.1%
Taylor expanded in z around 0 89.5%
Taylor expanded in z around 0 87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in y around 0 88.4%
*-commutative88.4%
Simplified88.4%
if 2.40000000000000015e35 < z Initial program 7.2%
Taylor expanded in z around -inf 95.1%
+-commutative95.1%
mul-1-neg95.1%
unsub-neg95.1%
*-commutative95.1%
distribute-rgt-out--95.1%
metadata-eval95.1%
Simplified95.1%
Final simplification90.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.9e+37)
(+ x (* y 3.13060547623))
(if (<= z 2.35e+35)
(+ x (/ (+ (* a (* y z)) (* y b)) (+ 0.607771387771 (* z 11.9400905721))))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.9e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= 2.35e+35) {
tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-1.9d+37)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 2.35d+35) then
tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -1.9e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= 2.35e+35) {
tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.9e+37: tmp = x + (y * 3.13060547623) elif z <= 2.35e+35: tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.9e+37) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 2.35e+35) tmp = Float64(x + Float64(Float64(Float64(a * Float64(y * z)) + Float64(y * b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.9e+37) tmp = x + (y * 3.13060547623); elseif (z <= 2.35e+35) tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.9e+37], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.35e+35], N[(x + N[(N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+37}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 2.35 \cdot 10^{+35}:\\
\;\;\;\;x + \frac{a \cdot \left(y \cdot z\right) + y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -1.89999999999999995e37Initial program 2.3%
Simplified4.3%
Taylor expanded in z around inf 96.0%
+-commutative96.0%
*-commutative96.0%
Simplified96.0%
if -1.89999999999999995e37 < z < 2.35000000000000017e35Initial program 99.1%
Taylor expanded in z around 0 88.3%
Taylor expanded in z around 0 86.4%
*-commutative73.8%
Simplified86.4%
if 2.35000000000000017e35 < z Initial program 7.2%
Taylor expanded in z around -inf 95.1%
+-commutative95.1%
mul-1-neg95.1%
unsub-neg95.1%
*-commutative95.1%
distribute-rgt-out--95.1%
metadata-eval95.1%
Simplified95.1%
Final simplification90.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -7.8e+24)
(+ x (* y 3.13060547623))
(if (<= z 2.4e-58)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 2.65e+35)
(+ x (* (* a (* y z)) 1.6453555072203998))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7.8e+24) {
tmp = x + (y * 3.13060547623);
} else if (z <= 2.4e-58) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.65e+35) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-7.8d+24)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 2.4d-58) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 2.65d+35) then
tmp = x + ((a * (y * z)) * 1.6453555072203998d0)
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -7.8e+24) {
tmp = x + (y * 3.13060547623);
} else if (z <= 2.4e-58) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 2.65e+35) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -7.8e+24: tmp = x + (y * 3.13060547623) elif z <= 2.4e-58: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 2.65e+35: tmp = x + ((a * (y * z)) * 1.6453555072203998) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -7.8e+24) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 2.4e-58) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 2.65e+35) tmp = Float64(x + Float64(Float64(a * Float64(y * z)) * 1.6453555072203998)); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -7.8e+24) tmp = x + (y * 3.13060547623); elseif (z <= 2.4e-58) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 2.65e+35) tmp = x + ((a * (y * z)) * 1.6453555072203998); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -7.8e+24], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-58], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.65e+35], N[(x + N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{+24}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-58}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 2.65 \cdot 10^{+35}:\\
\;\;\;\;x + \left(a \cdot \left(y \cdot z\right)\right) \cdot 1.6453555072203998\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -7.7999999999999995e24Initial program 6.3%
Simplified8.3%
Taylor expanded in z around inf 92.4%
+-commutative92.4%
*-commutative92.4%
Simplified92.4%
if -7.7999999999999995e24 < z < 2.4000000000000001e-58Initial program 99.7%
Taylor expanded in z around 0 92.4%
Taylor expanded in z around 0 91.7%
*-commutative91.7%
Simplified91.7%
Taylor expanded in z around 0 80.2%
*-commutative80.2%
associate-*l*80.2%
Simplified80.2%
if 2.4000000000000001e-58 < z < 2.65000000000000005e35Initial program 95.0%
Taylor expanded in b around 0 75.6%
Taylor expanded in z around 0 59.6%
if 2.65000000000000005e35 < z Initial program 7.2%
Taylor expanded in z around -inf 95.1%
+-commutative95.1%
mul-1-neg95.1%
unsub-neg95.1%
*-commutative95.1%
distribute-rgt-out--95.1%
metadata-eval95.1%
Simplified95.1%
Final simplification84.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.9e+37)
(+ x (* y 3.13060547623))
(if (<= z 1.4e-60)
(+ x (/ (* y b) (+ 0.607771387771 (* z 11.9400905721))))
(if (<= z 2.45e+35)
(+ x (* (* a (* y z)) 1.6453555072203998))
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.9e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= 1.4e-60) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 2.45e+35) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 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 <= (-1.9d+37)) then
tmp = x + (y * 3.13060547623d0)
else if (z <= 1.4d-60) then
tmp = x + ((y * b) / (0.607771387771d0 + (z * 11.9400905721d0)))
else if (z <= 2.45d+35) then
tmp = x + ((a * (y * z)) * 1.6453555072203998d0)
else
tmp = x + ((y * 3.13060547623d0) - ((y * 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 <= -1.9e+37) {
tmp = x + (y * 3.13060547623);
} else if (z <= 1.4e-60) {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 2.45e+35) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.9e+37: tmp = x + (y * 3.13060547623) elif z <= 1.4e-60: tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))) elif z <= 2.45e+35: tmp = x + ((a * (y * z)) * 1.6453555072203998) else: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.9e+37) tmp = Float64(x + Float64(y * 3.13060547623)); elseif (z <= 1.4e-60) tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); elseif (z <= 2.45e+35) tmp = Float64(x + Float64(Float64(a * Float64(y * z)) * 1.6453555072203998)); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.9e+37) tmp = x + (y * 3.13060547623); elseif (z <= 1.4e-60) tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))); elseif (z <= 2.45e+35) tmp = x + ((a * (y * z)) * 1.6453555072203998); else tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.9e+37], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.4e-60], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.45e+35], N[(x + N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9 \cdot 10^{+37}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-60}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{elif}\;z \leq 2.45 \cdot 10^{+35}:\\
\;\;\;\;x + \left(a \cdot \left(y \cdot z\right)\right) \cdot 1.6453555072203998\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -1.89999999999999995e37Initial program 2.3%
Simplified4.3%
Taylor expanded in z around inf 96.0%
+-commutative96.0%
*-commutative96.0%
Simplified96.0%
if -1.89999999999999995e37 < z < 1.4000000000000001e-60Initial program 99.7%
Taylor expanded in z around 0 79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in z around 0 79.2%
*-commutative79.2%
Simplified79.2%
if 1.4000000000000001e-60 < z < 2.45000000000000013e35Initial program 95.0%
Taylor expanded in b around 0 75.6%
Taylor expanded in z around 0 59.6%
if 2.45000000000000013e35 < z Initial program 7.2%
Taylor expanded in z around -inf 95.1%
+-commutative95.1%
mul-1-neg95.1%
unsub-neg95.1%
*-commutative95.1%
distribute-rgt-out--95.1%
metadata-eval95.1%
Simplified95.1%
Final simplification84.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (+ x (* y 3.13060547623))))
(if (<= z -1.5e+26)
t_1
(if (<= z 1.75e-59)
(+ x (* b (* y 1.6453555072203998)))
(if (<= z 3.2e+35) (+ x (* (* a (* y z)) 1.6453555072203998)) t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.5e+26) {
tmp = t_1;
} else if (z <= 1.75e-59) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 3.2e+35) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (y * 3.13060547623d0)
if (z <= (-1.5d+26)) then
tmp = t_1
else if (z <= 1.75d-59) then
tmp = x + (b * (y * 1.6453555072203998d0))
else if (z <= 3.2d+35) then
tmp = x + ((a * (y * z)) * 1.6453555072203998d0)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (y * 3.13060547623);
double tmp;
if (z <= -1.5e+26) {
tmp = t_1;
} else if (z <= 1.75e-59) {
tmp = x + (b * (y * 1.6453555072203998));
} else if (z <= 3.2e+35) {
tmp = x + ((a * (y * z)) * 1.6453555072203998);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (y * 3.13060547623) tmp = 0 if z <= -1.5e+26: tmp = t_1 elif z <= 1.75e-59: tmp = x + (b * (y * 1.6453555072203998)) elif z <= 3.2e+35: tmp = x + ((a * (y * z)) * 1.6453555072203998) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(y * 3.13060547623)) tmp = 0.0 if (z <= -1.5e+26) tmp = t_1; elseif (z <= 1.75e-59) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); elseif (z <= 3.2e+35) tmp = Float64(x + Float64(Float64(a * Float64(y * z)) * 1.6453555072203998)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (y * 3.13060547623); tmp = 0.0; if (z <= -1.5e+26) tmp = t_1; elseif (z <= 1.75e-59) tmp = x + (b * (y * 1.6453555072203998)); elseif (z <= 3.2e+35) tmp = x + ((a * (y * z)) * 1.6453555072203998); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.5e+26], t$95$1, If[LessEqual[z, 1.75e-59], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+35], N[(x + N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + y \cdot 3.13060547623\\
\mathbf{if}\;z \leq -1.5 \cdot 10^{+26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{-59}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+35}:\\
\;\;\;\;x + \left(a \cdot \left(y \cdot z\right)\right) \cdot 1.6453555072203998\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.49999999999999999e26 or 3.19999999999999983e35 < z Initial program 6.8%
Simplified11.0%
Taylor expanded in z around inf 93.9%
+-commutative93.9%
*-commutative93.9%
Simplified93.9%
if -1.49999999999999999e26 < z < 1.75e-59Initial program 99.7%
Taylor expanded in z around 0 92.4%
Taylor expanded in z around 0 91.7%
*-commutative91.7%
Simplified91.7%
Taylor expanded in z around 0 80.2%
*-commutative80.2%
associate-*l*80.2%
Simplified80.2%
if 1.75e-59 < z < 3.19999999999999983e35Initial program 95.0%
Taylor expanded in b around 0 75.6%
Taylor expanded in z around 0 59.6%
Final simplification84.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -7.8e+24) (not (<= z 2.35e+35))) (+ x (* y 3.13060547623)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7.8e+24) || !(z <= 2.35e+35)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-7.8d+24)) .or. (.not. (z <= 2.35d+35))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -7.8e+24) || !(z <= 2.35e+35)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -7.8e+24) or not (z <= 2.35e+35): tmp = x + (y * 3.13060547623) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -7.8e+24) || !(z <= 2.35e+35)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -7.8e+24) || ~((z <= 2.35e+35))) tmp = x + (y * 3.13060547623); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -7.8e+24], N[Not[LessEqual[z, 2.35e+35]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.8 \cdot 10^{+24} \lor \neg \left(z \leq 2.35 \cdot 10^{+35}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -7.7999999999999995e24 or 2.35000000000000017e35 < z Initial program 6.8%
Simplified11.0%
Taylor expanded in z around inf 93.9%
+-commutative93.9%
*-commutative93.9%
Simplified93.9%
if -7.7999999999999995e24 < z < 2.35000000000000017e35Initial program 99.1%
Taylor expanded in z around 0 89.5%
Taylor expanded in z around 0 87.7%
*-commutative87.7%
Simplified87.7%
Taylor expanded in z around 0 74.6%
*-commutative74.6%
associate-*l*74.6%
Simplified74.6%
Final simplification82.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -2.25e+104) (not (<= y 95000000000.0))) (* y 3.13060547623) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.25e+104) || !(y <= 95000000000.0)) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-2.25d+104)) .or. (.not. (y <= 95000000000.0d0))) then
tmp = y * 3.13060547623d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -2.25e+104) || !(y <= 95000000000.0)) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -2.25e+104) or not (y <= 95000000000.0): tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -2.25e+104) || !(y <= 95000000000.0)) tmp = Float64(y * 3.13060547623); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -2.25e+104) || ~((y <= 95000000000.0))) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -2.25e+104], N[Not[LessEqual[y, 95000000000.0]], $MachinePrecision]], N[(y * 3.13060547623), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.25 \cdot 10^{+104} \lor \neg \left(y \leq 95000000000\right):\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -2.2499999999999999e104 or 9.5e10 < y Initial program 58.0%
Simplified63.4%
Taylor expanded in z around inf 44.9%
+-commutative44.9%
*-commutative44.9%
Simplified44.9%
Taylor expanded in y around inf 44.9%
Taylor expanded in y around inf 35.9%
*-commutative35.9%
Simplified35.9%
if -2.2499999999999999e104 < y < 9.5e10Initial program 60.9%
Simplified60.9%
Taylor expanded in y around 0 65.6%
Final simplification53.8%
(FPCore (x y z t a b) :precision binary64 (+ x (* y 3.13060547623)))
double code(double x, double y, double z, double t, double a, double b) {
return x + (y * 3.13060547623);
}
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 * 3.13060547623d0)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (y * 3.13060547623);
}
def code(x, y, z, t, a, b): return x + (y * 3.13060547623)
function code(x, y, z, t, a, b) return Float64(x + Float64(y * 3.13060547623)) end
function tmp = code(x, y, z, t, a, b) tmp = x + (y * 3.13060547623); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot 3.13060547623
\end{array}
Initial program 59.8%
Simplified61.9%
Taylor expanded in z around inf 61.7%
+-commutative61.7%
*-commutative61.7%
Simplified61.7%
Final simplification61.7%
(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 59.8%
Simplified61.9%
Taylor expanded in y around 0 44.8%
Final simplification44.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 2024085
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (if (< z 7.066965436914287e+59) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771) (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))