
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<= z -900000000.0)
(+
x
(+
(* y 3.13060547623)
(*
y
(/
(-
(/
(+
(+ t 457.9610022158428)
(/ (- (- a 5864.8025282699045) (* t 15.234687407)) z))
z)
36.52704169880642)
z))))
(if (<= z 4.1e+36)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -900000000.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 4.1e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (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 <= (-900000000.0d0)) then
tmp = x + ((y * 3.13060547623d0) + (y * (((((t + 457.9610022158428d0) + (((a - 5864.8025282699045d0) - (t * 15.234687407d0)) / z)) / z) - 36.52704169880642d0) / z)))
else if (z <= 4.1d+36) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + ((y * ((((457.9610022158428d0 + (t + (a / z))) / z) - 36.52704169880642d0) / z)) + (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 <= -900000000.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 4.1e+36) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -900000000.0: tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))) elif z <= 4.1e+36: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -900000000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(y * Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(a - 5864.8025282699045) - Float64(t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)))); elseif (z <= 4.1e+36) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -900000000.0) tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))); elseif (z <= 4.1e+36) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -900000000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(y * N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(a - 5864.8025282699045), $MachinePrecision] - N[(t * 15.234687407), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.1e+36], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -900000000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + y \cdot \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(a - 5864.8025282699045\right) - t \cdot 15.234687407}{z}}{z} - 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 4.1 \cdot 10^{+36}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\end{array}
\end{array}
if z < -9e8Initial program 18.3%
Taylor expanded in z around -inf 76.3%
Taylor expanded in y around 0 97.8%
Simplified97.8%
Applied egg-rr99.3%
Simplified99.3%
if -9e8 < z < 4.10000000000000013e36Initial program 98.3%
Taylor expanded in z around 0 98.1%
*-commutative98.1%
Simplified98.1%
if 4.10000000000000013e36 < z Initial program 7.1%
Taylor expanded in z around -inf 62.7%
Taylor expanded in y around 0 91.8%
Simplified91.8%
Taylor expanded in a around inf 91.8%
mul-1-neg91.8%
distribute-frac-neg91.8%
Simplified91.8%
associate-/l*98.4%
unsub-neg98.4%
unsub-neg98.4%
Applied egg-rr98.4%
distribute-frac-neg98.4%
mul-1-neg98.4%
cancel-sign-sub-inv98.4%
metadata-eval98.4%
*-lft-identity98.4%
Simplified98.4%
Final simplification98.5%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
y
(/
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)
(fma
y
(+
(+ 3.13060547623 (/ 457.9610022158428 (pow z 2.0)))
(+ (/ t (pow z 2.0)) (/ -36.52704169880642 z)))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
} else {
tmp = fma(y, ((3.13060547623 + (457.9610022158428 / pow(z, 2.0))) + ((t / pow(z, 2.0)) + (-36.52704169880642 / z))), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = fma(y, Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); else tmp = fma(y, Float64(Float64(3.13060547623 + Float64(457.9610022158428 / (z ^ 2.0))) + Float64(Float64(t / (z ^ 2.0)) + Float64(-36.52704169880642 / z))), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(N[(3.13060547623 + N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \left(3.13060547623 + \frac{457.9610022158428}{{z}^{2}}\right) + \left(\frac{t}{{z}^{2}} + \frac{-36.52704169880642}{z}\right), x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 95.4%
Simplified97.1%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 99.9%
sub-neg99.9%
associate-+r+99.9%
associate-+l+99.9%
associate-*r/99.9%
metadata-eval99.9%
distribute-neg-frac99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification98.2%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(+
x
(/
(* y (fma (fma (fma (fma z 3.13060547623 11.1667541262) z t) z a) z b))
(fma
(fma (fma (+ z 15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)))
(fma
y
(+
(+ 3.13060547623 (/ 457.9610022158428 (pow z 2.0)))
(+ (/ t (pow z 2.0)) (/ -36.52704169880642 z)))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = x + ((y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma((z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771));
} else {
tmp = fma(y, ((3.13060547623 + (457.9610022158428 / pow(z, 2.0))) + ((t / pow(z, 2.0)) + (-36.52704169880642 / z))), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = Float64(x + Float64(Float64(y * fma(fma(fma(fma(z, 3.13060547623, 11.1667541262), z, t), z, a), z, b)) / fma(fma(fma(Float64(z + 15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771))); else tmp = fma(y, Float64(Float64(3.13060547623 + Float64(457.9610022158428 / (z ^ 2.0))) + Float64(Float64(t / (z ^ 2.0)) + Float64(-36.52704169880642 / z))), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(x + N[(N[(y * N[(N[(N[(N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(3.13060547623 + N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;x + \frac{y \cdot \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z + 15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \left(3.13060547623 + \frac{457.9610022158428}{{z}^{2}}\right) + \left(\frac{t}{{z}^{2}} + \frac{-36.52704169880642}{z}\right), x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 95.4%
remove-double-neg95.4%
distribute-lft-neg-out95.4%
distribute-lft-neg-in95.4%
remove-double-neg95.4%
fma-define95.4%
fma-define95.4%
fma-define95.4%
fma-define95.4%
Simplified95.4%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 99.9%
sub-neg99.9%
associate-+r+99.9%
associate-+l+99.9%
associate-*r/99.9%
metadata-eval99.9%
distribute-neg-frac99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification97.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY)
(+ t_1 x)
(fma
y
(+
(+ 3.13060547623 (/ 457.9610022158428 (pow z 2.0)))
(+ (/ t (pow z 2.0)) (/ -36.52704169880642 z)))
x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((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 = fma(y, ((3.13060547623 + (457.9610022158428 / pow(z, 2.0))) + ((t / pow(z, 2.0)) + (-36.52704169880642 / z))), x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / 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 = fma(y, Float64(Float64(3.13060547623 + Float64(457.9610022158428 / (z ^ 2.0))) + Float64(Float64(t / (z ^ 2.0)) + Float64(-36.52704169880642 / z))), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(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[(y * N[(N[(3.13060547623 + N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{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}:\\
\;\;\;\;\mathsf{fma}\left(y, \left(3.13060547623 + \frac{457.9610022158428}{{z}^{2}}\right) + \left(\frac{t}{{z}^{2}} + \frac{-36.52704169880642}{z}\right), x\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 95.4%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Simplified0.0%
Taylor expanded in z around inf 99.9%
sub-neg99.9%
associate-+r+99.9%
associate-+l+99.9%
associate-*r/99.9%
metadata-eval99.9%
distribute-neg-frac99.9%
metadata-eval99.9%
Simplified99.9%
Final simplification97.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(/
(*
y
(+
b
(*
z
(+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))))
(if (<= t_1 INFINITY)
(+ t_1 x)
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((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 * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (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 * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((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 * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((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 * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / 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(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / ((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 * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(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[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{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 + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\end{array}
\end{array}
if (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) < +inf.0Initial program 95.4%
if +inf.0 < (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64))) Initial program 0.0%
Taylor expanded in z around -inf 65.6%
Taylor expanded in y around 0 95.2%
Simplified95.2%
Taylor expanded in a around inf 95.2%
mul-1-neg95.2%
distribute-frac-neg95.2%
Simplified95.2%
associate-/l*99.9%
unsub-neg99.9%
unsub-neg99.9%
Applied egg-rr99.9%
distribute-frac-neg99.9%
mul-1-neg99.9%
cancel-sign-sub-inv99.9%
metadata-eval99.9%
*-lft-identity99.9%
Simplified99.9%
Final simplification97.2%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -250000.0)
(+
x
(+
(* y 3.13060547623)
(*
y
(/
(-
(/
(+
(+ t 457.9610022158428)
(/ (- (- a 5864.8025282699045) (* t 15.234687407)) z))
z)
36.52704169880642)
z))))
(if (<= z 1.05)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -250000.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 1.05) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (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 <= (-250000.0d0)) then
tmp = x + ((y * 3.13060547623d0) + (y * (((((t + 457.9610022158428d0) + (((a - 5864.8025282699045d0) - (t * 15.234687407d0)) / z)) / z) - 36.52704169880642d0) / z)))
else if (z <= 1.05d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + ((y * ((((457.9610022158428d0 + (t + (a / z))) / z) - 36.52704169880642d0) / z)) + (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 <= -250000.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 1.05) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -250000.0: tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))) elif z <= 1.05: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) else: tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -250000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(y * Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(a - 5864.8025282699045) - Float64(t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)))); elseif (z <= 1.05) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -250000.0) tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))); elseif (z <= 1.05) tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); else tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -250000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(y * N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(a - 5864.8025282699045), $MachinePrecision] - N[(t * 15.234687407), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -250000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + y \cdot \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(a - 5864.8025282699045\right) - t \cdot 15.234687407}{z}}{z} - 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1.05:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\end{array}
\end{array}
if z < -2.5e5Initial program 18.3%
Taylor expanded in z around -inf 76.3%
Taylor expanded in y around 0 97.8%
Simplified97.8%
Applied egg-rr99.3%
Simplified99.3%
if -2.5e5 < z < 1.05000000000000004Initial program 99.0%
Taylor expanded in z around 0 97.9%
*-commutative97.9%
Simplified97.9%
if 1.05000000000000004 < z Initial program 14.3%
Taylor expanded in z around -inf 63.3%
Taylor expanded in y around 0 89.7%
Simplified89.7%
Taylor expanded in a around inf 89.7%
mul-1-neg89.7%
distribute-frac-neg89.7%
Simplified89.7%
associate-/l*95.7%
unsub-neg95.7%
unsub-neg95.7%
Applied egg-rr95.7%
distribute-frac-neg95.7%
mul-1-neg95.7%
cancel-sign-sub-inv95.7%
metadata-eval95.7%
*-lft-identity95.7%
Simplified95.7%
Final simplification97.7%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -13.0)
(+
x
(+
(* y 3.13060547623)
(*
y
(/
(-
(/
(+
(+ t 457.9610022158428)
(/ (- (- a 5864.8025282699045) (* t 15.234687407)) z))
z)
36.52704169880642)
z))))
(if (<= z 1.05)
(+
x
(/
(+
(* y b)
(*
y
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+ 0.607771387771 (* z 11.9400905721))))
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -13.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 1.05) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (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 <= (-13.0d0)) then
tmp = x + ((y * 3.13060547623d0) + (y * (((((t + 457.9610022158428d0) + (((a - 5864.8025282699045d0) - (t * 15.234687407d0)) / z)) / z) - 36.52704169880642d0) / z)))
else if (z <= 1.05d0) then
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + ((y * ((((457.9610022158428d0 + (t + (a / z))) / z) - 36.52704169880642d0) / z)) + (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 <= -13.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 1.05) {
tmp = x + (((y * b) + (y * (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -13.0: tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))) elif z <= 1.05: tmp = x + (((y * b) + (y * (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -13.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(y * Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(a - 5864.8025282699045) - Float64(t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)))); elseif (z <= 1.05) tmp = Float64(x + Float64(Float64(Float64(y * b) + Float64(y * Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -13.0) tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))); elseif (z <= 1.05) tmp = x + (((y * b) + (y * (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -13.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(y * N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(a - 5864.8025282699045), $MachinePrecision] - N[(t * 15.234687407), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05], N[(x + N[(N[(N[(y * b), $MachinePrecision] + N[(y * N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -13:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + y \cdot \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(a - 5864.8025282699045\right) - t \cdot 15.234687407}{z}}{z} - 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1.05:\\
\;\;\;\;x + \frac{y \cdot b + y \cdot \left(z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\end{array}
\end{array}
if z < -13Initial program 19.4%
Taylor expanded in z around -inf 75.3%
Taylor expanded in y around 0 96.5%
Simplified96.5%
Applied egg-rr97.9%
Simplified97.9%
if -13 < z < 1.05000000000000004Initial program 99.0%
Taylor expanded in b around 0 99.0%
Taylor expanded in z around 0 98.4%
*-commutative98.4%
Simplified98.4%
if 1.05000000000000004 < z Initial program 14.3%
Taylor expanded in z around -inf 63.3%
Taylor expanded in y around 0 89.7%
Simplified89.7%
Taylor expanded in a around inf 89.7%
mul-1-neg89.7%
distribute-frac-neg89.7%
Simplified89.7%
associate-/l*95.7%
unsub-neg95.7%
unsub-neg95.7%
Applied egg-rr95.7%
distribute-frac-neg95.7%
mul-1-neg95.7%
cancel-sign-sub-inv95.7%
metadata-eval95.7%
*-lft-identity95.7%
Simplified95.7%
Final simplification97.6%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -13.0) (not (<= z 1.05)))
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623)))
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+ 0.607771387771 (* z 11.9400905721))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -13.0) || !(z <= 1.05)) {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (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 <= (-13.0d0)) .or. (.not. (z <= 1.05d0))) then
tmp = x + ((y * ((((457.9610022158428d0 + (t + (a / z))) / z) - 36.52704169880642d0) / z)) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (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 <= -13.0) || !(z <= 1.05)) {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -13.0) or not (z <= 1.05): tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -13.0) || !(z <= 1.05)) tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -13.0) || ~((z <= 1.05))) tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -13.0], N[Not[LessEqual[z, 1.05]], $MachinePrecision]], N[(x + N[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -13 \lor \neg \left(z \leq 1.05\right):\\
\;\;\;\;x + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\end{array}
\end{array}
if z < -13 or 1.05000000000000004 < z Initial program 16.9%
Taylor expanded in z around -inf 69.4%
Taylor expanded in y around 0 93.2%
Simplified93.2%
Taylor expanded in a around inf 93.0%
mul-1-neg93.0%
distribute-frac-neg93.0%
Simplified93.0%
associate-/l*96.7%
unsub-neg96.7%
unsub-neg96.7%
Applied egg-rr96.7%
distribute-frac-neg96.7%
mul-1-neg96.7%
cancel-sign-sub-inv96.7%
metadata-eval96.7%
*-lft-identity96.7%
Simplified96.7%
if -13 < z < 1.05000000000000004Initial program 99.0%
Taylor expanded in z around 0 98.4%
*-commutative98.4%
Simplified98.4%
Final simplification97.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -13.0)
(+
x
(+
(* y 3.13060547623)
(*
y
(/
(-
(/
(+
(+ t 457.9610022158428)
(/ (- (- a 5864.8025282699045) (* t 15.234687407)) z))
z)
36.52704169880642)
z))))
(if (<= z 1.05)
(+
x
(/
(*
y
(+
b
(* z (+ a (* z (+ t (* z (+ 11.1667541262 (* z 3.13060547623)))))))))
(+ 0.607771387771 (* z 11.9400905721))))
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -13.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 1.05) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (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 <= (-13.0d0)) then
tmp = x + ((y * 3.13060547623d0) + (y * (((((t + 457.9610022158428d0) + (((a - 5864.8025282699045d0) - (t * 15.234687407d0)) / z)) / z) - 36.52704169880642d0) / z)))
else if (z <= 1.05d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262d0 + (z * 3.13060547623d0))))))))) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + ((y * ((((457.9610022158428d0 + (t + (a / z))) / z) - 36.52704169880642d0) / z)) + (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 <= -13.0) {
tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)));
} else if (z <= 1.05) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -13.0: tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))) elif z <= 1.05: tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -13.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(y * Float64(Float64(Float64(Float64(Float64(t + 457.9610022158428) + Float64(Float64(Float64(a - 5864.8025282699045) - Float64(t * 15.234687407)) / z)) / z) - 36.52704169880642) / z)))); elseif (z <= 1.05) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * Float64(11.1667541262 + Float64(z * 3.13060547623))))))))) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -13.0) tmp = x + ((y * 3.13060547623) + (y * (((((t + 457.9610022158428) + (((a - 5864.8025282699045) - (t * 15.234687407)) / z)) / z) - 36.52704169880642) / z))); elseif (z <= 1.05) tmp = x + ((y * (b + (z * (a + (z * (t + (z * (11.1667541262 + (z * 3.13060547623))))))))) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -13.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(y * N[(N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] + N[(N[(N[(a - 5864.8025282699045), $MachinePrecision] - N[(t * 15.234687407), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * N[(11.1667541262 + N[(z * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -13:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + y \cdot \frac{\frac{\left(t + 457.9610022158428\right) + \frac{\left(a - 5864.8025282699045\right) - t \cdot 15.234687407}{z}}{z} - 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1.05:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot \left(11.1667541262 + z \cdot 3.13060547623\right)\right)\right)\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\end{array}
\end{array}
if z < -13Initial program 19.4%
Taylor expanded in z around -inf 75.3%
Taylor expanded in y around 0 96.5%
Simplified96.5%
Applied egg-rr97.9%
Simplified97.9%
if -13 < z < 1.05000000000000004Initial program 99.0%
Taylor expanded in z around 0 98.4%
*-commutative98.4%
Simplified98.4%
if 1.05000000000000004 < z Initial program 14.3%
Taylor expanded in z around -inf 63.3%
Taylor expanded in y around 0 89.7%
Simplified89.7%
Taylor expanded in a around inf 89.7%
mul-1-neg89.7%
distribute-frac-neg89.7%
Simplified89.7%
associate-/l*95.7%
unsub-neg95.7%
unsub-neg95.7%
Applied egg-rr95.7%
distribute-frac-neg95.7%
mul-1-neg95.7%
cancel-sign-sub-inv95.7%
metadata-eval95.7%
*-lft-identity95.7%
Simplified95.7%
Final simplification97.6%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -140000000.0) (not (<= z 4.1e+36)))
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623)))
(+
x
(/
(* y (+ b (* z a)))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -140000000.0) || !(z <= 4.1e+36)) {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
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 <= (-140000000.0d0)) .or. (.not. (z <= 4.1d+36))) then
tmp = x + ((y * ((((457.9610022158428d0 + (t + (a / z))) / z) - 36.52704169880642d0) / z)) + (y * 3.13060547623d0))
else
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
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 <= -140000000.0) || !(z <= 4.1e+36)) {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
} else {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -140000000.0) or not (z <= 4.1e+36): tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) else: tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -140000000.0) || !(z <= 4.1e+36)) tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); else 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))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -140000000.0) || ~((z <= 4.1e+36))) tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); else tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -140000000.0], N[Not[LessEqual[z, 4.1e+36]], $MachinePrecision]], N[(x + N[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 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]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -140000000 \lor \neg \left(z \leq 4.1 \cdot 10^{+36}\right):\\
\;\;\;\;x + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;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}\\
\end{array}
\end{array}
if z < -1.4e8 or 4.10000000000000013e36 < z Initial program 13.0%
Taylor expanded in z around -inf 69.9%
Taylor expanded in y around 0 95.0%
Simplified95.0%
Taylor expanded in a around inf 94.9%
mul-1-neg94.9%
distribute-frac-neg94.9%
Simplified94.9%
associate-/l*98.7%
unsub-neg98.7%
unsub-neg98.7%
Applied egg-rr98.7%
distribute-frac-neg98.7%
mul-1-neg98.7%
cancel-sign-sub-inv98.7%
metadata-eval98.7%
*-lft-identity98.7%
Simplified98.7%
if -1.4e8 < z < 4.10000000000000013e36Initial program 98.3%
Taylor expanded in b around 0 98.3%
Taylor expanded in z around 0 90.4%
associate-*r*82.6%
*-commutative82.6%
associate-*l*90.5%
Simplified90.5%
Taylor expanded in b around 0 90.4%
+-commutative90.4%
*-commutative90.4%
associate-*r*82.6%
*-commutative82.6%
associate-*r*90.5%
distribute-lft-in91.2%
Simplified91.2%
Final simplification94.9%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -260000.0) (not (<= z 0.0036)))
(+
x
(+
(*
y
(/ (- (/ (+ 457.9610022158428 (+ t (/ a z))) z) 36.52704169880642) z))
(* y 3.13060547623)))
(+ x (* y (+ (* b 1.6453555072203998) (* (* z a) 1.6453555072203998))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -260000.0) || !(z <= 0.0036)) {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
} else {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 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 <= (-260000.0d0)) .or. (.not. (z <= 0.0036d0))) then
tmp = x + ((y * ((((457.9610022158428d0 + (t + (a / z))) / z) - 36.52704169880642d0) / z)) + (y * 3.13060547623d0))
else
tmp = x + (y * ((b * 1.6453555072203998d0) + ((z * a) * 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 <= -260000.0) || !(z <= 0.0036)) {
tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623));
} else {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -260000.0) or not (z <= 0.0036): tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)) else: tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -260000.0) || !(z <= 0.0036)) tmp = Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(a / z))) / z) - 36.52704169880642) / z)) + Float64(y * 3.13060547623))); else tmp = Float64(x + Float64(y * Float64(Float64(b * 1.6453555072203998) + Float64(Float64(z * a) * 1.6453555072203998)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -260000.0) || ~((z <= 0.0036))) tmp = x + ((y * ((((457.9610022158428 + (t + (a / z))) / z) - 36.52704169880642) / z)) + (y * 3.13060547623)); else tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -260000.0], N[Not[LessEqual[z, 0.0036]], $MachinePrecision]], N[(x + N[(N[(y * N[(N[(N[(N[(457.9610022158428 + N[(t + N[(a / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -260000 \lor \neg \left(z \leq 0.0036\right):\\
\;\;\;\;x + \left(y \cdot \frac{\frac{457.9610022158428 + \left(t + \frac{a}{z}\right)}{z} - 36.52704169880642}{z} + y \cdot 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998 + \left(z \cdot a\right) \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -2.6e5 or 0.0035999999999999999 < z Initial program 16.3%
Taylor expanded in z around -inf 69.9%
Taylor expanded in y around 0 93.8%
Simplified93.8%
Taylor expanded in a around inf 93.7%
mul-1-neg93.7%
distribute-frac-neg93.7%
Simplified93.7%
associate-/l*97.4%
unsub-neg97.4%
unsub-neg97.4%
Applied egg-rr97.4%
distribute-frac-neg97.4%
mul-1-neg97.4%
cancel-sign-sub-inv97.4%
metadata-eval97.4%
*-lft-identity97.4%
Simplified97.4%
if -2.6e5 < z < 0.0035999999999999999Initial program 99.0%
Taylor expanded in z around 0 76.1%
Taylor expanded in a around inf 81.1%
*-commutative81.1%
associate-*r*81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around 0 90.1%
Final simplification93.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -2800000.0)
(+
x
(+
(* y 3.13060547623)
(/ (- (* y (/ (+ t 457.9610022158428) z)) (* y 36.52704169880642)) z)))
(if (<= z 1.05)
(+ x (* y (+ (* b 1.6453555072203998) (* (* z a) 1.6453555072203998))))
(+
x
(-
(* y 3.13060547623)
(/
(* y (- 36.52704169880642 (/ (+ 457.9610022158428 (/ a z)) z)))
z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2800000.0) {
tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z));
} else if (z <= 1.05) {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * (36.52704169880642 - ((457.9610022158428 + (a / z)) / z))) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-2800000.0d0)) then
tmp = x + ((y * 3.13060547623d0) + (((y * ((t + 457.9610022158428d0) / z)) - (y * 36.52704169880642d0)) / z))
else if (z <= 1.05d0) then
tmp = x + (y * ((b * 1.6453555072203998d0) + ((z * a) * 1.6453555072203998d0)))
else
tmp = x + ((y * 3.13060547623d0) - ((y * (36.52704169880642d0 - ((457.9610022158428d0 + (a / z)) / z))) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -2800000.0) {
tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z));
} else if (z <= 1.05) {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) - ((y * (36.52704169880642 - ((457.9610022158428 + (a / z)) / z))) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -2800000.0: tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z)) elif z <= 1.05: tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))) else: tmp = x + ((y * 3.13060547623) - ((y * (36.52704169880642 - ((457.9610022158428 + (a / z)) / z))) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -2800000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(Float64(y * Float64(Float64(t + 457.9610022158428) / z)) - Float64(y * 36.52704169880642)) / z))); elseif (z <= 1.05) tmp = Float64(x + Float64(y * Float64(Float64(b * 1.6453555072203998) + Float64(Float64(z * a) * 1.6453555072203998)))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * Float64(36.52704169880642 - Float64(Float64(457.9610022158428 + Float64(a / z)) / z))) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -2800000.0) tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z)); elseif (z <= 1.05) tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))); else tmp = x + ((y * 3.13060547623) - ((y * (36.52704169880642 - ((457.9610022158428 + (a / z)) / z))) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -2800000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(N[(y * N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(y * 36.52704169880642), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05], N[(x + N[(y * N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * N[(36.52704169880642 - N[(N[(457.9610022158428 + N[(a / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2800000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{y \cdot \frac{t + 457.9610022158428}{z} - y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 1.05:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998 + \left(z \cdot a\right) \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot \left(36.52704169880642 - \frac{457.9610022158428 + \frac{a}{z}}{z}\right)}{z}\right)\\
\end{array}
\end{array}
if z < -2.8e6Initial program 18.3%
Taylor expanded in z around -inf 76.3%
Taylor expanded in y around 0 97.8%
Simplified97.8%
Taylor expanded in z around inf 83.3%
+-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
*-commutative83.3%
associate-/l*97.5%
+-commutative97.5%
Simplified97.5%
if -2.8e6 < z < 1.05000000000000004Initial program 99.0%
Taylor expanded in z around 0 76.1%
Taylor expanded in a around inf 81.1%
*-commutative81.1%
associate-*r*81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around 0 90.1%
if 1.05000000000000004 < z Initial program 14.3%
Taylor expanded in z around -inf 63.3%
Taylor expanded in y around 0 89.7%
Simplified89.7%
Taylor expanded in a around inf 89.7%
mul-1-neg89.7%
distribute-frac-neg89.7%
Simplified89.7%
Taylor expanded in t around 0 89.8%
sub-neg89.8%
mul-1-neg89.8%
remove-double-neg89.8%
Simplified89.8%
Final simplification91.9%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -300000.0)
(+
x
(+
(* y 3.13060547623)
(/ (- (* y (/ (+ t 457.9610022158428) z)) (* y 36.52704169880642)) z)))
(if (<= z 0.115)
(+ x (* y (+ (* b 1.6453555072203998) (* (* z a) 1.6453555072203998))))
(+ x (+ (* y 3.13060547623) (/ (* t (/ y z)) z))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -300000.0) {
tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z));
} else if (z <= 0.115) {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if (z <= (-300000.0d0)) then
tmp = x + ((y * 3.13060547623d0) + (((y * ((t + 457.9610022158428d0) / z)) - (y * 36.52704169880642d0)) / z))
else if (z <= 0.115d0) then
tmp = x + (y * ((b * 1.6453555072203998d0) + ((z * a) * 1.6453555072203998d0)))
else
tmp = x + ((y * 3.13060547623d0) + ((t * (y / z)) / z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -300000.0) {
tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z));
} else if (z <= 0.115) {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
} else {
tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -300000.0: tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z)) elif z <= 0.115: tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))) else: tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -300000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(Float64(y * Float64(Float64(t + 457.9610022158428) / z)) - Float64(y * 36.52704169880642)) / z))); elseif (z <= 0.115) tmp = Float64(x + Float64(y * Float64(Float64(b * 1.6453555072203998) + Float64(Float64(z * a) * 1.6453555072203998)))); else tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(t * Float64(y / z)) / z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -300000.0) tmp = x + ((y * 3.13060547623) + (((y * ((t + 457.9610022158428) / z)) - (y * 36.52704169880642)) / z)); elseif (z <= 0.115) tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))); else tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -300000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(N[(y * N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] - N[(y * 36.52704169880642), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.115], N[(x + N[(y * N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -300000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{y \cdot \frac{t + 457.9610022158428}{z} - y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 0.115:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998 + \left(z \cdot a\right) \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{t \cdot \frac{y}{z}}{z}\right)\\
\end{array}
\end{array}
if z < -3e5Initial program 18.3%
Taylor expanded in z around -inf 76.3%
Taylor expanded in y around 0 97.8%
Simplified97.8%
Taylor expanded in z around inf 83.3%
+-commutative83.3%
mul-1-neg83.3%
unsub-neg83.3%
*-commutative83.3%
associate-/l*97.5%
+-commutative97.5%
Simplified97.5%
if -3e5 < z < 0.115000000000000005Initial program 99.0%
Taylor expanded in z around 0 76.1%
Taylor expanded in a around inf 81.1%
*-commutative81.1%
associate-*r*81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around 0 90.1%
if 0.115000000000000005 < z Initial program 14.3%
Taylor expanded in z around -inf 63.3%
Taylor expanded in y around 0 89.7%
Simplified89.7%
Taylor expanded in a around inf 89.7%
mul-1-neg89.7%
distribute-frac-neg89.7%
Simplified89.7%
Taylor expanded in t around inf 75.9%
mul-1-neg75.9%
associate-/l*88.1%
distribute-rgt-neg-in88.1%
mul-1-neg88.1%
associate-*r/88.1%
mul-1-neg88.1%
Simplified88.1%
Final simplification91.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.4e+55) (not (<= z 1.05))) (+ x (* y 3.13060547623)) (+ x (* y (+ (* b 1.6453555072203998) (* (* z a) 1.6453555072203998))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.4e+55) || !(z <= 1.05)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 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.4d+55)) .or. (.not. (z <= 1.05d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (y * ((b * 1.6453555072203998d0) + ((z * a) * 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.4e+55) || !(z <= 1.05)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.4e+55) or not (z <= 1.05): tmp = x + (y * 3.13060547623) else: tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.4e+55) || !(z <= 1.05)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(y * Float64(Float64(b * 1.6453555072203998) + Float64(Float64(z * a) * 1.6453555072203998)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.4e+55) || ~((z <= 1.05))) tmp = x + (y * 3.13060547623); else tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.4e+55], N[Not[LessEqual[z, 1.05]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+55} \lor \neg \left(z \leq 1.05\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998 + \left(z \cdot a\right) \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.4e55 or 1.05000000000000004 < z Initial program 10.1%
Simplified11.6%
Taylor expanded in z around inf 90.3%
+-commutative90.3%
*-commutative90.3%
Simplified90.3%
if -1.4e55 < z < 1.05000000000000004Initial program 99.0%
Taylor expanded in z around 0 75.6%
Taylor expanded in a around inf 80.3%
*-commutative80.3%
associate-*r*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in y around 0 88.7%
Final simplification89.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -2700000000.0) (not (<= z 0.34))) (+ x (+ (* y 3.13060547623) (/ (* t (/ y z)) z))) (+ x (* y (+ (* b 1.6453555072203998) (* (* z a) 1.6453555072203998))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -2700000000.0) || !(z <= 0.34)) {
tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z));
} else {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 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 <= (-2700000000.0d0)) .or. (.not. (z <= 0.34d0))) then
tmp = x + ((y * 3.13060547623d0) + ((t * (y / z)) / z))
else
tmp = x + (y * ((b * 1.6453555072203998d0) + ((z * a) * 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 <= -2700000000.0) || !(z <= 0.34)) {
tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z));
} else {
tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998)));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -2700000000.0) or not (z <= 0.34): tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z)) else: tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -2700000000.0) || !(z <= 0.34)) tmp = Float64(x + Float64(Float64(y * 3.13060547623) + Float64(Float64(t * Float64(y / z)) / z))); else tmp = Float64(x + Float64(y * Float64(Float64(b * 1.6453555072203998) + Float64(Float64(z * a) * 1.6453555072203998)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -2700000000.0) || ~((z <= 0.34))) tmp = x + ((y * 3.13060547623) + ((t * (y / z)) / z)); else tmp = x + (y * ((b * 1.6453555072203998) + ((z * a) * 1.6453555072203998))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -2700000000.0], N[Not[LessEqual[z, 0.34]], $MachinePrecision]], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] + N[(N[(t * N[(y / z), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(b * 1.6453555072203998), $MachinePrecision] + N[(N[(z * a), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2700000000 \lor \neg \left(z \leq 0.34\right):\\
\;\;\;\;x + \left(y \cdot 3.13060547623 + \frac{t \cdot \frac{y}{z}}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(b \cdot 1.6453555072203998 + \left(z \cdot a\right) \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -2.7e9 or 0.340000000000000024 < z Initial program 16.3%
Taylor expanded in z around -inf 69.9%
Taylor expanded in y around 0 93.8%
Simplified93.8%
Taylor expanded in a around inf 93.7%
mul-1-neg93.7%
distribute-frac-neg93.7%
Simplified93.7%
Taylor expanded in t around inf 79.6%
mul-1-neg79.6%
associate-/l*92.9%
distribute-rgt-neg-in92.9%
mul-1-neg92.9%
associate-*r/92.9%
mul-1-neg92.9%
Simplified92.9%
if -2.7e9 < z < 0.340000000000000024Initial program 99.0%
Taylor expanded in z around 0 76.1%
Taylor expanded in a around inf 81.1%
*-commutative81.1%
associate-*r*81.1%
*-commutative81.1%
Simplified81.1%
Taylor expanded in y around 0 90.1%
Final simplification91.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.4e+55) (not (<= z 1.05))) (+ x (* y 3.13060547623)) (+ x (* y (* (+ b (* z a)) 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.4e+55) || !(z <= 1.05)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * ((b + (z * a)) * 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.4d+55)) .or. (.not. (z <= 1.05d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (y * ((b + (z * a)) * 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.4e+55) || !(z <= 1.05)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (y * ((b + (z * a)) * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.4e+55) or not (z <= 1.05): tmp = x + (y * 3.13060547623) else: tmp = x + (y * ((b + (z * a)) * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.4e+55) || !(z <= 1.05)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(y * Float64(Float64(b + Float64(z * a)) * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.4e+55) || ~((z <= 1.05))) tmp = x + (y * 3.13060547623); else tmp = x + (y * ((b + (z * a)) * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.4e+55], N[Not[LessEqual[z, 1.05]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision] * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+55} \lor \neg \left(z \leq 1.05\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(\left(b + z \cdot a\right) \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.4e55 or 1.05000000000000004 < z Initial program 10.1%
Simplified11.6%
Taylor expanded in z around inf 90.3%
+-commutative90.3%
*-commutative90.3%
Simplified90.3%
if -1.4e55 < z < 1.05000000000000004Initial program 99.0%
Taylor expanded in z around 0 75.6%
Taylor expanded in a around inf 80.3%
*-commutative80.3%
associate-*r*80.3%
*-commutative80.3%
Simplified80.3%
Taylor expanded in y around 0 88.7%
distribute-lft-out88.7%
*-commutative88.7%
Simplified88.7%
Final simplification89.4%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -1.4e+55) (not (<= z 0.108))) (+ x (* y 3.13060547623)) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.4e+55) || !(z <= 0.108)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-1.4d+55)) .or. (.not. (z <= 0.108d0))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x + (b * (y * 1.6453555072203998d0))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -1.4e+55) || !(z <= 0.108)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -1.4e+55) or not (z <= 0.108): tmp = x + (y * 3.13060547623) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -1.4e+55) || !(z <= 0.108)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -1.4e+55) || ~((z <= 0.108))) tmp = x + (y * 3.13060547623); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -1.4e+55], N[Not[LessEqual[z, 0.108]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.4 \cdot 10^{+55} \lor \neg \left(z \leq 0.108\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -1.4e55 or 0.107999999999999999 < z Initial program 10.1%
Simplified11.6%
Taylor expanded in z around inf 90.3%
+-commutative90.3%
*-commutative90.3%
Simplified90.3%
if -1.4e55 < z < 0.107999999999999999Initial program 99.0%
Taylor expanded in b around 0 99.1%
Taylor expanded in z around 0 89.2%
associate-*r*81.6%
*-commutative81.6%
associate-*l*89.3%
Simplified89.3%
Taylor expanded in z around 0 76.1%
associate-*r*76.1%
*-commutative76.1%
associate-*r*76.1%
*-commutative76.1%
Simplified76.1%
Final simplification82.8%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -5.3e-123) (not (<= z 4.8e-100))) (+ x (* y 3.13060547623)) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.3e-123) || !(z <= 4.8e-100)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((z <= (-5.3d-123)) .or. (.not. (z <= 4.8d-100))) then
tmp = x + (y * 3.13060547623d0)
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.3e-123) || !(z <= 4.8e-100)) {
tmp = x + (y * 3.13060547623);
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.3e-123) or not (z <= 4.8e-100): tmp = x + (y * 3.13060547623) else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.3e-123) || !(z <= 4.8e-100)) tmp = Float64(x + Float64(y * 3.13060547623)); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((z <= -5.3e-123) || ~((z <= 4.8e-100))) tmp = x + (y * 3.13060547623); else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.3e-123], N[Not[LessEqual[z, 4.8e-100]], $MachinePrecision]], N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.3 \cdot 10^{-123} \lor \neg \left(z \leq 4.8 \cdot 10^{-100}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if z < -5.29999999999999971e-123 or 4.8000000000000005e-100 < z Initial program 36.8%
Simplified38.4%
Taylor expanded in z around inf 72.0%
+-commutative72.0%
*-commutative72.0%
Simplified72.0%
if -5.29999999999999971e-123 < z < 4.8000000000000005e-100Initial program 99.7%
Simplified99.7%
Taylor expanded in y around 0 49.2%
Final simplification64.7%
(FPCore (x y z t a b) :precision binary64 x)
double code(double x, double y, double z, double t, double a, double b) {
return x;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x;
}
def code(x, y, z, t, a, b): return x
function code(x, y, z, t, a, b) return x end
function tmp = code(x, y, z, t, a, b) tmp = x; end
code[x_, y_, z_, t_, a_, b_] := x
\begin{array}{l}
\\
x
\end{array}
Initial program 57.0%
Simplified58.1%
Taylor expanded in y around 0 41.3%
Final simplification41.3%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
(+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
(/ y 1.0)))))
(if (< z -6.499344996252632e+53)
t_1
(if (< z 7.066965436914287e+59)
(+
x
(/
y
(/
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((3.13060547623d0 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
if (z < (-6.499344996252632d+53)) then
tmp = t_1
else if (z < 7.066965436914287d+59) then
tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)) tmp = 0 if z < -6.499344996252632e+53: tmp = t_1 elif z < 7.066965436914287e+59: tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0))) tmp = 0.0 if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)); tmp = 0.0; if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
\mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024076
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
:alt
(if (< z -6.499344996252632e+53) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0))) (if (< z 7.066965436914287e+59) (+ x (/ y (/ (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771) (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)))) (+ x (* (+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z))) (/ y 1.0)))))
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))