
(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 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(/
y
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), (y / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
} else {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = fma(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b), Float64(y / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); else tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] * N[(y / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right), \frac{y}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, 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 94.1%
Simplified99.0%
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%
Simplified99.9%
Final simplification99.4%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
INFINITY)
(fma
y
(/
(fma z (fma z (fma z (fma z 3.13060547623 11.1667541262) t) a) b)
(fma
z
(fma z (fma z (+ z 15.234687407) 31.4690115749) 11.9400905721)
0.607771387771))
x)
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= ((double) INFINITY)) {
tmp = fma(y, (fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, (z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x);
} else {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) <= Inf) tmp = fma(y, Float64(fma(z, fma(z, fma(z, fma(z, 3.13060547623, 11.1667541262), t), a), b) / fma(z, fma(z, fma(z, Float64(z + 15.234687407), 31.4690115749), 11.9400905721), 0.607771387771)), x); else tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(N[(z * N[(z * N[(z * N[(z * 3.13060547623 + 11.1667541262), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + b), $MachinePrecision] / N[(z * N[(z * N[(z * N[(z + 15.234687407), $MachinePrecision] + 31.4690115749), $MachinePrecision] + 11.9400905721), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, \frac{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, 3.13060547623, 11.1667541262\right), t\right), a\right), b\right)}{\mathsf{fma}\left(z, \mathsf{fma}\left(z, \mathsf{fma}\left(z, z + 15.234687407, 31.4690115749\right), 11.9400905721\right), 0.607771387771\right)}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, 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 94.1%
Simplified99.0%
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%
Simplified99.9%
Final simplification99.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -7.3e+22)
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)
(if (<= z 4.4e+38)
(+
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
(+
(+ (/ t (pow z 2.0)) (/ 457.9610022158428 (pow z 2.0)))
(+ 3.13060547623 (/ -36.52704169880642 z)))
x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -7.3e+22) {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
} else if (z <= 4.4e+38) {
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, (((t / pow(z, 2.0)) + (457.9610022158428 / pow(z, 2.0))) + (3.13060547623 + (-36.52704169880642 / z))), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -7.3e+22) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); elseif (z <= 4.4e+38) 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(Float64(t / (z ^ 2.0)) + Float64(457.9610022158428 / (z ^ 2.0))) + Float64(3.13060547623 + Float64(-36.52704169880642 / z))), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -7.3e+22], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 4.4e+38], 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[(N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(3.13060547623 + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.3 \cdot 10^{+22}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+38}:\\
\;\;\;\;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(\frac{t}{{z}^{2}} + \frac{457.9610022158428}{{z}^{2}}\right) + \left(3.13060547623 + \frac{-36.52704169880642}{z}\right), x\right)\\
\end{array}
\end{array}
if z < -7.29999999999999979e22Initial program 7.4%
Simplified13.9%
Taylor expanded in z around -inf 98.2%
Simplified98.2%
if -7.29999999999999979e22 < z < 4.40000000000000013e38Initial program 99.0%
remove-double-neg99.0%
distribute-lft-neg-out99.0%
distribute-lft-neg-in99.0%
remove-double-neg99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
fma-define99.0%
Simplified99.0%
if 4.40000000000000013e38 < z Initial program 9.6%
Simplified13.8%
Taylor expanded in z around inf 100.0%
sub-neg100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -8e+25)
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)
(if (<= z 5.8e+38)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(fma
y
(+
(+ (/ t (pow z 2.0)) (/ 457.9610022158428 (pow z 2.0)))
(+ 3.13060547623 (/ -36.52704169880642 z)))
x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -8e+25) {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
} else if (z <= 5.8e+38) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = fma(y, (((t / pow(z, 2.0)) + (457.9610022158428 / pow(z, 2.0))) + (3.13060547623 + (-36.52704169880642 / z))), x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -8e+25) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); elseif (z <= 5.8e+38) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); else tmp = fma(y, Float64(Float64(Float64(t / (z ^ 2.0)) + Float64(457.9610022158428 / (z ^ 2.0))) + Float64(3.13060547623 + Float64(-36.52704169880642 / z))), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -8e+25], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], If[LessEqual[z, 5.8e+38], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(N[(N[(t / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision] + N[(457.9610022158428 / N[Power[z, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(3.13060547623 + N[(-36.52704169880642 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8 \cdot 10^{+25}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{+38}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, \left(\frac{t}{{z}^{2}} + \frac{457.9610022158428}{{z}^{2}}\right) + \left(3.13060547623 + \frac{-36.52704169880642}{z}\right), x\right)\\
\end{array}
\end{array}
if z < -8.00000000000000072e25Initial program 7.4%
Simplified13.9%
Taylor expanded in z around -inf 98.2%
Simplified98.2%
if -8.00000000000000072e25 < z < 5.80000000000000013e38Initial program 99.0%
if 5.80000000000000013e38 < z Initial program 9.6%
Simplified13.8%
Taylor expanded in z around inf 100.0%
sub-neg100.0%
+-commutative100.0%
associate-+l+100.0%
+-commutative100.0%
associate-*r/100.0%
metadata-eval100.0%
distribute-neg-frac100.0%
metadata-eval100.0%
Simplified100.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -4e+24) (not (<= z 1.15e+25)))
(fma
y
(+
3.13060547623
(/
(-
(/
(+
457.9610022158428
(+ t (/ (+ a (+ -5864.8025282699045 (* t -15.234687407))) z)))
z)
36.52704169880642)
z))
x)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(* z (+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -4e+24) || !(z <= 1.15e+25)) {
tmp = fma(y, (3.13060547623 + ((((457.9610022158428 + (t + ((a + (-5864.8025282699045 + (t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x);
} else {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -4e+24) || !(z <= 1.15e+25)) tmp = fma(y, Float64(3.13060547623 + Float64(Float64(Float64(Float64(457.9610022158428 + Float64(t + Float64(Float64(a + Float64(-5864.8025282699045 + Float64(t * -15.234687407))) / z))) / z) - 36.52704169880642) / z)), x); else tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -4e+24], N[Not[LessEqual[z, 1.15e+25]], $MachinePrecision]], N[(y * N[(3.13060547623 + N[(N[(N[(N[(457.9610022158428 + N[(t + N[(N[(a + N[(-5864.8025282699045 + N[(t * -15.234687407), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4 \cdot 10^{+24} \lor \neg \left(z \leq 1.15 \cdot 10^{+25}\right):\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{\frac{457.9610022158428 + \left(t + \frac{a + \left(-5864.8025282699045 + t \cdot -15.234687407\right)}{z}\right)}{z} - 36.52704169880642}{z}, x\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\end{array}
\end{array}
if z < -3.9999999999999999e24 or 1.1499999999999999e25 < z Initial program 8.6%
Simplified13.9%
Taylor expanded in z around -inf 99.1%
Simplified99.1%
if -3.9999999999999999e24 < z < 1.1499999999999999e25Initial program 99.0%
Final simplification99.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -1.9e+28)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 2.7e+29)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(fma y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z)) x)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -1.9e+28) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 2.7e+29) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = fma(y, (3.13060547623 + ((t_1 - 36.52704169880642) / z)), x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -1.9e+28) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 2.7e+29) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); else tmp = fma(y, Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)), x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -1.9e+28], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.7e+29], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -1.9 \cdot 10^{+28}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 2.7 \cdot 10^{+29}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, 3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}, x\right)\\
\end{array}
\end{array}
if z < -1.8999999999999999e28Initial program 7.4%
Simplified13.9%
Taylor expanded in z around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
+-commutative96.5%
Simplified96.5%
fma-undefine96.5%
Applied egg-rr96.5%
div-inv96.5%
Applied egg-rr96.5%
if -1.8999999999999999e28 < z < 2.7e29Initial program 99.0%
if 2.7e29 < z Initial program 9.6%
Simplified13.8%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
Final simplification98.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -1.3e+29)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 5.1e+32)
(+
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771))
x)
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -1.3e+29) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 5.1e+32) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-1.3d+29)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 5.1d+32) then
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0)) + x
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -1.3e+29) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 5.1e+32) {
tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x;
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -1.3e+29: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 5.1e+32: tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -1.3e+29) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 5.1e+32) tmp = Float64(Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -1.3e+29) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 5.1e+32) tmp = ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) + x; else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -1.3e+29], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.1e+32], N[(N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -1.3 \cdot 10^{+29}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 5.1 \cdot 10^{+32}:\\
\;\;\;\;\frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -1.3e29Initial program 7.4%
Simplified13.9%
Taylor expanded in z around -inf 96.5%
mul-1-neg96.5%
unsub-neg96.5%
mul-1-neg96.5%
unsub-neg96.5%
+-commutative96.5%
Simplified96.5%
fma-undefine96.5%
Applied egg-rr96.5%
div-inv96.5%
Applied egg-rr96.5%
if -1.3e29 < z < 5.10000000000000004e32Initial program 99.0%
if 5.10000000000000004e32 < z Initial program 9.6%
Simplified13.8%
Taylor expanded in z around -inf 100.0%
mul-1-neg100.0%
unsub-neg100.0%
mul-1-neg100.0%
unsub-neg100.0%
+-commutative100.0%
Simplified100.0%
fma-undefine99.9%
Applied egg-rr99.9%
Final simplification98.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -780000.0)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 16000000000000.0)
(+
x
(/
(* y (+ b (* z (+ a (* z (+ t (* z 11.1667541262)))))))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -780000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 16000000000000.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-780000.0d0)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 16000000000000.0d0) then
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262d0))))))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -780000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 16000000000000.0) {
tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -780000.0: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 16000000000000.0: tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -780000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 16000000000000.0) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * Float64(a + Float64(z * Float64(t + Float64(z * 11.1667541262))))))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -780000.0) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 16000000000000.0) tmp = x + ((y * (b + (z * (a + (z * (t + (z * 11.1667541262))))))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -780000.0], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 16000000000000.0], N[(x + N[(N[(y * N[(b + N[(z * N[(a + N[(z * N[(t + N[(z * 11.1667541262), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -780000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 16000000000000:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot \left(a + z \cdot \left(t + z \cdot 11.1667541262\right)\right)\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -7.8e5Initial program 10.5%
Simplified18.2%
Taylor expanded in z around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
+-commutative95.0%
Simplified95.0%
fma-undefine95.0%
Applied egg-rr95.0%
div-inv95.1%
Applied egg-rr95.1%
if -7.8e5 < z < 1.6e13Initial program 99.7%
Taylor expanded in z around 0 99.6%
*-commutative99.6%
Simplified99.6%
if 1.6e13 < z Initial program 14.8%
Simplified18.8%
Taylor expanded in z around -inf 99.4%
mul-1-neg99.4%
unsub-neg99.4%
mul-1-neg99.4%
unsub-neg99.4%
+-commutative99.4%
Simplified99.4%
fma-undefine99.4%
Applied egg-rr99.4%
Final simplification98.5%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -106000.0)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 1250000000.0)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -106000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 1250000000.0) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-106000.0d0)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 1250000000.0d0) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -106000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 1250000000.0) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -106000.0: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 1250000000.0: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -106000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 1250000000.0) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -106000.0) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 1250000000.0) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -106000.0], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1250000000.0], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -106000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 1250000000:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -106000Initial program 10.5%
Simplified18.2%
Taylor expanded in z around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
+-commutative95.0%
Simplified95.0%
fma-undefine95.0%
Applied egg-rr95.0%
div-inv95.1%
Applied egg-rr95.1%
if -106000 < z < 1.25e9Initial program 99.7%
Taylor expanded in z around 0 98.9%
*-commutative98.9%
Simplified98.9%
if 1.25e9 < z Initial program 14.8%
Simplified18.8%
Taylor expanded in z around -inf 99.4%
mul-1-neg99.4%
unsub-neg99.4%
mul-1-neg99.4%
unsub-neg99.4%
+-commutative99.4%
Simplified99.4%
fma-undefine99.4%
Applied egg-rr99.4%
Final simplification98.1%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -0.0019)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 32500000000.0)
(+
x
(/
(*
y
(+
(* z (+ (* z (+ (* z (+ (* z 3.13060547623) 11.1667541262)) t)) a))
b))
(+ 0.607771387771 (* z 11.9400905721))))
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -0.0019) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 32500000000.0) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-0.0019d0)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 32500000000.0d0) then
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623d0) + 11.1667541262d0)) + t)) + a)) + b)) / (0.607771387771d0 + (z * 11.9400905721d0)))
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -0.0019) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 32500000000.0) {
tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721)));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -0.0019: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 32500000000.0: tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))) else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -0.0019) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 32500000000.0) tmp = Float64(x + Float64(Float64(y * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / Float64(0.607771387771 + Float64(z * 11.9400905721)))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -0.0019) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 32500000000.0) tmp = x + ((y * ((z * ((z * ((z * ((z * 3.13060547623) + 11.1667541262)) + t)) + a)) + b)) / (0.607771387771 + (z * 11.9400905721))); else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -0.0019], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 32500000000.0], N[(x + N[(N[(y * N[(N[(z * N[(N[(z * N[(N[(z * N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision]), $MachinePrecision] + t), $MachinePrecision]), $MachinePrecision] + a), $MachinePrecision]), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * 11.9400905721), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -0.0019:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 32500000000:\\
\;\;\;\;x + \frac{y \cdot \left(z \cdot \left(z \cdot \left(z \cdot \left(z \cdot 3.13060547623 + 11.1667541262\right) + t\right) + a\right) + b\right)}{0.607771387771 + z \cdot 11.9400905721}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -0.0019Initial program 13.3%
Simplified20.8%
Taylor expanded in z around -inf 93.6%
mul-1-neg93.6%
unsub-neg93.6%
mul-1-neg93.6%
unsub-neg93.6%
+-commutative93.6%
Simplified93.6%
fma-undefine93.6%
Applied egg-rr93.6%
div-inv93.7%
Applied egg-rr93.7%
if -0.0019 < z < 3.25e10Initial program 99.7%
Taylor expanded in z around 0 99.4%
*-commutative99.4%
Simplified99.4%
if 3.25e10 < z Initial program 14.8%
Simplified18.8%
Taylor expanded in z around -inf 99.4%
mul-1-neg99.4%
unsub-neg99.4%
mul-1-neg99.4%
unsub-neg99.4%
+-commutative99.4%
Simplified99.4%
fma-undefine99.4%
Applied egg-rr99.4%
Final simplification98.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -780000.0)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 16000000000000.0)
(+
x
(/
(* y (+ b (* z a)))
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -780000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 16000000000000.0) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-780000.0d0)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 16000000000000.0d0) then
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -780000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 16000000000000.0) {
tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -780000.0: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 16000000000000.0: tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -780000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 16000000000000.0) tmp = Float64(x + Float64(Float64(y * Float64(b + Float64(z * a))) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -780000.0) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 16000000000000.0) tmp = x + ((y * (b + (z * a))) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -780000.0], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 16000000000000.0], N[(x + N[(N[(y * N[(b + N[(z * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -780000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 16000000000000:\\
\;\;\;\;x + \frac{y \cdot \left(b + z \cdot a\right)}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -7.8e5Initial program 10.5%
Simplified18.2%
Taylor expanded in z around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
+-commutative95.0%
Simplified95.0%
fma-undefine95.0%
Applied egg-rr95.0%
div-inv95.1%
Applied egg-rr95.1%
if -7.8e5 < z < 1.6e13Initial program 99.7%
Taylor expanded in z around 0 90.6%
Taylor expanded in z around 0 90.5%
+-commutative90.5%
*-commutative90.5%
associate-*r*86.1%
*-commutative86.1%
associate-*l*92.0%
distribute-lft-out94.4%
Simplified94.4%
if 1.6e13 < z Initial program 14.8%
Simplified18.8%
Taylor expanded in z around -inf 99.4%
mul-1-neg99.4%
unsub-neg99.4%
mul-1-neg99.4%
unsub-neg99.4%
+-commutative99.4%
Simplified99.4%
fma-undefine99.4%
Applied egg-rr99.4%
Final simplification95.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -17000.0)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 6.5e-17)
(+
x
(/
(+ (* a (* y z)) (* y b))
(+ 0.607771387771 (* z (+ 11.9400905721 (* z 31.4690115749))))))
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -17000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 6.5e-17) {
tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-17000.0d0)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 6.5d-17) then
tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771d0 + (z * (11.9400905721d0 + (z * 31.4690115749d0)))))
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -17000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 6.5e-17) {
tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749)))));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -17000.0: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 6.5e-17: tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))) else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -17000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 6.5e-17) tmp = Float64(x + Float64(Float64(Float64(a * Float64(y * z)) + Float64(y * b)) / Float64(0.607771387771 + Float64(z * Float64(11.9400905721 + Float64(z * 31.4690115749)))))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -17000.0) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 6.5e-17) tmp = x + (((a * (y * z)) + (y * b)) / (0.607771387771 + (z * (11.9400905721 + (z * 31.4690115749))))); else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -17000.0], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-17], N[(x + N[(N[(N[(a * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(y * b), $MachinePrecision]), $MachinePrecision] / N[(0.607771387771 + N[(z * N[(11.9400905721 + N[(z * 31.4690115749), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -17000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{a \cdot \left(y \cdot z\right) + y \cdot b}{0.607771387771 + z \cdot \left(11.9400905721 + z \cdot 31.4690115749\right)}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -17000Initial program 10.5%
Simplified18.2%
Taylor expanded in z around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
+-commutative95.0%
Simplified95.0%
fma-undefine95.0%
Applied egg-rr95.0%
div-inv95.1%
Applied egg-rr95.1%
if -17000 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 98.8%
*-commutative98.8%
Simplified98.8%
Taylor expanded in z around 0 90.3%
if 6.4999999999999996e-17 < z Initial program 20.6%
Simplified24.3%
Taylor expanded in z around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
+-commutative98.3%
Simplified98.3%
fma-undefine98.3%
Applied egg-rr98.3%
Final simplification93.7%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -126000.0)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 1.9e-17)
(+
x
(/
(* y b)
(+
(*
z
(+ (* z (+ (* z (+ z 15.234687407)) 31.4690115749)) 11.9400905721))
0.607771387771)))
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -126000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 1.9e-17) {
tmp = x + ((y * b) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-126000.0d0)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 1.9d-17) then
tmp = x + ((y * b) / ((z * ((z * ((z * (z + 15.234687407d0)) + 31.4690115749d0)) + 11.9400905721d0)) + 0.607771387771d0))
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -126000.0) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 1.9e-17) {
tmp = x + ((y * b) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -126000.0: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 1.9e-17: tmp = x + ((y * b) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)) else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -126000.0) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 1.9e-17) tmp = Float64(x + Float64(Float64(y * b) / Float64(Float64(z * Float64(Float64(z * Float64(Float64(z * Float64(z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -126000.0) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 1.9e-17) tmp = x + ((y * b) / ((z * ((z * ((z * (z + 15.234687407)) + 31.4690115749)) + 11.9400905721)) + 0.607771387771)); else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -126000.0], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e-17], N[(x + N[(N[(y * b), $MachinePrecision] / N[(N[(z * N[(N[(z * N[(N[(z * N[(z + 15.234687407), $MachinePrecision]), $MachinePrecision] + 31.4690115749), $MachinePrecision]), $MachinePrecision] + 11.9400905721), $MachinePrecision]), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -126000:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-17}:\\
\;\;\;\;x + \frac{y \cdot b}{z \cdot \left(z \cdot \left(z \cdot \left(z + 15.234687407\right) + 31.4690115749\right) + 11.9400905721\right) + 0.607771387771}\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -126000Initial program 10.5%
Simplified18.2%
Taylor expanded in z around -inf 95.0%
mul-1-neg95.0%
unsub-neg95.0%
mul-1-neg95.0%
unsub-neg95.0%
+-commutative95.0%
Simplified95.0%
fma-undefine95.0%
Applied egg-rr95.0%
div-inv95.1%
Applied egg-rr95.1%
if -126000 < z < 1.9000000000000001e-17Initial program 99.7%
Taylor expanded in z around 0 81.3%
*-commutative81.3%
Simplified81.3%
if 1.9000000000000001e-17 < z Initial program 20.6%
Simplified24.3%
Taylor expanded in z around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
+-commutative98.3%
Simplified98.3%
fma-undefine98.3%
Applied egg-rr98.3%
Final simplification89.5%
(FPCore (x y z t a b)
:precision binary64
(if (or (<= z -5.8e-37) (not (<= z 6.5e-17)))
(+
x
(*
y
(+
3.13060547623
(/ (- (/ (+ t 457.9610022158428) z) 36.52704169880642) z))))
(+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.8e-37) || !(z <= 6.5e-17)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} 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 <= (-5.8d-37)) .or. (.not. (z <= 6.5d-17))) then
tmp = x + (y * (3.13060547623d0 + ((((t + 457.9610022158428d0) / z) - 36.52704169880642d0) / z)))
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 <= -5.8e-37) || !(z <= 6.5e-17)) {
tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z)));
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.8e-37) or not (z <= 6.5e-17): tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.8e-37) || !(z <= 6.5e-17)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(Float64(Float64(t + 457.9610022158428) / z) - 36.52704169880642) / z)))); 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 <= -5.8e-37) || ~((z <= 6.5e-17))) tmp = x + (y * (3.13060547623 + ((((t + 457.9610022158428) / z) - 36.52704169880642) / z))); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.8e-37], N[Not[LessEqual[z, 6.5e-17]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision] - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{-37} \lor \neg \left(z \leq 6.5 \cdot 10^{-17}\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t + 457.9610022158428}{z} - 36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -5.80000000000000009e-37 or 6.4999999999999996e-17 < z Initial program 21.3%
Simplified26.4%
Taylor expanded in z around -inf 93.8%
mul-1-neg93.8%
unsub-neg93.8%
mul-1-neg93.8%
unsub-neg93.8%
+-commutative93.8%
Simplified93.8%
fma-undefine93.8%
Applied egg-rr93.8%
if -5.80000000000000009e-37 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 83.2%
*-commutative83.2%
Simplified83.2%
*-commutative83.2%
distribute-lft-in83.2%
unpow283.2%
Applied egg-rr83.2%
Taylor expanded in z around 0 83.3%
*-commutative83.3%
associate-*l*83.3%
Simplified83.3%
Final simplification89.2%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1 (/ (+ t 457.9610022158428) z)))
(if (<= z -5.8e-37)
(+ x (* y (+ 3.13060547623 (* (- 36.52704169880642 t_1) (/ -1.0 z)))))
(if (<= z 6.5e-17)
(+ x (* b (* y 1.6453555072203998)))
(+ x (* y (+ 3.13060547623 (/ (- t_1 36.52704169880642) z))))))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -5.8e-37) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 6.5e-17) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = (t + 457.9610022158428d0) / z
if (z <= (-5.8d-37)) then
tmp = x + (y * (3.13060547623d0 + ((36.52704169880642d0 - t_1) * ((-1.0d0) / z))))
else if (z <= 6.5d-17) then
tmp = x + (b * (y * 1.6453555072203998d0))
else
tmp = x + (y * (3.13060547623d0 + ((t_1 - 36.52704169880642d0) / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = (t + 457.9610022158428) / z;
double tmp;
if (z <= -5.8e-37) {
tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z))));
} else if (z <= 6.5e-17) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z)));
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = (t + 457.9610022158428) / z tmp = 0 if z <= -5.8e-37: tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))) elif z <= 6.5e-17: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))) return tmp
function code(x, y, z, t, a, b) t_1 = Float64(Float64(t + 457.9610022158428) / z) tmp = 0.0 if (z <= -5.8e-37) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(36.52704169880642 - t_1) * Float64(-1.0 / z))))); elseif (z <= 6.5e-17) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t_1 - 36.52704169880642) / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = (t + 457.9610022158428) / z; tmp = 0.0; if (z <= -5.8e-37) tmp = x + (y * (3.13060547623 + ((36.52704169880642 - t_1) * (-1.0 / z)))); elseif (z <= 6.5e-17) tmp = x + (b * (y * 1.6453555072203998)); else tmp = x + (y * (3.13060547623 + ((t_1 - 36.52704169880642) / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(t + 457.9610022158428), $MachinePrecision] / z), $MachinePrecision]}, If[LessEqual[z, -5.8e-37], N[(x + N[(y * N[(3.13060547623 + N[(N[(36.52704169880642 - t$95$1), $MachinePrecision] * N[(-1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-17], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(y * N[(3.13060547623 + N[(N[(t$95$1 - 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{t + 457.9610022158428}{z}\\
\mathbf{if}\;z \leq -5.8 \cdot 10^{-37}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \left(36.52704169880642 - t\_1\right) \cdot \frac{-1}{z}\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-17}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{t\_1 - 36.52704169880642}{z}\right)\\
\end{array}
\end{array}
if z < -5.80000000000000009e-37Initial program 22.1%
Simplified28.8%
Taylor expanded in z around -inf 88.9%
mul-1-neg88.9%
unsub-neg88.9%
mul-1-neg88.9%
unsub-neg88.9%
+-commutative88.9%
Simplified88.9%
fma-undefine88.9%
Applied egg-rr88.9%
div-inv88.9%
Applied egg-rr88.9%
if -5.80000000000000009e-37 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 83.2%
*-commutative83.2%
Simplified83.2%
*-commutative83.2%
distribute-lft-in83.2%
unpow283.2%
Applied egg-rr83.2%
Taylor expanded in z around 0 83.3%
*-commutative83.3%
associate-*l*83.3%
Simplified83.3%
if 6.4999999999999996e-17 < z Initial program 20.6%
Simplified24.3%
Taylor expanded in z around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
+-commutative98.3%
Simplified98.3%
fma-undefine98.3%
Applied egg-rr98.3%
Final simplification89.2%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -5.8e-37) (not (<= z 6.5e-17))) (+ x (* y (+ 3.13060547623 (/ (/ t z) z)))) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -5.8e-37) || !(z <= 6.5e-17)) {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
} 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 <= (-5.8d-37)) .or. (.not. (z <= 6.5d-17))) then
tmp = x + (y * (3.13060547623d0 + ((t / z) / z)))
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 <= -5.8e-37) || !(z <= 6.5e-17)) {
tmp = x + (y * (3.13060547623 + ((t / z) / z)));
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -5.8e-37) or not (z <= 6.5e-17): tmp = x + (y * (3.13060547623 + ((t / z) / z))) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -5.8e-37) || !(z <= 6.5e-17)) tmp = Float64(x + Float64(y * Float64(3.13060547623 + Float64(Float64(t / z) / z)))); 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 <= -5.8e-37) || ~((z <= 6.5e-17))) tmp = x + (y * (3.13060547623 + ((t / z) / z))); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -5.8e-37], N[Not[LessEqual[z, 6.5e-17]], $MachinePrecision]], N[(x + N[(y * N[(3.13060547623 + N[(N[(t / z), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -5.8 \cdot 10^{-37} \lor \neg \left(z \leq 6.5 \cdot 10^{-17}\right):\\
\;\;\;\;x + y \cdot \left(3.13060547623 + \frac{\frac{t}{z}}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -5.80000000000000009e-37 or 6.4999999999999996e-17 < z Initial program 21.3%
Simplified26.4%
Taylor expanded in z around -inf 93.8%
mul-1-neg93.8%
unsub-neg93.8%
mul-1-neg93.8%
unsub-neg93.8%
+-commutative93.8%
Simplified93.8%
fma-undefine93.8%
Applied egg-rr93.8%
Taylor expanded in t around inf 93.6%
mul-1-neg93.6%
distribute-neg-frac293.6%
Simplified93.6%
if -5.80000000000000009e-37 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 83.2%
*-commutative83.2%
Simplified83.2%
*-commutative83.2%
distribute-lft-in83.2%
unpow283.2%
Applied egg-rr83.2%
Taylor expanded in z around 0 83.3%
*-commutative83.3%
associate-*l*83.3%
Simplified83.3%
Final simplification89.1%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -360000.0) (not (<= z 6.5e-17))) (+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z))) (+ x (* b (* y 1.6453555072203998)))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((z <= -360000.0) || !(z <= 6.5e-17)) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} 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 <= (-360000.0d0)) .or. (.not. (z <= 6.5d-17))) then
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
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 <= -360000.0) || !(z <= 6.5e-17)) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -360000.0) or not (z <= 6.5e-17): tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -360000.0) || !(z <= 6.5e-17)) tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); 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 <= -360000.0) || ~((z <= 6.5e-17))) tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); else tmp = x + (b * (y * 1.6453555072203998)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[z, -360000.0], N[Not[LessEqual[z, 6.5e-17]], $MachinePrecision]], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -360000 \lor \neg \left(z \leq 6.5 \cdot 10^{-17}\right):\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -3.6e5 or 6.4999999999999996e-17 < z Initial program 16.0%
Taylor expanded in z around -inf 92.0%
+-commutative92.0%
mul-1-neg92.0%
unsub-neg92.0%
*-commutative92.0%
distribute-rgt-out--92.0%
metadata-eval92.0%
Simplified92.0%
if -3.6e5 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 81.3%
*-commutative81.3%
Simplified81.3%
*-commutative81.3%
distribute-lft-in81.3%
unpow281.3%
Applied egg-rr81.3%
Taylor expanded in z around 0 80.6%
*-commutative80.6%
associate-*l*80.6%
Simplified80.6%
Final simplification86.5%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -540000.0)
(+ x (- (* y 3.13060547623) (/ (* y 36.52704169880642) z)))
(if (<= z 6.5e-17)
(+ x (* b (* y 1.6453555072203998)))
(+ x (+ (* -36.52704169880642 (/ y z)) (* y 3.13060547623))))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -540000.0) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 6.5e-17) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + ((-36.52704169880642 * (y / 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 <= (-540000.0d0)) then
tmp = x + ((y * 3.13060547623d0) - ((y * 36.52704169880642d0) / z))
else if (z <= 6.5d-17) then
tmp = x + (b * (y * 1.6453555072203998d0))
else
tmp = x + (((-36.52704169880642d0) * (y / 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 <= -540000.0) {
tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z));
} else if (z <= 6.5e-17) {
tmp = x + (b * (y * 1.6453555072203998));
} else {
tmp = x + ((-36.52704169880642 * (y / z)) + (y * 3.13060547623));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if z <= -540000.0: tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)) elif z <= 6.5e-17: tmp = x + (b * (y * 1.6453555072203998)) else: tmp = x + ((-36.52704169880642 * (y / z)) + (y * 3.13060547623)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -540000.0) tmp = Float64(x + Float64(Float64(y * 3.13060547623) - Float64(Float64(y * 36.52704169880642) / z))); elseif (z <= 6.5e-17) tmp = Float64(x + Float64(b * Float64(y * 1.6453555072203998))); else tmp = Float64(x + Float64(Float64(-36.52704169880642 * Float64(y / z)) + Float64(y * 3.13060547623))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if (z <= -540000.0) tmp = x + ((y * 3.13060547623) - ((y * 36.52704169880642) / z)); elseif (z <= 6.5e-17) tmp = x + (b * (y * 1.6453555072203998)); else tmp = x + ((-36.52704169880642 * (y / z)) + (y * 3.13060547623)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -540000.0], N[(x + N[(N[(y * 3.13060547623), $MachinePrecision] - N[(N[(y * 36.52704169880642), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.5e-17], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(N[(-36.52704169880642 * N[(y / z), $MachinePrecision]), $MachinePrecision] + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -540000:\\
\;\;\;\;x + \left(y \cdot 3.13060547623 - \frac{y \cdot 36.52704169880642}{z}\right)\\
\mathbf{elif}\;z \leq 6.5 \cdot 10^{-17}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\mathbf{else}:\\
\;\;\;\;x + \left(-36.52704169880642 \cdot \frac{y}{z} + y \cdot 3.13060547623\right)\\
\end{array}
\end{array}
if z < -5.4e5Initial program 10.5%
Taylor expanded in z around -inf 90.2%
+-commutative90.2%
mul-1-neg90.2%
unsub-neg90.2%
*-commutative90.2%
distribute-rgt-out--90.2%
metadata-eval90.2%
Simplified90.2%
if -5.4e5 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 81.3%
*-commutative81.3%
Simplified81.3%
*-commutative81.3%
distribute-lft-in81.3%
unpow281.3%
Applied egg-rr81.3%
Taylor expanded in z around 0 80.6%
*-commutative80.6%
associate-*l*80.6%
Simplified80.6%
if 6.4999999999999996e-17 < z Initial program 20.6%
Simplified24.3%
Taylor expanded in z around -inf 98.3%
mul-1-neg98.3%
unsub-neg98.3%
mul-1-neg98.3%
unsub-neg98.3%
+-commutative98.3%
Simplified98.3%
fma-undefine98.3%
Applied egg-rr98.3%
Taylor expanded in z around inf 93.4%
Final simplification86.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -55000.0) (not (<= z 6.5e-17))) (- x (* y (- (/ 36.52704169880642 z) 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 <= -55000.0) || !(z <= 6.5e-17)) {
tmp = x - (y * ((36.52704169880642 / z) - 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 <= (-55000.0d0)) .or. (.not. (z <= 6.5d-17))) then
tmp = x - (y * ((36.52704169880642d0 / z) - 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 <= -55000.0) || !(z <= 6.5e-17)) {
tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623));
} else {
tmp = x + (b * (y * 1.6453555072203998));
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (z <= -55000.0) or not (z <= 6.5e-17): tmp = x - (y * ((36.52704169880642 / z) - 3.13060547623)) else: tmp = x + (b * (y * 1.6453555072203998)) return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((z <= -55000.0) || !(z <= 6.5e-17)) tmp = Float64(x - Float64(y * Float64(Float64(36.52704169880642 / z) - 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 <= -55000.0) || ~((z <= 6.5e-17))) tmp = x - (y * ((36.52704169880642 / z) - 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, -55000.0], N[Not[LessEqual[z, 6.5e-17]], $MachinePrecision]], N[(x - N[(y * N[(N[(36.52704169880642 / z), $MachinePrecision] - 3.13060547623), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x + N[(b * N[(y * 1.6453555072203998), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -55000 \lor \neg \left(z \leq 6.5 \cdot 10^{-17}\right):\\
\;\;\;\;x - y \cdot \left(\frac{36.52704169880642}{z} - 3.13060547623\right)\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -55000 or 6.4999999999999996e-17 < z Initial program 16.0%
Simplified21.6%
Taylor expanded in z around -inf 96.9%
mul-1-neg96.9%
unsub-neg96.9%
mul-1-neg96.9%
unsub-neg96.9%
+-commutative96.9%
Simplified96.9%
fma-undefine96.8%
Applied egg-rr96.8%
Taylor expanded in z around inf 92.0%
if -55000 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 81.3%
*-commutative81.3%
Simplified81.3%
*-commutative81.3%
distribute-lft-in81.3%
unpow281.3%
Applied egg-rr81.3%
Taylor expanded in z around 0 80.6%
*-commutative80.6%
associate-*l*80.6%
Simplified80.6%
Final simplification86.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= z -3600.0) (not (<= z 6.5e-17))) (+ 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 <= -3600.0) || !(z <= 6.5e-17)) {
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 <= (-3600.0d0)) .or. (.not. (z <= 6.5d-17))) 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 <= -3600.0) || !(z <= 6.5e-17)) {
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 <= -3600.0) or not (z <= 6.5e-17): 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 <= -3600.0) || !(z <= 6.5e-17)) 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 <= -3600.0) || ~((z <= 6.5e-17))) 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, -3600.0], N[Not[LessEqual[z, 6.5e-17]], $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 -3600 \lor \neg \left(z \leq 6.5 \cdot 10^{-17}\right):\\
\;\;\;\;x + y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x + b \cdot \left(y \cdot 1.6453555072203998\right)\\
\end{array}
\end{array}
if z < -3600 or 6.4999999999999996e-17 < z Initial program 16.0%
Simplified21.6%
Taylor expanded in z around inf 91.9%
+-commutative91.9%
*-commutative91.9%
Simplified91.9%
if -3600 < z < 6.4999999999999996e-17Initial program 99.7%
Taylor expanded in z around 0 81.3%
*-commutative81.3%
Simplified81.3%
*-commutative81.3%
distribute-lft-in81.3%
unpow281.3%
Applied egg-rr81.3%
Taylor expanded in z around 0 80.6%
*-commutative80.6%
associate-*l*80.6%
Simplified80.6%
Final simplification86.5%
(FPCore (x y z t a b) :precision binary64 (if (or (<= y -1.15e+74) (not (<= y 1.6e+82))) (* y 3.13060547623) x))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.15e+74) || !(y <= 1.6e+82)) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: tmp
if ((y <= (-1.15d+74)) .or. (.not. (y <= 1.6d+82))) then
tmp = y * 3.13060547623d0
else
tmp = x
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((y <= -1.15e+74) || !(y <= 1.6e+82)) {
tmp = y * 3.13060547623;
} else {
tmp = x;
}
return tmp;
}
def code(x, y, z, t, a, b): tmp = 0 if (y <= -1.15e+74) or not (y <= 1.6e+82): tmp = y * 3.13060547623 else: tmp = x return tmp
function code(x, y, z, t, a, b) tmp = 0.0 if ((y <= -1.15e+74) || !(y <= 1.6e+82)) tmp = Float64(y * 3.13060547623); else tmp = x; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) tmp = 0.0; if ((y <= -1.15e+74) || ~((y <= 1.6e+82))) tmp = y * 3.13060547623; else tmp = x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := If[Or[LessEqual[y, -1.15e+74], N[Not[LessEqual[y, 1.6e+82]], $MachinePrecision]], N[(y * 3.13060547623), $MachinePrecision], x]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+74} \lor \neg \left(y \leq 1.6 \cdot 10^{+82}\right):\\
\;\;\;\;y \cdot 3.13060547623\\
\mathbf{else}:\\
\;\;\;\;x\\
\end{array}
\end{array}
if y < -1.1499999999999999e74 or 1.59999999999999987e82 < y Initial program 50.9%
Simplified57.8%
Taylor expanded in z around inf 50.9%
Taylor expanded in y around inf 39.4%
if -1.1499999999999999e74 < y < 1.59999999999999987e82Initial program 58.8%
Simplified59.3%
Taylor expanded in y around 0 61.9%
Final simplification53.7%
(FPCore (x y z t a b) :precision binary64 (+ x (* y 3.13060547623)))
double code(double x, double y, double z, double t, double a, double b) {
return x + (y * 3.13060547623);
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
code = x + (y * 3.13060547623d0)
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + (y * 3.13060547623);
}
def code(x, y, z, t, a, b): return x + (y * 3.13060547623)
function code(x, y, z, t, a, b) return Float64(x + Float64(y * 3.13060547623)) end
function tmp = code(x, y, z, t, a, b) tmp = x + (y * 3.13060547623); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(y * 3.13060547623), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + y \cdot 3.13060547623
\end{array}
Initial program 55.9%
Simplified58.8%
Taylor expanded in z around inf 65.7%
+-commutative65.7%
*-commutative65.7%
Simplified65.7%
Final simplification65.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 55.9%
Simplified58.8%
Taylor expanded in y around 0 43.6%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(+
x
(*
(+ (- 3.13060547623 (/ 36.527041698806414 z)) (/ t (* z z)))
(/ y 1.0)))))
(if (< z -6.499344996252632e+53)
t_1
(if (< z 7.066965436914287e+59)
(+
x
(/
y
(/
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8) :: t_1
real(8) :: tmp
t_1 = x + (((3.13060547623d0 - (36.527041698806414d0 / z)) + (t / (z * z))) * (y / 1.0d0))
if (z < (-6.499344996252632d+53)) then
tmp = t_1
else if (z < 7.066965436914287d+59) then
tmp = x + (y / ((((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0) / ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b) {
double t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0));
double tmp;
if (z < -6.499344996252632e+53) {
tmp = t_1;
} else if (z < 7.066965436914287e+59) {
tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b): t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)) tmp = 0 if z < -6.499344996252632e+53: tmp = t_1 elif z < 7.066965436914287e+59: tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b) t_1 = Float64(x + Float64(Float64(Float64(3.13060547623 - Float64(36.527041698806414 / z)) + Float64(t / Float64(z * z))) * Float64(y / 1.0))) tmp = 0.0 if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = Float64(x + Float64(y / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b) t_1 = x + (((3.13060547623 - (36.527041698806414 / z)) + (t / (z * z))) * (y / 1.0)); tmp = 0.0; if (z < -6.499344996252632e+53) tmp = t_1; elseif (z < 7.066965436914287e+59) tmp = x + (y / ((((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771) / ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(x + N[(N[(N[(3.13060547623 - N[(36.527041698806414 / z), $MachinePrecision]), $MachinePrecision] + N[(t / N[(z * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * N[(y / 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[z, -6.499344996252632e+53], t$95$1, If[Less[z, 7.066965436914287e+59], N[(x + N[(y / N[(N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x + \left(\left(3.13060547623 - \frac{36.527041698806414}{z}\right) + \frac{t}{z \cdot z}\right) \cdot \frac{y}{1}\\
\mathbf{if}\;z < -6.499344996252632 \cdot 10^{+53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z < 7.066965436914287 \cdot 10^{+59}:\\
\;\;\;\;x + \frac{y}{\frac{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}{\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b}}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
herbie shell --seed 2024103
(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))))