
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 18 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(- (* b (- (* z c) (* a i))) (* x (- (* y z) (* t a)))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) - (x * ((y * z) - (t * a))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) - (x * ((y * z) - (t * a))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) - (x * ((y * z) - (t * a)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(x * Float64(Float64(y * z) - Float64(t * a))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((b * ((z * c) - (a * i))) - (x * ((y * z) - (t * a)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - x \cdot \left(y \cdot z - t \cdot a\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 88.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 49.8%
Final simplification80.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= x -2.6e+190)
t_1
(if (or (<= x -4.2e-60) (not (<= x 1.6e-75)))
(+ t_1 t_2)
(- t_2 (* b (- (* z c) (* a i))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (x <= -2.6e+190) {
tmp = t_1;
} else if ((x <= -4.2e-60) || !(x <= 1.6e-75)) {
tmp = t_1 + t_2;
} else {
tmp = t_2 - (b * ((z * c) - (a * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((t * c) - (y * i))
if (x <= (-2.6d+190)) then
tmp = t_1
else if ((x <= (-4.2d-60)) .or. (.not. (x <= 1.6d-75))) then
tmp = t_1 + t_2
else
tmp = t_2 - (b * ((z * c) - (a * i)))
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 t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (x <= -2.6e+190) {
tmp = t_1;
} else if ((x <= -4.2e-60) || !(x <= 1.6e-75)) {
tmp = t_1 + t_2;
} else {
tmp = t_2 - (b * ((z * c) - (a * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if x <= -2.6e+190: tmp = t_1 elif (x <= -4.2e-60) or not (x <= 1.6e-75): tmp = t_1 + t_2 else: tmp = t_2 - (b * ((z * c) - (a * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (x <= -2.6e+190) tmp = t_1; elseif ((x <= -4.2e-60) || !(x <= 1.6e-75)) tmp = Float64(t_1 + t_2); else tmp = Float64(t_2 - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (x <= -2.6e+190) tmp = t_1; elseif ((x <= -4.2e-60) || ~((x <= 1.6e-75))) tmp = t_1 + t_2; else tmp = t_2 - (b * ((z * c) - (a * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.6e+190], t$95$1, If[Or[LessEqual[x, -4.2e-60], N[Not[LessEqual[x, 1.6e-75]], $MachinePrecision]], N[(t$95$1 + t$95$2), $MachinePrecision], N[(t$95$2 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -2.6 \cdot 10^{+190}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -4.2 \cdot 10^{-60} \lor \neg \left(x \leq 1.6 \cdot 10^{-75}\right):\\
\;\;\;\;t_1 + t_2\\
\mathbf{else}:\\
\;\;\;\;t_2 - b \cdot \left(z \cdot c - a \cdot i\right)\\
\end{array}
\end{array}
if x < -2.60000000000000011e190Initial program 62.2%
sub-neg62.2%
associate-+l+62.2%
fma-def62.2%
+-commutative62.2%
fma-def69.1%
sub-neg69.1%
+-commutative69.1%
*-commutative69.1%
distribute-rgt-neg-in69.1%
fma-def69.1%
*-commutative69.1%
distribute-rgt-neg-in69.1%
sub-neg69.1%
distribute-neg-in69.1%
unsub-neg69.1%
Simplified72.6%
Taylor expanded in x around inf 83.2%
if -2.60000000000000011e190 < x < -4.19999999999999982e-60 or 1.59999999999999988e-75 < x Initial program 78.8%
cancel-sign-sub78.8%
cancel-sign-sub-inv78.8%
*-commutative78.8%
*-commutative78.8%
remove-double-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in b around 0 73.4%
if -4.19999999999999982e-60 < x < 1.59999999999999988e-75Initial program 60.1%
cancel-sign-sub60.1%
cancel-sign-sub-inv60.1%
*-commutative60.1%
*-commutative60.1%
remove-double-neg60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in x around 0 68.2%
Final simplification72.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x (- t)))) (t_2 (* a (* b i))) (t_3 (* y (* i (- j)))))
(if (<= i -9.2e+218)
t_3
(if (<= i -1.9e+112)
t_2
(if (<= i -1e+79)
(* j (* t c))
(if (<= i -9e-23)
t_1
(if (<= i -2.55e-123)
(* z (* x y))
(if (<= i 4.2e-276)
t_1
(if (<= i 5.4e-24)
(* y (* x z))
(if (or (<= i 1.65e+246) (not (<= i 1.2e+297)))
t_3
t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * -t);
double t_2 = a * (b * i);
double t_3 = y * (i * -j);
double tmp;
if (i <= -9.2e+218) {
tmp = t_3;
} else if (i <= -1.9e+112) {
tmp = t_2;
} else if (i <= -1e+79) {
tmp = j * (t * c);
} else if (i <= -9e-23) {
tmp = t_1;
} else if (i <= -2.55e-123) {
tmp = z * (x * y);
} else if (i <= 4.2e-276) {
tmp = t_1;
} else if (i <= 5.4e-24) {
tmp = y * (x * z);
} else if ((i <= 1.65e+246) || !(i <= 1.2e+297)) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * (x * -t)
t_2 = a * (b * i)
t_3 = y * (i * -j)
if (i <= (-9.2d+218)) then
tmp = t_3
else if (i <= (-1.9d+112)) then
tmp = t_2
else if (i <= (-1d+79)) then
tmp = j * (t * c)
else if (i <= (-9d-23)) then
tmp = t_1
else if (i <= (-2.55d-123)) then
tmp = z * (x * y)
else if (i <= 4.2d-276) then
tmp = t_1
else if (i <= 5.4d-24) then
tmp = y * (x * z)
else if ((i <= 1.65d+246) .or. (.not. (i <= 1.2d+297))) then
tmp = t_3
else
tmp = t_2
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 t_1 = a * (x * -t);
double t_2 = a * (b * i);
double t_3 = y * (i * -j);
double tmp;
if (i <= -9.2e+218) {
tmp = t_3;
} else if (i <= -1.9e+112) {
tmp = t_2;
} else if (i <= -1e+79) {
tmp = j * (t * c);
} else if (i <= -9e-23) {
tmp = t_1;
} else if (i <= -2.55e-123) {
tmp = z * (x * y);
} else if (i <= 4.2e-276) {
tmp = t_1;
} else if (i <= 5.4e-24) {
tmp = y * (x * z);
} else if ((i <= 1.65e+246) || !(i <= 1.2e+297)) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * -t) t_2 = a * (b * i) t_3 = y * (i * -j) tmp = 0 if i <= -9.2e+218: tmp = t_3 elif i <= -1.9e+112: tmp = t_2 elif i <= -1e+79: tmp = j * (t * c) elif i <= -9e-23: tmp = t_1 elif i <= -2.55e-123: tmp = z * (x * y) elif i <= 4.2e-276: tmp = t_1 elif i <= 5.4e-24: tmp = y * (x * z) elif (i <= 1.65e+246) or not (i <= 1.2e+297): tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * Float64(-t))) t_2 = Float64(a * Float64(b * i)) t_3 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (i <= -9.2e+218) tmp = t_3; elseif (i <= -1.9e+112) tmp = t_2; elseif (i <= -1e+79) tmp = Float64(j * Float64(t * c)); elseif (i <= -9e-23) tmp = t_1; elseif (i <= -2.55e-123) tmp = Float64(z * Float64(x * y)); elseif (i <= 4.2e-276) tmp = t_1; elseif (i <= 5.4e-24) tmp = Float64(y * Float64(x * z)); elseif ((i <= 1.65e+246) || !(i <= 1.2e+297)) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * -t); t_2 = a * (b * i); t_3 = y * (i * -j); tmp = 0.0; if (i <= -9.2e+218) tmp = t_3; elseif (i <= -1.9e+112) tmp = t_2; elseif (i <= -1e+79) tmp = j * (t * c); elseif (i <= -9e-23) tmp = t_1; elseif (i <= -2.55e-123) tmp = z * (x * y); elseif (i <= 4.2e-276) tmp = t_1; elseif (i <= 5.4e-24) tmp = y * (x * z); elseif ((i <= 1.65e+246) || ~((i <= 1.2e+297))) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -9.2e+218], t$95$3, If[LessEqual[i, -1.9e+112], t$95$2, If[LessEqual[i, -1e+79], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -9e-23], t$95$1, If[LessEqual[i, -2.55e-123], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.2e-276], t$95$1, If[LessEqual[i, 5.4e-24], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[i, 1.65e+246], N[Not[LessEqual[i, 1.2e+297]], $MachinePrecision]], t$95$3, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot \left(-t\right)\right)\\
t_2 := a \cdot \left(b \cdot i\right)\\
t_3 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -9.2 \cdot 10^{+218}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq -1.9 \cdot 10^{+112}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1 \cdot 10^{+79}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq -9 \cdot 10^{-23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -2.55 \cdot 10^{-123}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 4.2 \cdot 10^{-276}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 5.4 \cdot 10^{-24}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 1.65 \cdot 10^{+246} \lor \neg \left(i \leq 1.2 \cdot 10^{+297}\right):\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -9.2000000000000004e218 or 5.40000000000000014e-24 < i < 1.65e246 or 1.20000000000000005e297 < i Initial program 66.9%
sub-neg66.9%
associate-+l+66.9%
fma-def68.2%
+-commutative68.2%
fma-def68.2%
sub-neg68.2%
+-commutative68.2%
*-commutative68.2%
distribute-rgt-neg-in68.2%
fma-def69.5%
*-commutative69.5%
distribute-rgt-neg-in69.5%
sub-neg69.5%
distribute-neg-in69.5%
unsub-neg69.5%
Simplified69.5%
Taylor expanded in y around inf 54.9%
+-commutative54.9%
*-commutative54.9%
+-commutative54.9%
mul-1-neg54.9%
unsub-neg54.9%
Simplified54.9%
Taylor expanded in z around 0 51.8%
*-commutative51.8%
associate-*r*51.8%
neg-mul-151.8%
Simplified51.8%
if -9.2000000000000004e218 < i < -1.90000000000000004e112 or 1.65e246 < i < 1.20000000000000005e297Initial program 55.9%
sub-neg55.9%
associate-+l+55.9%
fma-def55.9%
+-commutative55.9%
fma-def62.8%
sub-neg62.8%
+-commutative62.8%
*-commutative62.8%
distribute-rgt-neg-in62.8%
fma-def62.8%
*-commutative62.8%
distribute-rgt-neg-in62.8%
sub-neg62.8%
distribute-neg-in62.8%
unsub-neg62.8%
Simplified66.3%
Taylor expanded in a around inf 66.1%
+-commutative66.1%
mul-1-neg66.1%
unsub-neg66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in b around -inf 52.7%
if -1.90000000000000004e112 < i < -9.99999999999999967e78Initial program 62.5%
sub-neg62.5%
associate-+l+62.5%
fma-def62.5%
+-commutative62.5%
fma-def62.5%
sub-neg62.5%
+-commutative62.5%
*-commutative62.5%
distribute-rgt-neg-in62.5%
fma-def62.5%
*-commutative62.5%
distribute-rgt-neg-in62.5%
sub-neg62.5%
distribute-neg-in62.5%
unsub-neg62.5%
Simplified62.5%
Taylor expanded in y around 0 87.5%
mul-1-neg87.5%
*-commutative87.5%
distribute-rgt-neg-in87.5%
Simplified87.5%
Taylor expanded in c around 0 87.5%
Taylor expanded in c around inf 62.9%
*-commutative62.9%
associate-*r*63.1%
*-commutative63.1%
associate-*r*63.1%
Simplified63.1%
if -9.99999999999999967e78 < i < -8.9999999999999995e-23 or -2.55000000000000005e-123 < i < 4.2e-276Initial program 72.8%
sub-neg72.8%
associate-+l+72.8%
fma-def74.2%
+-commutative74.2%
fma-def75.5%
sub-neg75.5%
+-commutative75.5%
*-commutative75.5%
distribute-rgt-neg-in75.5%
fma-def75.5%
*-commutative75.5%
distribute-rgt-neg-in75.5%
sub-neg75.5%
distribute-neg-in75.5%
unsub-neg75.5%
Simplified75.5%
Taylor expanded in y around 0 64.0%
mul-1-neg64.0%
*-commutative64.0%
distribute-rgt-neg-in64.0%
Simplified64.0%
Taylor expanded in x around inf 41.1%
associate-*r*41.1%
neg-mul-141.1%
Simplified41.1%
if -8.9999999999999995e-23 < i < -2.55000000000000005e-123Initial program 78.6%
cancel-sign-sub78.6%
cancel-sign-sub-inv78.6%
*-commutative78.6%
*-commutative78.6%
remove-double-neg78.6%
*-commutative78.6%
*-commutative78.6%
Simplified78.6%
Taylor expanded in z around inf 73.5%
Taylor expanded in y around inf 51.7%
if 4.2e-276 < i < 5.40000000000000014e-24Initial program 75.7%
sub-neg75.7%
associate-+l+75.7%
fma-def75.7%
+-commutative75.7%
fma-def77.7%
sub-neg77.7%
+-commutative77.7%
*-commutative77.7%
distribute-rgt-neg-in77.7%
fma-def77.7%
*-commutative77.7%
distribute-rgt-neg-in77.7%
sub-neg77.7%
distribute-neg-in77.7%
unsub-neg77.7%
Simplified77.7%
Taylor expanded in y around inf 48.0%
+-commutative48.0%
*-commutative48.0%
+-commutative48.0%
mul-1-neg48.0%
unsub-neg48.0%
Simplified48.0%
Taylor expanded in z around inf 41.0%
Final simplification47.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -2.4e+142)
t_3
(if (<= y -3.1e+122)
t_2
(if (<= y -6.6e+72)
t_3
(if (<= y -1.16e-220)
t_1
(if (<= y 6.2e-123)
(* t (- (* c j) (* x a)))
(if (<= y 1.04e-82) t_2 (if (<= y 4.1e+104) t_1 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.4e+142) {
tmp = t_3;
} else if (y <= -3.1e+122) {
tmp = t_2;
} else if (y <= -6.6e+72) {
tmp = t_3;
} else if (y <= -1.16e-220) {
tmp = t_1;
} else if (y <= 6.2e-123) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.04e-82) {
tmp = t_2;
} else if (y <= 4.1e+104) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = c * ((t * j) - (z * b))
t_3 = y * ((x * z) - (i * j))
if (y <= (-2.4d+142)) then
tmp = t_3
else if (y <= (-3.1d+122)) then
tmp = t_2
else if (y <= (-6.6d+72)) then
tmp = t_3
else if (y <= (-1.16d-220)) then
tmp = t_1
else if (y <= 6.2d-123) then
tmp = t * ((c * j) - (x * a))
else if (y <= 1.04d-82) then
tmp = t_2
else if (y <= 4.1d+104) then
tmp = t_1
else
tmp = t_3
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 t_1 = a * ((b * i) - (x * t));
double t_2 = c * ((t * j) - (z * b));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.4e+142) {
tmp = t_3;
} else if (y <= -3.1e+122) {
tmp = t_2;
} else if (y <= -6.6e+72) {
tmp = t_3;
} else if (y <= -1.16e-220) {
tmp = t_1;
} else if (y <= 6.2e-123) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.04e-82) {
tmp = t_2;
} else if (y <= 4.1e+104) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = c * ((t * j) - (z * b)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.4e+142: tmp = t_3 elif y <= -3.1e+122: tmp = t_2 elif y <= -6.6e+72: tmp = t_3 elif y <= -1.16e-220: tmp = t_1 elif y <= 6.2e-123: tmp = t * ((c * j) - (x * a)) elif y <= 1.04e-82: tmp = t_2 elif y <= 4.1e+104: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.4e+142) tmp = t_3; elseif (y <= -3.1e+122) tmp = t_2; elseif (y <= -6.6e+72) tmp = t_3; elseif (y <= -1.16e-220) tmp = t_1; elseif (y <= 6.2e-123) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 1.04e-82) tmp = t_2; elseif (y <= 4.1e+104) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = c * ((t * j) - (z * b)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.4e+142) tmp = t_3; elseif (y <= -3.1e+122) tmp = t_2; elseif (y <= -6.6e+72) tmp = t_3; elseif (y <= -1.16e-220) tmp = t_1; elseif (y <= 6.2e-123) tmp = t * ((c * j) - (x * a)); elseif (y <= 1.04e-82) tmp = t_2; elseif (y <= 4.1e+104) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.4e+142], t$95$3, If[LessEqual[y, -3.1e+122], t$95$2, If[LessEqual[y, -6.6e+72], t$95$3, If[LessEqual[y, -1.16e-220], t$95$1, If[LessEqual[y, 6.2e-123], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.04e-82], t$95$2, If[LessEqual[y, 4.1e+104], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.4 \cdot 10^{+142}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -3.1 \cdot 10^{+122}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -6.6 \cdot 10^{+72}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -1.16 \cdot 10^{-220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-123}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.04 \cdot 10^{-82}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 4.1 \cdot 10^{+104}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -2.3999999999999999e142 or -3.09999999999999999e122 < y < -6.6e72 or 4.09999999999999985e104 < y Initial program 56.1%
sub-neg56.1%
associate-+l+56.1%
fma-def57.2%
+-commutative57.2%
fma-def58.3%
sub-neg58.3%
+-commutative58.3%
*-commutative58.3%
distribute-rgt-neg-in58.3%
fma-def58.3%
*-commutative58.3%
distribute-rgt-neg-in58.3%
sub-neg58.3%
distribute-neg-in58.3%
unsub-neg58.3%
Simplified58.3%
Taylor expanded in y around inf 78.2%
+-commutative78.2%
*-commutative78.2%
+-commutative78.2%
mul-1-neg78.2%
unsub-neg78.2%
Simplified78.2%
if -2.3999999999999999e142 < y < -3.09999999999999999e122 or 6.19999999999999996e-123 < y < 1.04000000000000004e-82Initial program 82.9%
cancel-sign-sub82.9%
cancel-sign-sub-inv82.9%
*-commutative82.9%
*-commutative82.9%
remove-double-neg82.9%
*-commutative82.9%
*-commutative82.9%
Simplified82.9%
Taylor expanded in c around inf 80.0%
if -6.6e72 < y < -1.15999999999999998e-220 or 1.04000000000000004e-82 < y < 4.09999999999999985e104Initial program 77.2%
sub-neg77.2%
associate-+l+77.2%
fma-def77.2%
+-commutative77.2%
fma-def80.2%
sub-neg80.2%
+-commutative80.2%
*-commutative80.2%
distribute-rgt-neg-in80.2%
fma-def81.2%
*-commutative81.2%
distribute-rgt-neg-in81.2%
sub-neg81.2%
distribute-neg-in81.2%
unsub-neg81.2%
Simplified82.2%
Taylor expanded in a around inf 58.8%
+-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
*-commutative58.8%
Simplified58.8%
if -1.15999999999999998e-220 < y < 6.19999999999999996e-123Initial program 75.3%
sub-neg75.3%
associate-+l+75.3%
fma-def77.3%
+-commutative77.3%
fma-def77.3%
sub-neg77.3%
+-commutative77.3%
*-commutative77.3%
distribute-rgt-neg-in77.3%
fma-def77.3%
*-commutative77.3%
distribute-rgt-neg-in77.3%
sub-neg77.3%
distribute-neg-in77.3%
unsub-neg77.3%
Simplified77.3%
Taylor expanded in y around 0 66.7%
mul-1-neg66.7%
*-commutative66.7%
distribute-rgt-neg-in66.7%
Simplified66.7%
Taylor expanded in t around inf 58.7%
*-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
Final simplification67.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* x (- (* y z) (* t a))) (* j (* t c))))
(t_2 (* i (- (* a b) (* y j)))))
(if (<= i -4.3e+46)
t_2
(if (<= i 1.55e-183)
t_1
(if (<= i 4.9e-135)
(* c (- (* t j) (* z b)))
(if (<= i 8e+105) 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 t_1 = (x * ((y * z) - (t * a))) + (j * (t * c));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -4.3e+46) {
tmp = t_2;
} else if (i <= 1.55e-183) {
tmp = t_1;
} else if (i <= 4.9e-135) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 8e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) + (j * (t * c))
t_2 = i * ((a * b) - (y * j))
if (i <= (-4.3d+46)) then
tmp = t_2
else if (i <= 1.55d-183) then
tmp = t_1
else if (i <= 4.9d-135) then
tmp = c * ((t * j) - (z * b))
else if (i <= 8d+105) then
tmp = t_1
else
tmp = t_2
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 t_1 = (x * ((y * z) - (t * a))) + (j * (t * c));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -4.3e+46) {
tmp = t_2;
} else if (i <= 1.55e-183) {
tmp = t_1;
} else if (i <= 4.9e-135) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 8e+105) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) + (j * (t * c)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -4.3e+46: tmp = t_2 elif i <= 1.55e-183: tmp = t_1 elif i <= 4.9e-135: tmp = c * ((t * j) - (z * b)) elif i <= 8e+105: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(t * c))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.3e+46) tmp = t_2; elseif (i <= 1.55e-183) tmp = t_1; elseif (i <= 4.9e-135) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (i <= 8e+105) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) + (j * (t * c)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -4.3e+46) tmp = t_2; elseif (i <= 1.55e-183) tmp = t_1; elseif (i <= 4.9e-135) tmp = c * ((t * j) - (z * b)); elseif (i <= 8e+105) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.3e+46], t$95$2, If[LessEqual[i, 1.55e-183], t$95$1, If[LessEqual[i, 4.9e-135], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8e+105], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.3 \cdot 10^{+46}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{-183}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 4.9 \cdot 10^{-135}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 8 \cdot 10^{+105}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -4.30000000000000005e46 or 7.9999999999999995e105 < i Initial program 57.6%
sub-neg57.6%
associate-+l+57.6%
fma-def58.7%
+-commutative58.7%
fma-def62.1%
sub-neg62.1%
+-commutative62.1%
*-commutative62.1%
distribute-rgt-neg-in62.1%
fma-def63.2%
*-commutative63.2%
distribute-rgt-neg-in63.2%
sub-neg63.2%
distribute-neg-in63.2%
unsub-neg63.2%
Simplified64.4%
Taylor expanded in i around inf 69.8%
mul-1-neg69.8%
unsub-neg69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
if -4.30000000000000005e46 < i < 1.55e-183 or 4.9000000000000003e-135 < i < 7.9999999999999995e105Initial program 77.0%
cancel-sign-sub77.0%
cancel-sign-sub-inv77.0%
*-commutative77.0%
*-commutative77.0%
remove-double-neg77.0%
*-commutative77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in b around 0 67.4%
Taylor expanded in c around inf 60.5%
associate-*r*61.7%
*-commutative61.7%
Simplified61.7%
if 1.55e-183 < i < 4.9000000000000003e-135Initial program 56.9%
cancel-sign-sub56.9%
cancel-sign-sub-inv56.9%
*-commutative56.9%
*-commutative56.9%
remove-double-neg56.9%
*-commutative56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in c around inf 86.5%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3.35e+184)
(* t (- (* c j) (* x a)))
(if (<= c 4.2e+63)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(* c (- (* t j) (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3.35e+184) {
tmp = t * ((c * j) - (x * a));
} else if (c <= 4.2e+63) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (c <= (-3.35d+184)) then
tmp = t * ((c * j) - (x * a))
else if (c <= 4.2d+63) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else
tmp = c * ((t * j) - (z * b))
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 tmp;
if (c <= -3.35e+184) {
tmp = t * ((c * j) - (x * a));
} else if (c <= 4.2e+63) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -3.35e+184: tmp = t * ((c * j) - (x * a)) elif c <= 4.2e+63: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3.35e+184) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= 4.2e+63) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -3.35e+184) tmp = t * ((c * j) - (x * a)); elseif (c <= 4.2e+63) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3.35e+184], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.2e+63], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.35 \cdot 10^{+184}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+63}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if c < -3.35e184Initial program 61.7%
sub-neg61.7%
associate-+l+61.7%
fma-def64.6%
+-commutative64.6%
fma-def67.6%
sub-neg67.6%
+-commutative67.6%
*-commutative67.6%
distribute-rgt-neg-in67.6%
fma-def67.6%
*-commutative67.6%
distribute-rgt-neg-in67.6%
sub-neg67.6%
distribute-neg-in67.6%
unsub-neg67.6%
Simplified67.6%
Taylor expanded in y around 0 70.5%
mul-1-neg70.5%
*-commutative70.5%
distribute-rgt-neg-in70.5%
Simplified70.5%
Taylor expanded in t around inf 68.6%
*-commutative68.6%
mul-1-neg68.6%
unsub-neg68.6%
Simplified68.6%
if -3.35e184 < c < 4.2000000000000004e63Initial program 73.0%
cancel-sign-sub73.0%
cancel-sign-sub-inv73.0%
*-commutative73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in b around 0 66.5%
if 4.2000000000000004e63 < c Initial program 62.4%
cancel-sign-sub62.4%
cancel-sign-sub-inv62.4%
*-commutative62.4%
*-commutative62.4%
remove-double-neg62.4%
*-commutative62.4%
*-commutative62.4%
Simplified62.4%
Taylor expanded in c around inf 74.5%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -1.55e+36)
t_2
(if (<= a -3.3e-71)
t_1
(if (<= a -2.55e-135)
(* y (* x z))
(if (<= a 1e-236)
t_1
(if (<= a 1.15e-142) (* z (* x y)) (if (<= a 0.006) 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 t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.55e+36) {
tmp = t_2;
} else if (a <= -3.3e-71) {
tmp = t_1;
} else if (a <= -2.55e-135) {
tmp = y * (x * z);
} else if (a <= 1e-236) {
tmp = t_1;
} else if (a <= 1.15e-142) {
tmp = z * (x * y);
} else if (a <= 0.006) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = a * ((b * i) - (x * t))
if (a <= (-1.55d+36)) then
tmp = t_2
else if (a <= (-3.3d-71)) then
tmp = t_1
else if (a <= (-2.55d-135)) then
tmp = y * (x * z)
else if (a <= 1d-236) then
tmp = t_1
else if (a <= 1.15d-142) then
tmp = z * (x * y)
else if (a <= 0.006d0) then
tmp = t_1
else
tmp = t_2
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 t_1 = c * ((t * j) - (z * b));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.55e+36) {
tmp = t_2;
} else if (a <= -3.3e-71) {
tmp = t_1;
} else if (a <= -2.55e-135) {
tmp = y * (x * z);
} else if (a <= 1e-236) {
tmp = t_1;
} else if (a <= 1.15e-142) {
tmp = z * (x * y);
} else if (a <= 0.006) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.55e+36: tmp = t_2 elif a <= -3.3e-71: tmp = t_1 elif a <= -2.55e-135: tmp = y * (x * z) elif a <= 1e-236: tmp = t_1 elif a <= 1.15e-142: tmp = z * (x * y) elif a <= 0.006: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.55e+36) tmp = t_2; elseif (a <= -3.3e-71) tmp = t_1; elseif (a <= -2.55e-135) tmp = Float64(y * Float64(x * z)); elseif (a <= 1e-236) tmp = t_1; elseif (a <= 1.15e-142) tmp = Float64(z * Float64(x * y)); elseif (a <= 0.006) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.55e+36) tmp = t_2; elseif (a <= -3.3e-71) tmp = t_1; elseif (a <= -2.55e-135) tmp = y * (x * z); elseif (a <= 1e-236) tmp = t_1; elseif (a <= 1.15e-142) tmp = z * (x * y); elseif (a <= 0.006) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.55e+36], t$95$2, If[LessEqual[a, -3.3e-71], t$95$1, If[LessEqual[a, -2.55e-135], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1e-236], t$95$1, If[LessEqual[a, 1.15e-142], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.006], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{+36}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.3 \cdot 10^{-71}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -2.55 \cdot 10^{-135}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 10^{-236}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{-142}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 0.006:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -1.55e36 or 0.0060000000000000001 < a Initial program 60.6%
sub-neg60.6%
associate-+l+60.6%
fma-def62.3%
+-commutative62.3%
fma-def63.9%
sub-neg63.9%
+-commutative63.9%
*-commutative63.9%
distribute-rgt-neg-in63.9%
fma-def63.9%
*-commutative63.9%
distribute-rgt-neg-in63.9%
sub-neg63.9%
distribute-neg-in63.9%
unsub-neg63.9%
Simplified64.7%
Taylor expanded in a around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
Simplified64.0%
if -1.55e36 < a < -3.3000000000000002e-71 or -2.5500000000000001e-135 < a < 1e-236 or 1.15000000000000001e-142 < a < 0.0060000000000000001Initial program 80.1%
cancel-sign-sub80.1%
cancel-sign-sub-inv80.1%
*-commutative80.1%
*-commutative80.1%
remove-double-neg80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in c around inf 47.0%
if -3.3000000000000002e-71 < a < -2.5500000000000001e-135Initial program 71.6%
sub-neg71.6%
associate-+l+71.6%
fma-def71.6%
+-commutative71.6%
fma-def71.6%
sub-neg71.6%
+-commutative71.6%
*-commutative71.6%
distribute-rgt-neg-in71.6%
fma-def71.6%
*-commutative71.6%
distribute-rgt-neg-in71.6%
sub-neg71.6%
distribute-neg-in71.6%
unsub-neg71.6%
Simplified71.6%
Taylor expanded in y around inf 80.3%
+-commutative80.3%
*-commutative80.3%
+-commutative80.3%
mul-1-neg80.3%
unsub-neg80.3%
Simplified80.3%
Taylor expanded in z around inf 56.5%
if 1e-236 < a < 1.15000000000000001e-142Initial program 74.1%
cancel-sign-sub74.1%
cancel-sign-sub-inv74.1%
*-commutative74.1%
*-commutative74.1%
remove-double-neg74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in z around inf 61.3%
Taylor expanded in y around inf 52.5%
Final simplification56.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -3.3e-15)
(* t (- (* c j) (* x a)))
(if (<= c -1.3e-119)
(* i (- (* a b) (* y j)))
(if (<= c -7.5e-177)
(* y (* x z))
(if (<= c 3.8e+75)
(* a (- (* b i) (* x t)))
(* c (- (* t j) (* z b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3.3e-15) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -1.3e-119) {
tmp = i * ((a * b) - (y * j));
} else if (c <= -7.5e-177) {
tmp = y * (x * z);
} else if (c <= 3.8e+75) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (c <= (-3.3d-15)) then
tmp = t * ((c * j) - (x * a))
else if (c <= (-1.3d-119)) then
tmp = i * ((a * b) - (y * j))
else if (c <= (-7.5d-177)) then
tmp = y * (x * z)
else if (c <= 3.8d+75) then
tmp = a * ((b * i) - (x * t))
else
tmp = c * ((t * j) - (z * b))
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 tmp;
if (c <= -3.3e-15) {
tmp = t * ((c * j) - (x * a));
} else if (c <= -1.3e-119) {
tmp = i * ((a * b) - (y * j));
} else if (c <= -7.5e-177) {
tmp = y * (x * z);
} else if (c <= 3.8e+75) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -3.3e-15: tmp = t * ((c * j) - (x * a)) elif c <= -1.3e-119: tmp = i * ((a * b) - (y * j)) elif c <= -7.5e-177: tmp = y * (x * z) elif c <= 3.8e+75: tmp = a * ((b * i) - (x * t)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3.3e-15) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (c <= -1.3e-119) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (c <= -7.5e-177) tmp = Float64(y * Float64(x * z)); elseif (c <= 3.8e+75) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -3.3e-15) tmp = t * ((c * j) - (x * a)); elseif (c <= -1.3e-119) tmp = i * ((a * b) - (y * j)); elseif (c <= -7.5e-177) tmp = y * (x * z); elseif (c <= 3.8e+75) tmp = a * ((b * i) - (x * t)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3.3e-15], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.3e-119], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.5e-177], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.8e+75], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.3 \cdot 10^{-15}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-119}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq -7.5 \cdot 10^{-177}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 3.8 \cdot 10^{+75}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if c < -3.3e-15Initial program 60.1%
sub-neg60.1%
associate-+l+60.1%
fma-def63.2%
+-commutative63.2%
fma-def64.8%
sub-neg64.8%
+-commutative64.8%
*-commutative64.8%
distribute-rgt-neg-in64.8%
fma-def64.8%
*-commutative64.8%
distribute-rgt-neg-in64.8%
sub-neg64.8%
distribute-neg-in64.8%
unsub-neg64.8%
Simplified66.3%
Taylor expanded in y around 0 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
Simplified65.3%
Taylor expanded in t around inf 59.7%
*-commutative59.7%
mul-1-neg59.7%
unsub-neg59.7%
Simplified59.7%
if -3.3e-15 < c < -1.30000000000000006e-119Initial program 80.3%
sub-neg80.3%
associate-+l+80.3%
fma-def80.3%
+-commutative80.3%
fma-def83.2%
sub-neg83.2%
+-commutative83.2%
*-commutative83.2%
distribute-rgt-neg-in83.2%
fma-def83.2%
*-commutative83.2%
distribute-rgt-neg-in83.2%
sub-neg83.2%
distribute-neg-in83.2%
unsub-neg83.2%
Simplified83.2%
Taylor expanded in i around inf 49.4%
mul-1-neg49.4%
unsub-neg49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
if -1.30000000000000006e-119 < c < -7.5e-177Initial program 66.0%
sub-neg66.0%
associate-+l+66.0%
fma-def66.0%
+-commutative66.0%
fma-def66.0%
sub-neg66.0%
+-commutative66.0%
*-commutative66.0%
distribute-rgt-neg-in66.0%
fma-def66.0%
*-commutative66.0%
distribute-rgt-neg-in66.0%
sub-neg66.0%
distribute-neg-in66.0%
unsub-neg66.0%
Simplified66.0%
Taylor expanded in y around inf 64.2%
+-commutative64.2%
*-commutative64.2%
+-commutative64.2%
mul-1-neg64.2%
unsub-neg64.2%
Simplified64.2%
Taylor expanded in z around inf 57.2%
if -7.5e-177 < c < 3.8000000000000002e75Initial program 74.5%
sub-neg74.5%
associate-+l+74.5%
fma-def74.5%
+-commutative74.5%
fma-def76.4%
sub-neg76.4%
+-commutative76.4%
*-commutative76.4%
distribute-rgt-neg-in76.4%
fma-def76.4%
*-commutative76.4%
distribute-rgt-neg-in76.4%
sub-neg76.4%
distribute-neg-in76.4%
unsub-neg76.4%
Simplified76.4%
Taylor expanded in a around inf 47.7%
+-commutative47.7%
mul-1-neg47.7%
unsub-neg47.7%
*-commutative47.7%
Simplified47.7%
if 3.8000000000000002e75 < c Initial program 65.5%
cancel-sign-sub65.5%
cancel-sign-sub-inv65.5%
*-commutative65.5%
*-commutative65.5%
remove-double-neg65.5%
*-commutative65.5%
*-commutative65.5%
Simplified65.5%
Taylor expanded in c around inf 78.2%
Final simplification56.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.9e+256)
(* i (* y (- j)))
(if (<= y -5e+74)
(* y (* x z))
(if (<= y 6.2e+107) (* a (- (* b i) (* x t))) (* x (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.9e+256) {
tmp = i * (y * -j);
} else if (y <= -5e+74) {
tmp = y * (x * z);
} else if (y <= 6.2e+107) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (y <= (-1.9d+256)) then
tmp = i * (y * -j)
else if (y <= (-5d+74)) then
tmp = y * (x * z)
else if (y <= 6.2d+107) then
tmp = a * ((b * i) - (x * t))
else
tmp = x * (y * z)
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 tmp;
if (y <= -1.9e+256) {
tmp = i * (y * -j);
} else if (y <= -5e+74) {
tmp = y * (x * z);
} else if (y <= 6.2e+107) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.9e+256: tmp = i * (y * -j) elif y <= -5e+74: tmp = y * (x * z) elif y <= 6.2e+107: tmp = a * ((b * i) - (x * t)) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.9e+256) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= -5e+74) tmp = Float64(y * Float64(x * z)); elseif (y <= 6.2e+107) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.9e+256) tmp = i * (y * -j); elseif (y <= -5e+74) tmp = y * (x * z); elseif (y <= 6.2e+107) tmp = a * ((b * i) - (x * t)); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.9e+256], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -5e+74], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e+107], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.9 \cdot 10^{+256}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq -5 \cdot 10^{+74}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{+107}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -1.9000000000000001e256Initial program 59.8%
sub-neg59.8%
associate-+l+59.8%
fma-def59.8%
+-commutative59.8%
fma-def59.8%
sub-neg59.8%
+-commutative59.8%
*-commutative59.8%
distribute-rgt-neg-in59.8%
fma-def59.8%
*-commutative59.8%
distribute-rgt-neg-in59.8%
sub-neg59.8%
distribute-neg-in59.8%
unsub-neg59.8%
Simplified59.8%
Taylor expanded in y around 0 70.3%
mul-1-neg70.3%
*-commutative70.3%
distribute-rgt-neg-in70.3%
Simplified70.3%
Taylor expanded in y around inf 79.9%
associate-*r*70.5%
*-commutative70.5%
associate-*r*80.0%
associate-*r*80.0%
neg-mul-180.0%
*-commutative80.0%
Simplified80.0%
if -1.9000000000000001e256 < y < -4.99999999999999963e74Initial program 66.2%
sub-neg66.2%
associate-+l+66.2%
fma-def66.2%
+-commutative66.2%
fma-def66.2%
sub-neg66.2%
+-commutative66.2%
*-commutative66.2%
distribute-rgt-neg-in66.2%
fma-def66.2%
*-commutative66.2%
distribute-rgt-neg-in66.2%
sub-neg66.2%
distribute-neg-in66.2%
unsub-neg66.2%
Simplified66.2%
Taylor expanded in y around inf 71.8%
+-commutative71.8%
*-commutative71.8%
+-commutative71.8%
mul-1-neg71.8%
unsub-neg71.8%
Simplified71.8%
Taylor expanded in z around inf 44.9%
if -4.99999999999999963e74 < y < 6.20000000000000052e107Initial program 77.9%
sub-neg77.9%
associate-+l+77.9%
fma-def78.5%
+-commutative78.5%
fma-def80.4%
sub-neg80.4%
+-commutative80.4%
*-commutative80.4%
distribute-rgt-neg-in80.4%
fma-def81.0%
*-commutative81.0%
distribute-rgt-neg-in81.0%
sub-neg81.0%
distribute-neg-in81.0%
unsub-neg81.0%
Simplified81.7%
Taylor expanded in a around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
if 6.20000000000000052e107 < y Initial program 49.2%
sub-neg49.2%
associate-+l+49.2%
fma-def51.2%
+-commutative51.2%
fma-def53.1%
sub-neg53.1%
+-commutative53.1%
*-commutative53.1%
distribute-rgt-neg-in53.1%
fma-def53.1%
*-commutative53.1%
distribute-rgt-neg-in53.1%
sub-neg53.1%
distribute-neg-in53.1%
unsub-neg53.1%
Simplified53.1%
Taylor expanded in x around inf 50.5%
Taylor expanded in y around inf 44.7%
*-commutative44.7%
Simplified44.7%
Final simplification49.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -5.6e-55)
(* c (* t j))
(if (<= c -2.8e-272)
(* y (* x z))
(if (<= c 3.2e-252)
(* y (* i (- j)))
(if (<= c 1.15e+77) (* x (* y z)) (* c (* z (- b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -5.6e-55) {
tmp = c * (t * j);
} else if (c <= -2.8e-272) {
tmp = y * (x * z);
} else if (c <= 3.2e-252) {
tmp = y * (i * -j);
} else if (c <= 1.15e+77) {
tmp = x * (y * z);
} else {
tmp = c * (z * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (c <= (-5.6d-55)) then
tmp = c * (t * j)
else if (c <= (-2.8d-272)) then
tmp = y * (x * z)
else if (c <= 3.2d-252) then
tmp = y * (i * -j)
else if (c <= 1.15d+77) then
tmp = x * (y * z)
else
tmp = c * (z * -b)
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 tmp;
if (c <= -5.6e-55) {
tmp = c * (t * j);
} else if (c <= -2.8e-272) {
tmp = y * (x * z);
} else if (c <= 3.2e-252) {
tmp = y * (i * -j);
} else if (c <= 1.15e+77) {
tmp = x * (y * z);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -5.6e-55: tmp = c * (t * j) elif c <= -2.8e-272: tmp = y * (x * z) elif c <= 3.2e-252: tmp = y * (i * -j) elif c <= 1.15e+77: tmp = x * (y * z) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -5.6e-55) tmp = Float64(c * Float64(t * j)); elseif (c <= -2.8e-272) tmp = Float64(y * Float64(x * z)); elseif (c <= 3.2e-252) tmp = Float64(y * Float64(i * Float64(-j))); elseif (c <= 1.15e+77) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -5.6e-55) tmp = c * (t * j); elseif (c <= -2.8e-272) tmp = y * (x * z); elseif (c <= 3.2e-252) tmp = y * (i * -j); elseif (c <= 1.15e+77) tmp = x * (y * z); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -5.6e-55], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.8e-272], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.2e-252], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.15e+77], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.6 \cdot 10^{-55}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;c \leq -2.8 \cdot 10^{-272}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 3.2 \cdot 10^{-252}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 1.15 \cdot 10^{+77}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if c < -5.59999999999999968e-55Initial program 62.3%
sub-neg62.3%
associate-+l+62.3%
fma-def65.0%
+-commutative65.0%
fma-def66.3%
sub-neg66.3%
+-commutative66.3%
*-commutative66.3%
distribute-rgt-neg-in66.3%
fma-def66.3%
*-commutative66.3%
distribute-rgt-neg-in66.3%
sub-neg66.3%
distribute-neg-in66.3%
unsub-neg66.3%
Simplified67.7%
Taylor expanded in y around 0 68.2%
mul-1-neg68.2%
*-commutative68.2%
distribute-rgt-neg-in68.2%
Simplified68.2%
Taylor expanded in c around 0 63.0%
Taylor expanded in c around inf 36.8%
if -5.59999999999999968e-55 < c < -2.79999999999999994e-272Initial program 75.4%
sub-neg75.4%
associate-+l+75.4%
fma-def75.4%
+-commutative75.4%
fma-def77.2%
sub-neg77.2%
+-commutative77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
fma-def77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
sub-neg77.2%
distribute-neg-in77.2%
unsub-neg77.2%
Simplified77.2%
Taylor expanded in y around inf 60.5%
+-commutative60.5%
*-commutative60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
Taylor expanded in z around inf 38.0%
if -2.79999999999999994e-272 < c < 3.2000000000000002e-252Initial program 90.7%
sub-neg90.7%
associate-+l+90.7%
fma-def90.6%
+-commutative90.6%
fma-def90.6%
sub-neg90.6%
+-commutative90.6%
*-commutative90.6%
distribute-rgt-neg-in90.6%
fma-def90.6%
*-commutative90.6%
distribute-rgt-neg-in90.6%
sub-neg90.6%
distribute-neg-in90.6%
unsub-neg90.6%
Simplified90.6%
Taylor expanded in y around inf 57.6%
+-commutative57.6%
*-commutative57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
Simplified57.6%
Taylor expanded in z around 0 46.3%
*-commutative46.3%
associate-*r*46.3%
neg-mul-146.3%
Simplified46.3%
if 3.2000000000000002e-252 < c < 1.14999999999999997e77Initial program 69.4%
sub-neg69.4%
associate-+l+69.4%
fma-def69.4%
+-commutative69.4%
fma-def72.5%
sub-neg72.5%
+-commutative72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
fma-def72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
sub-neg72.5%
distribute-neg-in72.5%
unsub-neg72.5%
Simplified72.5%
Taylor expanded in x around inf 52.9%
Taylor expanded in y around inf 33.6%
*-commutative33.6%
Simplified33.6%
if 1.14999999999999997e77 < c Initial program 64.6%
sub-neg64.6%
associate-+l+64.6%
fma-def64.6%
+-commutative64.6%
fma-def64.6%
sub-neg64.6%
+-commutative64.6%
*-commutative64.6%
distribute-rgt-neg-in64.6%
fma-def67.2%
*-commutative67.2%
distribute-rgt-neg-in67.2%
sub-neg67.2%
distribute-neg-in67.2%
unsub-neg67.2%
Simplified67.2%
Taylor expanded in y around 0 72.5%
mul-1-neg72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
Simplified72.5%
Taylor expanded in z around inf 57.6%
mul-1-neg57.6%
distribute-lft-neg-in57.6%
Simplified57.6%
Final simplification40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -5.6e-55)
(* c (* t j))
(if (<= c -2.6e-272)
(* y (* x z))
(if (<= c 1.9e-202)
(* i (* y (- j)))
(if (<= c 4.8e+76) (* x (* y z)) (* c (* z (- b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -5.6e-55) {
tmp = c * (t * j);
} else if (c <= -2.6e-272) {
tmp = y * (x * z);
} else if (c <= 1.9e-202) {
tmp = i * (y * -j);
} else if (c <= 4.8e+76) {
tmp = x * (y * z);
} else {
tmp = c * (z * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (c <= (-5.6d-55)) then
tmp = c * (t * j)
else if (c <= (-2.6d-272)) then
tmp = y * (x * z)
else if (c <= 1.9d-202) then
tmp = i * (y * -j)
else if (c <= 4.8d+76) then
tmp = x * (y * z)
else
tmp = c * (z * -b)
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 tmp;
if (c <= -5.6e-55) {
tmp = c * (t * j);
} else if (c <= -2.6e-272) {
tmp = y * (x * z);
} else if (c <= 1.9e-202) {
tmp = i * (y * -j);
} else if (c <= 4.8e+76) {
tmp = x * (y * z);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -5.6e-55: tmp = c * (t * j) elif c <= -2.6e-272: tmp = y * (x * z) elif c <= 1.9e-202: tmp = i * (y * -j) elif c <= 4.8e+76: tmp = x * (y * z) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -5.6e-55) tmp = Float64(c * Float64(t * j)); elseif (c <= -2.6e-272) tmp = Float64(y * Float64(x * z)); elseif (c <= 1.9e-202) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= 4.8e+76) tmp = Float64(x * Float64(y * z)); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -5.6e-55) tmp = c * (t * j); elseif (c <= -2.6e-272) tmp = y * (x * z); elseif (c <= 1.9e-202) tmp = i * (y * -j); elseif (c <= 4.8e+76) tmp = x * (y * z); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -5.6e-55], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -2.6e-272], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.9e-202], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.8e+76], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.6 \cdot 10^{-55}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;c \leq -2.6 \cdot 10^{-272}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{-202}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 4.8 \cdot 10^{+76}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if c < -5.59999999999999968e-55Initial program 62.3%
sub-neg62.3%
associate-+l+62.3%
fma-def65.0%
+-commutative65.0%
fma-def66.3%
sub-neg66.3%
+-commutative66.3%
*-commutative66.3%
distribute-rgt-neg-in66.3%
fma-def66.3%
*-commutative66.3%
distribute-rgt-neg-in66.3%
sub-neg66.3%
distribute-neg-in66.3%
unsub-neg66.3%
Simplified67.7%
Taylor expanded in y around 0 68.2%
mul-1-neg68.2%
*-commutative68.2%
distribute-rgt-neg-in68.2%
Simplified68.2%
Taylor expanded in c around 0 63.0%
Taylor expanded in c around inf 36.8%
if -5.59999999999999968e-55 < c < -2.59999999999999992e-272Initial program 75.4%
sub-neg75.4%
associate-+l+75.4%
fma-def75.4%
+-commutative75.4%
fma-def77.2%
sub-neg77.2%
+-commutative77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
fma-def77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
sub-neg77.2%
distribute-neg-in77.2%
unsub-neg77.2%
Simplified77.2%
Taylor expanded in y around inf 60.5%
+-commutative60.5%
*-commutative60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
Taylor expanded in z around inf 38.0%
if -2.59999999999999992e-272 < c < 1.90000000000000007e-202Initial program 79.4%
sub-neg79.4%
associate-+l+79.4%
fma-def79.3%
+-commutative79.3%
fma-def79.3%
sub-neg79.3%
+-commutative79.3%
*-commutative79.3%
distribute-rgt-neg-in79.3%
fma-def79.3%
*-commutative79.3%
distribute-rgt-neg-in79.3%
sub-neg79.3%
distribute-neg-in79.3%
unsub-neg79.3%
Simplified79.3%
Taylor expanded in y around 0 73.0%
mul-1-neg73.0%
*-commutative73.0%
distribute-rgt-neg-in73.0%
Simplified73.0%
Taylor expanded in y around inf 45.2%
associate-*r*45.2%
*-commutative45.2%
associate-*r*46.3%
associate-*r*46.3%
neg-mul-146.3%
*-commutative46.3%
Simplified46.3%
if 1.90000000000000007e-202 < c < 4.8e76Initial program 72.5%
sub-neg72.5%
associate-+l+72.5%
fma-def72.5%
+-commutative72.5%
fma-def76.0%
sub-neg76.0%
+-commutative76.0%
*-commutative76.0%
distribute-rgt-neg-in76.0%
fma-def76.0%
*-commutative76.0%
distribute-rgt-neg-in76.0%
sub-neg76.0%
distribute-neg-in76.0%
unsub-neg76.0%
Simplified76.0%
Taylor expanded in x around inf 52.4%
Taylor expanded in y around inf 32.4%
*-commutative32.4%
Simplified32.4%
if 4.8e76 < c Initial program 64.6%
sub-neg64.6%
associate-+l+64.6%
fma-def64.6%
+-commutative64.6%
fma-def64.6%
sub-neg64.6%
+-commutative64.6%
*-commutative64.6%
distribute-rgt-neg-in64.6%
fma-def67.2%
*-commutative67.2%
distribute-rgt-neg-in67.2%
sub-neg67.2%
distribute-neg-in67.2%
unsub-neg67.2%
Simplified67.2%
Taylor expanded in y around 0 72.5%
mul-1-neg72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
Simplified72.5%
Taylor expanded in z around inf 57.6%
mul-1-neg57.6%
distribute-lft-neg-in57.6%
Simplified57.6%
Final simplification40.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= c -5.6e-55)
t_1
(if (<= c -1.1e-274)
(* y (* x z))
(if (<= c 8e-252)
(* y (* i (- j)))
(if (<= c 4.9e+55) (* x (* y z)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (c <= -5.6e-55) {
tmp = t_1;
} else if (c <= -1.1e-274) {
tmp = y * (x * z);
} else if (c <= 8e-252) {
tmp = y * (i * -j);
} else if (c <= 4.9e+55) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (c <= (-5.6d-55)) then
tmp = t_1
else if (c <= (-1.1d-274)) then
tmp = y * (x * z)
else if (c <= 8d-252) then
tmp = y * (i * -j)
else if (c <= 4.9d+55) then
tmp = x * (y * z)
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 t_1 = c * (t * j);
double tmp;
if (c <= -5.6e-55) {
tmp = t_1;
} else if (c <= -1.1e-274) {
tmp = y * (x * z);
} else if (c <= 8e-252) {
tmp = y * (i * -j);
} else if (c <= 4.9e+55) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if c <= -5.6e-55: tmp = t_1 elif c <= -1.1e-274: tmp = y * (x * z) elif c <= 8e-252: tmp = y * (i * -j) elif c <= 4.9e+55: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (c <= -5.6e-55) tmp = t_1; elseif (c <= -1.1e-274) tmp = Float64(y * Float64(x * z)); elseif (c <= 8e-252) tmp = Float64(y * Float64(i * Float64(-j))); elseif (c <= 4.9e+55) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (c <= -5.6e-55) tmp = t_1; elseif (c <= -1.1e-274) tmp = y * (x * z); elseif (c <= 8e-252) tmp = y * (i * -j); elseif (c <= 4.9e+55) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -5.6e-55], t$95$1, If[LessEqual[c, -1.1e-274], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 8e-252], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 4.9e+55], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;c \leq -5.6 \cdot 10^{-55}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -1.1 \cdot 10^{-274}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 8 \cdot 10^{-252}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 4.9 \cdot 10^{+55}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -5.59999999999999968e-55 or 4.90000000000000015e55 < c Initial program 62.8%
sub-neg62.8%
associate-+l+62.8%
fma-def64.5%
+-commutative64.5%
fma-def66.1%
sub-neg66.1%
+-commutative66.1%
*-commutative66.1%
distribute-rgt-neg-in66.1%
fma-def67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
sub-neg67.0%
distribute-neg-in67.0%
unsub-neg67.0%
Simplified67.8%
Taylor expanded in y around 0 69.8%
mul-1-neg69.8%
*-commutative69.8%
distribute-rgt-neg-in69.8%
Simplified69.8%
Taylor expanded in c around 0 58.5%
Taylor expanded in c around inf 36.5%
if -5.59999999999999968e-55 < c < -1.09999999999999998e-274Initial program 75.4%
sub-neg75.4%
associate-+l+75.4%
fma-def75.4%
+-commutative75.4%
fma-def77.2%
sub-neg77.2%
+-commutative77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
fma-def77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
sub-neg77.2%
distribute-neg-in77.2%
unsub-neg77.2%
Simplified77.2%
Taylor expanded in y around inf 60.5%
+-commutative60.5%
*-commutative60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
Taylor expanded in z around inf 38.0%
if -1.09999999999999998e-274 < c < 7.99999999999999954e-252Initial program 90.7%
sub-neg90.7%
associate-+l+90.7%
fma-def90.6%
+-commutative90.6%
fma-def90.6%
sub-neg90.6%
+-commutative90.6%
*-commutative90.6%
distribute-rgt-neg-in90.6%
fma-def90.6%
*-commutative90.6%
distribute-rgt-neg-in90.6%
sub-neg90.6%
distribute-neg-in90.6%
unsub-neg90.6%
Simplified90.6%
Taylor expanded in y around inf 57.6%
+-commutative57.6%
*-commutative57.6%
+-commutative57.6%
mul-1-neg57.6%
unsub-neg57.6%
Simplified57.6%
Taylor expanded in z around 0 46.3%
*-commutative46.3%
associate-*r*46.3%
neg-mul-146.3%
Simplified46.3%
if 7.99999999999999954e-252 < c < 4.90000000000000015e55Initial program 70.8%
sub-neg70.8%
associate-+l+70.8%
fma-def70.8%
+-commutative70.8%
fma-def72.5%
sub-neg72.5%
+-commutative72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
fma-def72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
sub-neg72.5%
distribute-neg-in72.5%
unsub-neg72.5%
Simplified72.5%
Taylor expanded in x around inf 55.6%
Taylor expanded in y around inf 37.5%
*-commutative37.5%
Simplified37.5%
Final simplification37.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -4.5e-53) (not (<= t 4.9e+48))) (* c (* t j)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -4.5e-53) || !(t <= 4.9e+48)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if ((t <= (-4.5d-53)) .or. (.not. (t <= 4.9d+48))) then
tmp = c * (t * j)
else
tmp = a * (b * i)
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 tmp;
if ((t <= -4.5e-53) || !(t <= 4.9e+48)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -4.5e-53) or not (t <= 4.9e+48): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -4.5e-53) || !(t <= 4.9e+48)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -4.5e-53) || ~((t <= 4.9e+48))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -4.5e-53], N[Not[LessEqual[t, 4.9e+48]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.5 \cdot 10^{-53} \lor \neg \left(t \leq 4.9 \cdot 10^{+48}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -4.49999999999999985e-53 or 4.9000000000000003e48 < t Initial program 60.1%
sub-neg60.1%
associate-+l+60.1%
fma-def60.8%
+-commutative60.8%
fma-def62.4%
sub-neg62.4%
+-commutative62.4%
*-commutative62.4%
distribute-rgt-neg-in62.4%
fma-def63.2%
*-commutative63.2%
distribute-rgt-neg-in63.2%
sub-neg63.2%
distribute-neg-in63.2%
unsub-neg63.2%
Simplified64.0%
Taylor expanded in y around 0 57.0%
mul-1-neg57.0%
*-commutative57.0%
distribute-rgt-neg-in57.0%
Simplified57.0%
Taylor expanded in c around 0 55.4%
Taylor expanded in c around inf 33.1%
if -4.49999999999999985e-53 < t < 4.9000000000000003e48Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def80.0%
+-commutative80.0%
fma-def81.5%
sub-neg81.5%
+-commutative81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
fma-def81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
sub-neg81.5%
distribute-neg-in81.5%
unsub-neg81.5%
Simplified81.5%
Taylor expanded in a around inf 38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in b around -inf 27.9%
Final simplification30.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -4.3e-55) (not (<= c 9.5e+55))) (* c (* t j)) (* y (* x z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4.3e-55) || !(c <= 9.5e+55)) {
tmp = c * (t * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if ((c <= (-4.3d-55)) .or. (.not. (c <= 9.5d+55))) then
tmp = c * (t * j)
else
tmp = y * (x * z)
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 tmp;
if ((c <= -4.3e-55) || !(c <= 9.5e+55)) {
tmp = c * (t * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -4.3e-55) or not (c <= 9.5e+55): tmp = c * (t * j) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -4.3e-55) || !(c <= 9.5e+55)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -4.3e-55) || ~((c <= 9.5e+55))) tmp = c * (t * j); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -4.3e-55], N[Not[LessEqual[c, 9.5e+55]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.3 \cdot 10^{-55} \lor \neg \left(c \leq 9.5 \cdot 10^{+55}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if c < -4.3000000000000001e-55 or 9.49999999999999989e55 < c Initial program 62.8%
sub-neg62.8%
associate-+l+62.8%
fma-def64.5%
+-commutative64.5%
fma-def66.1%
sub-neg66.1%
+-commutative66.1%
*-commutative66.1%
distribute-rgt-neg-in66.1%
fma-def67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
sub-neg67.0%
distribute-neg-in67.0%
unsub-neg67.0%
Simplified67.8%
Taylor expanded in y around 0 69.8%
mul-1-neg69.8%
*-commutative69.8%
distribute-rgt-neg-in69.8%
Simplified69.8%
Taylor expanded in c around 0 58.5%
Taylor expanded in c around inf 36.5%
if -4.3000000000000001e-55 < c < 9.49999999999999989e55Initial program 76.0%
sub-neg76.0%
associate-+l+76.0%
fma-def75.9%
+-commutative75.9%
fma-def77.4%
sub-neg77.4%
+-commutative77.4%
*-commutative77.4%
distribute-rgt-neg-in77.4%
fma-def77.4%
*-commutative77.4%
distribute-rgt-neg-in77.4%
sub-neg77.4%
distribute-neg-in77.4%
unsub-neg77.4%
Simplified77.4%
Taylor expanded in y around inf 54.2%
+-commutative54.2%
*-commutative54.2%
+-commutative54.2%
mul-1-neg54.2%
unsub-neg54.2%
Simplified54.2%
Taylor expanded in z around inf 33.8%
Final simplification35.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -5.5e-55) (not (<= c 4.6e+55))) (* c (* t j)) (* z (* x y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -5.5e-55) || !(c <= 4.6e+55)) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if ((c <= (-5.5d-55)) .or. (.not. (c <= 4.6d+55))) then
tmp = c * (t * j)
else
tmp = z * (x * 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 tmp;
if ((c <= -5.5e-55) || !(c <= 4.6e+55)) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -5.5e-55) or not (c <= 4.6e+55): tmp = c * (t * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -5.5e-55) || !(c <= 4.6e+55)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -5.5e-55) || ~((c <= 4.6e+55))) tmp = c * (t * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -5.5e-55], N[Not[LessEqual[c, 4.6e+55]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.5 \cdot 10^{-55} \lor \neg \left(c \leq 4.6 \cdot 10^{+55}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if c < -5.4999999999999999e-55 or 4.59999999999999975e55 < c Initial program 62.8%
sub-neg62.8%
associate-+l+62.8%
fma-def64.5%
+-commutative64.5%
fma-def66.1%
sub-neg66.1%
+-commutative66.1%
*-commutative66.1%
distribute-rgt-neg-in66.1%
fma-def67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
sub-neg67.0%
distribute-neg-in67.0%
unsub-neg67.0%
Simplified67.8%
Taylor expanded in y around 0 69.8%
mul-1-neg69.8%
*-commutative69.8%
distribute-rgt-neg-in69.8%
Simplified69.8%
Taylor expanded in c around 0 58.5%
Taylor expanded in c around inf 36.5%
if -5.4999999999999999e-55 < c < 4.59999999999999975e55Initial program 76.0%
cancel-sign-sub76.0%
cancel-sign-sub-inv76.0%
*-commutative76.0%
*-commutative76.0%
remove-double-neg76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in z around inf 39.8%
Taylor expanded in y around inf 34.5%
Final simplification35.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= t -2.8e-53) (* j (* t c)) (if (<= t 9.2e+49) (* a (* b i)) (* c (* t j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -2.8e-53) {
tmp = j * (t * c);
} else if (t <= 9.2e+49) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (t <= (-2.8d-53)) then
tmp = j * (t * c)
else if (t <= 9.2d+49) then
tmp = a * (b * i)
else
tmp = c * (t * j)
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 tmp;
if (t <= -2.8e-53) {
tmp = j * (t * c);
} else if (t <= 9.2e+49) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -2.8e-53: tmp = j * (t * c) elif t <= 9.2e+49: tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -2.8e-53) tmp = Float64(j * Float64(t * c)); elseif (t <= 9.2e+49) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -2.8e-53) tmp = j * (t * c); elseif (t <= 9.2e+49) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -2.8e-53], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.2e+49], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.8 \cdot 10^{-53}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;t \leq 9.2 \cdot 10^{+49}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if t < -2.79999999999999985e-53Initial program 62.0%
sub-neg62.0%
associate-+l+62.0%
fma-def63.2%
+-commutative63.2%
fma-def64.4%
sub-neg64.4%
+-commutative64.4%
*-commutative64.4%
distribute-rgt-neg-in64.4%
fma-def65.7%
*-commutative65.7%
distribute-rgt-neg-in65.7%
sub-neg65.7%
distribute-neg-in65.7%
unsub-neg65.7%
Simplified66.9%
Taylor expanded in y around 0 54.8%
mul-1-neg54.8%
*-commutative54.8%
distribute-rgt-neg-in54.8%
Simplified54.8%
Taylor expanded in c around 0 53.5%
Taylor expanded in c around inf 29.8%
*-commutative29.8%
associate-*r*31.0%
*-commutative31.0%
associate-*r*30.9%
Simplified30.9%
if -2.79999999999999985e-53 < t < 9.20000000000000008e49Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def80.0%
+-commutative80.0%
fma-def81.5%
sub-neg81.5%
+-commutative81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
fma-def81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
sub-neg81.5%
distribute-neg-in81.5%
unsub-neg81.5%
Simplified81.5%
Taylor expanded in a around inf 38.4%
+-commutative38.4%
mul-1-neg38.4%
unsub-neg38.4%
*-commutative38.4%
Simplified38.4%
Taylor expanded in b around -inf 27.9%
if 9.20000000000000008e49 < t Initial program 56.6%
sub-neg56.6%
associate-+l+56.6%
fma-def56.6%
+-commutative56.6%
fma-def58.8%
sub-neg58.8%
+-commutative58.8%
*-commutative58.8%
distribute-rgt-neg-in58.8%
fma-def58.8%
*-commutative58.8%
distribute-rgt-neg-in58.8%
sub-neg58.8%
distribute-neg-in58.8%
unsub-neg58.8%
Simplified58.8%
Taylor expanded in y around 0 60.9%
mul-1-neg60.9%
*-commutative60.9%
distribute-rgt-neg-in60.9%
Simplified60.9%
Taylor expanded in c around 0 58.8%
Taylor expanded in c around inf 39.1%
Final simplification30.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -5.3e+213) (* c (* z b)) (* a (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -5.3e+213) {
tmp = c * (z * b);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: tmp
if (c <= (-5.3d+213)) then
tmp = c * (z * b)
else
tmp = a * (b * i)
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 tmp;
if (c <= -5.3e+213) {
tmp = c * (z * b);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -5.3e+213: tmp = c * (z * b) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -5.3e+213) tmp = Float64(c * Float64(z * b)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -5.3e+213) tmp = c * (z * b); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -5.3e+213], N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -5.3 \cdot 10^{+213}:\\
\;\;\;\;c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -5.2999999999999998e213Initial program 63.2%
sub-neg63.2%
associate-+l+63.2%
fma-def66.6%
+-commutative66.6%
fma-def66.6%
sub-neg66.6%
+-commutative66.6%
*-commutative66.6%
distribute-rgt-neg-in66.6%
fma-def66.6%
*-commutative66.6%
distribute-rgt-neg-in66.6%
sub-neg66.6%
distribute-neg-in66.6%
unsub-neg66.6%
Simplified66.6%
Taylor expanded in y around 0 69.9%
mul-1-neg69.9%
*-commutative69.9%
distribute-rgt-neg-in69.9%
Simplified69.9%
Taylor expanded in z around inf 18.2%
mul-1-neg18.2%
*-commutative18.2%
associate-*r*21.2%
distribute-rgt-neg-in21.2%
Simplified21.2%
expm1-log1p-u7.5%
expm1-udef7.4%
Applied egg-rr14.0%
expm1-def14.0%
expm1-log1p24.8%
Simplified24.8%
if -5.2999999999999998e213 < c Initial program 70.7%
sub-neg70.7%
associate-+l+70.7%
fma-def71.1%
+-commutative71.1%
fma-def72.9%
sub-neg72.9%
+-commutative72.9%
*-commutative72.9%
distribute-rgt-neg-in72.9%
fma-def73.3%
*-commutative73.3%
distribute-rgt-neg-in73.3%
sub-neg73.3%
distribute-neg-in73.3%
unsub-neg73.3%
Simplified73.7%
Taylor expanded in a around inf 39.2%
+-commutative39.2%
mul-1-neg39.2%
unsub-neg39.2%
*-commutative39.2%
Simplified39.2%
Taylor expanded in b around -inf 19.1%
Final simplification19.7%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 69.8%
sub-neg69.8%
associate-+l+69.8%
fma-def70.6%
+-commutative70.6%
fma-def72.1%
sub-neg72.1%
+-commutative72.1%
*-commutative72.1%
distribute-rgt-neg-in72.1%
fma-def72.5%
*-commutative72.5%
distribute-rgt-neg-in72.5%
sub-neg72.5%
distribute-neg-in72.5%
unsub-neg72.5%
Simplified72.9%
Taylor expanded in a around inf 40.1%
+-commutative40.1%
mul-1-neg40.1%
unsub-neg40.1%
*-commutative40.1%
Simplified40.1%
Taylor expanded in b around -inf 18.2%
Final simplification18.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) 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 t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
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 t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023181
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))