
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
(/
(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))
y
x)
(+
x
(+
(* -36.52704169880642 (/ y z))
(+ (* y 3.13060547623) (/ y (/ (pow z 2.0) (+ t 457.9610022158428))))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma((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)), y, x);
} else {
tmp = x + ((-36.52704169880642 * (y / z)) + ((y * 3.13060547623) + (y / (pow(z, 2.0) / (t + 457.9610022158428)))));
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = fma(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)), y, x); else tmp = Float64(x + Float64(Float64(-36.52704169880642 * Float64(y / z)) + Float64(Float64(y * 3.13060547623) + Float64(y / Float64((z ^ 2.0) / Float64(t + 457.9610022158428)))))); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(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] * y + x), $MachinePrecision], N[(x + N[(N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision] + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(y / N[(N[Power[z, 2.0], $MachinePrecision] / N[(t + 457.9610022158428), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\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)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(-36.52704169880642 \cdot \frac{y}{z} + \left(y \cdot 3.13060547623 + \frac{y}{\frac{{z}^{2}}{t + 457.9610022158428}}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 92.6%
Simplified97.5%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 85.9%
*-un-lft-identity85.9%
associate-/l*99.9%
+-commutative99.9%
Applied egg-rr99.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
(t_2
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(if (<= (/ (* y (+ t_2 b)) t_1) INFINITY)
(+ x (* y (+ (/ b t_1) (/ t_2 t_1))))
(+
x
(+
(* -36.52704169880642 (/ y z))
(+
(* y 3.13060547623)
(/ y (/ (pow z 2.0) (+ t 457.9610022158428)))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double tmp;
if (((y * (t_2 + b)) / t_1) <= ((double) INFINITY)) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} else {
tmp = x + ((-36.52704169880642 * (y / z)) + ((y * 3.13060547623) + (y / (pow(z, 2.0) / (t + 457.9610022158428)))));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double tmp;
if (((y * (t_2 + b)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} else {
tmp = x + ((-36.52704169880642 * (y / z)) + ((y * 3.13060547623) + (y / (Math.pow(z, 2.0) / (t + 457.9610022158428)))));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771 t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))) tmp = 0 if ((y * (t_2 + b)) / t_1) <= math.inf: tmp = x + (y * ((b / t_1) + (t_2 / t_1))) else: tmp = x + ((-36.52704169880642 * (y / z)) + ((y * 3.13060547623) + (y / (math.pow(z, 2.0) / (t + 457.9610022158428))))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) t_2 = Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) tmp = 0.0 if (Float64(Float64(y * Float64(t_2 + b)) / t_1) <= Inf) tmp = Float64(x + Float64(y * Float64(Float64(b / t_1) + Float64(t_2 / t_1)))); else tmp = Float64(x + Float64(Float64(-36.52704169880642 * Float64(y / z)) + Float64(Float64(y * 3.13060547623) + Float64(y / Float64((z ^ 2.0) / Float64(t + 457.9610022158428)))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771; t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))); tmp = 0.0; if (((y * (t_2 + b)) / t_1) <= Inf) tmp = x + (y * ((b / t_1) + (t_2 / t_1))); else tmp = x + ((-36.52704169880642 * (y / z)) + ((y * 3.13060547623) + (y / ((z ^ 2.0) / (t + 457.9610022158428))))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(t$95$2 + b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(y * N[(N[(b / t$95$1), $MachinePrecision] + N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision] + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(y / N[(N[Power[z, 2.0], $MachinePrecision] / N[(t + 457.9610022158428), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
t_2 := z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\\
\mathbf{if}\;\frac{y \cdot \left(t_2 + b\right)}{t_1} \leq \infty:\\
\;\;\;\;x + y \cdot \left(\frac{b}{t_1} + \frac{t_2}{t_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(-36.52704169880642 \cdot \frac{y}{z} + \left(y \cdot 3.13060547623 + \frac{y}{\frac{{z}^{2}}{t + 457.9610022158428}}\right)\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 92.6%
Simplified97.5%
Taylor expanded in y around 0 97.5%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 85.9%
*-un-lft-identity85.9%
associate-/l*99.9%
+-commutative99.9%
Applied egg-rr99.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
(t_2
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(if (<= (/ (* y (+ t_2 b)) t_1) INFINITY)
(+ x (* y (+ (/ b t_1) (/ t_2 t_1))))
(+ x (* y (- (/ t (pow z 2.0)) -3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double tmp;
if (((y * (t_2 + b)) / t_1) <= ((double) INFINITY)) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} else {
tmp = x + (y * ((t / pow(z, 2.0)) - -3.13060547623));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double tmp;
if (((y * (t_2 + b)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} else {
tmp = x + (y * ((t / Math.pow(z, 2.0)) - -3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771 t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))) tmp = 0 if ((y * (t_2 + b)) / t_1) <= math.inf: tmp = x + (y * ((b / t_1) + (t_2 / t_1))) else: tmp = x + (y * ((t / math.pow(z, 2.0)) - -3.13060547623)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) t_2 = Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) tmp = 0.0 if (Float64(Float64(y * Float64(t_2 + b)) / t_1) <= Inf) tmp = Float64(x + Float64(y * Float64(Float64(b / t_1) + Float64(t_2 / t_1)))); else tmp = Float64(x + Float64(y * Float64(Float64(t / (z ^ 2.0)) - -3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771; t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))); tmp = 0.0; if (((y * (t_2 + b)) / t_1) <= Inf) tmp = x + (y * ((b / t_1) + (t_2 / t_1))); else tmp = x + (y * ((t / (z ^ 2.0)) - -3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(t$95$2 + b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(y * N[(N[(b / t$95$1), $MachinePrecision] + N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] - -3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
t_2 := z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\\
\mathbf{if}\;\frac{y \cdot \left(t_2 + b\right)}{t_1} \leq \infty:\\
\;\;\;\;x + y \cdot \left(\frac{b}{t_1} + \frac{t_2}{t_1}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(\frac{t}{{z}^{2}} - -3.13060547623\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 92.6%
Simplified97.5%
Taylor expanded in y around 0 97.5%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 85.9%
Taylor expanded in y around -inf 99.9%
mul-1-neg99.9%
*-commutative99.9%
distribute-rgt-neg-in99.9%
sub-neg99.9%
+-commutative99.9%
mul-1-neg99.9%
unsub-neg99.9%
associate-*r/99.9%
metadata-eval99.9%
+-commutative99.9%
metadata-eval99.9%
Simplified99.9%
Taylor expanded in t around inf 99.9%
associate-*r/99.9%
mul-1-neg99.9%
Simplified99.9%
Final simplification98.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
(t_2
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(if (<= (/ (* y (+ t_2 b)) t_1) INFINITY)
(+ x (* y (+ (/ b t_1) (/ t_2 t_1))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double tmp;
if (((y * (t_2 + b)) / t_1) <= ((double) INFINITY)) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} 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 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771;
double t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))));
double tmp;
if (((y * (t_2 + b)) / t_1) <= Double.POSITIVE_INFINITY) {
tmp = x + (y * ((b / t_1) + (t_2 / t_1)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771 t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))) tmp = 0 if ((y * (t_2 + b)) / t_1) <= math.inf: tmp = x + (y * ((b / t_1) + (t_2 / t_1))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771) t_2 = Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) tmp = 0.0 if (Float64(Float64(y * Float64(t_2 + b)) / t_1) <= Inf) tmp = Float64(x + Float64(y * Float64(Float64(b / t_1) + Float64(t_2 / t_1)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771; t_2 = z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623)))))); tmp = 0.0; if (((y * (t_2 + b)) / t_1) <= Inf) tmp = x + (y * ((b / t_1) + (t_2 / t_1))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(y * N[(t$95$2 + b), $MachinePrecision]), $MachinePrecision] / t$95$1), $MachinePrecision], Infinity], N[(x + N[(y * N[(N[(b / t$95$1), $MachinePrecision] + N[(t$95$2 / t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771\\
t_2 := z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\\
\mathbf{if}\;\frac{y \cdot \left(t_2 + b\right)}{t_1} \leq \infty:\\
\;\;\;\;x + y \cdot \left(\frac{b}{t_1} + \frac{t_2}{t_1}\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 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 92.6%
Simplified97.5%
Taylor expanded in y around 0 97.5%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 94.3%
Final simplification96.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY) (+ 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 * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = 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 * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771);
double tmp;
if (t_1 <= Double.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 * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + 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(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) tmp = 0.0 if (t_1 <= 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 * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))) + 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[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], N[(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(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;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 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) < +inf.0Initial program 92.6%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z 313060547623/100000000000) 55833770631/5000000000) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z 15234687407/1000000000) z) 314690115749/10000000000) z) 119400905721/10000000000) z) 607771387771/1000000000000)) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 94.3%
Final simplification93.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3200000000.0)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 7.8e+27)
(+
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)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3200000000.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 7.8e+27) {
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);
}
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 <= (-3200000000.0d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 7.8d+27) 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)
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 <= -3200000000.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 7.8e+27) {
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);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3200000000.0: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 7.8e+27: 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) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3200000000.0) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 7.8e+27) 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(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -3200000000.0) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 7.8e+27) 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); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3200000000.0], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e+27], 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[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3200000000:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+27}:\\
\;\;\;\;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 + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -3.2e9Initial program 14.1%
Simplified26.6%
Taylor expanded in z around inf 81.0%
Taylor expanded in y around -inf 90.5%
mul-1-neg90.5%
*-commutative90.5%
distribute-rgt-neg-in90.5%
sub-neg90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
associate-*r/90.5%
metadata-eval90.5%
+-commutative90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in z around inf 85.8%
if -3.2e9 < z < 7.7999999999999997e27Initial program 99.1%
Taylor expanded in z around 0 99.1%
*-commutative94.4%
Simplified99.1%
if 7.7999999999999997e27 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification94.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3200000000.0)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 6e-37)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(if (<= z 8.6e+33)
(+
x
(/
(+ (* a (* y z)) (* y b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3200000000.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 6e-37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 8.6e+33) {
tmp = x + (((a * (y * z)) + (y * b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-3200000000.0d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 6d-37) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else if (z <= 8.6d+33) then
tmp = x + (((a * (y * z)) + (y * b)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3200000000.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 6e-37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 8.6e+33) {
tmp = x + (((a * (y * z)) + (y * b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -3200000000.0: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 6e-37: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) elif z <= 8.6e+33: tmp = x + (((a * (y * z)) + (y * b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3200000000.0) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 6e-37) 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)))))); elseif (z <= 8.6e+33) tmp = Float64(x + Float64(Float64(Float64(a * Float64(y * z)) + Float64(y * b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -3200000000.0) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 6e-37) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); elseif (z <= 8.6e+33) tmp = x + (((a * (y * z)) + (y * b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3200000000.0], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-37], 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], If[LessEqual[z, 8.6e+33], N[(x + N[(N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(y * 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]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3200000000:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-37}:\\
\;\;\;\;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{elif}\;z \leq 8.6 \cdot 10^{+33}:\\
\;\;\;\;x + \frac{a \cdot \left(y \cdot z\right) + y \cdot b}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -3.2e9Initial program 14.1%
Simplified26.6%
Taylor expanded in z around inf 81.0%
Taylor expanded in y around -inf 90.5%
mul-1-neg90.5%
*-commutative90.5%
distribute-rgt-neg-in90.5%
sub-neg90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
associate-*r/90.5%
metadata-eval90.5%
+-commutative90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in z around inf 85.8%
if -3.2e9 < z < 6e-37Initial program 99.7%
Taylor expanded in z around 0 98.1%
*-commutative94.0%
Simplified98.1%
Taylor expanded in z around 0 98.1%
*-commutative98.1%
Simplified98.1%
if 6e-37 < z < 8.60000000000000057e33Initial program 94.1%
Taylor expanded in z around 0 99.8%
if 8.60000000000000057e33 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification94.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1300.0)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 6e-37)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))
(if (<= z 7e+32)
(+
x
(/
(* y (+ b (* z a)))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1300.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 6e-37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 7e+32) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1300.0d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 6d-37) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else if (z <= 7d+32) then
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1300.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 6e-37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 7e+32) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1300.0: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 6e-37: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) elif z <= 7e+32: tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1300.0) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 6e-37) 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)))); elseif (z <= 7e+32) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1300.0) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 6e-37) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); elseif (z <= 7e+32) tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1300.0], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-37], 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], If[LessEqual[z, 7e+32], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1300:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-37}:\\
\;\;\;\;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{elif}\;z \leq 7 \cdot 10^{+32}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1300Initial program 16.9%
Simplified28.9%
Taylor expanded in z around inf 80.5%
Taylor expanded in y around -inf 89.7%
mul-1-neg89.7%
*-commutative89.7%
distribute-rgt-neg-in89.7%
sub-neg89.7%
+-commutative89.7%
mul-1-neg89.7%
unsub-neg89.7%
associate-*r/89.7%
metadata-eval89.7%
+-commutative89.7%
metadata-eval89.7%
Simplified89.7%
Taylor expanded in z around inf 84.7%
if -1300 < z < 6e-37Initial program 99.6%
Taylor expanded in z around 0 98.7%
*-commutative94.6%
Simplified98.7%
Taylor expanded in z around 0 98.7%
*-commutative98.7%
Simplified98.7%
Taylor expanded in z around 0 98.6%
*-commutative98.6%
Simplified98.6%
if 6e-37 < z < 7.0000000000000002e32Initial program 94.1%
Taylor expanded in z around 0 99.8%
Taylor expanded in y around 0 99.6%
*-commutative99.6%
Simplified99.6%
if 7.0000000000000002e32 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification94.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1060000000.0)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 6e-37)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(if (<= z 5.5e+32)
(+
x
(/
(* y (+ b (* z a)))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1060000000.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 6e-37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 5.5e+32) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1060000000.0d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 6d-37) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else if (z <= 5.5d+32) then
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1060000000.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 6e-37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 5.5e+32) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1060000000.0: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 6e-37: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) elif z <= 5.5e+32: tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1060000000.0) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 6e-37) 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)))))); elseif (z <= 5.5e+32) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1060000000.0) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 6e-37) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); elseif (z <= 5.5e+32) tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1060000000.0], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-37], 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], If[LessEqual[z, 5.5e+32], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1060000000:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-37}:\\
\;\;\;\;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{elif}\;z \leq 5.5 \cdot 10^{+32}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.06e9Initial program 14.1%
Simplified26.6%
Taylor expanded in z around inf 81.0%
Taylor expanded in y around -inf 90.5%
mul-1-neg90.5%
*-commutative90.5%
distribute-rgt-neg-in90.5%
sub-neg90.5%
+-commutative90.5%
mul-1-neg90.5%
unsub-neg90.5%
associate-*r/90.5%
metadata-eval90.5%
+-commutative90.5%
metadata-eval90.5%
Simplified90.5%
Taylor expanded in z around inf 85.8%
if -1.06e9 < z < 6e-37Initial program 99.7%
Taylor expanded in z around 0 98.1%
*-commutative94.0%
Simplified98.1%
Taylor expanded in z around 0 98.1%
*-commutative98.1%
Simplified98.1%
if 6e-37 < z < 5.49999999999999984e32Initial program 94.1%
Taylor expanded in z around 0 99.8%
Taylor expanded in y around 0 99.6%
*-commutative99.6%
Simplified99.6%
if 5.49999999999999984e32 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification94.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.9)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 0.34)
(+
x
(/
(* y (+ b (* z a)))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(if (<= z 7.5e+56)
(+
x
(/
(* a (* y z))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(if (<= z 3.45e+83)
(+ x (* y (* z 0.35484921728862673)))
(+ x (* y 3.13060547623)))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.9) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 0.34) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 7.5e+56) {
tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else if (z <= 3.45e+83) {
tmp = x + (y * (z * 0.35484921728862673));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1.9d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 0.34d0) then
tmp = x + ((y * (b + (z * a))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else if (z <= 7.5d+56) then
tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else if (z <= 3.45d+83) then
tmp = x + (y * (z * 0.35484921728862673d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.9) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 0.34) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else if (z <= 7.5e+56) {
tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else if (z <= 3.45e+83) {
tmp = x + (y * (z * 0.35484921728862673));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.9: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 0.34: tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) elif z <= 7.5e+56: tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) elif z <= 3.45e+83: tmp = x + (y * (z * 0.35484921728862673)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.9) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 0.34) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); elseif (z <= 7.5e+56) tmp = Float64(x + Float64(Float64(a * Float64(y * z)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); elseif (z <= 3.45e+83) tmp = Float64(x + Float64(y * Float64(z * 0.35484921728862673))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.9) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 0.34) tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); elseif (z <= 7.5e+56) tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); elseif (z <= 3.45e+83) tmp = x + (y * (z * 0.35484921728862673)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.9], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.34], 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], If[LessEqual[z, 7.5e+56], N[(x + N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.45e+83], N[(x + N[(y * N[(z * 0.35484921728862673), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 0.34:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+56}:\\
\;\;\;\;x + \frac{a \cdot \left(y \cdot z\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{elif}\;z \leq 3.45 \cdot 10^{+83}:\\
\;\;\;\;x + y \cdot \left(z \cdot 0.35484921728862673\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.8999999999999999Initial program 19.5%
Simplified31.2%
Taylor expanded in z around inf 79.5%
Taylor expanded in y around -inf 88.5%
mul-1-neg88.5%
*-commutative88.5%
distribute-rgt-neg-in88.5%
sub-neg88.5%
+-commutative88.5%
mul-1-neg88.5%
unsub-neg88.5%
associate-*r/88.5%
metadata-eval88.5%
+-commutative88.5%
metadata-eval88.5%
Simplified88.5%
Taylor expanded in z around inf 83.6%
if -1.8999999999999999 < z < 0.340000000000000024Initial program 99.6%
Taylor expanded in z around 0 93.4%
Taylor expanded in y around 0 95.5%
*-commutative95.5%
Simplified95.5%
Taylor expanded in z around 0 95.1%
*-commutative95.1%
Simplified95.1%
if 0.340000000000000024 < z < 7.4999999999999999e56Initial program 85.7%
Taylor expanded in a around inf 88.8%
*-commutative88.8%
Simplified88.8%
if 7.4999999999999999e56 < z < 3.4500000000000001e83Initial program 17.6%
Taylor expanded in z around 0 19.7%
*-commutative65.7%
Simplified19.7%
Taylor expanded in z around 0 48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in z around inf 69.3%
*-commutative69.3%
associate-*l*69.3%
Simplified69.3%
if 3.4500000000000001e83 < z Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 97.2%
Final simplification91.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1300.0)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 0.37)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+ 0.607771387771 (* z 11.9400905721))))
(if (<= z 8e+31)
(+
x
(/
(* a (* y z))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1300.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 0.37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 8e+31) {
tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1300.0d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 0.37d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else if (z <= 8d+31) then
tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1300.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 0.37) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721)));
} else if (z <= 8e+31) {
tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1300.0: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 0.37: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))) elif z <= 8e+31: tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1300.0) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 0.37) 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)))); elseif (z <= 8e+31) tmp = Float64(x + Float64(Float64(a * Float64(y * z)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1300.0) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 0.37) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / (0.607771387771 + (z * 11.9400905721))); elseif (z <= 8e+31) tmp = x + ((a * (y * z)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1300.0], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.37], 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], If[LessEqual[z, 8e+31], N[(x + N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1300:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 0.37:\\
\;\;\;\;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{elif}\;z \leq 8 \cdot 10^{+31}:\\
\;\;\;\;x + \frac{a \cdot \left(y \cdot z\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1300Initial program 16.9%
Simplified28.9%
Taylor expanded in z around inf 80.5%
Taylor expanded in y around -inf 89.7%
mul-1-neg89.7%
*-commutative89.7%
distribute-rgt-neg-in89.7%
sub-neg89.7%
+-commutative89.7%
mul-1-neg89.7%
unsub-neg89.7%
associate-*r/89.7%
metadata-eval89.7%
+-commutative89.7%
metadata-eval89.7%
Simplified89.7%
Taylor expanded in z around inf 84.7%
if -1300 < z < 0.37Initial program 99.6%
Taylor expanded in z around 0 98.4%
*-commutative94.5%
Simplified98.4%
Taylor expanded in z around 0 98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in z around 0 98.1%
*-commutative98.1%
Simplified98.1%
if 0.37 < z < 7.9999999999999997e31Initial program 91.1%
Taylor expanded in a around inf 95.4%
*-commutative95.4%
Simplified95.4%
if 7.9999999999999997e31 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification93.6%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2.3)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 2.05e+31)
(+
x
(/
(* y (+ b (* z a)))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.3) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 2.05e+31) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-2.3d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 2.05d+31) then
tmp = x + ((y * (b + (z * a))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2.3) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 2.05e+31) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2.3: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 2.05e+31: tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2.3) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 2.05e+31) 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(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2.3) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 2.05e+31) tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2.3], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+31], 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[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+31}:\\
\;\;\;\;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 + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -2.2999999999999998Initial program 19.5%
Simplified31.2%
Taylor expanded in z around inf 79.5%
Taylor expanded in y around -inf 88.5%
mul-1-neg88.5%
*-commutative88.5%
distribute-rgt-neg-in88.5%
sub-neg88.5%
+-commutative88.5%
mul-1-neg88.5%
unsub-neg88.5%
associate-*r/88.5%
metadata-eval88.5%
+-commutative88.5%
metadata-eval88.5%
Simplified88.5%
Taylor expanded in z around inf 83.6%
if -2.2999999999999998 < z < 2.0500000000000001e31Initial program 99.0%
Taylor expanded in z around 0 93.8%
Taylor expanded in y around 0 95.8%
*-commutative95.8%
Simplified95.8%
Taylor expanded in z around 0 92.5%
*-commutative92.5%
Simplified92.5%
if 2.0500000000000001e31 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification90.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))))
(if (<= z -1.9)
t_1
(if (<= z -3.6e-111)
(- x (* y (* z (- (* b 32.324150453290734) (* a 1.6453555072203998)))))
(if (<= z 0.236)
(+
x
(* b (+ (* (* y z) -32.324150453290734) (* y 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 + (36.52704169880642 / z)));
double tmp;
if (z <= -1.9) {
tmp = t_1;
} else if (z <= -3.6e-111) {
tmp = x - (y * (z * ((b * 32.324150453290734) - (a * 1.6453555072203998))));
} else if (z <= 0.236) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 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) + (36.52704169880642d0 / z)))
if (z <= (-1.9d0)) then
tmp = t_1
else if (z <= (-3.6d-111)) then
tmp = x - (y * (z * ((b * 32.324150453290734d0) - (a * 1.6453555072203998d0))))
else if (z <= 0.236d0) then
tmp = x + (b * (((y * z) * (-32.324150453290734d0)) + (y * 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 + (36.52704169880642 / z)));
double tmp;
if (z <= -1.9) {
tmp = t_1;
} else if (z <= -3.6e-111) {
tmp = x - (y * (z * ((b * 32.324150453290734) - (a * 1.6453555072203998))));
} else if (z <= 0.236) {
tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x - (y * (-3.13060547623 + (36.52704169880642 / z))) tmp = 0 if z <= -1.9: tmp = t_1 elif z <= -3.6e-111: tmp = x - (y * (z * ((b * 32.324150453290734) - (a * 1.6453555072203998)))) elif z <= 0.236: tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 1.6453555072203998))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))) tmp = 0.0 if (z <= -1.9) tmp = t_1; elseif (z <= -3.6e-111) tmp = Float64(x - Float64(y * Float64(z * Float64(Float64(b * 32.324150453290734) - Float64(a * 1.6453555072203998))))); elseif (z <= 0.236) tmp = Float64(x + Float64(b * Float64(Float64(Float64(y * z) * -32.324150453290734) + Float64(y * 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 + (36.52704169880642 / z))); tmp = 0.0; if (z <= -1.9) tmp = t_1; elseif (z <= -3.6e-111) tmp = x - (y * (z * ((b * 32.324150453290734) - (a * 1.6453555072203998)))); elseif (z <= 0.236) tmp = x + (b * (((y * z) * -32.324150453290734) + (y * 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 * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.9], t$95$1, If[LessEqual[z, -3.6e-111], N[(x - N[(y * N[(z * N[(N[(b * 32.324150453290734), $MachinePrecision] - N[(a * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.236], N[(x + N[(b * N[(N[(N[(y * z), $MachinePrecision] * -32.324150453290734), $MachinePrecision] + N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{if}\;z \leq -1.9:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -3.6 \cdot 10^{-111}:\\
\;\;\;\;x - y \cdot \left(z \cdot \left(b \cdot 32.324150453290734 - a \cdot 1.6453555072203998\right)\right)\\
\mathbf{elif}\;z \leq 0.236:\\
\;\;\;\;x + b \cdot \left(\left(y \cdot z\right) \cdot -32.324150453290734 + y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.8999999999999999 or 0.23599999999999999 < z Initial program 20.6%
Simplified27.6%
Taylor expanded in z around inf 79.2%
Taylor expanded in y around -inf 88.9%
mul-1-neg88.9%
*-commutative88.9%
distribute-rgt-neg-in88.9%
sub-neg88.9%
+-commutative88.9%
mul-1-neg88.9%
unsub-neg88.9%
associate-*r/88.9%
metadata-eval88.9%
+-commutative88.9%
metadata-eval88.9%
Simplified88.9%
Taylor expanded in z around inf 83.2%
if -1.8999999999999999 < z < -3.6000000000000001e-111Initial program 99.8%
Simplified99.8%
Taylor expanded in z around 0 80.8%
Taylor expanded in z around inf 79.8%
if -3.6000000000000001e-111 < z < 0.23599999999999999Initial program 99.6%
Simplified99.7%
Taylor expanded in z around 0 92.4%
Taylor expanded in b around inf 83.9%
Final simplification83.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1300.0)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 2e+28)
(+ x (/ (* y (+ b (* z a))) (+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1300.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 2e+28) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1300.0d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 2d+28) then
tmp = x + ((y * (b + (z * a))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1300.0) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 2e+28) {
tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1300.0: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 2e+28: tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1300.0) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 2e+28) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1300.0) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 2e+28) tmp = x + ((y * (b + (z * a))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1300.0], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+28], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1300:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+28}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1300Initial program 16.9%
Simplified28.9%
Taylor expanded in z around inf 80.5%
Taylor expanded in y around -inf 89.7%
mul-1-neg89.7%
*-commutative89.7%
distribute-rgt-neg-in89.7%
sub-neg89.7%
+-commutative89.7%
mul-1-neg89.7%
unsub-neg89.7%
associate-*r/89.7%
metadata-eval89.7%
+-commutative89.7%
metadata-eval89.7%
Simplified89.7%
Taylor expanded in z around inf 84.7%
if -1300 < z < 1.99999999999999992e28Initial program 99.0%
Taylor expanded in z around 0 93.9%
Taylor expanded in y around 0 95.9%
*-commutative95.9%
Simplified95.9%
Taylor expanded in z around 0 91.6%
*-commutative76.4%
Simplified91.6%
if 1.99999999999999992e28 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification89.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -1.9)
(- x (* y (+ -3.13060547623 (/ 36.52704169880642 z))))
(if (<= z 3.2e+27)
(+ x (* y (+ (* b 1.6453555072203998) (* (* z a) 1.6453555072203998))))
(+ x (* y 3.13060547623)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.9) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 3.2e+27) {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-1.9d0)) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else if (z <= 3.2d+27) then
tmp = x + (y * ((b * 1.6453555072203998d0) + ((z * a) * 1.6453555072203998d0)))
else
tmp = x + (y * 3.13060547623d0)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -1.9) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else if (z <= 3.2e+27) {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
} else {
tmp = x + (y * 3.13060547623);
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -1.9: tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) elif z <= 3.2e+27: tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))) else: tmp = x + (y * 3.13060547623) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -1.9) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); elseif (z <= 3.2e+27) tmp = Float64(x + Float64(y * Float64(Float64(b * 1.6453555072203998) + Float64(Float64(z * a) * 1.6453555072203998)))); else tmp = Float64(x + Float64(y * 3.13060547623)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -1.9) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); elseif (z <= 3.2e+27) tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))); else tmp = x + (y * 3.13060547623); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -1.9], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.2e+27], N[(x + N[(y * N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.9:\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 3.2 \cdot 10^{+27}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998 + \left(z \cdot a\right) \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot 3.13060547623\\
\end{array}
\end{array}
if z < -1.8999999999999999Initial program 19.5%
Simplified31.2%
Taylor expanded in z around inf 79.5%
Taylor expanded in y around -inf 88.5%
mul-1-neg88.5%
*-commutative88.5%
distribute-rgt-neg-in88.5%
sub-neg88.5%
+-commutative88.5%
mul-1-neg88.5%
unsub-neg88.5%
associate-*r/88.5%
metadata-eval88.5%
+-commutative88.5%
metadata-eval88.5%
Simplified88.5%
Taylor expanded in z around inf 83.6%
if -1.8999999999999999 < z < 3.20000000000000015e27Initial program 99.0%
Simplified99.1%
Taylor expanded in z around 0 87.8%
Taylor expanded in a around inf 89.8%
*-commutative89.8%
associate-*l*89.8%
Simplified89.8%
Taylor expanded in y around 0 91.8%
if 3.20000000000000015e27 < z Initial program 6.7%
Simplified8.8%
Taylor expanded in z around inf 91.5%
Final simplification89.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1700.0) (not (<= z 0.37))) (- x (* y (+ -3.13060547623 (/ 36.52704169880642 z)))) (+ x (/ (* y b) (+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1700.0) || !(z <= 0.37)) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1700.0d0)) .or. (.not. (z <= 0.37d0))) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
else
tmp = x + ((y * b) / (0.607771387771d0 + (z * 11.9400905721d0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1700.0) || !(z <= 0.37)) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else {
tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1700.0) or not (z <= 0.37): tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) else: tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1700.0) || !(z <= 0.37)) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); else tmp = Float64(x + Float64(Float64(y * b) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1700.0) || ~((z <= 0.37))) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); else tmp = x + ((y * b) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1700.0], N[Not[LessEqual[z, 0.37]], $MachinePrecision]], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * b), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1700 \lor \neg \left(z \leq 0.37\right):\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot b}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -1700 or 0.37 < z Initial program 19.2%
Simplified26.4%
Taylor expanded in z around inf 79.7%
Taylor expanded in y around -inf 89.6%
mul-1-neg89.6%
*-commutative89.6%
distribute-rgt-neg-in89.6%
sub-neg89.6%
+-commutative89.6%
mul-1-neg89.6%
unsub-neg89.6%
associate-*r/89.6%
metadata-eval89.6%
+-commutative89.6%
metadata-eval89.6%
Simplified89.6%
Taylor expanded in z around inf 83.8%
if -1700 < z < 0.37Initial program 99.6%
Taylor expanded in z around 0 79.5%
Taylor expanded in z around 0 78.9%
*-commutative78.9%
Simplified78.9%
Final simplification81.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2.4) (not (<= z 0.37))) (- x (* y (+ -3.13060547623 (/ 36.52704169880642 z)))) (+ x (* y (* b 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2.4) || !(z <= 0.37)) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} 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 <= (-2.4d0)) .or. (.not. (z <= 0.37d0))) then
tmp = x - (y * ((-3.13060547623d0) + (36.52704169880642d0 / z)))
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 <= -2.4) || !(z <= 0.37)) {
tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z)));
} else {
tmp = x + (y * (b * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2.4) or not (z <= 0.37): tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))) else: tmp = x + (y * (b * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2.4) || !(z <= 0.37)) tmp = Float64(x - Float64(y * Float64(-3.13060547623 + Float64(36.52704169880642 / z)))); 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 <= -2.4) || ~((z <= 0.37))) tmp = x - (y * (-3.13060547623 + (36.52704169880642 / z))); else tmp = x + (y * (b * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2.4], N[Not[LessEqual[z, 0.37]], $MachinePrecision]], N[(x - N[(y * N[(-3.13060547623 + N[(36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(b * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \lor \neg \left(z \leq 0.37\right):\\
\;\;\;\;x - y \cdot \left(-3.13060547623 + \frac{36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -2.39999999999999991 or 0.37 < z Initial program 20.6%
Simplified27.6%
Taylor expanded in z around inf 79.2%
Taylor expanded in y around -inf 88.9%
mul-1-neg88.9%
*-commutative88.9%
distribute-rgt-neg-in88.9%
sub-neg88.9%
+-commutative88.9%
mul-1-neg88.9%
unsub-neg88.9%
associate-*r/88.9%
metadata-eval88.9%
+-commutative88.9%
metadata-eval88.9%
Simplified88.9%
Taylor expanded in z around inf 83.2%
if -2.39999999999999991 < z < 0.37Initial program 99.6%
Taylor expanded in z around 0 93.4%
Taylor expanded in z around 0 78.5%
*-commutative78.5%
*-commutative78.5%
associate-*l*78.5%
Simplified78.5%
Final simplification80.7%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.95) (not (<= z 140.0))) (+ 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.95) || !(z <= 140.0)) {
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.95d0)) .or. (.not. (z <= 140.0d0))) 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.95) || !(z <= 140.0)) {
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.95) or not (z <= 140.0): 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.95) || !(z <= 140.0)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(Float64(y * b) * 1.6453555072203998)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.95) || ~((z <= 140.0))) 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.95], N[Not[LessEqual[z, 140.0]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * b), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.95 \lor \neg \left(z \leq 140\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot b\right) \cdot 1.6453555072203998\\
\end{array}
\end{array}
if z < -1.94999999999999996 or 140 < z Initial program 18.5%
Simplified25.7%
Taylor expanded in z around inf 84.1%
if -1.94999999999999996 < z < 140Initial program 99.6%
Simplified99.7%
Taylor expanded in z around 0 77.6%
Final simplification80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.95) (not (<= z 140.0))) (+ 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.95) || !(z <= 140.0)) {
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.95d0)) .or. (.not. (z <= 140.0d0))) 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.95) || !(z <= 140.0)) {
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.95) or not (z <= 140.0): 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.95) || !(z <= 140.0)) 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.95) || ~((z <= 140.0))) 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.95], N[Not[LessEqual[z, 140.0]], $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.95 \lor \neg \left(z \leq 140\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.94999999999999996 or 140 < z Initial program 18.5%
Simplified25.7%
Taylor expanded in z around inf 84.1%
if -1.94999999999999996 < z < 140Initial program 99.6%
Taylor expanded in z around 0 93.5%
Taylor expanded in z around 0 77.6%
*-commutative77.6%
*-commutative77.6%
associate-*l*77.6%
Simplified77.6%
Final simplification80.6%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -0.00052) (not (<= y 2.4e-31))) (* y 3.13060547623) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -0.00052) || !(y <= 2.4e-31)) {
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 <= (-0.00052d0)) .or. (.not. (y <= 2.4d-31))) 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 <= -0.00052) || !(y <= 2.4e-31)) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -0.00052) or not (y <= 2.4e-31): tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -0.00052) || !(y <= 2.4e-31)) 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 <= -0.00052) || ~((y <= 2.4e-31))) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -0.00052], N[Not[LessEqual[y, 2.4e-31]], $MachinePrecision]], N[(y * 3.13060547623), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -0.00052 \lor \neg \left(y \leq 2.4 \cdot 10^{-31}\right):\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -5.19999999999999954e-4 or 2.4e-31 < y Initial program 64.9%
Simplified70.7%
Taylor expanded in z around inf 37.2%
Taylor expanded in x around 0 29.3%
*-commutative29.3%
Simplified29.3%
if -5.19999999999999954e-4 < y < 2.4e-31Initial program 59.5%
Simplified59.6%
Taylor expanded in y around 0 76.5%
Final simplification49.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 62.6%
Simplified65.9%
Taylor expanded in z around inf 55.4%
Final simplification55.4%
(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 62.6%
Simplified65.9%
Taylor expanded in y around 0 40.6%
Final simplification40.6%
(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 2023334
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:herbie-target
(if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (if (< z 7.066965436914287e+59) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771) (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))