
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 41 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y x (* (- t) z)))
(t_2 (fma y2 k (* (- j) y3)))
(t_3 (fma y0 c (* (- a) y1)))
(t_4 (fma b a (* (- c) i)))
(t_5 (fma y4 c (* (- a) y5)))
(t_6 (fma y2 t (* (- y) y3)))
(t_7 (fma j t (* (- k) y))))
(if (<= y1 -2.15e+212)
(* (+ (fma (- y1) (fma y2 x (* (- y3) z)) (* t_1 b)) (* y5 t_6)) a)
(if (<= y1 -3.2e+128)
(* (- (fma t_2 y1 (* t_7 b)) (* t_6 c)) y4)
(if (<= y1 -4.5e-62)
(* (- z) (- (fma t_3 y3 (* t_4 t)) (* (fma y0 b (* (- i) y1)) k)))
(if (<= y1 -4.2e-187)
(* (- (fma t_1 a (* t_7 y4)) (* (fma j x (* (- k) z)) y0)) b)
(if (<= y1 1.4e-177)
(* (- y5) (- (fma t_2 y0 (* t_7 i)) (* t_6 a)))
(if (<= y1 1.3e-13)
(*
(+ (fma (- k) (fma y4 b (* (- i) y5)) (* t_4 x)) (* y3 t_5))
y)
(if (<= y1 4.2e+236)
(*
(- (fma (fma y4 y1 (* (- y0) y5)) k (* t_3 x)) (* t_5 t))
y2)
(* (* (- x) y1) (fma a y2 (* (- i) j))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y, x, (-t * z));
double t_2 = fma(y2, k, (-j * y3));
double t_3 = fma(y0, c, (-a * y1));
double t_4 = fma(b, a, (-c * i));
double t_5 = fma(y4, c, (-a * y5));
double t_6 = fma(y2, t, (-y * y3));
double t_7 = fma(j, t, (-k * y));
double tmp;
if (y1 <= -2.15e+212) {
tmp = (fma(-y1, fma(y2, x, (-y3 * z)), (t_1 * b)) + (y5 * t_6)) * a;
} else if (y1 <= -3.2e+128) {
tmp = (fma(t_2, y1, (t_7 * b)) - (t_6 * c)) * y4;
} else if (y1 <= -4.5e-62) {
tmp = -z * (fma(t_3, y3, (t_4 * t)) - (fma(y0, b, (-i * y1)) * k));
} else if (y1 <= -4.2e-187) {
tmp = (fma(t_1, a, (t_7 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
} else if (y1 <= 1.4e-177) {
tmp = -y5 * (fma(t_2, y0, (t_7 * i)) - (t_6 * a));
} else if (y1 <= 1.3e-13) {
tmp = (fma(-k, fma(y4, b, (-i * y5)), (t_4 * x)) + (y3 * t_5)) * y;
} else if (y1 <= 4.2e+236) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (t_3 * x)) - (t_5 * t)) * y2;
} else {
tmp = (-x * y1) * fma(a, y2, (-i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y, x, Float64(Float64(-t) * z)) t_2 = fma(y2, k, Float64(Float64(-j) * y3)) t_3 = fma(y0, c, Float64(Float64(-a) * y1)) t_4 = fma(b, a, Float64(Float64(-c) * i)) t_5 = fma(y4, c, Float64(Float64(-a) * y5)) t_6 = fma(y2, t, Float64(Float64(-y) * y3)) t_7 = fma(j, t, Float64(Float64(-k) * y)) tmp = 0.0 if (y1 <= -2.15e+212) tmp = Float64(Float64(fma(Float64(-y1), fma(y2, x, Float64(Float64(-y3) * z)), Float64(t_1 * b)) + Float64(y5 * t_6)) * a); elseif (y1 <= -3.2e+128) tmp = Float64(Float64(fma(t_2, y1, Float64(t_7 * b)) - Float64(t_6 * c)) * y4); elseif (y1 <= -4.5e-62) tmp = Float64(Float64(-z) * Float64(fma(t_3, y3, Float64(t_4 * t)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * k))); elseif (y1 <= -4.2e-187) tmp = Float64(Float64(fma(t_1, a, Float64(t_7 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); elseif (y1 <= 1.4e-177) tmp = Float64(Float64(-y5) * Float64(fma(t_2, y0, Float64(t_7 * i)) - Float64(t_6 * a))); elseif (y1 <= 1.3e-13) tmp = Float64(Float64(fma(Float64(-k), fma(y4, b, Float64(Float64(-i) * y5)), Float64(t_4 * x)) + Float64(y3 * t_5)) * y); elseif (y1 <= 4.2e+236) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(t_3 * x)) - Float64(t_5 * t)) * y2); else tmp = Float64(Float64(Float64(-x) * y1) * fma(a, y2, Float64(Float64(-i) * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -2.15e+212], N[(N[(N[((-y1) * N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$6), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y1, -3.2e+128], N[(N[(N[(t$95$2 * y1 + N[(t$95$7 * b), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y1, -4.5e-62], N[((-z) * N[(N[(t$95$3 * y3 + N[(t$95$4 * t), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -4.2e-187], N[(N[(N[(t$95$1 * a + N[(t$95$7 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y1, 1.4e-177], N[((-y5) * N[(N[(t$95$2 * y0 + N[(t$95$7 * i), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.3e-13], N[(N[(N[((-k) * N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] + N[(t$95$4 * x), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$5), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y1, 4.2e+236], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$3 * x), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], N[(N[((-x) * y1), $MachinePrecision] * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right)\\
t_2 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_3 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
t_4 := \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right)\\
t_5 := \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\\
t_6 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_7 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
\mathbf{if}\;y1 \leq -2.15 \cdot 10^{+212}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), t\_1 \cdot b\right) + y5 \cdot t\_6\right) \cdot a\\
\mathbf{elif}\;y1 \leq -3.2 \cdot 10^{+128}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, y1, t\_7 \cdot b\right) - t\_6 \cdot c\right) \cdot y4\\
\mathbf{elif}\;y1 \leq -4.5 \cdot 10^{-62}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_3, y3, t\_4 \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\
\mathbf{elif}\;y1 \leq -4.2 \cdot 10^{-187}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, a, t\_7 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y1 \leq 1.4 \cdot 10^{-177}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_2, y0, t\_7 \cdot i\right) - t\_6 \cdot a\right)\\
\mathbf{elif}\;y1 \leq 1.3 \cdot 10^{-13}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), t\_4 \cdot x\right) + y3 \cdot t\_5\right) \cdot y\\
\mathbf{elif}\;y1 \leq 4.2 \cdot 10^{+236}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, t\_3 \cdot x\right) - t\_5 \cdot t\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-x\right) \cdot y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\\
\end{array}
\end{array}
if y1 < -2.1499999999999998e212Initial program 21.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.7%
if -2.1499999999999998e212 < y1 < -3.19999999999999986e128Initial program 31.7%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites69.4%
if -3.19999999999999986e128 < y1 < -4.50000000000000018e-62Initial program 34.7%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.7%
if -4.50000000000000018e-62 < y1 < -4.19999999999999985e-187Initial program 32.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.1%
if -4.19999999999999985e-187 < y1 < 1.39999999999999993e-177Initial program 37.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
if 1.39999999999999993e-177 < y1 < 1.3e-13Initial program 29.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
if 1.3e-13 < y1 < 4.20000000000000011e236Initial program 30.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.1%
if 4.20000000000000011e236 < y1 Initial program 24.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.1%
Taylor expanded in y1 around -inf
Applied rewrites70.3%
Final simplification63.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))
(if (<= t_1 INFINITY)
t_1
(*
(+
(fma (- k) (fma y4 b (* (- i) y5)) (* (fma b a (* (- c) i)) x))
(* y3 (fma y4 c (* (- a) y5))))
y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (fma(-k, fma(y4, b, (-i * y5)), (fma(b, a, (-c * i)) * x)) + (y3 * fma(y4, c, (-a * y5)))) * y;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(fma(Float64(-k), fma(y4, b, Float64(Float64(-i) * y5)), Float64(fma(b, a, Float64(Float64(-c) * i)) * x)) + Float64(y3 * fma(y4, c, Float64(Float64(-a) * y5)))) * y); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[((-k) * N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot x\right) + y3 \cdot \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\right) \cdot y\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 89.5%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.5%
Final simplification58.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2 (fma y2 k (* (- j) y3)))
(t_3 (fma y0 c (* (- a) y1)))
(t_4
(*
(-
(fma (fma y x (* (- t) z)) a (* t_1 y4))
(* (fma j x (* (- k) z)) y0))
b))
(t_5 (fma y4 c (* (- a) y5)))
(t_6 (fma b a (* (- c) i)))
(t_7 (fma y2 t (* (- y) y3))))
(if (<= y1 -1.75e+192)
t_4
(if (<= y1 -3.2e+128)
(* (- (fma t_2 y1 (* t_1 b)) (* t_7 c)) y4)
(if (<= y1 -4.5e-62)
(* (- z) (- (fma t_3 y3 (* t_6 t)) (* (fma y0 b (* (- i) y1)) k)))
(if (<= y1 -4.2e-187)
t_4
(if (<= y1 1.4e-177)
(* (- y5) (- (fma t_2 y0 (* t_1 i)) (* t_7 a)))
(if (<= y1 1.3e-13)
(*
(+ (fma (- k) (fma y4 b (* (- i) y5)) (* t_6 x)) (* y3 t_5))
y)
(if (<= y1 4.2e+236)
(*
(- (fma (fma y4 y1 (* (- y0) y5)) k (* t_3 x)) (* t_5 t))
y2)
(* (* (- x) y1) (fma a y2 (* (- i) j))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, t, (-k * y));
double t_2 = fma(y2, k, (-j * y3));
double t_3 = fma(y0, c, (-a * y1));
double t_4 = (fma(fma(y, x, (-t * z)), a, (t_1 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
double t_5 = fma(y4, c, (-a * y5));
double t_6 = fma(b, a, (-c * i));
double t_7 = fma(y2, t, (-y * y3));
double tmp;
if (y1 <= -1.75e+192) {
tmp = t_4;
} else if (y1 <= -3.2e+128) {
tmp = (fma(t_2, y1, (t_1 * b)) - (t_7 * c)) * y4;
} else if (y1 <= -4.5e-62) {
tmp = -z * (fma(t_3, y3, (t_6 * t)) - (fma(y0, b, (-i * y1)) * k));
} else if (y1 <= -4.2e-187) {
tmp = t_4;
} else if (y1 <= 1.4e-177) {
tmp = -y5 * (fma(t_2, y0, (t_1 * i)) - (t_7 * a));
} else if (y1 <= 1.3e-13) {
tmp = (fma(-k, fma(y4, b, (-i * y5)), (t_6 * x)) + (y3 * t_5)) * y;
} else if (y1 <= 4.2e+236) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (t_3 * x)) - (t_5 * t)) * y2;
} else {
tmp = (-x * y1) * fma(a, y2, (-i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = fma(y2, k, Float64(Float64(-j) * y3)) t_3 = fma(y0, c, Float64(Float64(-a) * y1)) t_4 = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_1 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b) t_5 = fma(y4, c, Float64(Float64(-a) * y5)) t_6 = fma(b, a, Float64(Float64(-c) * i)) t_7 = fma(y2, t, Float64(Float64(-y) * y3)) tmp = 0.0 if (y1 <= -1.75e+192) tmp = t_4; elseif (y1 <= -3.2e+128) tmp = Float64(Float64(fma(t_2, y1, Float64(t_1 * b)) - Float64(t_7 * c)) * y4); elseif (y1 <= -4.5e-62) tmp = Float64(Float64(-z) * Float64(fma(t_3, y3, Float64(t_6 * t)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * k))); elseif (y1 <= -4.2e-187) tmp = t_4; elseif (y1 <= 1.4e-177) tmp = Float64(Float64(-y5) * Float64(fma(t_2, y0, Float64(t_1 * i)) - Float64(t_7 * a))); elseif (y1 <= 1.3e-13) tmp = Float64(Float64(fma(Float64(-k), fma(y4, b, Float64(Float64(-i) * y5)), Float64(t_6 * x)) + Float64(y3 * t_5)) * y); elseif (y1 <= 4.2e+236) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(t_3 * x)) - Float64(t_5 * t)) * y2); else tmp = Float64(Float64(Float64(-x) * y1) * fma(a, y2, Float64(Float64(-i) * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -1.75e+192], t$95$4, If[LessEqual[y1, -3.2e+128], N[(N[(N[(t$95$2 * y1 + N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] - N[(t$95$7 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y1, -4.5e-62], N[((-z) * N[(N[(t$95$3 * y3 + N[(t$95$6 * t), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -4.2e-187], t$95$4, If[LessEqual[y1, 1.4e-177], N[((-y5) * N[(N[(t$95$2 * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(t$95$7 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.3e-13], N[(N[(N[((-k) * N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] + N[(t$95$6 * x), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$5), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[y1, 4.2e+236], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$3 * x), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], N[(N[((-x) * y1), $MachinePrecision] * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_3 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
t_4 := \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
t_5 := \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\\
t_6 := \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right)\\
t_7 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
\mathbf{if}\;y1 \leq -1.75 \cdot 10^{+192}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y1 \leq -3.2 \cdot 10^{+128}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, y1, t\_1 \cdot b\right) - t\_7 \cdot c\right) \cdot y4\\
\mathbf{elif}\;y1 \leq -4.5 \cdot 10^{-62}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_3, y3, t\_6 \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\
\mathbf{elif}\;y1 \leq -4.2 \cdot 10^{-187}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y1 \leq 1.4 \cdot 10^{-177}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_2, y0, t\_1 \cdot i\right) - t\_7 \cdot a\right)\\
\mathbf{elif}\;y1 \leq 1.3 \cdot 10^{-13}:\\
\;\;\;\;\left(\mathsf{fma}\left(-k, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), t\_6 \cdot x\right) + y3 \cdot t\_5\right) \cdot y\\
\mathbf{elif}\;y1 \leq 4.2 \cdot 10^{+236}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, t\_3 \cdot x\right) - t\_5 \cdot t\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-x\right) \cdot y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\\
\end{array}
\end{array}
if y1 < -1.74999999999999991e192 or -4.50000000000000018e-62 < y1 < -4.19999999999999985e-187Initial program 27.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.9%
if -1.74999999999999991e192 < y1 < -3.19999999999999986e128Initial program 30.8%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites90.0%
if -3.19999999999999986e128 < y1 < -4.50000000000000018e-62Initial program 34.7%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.7%
if -4.19999999999999985e-187 < y1 < 1.39999999999999993e-177Initial program 37.3%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.0%
if 1.39999999999999993e-177 < y1 < 1.3e-13Initial program 29.1%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.4%
if 1.3e-13 < y1 < 4.20000000000000011e236Initial program 30.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.1%
if 4.20000000000000011e236 < y1 Initial program 24.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.1%
Taylor expanded in y1 around -inf
Applied rewrites70.3%
Final simplification62.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2 (fma y2 k (* (- j) y3)))
(t_3 (fma y0 c (* (- a) y1)))
(t_4 (fma y2 t (* (- y) y3)))
(t_5 (fma y x (* (- t) z)))
(t_6 (fma j x (* (- k) z)))
(t_7 (* (- (fma t_5 a (* t_1 y4)) (* t_6 y0)) b)))
(if (<= y1 -1.75e+192)
t_7
(if (<= y1 -3.2e+128)
(* (- (fma t_2 y1 (* t_1 b)) (* t_4 c)) y4)
(if (<= y1 -4.5e-62)
(*
(- z)
(-
(fma t_3 y3 (* (fma b a (* (- c) i)) t))
(* (fma y0 b (* (- i) y1)) k)))
(if (<= y1 -4.2e-187)
t_7
(if (<= y1 1.4e-144)
(* (- y5) (- (fma t_2 y0 (* t_1 i)) (* t_4 a)))
(if (<= y1 3.2e+59)
(* (- i) (- (fma t_5 c (* t_1 y5)) (* t_6 y1)))
(if (<= y1 4.2e+236)
(*
(-
(fma (fma y4 y1 (* (- y0) y5)) k (* t_3 x))
(* (fma y4 c (* (- a) y5)) t))
y2)
(* (* (- x) y1) (fma a y2 (* (- i) j))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, t, (-k * y));
double t_2 = fma(y2, k, (-j * y3));
double t_3 = fma(y0, c, (-a * y1));
double t_4 = fma(y2, t, (-y * y3));
double t_5 = fma(y, x, (-t * z));
double t_6 = fma(j, x, (-k * z));
double t_7 = (fma(t_5, a, (t_1 * y4)) - (t_6 * y0)) * b;
double tmp;
if (y1 <= -1.75e+192) {
tmp = t_7;
} else if (y1 <= -3.2e+128) {
tmp = (fma(t_2, y1, (t_1 * b)) - (t_4 * c)) * y4;
} else if (y1 <= -4.5e-62) {
tmp = -z * (fma(t_3, y3, (fma(b, a, (-c * i)) * t)) - (fma(y0, b, (-i * y1)) * k));
} else if (y1 <= -4.2e-187) {
tmp = t_7;
} else if (y1 <= 1.4e-144) {
tmp = -y5 * (fma(t_2, y0, (t_1 * i)) - (t_4 * a));
} else if (y1 <= 3.2e+59) {
tmp = -i * (fma(t_5, c, (t_1 * y5)) - (t_6 * y1));
} else if (y1 <= 4.2e+236) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (t_3 * x)) - (fma(y4, c, (-a * y5)) * t)) * y2;
} else {
tmp = (-x * y1) * fma(a, y2, (-i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = fma(y2, k, Float64(Float64(-j) * y3)) t_3 = fma(y0, c, Float64(Float64(-a) * y1)) t_4 = fma(y2, t, Float64(Float64(-y) * y3)) t_5 = fma(y, x, Float64(Float64(-t) * z)) t_6 = fma(j, x, Float64(Float64(-k) * z)) t_7 = Float64(Float64(fma(t_5, a, Float64(t_1 * y4)) - Float64(t_6 * y0)) * b) tmp = 0.0 if (y1 <= -1.75e+192) tmp = t_7; elseif (y1 <= -3.2e+128) tmp = Float64(Float64(fma(t_2, y1, Float64(t_1 * b)) - Float64(t_4 * c)) * y4); elseif (y1 <= -4.5e-62) tmp = Float64(Float64(-z) * Float64(fma(t_3, y3, Float64(fma(b, a, Float64(Float64(-c) * i)) * t)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * k))); elseif (y1 <= -4.2e-187) tmp = t_7; elseif (y1 <= 1.4e-144) tmp = Float64(Float64(-y5) * Float64(fma(t_2, y0, Float64(t_1 * i)) - Float64(t_4 * a))); elseif (y1 <= 3.2e+59) tmp = Float64(Float64(-i) * Float64(fma(t_5, c, Float64(t_1 * y5)) - Float64(t_6 * y1))); elseif (y1 <= 4.2e+236) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(t_3 * x)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * t)) * y2); else tmp = Float64(Float64(Float64(-x) * y1) * fma(a, y2, Float64(Float64(-i) * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(N[(t$95$5 * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[y1, -1.75e+192], t$95$7, If[LessEqual[y1, -3.2e+128], N[(N[(N[(t$95$2 * y1 + N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y1, -4.5e-62], N[((-z) * N[(N[(t$95$3 * y3 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -4.2e-187], t$95$7, If[LessEqual[y1, 1.4e-144], N[((-y5) * N[(N[(t$95$2 * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 3.2e+59], N[((-i) * N[(N[(t$95$5 * c + N[(t$95$1 * y5), $MachinePrecision]), $MachinePrecision] - N[(t$95$6 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4.2e+236], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$3 * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], N[(N[((-x) * y1), $MachinePrecision] * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_3 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
t_4 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
t_5 := \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right)\\
t_6 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
t_7 := \left(\mathsf{fma}\left(t\_5, a, t\_1 \cdot y4\right) - t\_6 \cdot y0\right) \cdot b\\
\mathbf{if}\;y1 \leq -1.75 \cdot 10^{+192}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y1 \leq -3.2 \cdot 10^{+128}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, y1, t\_1 \cdot b\right) - t\_4 \cdot c\right) \cdot y4\\
\mathbf{elif}\;y1 \leq -4.5 \cdot 10^{-62}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_3, y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\
\mathbf{elif}\;y1 \leq -4.2 \cdot 10^{-187}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y1 \leq 1.4 \cdot 10^{-144}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_2, y0, t\_1 \cdot i\right) - t\_4 \cdot a\right)\\
\mathbf{elif}\;y1 \leq 3.2 \cdot 10^{+59}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(t\_5, c, t\_1 \cdot y5\right) - t\_6 \cdot y1\right)\\
\mathbf{elif}\;y1 \leq 4.2 \cdot 10^{+236}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, t\_3 \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-x\right) \cdot y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\\
\end{array}
\end{array}
if y1 < -1.74999999999999991e192 or -4.50000000000000018e-62 < y1 < -4.19999999999999985e-187Initial program 27.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.9%
if -1.74999999999999991e192 < y1 < -3.19999999999999986e128Initial program 30.8%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites90.0%
if -3.19999999999999986e128 < y1 < -4.50000000000000018e-62Initial program 34.7%
Taylor expanded in z around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.7%
if -4.19999999999999985e-187 < y1 < 1.39999999999999999e-144Initial program 33.5%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites57.1%
if 1.39999999999999999e-144 < y1 < 3.19999999999999982e59Initial program 40.6%
Taylor expanded in i around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites58.0%
if 3.19999999999999982e59 < y1 < 4.20000000000000011e236Initial program 26.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.3%
if 4.20000000000000011e236 < y1 Initial program 24.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.1%
Taylor expanded in y1 around -inf
Applied rewrites70.3%
Final simplification62.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y4 y1 (* (- y0) y5)))
(t_2 (fma y4 c (* (- a) y5)))
(t_3 (fma y0 c (* (- a) y1)))
(t_4
(*
(-
(fma t_3 y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)))
(if (<= y5 -4.8e+147)
(*
(fma (- y5) (fma -1.0 (* j y3) (* k y2)) (* c (fma (- y3) z (* x y2))))
y0)
(if (<= y5 -1.35e-50)
t_4
(if (<= y5 -1.9e-186)
(* (- y3) (- (fma t_1 j (* t_3 z)) (* t_2 y)))
(if (<= y5 3.3e-278)
t_4
(if (<= y5 1.25e-197)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= y5 1.4e+143)
(* (- (fma t_1 k (* t_3 x)) (* t_2 t)) y2)
(*
(- y5)
(-
(fma (fma y2 k (* (- j) y3)) y0 (* (fma j t (* (- k) y)) i))
(* (fma y2 t (* (- y) y3)) a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y4, y1, (-y0 * y5));
double t_2 = fma(y4, c, (-a * y5));
double t_3 = fma(y0, c, (-a * y1));
double t_4 = (fma(t_3, y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
double tmp;
if (y5 <= -4.8e+147) {
tmp = fma(-y5, fma(-1.0, (j * y3), (k * y2)), (c * fma(-y3, z, (x * y2)))) * y0;
} else if (y5 <= -1.35e-50) {
tmp = t_4;
} else if (y5 <= -1.9e-186) {
tmp = -y3 * (fma(t_1, j, (t_3 * z)) - (t_2 * y));
} else if (y5 <= 3.3e-278) {
tmp = t_4;
} else if (y5 <= 1.25e-197) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (y5 <= 1.4e+143) {
tmp = (fma(t_1, k, (t_3 * x)) - (t_2 * t)) * y2;
} else {
tmp = -y5 * (fma(fma(y2, k, (-j * y3)), y0, (fma(j, t, (-k * y)) * i)) - (fma(y2, t, (-y * y3)) * a));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y4, y1, Float64(Float64(-y0) * y5)) t_2 = fma(y4, c, Float64(Float64(-a) * y5)) t_3 = fma(y0, c, Float64(Float64(-a) * y1)) t_4 = Float64(Float64(fma(t_3, y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x) tmp = 0.0 if (y5 <= -4.8e+147) tmp = Float64(fma(Float64(-y5), fma(-1.0, Float64(j * y3), Float64(k * y2)), Float64(c * fma(Float64(-y3), z, Float64(x * y2)))) * y0); elseif (y5 <= -1.35e-50) tmp = t_4; elseif (y5 <= -1.9e-186) tmp = Float64(Float64(-y3) * Float64(fma(t_1, j, Float64(t_3 * z)) - Float64(t_2 * y))); elseif (y5 <= 3.3e-278) tmp = t_4; elseif (y5 <= 1.25e-197) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (y5 <= 1.4e+143) tmp = Float64(Float64(fma(t_1, k, Float64(t_3 * x)) - Float64(t_2 * t)) * y2); else tmp = Float64(Float64(-y5) * Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y0, Float64(fma(j, t, Float64(Float64(-k) * y)) * i)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[(t$95$3 * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]}, If[LessEqual[y5, -4.8e+147], N[(N[((-y5) * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision] + N[(c * N[((-y3) * z + N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[y5, -1.35e-50], t$95$4, If[LessEqual[y5, -1.9e-186], N[((-y3) * N[(N[(t$95$1 * j + N[(t$95$3 * z), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.3e-278], t$95$4, If[LessEqual[y5, 1.25e-197], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 1.4e+143], N[(N[(N[(t$95$1 * k + N[(t$95$3 * x), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], N[((-y5) * N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y0 + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right)\\
t_2 := \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right)\\
t_3 := \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right)\\
t_4 := \left(\mathsf{fma}\left(t\_3, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{if}\;y5 \leq -4.8 \cdot 10^{+147}:\\
\;\;\;\;\mathsf{fma}\left(-y5, \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right), c \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot y0\\
\mathbf{elif}\;y5 \leq -1.35 \cdot 10^{-50}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y5 \leq -1.9 \cdot 10^{-186}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(t\_1, j, t\_3 \cdot z\right) - t\_2 \cdot y\right)\\
\mathbf{elif}\;y5 \leq 3.3 \cdot 10^{-278}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y5 \leq 1.25 \cdot 10^{-197}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;y5 \leq 1.4 \cdot 10^{+143}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, k, t\_3 \cdot x\right) - t\_2 \cdot t\right) \cdot y2\\
\mathbf{else}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y0, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot i\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\end{array}
\end{array}
if y5 < -4.80000000000000004e147Initial program 21.4%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.2%
Taylor expanded in b around 0
Applied rewrites55.3%
if -4.80000000000000004e147 < y5 < -1.35e-50 or -1.89999999999999987e-186 < y5 < 3.2999999999999998e-278Initial program 39.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
if -1.35e-50 < y5 < -1.89999999999999987e-186Initial program 24.1%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites62.5%
if 3.2999999999999998e-278 < y5 < 1.2500000000000001e-197Initial program 27.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.0%
Taylor expanded in x around inf
Applied rewrites28.6%
Taylor expanded in y around 0
Applied rewrites17.5%
Taylor expanded in t around inf
Applied rewrites58.7%
if 1.2500000000000001e-197 < y5 < 1.39999999999999999e143Initial program 35.1%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.9%
if 1.39999999999999999e143 < y5 Initial program 25.6%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites66.8%
Final simplification59.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j x (* (- k) z))))
(if (<= x -170000.0)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x 1.95e-176)
(*
(-
(fma (fma y4 y1 (* (- y0) y5)) k (* (fma y0 c (* (- a) y1)) x))
(* (fma y4 c (* (- a) y5)) t))
y2)
(if (<= x 700.0)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 8.5e+58)
(*
(- i)
(-
(fma (fma y x (* (- t) z)) c (* (fma j t (* (- k) y)) y5))
(* t_1 y1)))
(if (<= x 2.5e+187)
(* (- (* c (* (- y3) z)) (* t_1 b)) y0)
(* (* x y) (fma a b (* (- c) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, x, (-k * z));
double tmp;
if (x <= -170000.0) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= 1.95e-176) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (fma(y0, c, (-a * y1)) * x)) - (fma(y4, c, (-a * y5)) * t)) * y2;
} else if (x <= 700.0) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 8.5e+58) {
tmp = -i * (fma(fma(y, x, (-t * z)), c, (fma(j, t, (-k * y)) * y5)) - (t_1 * y1));
} else if (x <= 2.5e+187) {
tmp = ((c * (-y3 * z)) - (t_1 * b)) * y0;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, x, Float64(Float64(-k) * z)) tmp = 0.0 if (x <= -170000.0) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= 1.95e-176) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(fma(y0, c, Float64(Float64(-a) * y1)) * x)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * t)) * y2); elseif (x <= 700.0) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 8.5e+58) tmp = Float64(Float64(-i) * Float64(fma(fma(y, x, Float64(Float64(-t) * z)), c, Float64(fma(j, t, Float64(Float64(-k) * y)) * y5)) - Float64(t_1 * y1))); elseif (x <= 2.5e+187) tmp = Float64(Float64(Float64(c * Float64(Float64(-y3) * z)) - Float64(t_1 * b)) * y0); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -170000.0], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 1.95e-176], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 700.0], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 8.5e+58], N[((-i) * N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * c + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e+187], N[(N[(N[(c * N[((-y3) * z), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
\mathbf{if}\;x \leq -170000:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq 1.95 \cdot 10^{-176}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2\\
\mathbf{elif}\;x \leq 700:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+58}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - t\_1 \cdot y1\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+187}:\\
\;\;\;\;\left(c \cdot \left(\left(-y3\right) \cdot z\right) - t\_1 \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.7e5Initial program 29.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in t around -inf
Applied rewrites28.5%
Taylor expanded in x around inf
Applied rewrites57.0%
if -1.7e5 < x < 1.9499999999999999e-176Initial program 36.4%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.2%
if 1.9499999999999999e-176 < x < 700Initial program 30.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.4%
Taylor expanded in x around inf
Applied rewrites17.8%
Taylor expanded in y around 0
Applied rewrites15.4%
Taylor expanded in t around inf
Applied rewrites53.7%
if 700 < x < 8.50000000000000015e58Initial program 35.3%
Taylor expanded in i around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites65.6%
if 8.50000000000000015e58 < x < 2.5000000000000001e187Initial program 21.2%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.2%
Taylor expanded in z around inf
Applied rewrites62.9%
if 2.5000000000000001e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification56.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (- c) i)))
(if (<= x -1.4e-53)
(*
(-
(fma (fma y0 c (* (- a) y1)) y2 (* (fma b a t_1) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= x -3e-273)
(*
(fma (- y5) (fma -1.0 (* j y3) (* k y2)) (* c (fma (- y3) z (* x y2))))
y0)
(if (<= x 7.2e-205)
(*
(-
(fma (fma y2 k (* (- j) y3)) y1 (* (fma j t (* (- k) y)) b))
(* (fma y2 t (* (- y) y3)) c))
y4)
(if (<= x 4e-12)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 2.5e+187)
(* (- (* c (* (- y3) z)) (* (fma j x (* (- k) z)) b)) y0)
(* (* x y) (fma a b t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -c * i;
double tmp;
if (x <= -1.4e-53) {
tmp = (fma(fma(y0, c, (-a * y1)), y2, (fma(b, a, t_1) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (x <= -3e-273) {
tmp = fma(-y5, fma(-1.0, (j * y3), (k * y2)), (c * fma(-y3, z, (x * y2)))) * y0;
} else if (x <= 7.2e-205) {
tmp = (fma(fma(y2, k, (-j * y3)), y1, (fma(j, t, (-k * y)) * b)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else if (x <= 4e-12) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 2.5e+187) {
tmp = ((c * (-y3 * z)) - (fma(j, x, (-k * z)) * b)) * y0;
} else {
tmp = (x * y) * fma(a, b, t_1);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(-c) * i) tmp = 0.0 if (x <= -1.4e-53) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-a) * y1)), y2, Float64(fma(b, a, t_1) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (x <= -3e-273) tmp = Float64(fma(Float64(-y5), fma(-1.0, Float64(j * y3), Float64(k * y2)), Float64(c * fma(Float64(-y3), z, Float64(x * y2)))) * y0); elseif (x <= 7.2e-205) tmp = Float64(Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y1, Float64(fma(j, t, Float64(Float64(-k) * y)) * b)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); elseif (x <= 4e-12) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 2.5e+187) tmp = Float64(Float64(Float64(c * Float64(Float64(-y3) * z)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * b)) * y0); else tmp = Float64(Float64(x * y) * fma(a, b, t_1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[((-c) * i), $MachinePrecision]}, If[LessEqual[x, -1.4e-53], N[(N[(N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + t$95$1), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, -3e-273], N[(N[((-y5) * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision] + N[(c * N[((-y3) * z + N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 7.2e-205], N[(N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[x, 4e-12], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2.5e+187], N[(N[(N[(c * N[((-y3) * z), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-c\right) \cdot i\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, t\_1\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;x \leq -3 \cdot 10^{-273}:\\
\;\;\;\;\mathsf{fma}\left(-y5, \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right), c \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-205}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y1, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot b\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-12}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+187}:\\
\;\;\;\;\left(c \cdot \left(\left(-y3\right) \cdot z\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, t\_1\right)\\
\end{array}
\end{array}
if x < -1.39999999999999993e-53Initial program 31.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.7%
if -1.39999999999999993e-53 < x < -2.99999999999999987e-273Initial program 35.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.2%
Taylor expanded in b around 0
Applied rewrites53.6%
if -2.99999999999999987e-273 < x < 7.1999999999999997e-205Initial program 36.8%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.1%
if 7.1999999999999997e-205 < x < 3.99999999999999992e-12Initial program 30.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.9%
Taylor expanded in x around inf
Applied rewrites15.0%
Taylor expanded in y around 0
Applied rewrites12.8%
Taylor expanded in t around inf
Applied rewrites48.2%
if 3.99999999999999992e-12 < x < 2.5000000000000001e187Initial program 28.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in z around inf
Applied rewrites51.7%
if 2.5000000000000001e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification54.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -170000.0)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x 1.95e-176)
(*
(-
(fma (fma y4 y1 (* (- y0) y5)) k (* (fma y0 c (* (- a) y1)) x))
(* (fma y4 c (* (- a) y5)) t))
y2)
(if (<= x 4e-12)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 2.5e+187)
(* (- (* c (* (- y3) z)) (* (fma j x (* (- k) z)) b)) y0)
(* (* x y) (fma a b (* (- c) i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -170000.0) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= 1.95e-176) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (fma(y0, c, (-a * y1)) * x)) - (fma(y4, c, (-a * y5)) * t)) * y2;
} else if (x <= 4e-12) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 2.5e+187) {
tmp = ((c * (-y3 * z)) - (fma(j, x, (-k * z)) * b)) * y0;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -170000.0) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= 1.95e-176) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(fma(y0, c, Float64(Float64(-a) * y1)) * x)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * t)) * y2); elseif (x <= 4e-12) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 2.5e+187) tmp = Float64(Float64(Float64(c * Float64(Float64(-y3) * z)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * b)) * y0); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -170000.0], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 1.95e-176], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 4e-12], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2.5e+187], N[(N[(N[(c * N[((-y3) * z), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -170000:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq 1.95 \cdot 10^{-176}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot t\right) \cdot y2\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-12}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+187}:\\
\;\;\;\;\left(c \cdot \left(\left(-y3\right) \cdot z\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.7e5Initial program 29.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in t around -inf
Applied rewrites28.5%
Taylor expanded in x around inf
Applied rewrites57.0%
if -1.7e5 < x < 1.9499999999999999e-176Initial program 36.4%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.2%
if 1.9499999999999999e-176 < x < 3.99999999999999992e-12Initial program 30.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.9%
Taylor expanded in x around inf
Applied rewrites13.2%
Taylor expanded in y around 0
Applied rewrites10.7%
Taylor expanded in t around inf
Applied rewrites52.6%
if 3.99999999999999992e-12 < x < 2.5000000000000001e187Initial program 28.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in z around inf
Applied rewrites51.7%
if 2.5000000000000001e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification54.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (- c) i)))
(if (<= x -1.4e-53)
(*
(-
(fma (fma y0 c (* (- a) y1)) y2 (* (fma b a t_1) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= x -1.5e-252)
(*
(fma (- y5) (fma -1.0 (* j y3) (* k y2)) (* c (fma (- y3) z (* x y2))))
y0)
(if (<= x 3e-106)
(* (* (- y5) (fma k y0 (* (- a) t))) y2)
(if (<= x 4e-12)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 2.5e+187)
(* (- (* c (* (- y3) z)) (* (fma j x (* (- k) z)) b)) y0)
(* (* x y) (fma a b t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -c * i;
double tmp;
if (x <= -1.4e-53) {
tmp = (fma(fma(y0, c, (-a * y1)), y2, (fma(b, a, t_1) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (x <= -1.5e-252) {
tmp = fma(-y5, fma(-1.0, (j * y3), (k * y2)), (c * fma(-y3, z, (x * y2)))) * y0;
} else if (x <= 3e-106) {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
} else if (x <= 4e-12) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 2.5e+187) {
tmp = ((c * (-y3 * z)) - (fma(j, x, (-k * z)) * b)) * y0;
} else {
tmp = (x * y) * fma(a, b, t_1);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(-c) * i) tmp = 0.0 if (x <= -1.4e-53) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-a) * y1)), y2, Float64(fma(b, a, t_1) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (x <= -1.5e-252) tmp = Float64(fma(Float64(-y5), fma(-1.0, Float64(j * y3), Float64(k * y2)), Float64(c * fma(Float64(-y3), z, Float64(x * y2)))) * y0); elseif (x <= 3e-106) tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * y2); elseif (x <= 4e-12) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 2.5e+187) tmp = Float64(Float64(Float64(c * Float64(Float64(-y3) * z)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * b)) * y0); else tmp = Float64(Float64(x * y) * fma(a, b, t_1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[((-c) * i), $MachinePrecision]}, If[LessEqual[x, -1.4e-53], N[(N[(N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + t$95$1), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[x, -1.5e-252], N[(N[((-y5) * N[(-1.0 * N[(j * y3), $MachinePrecision] + N[(k * y2), $MachinePrecision]), $MachinePrecision] + N[(c * N[((-y3) * z + N[(x * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 3e-106], N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 4e-12], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2.5e+187], N[(N[(N[(c * N[((-y3) * z), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + t$95$1), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-c\right) \cdot i\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{-53}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, t\_1\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;x \leq -1.5 \cdot 10^{-252}:\\
\;\;\;\;\mathsf{fma}\left(-y5, \mathsf{fma}\left(-1, j \cdot y3, k \cdot y2\right), c \cdot \mathsf{fma}\left(-y3, z, x \cdot y2\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-106}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-12}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+187}:\\
\;\;\;\;\left(c \cdot \left(\left(-y3\right) \cdot z\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, t\_1\right)\\
\end{array}
\end{array}
if x < -1.39999999999999993e-53Initial program 31.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.7%
if -1.39999999999999993e-53 < x < -1.49999999999999997e-252Initial program 35.5%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.1%
Taylor expanded in b around 0
Applied rewrites58.3%
if -1.49999999999999997e-252 < x < 3.00000000000000019e-106Initial program 32.9%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.2%
Taylor expanded in y5 around -inf
Applied rewrites41.6%
if 3.00000000000000019e-106 < x < 3.99999999999999992e-12Initial program 35.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.1%
Taylor expanded in x around inf
Applied rewrites12.5%
Taylor expanded in y around 0
Applied rewrites13.6%
Taylor expanded in t around inf
Applied rewrites65.4%
if 3.99999999999999992e-12 < x < 2.5000000000000001e187Initial program 28.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in z around inf
Applied rewrites51.7%
if 2.5000000000000001e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification53.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -7200.0)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x 3e-106)
(* (* (- y5) (fma k y0 (* (- a) t))) y2)
(if (<= x 4e-12)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 2.5e+187)
(* (- (* c (* (- y3) z)) (* (fma j x (* (- k) z)) b)) y0)
(* (* x y) (fma a b (* (- c) i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -7200.0) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= 3e-106) {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
} else if (x <= 4e-12) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 2.5e+187) {
tmp = ((c * (-y3 * z)) - (fma(j, x, (-k * z)) * b)) * y0;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -7200.0) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= 3e-106) tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * y2); elseif (x <= 4e-12) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 2.5e+187) tmp = Float64(Float64(Float64(c * Float64(Float64(-y3) * z)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * b)) * y0); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -7200.0], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 3e-106], N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 4e-12], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2.5e+187], N[(N[(N[(c * N[((-y3) * z), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7200:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-106}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-12}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+187}:\\
\;\;\;\;\left(c \cdot \left(\left(-y3\right) \cdot z\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -7200Initial program 29.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in t around -inf
Applied rewrites28.5%
Taylor expanded in x around inf
Applied rewrites57.0%
if -7200 < x < 3.00000000000000019e-106Initial program 34.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in y5 around -inf
Applied rewrites40.5%
if 3.00000000000000019e-106 < x < 3.99999999999999992e-12Initial program 35.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites47.1%
Taylor expanded in x around inf
Applied rewrites12.5%
Taylor expanded in y around 0
Applied rewrites13.6%
Taylor expanded in t around inf
Applied rewrites65.4%
if 3.99999999999999992e-12 < x < 2.5000000000000001e187Initial program 28.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.1%
Taylor expanded in z around inf
Applied rewrites51.7%
if 2.5000000000000001e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification51.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -1.8e-12)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x -6.5e-191)
(* (* (- k) y) (fma b y4 (* (- i) y5)))
(if (<= x 1.2e-182)
(* (- y3) (* z (fma (- a) y1 (* c y0))))
(if (<= x 820.0)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 2.5e+121)
(* (* (- z) (fma c y3 (* (- b) k))) y0)
(if (<= x 1.9e+187)
(* (- j) (* x (fma b y0 (* (- i) y1))))
(* (* x y) (fma a b (* (- c) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -1.8e-12) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= -6.5e-191) {
tmp = (-k * y) * fma(b, y4, (-i * y5));
} else if (x <= 1.2e-182) {
tmp = -y3 * (z * fma(-a, y1, (c * y0)));
} else if (x <= 820.0) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 2.5e+121) {
tmp = (-z * fma(c, y3, (-b * k))) * y0;
} else if (x <= 1.9e+187) {
tmp = -j * (x * fma(b, y0, (-i * y1)));
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -1.8e-12) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= -6.5e-191) tmp = Float64(Float64(Float64(-k) * y) * fma(b, y4, Float64(Float64(-i) * y5))); elseif (x <= 1.2e-182) tmp = Float64(Float64(-y3) * Float64(z * fma(Float64(-a), y1, Float64(c * y0)))); elseif (x <= 820.0) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 2.5e+121) tmp = Float64(Float64(Float64(-z) * fma(c, y3, Float64(Float64(-b) * k))) * y0); elseif (x <= 1.9e+187) tmp = Float64(Float64(-j) * Float64(x * fma(b, y0, Float64(Float64(-i) * y1)))); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -1.8e-12], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, -6.5e-191], N[(N[((-k) * y), $MachinePrecision] * N[(b * y4 + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e-182], N[((-y3) * N[(z * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 820.0], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2.5e+121], N[(N[((-z) * N[(c * y3 + N[((-b) * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 1.9e+187], N[((-j) * N[(x * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{-12}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-191}:\\
\;\;\;\;\left(\left(-k\right) \cdot y\right) \cdot \mathsf{fma}\left(b, y4, \left(-i\right) \cdot y5\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-182}:\\
\;\;\;\;\left(-y3\right) \cdot \left(z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq 820:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+121}:\\
\;\;\;\;\left(\left(-z\right) \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+187}:\\
\;\;\;\;\left(-j\right) \cdot \left(x \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.8e-12Initial program 30.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
Taylor expanded in t around -inf
Applied rewrites29.6%
Taylor expanded in x around inf
Applied rewrites56.2%
if -1.8e-12 < x < -6.4999999999999995e-191Initial program 31.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.6%
Taylor expanded in k around inf
Applied rewrites41.4%
if -6.4999999999999995e-191 < x < 1.1999999999999999e-182Initial program 39.0%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in y5 around -inf
Applied rewrites29.9%
Taylor expanded in z around inf
Applied rewrites40.5%
if 1.1999999999999999e-182 < x < 820Initial program 29.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.4%
Taylor expanded in x around inf
Applied rewrites17.4%
Taylor expanded in y around 0
Applied rewrites15.1%
Taylor expanded in t around inf
Applied rewrites52.3%
if 820 < x < 2.50000000000000004e121Initial program 29.2%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.3%
Taylor expanded in z around -inf
Applied rewrites52.7%
if 2.50000000000000004e121 < x < 1.9e187Initial program 23.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in j around inf
Applied rewrites70.2%
if 1.9e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification52.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -1.8e-12)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x -6.5e-191)
(* (* (- k) y) (fma b y4 (* (- i) y5)))
(if (<= x 1.2e-182)
(* (- y3) (* z (fma (- a) y1 (* c y0))))
(if (<= x 850.0)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 1.6e+75)
(* (* (- b) k) (fma y y4 (* (- y0) z)))
(if (<= x 1.9e+187)
(* (- j) (* x (fma b y0 (* (- i) y1))))
(* (* x y) (fma a b (* (- c) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -1.8e-12) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= -6.5e-191) {
tmp = (-k * y) * fma(b, y4, (-i * y5));
} else if (x <= 1.2e-182) {
tmp = -y3 * (z * fma(-a, y1, (c * y0)));
} else if (x <= 850.0) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 1.6e+75) {
tmp = (-b * k) * fma(y, y4, (-y0 * z));
} else if (x <= 1.9e+187) {
tmp = -j * (x * fma(b, y0, (-i * y1)));
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -1.8e-12) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= -6.5e-191) tmp = Float64(Float64(Float64(-k) * y) * fma(b, y4, Float64(Float64(-i) * y5))); elseif (x <= 1.2e-182) tmp = Float64(Float64(-y3) * Float64(z * fma(Float64(-a), y1, Float64(c * y0)))); elseif (x <= 850.0) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 1.6e+75) tmp = Float64(Float64(Float64(-b) * k) * fma(y, y4, Float64(Float64(-y0) * z))); elseif (x <= 1.9e+187) tmp = Float64(Float64(-j) * Float64(x * fma(b, y0, Float64(Float64(-i) * y1)))); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -1.8e-12], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, -6.5e-191], N[(N[((-k) * y), $MachinePrecision] * N[(b * y4 + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e-182], N[((-y3) * N[(z * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 850.0], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 1.6e+75], N[(N[((-b) * k), $MachinePrecision] * N[(y * y4 + N[((-y0) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.9e+187], N[((-j) * N[(x * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.8 \cdot 10^{-12}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-191}:\\
\;\;\;\;\left(\left(-k\right) \cdot y\right) \cdot \mathsf{fma}\left(b, y4, \left(-i\right) \cdot y5\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-182}:\\
\;\;\;\;\left(-y3\right) \cdot \left(z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq 850:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 1.6 \cdot 10^{+75}:\\
\;\;\;\;\left(\left(-b\right) \cdot k\right) \cdot \mathsf{fma}\left(y, y4, \left(-y0\right) \cdot z\right)\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+187}:\\
\;\;\;\;\left(-j\right) \cdot \left(x \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.8e-12Initial program 30.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
Taylor expanded in t around -inf
Applied rewrites29.6%
Taylor expanded in x around inf
Applied rewrites56.2%
if -1.8e-12 < x < -6.4999999999999995e-191Initial program 31.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.6%
Taylor expanded in k around inf
Applied rewrites41.4%
if -6.4999999999999995e-191 < x < 1.1999999999999999e-182Initial program 39.0%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in y5 around -inf
Applied rewrites29.9%
Taylor expanded in z around inf
Applied rewrites40.5%
if 1.1999999999999999e-182 < x < 850Initial program 29.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.4%
Taylor expanded in x around inf
Applied rewrites17.4%
Taylor expanded in y around 0
Applied rewrites15.1%
Taylor expanded in t around inf
Applied rewrites52.3%
if 850 < x < 1.59999999999999992e75Initial program 29.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.9%
Taylor expanded in k around -inf
Applied rewrites42.7%
if 1.59999999999999992e75 < x < 1.9e187Initial program 25.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.3%
Taylor expanded in j around inf
Applied rewrites65.8%
if 1.9e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification51.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma b y (* (- y1) y2))) a)))
(if (<= x -1.8e-12)
t_1
(if (<= x -6.5e-191)
(* (* (- k) y) (fma b y4 (* (- i) y5)))
(if (<= x 1.2e-182)
(* (- y3) (* z (fma (- a) y1 (* c y0))))
(if (<= x 9.5e+30)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 1e+157)
(* (* y4 (fma k y1 (* (- c) t))) y2)
(if (<= x 8.6e+209) t_1 (* (* x y) (fma a b (* (- c) i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(b, y, (-y1 * y2))) * a;
double tmp;
if (x <= -1.8e-12) {
tmp = t_1;
} else if (x <= -6.5e-191) {
tmp = (-k * y) * fma(b, y4, (-i * y5));
} else if (x <= 1.2e-182) {
tmp = -y3 * (z * fma(-a, y1, (c * y0)));
} else if (x <= 9.5e+30) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 1e+157) {
tmp = (y4 * fma(k, y1, (-c * t))) * y2;
} else if (x <= 8.6e+209) {
tmp = t_1;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a) tmp = 0.0 if (x <= -1.8e-12) tmp = t_1; elseif (x <= -6.5e-191) tmp = Float64(Float64(Float64(-k) * y) * fma(b, y4, Float64(Float64(-i) * y5))); elseif (x <= 1.2e-182) tmp = Float64(Float64(-y3) * Float64(z * fma(Float64(-a), y1, Float64(c * y0)))); elseif (x <= 9.5e+30) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 1e+157) tmp = Float64(Float64(y4 * fma(k, y1, Float64(Float64(-c) * t))) * y2); elseif (x <= 8.6e+209) tmp = t_1; else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.8e-12], t$95$1, If[LessEqual[x, -6.5e-191], N[(N[((-k) * y), $MachinePrecision] * N[(b * y4 + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.2e-182], N[((-y3) * N[(z * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e+30], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 1e+157], N[(N[(y4 * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 8.6e+209], t$95$1, N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -6.5 \cdot 10^{-191}:\\
\;\;\;\;\left(\left(-k\right) \cdot y\right) \cdot \mathsf{fma}\left(b, y4, \left(-i\right) \cdot y5\right)\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-182}:\\
\;\;\;\;\left(-y3\right) \cdot \left(z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+30}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.8e-12 or 9.99999999999999983e156 < x < 8.59999999999999975e209Initial program 29.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.9%
Taylor expanded in t around -inf
Applied rewrites29.8%
Taylor expanded in x around inf
Applied rewrites59.5%
if -1.8e-12 < x < -6.4999999999999995e-191Initial program 31.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.6%
Taylor expanded in k around inf
Applied rewrites41.4%
if -6.4999999999999995e-191 < x < 1.1999999999999999e-182Initial program 39.0%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in y5 around -inf
Applied rewrites29.9%
Taylor expanded in z around inf
Applied rewrites40.5%
if 1.1999999999999999e-182 < x < 9.5000000000000003e30Initial program 26.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.5%
Taylor expanded in x around inf
Applied rewrites14.8%
Taylor expanded in y around 0
Applied rewrites12.8%
Taylor expanded in t around inf
Applied rewrites45.7%
if 9.5000000000000003e30 < x < 9.99999999999999983e156Initial program 31.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in y4 around inf
Applied rewrites49.1%
if 8.59999999999999975e209 < x Initial program 31.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites76.2%
Final simplification51.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma b y (* (- y1) y2))) a)))
(if (<= x -1.8e-12)
t_1
(if (<= x -4.9e-188)
(* (* y5 (fma i k (* (- a) y3))) y)
(if (<= x 8.4e-193)
(* (- y3) (* z (fma (- a) y1 (* c y0))))
(if (<= x 9.5e+30)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 1e+157)
(* (* y4 (fma k y1 (* (- c) t))) y2)
(if (<= x 8.6e+209) t_1 (* (* x y) (fma a b (* (- c) i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(b, y, (-y1 * y2))) * a;
double tmp;
if (x <= -1.8e-12) {
tmp = t_1;
} else if (x <= -4.9e-188) {
tmp = (y5 * fma(i, k, (-a * y3))) * y;
} else if (x <= 8.4e-193) {
tmp = -y3 * (z * fma(-a, y1, (c * y0)));
} else if (x <= 9.5e+30) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 1e+157) {
tmp = (y4 * fma(k, y1, (-c * t))) * y2;
} else if (x <= 8.6e+209) {
tmp = t_1;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a) tmp = 0.0 if (x <= -1.8e-12) tmp = t_1; elseif (x <= -4.9e-188) tmp = Float64(Float64(y5 * fma(i, k, Float64(Float64(-a) * y3))) * y); elseif (x <= 8.4e-193) tmp = Float64(Float64(-y3) * Float64(z * fma(Float64(-a), y1, Float64(c * y0)))); elseif (x <= 9.5e+30) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 1e+157) tmp = Float64(Float64(y4 * fma(k, y1, Float64(Float64(-c) * t))) * y2); elseif (x <= 8.6e+209) tmp = t_1; else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.8e-12], t$95$1, If[LessEqual[x, -4.9e-188], N[(N[(y5 * N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, 8.4e-193], N[((-y3) * N[(z * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e+30], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 1e+157], N[(N[(y4 * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 8.6e+209], t$95$1, N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -4.9 \cdot 10^{-188}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;x \leq 8.4 \cdot 10^{-193}:\\
\;\;\;\;\left(-y3\right) \cdot \left(z \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+30}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.8e-12 or 9.99999999999999983e156 < x < 8.59999999999999975e209Initial program 29.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.9%
Taylor expanded in t around -inf
Applied rewrites29.8%
Taylor expanded in x around inf
Applied rewrites59.5%
if -1.8e-12 < x < -4.90000000000000004e-188Initial program 31.8%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.6%
Taylor expanded in y5 around inf
Applied rewrites40.9%
if -4.90000000000000004e-188 < x < 8.3999999999999997e-193Initial program 39.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in y5 around -inf
Applied rewrites28.4%
Taylor expanded in z around inf
Applied rewrites41.4%
if 8.3999999999999997e-193 < x < 9.5000000000000003e30Initial program 26.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.7%
Taylor expanded in x around inf
Applied rewrites14.6%
Taylor expanded in y around 0
Applied rewrites12.6%
Taylor expanded in t around inf
Applied rewrites44.7%
if 9.5000000000000003e30 < x < 9.99999999999999983e156Initial program 31.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in y4 around inf
Applied rewrites49.1%
if 8.59999999999999975e209 < x Initial program 31.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites76.2%
Final simplification51.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma b y (* (- y1) y2))) a)))
(if (<= x -8.8e-22)
t_1
(if (<= x -8e-103)
(* (* i (fma k y5 (* (- c) x))) y)
(if (<= x 1.15e-178)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= x 2.15e+27)
(* (* y4 b) (fma (- y) k (* t j)))
(if (<= x 1e+157)
(* (* y2 y4) (fma k y1 (* (- c) t)))
(if (<= x 8.6e+209) t_1 (* (* x y) (fma a b (* (- c) i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(b, y, (-y1 * y2))) * a;
double tmp;
if (x <= -8.8e-22) {
tmp = t_1;
} else if (x <= -8e-103) {
tmp = (i * fma(k, y5, (-c * x))) * y;
} else if (x <= 1.15e-178) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (x <= 2.15e+27) {
tmp = (y4 * b) * fma(-y, k, (t * j));
} else if (x <= 1e+157) {
tmp = (y2 * y4) * fma(k, y1, (-c * t));
} else if (x <= 8.6e+209) {
tmp = t_1;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a) tmp = 0.0 if (x <= -8.8e-22) tmp = t_1; elseif (x <= -8e-103) tmp = Float64(Float64(i * fma(k, y5, Float64(Float64(-c) * x))) * y); elseif (x <= 1.15e-178) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (x <= 2.15e+27) tmp = Float64(Float64(y4 * b) * fma(Float64(-y), k, Float64(t * j))); elseif (x <= 1e+157) tmp = Float64(Float64(y2 * y4) * fma(k, y1, Float64(Float64(-c) * t))); elseif (x <= 8.6e+209) tmp = t_1; else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -8.8e-22], t$95$1, If[LessEqual[x, -8e-103], N[(N[(i * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, 1.15e-178], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 2.15e+27], N[(N[(y4 * b), $MachinePrecision] * N[((-y) * k + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+157], N[(N[(y2 * y4), $MachinePrecision] * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.6e+209], t$95$1, N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{if}\;x \leq -8.8 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -8 \cdot 10^{-103}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\right) \cdot y\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-178}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{+27}:\\
\;\;\;\;\left(y4 \cdot b\right) \cdot \mathsf{fma}\left(-y, k, t \cdot j\right)\\
\mathbf{elif}\;x \leq 10^{+157}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -8.8000000000000002e-22 or 9.99999999999999983e156 < x < 8.59999999999999975e209Initial program 29.4%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.3%
Taylor expanded in t around -inf
Applied rewrites27.5%
Taylor expanded in x around inf
Applied rewrites56.4%
if -8.8000000000000002e-22 < x < -7.99999999999999966e-103Initial program 26.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.1%
Taylor expanded in i around inf
Applied rewrites48.3%
if -7.99999999999999966e-103 < x < 1.14999999999999997e-178Initial program 39.2%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.8%
Taylor expanded in y3 around inf
Applied rewrites36.9%
if 1.14999999999999997e-178 < x < 2.15000000000000004e27Initial program 27.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.2%
Taylor expanded in y4 around inf
Applied rewrites30.7%
Applied rewrites30.9%
if 2.15000000000000004e27 < x < 9.99999999999999983e156Initial program 30.5%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in y4 around inf
Applied rewrites47.4%
if 8.59999999999999975e209 < x Initial program 31.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites76.2%
Final simplification47.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma b y (* (- y1) y2))) a)))
(if (<= x -1.8e-12)
t_1
(if (<= x 4.8e-292)
(* (* y5 (fma i k (* (- a) y3))) y)
(if (<= x 4.5e-105)
(* (* y y3) (fma (- a) y5 (* c y4)))
(if (<= x 4.2e+31)
(* (* b j) (fma t y4 (* (- x) y0)))
(if (<= x 1e+157)
(* (* y2 y4) (fma k y1 (* (- c) t)))
(if (<= x 8.6e+209) t_1 (* (* x y) (fma a b (* (- c) i)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(b, y, (-y1 * y2))) * a;
double tmp;
if (x <= -1.8e-12) {
tmp = t_1;
} else if (x <= 4.8e-292) {
tmp = (y5 * fma(i, k, (-a * y3))) * y;
} else if (x <= 4.5e-105) {
tmp = (y * y3) * fma(-a, y5, (c * y4));
} else if (x <= 4.2e+31) {
tmp = (b * j) * fma(t, y4, (-x * y0));
} else if (x <= 1e+157) {
tmp = (y2 * y4) * fma(k, y1, (-c * t));
} else if (x <= 8.6e+209) {
tmp = t_1;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a) tmp = 0.0 if (x <= -1.8e-12) tmp = t_1; elseif (x <= 4.8e-292) tmp = Float64(Float64(y5 * fma(i, k, Float64(Float64(-a) * y3))) * y); elseif (x <= 4.5e-105) tmp = Float64(Float64(y * y3) * fma(Float64(-a), y5, Float64(c * y4))); elseif (x <= 4.2e+31) tmp = Float64(Float64(b * j) * fma(t, y4, Float64(Float64(-x) * y0))); elseif (x <= 1e+157) tmp = Float64(Float64(y2 * y4) * fma(k, y1, Float64(Float64(-c) * t))); elseif (x <= 8.6e+209) tmp = t_1; else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.8e-12], t$95$1, If[LessEqual[x, 4.8e-292], N[(N[(y5 * N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, 4.5e-105], N[(N[(y * y3), $MachinePrecision] * N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e+31], N[(N[(b * j), $MachinePrecision] * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+157], N[(N[(y2 * y4), $MachinePrecision] * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.6e+209], t$95$1, N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{-292}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-105}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(-a, y5, c \cdot y4\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+31}:\\
\;\;\;\;\left(b \cdot j\right) \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\\
\mathbf{elif}\;x \leq 10^{+157}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.8e-12 or 9.99999999999999983e156 < x < 8.59999999999999975e209Initial program 29.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.9%
Taylor expanded in t around -inf
Applied rewrites29.8%
Taylor expanded in x around inf
Applied rewrites59.5%
if -1.8e-12 < x < 4.8000000000000002e-292Initial program 31.5%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites32.3%
Taylor expanded in y5 around inf
Applied rewrites32.5%
if 4.8000000000000002e-292 < x < 4.4999999999999997e-105Initial program 37.6%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.9%
Taylor expanded in y5 around -inf
Applied rewrites33.4%
Taylor expanded in y around inf
Applied rewrites41.0%
if 4.4999999999999997e-105 < x < 4.19999999999999958e31Initial program 28.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.4%
Taylor expanded in j around inf
Applied rewrites33.5%
if 4.19999999999999958e31 < x < 9.99999999999999983e156Initial program 31.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in y4 around inf
Applied rewrites49.0%
if 8.59999999999999975e209 < x Initial program 31.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites76.2%
Final simplification47.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -2.55e+47)
(* (* b x) (fma a y (* (- j) y0)))
(if (<= x -2.7e-119)
(* (* x y2) (fma (- a) y1 (* c y0)))
(if (<= x 4.9e-160)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= x 2.15e+27)
(* (* y4 b) (fma (- y) k (* t j)))
(if (<= x 3.2e+121)
(* (* y2 y4) (fma k y1 (* (- c) t)))
(if (<= x 3.4e+192)
(* (* j (* (- x) y0)) b)
(* (* x y) (fma a b (* (- c) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.55e+47) {
tmp = (b * x) * fma(a, y, (-j * y0));
} else if (x <= -2.7e-119) {
tmp = (x * y2) * fma(-a, y1, (c * y0));
} else if (x <= 4.9e-160) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (x <= 2.15e+27) {
tmp = (y4 * b) * fma(-y, k, (t * j));
} else if (x <= 3.2e+121) {
tmp = (y2 * y4) * fma(k, y1, (-c * t));
} else if (x <= 3.4e+192) {
tmp = (j * (-x * y0)) * b;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -2.55e+47) tmp = Float64(Float64(b * x) * fma(a, y, Float64(Float64(-j) * y0))); elseif (x <= -2.7e-119) tmp = Float64(Float64(x * y2) * fma(Float64(-a), y1, Float64(c * y0))); elseif (x <= 4.9e-160) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (x <= 2.15e+27) tmp = Float64(Float64(y4 * b) * fma(Float64(-y), k, Float64(t * j))); elseif (x <= 3.2e+121) tmp = Float64(Float64(y2 * y4) * fma(k, y1, Float64(Float64(-c) * t))); elseif (x <= 3.4e+192) tmp = Float64(Float64(j * Float64(Float64(-x) * y0)) * b); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -2.55e+47], N[(N[(b * x), $MachinePrecision] * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -2.7e-119], N[(N[(x * y2), $MachinePrecision] * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.9e-160], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.15e+27], N[(N[(y4 * b), $MachinePrecision] * N[((-y) * k + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.2e+121], N[(N[(y2 * y4), $MachinePrecision] * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e+192], N[(N[(j * N[((-x) * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.55 \cdot 10^{+47}:\\
\;\;\;\;\left(b \cdot x\right) \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\\
\mathbf{elif}\;x \leq -2.7 \cdot 10^{-119}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\\
\mathbf{elif}\;x \leq 4.9 \cdot 10^{-160}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{+27}:\\
\;\;\;\;\left(y4 \cdot b\right) \cdot \mathsf{fma}\left(-y, k, t \cdot j\right)\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+121}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+192}:\\
\;\;\;\;\left(j \cdot \left(\left(-x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -2.5500000000000001e47Initial program 26.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.5%
Taylor expanded in x around inf
Applied rewrites48.2%
if -2.5500000000000001e47 < x < -2.70000000000000027e-119Initial program 38.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.7%
Taylor expanded in y2 around inf
Applied rewrites47.4%
if -2.70000000000000027e-119 < x < 4.8999999999999999e-160Initial program 35.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites36.2%
Taylor expanded in y5 around -inf
Applied rewrites29.8%
if 4.8999999999999999e-160 < x < 2.15000000000000004e27Initial program 29.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in y4 around inf
Applied rewrites32.8%
Applied rewrites33.0%
if 2.15000000000000004e27 < x < 3.1999999999999999e121Initial program 33.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.5%
Taylor expanded in y4 around inf
Applied rewrites50.5%
if 3.1999999999999999e121 < x < 3.39999999999999996e192Initial program 20.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in x around inf
Applied rewrites47.2%
Taylor expanded in y around 0
Applied rewrites61.1%
if 3.39999999999999996e192 < x Initial program 30.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.9%
Taylor expanded in y around inf
Applied rewrites73.4%
Final simplification44.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -7200.0)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x 3e-106)
(* (* (- y5) (fma k y0 (* (- a) t))) y2)
(if (<= x 820.0)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 2.5e+121)
(* (* (- z) (fma c y3 (* (- b) k))) y0)
(if (<= x 1.9e+187)
(* (- j) (* x (fma b y0 (* (- i) y1))))
(* (* x y) (fma a b (* (- c) i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -7200.0) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= 3e-106) {
tmp = (-y5 * fma(k, y0, (-a * t))) * y2;
} else if (x <= 820.0) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 2.5e+121) {
tmp = (-z * fma(c, y3, (-b * k))) * y0;
} else if (x <= 1.9e+187) {
tmp = -j * (x * fma(b, y0, (-i * y1)));
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -7200.0) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= 3e-106) tmp = Float64(Float64(Float64(-y5) * fma(k, y0, Float64(Float64(-a) * t))) * y2); elseif (x <= 820.0) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 2.5e+121) tmp = Float64(Float64(Float64(-z) * fma(c, y3, Float64(Float64(-b) * k))) * y0); elseif (x <= 1.9e+187) tmp = Float64(Float64(-j) * Float64(x * fma(b, y0, Float64(Float64(-i) * y1)))); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -7200.0], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 3e-106], N[(N[((-y5) * N[(k * y0 + N[((-a) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 820.0], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 2.5e+121], N[(N[((-z) * N[(c * y3 + N[((-b) * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 1.9e+187], N[((-j) * N[(x * N[(b * y0 + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7200:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-106}:\\
\;\;\;\;\left(\left(-y5\right) \cdot \mathsf{fma}\left(k, y0, \left(-a\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;x \leq 820:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{+121}:\\
\;\;\;\;\left(\left(-z\right) \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{+187}:\\
\;\;\;\;\left(-j\right) \cdot \left(x \cdot \mathsf{fma}\left(b, y0, \left(-i\right) \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -7200Initial program 29.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.8%
Taylor expanded in t around -inf
Applied rewrites28.5%
Taylor expanded in x around inf
Applied rewrites57.0%
if -7200 < x < 3.00000000000000019e-106Initial program 34.6%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.8%
Taylor expanded in y5 around -inf
Applied rewrites40.5%
if 3.00000000000000019e-106 < x < 820Initial program 35.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.1%
Taylor expanded in x around inf
Applied rewrites21.0%
Taylor expanded in y around 0
Applied rewrites21.6%
Taylor expanded in t around inf
Applied rewrites65.6%
if 820 < x < 2.50000000000000004e121Initial program 29.2%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.3%
Taylor expanded in z around -inf
Applied rewrites52.7%
if 2.50000000000000004e121 < x < 1.9e187Initial program 23.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.2%
Taylor expanded in j around inf
Applied rewrites70.2%
if 1.9e187 < x Initial program 28.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in y around inf
Applied rewrites71.7%
Final simplification52.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma b y (* (- y1) y2))) a)))
(if (<= x -1.8e-12)
t_1
(if (<= x -5.2e-183)
(* (* y5 (fma i k (* (- a) y3))) y)
(if (<= x 9.5e+30)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 1e+157)
(* (* y4 (fma k y1 (* (- c) t))) y2)
(if (<= x 8.6e+209) t_1 (* (* x y) (fma a b (* (- c) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(b, y, (-y1 * y2))) * a;
double tmp;
if (x <= -1.8e-12) {
tmp = t_1;
} else if (x <= -5.2e-183) {
tmp = (y5 * fma(i, k, (-a * y3))) * y;
} else if (x <= 9.5e+30) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 1e+157) {
tmp = (y4 * fma(k, y1, (-c * t))) * y2;
} else if (x <= 8.6e+209) {
tmp = t_1;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a) tmp = 0.0 if (x <= -1.8e-12) tmp = t_1; elseif (x <= -5.2e-183) tmp = Float64(Float64(y5 * fma(i, k, Float64(Float64(-a) * y3))) * y); elseif (x <= 9.5e+30) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 1e+157) tmp = Float64(Float64(y4 * fma(k, y1, Float64(Float64(-c) * t))) * y2); elseif (x <= 8.6e+209) tmp = t_1; else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.8e-12], t$95$1, If[LessEqual[x, -5.2e-183], N[(N[(y5 * N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, 9.5e+30], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 1e+157], N[(N[(y4 * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[x, 8.6e+209], t$95$1, N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-183}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+30}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y2\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.8e-12 or 9.99999999999999983e156 < x < 8.59999999999999975e209Initial program 29.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.9%
Taylor expanded in t around -inf
Applied rewrites29.8%
Taylor expanded in x around inf
Applied rewrites59.5%
if -1.8e-12 < x < -5.1999999999999998e-183Initial program 33.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.2%
Taylor expanded in y5 around inf
Applied rewrites43.3%
if -5.1999999999999998e-183 < x < 9.5000000000000003e30Initial program 32.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.5%
Taylor expanded in x around inf
Applied rewrites15.1%
Taylor expanded in y around 0
Applied rewrites9.2%
Taylor expanded in t around inf
Applied rewrites37.5%
if 9.5000000000000003e30 < x < 9.99999999999999983e156Initial program 31.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in y4 around inf
Applied rewrites49.1%
if 8.59999999999999975e209 < x Initial program 31.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites76.2%
Final simplification49.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma b y (* (- y1) y2))) a)))
(if (<= x -1.8e-12)
t_1
(if (<= x -5.2e-183)
(* (* y5 (fma i k (* (- a) y3))) y)
(if (<= x 9.5e+30)
(* (* t (fma j y4 (* (- a) z))) b)
(if (<= x 1e+157)
(* (* y2 y4) (fma k y1 (* (- c) t)))
(if (<= x 8.6e+209) t_1 (* (* x y) (fma a b (* (- c) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(b, y, (-y1 * y2))) * a;
double tmp;
if (x <= -1.8e-12) {
tmp = t_1;
} else if (x <= -5.2e-183) {
tmp = (y5 * fma(i, k, (-a * y3))) * y;
} else if (x <= 9.5e+30) {
tmp = (t * fma(j, y4, (-a * z))) * b;
} else if (x <= 1e+157) {
tmp = (y2 * y4) * fma(k, y1, (-c * t));
} else if (x <= 8.6e+209) {
tmp = t_1;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a) tmp = 0.0 if (x <= -1.8e-12) tmp = t_1; elseif (x <= -5.2e-183) tmp = Float64(Float64(y5 * fma(i, k, Float64(Float64(-a) * y3))) * y); elseif (x <= 9.5e+30) tmp = Float64(Float64(t * fma(j, y4, Float64(Float64(-a) * z))) * b); elseif (x <= 1e+157) tmp = Float64(Float64(y2 * y4) * fma(k, y1, Float64(Float64(-c) * t))); elseif (x <= 8.6e+209) tmp = t_1; else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.8e-12], t$95$1, If[LessEqual[x, -5.2e-183], N[(N[(y5 * N[(i * k + N[((-a) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], If[LessEqual[x, 9.5e+30], N[(N[(t * N[(j * y4 + N[((-a) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 1e+157], N[(N[(y2 * y4), $MachinePrecision] * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.6e+209], t$95$1, N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{-12}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -5.2 \cdot 10^{-183}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(i, k, \left(-a\right) \cdot y3\right)\right) \cdot y\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{+30}:\\
\;\;\;\;\left(t \cdot \mathsf{fma}\left(j, y4, \left(-a\right) \cdot z\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 10^{+157}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.8e-12 or 9.99999999999999983e156 < x < 8.59999999999999975e209Initial program 29.0%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.9%
Taylor expanded in t around -inf
Applied rewrites29.8%
Taylor expanded in x around inf
Applied rewrites59.5%
if -1.8e-12 < x < -5.1999999999999998e-183Initial program 33.7%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.2%
Taylor expanded in y5 around inf
Applied rewrites43.3%
if -5.1999999999999998e-183 < x < 9.5000000000000003e30Initial program 32.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.5%
Taylor expanded in x around inf
Applied rewrites15.1%
Taylor expanded in y around 0
Applied rewrites9.2%
Taylor expanded in t around inf
Applied rewrites37.5%
if 9.5000000000000003e30 < x < 9.99999999999999983e156Initial program 31.3%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in y4 around inf
Applied rewrites49.0%
if 8.59999999999999975e209 < x Initial program 31.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites76.2%
Final simplification49.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma b y (* (- y1) y2))) a)))
(if (<= x -1.5e-53)
t_1
(if (<= x 2.3e-162)
(* (* y3 (fma j y5 (* (- c) z))) y0)
(if (<= x 2.15e+27)
(* (* y4 b) (fma (- y) k (* t j)))
(if (<= x 1e+157)
(* (* y2 y4) (fma k y1 (* (- c) t)))
(if (<= x 8.6e+209) t_1 (* (* x y) (fma a b (* (- c) i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(b, y, (-y1 * y2))) * a;
double tmp;
if (x <= -1.5e-53) {
tmp = t_1;
} else if (x <= 2.3e-162) {
tmp = (y3 * fma(j, y5, (-c * z))) * y0;
} else if (x <= 2.15e+27) {
tmp = (y4 * b) * fma(-y, k, (t * j));
} else if (x <= 1e+157) {
tmp = (y2 * y4) * fma(k, y1, (-c * t));
} else if (x <= 8.6e+209) {
tmp = t_1;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a) tmp = 0.0 if (x <= -1.5e-53) tmp = t_1; elseif (x <= 2.3e-162) tmp = Float64(Float64(y3 * fma(j, y5, Float64(Float64(-c) * z))) * y0); elseif (x <= 2.15e+27) tmp = Float64(Float64(y4 * b) * fma(Float64(-y), k, Float64(t * j))); elseif (x <= 1e+157) tmp = Float64(Float64(y2 * y4) * fma(k, y1, Float64(Float64(-c) * t))); elseif (x <= 8.6e+209) tmp = t_1; else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[x, -1.5e-53], t$95$1, If[LessEqual[x, 2.3e-162], N[(N[(y3 * N[(j * y5 + N[((-c) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 2.15e+27], N[(N[(y4 * b), $MachinePrecision] * N[((-y) * k + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e+157], N[(N[(y2 * y4), $MachinePrecision] * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.6e+209], t$95$1, N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{-53}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-162}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(j, y5, \left(-c\right) \cdot z\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 2.15 \cdot 10^{+27}:\\
\;\;\;\;\left(y4 \cdot b\right) \cdot \mathsf{fma}\left(-y, k, t \cdot j\right)\\
\mathbf{elif}\;x \leq 10^{+157}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\\
\mathbf{elif}\;x \leq 8.6 \cdot 10^{+209}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.5000000000000001e-53 or 9.99999999999999983e156 < x < 8.59999999999999975e209Initial program 29.9%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.0%
Taylor expanded in t around -inf
Applied rewrites27.1%
Taylor expanded in x around inf
Applied rewrites53.1%
if -1.5000000000000001e-53 < x < 2.2999999999999998e-162Initial program 35.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in b around 0
Applied rewrites44.6%
Taylor expanded in y3 around inf
Applied rewrites38.0%
if 2.2999999999999998e-162 < x < 2.15000000000000004e27Initial program 29.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in y4 around inf
Applied rewrites32.8%
Applied rewrites33.0%
if 2.15000000000000004e27 < x < 9.99999999999999983e156Initial program 30.5%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in y4 around inf
Applied rewrites47.4%
if 8.59999999999999975e209 < x Initial program 31.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.1%
Taylor expanded in y around inf
Applied rewrites76.2%
Final simplification47.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -2.55e+47)
(* (* b x) (fma a y (* (- j) y0)))
(if (<= x -1.36e-91)
(* (* x y2) (fma (- a) y1 (* c y0)))
(if (<= x -4.5e-244)
(* (* y1 y3) (fma (- j) y4 (* a z)))
(if (<= x 4.5e-105)
(* (* y y3) (fma (- a) y5 (* c y4)))
(if (<= x 7.2e+199)
(* (* b j) (fma t y4 (* (- x) y0)))
(* (* x y) (fma a b (* (- c) i)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -2.55e+47) {
tmp = (b * x) * fma(a, y, (-j * y0));
} else if (x <= -1.36e-91) {
tmp = (x * y2) * fma(-a, y1, (c * y0));
} else if (x <= -4.5e-244) {
tmp = (y1 * y3) * fma(-j, y4, (a * z));
} else if (x <= 4.5e-105) {
tmp = (y * y3) * fma(-a, y5, (c * y4));
} else if (x <= 7.2e+199) {
tmp = (b * j) * fma(t, y4, (-x * y0));
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -2.55e+47) tmp = Float64(Float64(b * x) * fma(a, y, Float64(Float64(-j) * y0))); elseif (x <= -1.36e-91) tmp = Float64(Float64(x * y2) * fma(Float64(-a), y1, Float64(c * y0))); elseif (x <= -4.5e-244) tmp = Float64(Float64(y1 * y3) * fma(Float64(-j), y4, Float64(a * z))); elseif (x <= 4.5e-105) tmp = Float64(Float64(y * y3) * fma(Float64(-a), y5, Float64(c * y4))); elseif (x <= 7.2e+199) tmp = Float64(Float64(b * j) * fma(t, y4, Float64(Float64(-x) * y0))); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -2.55e+47], N[(N[(b * x), $MachinePrecision] * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.36e-91], N[(N[(x * y2), $MachinePrecision] * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -4.5e-244], N[(N[(y1 * y3), $MachinePrecision] * N[((-j) * y4 + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e-105], N[(N[(y * y3), $MachinePrecision] * N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e+199], N[(N[(b * j), $MachinePrecision] * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.55 \cdot 10^{+47}:\\
\;\;\;\;\left(b \cdot x\right) \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\\
\mathbf{elif}\;x \leq -1.36 \cdot 10^{-91}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{-244}:\\
\;\;\;\;\left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(-j, y4, a \cdot z\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{-105}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(-a, y5, c \cdot y4\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{+199}:\\
\;\;\;\;\left(b \cdot j\right) \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -2.5500000000000001e47Initial program 26.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.5%
Taylor expanded in x around inf
Applied rewrites48.2%
if -2.5500000000000001e47 < x < -1.3600000000000001e-91Initial program 35.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in y2 around inf
Applied rewrites48.5%
if -1.3600000000000001e-91 < x < -4.5000000000000002e-244Initial program 41.9%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites24.1%
Taylor expanded in y5 around -inf
Applied rewrites19.1%
Taylor expanded in y1 around -inf
Applied rewrites30.6%
if -4.5000000000000002e-244 < x < 4.4999999999999997e-105Initial program 32.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in y5 around -inf
Applied rewrites31.3%
Taylor expanded in y around inf
Applied rewrites37.1%
if 4.4999999999999997e-105 < x < 7.20000000000000002e199Initial program 29.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in j around inf
Applied rewrites34.4%
if 7.20000000000000002e199 < x Initial program 30.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.9%
Taylor expanded in y around inf
Applied rewrites73.4%
Final simplification43.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* j (* (- x) y0)) b))
(t_2 (* (* y y3) (fma (- a) y5 (* c y4)))))
(if (<= y0 -5.5e+197)
(* (* y0 y2) (fma (- k) y5 (* c x)))
(if (<= y0 -2.75e+97)
t_1
(if (<= y0 -7.2e-155)
t_2
(if (<= y0 1.3e-79)
(* (* y1 y3) (fma (- j) y4 (* a z)))
(if (<= y0 5.9e+79) t_2 t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * (-x * y0)) * b;
double t_2 = (y * y3) * fma(-a, y5, (c * y4));
double tmp;
if (y0 <= -5.5e+197) {
tmp = (y0 * y2) * fma(-k, y5, (c * x));
} else if (y0 <= -2.75e+97) {
tmp = t_1;
} else if (y0 <= -7.2e-155) {
tmp = t_2;
} else if (y0 <= 1.3e-79) {
tmp = (y1 * y3) * fma(-j, y4, (a * z));
} else if (y0 <= 5.9e+79) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * Float64(Float64(-x) * y0)) * b) t_2 = Float64(Float64(y * y3) * fma(Float64(-a), y5, Float64(c * y4))) tmp = 0.0 if (y0 <= -5.5e+197) tmp = Float64(Float64(y0 * y2) * fma(Float64(-k), y5, Float64(c * x))); elseif (y0 <= -2.75e+97) tmp = t_1; elseif (y0 <= -7.2e-155) tmp = t_2; elseif (y0 <= 1.3e-79) tmp = Float64(Float64(y1 * y3) * fma(Float64(-j), y4, Float64(a * z))); elseif (y0 <= 5.9e+79) tmp = t_2; else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * N[((-x) * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * y3), $MachinePrecision] * N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -5.5e+197], N[(N[(y0 * y2), $MachinePrecision] * N[((-k) * y5 + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -2.75e+97], t$95$1, If[LessEqual[y0, -7.2e-155], t$95$2, If[LessEqual[y0, 1.3e-79], N[(N[(y1 * y3), $MachinePrecision] * N[((-j) * y4 + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 5.9e+79], t$95$2, t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot \left(\left(-x\right) \cdot y0\right)\right) \cdot b\\
t_2 := \left(y \cdot y3\right) \cdot \mathsf{fma}\left(-a, y5, c \cdot y4\right)\\
\mathbf{if}\;y0 \leq -5.5 \cdot 10^{+197}:\\
\;\;\;\;\left(y0 \cdot y2\right) \cdot \mathsf{fma}\left(-k, y5, c \cdot x\right)\\
\mathbf{elif}\;y0 \leq -2.75 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq -7.2 \cdot 10^{-155}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y0 \leq 1.3 \cdot 10^{-79}:\\
\;\;\;\;\left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(-j, y4, a \cdot z\right)\\
\mathbf{elif}\;y0 \leq 5.9 \cdot 10^{+79}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -5.4999999999999999e197Initial program 19.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.2%
Taylor expanded in b around 0
Applied rewrites67.0%
Taylor expanded in y2 around inf
Applied rewrites72.1%
if -5.4999999999999999e197 < y0 < -2.75000000000000011e97 or 5.9e79 < y0 Initial program 23.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites35.2%
Taylor expanded in x around inf
Applied rewrites47.3%
Taylor expanded in y around 0
Applied rewrites43.1%
if -2.75000000000000011e97 < y0 < -7.19999999999999977e-155 or 1.29999999999999997e-79 < y0 < 5.9e79Initial program 32.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites30.7%
Taylor expanded in y5 around -inf
Applied rewrites25.1%
Taylor expanded in y around inf
Applied rewrites31.8%
if -7.19999999999999977e-155 < y0 < 1.29999999999999997e-79Initial program 40.4%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.0%
Taylor expanded in y5 around -inf
Applied rewrites16.9%
Taylor expanded in y1 around -inf
Applied rewrites29.6%
Final simplification37.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -1.5e-53)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x 6.5e-151)
(* (* y3 (fma j y5 (* (- c) z))) y0)
(if (<= x 4e-12)
(* (* j (fma t y4 (* (- x) y0))) b)
(if (<= x 3.4e+192)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(* (* x y) (fma a b (* (- c) i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -1.5e-53) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= 6.5e-151) {
tmp = (y3 * fma(j, y5, (-c * z))) * y0;
} else if (x <= 4e-12) {
tmp = (j * fma(t, y4, (-x * y0))) * b;
} else if (x <= 3.4e+192) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -1.5e-53) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= 6.5e-151) tmp = Float64(Float64(y3 * fma(j, y5, Float64(Float64(-c) * z))) * y0); elseif (x <= 4e-12) tmp = Float64(Float64(j * fma(t, y4, Float64(Float64(-x) * y0))) * b); elseif (x <= 3.4e+192) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -1.5e-53], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 6.5e-151], N[(N[(y3 * N[(j * y5 + N[((-c) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 4e-12], N[(N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[x, 3.4e+192], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{-53}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-151}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(j, y5, \left(-c\right) \cdot z\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-12}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+192}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.5000000000000001e-53Initial program 31.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.0%
Taylor expanded in t around -inf
Applied rewrites26.6%
Taylor expanded in x around inf
Applied rewrites49.6%
if -1.5000000000000001e-53 < x < 6.4999999999999994e-151Initial program 34.5%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.6%
Taylor expanded in b around 0
Applied rewrites45.4%
Taylor expanded in y3 around inf
Applied rewrites38.9%
if 6.4999999999999994e-151 < x < 3.99999999999999992e-12Initial program 33.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.0%
Taylor expanded in j around inf
Applied rewrites38.2%
if 3.99999999999999992e-12 < x < 3.39999999999999996e192Initial program 26.8%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.5%
Taylor expanded in j around inf
Applied rewrites41.9%
if 3.39999999999999996e192 < x Initial program 30.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.9%
Taylor expanded in y around inf
Applied rewrites73.4%
Final simplification46.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -1.5e-53)
(* (* x (fma b y (* (- y1) y2))) a)
(if (<= x 2.3e-162)
(* (* y3 (fma j y5 (* (- c) z))) y0)
(if (<= x 7.8e-44)
(* (* y4 b) (fma (- y) k (* t j)))
(if (<= x 3.4e+192)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(* (* x y) (fma a b (* (- c) i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -1.5e-53) {
tmp = (x * fma(b, y, (-y1 * y2))) * a;
} else if (x <= 2.3e-162) {
tmp = (y3 * fma(j, y5, (-c * z))) * y0;
} else if (x <= 7.8e-44) {
tmp = (y4 * b) * fma(-y, k, (t * j));
} else if (x <= 3.4e+192) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else {
tmp = (x * y) * fma(a, b, (-c * i));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -1.5e-53) tmp = Float64(Float64(x * fma(b, y, Float64(Float64(-y1) * y2))) * a); elseif (x <= 2.3e-162) tmp = Float64(Float64(y3 * fma(j, y5, Float64(Float64(-c) * z))) * y0); elseif (x <= 7.8e-44) tmp = Float64(Float64(y4 * b) * fma(Float64(-y), k, Float64(t * j))); elseif (x <= 3.4e+192) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); else tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -1.5e-53], N[(N[(x * N[(b * y + N[((-y1) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[x, 2.3e-162], N[(N[(y3 * N[(j * y5 + N[((-c) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 7.8e-44], N[(N[(y4 * b), $MachinePrecision] * N[((-y) * k + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.4e+192], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.5 \cdot 10^{-53}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(b, y, \left(-y1\right) \cdot y2\right)\right) \cdot a\\
\mathbf{elif}\;x \leq 2.3 \cdot 10^{-162}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(j, y5, \left(-c\right) \cdot z\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{-44}:\\
\;\;\;\;\left(y4 \cdot b\right) \cdot \mathsf{fma}\left(-y, k, t \cdot j\right)\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{+192}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\end{array}
\end{array}
if x < -1.5000000000000001e-53Initial program 31.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.0%
Taylor expanded in t around -inf
Applied rewrites26.6%
Taylor expanded in x around inf
Applied rewrites49.6%
if -1.5000000000000001e-53 < x < 2.2999999999999998e-162Initial program 35.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in b around 0
Applied rewrites44.6%
Taylor expanded in y3 around inf
Applied rewrites38.0%
if 2.2999999999999998e-162 < x < 7.8000000000000004e-44Initial program 34.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites31.4%
Taylor expanded in y4 around inf
Applied rewrites35.9%
Applied rewrites39.7%
if 7.8000000000000004e-44 < x < 3.39999999999999996e192Initial program 26.2%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.6%
Taylor expanded in j around inf
Applied rewrites40.1%
if 3.39999999999999996e192 < x Initial program 30.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites53.9%
Taylor expanded in y around inf
Applied rewrites73.4%
Final simplification45.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* b x) (fma a y (* (- j) y0)))))
(if (<= b -3.1e+128)
(* (* y4 b) (fma (- y) k (* t j)))
(if (<= b -1.1e-76)
t_1
(if (<= b -6.6e-223)
(* (* y1 y3) (fma (- j) y4 (* a z)))
(if (<= b 1.45e+146) (* (* y3 y5) (fma j y0 (* (- a) y))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (b * x) * fma(a, y, (-j * y0));
double tmp;
if (b <= -3.1e+128) {
tmp = (y4 * b) * fma(-y, k, (t * j));
} else if (b <= -1.1e-76) {
tmp = t_1;
} else if (b <= -6.6e-223) {
tmp = (y1 * y3) * fma(-j, y4, (a * z));
} else if (b <= 1.45e+146) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(b * x) * fma(a, y, Float64(Float64(-j) * y0))) tmp = 0.0 if (b <= -3.1e+128) tmp = Float64(Float64(y4 * b) * fma(Float64(-y), k, Float64(t * j))); elseif (b <= -1.1e-76) tmp = t_1; elseif (b <= -6.6e-223) tmp = Float64(Float64(y1 * y3) * fma(Float64(-j), y4, Float64(a * z))); elseif (b <= 1.45e+146) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(b * x), $MachinePrecision] * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+128], N[(N[(y4 * b), $MachinePrecision] * N[((-y) * k + N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.1e-76], t$95$1, If[LessEqual[b, -6.6e-223], N[(N[(y1 * y3), $MachinePrecision] * N[((-j) * y4 + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e+146], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot x\right) \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+128}:\\
\;\;\;\;\left(y4 \cdot b\right) \cdot \mathsf{fma}\left(-y, k, t \cdot j\right)\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-223}:\\
\;\;\;\;\left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(-j, y4, a \cdot z\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+146}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.10000000000000004e128Initial program 25.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.7%
Taylor expanded in y4 around inf
Applied rewrites50.3%
Applied rewrites49.8%
if -3.10000000000000004e128 < b < -1.1e-76 or 1.4499999999999999e146 < b Initial program 31.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.6%
Taylor expanded in x around inf
Applied rewrites42.0%
if -1.1e-76 < b < -6.59999999999999988e-223Initial program 26.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.8%
Taylor expanded in y5 around -inf
Applied rewrites15.4%
Taylor expanded in y1 around -inf
Applied rewrites34.3%
if -6.59999999999999988e-223 < b < 1.4499999999999999e146Initial program 34.9%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y5 around -inf
Applied rewrites32.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y0 y2) (fma (- k) y5 (* c x))))
(t_2 (* (* y3 y5) (fma j y0 (* (- a) y)))))
(if (<= y3 -2.15e+159)
t_2
(if (<= y3 -1.85e-13)
t_1
(if (<= y3 7.5e-208)
(* (* b j) (fma t y4 (* (- x) y0)))
(if (<= y3 1.28e+107) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y0 * y2) * fma(-k, y5, (c * x));
double t_2 = (y3 * y5) * fma(j, y0, (-a * y));
double tmp;
if (y3 <= -2.15e+159) {
tmp = t_2;
} else if (y3 <= -1.85e-13) {
tmp = t_1;
} else if (y3 <= 7.5e-208) {
tmp = (b * j) * fma(t, y4, (-x * y0));
} else if (y3 <= 1.28e+107) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y0 * y2) * fma(Float64(-k), y5, Float64(c * x))) t_2 = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))) tmp = 0.0 if (y3 <= -2.15e+159) tmp = t_2; elseif (y3 <= -1.85e-13) tmp = t_1; elseif (y3 <= 7.5e-208) tmp = Float64(Float64(b * j) * fma(t, y4, Float64(Float64(-x) * y0))); elseif (y3 <= 1.28e+107) tmp = t_1; else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y0 * y2), $MachinePrecision] * N[((-k) * y5 + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -2.15e+159], t$95$2, If[LessEqual[y3, -1.85e-13], t$95$1, If[LessEqual[y3, 7.5e-208], N[(N[(b * j), $MachinePrecision] * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.28e+107], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y0 \cdot y2\right) \cdot \mathsf{fma}\left(-k, y5, c \cdot x\right)\\
t_2 := \left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{if}\;y3 \leq -2.15 \cdot 10^{+159}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y3 \leq -1.85 \cdot 10^{-13}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 7.5 \cdot 10^{-208}:\\
\;\;\;\;\left(b \cdot j\right) \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\\
\mathbf{elif}\;y3 \leq 1.28 \cdot 10^{+107}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y3 < -2.1500000000000001e159 or 1.2799999999999999e107 < y3 Initial program 22.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.9%
Taylor expanded in y5 around -inf
Applied rewrites46.4%
if -2.1500000000000001e159 < y3 < -1.84999999999999994e-13 or 7.4999999999999999e-208 < y3 < 1.2799999999999999e107Initial program 33.1%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.0%
Taylor expanded in b around 0
Applied rewrites34.1%
Taylor expanded in y2 around inf
Applied rewrites31.6%
if -1.84999999999999994e-13 < y3 < 7.4999999999999999e-208Initial program 36.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.7%
Taylor expanded in j around inf
Applied rewrites37.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y1 y3) (fma (- j) y4 (* a z)))))
(if (<= y1 -3.6e+149)
t_1
(if (<= y1 -1.8e+75)
(* (* c (* x y2)) y0)
(if (<= y1 -2.4e-156)
(* (* j (* (- x) y0)) b)
(if (<= y1 1.4e+59) (* (* y y3) (fma (- a) y5 (* c y4))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y1 * y3) * fma(-j, y4, (a * z));
double tmp;
if (y1 <= -3.6e+149) {
tmp = t_1;
} else if (y1 <= -1.8e+75) {
tmp = (c * (x * y2)) * y0;
} else if (y1 <= -2.4e-156) {
tmp = (j * (-x * y0)) * b;
} else if (y1 <= 1.4e+59) {
tmp = (y * y3) * fma(-a, y5, (c * y4));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y1 * y3) * fma(Float64(-j), y4, Float64(a * z))) tmp = 0.0 if (y1 <= -3.6e+149) tmp = t_1; elseif (y1 <= -1.8e+75) tmp = Float64(Float64(c * Float64(x * y2)) * y0); elseif (y1 <= -2.4e-156) tmp = Float64(Float64(j * Float64(Float64(-x) * y0)) * b); elseif (y1 <= 1.4e+59) tmp = Float64(Float64(y * y3) * fma(Float64(-a), y5, Float64(c * y4))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y1 * y3), $MachinePrecision] * N[((-j) * y4 + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.6e+149], t$95$1, If[LessEqual[y1, -1.8e+75], N[(N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[y1, -2.4e-156], N[(N[(j * N[((-x) * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y1, 1.4e+59], N[(N[(y * y3), $MachinePrecision] * N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(-j, y4, a \cdot z\right)\\
\mathbf{if}\;y1 \leq -3.6 \cdot 10^{+149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -1.8 \cdot 10^{+75}:\\
\;\;\;\;\left(c \cdot \left(x \cdot y2\right)\right) \cdot y0\\
\mathbf{elif}\;y1 \leq -2.4 \cdot 10^{-156}:\\
\;\;\;\;\left(j \cdot \left(\left(-x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{elif}\;y1 \leq 1.4 \cdot 10^{+59}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(-a, y5, c \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -3.59999999999999995e149 or 1.3999999999999999e59 < y1 Initial program 24.7%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites33.5%
Taylor expanded in y5 around -inf
Applied rewrites22.8%
Taylor expanded in y1 around -inf
Applied rewrites38.9%
if -3.59999999999999995e149 < y1 < -1.8e75Initial program 33.8%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.6%
Taylor expanded in b around 0
Applied rewrites40.8%
Taylor expanded in x around inf
Applied rewrites48.1%
if -1.8e75 < y1 < -2.4e-156Initial program 38.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.8%
Taylor expanded in x around inf
Applied rewrites36.7%
Taylor expanded in y around 0
Applied rewrites30.4%
if -2.4e-156 < y1 < 1.3999999999999999e59Initial program 34.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites32.7%
Taylor expanded in y5 around -inf
Applied rewrites28.7%
Taylor expanded in y around inf
Applied rewrites33.2%
Final simplification35.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1.7e+159)
(* b (* y4 (* j t)))
(if (<= t -3.4e-37)
(* j (* y0 (* y3 y5)))
(if (<= t -1.56e-258)
(* (* (* (- k) y2) y5) y0)
(if (<= t 1.42e+44)
(* (* j (* (- x) y0)) b)
(* (- (* b (* t z))) a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1.7e+159) {
tmp = b * (y4 * (j * t));
} else if (t <= -3.4e-37) {
tmp = j * (y0 * (y3 * y5));
} else if (t <= -1.56e-258) {
tmp = ((-k * y2) * y5) * y0;
} else if (t <= 1.42e+44) {
tmp = (j * (-x * y0)) * b;
} else {
tmp = -(b * (t * z)) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-1.7d+159)) then
tmp = b * (y4 * (j * t))
else if (t <= (-3.4d-37)) then
tmp = j * (y0 * (y3 * y5))
else if (t <= (-1.56d-258)) then
tmp = ((-k * y2) * y5) * y0
else if (t <= 1.42d+44) then
tmp = (j * (-x * y0)) * b
else
tmp = -(b * (t * z)) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1.7e+159) {
tmp = b * (y4 * (j * t));
} else if (t <= -3.4e-37) {
tmp = j * (y0 * (y3 * y5));
} else if (t <= -1.56e-258) {
tmp = ((-k * y2) * y5) * y0;
} else if (t <= 1.42e+44) {
tmp = (j * (-x * y0)) * b;
} else {
tmp = -(b * (t * z)) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -1.7e+159: tmp = b * (y4 * (j * t)) elif t <= -3.4e-37: tmp = j * (y0 * (y3 * y5)) elif t <= -1.56e-258: tmp = ((-k * y2) * y5) * y0 elif t <= 1.42e+44: tmp = (j * (-x * y0)) * b else: tmp = -(b * (t * z)) * a return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -1.7e+159) tmp = Float64(b * Float64(y4 * Float64(j * t))); elseif (t <= -3.4e-37) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (t <= -1.56e-258) tmp = Float64(Float64(Float64(Float64(-k) * y2) * y5) * y0); elseif (t <= 1.42e+44) tmp = Float64(Float64(j * Float64(Float64(-x) * y0)) * b); else tmp = Float64(Float64(-Float64(b * Float64(t * z))) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -1.7e+159) tmp = b * (y4 * (j * t)); elseif (t <= -3.4e-37) tmp = j * (y0 * (y3 * y5)); elseif (t <= -1.56e-258) tmp = ((-k * y2) * y5) * y0; elseif (t <= 1.42e+44) tmp = (j * (-x * y0)) * b; else tmp = -(b * (t * z)) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.7e+159], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.4e-37], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.56e-258], N[(N[(N[((-k) * y2), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[t, 1.42e+44], N[(N[(j * N[((-x) * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[((-N[(b * N[(t * z), $MachinePrecision]), $MachinePrecision]) * a), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+159}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;t \leq -3.4 \cdot 10^{-37}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq -1.56 \cdot 10^{-258}:\\
\;\;\;\;\left(\left(\left(-k\right) \cdot y2\right) \cdot y5\right) \cdot y0\\
\mathbf{elif}\;t \leq 1.42 \cdot 10^{+44}:\\
\;\;\;\;\left(j \cdot \left(\left(-x\right) \cdot y0\right)\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(-b \cdot \left(t \cdot z\right)\right) \cdot a\\
\end{array}
\end{array}
if t < -1.69999999999999996e159Initial program 44.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.0%
Taylor expanded in y4 around inf
Applied rewrites37.1%
Taylor expanded in y around 0
Applied rewrites37.8%
if -1.69999999999999996e159 < t < -3.40000000000000018e-37Initial program 40.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.8%
Taylor expanded in y5 around -inf
Applied rewrites35.5%
Taylor expanded in y around 0
Applied rewrites29.1%
if -3.40000000000000018e-37 < t < -1.56000000000000006e-258Initial program 16.9%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.6%
Taylor expanded in b around 0
Applied rewrites41.1%
Taylor expanded in y2 around inf
Applied rewrites36.8%
Taylor expanded in k around inf
Applied rewrites32.1%
if -1.56000000000000006e-258 < t < 1.41999999999999994e44Initial program 33.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.1%
Taylor expanded in x around inf
Applied rewrites32.2%
Taylor expanded in y around 0
Applied rewrites29.3%
if 1.41999999999999994e44 < t Initial program 27.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.9%
Taylor expanded in t around -inf
Applied rewrites48.3%
Taylor expanded in z around inf
Applied rewrites37.4%
Final simplification32.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (* j t)))))
(if (<= j -6e+45)
t_1
(if (<= j -4.5e-272)
(* (* y3 y5) (* (- a) y))
(if (<= j 8e-129)
(* (* c (* x y2)) y0)
(if (<= j 2e+198) (* (- a) (* (* y y3) y5)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * (j * t));
double tmp;
if (j <= -6e+45) {
tmp = t_1;
} else if (j <= -4.5e-272) {
tmp = (y3 * y5) * (-a * y);
} else if (j <= 8e-129) {
tmp = (c * (x * y2)) * y0;
} else if (j <= 2e+198) {
tmp = -a * ((y * y3) * y5);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (y4 * (j * t))
if (j <= (-6d+45)) then
tmp = t_1
else if (j <= (-4.5d-272)) then
tmp = (y3 * y5) * (-a * y)
else if (j <= 8d-129) then
tmp = (c * (x * y2)) * y0
else if (j <= 2d+198) then
tmp = -a * ((y * y3) * y5)
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 c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * (j * t));
double tmp;
if (j <= -6e+45) {
tmp = t_1;
} else if (j <= -4.5e-272) {
tmp = (y3 * y5) * (-a * y);
} else if (j <= 8e-129) {
tmp = (c * (x * y2)) * y0;
} else if (j <= 2e+198) {
tmp = -a * ((y * y3) * y5);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * (j * t)) tmp = 0 if j <= -6e+45: tmp = t_1 elif j <= -4.5e-272: tmp = (y3 * y5) * (-a * y) elif j <= 8e-129: tmp = (c * (x * y2)) * y0 elif j <= 2e+198: tmp = -a * ((y * y3) * y5) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(j * t))) tmp = 0.0 if (j <= -6e+45) tmp = t_1; elseif (j <= -4.5e-272) tmp = Float64(Float64(y3 * y5) * Float64(Float64(-a) * y)); elseif (j <= 8e-129) tmp = Float64(Float64(c * Float64(x * y2)) * y0); elseif (j <= 2e+198) tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * (j * t)); tmp = 0.0; if (j <= -6e+45) tmp = t_1; elseif (j <= -4.5e-272) tmp = (y3 * y5) * (-a * y); elseif (j <= 8e-129) tmp = (c * (x * y2)) * y0; elseif (j <= 2e+198) tmp = -a * ((y * y3) * y5); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6e+45], t$95$1, If[LessEqual[j, -4.5e-272], N[(N[(y3 * y5), $MachinePrecision] * N[((-a) * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8e-129], N[(N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[j, 2e+198], N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{if}\;j \leq -6 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.5 \cdot 10^{-272}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \left(\left(-a\right) \cdot y\right)\\
\mathbf{elif}\;j \leq 8 \cdot 10^{-129}:\\
\;\;\;\;\left(c \cdot \left(x \cdot y2\right)\right) \cdot y0\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+198}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -6.00000000000000021e45 or 2.00000000000000004e198 < j Initial program 23.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.7%
Taylor expanded in y4 around inf
Applied rewrites34.7%
Taylor expanded in y around 0
Applied rewrites34.6%
if -6.00000000000000021e45 < j < -4.4999999999999998e-272Initial program 36.1%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites33.7%
Taylor expanded in y5 around -inf
Applied rewrites28.2%
Taylor expanded in y around inf
Applied rewrites26.8%
if -4.4999999999999998e-272 < j < 7.9999999999999994e-129Initial program 43.1%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.7%
Taylor expanded in b around 0
Applied rewrites38.6%
Taylor expanded in x around inf
Applied rewrites31.5%
if 7.9999999999999994e-129 < j < 2.00000000000000004e198Initial program 28.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites44.6%
Taylor expanded in y5 around -inf
Applied rewrites25.8%
Taylor expanded in y around inf
Applied rewrites25.4%
Final simplification29.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -4e+15)
(* (* x y2) (fma (- a) y1 (* c y0)))
(if (<= y2 2.5e-181)
(* (* b x) (fma a y (* (- j) y0)))
(if (<= y2 1.7e-16)
(* (* i (fma k y5 (* (- c) x))) y)
(* (* y2 y4) (fma k y1 (* (- c) t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -4e+15) {
tmp = (x * y2) * fma(-a, y1, (c * y0));
} else if (y2 <= 2.5e-181) {
tmp = (b * x) * fma(a, y, (-j * y0));
} else if (y2 <= 1.7e-16) {
tmp = (i * fma(k, y5, (-c * x))) * y;
} else {
tmp = (y2 * y4) * fma(k, y1, (-c * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -4e+15) tmp = Float64(Float64(x * y2) * fma(Float64(-a), y1, Float64(c * y0))); elseif (y2 <= 2.5e-181) tmp = Float64(Float64(b * x) * fma(a, y, Float64(Float64(-j) * y0))); elseif (y2 <= 1.7e-16) tmp = Float64(Float64(i * fma(k, y5, Float64(Float64(-c) * x))) * y); else tmp = Float64(Float64(y2 * y4) * fma(k, y1, Float64(Float64(-c) * t))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -4e+15], N[(N[(x * y2), $MachinePrecision] * N[((-a) * y1 + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.5e-181], N[(N[(b * x), $MachinePrecision] * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.7e-16], N[(N[(i * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision], N[(N[(y2 * y4), $MachinePrecision] * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -4 \cdot 10^{+15}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \mathsf{fma}\left(-a, y1, c \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 2.5 \cdot 10^{-181}:\\
\;\;\;\;\left(b \cdot x\right) \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\\
\mathbf{elif}\;y2 \leq 1.7 \cdot 10^{-16}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;\left(y2 \cdot y4\right) \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\\
\end{array}
\end{array}
if y2 < -4e15Initial program 23.5%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in y2 around inf
Applied rewrites45.0%
if -4e15 < y2 < 2.5000000000000001e-181Initial program 43.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.3%
Taylor expanded in x around inf
Applied rewrites31.3%
if 2.5000000000000001e-181 < y2 < 1.7e-16Initial program 39.6%
Taylor expanded in y around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites50.4%
Taylor expanded in i around inf
Applied rewrites46.4%
if 1.7e-16 < y2 Initial program 20.2%
Taylor expanded in y2 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.2%
Taylor expanded in y4 around inf
Applied rewrites44.8%
Final simplification40.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -2.1e+195)
(* (* y0 y2) (fma (- k) y5 (* c x)))
(if (<= y0 -2.6e+71)
(* (* b x) (fma a y (* (- j) y0)))
(if (<= y0 2.4e+139)
(* (* x y) (fma a b (* (- c) i)))
(* (* j (* (- x) y0)) b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -2.1e+195) {
tmp = (y0 * y2) * fma(-k, y5, (c * x));
} else if (y0 <= -2.6e+71) {
tmp = (b * x) * fma(a, y, (-j * y0));
} else if (y0 <= 2.4e+139) {
tmp = (x * y) * fma(a, b, (-c * i));
} else {
tmp = (j * (-x * y0)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y0 <= -2.1e+195) tmp = Float64(Float64(y0 * y2) * fma(Float64(-k), y5, Float64(c * x))); elseif (y0 <= -2.6e+71) tmp = Float64(Float64(b * x) * fma(a, y, Float64(Float64(-j) * y0))); elseif (y0 <= 2.4e+139) tmp = Float64(Float64(x * y) * fma(a, b, Float64(Float64(-c) * i))); else tmp = Float64(Float64(j * Float64(Float64(-x) * y0)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -2.1e+195], N[(N[(y0 * y2), $MachinePrecision] * N[((-k) * y5 + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -2.6e+71], N[(N[(b * x), $MachinePrecision] * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.4e+139], N[(N[(x * y), $MachinePrecision] * N[(a * b + N[((-c) * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[((-x) * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -2.1 \cdot 10^{+195}:\\
\;\;\;\;\left(y0 \cdot y2\right) \cdot \mathsf{fma}\left(-k, y5, c \cdot x\right)\\
\mathbf{elif}\;y0 \leq -2.6 \cdot 10^{+71}:\\
\;\;\;\;\left(b \cdot x\right) \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\\
\mathbf{elif}\;y0 \leq 2.4 \cdot 10^{+139}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \mathsf{fma}\left(a, b, \left(-c\right) \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot \left(\left(-x\right) \cdot y0\right)\right) \cdot b\\
\end{array}
\end{array}
if y0 < -2.10000000000000009e195Initial program 19.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites76.2%
Taylor expanded in b around 0
Applied rewrites67.0%
Taylor expanded in y2 around inf
Applied rewrites72.1%
if -2.10000000000000009e195 < y0 < -2.59999999999999991e71Initial program 35.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.2%
Taylor expanded in x around inf
Applied rewrites50.7%
if -2.59999999999999991e71 < y0 < 2.40000000000000008e139Initial program 36.1%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.1%
Taylor expanded in y around inf
Applied rewrites32.4%
if 2.40000000000000008e139 < y0 Initial program 15.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites28.8%
Taylor expanded in x around inf
Applied rewrites49.6%
Taylor expanded in y around 0
Applied rewrites44.7%
Final simplification38.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -9.5e+86)
(* (* b j) (fma t y4 (* (- x) y0)))
(if (<= b -6.6e-223)
(* (* y1 y3) (fma (- j) y4 (* a z)))
(if (<= b 1.45e+146)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(* (* b x) (fma a y (* (- j) y0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -9.5e+86) {
tmp = (b * j) * fma(t, y4, (-x * y0));
} else if (b <= -6.6e-223) {
tmp = (y1 * y3) * fma(-j, y4, (a * z));
} else if (b <= 1.45e+146) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else {
tmp = (b * x) * fma(a, y, (-j * y0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -9.5e+86) tmp = Float64(Float64(b * j) * fma(t, y4, Float64(Float64(-x) * y0))); elseif (b <= -6.6e-223) tmp = Float64(Float64(y1 * y3) * fma(Float64(-j), y4, Float64(a * z))); elseif (b <= 1.45e+146) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); else tmp = Float64(Float64(b * x) * fma(a, y, Float64(Float64(-j) * y0))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -9.5e+86], N[(N[(b * j), $MachinePrecision] * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.6e-223], N[(N[(y1 * y3), $MachinePrecision] * N[((-j) * y4 + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.45e+146], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * x), $MachinePrecision] * N[(a * y + N[((-j) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+86}:\\
\;\;\;\;\left(b \cdot j\right) \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\\
\mathbf{elif}\;b \leq -6.6 \cdot 10^{-223}:\\
\;\;\;\;\left(y1 \cdot y3\right) \cdot \mathsf{fma}\left(-j, y4, a \cdot z\right)\\
\mathbf{elif}\;b \leq 1.45 \cdot 10^{+146}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot x\right) \cdot \mathsf{fma}\left(a, y, \left(-j\right) \cdot y0\right)\\
\end{array}
\end{array}
if b < -9.50000000000000028e86Initial program 27.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.3%
Taylor expanded in j around inf
Applied rewrites44.2%
if -9.50000000000000028e86 < b < -6.59999999999999988e-223Initial program 32.9%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites30.5%
Taylor expanded in y5 around -inf
Applied rewrites13.2%
Taylor expanded in y1 around -inf
Applied rewrites25.9%
if -6.59999999999999988e-223 < b < 1.4499999999999999e146Initial program 34.9%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y5 around -inf
Applied rewrites32.6%
if 1.4499999999999999e146 < b Initial program 24.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.6%
Taylor expanded in x around inf
Applied rewrites53.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (* y3 y5)))))
(if (<= t -1.7e+159)
(* b (* y4 (* j t)))
(if (<= t -1.5e-29)
t_1
(if (<= t 2.3e-85)
(* (* c (* x y2)) y0)
(if (<= t 1e+76) t_1 (* (* (* t y2) y5) a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (t <= -1.7e+159) {
tmp = b * (y4 * (j * t));
} else if (t <= -1.5e-29) {
tmp = t_1;
} else if (t <= 2.3e-85) {
tmp = (c * (x * y2)) * y0;
} else if (t <= 1e+76) {
tmp = t_1;
} else {
tmp = ((t * y2) * y5) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y0 * (y3 * y5))
if (t <= (-1.7d+159)) then
tmp = b * (y4 * (j * t))
else if (t <= (-1.5d-29)) then
tmp = t_1
else if (t <= 2.3d-85) then
tmp = (c * (x * y2)) * y0
else if (t <= 1d+76) then
tmp = t_1
else
tmp = ((t * y2) * y5) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * (y3 * y5));
double tmp;
if (t <= -1.7e+159) {
tmp = b * (y4 * (j * t));
} else if (t <= -1.5e-29) {
tmp = t_1;
} else if (t <= 2.3e-85) {
tmp = (c * (x * y2)) * y0;
} else if (t <= 1e+76) {
tmp = t_1;
} else {
tmp = ((t * y2) * y5) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * (y3 * y5)) tmp = 0 if t <= -1.7e+159: tmp = b * (y4 * (j * t)) elif t <= -1.5e-29: tmp = t_1 elif t <= 2.3e-85: tmp = (c * (x * y2)) * y0 elif t <= 1e+76: tmp = t_1 else: tmp = ((t * y2) * y5) * a return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(y3 * y5))) tmp = 0.0 if (t <= -1.7e+159) tmp = Float64(b * Float64(y4 * Float64(j * t))); elseif (t <= -1.5e-29) tmp = t_1; elseif (t <= 2.3e-85) tmp = Float64(Float64(c * Float64(x * y2)) * y0); elseif (t <= 1e+76) tmp = t_1; else tmp = Float64(Float64(Float64(t * y2) * y5) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * (y3 * y5)); tmp = 0.0; if (t <= -1.7e+159) tmp = b * (y4 * (j * t)); elseif (t <= -1.5e-29) tmp = t_1; elseif (t <= 2.3e-85) tmp = (c * (x * y2)) * y0; elseif (t <= 1e+76) tmp = t_1; else tmp = ((t * y2) * y5) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.7e+159], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.5e-29], t$95$1, If[LessEqual[t, 2.3e-85], N[(N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[t, 1e+76], t$95$1, N[(N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision] * a), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{if}\;t \leq -1.7 \cdot 10^{+159}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-85}:\\
\;\;\;\;\left(c \cdot \left(x \cdot y2\right)\right) \cdot y0\\
\mathbf{elif}\;t \leq 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(t \cdot y2\right) \cdot y5\right) \cdot a\\
\end{array}
\end{array}
if t < -1.69999999999999996e159Initial program 44.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.0%
Taylor expanded in y4 around inf
Applied rewrites37.1%
Taylor expanded in y around 0
Applied rewrites37.8%
if -1.69999999999999996e159 < t < -1.5000000000000001e-29 or 2.3e-85 < t < 1e76Initial program 28.0%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites34.8%
Taylor expanded in y5 around -inf
Applied rewrites31.4%
Taylor expanded in y around 0
Applied rewrites28.9%
if -1.5000000000000001e-29 < t < 2.3e-85Initial program 33.2%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.0%
Taylor expanded in b around 0
Applied rewrites32.0%
Taylor expanded in x around inf
Applied rewrites21.5%
if 1e76 < t Initial program 28.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.0%
Taylor expanded in t around -inf
Applied rewrites51.5%
Taylor expanded in z around 0
Applied rewrites37.2%
Final simplification29.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* (- k) (* y y4)))))
(if (<= y4 -7.4e+69)
t_1
(if (<= y4 7.5e-213)
(* (* y3 y5) (* (- a) y))
(if (<= y4 7.3e+87) (* (- (* b (* t z))) a) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (-k * (y * y4));
double tmp;
if (y4 <= -7.4e+69) {
tmp = t_1;
} else if (y4 <= 7.5e-213) {
tmp = (y3 * y5) * (-a * y);
} else if (y4 <= 7.3e+87) {
tmp = -(b * (t * z)) * a;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = b * (-k * (y * y4))
if (y4 <= (-7.4d+69)) then
tmp = t_1
else if (y4 <= 7.5d-213) then
tmp = (y3 * y5) * (-a * y)
else if (y4 <= 7.3d+87) then
tmp = -(b * (t * z)) * a
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 c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (-k * (y * y4));
double tmp;
if (y4 <= -7.4e+69) {
tmp = t_1;
} else if (y4 <= 7.5e-213) {
tmp = (y3 * y5) * (-a * y);
} else if (y4 <= 7.3e+87) {
tmp = -(b * (t * z)) * a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (-k * (y * y4)) tmp = 0 if y4 <= -7.4e+69: tmp = t_1 elif y4 <= 7.5e-213: tmp = (y3 * y5) * (-a * y) elif y4 <= 7.3e+87: tmp = -(b * (t * z)) * a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(Float64(-k) * Float64(y * y4))) tmp = 0.0 if (y4 <= -7.4e+69) tmp = t_1; elseif (y4 <= 7.5e-213) tmp = Float64(Float64(y3 * y5) * Float64(Float64(-a) * y)); elseif (y4 <= 7.3e+87) tmp = Float64(Float64(-Float64(b * Float64(t * z))) * a); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (-k * (y * y4)); tmp = 0.0; if (y4 <= -7.4e+69) tmp = t_1; elseif (y4 <= 7.5e-213) tmp = (y3 * y5) * (-a * y); elseif (y4 <= 7.3e+87) tmp = -(b * (t * z)) * a; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -7.4e+69], t$95$1, If[LessEqual[y4, 7.5e-213], N[(N[(y3 * y5), $MachinePrecision] * N[((-a) * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 7.3e+87], N[((-N[(b * N[(t * z), $MachinePrecision]), $MachinePrecision]) * a), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -7.4 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 7.5 \cdot 10^{-213}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \left(\left(-a\right) \cdot y\right)\\
\mathbf{elif}\;y4 \leq 7.3 \cdot 10^{+87}:\\
\;\;\;\;\left(-b \cdot \left(t \cdot z\right)\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y4 < -7.3999999999999998e69 or 7.29999999999999997e87 < y4 Initial program 17.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.0%
Taylor expanded in y4 around inf
Applied rewrites40.0%
Taylor expanded in y around inf
Applied rewrites34.2%
if -7.3999999999999998e69 < y4 < 7.5000000000000006e-213Initial program 37.1%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites29.9%
Taylor expanded in y5 around -inf
Applied rewrites30.7%
Taylor expanded in y around inf
Applied rewrites25.0%
if 7.5000000000000006e-213 < y4 < 7.29999999999999997e87Initial program 42.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.5%
Taylor expanded in t around -inf
Applied rewrites43.1%
Taylor expanded in z around inf
Applied rewrites33.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2.1e+43)
(* (* (* a x) y) b)
(if (<= y 2.3e-99)
(* (* (* t y2) y5) a)
(if (<= y 5.2e+168) (* (* c (* x y2)) y0) (* (- a) (* (* y y3) y5))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -2.1e+43) {
tmp = ((a * x) * y) * b;
} else if (y <= 2.3e-99) {
tmp = ((t * y2) * y5) * a;
} else if (y <= 5.2e+168) {
tmp = (c * (x * y2)) * y0;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y <= (-2.1d+43)) then
tmp = ((a * x) * y) * b
else if (y <= 2.3d-99) then
tmp = ((t * y2) * y5) * a
else if (y <= 5.2d+168) then
tmp = (c * (x * y2)) * y0
else
tmp = -a * ((y * y3) * y5)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y <= -2.1e+43) {
tmp = ((a * x) * y) * b;
} else if (y <= 2.3e-99) {
tmp = ((t * y2) * y5) * a;
} else if (y <= 5.2e+168) {
tmp = (c * (x * y2)) * y0;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -2.1e+43: tmp = ((a * x) * y) * b elif y <= 2.3e-99: tmp = ((t * y2) * y5) * a elif y <= 5.2e+168: tmp = (c * (x * y2)) * y0 else: tmp = -a * ((y * y3) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y <= -2.1e+43) tmp = Float64(Float64(Float64(a * x) * y) * b); elseif (y <= 2.3e-99) tmp = Float64(Float64(Float64(t * y2) * y5) * a); elseif (y <= 5.2e+168) tmp = Float64(Float64(c * Float64(x * y2)) * y0); else tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y <= -2.1e+43) tmp = ((a * x) * y) * b; elseif (y <= 2.3e-99) tmp = ((t * y2) * y5) * a; elseif (y <= 5.2e+168) tmp = (c * (x * y2)) * y0; else tmp = -a * ((y * y3) * y5); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -2.1e+43], N[(N[(N[(a * x), $MachinePrecision] * y), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y, 2.3e-99], N[(N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y, 5.2e+168], N[(N[(c * N[(x * y2), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.1 \cdot 10^{+43}:\\
\;\;\;\;\left(\left(a \cdot x\right) \cdot y\right) \cdot b\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-99}:\\
\;\;\;\;\left(\left(t \cdot y2\right) \cdot y5\right) \cdot a\\
\mathbf{elif}\;y \leq 5.2 \cdot 10^{+168}:\\
\;\;\;\;\left(c \cdot \left(x \cdot y2\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y < -2.10000000000000002e43Initial program 20.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.2%
Taylor expanded in x around inf
Applied rewrites40.0%
Taylor expanded in y around inf
Applied rewrites33.3%
if -2.10000000000000002e43 < y < 2.2999999999999998e-99Initial program 38.3%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.8%
Taylor expanded in t around -inf
Applied rewrites33.5%
Taylor expanded in z around 0
Applied rewrites22.1%
if 2.2999999999999998e-99 < y < 5.2e168Initial program 32.8%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.2%
Taylor expanded in b around 0
Applied rewrites38.7%
Taylor expanded in x around inf
Applied rewrites20.4%
if 5.2e168 < y Initial program 26.7%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites31.7%
Taylor expanded in y5 around -inf
Applied rewrites37.1%
Taylor expanded in y around inf
Applied rewrites45.8%
Final simplification27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -2.5e+59)
(* b (* y4 (* j t)))
(if (<= j 9.2e+163)
(* (* y y3) (fma (- a) y5 (* c y4)))
(* (* j (* (- x) y0)) b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -2.5e+59) {
tmp = b * (y4 * (j * t));
} else if (j <= 9.2e+163) {
tmp = (y * y3) * fma(-a, y5, (c * y4));
} else {
tmp = (j * (-x * y0)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -2.5e+59) tmp = Float64(b * Float64(y4 * Float64(j * t))); elseif (j <= 9.2e+163) tmp = Float64(Float64(y * y3) * fma(Float64(-a), y5, Float64(c * y4))); else tmp = Float64(Float64(j * Float64(Float64(-x) * y0)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -2.5e+59], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.2e+163], N[(N[(y * y3), $MachinePrecision] * N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[((-x) * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.5 \cdot 10^{+59}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;j \leq 9.2 \cdot 10^{+163}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(-a, y5, c \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot \left(\left(-x\right) \cdot y0\right)\right) \cdot b\\
\end{array}
\end{array}
if j < -2.4999999999999999e59Initial program 27.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in y4 around inf
Applied rewrites33.3%
Taylor expanded in y around 0
Applied rewrites33.3%
if -2.4999999999999999e59 < j < 9.20000000000000007e163Initial program 34.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites34.5%
Taylor expanded in y5 around -inf
Applied rewrites23.0%
Taylor expanded in y around inf
Applied rewrites27.3%
if 9.20000000000000007e163 < j Initial program 22.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.5%
Taylor expanded in x around inf
Applied rewrites56.2%
Taylor expanded in y around 0
Applied rewrites50.8%
Final simplification31.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y4 -7.4e+69) (not (<= y4 3.1e+58))) (* b (* (- k) (* y y4))) (* (* y3 y5) (* (- a) y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y4 <= -7.4e+69) || !(y4 <= 3.1e+58)) {
tmp = b * (-k * (y * y4));
} else {
tmp = (y3 * y5) * (-a * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((y4 <= (-7.4d+69)) .or. (.not. (y4 <= 3.1d+58))) then
tmp = b * (-k * (y * y4))
else
tmp = (y3 * y5) * (-a * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((y4 <= -7.4e+69) || !(y4 <= 3.1e+58)) {
tmp = b * (-k * (y * y4));
} else {
tmp = (y3 * y5) * (-a * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y4 <= -7.4e+69) or not (y4 <= 3.1e+58): tmp = b * (-k * (y * y4)) else: tmp = (y3 * y5) * (-a * y) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y4 <= -7.4e+69) || !(y4 <= 3.1e+58)) tmp = Float64(b * Float64(Float64(-k) * Float64(y * y4))); else tmp = Float64(Float64(y3 * y5) * Float64(Float64(-a) * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((y4 <= -7.4e+69) || ~((y4 <= 3.1e+58))) tmp = b * (-k * (y * y4)); else tmp = (y3 * y5) * (-a * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[y4, -7.4e+69], N[Not[LessEqual[y4, 3.1e+58]], $MachinePrecision]], N[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y5), $MachinePrecision] * N[((-a) * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -7.4 \cdot 10^{+69} \lor \neg \left(y4 \leq 3.1 \cdot 10^{+58}\right):\\
\;\;\;\;b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \left(\left(-a\right) \cdot y\right)\\
\end{array}
\end{array}
if y4 < -7.3999999999999998e69 or 3.0999999999999999e58 < y4 Initial program 20.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.2%
Taylor expanded in y4 around inf
Applied rewrites39.0%
Taylor expanded in y around inf
Applied rewrites33.6%
if -7.3999999999999998e69 < y4 < 3.0999999999999999e58Initial program 38.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites32.0%
Taylor expanded in y5 around -inf
Applied rewrites27.7%
Taylor expanded in y around inf
Applied rewrites22.6%
Final simplification26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= t -1.7e+159) (not (<= t 9.5e+80))) (* b (* y4 (* j t))) (* j (* y0 (* y3 y5)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((t <= -1.7e+159) || !(t <= 9.5e+80)) {
tmp = b * (y4 * (j * t));
} else {
tmp = j * (y0 * (y3 * y5));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((t <= (-1.7d+159)) .or. (.not. (t <= 9.5d+80))) then
tmp = b * (y4 * (j * t))
else
tmp = j * (y0 * (y3 * y5))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((t <= -1.7e+159) || !(t <= 9.5e+80)) {
tmp = b * (y4 * (j * t));
} else {
tmp = j * (y0 * (y3 * y5));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (t <= -1.7e+159) or not (t <= 9.5e+80): tmp = b * (y4 * (j * t)) else: tmp = j * (y0 * (y3 * y5)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((t <= -1.7e+159) || !(t <= 9.5e+80)) tmp = Float64(b * Float64(y4 * Float64(j * t))); else tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((t <= -1.7e+159) || ~((t <= 9.5e+80))) tmp = b * (y4 * (j * t)); else tmp = j * (y0 * (y3 * y5)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[t, -1.7e+159], N[Not[LessEqual[t, 9.5e+80]], $MachinePrecision]], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+159} \lor \neg \left(t \leq 9.5 \cdot 10^{+80}\right):\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if t < -1.69999999999999996e159 or 9.499999999999999e80 < t Initial program 34.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.6%
Taylor expanded in y4 around inf
Applied rewrites38.5%
Taylor expanded in y around 0
Applied rewrites33.8%
if -1.69999999999999996e159 < t < 9.499999999999999e80Initial program 30.4%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites32.8%
Taylor expanded in y5 around -inf
Applied rewrites25.5%
Taylor expanded in y around 0
Applied rewrites19.4%
Final simplification23.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= t -1.7e+159) (* b (* y4 (* j t))) (if (<= t 1e+76) (* j (* y0 (* y3 y5))) (* (* (* t y2) y5) a))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1.7e+159) {
tmp = b * (y4 * (j * t));
} else if (t <= 1e+76) {
tmp = j * (y0 * (y3 * y5));
} else {
tmp = ((t * y2) * y5) * a;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (t <= (-1.7d+159)) then
tmp = b * (y4 * (j * t))
else if (t <= 1d+76) then
tmp = j * (y0 * (y3 * y5))
else
tmp = ((t * y2) * y5) * a
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (t <= -1.7e+159) {
tmp = b * (y4 * (j * t));
} else if (t <= 1e+76) {
tmp = j * (y0 * (y3 * y5));
} else {
tmp = ((t * y2) * y5) * a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -1.7e+159: tmp = b * (y4 * (j * t)) elif t <= 1e+76: tmp = j * (y0 * (y3 * y5)) else: tmp = ((t * y2) * y5) * a return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (t <= -1.7e+159) tmp = Float64(b * Float64(y4 * Float64(j * t))); elseif (t <= 1e+76) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); else tmp = Float64(Float64(Float64(t * y2) * y5) * a); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (t <= -1.7e+159) tmp = b * (y4 * (j * t)); elseif (t <= 1e+76) tmp = j * (y0 * (y3 * y5)); else tmp = ((t * y2) * y5) * a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.7e+159], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1e+76], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(t * y2), $MachinePrecision] * y5), $MachinePrecision] * a), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.7 \cdot 10^{+159}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;t \leq 10^{+76}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(t \cdot y2\right) \cdot y5\right) \cdot a\\
\end{array}
\end{array}
if t < -1.69999999999999996e159Initial program 44.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.0%
Taylor expanded in y4 around inf
Applied rewrites37.1%
Taylor expanded in y around 0
Applied rewrites37.8%
if -1.69999999999999996e159 < t < 1e76Initial program 30.7%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites32.1%
Taylor expanded in y5 around -inf
Applied rewrites25.1%
Taylor expanded in y around 0
Applied rewrites19.3%
if 1e76 < t Initial program 28.1%
Taylor expanded in a around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.0%
Taylor expanded in t around -inf
Applied rewrites51.5%
Taylor expanded in z around 0
Applied rewrites37.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* j (* y0 (* y3 y5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return j * (y0 * (y3 * y5));
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = j * (y0 * (y3 * y5))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return j * (y0 * (y3 * y5));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return j * (y0 * (y3 * y5))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(j * Float64(y0 * Float64(y3 * y5))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = j * (y0 * (y3 * y5)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)
\end{array}
Initial program 31.5%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites32.6%
Taylor expanded in y5 around -inf
Applied rewrites24.1%
Taylor expanded in y around 0
Applied rewrites16.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
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), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2024339
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< y4 -7206256231996481000000000000000000000000000000000000000000000) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3364603505246317/1000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -3000016263921529/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 1343792624811499/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 29872667587737/6250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 4570448308253367/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))