
(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 25 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 (- (* t c) (* y i))))
(if (<=
(+ (- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z)))) (* j t_1))
INFINITY)
(- (fma j t_1 (* x (- (* y z) (* t a)))) (* b (fma z c (* a (- i)))))
(* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * c) - (y * i);
double tmp;
if ((((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * t_1)) <= ((double) INFINITY)) {
tmp = fma(j, t_1, (x * ((y * z) - (t * a)))) - (b * fma(z, c, (a * -i)));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) + Float64(j * t_1)) <= Inf) tmp = Float64(fma(j, t_1, Float64(x * Float64(Float64(y * z) - Float64(t * a)))) - Float64(b * fma(z, c, Float64(a * Float64(-i))))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * t$95$1), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(j * t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c + N[(a * (-i)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
\mathbf{if}\;\left(b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) + j \cdot t_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_1, x \cdot \left(y \cdot z - t \cdot a\right)\right) - b \cdot \mathsf{fma}\left(z, c, a \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\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 90.6%
+-commutative90.6%
associate-+r-90.6%
fma-def90.6%
*-commutative90.6%
*-commutative90.6%
*-commutative90.6%
fma-neg90.6%
*-commutative90.6%
distribute-rgt-neg-in90.6%
Simplified90.6%
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%
sub-neg0.0%
associate-+l+0.0%
fma-def12.0%
+-commutative12.0%
fma-def16.0%
sub-neg16.0%
+-commutative16.0%
*-commutative16.0%
distribute-rgt-neg-in16.0%
fma-def16.0%
*-commutative16.0%
distribute-rgt-neg-in16.0%
sub-neg16.0%
distribute-neg-in16.0%
unsub-neg16.0%
Simplified16.0%
Taylor expanded in a around inf 46.8%
+-commutative46.8%
mul-1-neg46.8%
unsub-neg46.8%
Simplified46.8%
Final simplification82.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
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 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\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 90.6%
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%
sub-neg0.0%
associate-+l+0.0%
fma-def12.0%
+-commutative12.0%
fma-def16.0%
sub-neg16.0%
+-commutative16.0%
*-commutative16.0%
distribute-rgt-neg-in16.0%
fma-def16.0%
*-commutative16.0%
distribute-rgt-neg-in16.0%
sub-neg16.0%
distribute-neg-in16.0%
unsub-neg16.0%
Simplified16.0%
Taylor expanded in a around inf 46.8%
+-commutative46.8%
mul-1-neg46.8%
unsub-neg46.8%
Simplified46.8%
Final simplification82.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j)))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* a (* b i)))
(t_4 (+ t_3 (* c (- (* t j) (* z b))))))
(if (<= y -3.6e+184)
t_2
(if (<= y -1.5e+117)
(+ t_1 t_3)
(if (<= y -2e-13)
t_2
(if (<= y -2.8e-81)
t_4
(if (<= y -2.15e-205)
(* t (- (* c j) (* x a)))
(if (<= y -6.8e-287)
t_4
(if (<= y 2.8e-286)
(- t_1 (* a (* x t)))
(if (<= y 9.2e+89) t_4 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);
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * (b * i);
double t_4 = t_3 + (c * ((t * j) - (z * b)));
double tmp;
if (y <= -3.6e+184) {
tmp = t_2;
} else if (y <= -1.5e+117) {
tmp = t_1 + t_3;
} else if (y <= -2e-13) {
tmp = t_2;
} else if (y <= -2.8e-81) {
tmp = t_4;
} else if (y <= -2.15e-205) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -6.8e-287) {
tmp = t_4;
} else if (y <= 2.8e-286) {
tmp = t_1 - (a * (x * t));
} else if (y <= 9.2e+89) {
tmp = t_4;
} 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) :: t_4
real(8) :: tmp
t_1 = c * (t * j)
t_2 = y * ((x * z) - (i * j))
t_3 = a * (b * i)
t_4 = t_3 + (c * ((t * j) - (z * b)))
if (y <= (-3.6d+184)) then
tmp = t_2
else if (y <= (-1.5d+117)) then
tmp = t_1 + t_3
else if (y <= (-2d-13)) then
tmp = t_2
else if (y <= (-2.8d-81)) then
tmp = t_4
else if (y <= (-2.15d-205)) then
tmp = t * ((c * j) - (x * a))
else if (y <= (-6.8d-287)) then
tmp = t_4
else if (y <= 2.8d-286) then
tmp = t_1 - (a * (x * t))
else if (y <= 9.2d+89) then
tmp = t_4
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);
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * (b * i);
double t_4 = t_3 + (c * ((t * j) - (z * b)));
double tmp;
if (y <= -3.6e+184) {
tmp = t_2;
} else if (y <= -1.5e+117) {
tmp = t_1 + t_3;
} else if (y <= -2e-13) {
tmp = t_2;
} else if (y <= -2.8e-81) {
tmp = t_4;
} else if (y <= -2.15e-205) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -6.8e-287) {
tmp = t_4;
} else if (y <= 2.8e-286) {
tmp = t_1 - (a * (x * t));
} else if (y <= 9.2e+89) {
tmp = t_4;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = y * ((x * z) - (i * j)) t_3 = a * (b * i) t_4 = t_3 + (c * ((t * j) - (z * b))) tmp = 0 if y <= -3.6e+184: tmp = t_2 elif y <= -1.5e+117: tmp = t_1 + t_3 elif y <= -2e-13: tmp = t_2 elif y <= -2.8e-81: tmp = t_4 elif y <= -2.15e-205: tmp = t * ((c * j) - (x * a)) elif y <= -6.8e-287: tmp = t_4 elif y <= 2.8e-286: tmp = t_1 - (a * (x * t)) elif y <= 9.2e+89: tmp = t_4 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(a * Float64(b * i)) t_4 = Float64(t_3 + Float64(c * Float64(Float64(t * j) - Float64(z * b)))) tmp = 0.0 if (y <= -3.6e+184) tmp = t_2; elseif (y <= -1.5e+117) tmp = Float64(t_1 + t_3); elseif (y <= -2e-13) tmp = t_2; elseif (y <= -2.8e-81) tmp = t_4; elseif (y <= -2.15e-205) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= -6.8e-287) tmp = t_4; elseif (y <= 2.8e-286) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (y <= 9.2e+89) tmp = t_4; 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); t_2 = y * ((x * z) - (i * j)); t_3 = a * (b * i); t_4 = t_3 + (c * ((t * j) - (z * b))); tmp = 0.0; if (y <= -3.6e+184) tmp = t_2; elseif (y <= -1.5e+117) tmp = t_1 + t_3; elseif (y <= -2e-13) tmp = t_2; elseif (y <= -2.8e-81) tmp = t_4; elseif (y <= -2.15e-205) tmp = t * ((c * j) - (x * a)); elseif (y <= -6.8e-287) tmp = t_4; elseif (y <= 2.8e-286) tmp = t_1 - (a * (x * t)); elseif (y <= 9.2e+89) tmp = t_4; 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[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(t$95$3 + N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.6e+184], t$95$2, If[LessEqual[y, -1.5e+117], N[(t$95$1 + t$95$3), $MachinePrecision], If[LessEqual[y, -2e-13], t$95$2, If[LessEqual[y, -2.8e-81], t$95$4, If[LessEqual[y, -2.15e-205], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -6.8e-287], t$95$4, If[LessEqual[y, 2.8e-286], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.2e+89], t$95$4, t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := a \cdot \left(b \cdot i\right)\\
t_4 := t_3 + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;y \leq -3.6 \cdot 10^{+184}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.5 \cdot 10^{+117}:\\
\;\;\;\;t_1 + t_3\\
\mathbf{elif}\;y \leq -2 \cdot 10^{-13}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-81}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq -2.15 \cdot 10^{-205}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq -6.8 \cdot 10^{-287}:\\
\;\;\;\;t_4\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-286}:\\
\;\;\;\;t_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{+89}:\\
\;\;\;\;t_4\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -3.60000000000000014e184 or -1.5e117 < y < -2.0000000000000001e-13 or 9.1999999999999996e89 < y Initial program 64.5%
sub-neg64.5%
associate-+l+64.5%
fma-def65.6%
+-commutative65.6%
fma-def65.6%
sub-neg65.6%
+-commutative65.6%
*-commutative65.6%
distribute-rgt-neg-in65.6%
fma-def65.6%
*-commutative65.6%
distribute-rgt-neg-in65.6%
sub-neg65.6%
distribute-neg-in65.6%
unsub-neg65.6%
Simplified65.6%
Taylor expanded in y around inf 75.7%
+-commutative75.7%
*-commutative75.7%
+-commutative75.7%
mul-1-neg75.7%
unsub-neg75.7%
Simplified75.7%
if -3.60000000000000014e184 < y < -1.5e117Initial program 49.9%
cancel-sign-sub49.9%
cancel-sign-sub-inv49.9%
*-commutative49.9%
*-commutative49.9%
remove-double-neg49.9%
*-commutative49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in x around 0 51.0%
Taylor expanded in y around 0 65.4%
Taylor expanded in c around 0 65.4%
Taylor expanded in z around 0 72.5%
if -2.0000000000000001e-13 < y < -2.7999999999999999e-81 or -2.15e-205 < y < -6.7999999999999997e-287 or 2.8e-286 < y < 9.1999999999999996e89Initial program 81.6%
cancel-sign-sub81.6%
cancel-sign-sub-inv81.6%
*-commutative81.6%
*-commutative81.6%
remove-double-neg81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in x around 0 71.7%
Taylor expanded in y around 0 71.5%
Taylor expanded in c around 0 68.3%
if -2.7999999999999999e-81 < y < -2.15e-205Initial program 77.4%
sub-neg77.4%
associate-+l+77.4%
fma-def81.3%
+-commutative81.3%
fma-def81.3%
sub-neg81.3%
+-commutative81.3%
*-commutative81.3%
distribute-rgt-neg-in81.3%
fma-def81.3%
*-commutative81.3%
distribute-rgt-neg-in81.3%
sub-neg81.3%
distribute-neg-in81.3%
unsub-neg81.3%
Simplified81.3%
Taylor expanded in t around inf 70.4%
*-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
if -6.7999999999999997e-287 < y < 2.8e-286Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in b around 0 74.6%
Taylor expanded in y around 0 99.6%
Final simplification72.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j)))
(t_2 (+ t_1 (* b (- (* a i) (* z c)))))
(t_3 (* y (- (* x z) (* i j))))
(t_4 (* a (* b i))))
(if (<= y -2e+180)
t_3
(if (<= y -4e+116)
(+ t_1 t_4)
(if (<= y -1.85e-13)
t_3
(if (<= y -3e-83)
t_2
(if (<= y -6e-264)
(* t (- (* c j) (* x a)))
(if (<= y -3e-287)
t_2
(if (<= y 2.8e-286)
(- t_1 (* a (* x t)))
(if (<= y 1.15e+36)
(+ t_4 (* c (- (* t j) (* z b))))
(if (<= y 1.7e+90) (* a (- (* b i) (* x t))) 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 = c * (t * j);
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double t_3 = y * ((x * z) - (i * j));
double t_4 = a * (b * i);
double tmp;
if (y <= -2e+180) {
tmp = t_3;
} else if (y <= -4e+116) {
tmp = t_1 + t_4;
} else if (y <= -1.85e-13) {
tmp = t_3;
} else if (y <= -3e-83) {
tmp = t_2;
} else if (y <= -6e-264) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -3e-287) {
tmp = t_2;
} else if (y <= 2.8e-286) {
tmp = t_1 - (a * (x * t));
} else if (y <= 1.15e+36) {
tmp = t_4 + (c * ((t * j) - (z * b)));
} else if (y <= 1.7e+90) {
tmp = a * ((b * i) - (x * t));
} 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) :: t_4
real(8) :: tmp
t_1 = c * (t * j)
t_2 = t_1 + (b * ((a * i) - (z * c)))
t_3 = y * ((x * z) - (i * j))
t_4 = a * (b * i)
if (y <= (-2d+180)) then
tmp = t_3
else if (y <= (-4d+116)) then
tmp = t_1 + t_4
else if (y <= (-1.85d-13)) then
tmp = t_3
else if (y <= (-3d-83)) then
tmp = t_2
else if (y <= (-6d-264)) then
tmp = t * ((c * j) - (x * a))
else if (y <= (-3d-287)) then
tmp = t_2
else if (y <= 2.8d-286) then
tmp = t_1 - (a * (x * t))
else if (y <= 1.15d+36) then
tmp = t_4 + (c * ((t * j) - (z * b)))
else if (y <= 1.7d+90) then
tmp = a * ((b * i) - (x * t))
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 = c * (t * j);
double t_2 = t_1 + (b * ((a * i) - (z * c)));
double t_3 = y * ((x * z) - (i * j));
double t_4 = a * (b * i);
double tmp;
if (y <= -2e+180) {
tmp = t_3;
} else if (y <= -4e+116) {
tmp = t_1 + t_4;
} else if (y <= -1.85e-13) {
tmp = t_3;
} else if (y <= -3e-83) {
tmp = t_2;
} else if (y <= -6e-264) {
tmp = t * ((c * j) - (x * a));
} else if (y <= -3e-287) {
tmp = t_2;
} else if (y <= 2.8e-286) {
tmp = t_1 - (a * (x * t));
} else if (y <= 1.15e+36) {
tmp = t_4 + (c * ((t * j) - (z * b)));
} else if (y <= 1.7e+90) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = t_1 + (b * ((a * i) - (z * c))) t_3 = y * ((x * z) - (i * j)) t_4 = a * (b * i) tmp = 0 if y <= -2e+180: tmp = t_3 elif y <= -4e+116: tmp = t_1 + t_4 elif y <= -1.85e-13: tmp = t_3 elif y <= -3e-83: tmp = t_2 elif y <= -6e-264: tmp = t * ((c * j) - (x * a)) elif y <= -3e-287: tmp = t_2 elif y <= 2.8e-286: tmp = t_1 - (a * (x * t)) elif y <= 1.15e+36: tmp = t_4 + (c * ((t * j) - (z * b))) elif y <= 1.7e+90: tmp = a * ((b * i) - (x * t)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_4 = Float64(a * Float64(b * i)) tmp = 0.0 if (y <= -2e+180) tmp = t_3; elseif (y <= -4e+116) tmp = Float64(t_1 + t_4); elseif (y <= -1.85e-13) tmp = t_3; elseif (y <= -3e-83) tmp = t_2; elseif (y <= -6e-264) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= -3e-287) tmp = t_2; elseif (y <= 2.8e-286) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (y <= 1.15e+36) tmp = Float64(t_4 + Float64(c * Float64(Float64(t * j) - Float64(z * b)))); elseif (y <= 1.7e+90) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); t_2 = t_1 + (b * ((a * i) - (z * c))); t_3 = y * ((x * z) - (i * j)); t_4 = a * (b * i); tmp = 0.0; if (y <= -2e+180) tmp = t_3; elseif (y <= -4e+116) tmp = t_1 + t_4; elseif (y <= -1.85e-13) tmp = t_3; elseif (y <= -3e-83) tmp = t_2; elseif (y <= -6e-264) tmp = t * ((c * j) - (x * a)); elseif (y <= -3e-287) tmp = t_2; elseif (y <= 2.8e-286) tmp = t_1 - (a * (x * t)); elseif (y <= 1.15e+36) tmp = t_4 + (c * ((t * j) - (z * b))); elseif (y <= 1.7e+90) tmp = a * ((b * i) - (x * t)); else tmp = t_3; 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]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+180], t$95$3, If[LessEqual[y, -4e+116], N[(t$95$1 + t$95$4), $MachinePrecision], If[LessEqual[y, -1.85e-13], t$95$3, If[LessEqual[y, -3e-83], t$95$2, If[LessEqual[y, -6e-264], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -3e-287], t$95$2, If[LessEqual[y, 2.8e-286], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e+36], N[(t$95$4 + N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+90], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_4 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;y \leq -2 \cdot 10^{+180}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -4 \cdot 10^{+116}:\\
\;\;\;\;t_1 + t_4\\
\mathbf{elif}\;y \leq -1.85 \cdot 10^{-13}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-83}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -6 \cdot 10^{-264}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq -3 \cdot 10^{-287}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-286}:\\
\;\;\;\;t_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+36}:\\
\;\;\;\;t_4 + c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+90}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -2e180 or -4.00000000000000006e116 < y < -1.84999999999999994e-13 or 1.70000000000000009e90 < y Initial program 65.1%
sub-neg65.1%
associate-+l+65.1%
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 76.6%
+-commutative76.6%
*-commutative76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
Simplified76.6%
if -2e180 < y < -4.00000000000000006e116Initial program 49.9%
cancel-sign-sub49.9%
cancel-sign-sub-inv49.9%
*-commutative49.9%
*-commutative49.9%
remove-double-neg49.9%
*-commutative49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in x around 0 51.0%
Taylor expanded in y around 0 65.4%
Taylor expanded in c around 0 65.4%
Taylor expanded in z around 0 72.5%
if -1.84999999999999994e-13 < y < -3.0000000000000001e-83 or -6.0000000000000001e-264 < y < -2.99999999999999992e-287Initial program 83.8%
cancel-sign-sub83.8%
cancel-sign-sub-inv83.8%
*-commutative83.8%
*-commutative83.8%
remove-double-neg83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in x around 0 77.4%
Taylor expanded in y around 0 81.0%
if -3.0000000000000001e-83 < y < -6.0000000000000001e-264Initial program 77.7%
sub-neg77.7%
associate-+l+77.7%
fma-def80.2%
+-commutative80.2%
fma-def80.2%
sub-neg80.2%
+-commutative80.2%
*-commutative80.2%
distribute-rgt-neg-in80.2%
fma-def80.2%
*-commutative80.2%
distribute-rgt-neg-in80.2%
sub-neg80.2%
distribute-neg-in80.2%
unsub-neg80.2%
Simplified80.2%
Taylor expanded in t around inf 63.6%
*-commutative63.6%
mul-1-neg63.6%
unsub-neg63.6%
Simplified63.6%
if -2.99999999999999992e-287 < y < 2.8e-286Initial program 62.1%
cancel-sign-sub62.1%
cancel-sign-sub-inv62.1%
*-commutative62.1%
*-commutative62.1%
remove-double-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in b around 0 74.6%
Taylor expanded in y around 0 99.6%
if 2.8e-286 < y < 1.14999999999999998e36Initial program 80.9%
cancel-sign-sub80.9%
cancel-sign-sub-inv80.9%
*-commutative80.9%
*-commutative80.9%
remove-double-neg80.9%
*-commutative80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in x around 0 71.7%
Taylor expanded in y around 0 71.6%
Taylor expanded in c around 0 72.7%
if 1.14999999999999998e36 < y < 1.70000000000000009e90Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 71.7%
+-commutative71.7%
mul-1-neg71.7%
unsub-neg71.7%
Simplified71.7%
Final simplification74.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -2.1e+124) (not (<= x 1.7e+134))) (* x (- (* y z) (* t a))) (+ (- (* a (- (* b i) (* x t))) (* c (* z b))) (* j (- (* t c) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -2.1e+124) || !(x <= 1.7e+134)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = ((a * ((b * i) - (x * t))) - (c * (z * b))) + (j * ((t * c) - (y * 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 ((x <= (-2.1d+124)) .or. (.not. (x <= 1.7d+134))) then
tmp = x * ((y * z) - (t * a))
else
tmp = ((a * ((b * i) - (x * t))) - (c * (z * b))) + (j * ((t * c) - (y * 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 ((x <= -2.1e+124) || !(x <= 1.7e+134)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = ((a * ((b * i) - (x * t))) - (c * (z * b))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -2.1e+124) or not (x <= 1.7e+134): tmp = x * ((y * z) - (t * a)) else: tmp = ((a * ((b * i) - (x * t))) - (c * (z * b))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -2.1e+124) || !(x <= 1.7e+134)) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = Float64(Float64(Float64(a * Float64(Float64(b * i) - Float64(x * t))) - Float64(c * Float64(z * b))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -2.1e+124) || ~((x <= 1.7e+134))) tmp = x * ((y * z) - (t * a)); else tmp = ((a * ((b * i) - (x * t))) - (c * (z * b))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -2.1e+124], N[Not[LessEqual[x, 1.7e+134]], $MachinePrecision]], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.1 \cdot 10^{+124} \lor \neg \left(x \leq 1.7 \cdot 10^{+134}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot \left(b \cdot i - x \cdot t\right) - c \cdot \left(z \cdot b\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if x < -2.10000000000000011e124 or 1.70000000000000009e134 < x Initial program 73.0%
sub-neg73.0%
associate-+l+73.0%
fma-def80.5%
+-commutative80.5%
fma-def82.0%
sub-neg82.0%
+-commutative82.0%
*-commutative82.0%
distribute-rgt-neg-in82.0%
fma-def82.0%
*-commutative82.0%
distribute-rgt-neg-in82.0%
sub-neg82.0%
distribute-neg-in82.0%
unsub-neg82.0%
Simplified82.0%
Taylor expanded in x around inf 75.1%
if -2.10000000000000011e124 < x < 1.70000000000000009e134Initial program 72.8%
cancel-sign-sub72.8%
cancel-sign-sub-inv72.8%
*-commutative72.8%
*-commutative72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in y around 0 75.6%
cancel-sign-sub-inv75.6%
*-commutative75.6%
distribute-lft-neg-in75.6%
distribute-rgt-neg-in75.6%
neg-sub075.6%
associate-+l-75.6%
neg-sub075.6%
+-commutative75.6%
sub-neg75.6%
distribute-rgt-out--74.6%
associate-*r*77.2%
associate-*r*77.2%
*-commutative77.2%
sub-neg77.2%
associate-+l+77.2%
Simplified76.7%
Final simplification76.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (+ (* c (* t j)) (* b (- (* a i) (* z c))))))
(if (<= y -1.1e+176)
t_1
(if (<= y -3.5e+116)
(+ t_2 (* b (* a i)))
(if (<= y -1.35e-14)
t_1
(if (<= y -2.8e-84)
t_3
(if (<= y -2.1e-209) t_2 (if (<= y 2.2e+88) t_3 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 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = (c * (t * j)) + (b * ((a * i) - (z * c)));
double tmp;
if (y <= -1.1e+176) {
tmp = t_1;
} else if (y <= -3.5e+116) {
tmp = t_2 + (b * (a * i));
} else if (y <= -1.35e-14) {
tmp = t_1;
} else if (y <= -2.8e-84) {
tmp = t_3;
} else if (y <= -2.1e-209) {
tmp = t_2;
} else if (y <= 2.2e+88) {
tmp = t_3;
} 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) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = t * ((c * j) - (x * a))
t_3 = (c * (t * j)) + (b * ((a * i) - (z * c)))
if (y <= (-1.1d+176)) then
tmp = t_1
else if (y <= (-3.5d+116)) then
tmp = t_2 + (b * (a * i))
else if (y <= (-1.35d-14)) then
tmp = t_1
else if (y <= (-2.8d-84)) then
tmp = t_3
else if (y <= (-2.1d-209)) then
tmp = t_2
else if (y <= 2.2d+88) then
tmp = t_3
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 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = (c * (t * j)) + (b * ((a * i) - (z * c)));
double tmp;
if (y <= -1.1e+176) {
tmp = t_1;
} else if (y <= -3.5e+116) {
tmp = t_2 + (b * (a * i));
} else if (y <= -1.35e-14) {
tmp = t_1;
} else if (y <= -2.8e-84) {
tmp = t_3;
} else if (y <= -2.1e-209) {
tmp = t_2;
} else if (y <= 2.2e+88) {
tmp = t_3;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = t * ((c * j) - (x * a)) t_3 = (c * (t * j)) + (b * ((a * i) - (z * c))) tmp = 0 if y <= -1.1e+176: tmp = t_1 elif y <= -3.5e+116: tmp = t_2 + (b * (a * i)) elif y <= -1.35e-14: tmp = t_1 elif y <= -2.8e-84: tmp = t_3 elif y <= -2.1e-209: tmp = t_2 elif y <= 2.2e+88: tmp = t_3 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (y <= -1.1e+176) tmp = t_1; elseif (y <= -3.5e+116) tmp = Float64(t_2 + Float64(b * Float64(a * i))); elseif (y <= -1.35e-14) tmp = t_1; elseif (y <= -2.8e-84) tmp = t_3; elseif (y <= -2.1e-209) tmp = t_2; elseif (y <= 2.2e+88) tmp = t_3; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = t * ((c * j) - (x * a)); t_3 = (c * (t * j)) + (b * ((a * i) - (z * c))); tmp = 0.0; if (y <= -1.1e+176) tmp = t_1; elseif (y <= -3.5e+116) tmp = t_2 + (b * (a * i)); elseif (y <= -1.35e-14) tmp = t_1; elseif (y <= -2.8e-84) tmp = t_3; elseif (y <= -2.1e-209) tmp = t_2; elseif (y <= 2.2e+88) tmp = t_3; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.1e+176], t$95$1, If[LessEqual[y, -3.5e+116], N[(t$95$2 + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.35e-14], t$95$1, If[LessEqual[y, -2.8e-84], t$95$3, If[LessEqual[y, -2.1e-209], t$95$2, If[LessEqual[y, 2.2e+88], t$95$3, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;y \leq -1.1 \cdot 10^{+176}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{+116}:\\
\;\;\;\;t_2 + b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -2.8 \cdot 10^{-84}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -2.1 \cdot 10^{-209}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{+88}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.10000000000000004e176 or -3.49999999999999997e116 < y < -1.3499999999999999e-14 or 2.20000000000000009e88 < y Initial program 64.1%
sub-neg64.1%
associate-+l+64.1%
fma-def65.2%
+-commutative65.2%
fma-def65.2%
sub-neg65.2%
+-commutative65.2%
*-commutative65.2%
distribute-rgt-neg-in65.2%
fma-def65.2%
*-commutative65.2%
distribute-rgt-neg-in65.2%
sub-neg65.2%
distribute-neg-in65.2%
unsub-neg65.2%
Simplified65.2%
Taylor expanded in y around inf 75.2%
+-commutative75.2%
*-commutative75.2%
+-commutative75.2%
mul-1-neg75.2%
unsub-neg75.2%
Simplified75.2%
if -1.10000000000000004e176 < y < -3.49999999999999997e116Initial program 49.9%
+-commutative49.9%
fma-def58.2%
*-commutative58.2%
*-commutative58.2%
*-commutative58.2%
*-commutative58.2%
Simplified58.2%
Taylor expanded in t around 0 49.9%
Taylor expanded in y around 0 75.2%
Taylor expanded in c around 0 83.5%
neg-mul-183.5%
distribute-rgt-neg-in83.5%
Simplified83.5%
if -1.3499999999999999e-14 < y < -2.79999999999999982e-84 or -2.09999999999999996e-209 < y < 2.20000000000000009e88Initial program 80.4%
cancel-sign-sub80.4%
cancel-sign-sub-inv80.4%
*-commutative80.4%
*-commutative80.4%
remove-double-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in x around 0 70.3%
Taylor expanded in y around 0 70.2%
if -2.79999999999999982e-84 < y < -2.09999999999999996e-209Initial program 77.4%
sub-neg77.4%
associate-+l+77.4%
fma-def81.3%
+-commutative81.3%
fma-def81.3%
sub-neg81.3%
+-commutative81.3%
*-commutative81.3%
distribute-rgt-neg-in81.3%
fma-def81.3%
*-commutative81.3%
distribute-rgt-neg-in81.3%
sub-neg81.3%
distribute-neg-in81.3%
unsub-neg81.3%
Simplified81.3%
Taylor expanded in t around inf 70.4%
*-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
Simplified70.4%
Final simplification72.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ (* c (* t j)) t_1))
(t_3 (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
(if (<= b -7.4e+33)
t_2
(if (<= b 1.35e-49)
t_3
(if (<= b 3.4e+38)
(- t_1 (* j (- (* y i) (* t c))))
(if (<= b 1.7e+146) 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 = b * ((a * i) - (z * c));
double t_2 = (c * (t * j)) + t_1;
double t_3 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
double tmp;
if (b <= -7.4e+33) {
tmp = t_2;
} else if (b <= 1.35e-49) {
tmp = t_3;
} else if (b <= 3.4e+38) {
tmp = t_1 - (j * ((y * i) - (t * c)));
} else if (b <= 1.7e+146) {
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 = b * ((a * i) - (z * c))
t_2 = (c * (t * j)) + t_1
t_3 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
if (b <= (-7.4d+33)) then
tmp = t_2
else if (b <= 1.35d-49) then
tmp = t_3
else if (b <= 3.4d+38) then
tmp = t_1 - (j * ((y * i) - (t * c)))
else if (b <= 1.7d+146) 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 = b * ((a * i) - (z * c));
double t_2 = (c * (t * j)) + t_1;
double t_3 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
double tmp;
if (b <= -7.4e+33) {
tmp = t_2;
} else if (b <= 1.35e-49) {
tmp = t_3;
} else if (b <= 3.4e+38) {
tmp = t_1 - (j * ((y * i) - (t * c)));
} else if (b <= 1.7e+146) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = (c * (t * j)) + t_1 t_3 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) tmp = 0 if b <= -7.4e+33: tmp = t_2 elif b <= 1.35e-49: tmp = t_3 elif b <= 3.4e+38: tmp = t_1 - (j * ((y * i) - (t * c))) elif b <= 1.7e+146: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(c * Float64(t * j)) + t_1) t_3 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (b <= -7.4e+33) tmp = t_2; elseif (b <= 1.35e-49) tmp = t_3; elseif (b <= 3.4e+38) tmp = Float64(t_1 - Float64(j * Float64(Float64(y * i) - Float64(t * c)))); elseif (b <= 1.7e+146) 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 = b * ((a * i) - (z * c)); t_2 = (c * (t * j)) + t_1; t_3 = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (b <= -7.4e+33) tmp = t_2; elseif (b <= 1.35e-49) tmp = t_3; elseif (b <= 3.4e+38) tmp = t_1 - (j * ((y * i) - (t * c))); elseif (b <= 1.7e+146) 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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = 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]}, If[LessEqual[b, -7.4e+33], t$95$2, If[LessEqual[b, 1.35e-49], t$95$3, If[LessEqual[b, 3.4e+38], N[(t$95$1 - N[(j * N[(N[(y * i), $MachinePrecision] - N[(t * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.7e+146], t$95$3, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(t \cdot j\right) + t_1\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -7.4 \cdot 10^{+33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.35 \cdot 10^{-49}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 3.4 \cdot 10^{+38}:\\
\;\;\;\;t_1 - j \cdot \left(y \cdot i - t \cdot c\right)\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{+146}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -7.3999999999999997e33 or 1.69999999999999995e146 < b Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in x around 0 72.0%
Taylor expanded in y around 0 78.4%
if -7.3999999999999997e33 < b < 1.35e-49 or 3.39999999999999996e38 < b < 1.69999999999999995e146Initial program 73.4%
cancel-sign-sub73.4%
cancel-sign-sub-inv73.4%
*-commutative73.4%
*-commutative73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in b around 0 74.7%
if 1.35e-49 < b < 3.39999999999999996e38Initial program 74.3%
cancel-sign-sub74.3%
cancel-sign-sub-inv74.3%
*-commutative74.3%
*-commutative74.3%
remove-double-neg74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in x around 0 76.9%
Final simplification76.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -2e+42)
t_2
(if (<= a -8.5e-71)
(* t (* c j))
(if (<= a -1.95e-157)
(* y (* x z))
(if (<= a 2.3e-274)
t_1
(if (<= a 8.5e-174)
(* (* i j) (- y))
(if (<= a 5.6e-61)
t_1
(if (<= a 3.2e-49)
(* c (- (* z b)))
(if (<= a 2.6e-36) (* i (* y (- j))) 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);
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2e+42) {
tmp = t_2;
} else if (a <= -8.5e-71) {
tmp = t * (c * j);
} else if (a <= -1.95e-157) {
tmp = y * (x * z);
} else if (a <= 2.3e-274) {
tmp = t_1;
} else if (a <= 8.5e-174) {
tmp = (i * j) * -y;
} else if (a <= 5.6e-61) {
tmp = t_1;
} else if (a <= 3.2e-49) {
tmp = c * -(z * b);
} else if (a <= 2.6e-36) {
tmp = i * (y * -j);
} 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)
t_2 = a * ((b * i) - (x * t))
if (a <= (-2d+42)) then
tmp = t_2
else if (a <= (-8.5d-71)) then
tmp = t * (c * j)
else if (a <= (-1.95d-157)) then
tmp = y * (x * z)
else if (a <= 2.3d-274) then
tmp = t_1
else if (a <= 8.5d-174) then
tmp = (i * j) * -y
else if (a <= 5.6d-61) then
tmp = t_1
else if (a <= 3.2d-49) then
tmp = c * -(z * b)
else if (a <= 2.6d-36) then
tmp = i * (y * -j)
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);
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2e+42) {
tmp = t_2;
} else if (a <= -8.5e-71) {
tmp = t * (c * j);
} else if (a <= -1.95e-157) {
tmp = y * (x * z);
} else if (a <= 2.3e-274) {
tmp = t_1;
} else if (a <= 8.5e-174) {
tmp = (i * j) * -y;
} else if (a <= 5.6e-61) {
tmp = t_1;
} else if (a <= 3.2e-49) {
tmp = c * -(z * b);
} else if (a <= 2.6e-36) {
tmp = i * (y * -j);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2e+42: tmp = t_2 elif a <= -8.5e-71: tmp = t * (c * j) elif a <= -1.95e-157: tmp = y * (x * z) elif a <= 2.3e-274: tmp = t_1 elif a <= 8.5e-174: tmp = (i * j) * -y elif a <= 5.6e-61: tmp = t_1 elif a <= 3.2e-49: tmp = c * -(z * b) elif a <= 2.6e-36: tmp = i * (y * -j) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2e+42) tmp = t_2; elseif (a <= -8.5e-71) tmp = Float64(t * Float64(c * j)); elseif (a <= -1.95e-157) tmp = Float64(y * Float64(x * z)); elseif (a <= 2.3e-274) tmp = t_1; elseif (a <= 8.5e-174) tmp = Float64(Float64(i * j) * Float64(-y)); elseif (a <= 5.6e-61) tmp = t_1; elseif (a <= 3.2e-49) tmp = Float64(c * Float64(-Float64(z * b))); elseif (a <= 2.6e-36) tmp = Float64(i * Float64(y * Float64(-j))); 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); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2e+42) tmp = t_2; elseif (a <= -8.5e-71) tmp = t * (c * j); elseif (a <= -1.95e-157) tmp = y * (x * z); elseif (a <= 2.3e-274) tmp = t_1; elseif (a <= 8.5e-174) tmp = (i * j) * -y; elseif (a <= 5.6e-61) tmp = t_1; elseif (a <= 3.2e-49) tmp = c * -(z * b); elseif (a <= 2.6e-36) tmp = i * (y * -j); 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[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2e+42], t$95$2, If[LessEqual[a, -8.5e-71], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.95e-157], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.3e-274], t$95$1, If[LessEqual[a, 8.5e-174], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], If[LessEqual[a, 5.6e-61], t$95$1, If[LessEqual[a, 3.2e-49], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[a, 2.6e-36], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2 \cdot 10^{+42}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{-71}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-157}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;a \leq 2.3 \cdot 10^{-274}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-174}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{elif}\;a \leq 5.6 \cdot 10^{-61}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-49}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-36}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -2.00000000000000009e42 or 2.6e-36 < a Initial program 64.9%
sub-neg64.9%
associate-+l+64.9%
fma-def69.0%
+-commutative69.0%
fma-def70.7%
sub-neg70.7%
+-commutative70.7%
*-commutative70.7%
distribute-rgt-neg-in70.7%
fma-def70.7%
*-commutative70.7%
distribute-rgt-neg-in70.7%
sub-neg70.7%
distribute-neg-in70.7%
unsub-neg70.7%
Simplified70.7%
Taylor expanded in a around inf 62.7%
+-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
Simplified62.7%
if -2.00000000000000009e42 < a < -8.49999999999999988e-71Initial program 71.9%
+-commutative71.9%
fma-def75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in t around 0 71.8%
Taylor expanded in y around 0 72.2%
Taylor expanded in j around inf 44.5%
associate-*r*41.6%
*-commutative41.6%
associate-*l*44.6%
Simplified44.6%
if -8.49999999999999988e-71 < a < -1.94999999999999999e-157Initial program 88.2%
sub-neg88.2%
associate-+l+88.2%
fma-def88.2%
+-commutative88.2%
fma-def88.2%
sub-neg88.2%
+-commutative88.2%
*-commutative88.2%
distribute-rgt-neg-in88.2%
fma-def88.2%
*-commutative88.2%
distribute-rgt-neg-in88.2%
sub-neg88.2%
distribute-neg-in88.2%
unsub-neg88.2%
Simplified88.2%
Taylor expanded in y around inf 70.8%
+-commutative70.8%
*-commutative70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
Taylor expanded in z around inf 42.6%
if -1.94999999999999999e-157 < a < 2.29999999999999996e-274 or 8.4999999999999996e-174 < a < 5.6000000000000002e-61Initial program 84.3%
+-commutative84.3%
fma-def84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in t around 0 78.8%
Taylor expanded in y around 0 65.7%
Taylor expanded in j around inf 42.0%
if 2.29999999999999996e-274 < a < 8.4999999999999996e-174Initial program 79.9%
sub-neg79.9%
associate-+l+79.9%
fma-def79.9%
+-commutative79.9%
fma-def79.9%
sub-neg79.9%
+-commutative79.9%
*-commutative79.9%
distribute-rgt-neg-in79.9%
fma-def79.9%
*-commutative79.9%
distribute-rgt-neg-in79.9%
sub-neg79.9%
distribute-neg-in79.9%
unsub-neg79.9%
Simplified79.9%
Taylor expanded in y around inf 55.9%
+-commutative55.9%
*-commutative55.9%
+-commutative55.9%
mul-1-neg55.9%
unsub-neg55.9%
Simplified55.9%
Taylor expanded in z around 0 40.9%
mul-1-neg40.9%
distribute-rgt-neg-in40.9%
distribute-rgt-neg-in40.9%
Simplified40.9%
if 5.6000000000000002e-61 < a < 3.20000000000000002e-49Initial program 51.1%
cancel-sign-sub51.1%
cancel-sign-sub-inv51.1%
*-commutative51.1%
*-commutative51.1%
remove-double-neg51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in x around 0 84.5%
Taylor expanded in z around inf 83.6%
mul-1-neg83.6%
distribute-rgt-neg-in83.6%
Simplified83.6%
if 3.20000000000000002e-49 < a < 2.6e-36Initial program 100.0%
sub-neg100.0%
associate-+l+100.0%
fma-def100.0%
+-commutative100.0%
fma-def100.0%
sub-neg100.0%
+-commutative100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
fma-def100.0%
*-commutative100.0%
distribute-rgt-neg-in100.0%
sub-neg100.0%
distribute-neg-in100.0%
unsub-neg100.0%
Simplified100.0%
Taylor expanded in y around inf 68.0%
+-commutative68.0%
*-commutative68.0%
+-commutative68.0%
mul-1-neg68.0%
unsub-neg68.0%
Simplified68.0%
Taylor expanded in z around 0 68.0%
*-commutative68.0%
associate-*r*68.0%
neg-mul-168.0%
distribute-lft-neg-in68.0%
associate-*r*100.0%
Simplified100.0%
Final simplification53.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (- t_1 (* t (- (* x a) (* c j))))))
(if (<= b -3.8e-50)
t_2
(if (<= b 2.7e-42)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(if (<= b 4.5e+195) t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t_1 - (t * ((x * a) - (c * j)));
double tmp;
if (b <= -3.8e-50) {
tmp = t_2;
} else if (b <= 2.7e-42) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (b <= 4.5e+195) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t_1 - (t * ((x * a) - (c * j)))
if (b <= (-3.8d-50)) then
tmp = t_2
else if (b <= 2.7d-42) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else if (b <= 4.5d+195) then
tmp = t_2
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 = b * ((a * i) - (z * c));
double t_2 = t_1 - (t * ((x * a) - (c * j)));
double tmp;
if (b <= -3.8e-50) {
tmp = t_2;
} else if (b <= 2.7e-42) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (b <= 4.5e+195) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t_1 - (t * ((x * a) - (c * j))) tmp = 0 if b <= -3.8e-50: tmp = t_2 elif b <= 2.7e-42: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) elif b <= 4.5e+195: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t_1 - Float64(t * Float64(Float64(x * a) - Float64(c * j)))) tmp = 0.0 if (b <= -3.8e-50) tmp = t_2; elseif (b <= 2.7e-42) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); elseif (b <= 4.5e+195) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t_1 - (t * ((x * a) - (c * j))); tmp = 0.0; if (b <= -3.8e-50) tmp = t_2; elseif (b <= 2.7e-42) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); elseif (b <= 4.5e+195) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.8e-50], t$95$2, If[LessEqual[b, 2.7e-42], 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], If[LessEqual[b, 4.5e+195], t$95$2, t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t_1 - t \cdot \left(x \cdot a - c \cdot j\right)\\
\mathbf{if}\;b \leq -3.8 \cdot 10^{-50}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{-42}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{+195}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -3.7999999999999999e-50 or 2.69999999999999999e-42 < b < 4.50000000000000009e195Initial program 73.5%
+-commutative73.5%
fma-def75.1%
*-commutative75.1%
*-commutative75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in t around 0 76.5%
Taylor expanded in y around 0 75.2%
if -3.7999999999999999e-50 < b < 2.69999999999999999e-42Initial 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 74.8%
if 4.50000000000000009e195 < b Initial program 69.5%
cancel-sign-sub69.5%
cancel-sign-sub-inv69.5%
*-commutative69.5%
*-commutative69.5%
remove-double-neg69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in b around inf 87.3%
Final simplification76.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -5.8e+33)
(+ (- (* c (* t j)) (* a (* x t))) t_1)
(if (<= b 5.2e-40)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(if (<= b 2.25e+191) (- t_1 (* t (- (* x a) (* c j)))) 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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.8e+33) {
tmp = ((c * (t * j)) - (a * (x * t))) + t_1;
} else if (b <= 5.2e-40) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (b <= 2.25e+191) {
tmp = t_1 - (t * ((x * a) - (c * j)));
} 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 = b * ((a * i) - (z * c))
if (b <= (-5.8d+33)) then
tmp = ((c * (t * j)) - (a * (x * t))) + t_1
else if (b <= 5.2d-40) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else if (b <= 2.25d+191) then
tmp = t_1 - (t * ((x * a) - (c * j)))
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 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.8e+33) {
tmp = ((c * (t * j)) - (a * (x * t))) + t_1;
} else if (b <= 5.2e-40) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (b <= 2.25e+191) {
tmp = t_1 - (t * ((x * a) - (c * j)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.8e+33: tmp = ((c * (t * j)) - (a * (x * t))) + t_1 elif b <= 5.2e-40: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) elif b <= 2.25e+191: tmp = t_1 - (t * ((x * a) - (c * j))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.8e+33) tmp = Float64(Float64(Float64(c * Float64(t * j)) - Float64(a * Float64(x * t))) + t_1); elseif (b <= 5.2e-40) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); elseif (b <= 2.25e+191) tmp = Float64(t_1 - Float64(t * Float64(Float64(x * a) - Float64(c * j)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.8e+33) tmp = ((c * (t * j)) - (a * (x * t))) + t_1; elseif (b <= 5.2e-40) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); elseif (b <= 2.25e+191) tmp = t_1 - (t * ((x * a) - (c * j))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+33], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 5.2e-40], 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], If[LessEqual[b, 2.25e+191], N[(t$95$1 - N[(t * N[(N[(x * a), $MachinePrecision] - N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+33}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + t_1\\
\mathbf{elif}\;b \leq 5.2 \cdot 10^{-40}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{+191}:\\
\;\;\;\;t_1 - t \cdot \left(x \cdot a - c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -5.80000000000000049e33Initial program 68.2%
+-commutative68.2%
fma-def68.2%
*-commutative68.2%
*-commutative68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in y around 0 75.3%
if -5.80000000000000049e33 < b < 5.2000000000000003e-40Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in b around 0 73.3%
if 5.2000000000000003e-40 < b < 2.2500000000000001e191Initial program 78.4%
+-commutative78.4%
fma-def81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in t around 0 78.2%
Taylor expanded in y around 0 78.3%
if 2.2500000000000001e191 < b Initial program 69.5%
cancel-sign-sub69.5%
cancel-sign-sub-inv69.5%
*-commutative69.5%
*-commutative69.5%
remove-double-neg69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in b around inf 87.3%
Final simplification76.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -7.2e+59)
t_3
(if (<= b -1.26e-213)
(* j (- (* t c) (* y i)))
(if (<= b 9e-251)
t_1
(if (<= b 8e-155)
t_2
(if (<= b 1.25e-114)
(* a (- (* b i) (* x t)))
(if (<= b 4.2e-25) t_2 (if (<= b 1.05e+123) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.2e+59) {
tmp = t_3;
} else if (b <= -1.26e-213) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 9e-251) {
tmp = t_1;
} else if (b <= 8e-155) {
tmp = t_2;
} else if (b <= 1.25e-114) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 4.2e-25) {
tmp = t_2;
} else if (b <= 1.05e+123) {
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 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
t_3 = b * ((a * i) - (z * c))
if (b <= (-7.2d+59)) then
tmp = t_3
else if (b <= (-1.26d-213)) then
tmp = j * ((t * c) - (y * i))
else if (b <= 9d-251) then
tmp = t_1
else if (b <= 8d-155) then
tmp = t_2
else if (b <= 1.25d-114) then
tmp = a * ((b * i) - (x * t))
else if (b <= 4.2d-25) then
tmp = t_2
else if (b <= 1.05d+123) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.2e+59) {
tmp = t_3;
} else if (b <= -1.26e-213) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 9e-251) {
tmp = t_1;
} else if (b <= 8e-155) {
tmp = t_2;
} else if (b <= 1.25e-114) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 4.2e-25) {
tmp = t_2;
} else if (b <= 1.05e+123) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -7.2e+59: tmp = t_3 elif b <= -1.26e-213: tmp = j * ((t * c) - (y * i)) elif b <= 9e-251: tmp = t_1 elif b <= 8e-155: tmp = t_2 elif b <= 1.25e-114: tmp = a * ((b * i) - (x * t)) elif b <= 4.2e-25: tmp = t_2 elif b <= 1.05e+123: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.2e+59) tmp = t_3; elseif (b <= -1.26e-213) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 9e-251) tmp = t_1; elseif (b <= 8e-155) tmp = t_2; elseif (b <= 1.25e-114) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (b <= 4.2e-25) tmp = t_2; elseif (b <= 1.05e+123) 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 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -7.2e+59) tmp = t_3; elseif (b <= -1.26e-213) tmp = j * ((t * c) - (y * i)); elseif (b <= 9e-251) tmp = t_1; elseif (b <= 8e-155) tmp = t_2; elseif (b <= 1.25e-114) tmp = a * ((b * i) - (x * t)); elseif (b <= 4.2e-25) tmp = t_2; elseif (b <= 1.05e+123) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.2e+59], t$95$3, If[LessEqual[b, -1.26e-213], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-251], t$95$1, If[LessEqual[b, 8e-155], t$95$2, If[LessEqual[b, 1.25e-114], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.2e-25], t$95$2, If[LessEqual[b, 1.05e+123], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.2 \cdot 10^{+59}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.26 \cdot 10^{-213}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-251}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 8 \cdot 10^{-155}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-114}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq 4.2 \cdot 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+123}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -7.1999999999999997e59 or 1.04999999999999997e123 < b Initial program 71.1%
cancel-sign-sub71.1%
cancel-sign-sub-inv71.1%
*-commutative71.1%
*-commutative71.1%
remove-double-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in b around inf 76.8%
if -7.1999999999999997e59 < b < -1.26e-213Initial program 70.8%
cancel-sign-sub70.8%
cancel-sign-sub-inv70.8%
*-commutative70.8%
*-commutative70.8%
remove-double-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in x around 0 58.7%
Taylor expanded in j around -inf 52.9%
if -1.26e-213 < b < 8.99999999999999956e-251 or 4.20000000000000005e-25 < b < 1.04999999999999997e123Initial program 75.3%
sub-neg75.3%
associate-+l+75.3%
fma-def75.3%
+-commutative75.3%
fma-def76.6%
sub-neg76.6%
+-commutative76.6%
*-commutative76.6%
distribute-rgt-neg-in76.6%
fma-def76.6%
*-commutative76.6%
distribute-rgt-neg-in76.6%
sub-neg76.6%
distribute-neg-in76.6%
unsub-neg76.6%
Simplified76.6%
Taylor expanded in t around inf 61.1%
*-commutative61.1%
mul-1-neg61.1%
unsub-neg61.1%
Simplified61.1%
if 8.99999999999999956e-251 < b < 8.00000000000000011e-155 or 1.24999999999999997e-114 < b < 4.20000000000000005e-25Initial program 76.3%
sub-neg76.3%
associate-+l+76.3%
fma-def76.3%
+-commutative76.3%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
fma-def76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
sub-neg76.3%
distribute-neg-in76.3%
unsub-neg76.3%
Simplified76.3%
Taylor expanded in y around inf 67.7%
+-commutative67.7%
*-commutative67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
Simplified67.7%
if 8.00000000000000011e-155 < b < 1.24999999999999997e-114Initial program 60.7%
sub-neg60.7%
associate-+l+60.7%
fma-def60.7%
+-commutative60.7%
fma-def60.7%
sub-neg60.7%
+-commutative60.7%
*-commutative60.7%
distribute-rgt-neg-in60.7%
fma-def60.7%
*-commutative60.7%
distribute-rgt-neg-in60.7%
sub-neg60.7%
distribute-neg-in60.7%
unsub-neg60.7%
Simplified60.7%
Taylor expanded in a around inf 72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
Simplified72.4%
Final simplification65.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* c (* t j)) (* b (- (* a i) (* z c))))))
(if (<= b -9.4e+33)
t_1
(if (<= b 3.2e-8)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(if (or (<= b 1.25e+16) (not (<= b 5.7e+106)))
t_1
(+ (* t (- (* c j) (* x a))) (* b (* 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 = (c * (t * j)) + (b * ((a * i) - (z * c)));
double tmp;
if (b <= -9.4e+33) {
tmp = t_1;
} else if (b <= 3.2e-8) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if ((b <= 1.25e+16) || !(b <= 5.7e+106)) {
tmp = t_1;
} else {
tmp = (t * ((c * j) - (x * a))) + (b * (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) :: tmp
t_1 = (c * (t * j)) + (b * ((a * i) - (z * c)))
if (b <= (-9.4d+33)) then
tmp = t_1
else if (b <= 3.2d-8) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else if ((b <= 1.25d+16) .or. (.not. (b <= 5.7d+106))) then
tmp = t_1
else
tmp = (t * ((c * j) - (x * a))) + (b * (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 = (c * (t * j)) + (b * ((a * i) - (z * c)));
double tmp;
if (b <= -9.4e+33) {
tmp = t_1;
} else if (b <= 3.2e-8) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if ((b <= 1.25e+16) || !(b <= 5.7e+106)) {
tmp = t_1;
} else {
tmp = (t * ((c * j) - (x * a))) + (b * (a * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (c * (t * j)) + (b * ((a * i) - (z * c))) tmp = 0 if b <= -9.4e+33: tmp = t_1 elif b <= 3.2e-8: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) elif (b <= 1.25e+16) or not (b <= 5.7e+106): tmp = t_1 else: tmp = (t * ((c * j) - (x * a))) + (b * (a * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(c * Float64(t * j)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (b <= -9.4e+33) tmp = t_1; elseif (b <= 3.2e-8) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); elseif ((b <= 1.25e+16) || !(b <= 5.7e+106)) tmp = t_1; else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(a * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (c * (t * j)) + (b * ((a * i) - (z * c))); tmp = 0.0; if (b <= -9.4e+33) tmp = t_1; elseif (b <= 3.2e-8) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); elseif ((b <= 1.25e+16) || ~((b <= 5.7e+106))) tmp = t_1; else tmp = (t * ((c * j) - (x * a))) + (b * (a * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.4e+33], t$95$1, If[LessEqual[b, 3.2e-8], 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], If[Or[LessEqual[b, 1.25e+16], N[Not[LessEqual[b, 5.7e+106]], $MachinePrecision]], t$95$1, N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.4 \cdot 10^{+33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{-8}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+16} \lor \neg \left(b \leq 5.7 \cdot 10^{+106}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if b < -9.3999999999999996e33 or 3.2000000000000002e-8 < b < 1.25e16 or 5.6999999999999997e106 < b Initial program 72.3%
cancel-sign-sub72.3%
cancel-sign-sub-inv72.3%
*-commutative72.3%
*-commutative72.3%
remove-double-neg72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
Taylor expanded in x around 0 73.9%
Taylor expanded in y around 0 79.0%
if -9.3999999999999996e33 < b < 3.2000000000000002e-8Initial program 72.8%
cancel-sign-sub72.8%
cancel-sign-sub-inv72.8%
*-commutative72.8%
*-commutative72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in b around 0 72.9%
if 1.25e16 < b < 5.6999999999999997e106Initial program 75.2%
+-commutative75.2%
fma-def78.8%
*-commutative78.8%
*-commutative78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in t around 0 74.8%
Taylor expanded in y around 0 74.8%
Taylor expanded in c around 0 75.0%
neg-mul-175.0%
distribute-rgt-neg-in75.0%
Simplified75.0%
Final simplification75.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* c (- (* t j) (* z b))))
(t_3 (* a (- (* b i) (* x t)))))
(if (<= a -2.6e+135)
t_3
(if (<= a -1e-73)
(* t (- (* c j) (* x a)))
(if (<= a -1.32e-150)
t_1
(if (<= a 4.5e-238)
t_2
(if (<= a 5.2e-167) t_1 (if (<= a 3.8e+97) t_2 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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.6e+135) {
tmp = t_3;
} else if (a <= -1e-73) {
tmp = t * ((c * j) - (x * a));
} else if (a <= -1.32e-150) {
tmp = t_1;
} else if (a <= 4.5e-238) {
tmp = t_2;
} else if (a <= 5.2e-167) {
tmp = t_1;
} else if (a <= 3.8e+97) {
tmp = t_2;
} 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 = y * ((x * z) - (i * j))
t_2 = c * ((t * j) - (z * b))
t_3 = a * ((b * i) - (x * t))
if (a <= (-2.6d+135)) then
tmp = t_3
else if (a <= (-1d-73)) then
tmp = t * ((c * j) - (x * a))
else if (a <= (-1.32d-150)) then
tmp = t_1
else if (a <= 4.5d-238) then
tmp = t_2
else if (a <= 5.2d-167) then
tmp = t_1
else if (a <= 3.8d+97) then
tmp = t_2
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 = y * ((x * z) - (i * j));
double t_2 = c * ((t * j) - (z * b));
double t_3 = a * ((b * i) - (x * t));
double tmp;
if (a <= -2.6e+135) {
tmp = t_3;
} else if (a <= -1e-73) {
tmp = t * ((c * j) - (x * a));
} else if (a <= -1.32e-150) {
tmp = t_1;
} else if (a <= 4.5e-238) {
tmp = t_2;
} else if (a <= 5.2e-167) {
tmp = t_1;
} else if (a <= 3.8e+97) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = c * ((t * j) - (z * b)) t_3 = a * ((b * i) - (x * t)) tmp = 0 if a <= -2.6e+135: tmp = t_3 elif a <= -1e-73: tmp = t * ((c * j) - (x * a)) elif a <= -1.32e-150: tmp = t_1 elif a <= 4.5e-238: tmp = t_2 elif a <= 5.2e-167: tmp = t_1 elif a <= 3.8e+97: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_3 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -2.6e+135) tmp = t_3; elseif (a <= -1e-73) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (a <= -1.32e-150) tmp = t_1; elseif (a <= 4.5e-238) tmp = t_2; elseif (a <= 5.2e-167) tmp = t_1; elseif (a <= 3.8e+97) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = c * ((t * j) - (z * b)); t_3 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -2.6e+135) tmp = t_3; elseif (a <= -1e-73) tmp = t * ((c * j) - (x * a)); elseif (a <= -1.32e-150) tmp = t_1; elseif (a <= 4.5e-238) tmp = t_2; elseif (a <= 5.2e-167) tmp = t_1; elseif (a <= 3.8e+97) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e+135], t$95$3, If[LessEqual[a, -1e-73], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.32e-150], t$95$1, If[LessEqual[a, 4.5e-238], t$95$2, If[LessEqual[a, 5.2e-167], t$95$1, If[LessEqual[a, 3.8e+97], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_3 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{+135}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -1 \cdot 10^{-73}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;a \leq -1.32 \cdot 10^{-150}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.5 \cdot 10^{-238}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 5.2 \cdot 10^{-167}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+97}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -2.6e135 or 3.80000000000000036e97 < a Initial program 59.6%
sub-neg59.6%
associate-+l+59.6%
fma-def64.4%
+-commutative64.4%
fma-def66.8%
sub-neg66.8%
+-commutative66.8%
*-commutative66.8%
distribute-rgt-neg-in66.8%
fma-def66.8%
*-commutative66.8%
distribute-rgt-neg-in66.8%
sub-neg66.8%
distribute-neg-in66.8%
unsub-neg66.8%
Simplified66.8%
Taylor expanded in a around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
Simplified74.0%
if -2.6e135 < a < -9.99999999999999997e-74Initial program 72.3%
sub-neg72.3%
associate-+l+72.3%
fma-def72.3%
+-commutative72.3%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
*-commutative72.3%
distribute-rgt-neg-in72.3%
fma-def72.3%
*-commutative72.3%
distribute-rgt-neg-in72.3%
sub-neg72.3%
distribute-neg-in72.3%
unsub-neg72.3%
Simplified72.3%
Taylor expanded in t around inf 58.3%
*-commutative58.3%
mul-1-neg58.3%
unsub-neg58.3%
Simplified58.3%
if -9.99999999999999997e-74 < a < -1.32e-150 or 4.49999999999999996e-238 < a < 5.1999999999999998e-167Initial program 83.8%
sub-neg83.8%
associate-+l+83.8%
fma-def83.8%
+-commutative83.8%
fma-def83.8%
sub-neg83.8%
+-commutative83.8%
*-commutative83.8%
distribute-rgt-neg-in83.8%
fma-def83.8%
*-commutative83.8%
distribute-rgt-neg-in83.8%
sub-neg83.8%
distribute-neg-in83.8%
unsub-neg83.8%
Simplified83.8%
Taylor expanded in y around inf 72.5%
+-commutative72.5%
*-commutative72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
Simplified72.5%
if -1.32e-150 < a < 4.49999999999999996e-238 or 5.1999999999999998e-167 < a < 3.80000000000000036e97Initial program 81.3%
+-commutative81.3%
fma-def81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in c around inf 54.0%
Final simplification63.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -6e-7)
t_3
(if (<= b 1.6e-250)
t_2
(if (<= b 5.6e-154)
t_1
(if (<= b 1e-116)
(* a (- (* b i) (* x t)))
(if (<= b 9.8e-25) t_1 (if (<= b 9.6e+122) t_2 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 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6e-7) {
tmp = t_3;
} else if (b <= 1.6e-250) {
tmp = t_2;
} else if (b <= 5.6e-154) {
tmp = t_1;
} else if (b <= 1e-116) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 9.8e-25) {
tmp = t_1;
} else if (b <= 9.6e+122) {
tmp = t_2;
} 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 = y * ((x * z) - (i * j))
t_2 = t * ((c * j) - (x * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-6d-7)) then
tmp = t_3
else if (b <= 1.6d-250) then
tmp = t_2
else if (b <= 5.6d-154) then
tmp = t_1
else if (b <= 1d-116) then
tmp = a * ((b * i) - (x * t))
else if (b <= 9.8d-25) then
tmp = t_1
else if (b <= 9.6d+122) then
tmp = t_2
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 = y * ((x * z) - (i * j));
double t_2 = t * ((c * j) - (x * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -6e-7) {
tmp = t_3;
} else if (b <= 1.6e-250) {
tmp = t_2;
} else if (b <= 5.6e-154) {
tmp = t_1;
} else if (b <= 1e-116) {
tmp = a * ((b * i) - (x * t));
} else if (b <= 9.8e-25) {
tmp = t_1;
} else if (b <= 9.6e+122) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = t * ((c * j) - (x * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -6e-7: tmp = t_3 elif b <= 1.6e-250: tmp = t_2 elif b <= 5.6e-154: tmp = t_1 elif b <= 1e-116: tmp = a * ((b * i) - (x * t)) elif b <= 9.8e-25: tmp = t_1 elif b <= 9.6e+122: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -6e-7) tmp = t_3; elseif (b <= 1.6e-250) tmp = t_2; elseif (b <= 5.6e-154) tmp = t_1; elseif (b <= 1e-116) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (b <= 9.8e-25) tmp = t_1; elseif (b <= 9.6e+122) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = t * ((c * j) - (x * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -6e-7) tmp = t_3; elseif (b <= 1.6e-250) tmp = t_2; elseif (b <= 5.6e-154) tmp = t_1; elseif (b <= 1e-116) tmp = a * ((b * i) - (x * t)); elseif (b <= 9.8e-25) tmp = t_1; elseif (b <= 9.6e+122) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6e-7], t$95$3, If[LessEqual[b, 1.6e-250], t$95$2, If[LessEqual[b, 5.6e-154], t$95$1, If[LessEqual[b, 1e-116], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.8e-25], t$95$1, If[LessEqual[b, 9.6e+122], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6 \cdot 10^{-7}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-250}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{-154}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 10^{-116}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;b \leq 9.8 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 9.6 \cdot 10^{+122}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -5.9999999999999997e-7 or 9.6000000000000007e122 < b Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in b around inf 71.4%
if -5.9999999999999997e-7 < b < 1.60000000000000002e-250 or 9.7999999999999998e-25 < b < 9.6000000000000007e122Initial program 72.7%
sub-neg72.7%
associate-+l+72.7%
fma-def73.5%
+-commutative73.5%
fma-def74.4%
sub-neg74.4%
+-commutative74.4%
*-commutative74.4%
distribute-rgt-neg-in74.4%
fma-def74.4%
*-commutative74.4%
distribute-rgt-neg-in74.4%
sub-neg74.4%
distribute-neg-in74.4%
unsub-neg74.4%
Simplified74.4%
Taylor expanded in t around inf 55.1%
*-commutative55.1%
mul-1-neg55.1%
unsub-neg55.1%
Simplified55.1%
if 1.60000000000000002e-250 < b < 5.60000000000000025e-154 or 9.9999999999999999e-117 < b < 9.7999999999999998e-25Initial program 76.3%
sub-neg76.3%
associate-+l+76.3%
fma-def76.3%
+-commutative76.3%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
fma-def76.3%
*-commutative76.3%
distribute-rgt-neg-in76.3%
sub-neg76.3%
distribute-neg-in76.3%
unsub-neg76.3%
Simplified76.3%
Taylor expanded in y around inf 67.7%
+-commutative67.7%
*-commutative67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
Simplified67.7%
if 5.60000000000000025e-154 < b < 9.9999999999999999e-117Initial program 60.7%
sub-neg60.7%
associate-+l+60.7%
fma-def60.7%
+-commutative60.7%
fma-def60.7%
sub-neg60.7%
+-commutative60.7%
*-commutative60.7%
distribute-rgt-neg-in60.7%
fma-def60.7%
*-commutative60.7%
distribute-rgt-neg-in60.7%
sub-neg60.7%
distribute-neg-in60.7%
unsub-neg60.7%
Simplified60.7%
Taylor expanded in a around inf 72.4%
+-commutative72.4%
mul-1-neg72.4%
unsub-neg72.4%
Simplified72.4%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))) (t_2 (* b (* a i))))
(if (<= i -5e+76)
t_2
(if (<= i -1.65e-49)
(* t (* x (- a)))
(if (<= i -2.6e-73)
t_1
(if (<= i -6.8e-192)
(* c (- (* z b)))
(if (<= i -7.5e-277)
(* j (* t c))
(if (<= i 8.8e-66)
(* a (* t (- x)))
(if (<= i 1.4e+79) 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);
double t_2 = b * (a * i);
double tmp;
if (i <= -5e+76) {
tmp = t_2;
} else if (i <= -1.65e-49) {
tmp = t * (x * -a);
} else if (i <= -2.6e-73) {
tmp = t_1;
} else if (i <= -6.8e-192) {
tmp = c * -(z * b);
} else if (i <= -7.5e-277) {
tmp = j * (t * c);
} else if (i <= 8.8e-66) {
tmp = a * (t * -x);
} else if (i <= 1.4e+79) {
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)
t_2 = b * (a * i)
if (i <= (-5d+76)) then
tmp = t_2
else if (i <= (-1.65d-49)) then
tmp = t * (x * -a)
else if (i <= (-2.6d-73)) then
tmp = t_1
else if (i <= (-6.8d-192)) then
tmp = c * -(z * b)
else if (i <= (-7.5d-277)) then
tmp = j * (t * c)
else if (i <= 8.8d-66) then
tmp = a * (t * -x)
else if (i <= 1.4d+79) 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);
double t_2 = b * (a * i);
double tmp;
if (i <= -5e+76) {
tmp = t_2;
} else if (i <= -1.65e-49) {
tmp = t * (x * -a);
} else if (i <= -2.6e-73) {
tmp = t_1;
} else if (i <= -6.8e-192) {
tmp = c * -(z * b);
} else if (i <= -7.5e-277) {
tmp = j * (t * c);
} else if (i <= 8.8e-66) {
tmp = a * (t * -x);
} else if (i <= 1.4e+79) {
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) t_2 = b * (a * i) tmp = 0 if i <= -5e+76: tmp = t_2 elif i <= -1.65e-49: tmp = t * (x * -a) elif i <= -2.6e-73: tmp = t_1 elif i <= -6.8e-192: tmp = c * -(z * b) elif i <= -7.5e-277: tmp = j * (t * c) elif i <= 8.8e-66: tmp = a * (t * -x) elif i <= 1.4e+79: 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(t * j)) t_2 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -5e+76) tmp = t_2; elseif (i <= -1.65e-49) tmp = Float64(t * Float64(x * Float64(-a))); elseif (i <= -2.6e-73) tmp = t_1; elseif (i <= -6.8e-192) tmp = Float64(c * Float64(-Float64(z * b))); elseif (i <= -7.5e-277) tmp = Float64(j * Float64(t * c)); elseif (i <= 8.8e-66) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 1.4e+79) 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); t_2 = b * (a * i); tmp = 0.0; if (i <= -5e+76) tmp = t_2; elseif (i <= -1.65e-49) tmp = t * (x * -a); elseif (i <= -2.6e-73) tmp = t_1; elseif (i <= -6.8e-192) tmp = c * -(z * b); elseif (i <= -7.5e-277) tmp = j * (t * c); elseif (i <= 8.8e-66) tmp = a * (t * -x); elseif (i <= 1.4e+79) 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[(t * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5e+76], t$95$2, If[LessEqual[i, -1.65e-49], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.6e-73], t$95$1, If[LessEqual[i, -6.8e-192], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, -7.5e-277], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.8e-66], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e+79], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -5 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -1.65 \cdot 10^{-49}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq -2.6 \cdot 10^{-73}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -6.8 \cdot 10^{-192}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;i \leq -7.5 \cdot 10^{-277}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 8.8 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{+79}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -4.99999999999999991e76 or 1.4000000000000001e79 < i Initial program 63.4%
cancel-sign-sub63.4%
cancel-sign-sub-inv63.4%
*-commutative63.4%
*-commutative63.4%
remove-double-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in x around 0 62.4%
Taylor expanded in y around 0 54.6%
Taylor expanded in c around 0 45.7%
Taylor expanded in c around 0 43.4%
*-commutative43.4%
*-commutative43.4%
associate-*r*44.3%
Simplified44.3%
if -4.99999999999999991e76 < i < -1.65e-49Initial program 77.6%
sub-neg77.6%
associate-+l+77.6%
fma-def77.6%
+-commutative77.6%
fma-def77.6%
sub-neg77.6%
+-commutative77.6%
*-commutative77.6%
distribute-rgt-neg-in77.6%
fma-def77.6%
*-commutative77.6%
distribute-rgt-neg-in77.6%
sub-neg77.6%
distribute-neg-in77.6%
unsub-neg77.6%
Simplified77.6%
Taylor expanded in t around inf 42.4%
*-commutative42.4%
mul-1-neg42.4%
unsub-neg42.4%
Simplified42.4%
Taylor expanded in c around 0 29.0%
neg-mul-129.0%
distribute-rgt-neg-in29.0%
Simplified29.0%
if -1.65e-49 < i < -2.6000000000000001e-73 or 8.8000000000000004e-66 < i < 1.4000000000000001e79Initial program 69.4%
+-commutative69.4%
fma-def69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in t around 0 74.4%
Taylor expanded in y around 0 64.1%
Taylor expanded in j around inf 40.9%
if -2.6000000000000001e-73 < i < -6.80000000000000003e-192Initial program 81.3%
cancel-sign-sub81.3%
cancel-sign-sub-inv81.3%
*-commutative81.3%
*-commutative81.3%
remove-double-neg81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in x around 0 51.8%
Taylor expanded in z around inf 40.2%
mul-1-neg40.2%
distribute-rgt-neg-in40.2%
Simplified40.2%
if -6.80000000000000003e-192 < i < -7.49999999999999971e-277Initial program 98.5%
cancel-sign-sub98.5%
cancel-sign-sub-inv98.5%
*-commutative98.5%
*-commutative98.5%
remove-double-neg98.5%
*-commutative98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in b around 0 81.3%
Taylor expanded in c around inf 55.2%
*-commutative55.2%
*-commutative55.2%
associate-*l*65.8%
Simplified65.8%
if -7.49999999999999971e-277 < i < 8.8000000000000004e-66Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
Taylor expanded in i around 0 41.8%
mul-1-neg41.8%
distribute-lft-neg-out41.8%
*-commutative41.8%
Simplified41.8%
Final simplification43.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -1.06e+77)
t_2
(if (<= i -3e+66)
t_1
(if (<= i -9e-48)
(* y (- (* x z) (* i j)))
(if (<= i -5.6e-282)
(* c (- (* t j) (* z b)))
(if (<= i 7.2e+53) 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 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.06e+77) {
tmp = t_2;
} else if (i <= -3e+66) {
tmp = t_1;
} else if (i <= -9e-48) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -5.6e-282) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 7.2e+53) {
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 = t * ((c * j) - (x * a))
t_2 = i * ((a * b) - (y * j))
if (i <= (-1.06d+77)) then
tmp = t_2
else if (i <= (-3d+66)) then
tmp = t_1
else if (i <= (-9d-48)) then
tmp = y * ((x * z) - (i * j))
else if (i <= (-5.6d-282)) then
tmp = c * ((t * j) - (z * b))
else if (i <= 7.2d+53) 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 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.06e+77) {
tmp = t_2;
} else if (i <= -3e+66) {
tmp = t_1;
} else if (i <= -9e-48) {
tmp = y * ((x * z) - (i * j));
} else if (i <= -5.6e-282) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 7.2e+53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -1.06e+77: tmp = t_2 elif i <= -3e+66: tmp = t_1 elif i <= -9e-48: tmp = y * ((x * z) - (i * j)) elif i <= -5.6e-282: tmp = c * ((t * j) - (z * b)) elif i <= 7.2e+53: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.06e+77) tmp = t_2; elseif (i <= -3e+66) tmp = t_1; elseif (i <= -9e-48) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (i <= -5.6e-282) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (i <= 7.2e+53) 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 = t * ((c * j) - (x * a)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -1.06e+77) tmp = t_2; elseif (i <= -3e+66) tmp = t_1; elseif (i <= -9e-48) tmp = y * ((x * z) - (i * j)); elseif (i <= -5.6e-282) tmp = c * ((t * j) - (z * b)); elseif (i <= 7.2e+53) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.06e+77], t$95$2, If[LessEqual[i, -3e+66], t$95$1, If[LessEqual[i, -9e-48], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5.6e-282], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.2e+53], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.06 \cdot 10^{+77}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -3 \cdot 10^{+66}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -9 \cdot 10^{-48}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq -5.6 \cdot 10^{-282}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 7.2 \cdot 10^{+53}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -1.06000000000000003e77 or 7.2e53 < i Initial program 62.8%
cancel-sign-sub62.8%
cancel-sign-sub-inv62.8%
*-commutative62.8%
*-commutative62.8%
remove-double-neg62.8%
*-commutative62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in i around -inf 68.2%
if -1.06000000000000003e77 < i < -3.00000000000000002e66 or -5.5999999999999998e-282 < i < 7.2e53Initial program 75.6%
sub-neg75.6%
associate-+l+75.6%
fma-def77.9%
+-commutative77.9%
fma-def77.9%
sub-neg77.9%
+-commutative77.9%
*-commutative77.9%
distribute-rgt-neg-in77.9%
fma-def77.9%
*-commutative77.9%
distribute-rgt-neg-in77.9%
sub-neg77.9%
distribute-neg-in77.9%
unsub-neg77.9%
Simplified77.9%
Taylor expanded in t around inf 59.6%
*-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
Simplified59.6%
if -3.00000000000000002e66 < i < -8.99999999999999977e-48Initial program 82.8%
sub-neg82.8%
associate-+l+82.8%
fma-def82.8%
+-commutative82.8%
fma-def82.8%
sub-neg82.8%
+-commutative82.8%
*-commutative82.8%
distribute-rgt-neg-in82.8%
fma-def82.8%
*-commutative82.8%
distribute-rgt-neg-in82.8%
sub-neg82.8%
distribute-neg-in82.8%
unsub-neg82.8%
Simplified82.8%
Taylor expanded in y around inf 65.2%
+-commutative65.2%
*-commutative65.2%
+-commutative65.2%
mul-1-neg65.2%
unsub-neg65.2%
Simplified65.2%
if -8.99999999999999977e-48 < i < -5.5999999999999998e-282Initial program 85.9%
+-commutative85.9%
fma-def85.9%
*-commutative85.9%
*-commutative85.9%
*-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in c around inf 61.7%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= i -1.32e+122)
t_1
(if (<= i -1.5e-191)
(* c (- (* z b)))
(if (<= i -5e-274)
(* j (* t c))
(if (<= i 9e-66)
(* a (* t (- x)))
(if (<= i 1.55e+53)
(* c (* t j))
(if (<= i 1.55e+180) (* (* i j) (- y)) 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 = b * (a * i);
double tmp;
if (i <= -1.32e+122) {
tmp = t_1;
} else if (i <= -1.5e-191) {
tmp = c * -(z * b);
} else if (i <= -5e-274) {
tmp = j * (t * c);
} else if (i <= 9e-66) {
tmp = a * (t * -x);
} else if (i <= 1.55e+53) {
tmp = c * (t * j);
} else if (i <= 1.55e+180) {
tmp = (i * j) * -y;
} 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 = b * (a * i)
if (i <= (-1.32d+122)) then
tmp = t_1
else if (i <= (-1.5d-191)) then
tmp = c * -(z * b)
else if (i <= (-5d-274)) then
tmp = j * (t * c)
else if (i <= 9d-66) then
tmp = a * (t * -x)
else if (i <= 1.55d+53) then
tmp = c * (t * j)
else if (i <= 1.55d+180) then
tmp = (i * j) * -y
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 = b * (a * i);
double tmp;
if (i <= -1.32e+122) {
tmp = t_1;
} else if (i <= -1.5e-191) {
tmp = c * -(z * b);
} else if (i <= -5e-274) {
tmp = j * (t * c);
} else if (i <= 9e-66) {
tmp = a * (t * -x);
} else if (i <= 1.55e+53) {
tmp = c * (t * j);
} else if (i <= 1.55e+180) {
tmp = (i * j) * -y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if i <= -1.32e+122: tmp = t_1 elif i <= -1.5e-191: tmp = c * -(z * b) elif i <= -5e-274: tmp = j * (t * c) elif i <= 9e-66: tmp = a * (t * -x) elif i <= 1.55e+53: tmp = c * (t * j) elif i <= 1.55e+180: tmp = (i * j) * -y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -1.32e+122) tmp = t_1; elseif (i <= -1.5e-191) tmp = Float64(c * Float64(-Float64(z * b))); elseif (i <= -5e-274) tmp = Float64(j * Float64(t * c)); elseif (i <= 9e-66) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 1.55e+53) tmp = Float64(c * Float64(t * j)); elseif (i <= 1.55e+180) tmp = Float64(Float64(i * j) * Float64(-y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (i <= -1.32e+122) tmp = t_1; elseif (i <= -1.5e-191) tmp = c * -(z * b); elseif (i <= -5e-274) tmp = j * (t * c); elseif (i <= 9e-66) tmp = a * (t * -x); elseif (i <= 1.55e+53) tmp = c * (t * j); elseif (i <= 1.55e+180) tmp = (i * j) * -y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.32e+122], t$95$1, If[LessEqual[i, -1.5e-191], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, -5e-274], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9e-66], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.55e+53], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.55e+180], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -1.32 \cdot 10^{+122}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.5 \cdot 10^{-191}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;i \leq -5 \cdot 10^{-274}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 9 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{+53}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{+180}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.31999999999999992e122 or 1.54999999999999999e180 < i Initial program 57.4%
cancel-sign-sub57.4%
cancel-sign-sub-inv57.4%
*-commutative57.4%
*-commutative57.4%
remove-double-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in x around 0 58.9%
Taylor expanded in y around 0 61.9%
Taylor expanded in c around 0 51.3%
Taylor expanded in c around 0 49.4%
*-commutative49.4%
*-commutative49.4%
associate-*r*50.9%
Simplified50.9%
if -1.31999999999999992e122 < i < -1.5e-191Initial program 80.4%
cancel-sign-sub80.4%
cancel-sign-sub-inv80.4%
*-commutative80.4%
*-commutative80.4%
remove-double-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in x around 0 58.1%
Taylor expanded in z around inf 28.7%
mul-1-neg28.7%
distribute-rgt-neg-in28.7%
Simplified28.7%
if -1.5e-191 < i < -5e-274Initial program 98.5%
cancel-sign-sub98.5%
cancel-sign-sub-inv98.5%
*-commutative98.5%
*-commutative98.5%
remove-double-neg98.5%
*-commutative98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in b around 0 81.3%
Taylor expanded in c around inf 55.2%
*-commutative55.2%
*-commutative55.2%
associate-*l*65.8%
Simplified65.8%
if -5e-274 < i < 8.9999999999999995e-66Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
Taylor expanded in i around 0 41.8%
mul-1-neg41.8%
distribute-lft-neg-out41.8%
*-commutative41.8%
Simplified41.8%
if 8.9999999999999995e-66 < i < 1.5500000000000001e53Initial program 72.5%
+-commutative72.5%
fma-def72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in t around 0 75.9%
Taylor expanded in y around 0 65.4%
Taylor expanded in j around inf 40.8%
if 1.5500000000000001e53 < i < 1.54999999999999999e180Initial program 66.9%
sub-neg66.9%
associate-+l+66.9%
fma-def76.0%
+-commutative76.0%
fma-def79.0%
sub-neg79.0%
+-commutative79.0%
*-commutative79.0%
distribute-rgt-neg-in79.0%
fma-def79.0%
*-commutative79.0%
distribute-rgt-neg-in79.0%
sub-neg79.0%
distribute-neg-in79.0%
unsub-neg79.0%
Simplified79.0%
Taylor expanded in y around inf 64.7%
+-commutative64.7%
*-commutative64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
Simplified64.7%
Taylor expanded in z around 0 52.7%
mul-1-neg52.7%
distribute-rgt-neg-in52.7%
distribute-rgt-neg-in52.7%
Simplified52.7%
Final simplification43.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= i -6e+121)
t_1
(if (<= i -2.8e-191)
(* z (* b (- c)))
(if (<= i -5e-274)
(* j (* t c))
(if (<= i 8.8e-66)
(* a (* t (- x)))
(if (<= i 2.3e+56)
(* c (* t j))
(if (<= i 4.9e+181) (* (* i j) (- y)) 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 = b * (a * i);
double tmp;
if (i <= -6e+121) {
tmp = t_1;
} else if (i <= -2.8e-191) {
tmp = z * (b * -c);
} else if (i <= -5e-274) {
tmp = j * (t * c);
} else if (i <= 8.8e-66) {
tmp = a * (t * -x);
} else if (i <= 2.3e+56) {
tmp = c * (t * j);
} else if (i <= 4.9e+181) {
tmp = (i * j) * -y;
} 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 = b * (a * i)
if (i <= (-6d+121)) then
tmp = t_1
else if (i <= (-2.8d-191)) then
tmp = z * (b * -c)
else if (i <= (-5d-274)) then
tmp = j * (t * c)
else if (i <= 8.8d-66) then
tmp = a * (t * -x)
else if (i <= 2.3d+56) then
tmp = c * (t * j)
else if (i <= 4.9d+181) then
tmp = (i * j) * -y
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 = b * (a * i);
double tmp;
if (i <= -6e+121) {
tmp = t_1;
} else if (i <= -2.8e-191) {
tmp = z * (b * -c);
} else if (i <= -5e-274) {
tmp = j * (t * c);
} else if (i <= 8.8e-66) {
tmp = a * (t * -x);
} else if (i <= 2.3e+56) {
tmp = c * (t * j);
} else if (i <= 4.9e+181) {
tmp = (i * j) * -y;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if i <= -6e+121: tmp = t_1 elif i <= -2.8e-191: tmp = z * (b * -c) elif i <= -5e-274: tmp = j * (t * c) elif i <= 8.8e-66: tmp = a * (t * -x) elif i <= 2.3e+56: tmp = c * (t * j) elif i <= 4.9e+181: tmp = (i * j) * -y else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -6e+121) tmp = t_1; elseif (i <= -2.8e-191) tmp = Float64(z * Float64(b * Float64(-c))); elseif (i <= -5e-274) tmp = Float64(j * Float64(t * c)); elseif (i <= 8.8e-66) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 2.3e+56) tmp = Float64(c * Float64(t * j)); elseif (i <= 4.9e+181) tmp = Float64(Float64(i * j) * Float64(-y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (i <= -6e+121) tmp = t_1; elseif (i <= -2.8e-191) tmp = z * (b * -c); elseif (i <= -5e-274) tmp = j * (t * c); elseif (i <= 8.8e-66) tmp = a * (t * -x); elseif (i <= 2.3e+56) tmp = c * (t * j); elseif (i <= 4.9e+181) tmp = (i * j) * -y; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -6e+121], t$95$1, If[LessEqual[i, -2.8e-191], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -5e-274], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.8e-66], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e+56], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.9e+181], N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -6 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-191}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq -5 \cdot 10^{-274}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 8.8 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+56}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 4.9 \cdot 10^{+181}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -6.0000000000000005e121 or 4.89999999999999981e181 < i Initial program 57.4%
cancel-sign-sub57.4%
cancel-sign-sub-inv57.4%
*-commutative57.4%
*-commutative57.4%
remove-double-neg57.4%
*-commutative57.4%
*-commutative57.4%
Simplified57.4%
Taylor expanded in x around 0 58.9%
Taylor expanded in y around 0 61.9%
Taylor expanded in c around 0 51.3%
Taylor expanded in c around 0 49.4%
*-commutative49.4%
*-commutative49.4%
associate-*r*50.9%
Simplified50.9%
if -6.0000000000000005e121 < i < -2.80000000000000012e-191Initial program 80.4%
cancel-sign-sub80.4%
cancel-sign-sub-inv80.4%
*-commutative80.4%
*-commutative80.4%
remove-double-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in x around 0 58.1%
Taylor expanded in y around 0 48.2%
Taylor expanded in c around 0 45.1%
Taylor expanded in z around inf 28.7%
mul-1-neg28.7%
associate-*r*31.8%
*-commutative31.8%
distribute-rgt-neg-in31.8%
distribute-rgt-neg-in31.8%
Simplified31.8%
if -2.80000000000000012e-191 < i < -5e-274Initial program 98.5%
cancel-sign-sub98.5%
cancel-sign-sub-inv98.5%
*-commutative98.5%
*-commutative98.5%
remove-double-neg98.5%
*-commutative98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in b around 0 81.3%
Taylor expanded in c around inf 55.2%
*-commutative55.2%
*-commutative55.2%
associate-*l*65.8%
Simplified65.8%
if -5e-274 < i < 8.8000000000000004e-66Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
Taylor expanded in i around 0 41.8%
mul-1-neg41.8%
distribute-lft-neg-out41.8%
*-commutative41.8%
Simplified41.8%
if 8.8000000000000004e-66 < i < 2.30000000000000015e56Initial program 72.5%
+-commutative72.5%
fma-def72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in t around 0 75.9%
Taylor expanded in y around 0 65.4%
Taylor expanded in j around inf 40.8%
if 2.30000000000000015e56 < i < 4.89999999999999981e181Initial program 66.9%
sub-neg66.9%
associate-+l+66.9%
fma-def76.0%
+-commutative76.0%
fma-def79.0%
sub-neg79.0%
+-commutative79.0%
*-commutative79.0%
distribute-rgt-neg-in79.0%
fma-def79.0%
*-commutative79.0%
distribute-rgt-neg-in79.0%
sub-neg79.0%
distribute-neg-in79.0%
unsub-neg79.0%
Simplified79.0%
Taylor expanded in y around inf 64.7%
+-commutative64.7%
*-commutative64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
Simplified64.7%
Taylor expanded in z around 0 52.7%
mul-1-neg52.7%
distribute-rgt-neg-in52.7%
distribute-rgt-neg-in52.7%
Simplified52.7%
Final simplification44.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= i -2.6e+44)
t_1
(if (<= i -1.46e-187)
(* y (* x z))
(if (<= i -1.15e-266)
(* j (* t c))
(if (<= i 8.2e-66)
(* a (* t (- x)))
(if (<= i 2.4e+79) (* c (* t j)) 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 = b * (a * i);
double tmp;
if (i <= -2.6e+44) {
tmp = t_1;
} else if (i <= -1.46e-187) {
tmp = y * (x * z);
} else if (i <= -1.15e-266) {
tmp = j * (t * c);
} else if (i <= 8.2e-66) {
tmp = a * (t * -x);
} else if (i <= 2.4e+79) {
tmp = c * (t * j);
} 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 = b * (a * i)
if (i <= (-2.6d+44)) then
tmp = t_1
else if (i <= (-1.46d-187)) then
tmp = y * (x * z)
else if (i <= (-1.15d-266)) then
tmp = j * (t * c)
else if (i <= 8.2d-66) then
tmp = a * (t * -x)
else if (i <= 2.4d+79) then
tmp = c * (t * j)
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 = b * (a * i);
double tmp;
if (i <= -2.6e+44) {
tmp = t_1;
} else if (i <= -1.46e-187) {
tmp = y * (x * z);
} else if (i <= -1.15e-266) {
tmp = j * (t * c);
} else if (i <= 8.2e-66) {
tmp = a * (t * -x);
} else if (i <= 2.4e+79) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if i <= -2.6e+44: tmp = t_1 elif i <= -1.46e-187: tmp = y * (x * z) elif i <= -1.15e-266: tmp = j * (t * c) elif i <= 8.2e-66: tmp = a * (t * -x) elif i <= 2.4e+79: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -2.6e+44) tmp = t_1; elseif (i <= -1.46e-187) tmp = Float64(y * Float64(x * z)); elseif (i <= -1.15e-266) tmp = Float64(j * Float64(t * c)); elseif (i <= 8.2e-66) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 2.4e+79) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (i <= -2.6e+44) tmp = t_1; elseif (i <= -1.46e-187) tmp = y * (x * z); elseif (i <= -1.15e-266) tmp = j * (t * c); elseif (i <= 8.2e-66) tmp = a * (t * -x); elseif (i <= 2.4e+79) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.6e+44], t$95$1, If[LessEqual[i, -1.46e-187], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.15e-266], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.2e-66], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e+79], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -2.6 \cdot 10^{+44}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.46 \cdot 10^{-187}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq -1.15 \cdot 10^{-266}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 8.2 \cdot 10^{-66}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -2.5999999999999999e44 or 2.39999999999999986e79 < i Initial program 64.0%
cancel-sign-sub64.0%
cancel-sign-sub-inv64.0%
*-commutative64.0%
*-commutative64.0%
remove-double-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in x around 0 62.2%
Taylor expanded in y around 0 52.6%
Taylor expanded in c around 0 44.5%
Taylor expanded in c around 0 40.5%
*-commutative40.5%
*-commutative40.5%
associate-*r*41.4%
Simplified41.4%
if -2.5999999999999999e44 < i < -1.46e-187Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in y around inf 44.2%
+-commutative44.2%
*-commutative44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
Simplified44.2%
Taylor expanded in z around inf 32.0%
if -1.46e-187 < i < -1.14999999999999998e-266Initial program 98.7%
cancel-sign-sub98.7%
cancel-sign-sub-inv98.7%
*-commutative98.7%
*-commutative98.7%
remove-double-neg98.7%
*-commutative98.7%
*-commutative98.7%
Simplified98.7%
Taylor expanded in b around 0 78.0%
Taylor expanded in c around inf 49.6%
*-commutative49.6%
*-commutative49.6%
associate-*l*59.2%
Simplified59.2%
if -1.14999999999999998e-266 < i < 8.19999999999999996e-66Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
Taylor expanded in i around 0 41.8%
mul-1-neg41.8%
distribute-lft-neg-out41.8%
*-commutative41.8%
Simplified41.8%
if 8.19999999999999996e-66 < i < 2.39999999999999986e79Initial program 69.8%
+-commutative69.8%
fma-def69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in t around 0 72.8%
Taylor expanded in y around 0 60.5%
Taylor expanded in j around inf 39.0%
Final simplification40.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= i -3.15e+121)
t_1
(if (<= i -1e-191)
(* c (- (* z b)))
(if (<= i -6.6e-277)
(* j (* t c))
(if (<= i 1e-65)
(* a (* t (- x)))
(if (<= i 7.5e+80) (* c (* t j)) 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 = b * (a * i);
double tmp;
if (i <= -3.15e+121) {
tmp = t_1;
} else if (i <= -1e-191) {
tmp = c * -(z * b);
} else if (i <= -6.6e-277) {
tmp = j * (t * c);
} else if (i <= 1e-65) {
tmp = a * (t * -x);
} else if (i <= 7.5e+80) {
tmp = c * (t * j);
} 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 = b * (a * i)
if (i <= (-3.15d+121)) then
tmp = t_1
else if (i <= (-1d-191)) then
tmp = c * -(z * b)
else if (i <= (-6.6d-277)) then
tmp = j * (t * c)
else if (i <= 1d-65) then
tmp = a * (t * -x)
else if (i <= 7.5d+80) then
tmp = c * (t * j)
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 = b * (a * i);
double tmp;
if (i <= -3.15e+121) {
tmp = t_1;
} else if (i <= -1e-191) {
tmp = c * -(z * b);
} else if (i <= -6.6e-277) {
tmp = j * (t * c);
} else if (i <= 1e-65) {
tmp = a * (t * -x);
} else if (i <= 7.5e+80) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if i <= -3.15e+121: tmp = t_1 elif i <= -1e-191: tmp = c * -(z * b) elif i <= -6.6e-277: tmp = j * (t * c) elif i <= 1e-65: tmp = a * (t * -x) elif i <= 7.5e+80: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -3.15e+121) tmp = t_1; elseif (i <= -1e-191) tmp = Float64(c * Float64(-Float64(z * b))); elseif (i <= -6.6e-277) tmp = Float64(j * Float64(t * c)); elseif (i <= 1e-65) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 7.5e+80) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (i <= -3.15e+121) tmp = t_1; elseif (i <= -1e-191) tmp = c * -(z * b); elseif (i <= -6.6e-277) tmp = j * (t * c); elseif (i <= 1e-65) tmp = a * (t * -x); elseif (i <= 7.5e+80) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -3.15e+121], t$95$1, If[LessEqual[i, -1e-191], N[(c * (-N[(z * b), $MachinePrecision])), $MachinePrecision], If[LessEqual[i, -6.6e-277], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1e-65], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e+80], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -3.15 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1 \cdot 10^{-191}:\\
\;\;\;\;c \cdot \left(-z \cdot b\right)\\
\mathbf{elif}\;i \leq -6.6 \cdot 10^{-277}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;i \leq 10^{-65}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{+80}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -3.14999999999999978e121 or 7.49999999999999994e80 < i Initial program 61.0%
cancel-sign-sub61.0%
cancel-sign-sub-inv61.0%
*-commutative61.0%
*-commutative61.0%
remove-double-neg61.0%
*-commutative61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in x around 0 61.0%
Taylor expanded in y around 0 53.8%
Taylor expanded in c around 0 45.3%
Taylor expanded in c around 0 44.0%
*-commutative44.0%
*-commutative44.0%
associate-*r*45.1%
Simplified45.1%
if -3.14999999999999978e121 < i < -1e-191Initial program 80.4%
cancel-sign-sub80.4%
cancel-sign-sub-inv80.4%
*-commutative80.4%
*-commutative80.4%
remove-double-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in x around 0 58.1%
Taylor expanded in z around inf 28.7%
mul-1-neg28.7%
distribute-rgt-neg-in28.7%
Simplified28.7%
if -1e-191 < i < -6.59999999999999962e-277Initial program 98.5%
cancel-sign-sub98.5%
cancel-sign-sub-inv98.5%
*-commutative98.5%
*-commutative98.5%
remove-double-neg98.5%
*-commutative98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in b around 0 81.3%
Taylor expanded in c around inf 55.2%
*-commutative55.2%
*-commutative55.2%
associate-*l*65.8%
Simplified65.8%
if -6.59999999999999962e-277 < i < 9.99999999999999923e-66Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in a around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
Simplified43.8%
Taylor expanded in i around 0 41.8%
mul-1-neg41.8%
distribute-lft-neg-out41.8%
*-commutative41.8%
Simplified41.8%
if 9.99999999999999923e-66 < i < 7.49999999999999994e80Initial program 69.8%
+-commutative69.8%
fma-def69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in t around 0 72.8%
Taylor expanded in y around 0 60.5%
Taylor expanded in j around inf 39.0%
Final simplification41.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -6e+111) (not (<= a 2.4e+97))) (* 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 ((a <= -6e+111) || !(a <= 2.4e+97)) {
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 ((a <= (-6d+111)) .or. (.not. (a <= 2.4d+97))) 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 ((a <= -6e+111) || !(a <= 2.4e+97)) {
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 (a <= -6e+111) or not (a <= 2.4e+97): 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 ((a <= -6e+111) || !(a <= 2.4e+97)) 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 ((a <= -6e+111) || ~((a <= 2.4e+97))) 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[Or[LessEqual[a, -6e+111], N[Not[LessEqual[a, 2.4e+97]], $MachinePrecision]], 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}\;a \leq -6 \cdot 10^{+111} \lor \neg \left(a \leq 2.4 \cdot 10^{+97}\right):\\
\;\;\;\;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 a < -6e111 or 2.4e97 < a Initial program 61.5%
sub-neg61.5%
associate-+l+61.5%
fma-def66.1%
+-commutative66.1%
fma-def68.4%
sub-neg68.4%
+-commutative68.4%
*-commutative68.4%
distribute-rgt-neg-in68.4%
fma-def68.4%
*-commutative68.4%
distribute-rgt-neg-in68.4%
sub-neg68.4%
distribute-neg-in68.4%
unsub-neg68.4%
Simplified68.4%
Taylor expanded in a around inf 74.1%
+-commutative74.1%
mul-1-neg74.1%
unsub-neg74.1%
Simplified74.1%
if -6e111 < a < 2.4e97Initial program 78.8%
+-commutative78.8%
fma-def79.4%
*-commutative79.4%
*-commutative79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in c around inf 49.9%
Final simplification58.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= i -1.1e+45)
t_1
(if (<= i -1.4e-183)
(* y (* x z))
(if (<= i 2.4e+58) (* j (* t c)) 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 = b * (a * i);
double tmp;
if (i <= -1.1e+45) {
tmp = t_1;
} else if (i <= -1.4e-183) {
tmp = y * (x * z);
} else if (i <= 2.4e+58) {
tmp = j * (t * c);
} 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 = b * (a * i)
if (i <= (-1.1d+45)) then
tmp = t_1
else if (i <= (-1.4d-183)) then
tmp = y * (x * z)
else if (i <= 2.4d+58) then
tmp = j * (t * c)
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 = b * (a * i);
double tmp;
if (i <= -1.1e+45) {
tmp = t_1;
} else if (i <= -1.4e-183) {
tmp = y * (x * z);
} else if (i <= 2.4e+58) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if i <= -1.1e+45: tmp = t_1 elif i <= -1.4e-183: tmp = y * (x * z) elif i <= 2.4e+58: tmp = j * (t * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (i <= -1.1e+45) tmp = t_1; elseif (i <= -1.4e-183) tmp = Float64(y * Float64(x * z)); elseif (i <= 2.4e+58) tmp = Float64(j * Float64(t * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (i <= -1.1e+45) tmp = t_1; elseif (i <= -1.4e-183) tmp = y * (x * z); elseif (i <= 2.4e+58) tmp = j * (t * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.1e+45], t$95$1, If[LessEqual[i, -1.4e-183], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.4e+58], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;i \leq -1.1 \cdot 10^{+45}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.4 \cdot 10^{-183}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;i \leq 2.4 \cdot 10^{+58}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -1.1e45 or 2.4e58 < i Initial program 64.0%
cancel-sign-sub64.0%
cancel-sign-sub-inv64.0%
*-commutative64.0%
*-commutative64.0%
remove-double-neg64.0%
*-commutative64.0%
*-commutative64.0%
Simplified64.0%
Taylor expanded in x around 0 62.3%
Taylor expanded in y around 0 52.1%
Taylor expanded in c around 0 45.0%
Taylor expanded in c around 0 40.3%
*-commutative40.3%
*-commutative40.3%
associate-*r*41.2%
Simplified41.2%
if -1.1e45 < i < -1.39999999999999992e-183Initial program 79.2%
sub-neg79.2%
associate-+l+79.2%
fma-def79.2%
+-commutative79.2%
fma-def79.2%
sub-neg79.2%
+-commutative79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
fma-def79.2%
*-commutative79.2%
distribute-rgt-neg-in79.2%
sub-neg79.2%
distribute-neg-in79.2%
unsub-neg79.2%
Simplified79.2%
Taylor expanded in y around inf 44.2%
+-commutative44.2%
*-commutative44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
Simplified44.2%
Taylor expanded in z around inf 32.0%
if -1.39999999999999992e-183 < i < 2.4e58Initial program 80.2%
cancel-sign-sub80.2%
cancel-sign-sub-inv80.2%
*-commutative80.2%
*-commutative80.2%
remove-double-neg80.2%
*-commutative80.2%
*-commutative80.2%
Simplified80.2%
Taylor expanded in b around 0 69.7%
Taylor expanded in c around inf 33.9%
*-commutative33.9%
*-commutative33.9%
associate-*l*35.6%
Simplified35.6%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -3.9e+73) (not (<= i 1.15e+81))) (* b (* a 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 ((i <= -3.9e+73) || !(i <= 1.15e+81)) {
tmp = b * (a * 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 ((i <= (-3.9d+73)) .or. (.not. (i <= 1.15d+81))) then
tmp = b * (a * 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 ((i <= -3.9e+73) || !(i <= 1.15e+81)) {
tmp = b * (a * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -3.9e+73) or not (i <= 1.15e+81): tmp = b * (a * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -3.9e+73) || !(i <= 1.15e+81)) tmp = Float64(b * Float64(a * 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 ((i <= -3.9e+73) || ~((i <= 1.15e+81))) tmp = b * (a * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -3.9e+73], N[Not[LessEqual[i, 1.15e+81]], $MachinePrecision]], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.9 \cdot 10^{+73} \lor \neg \left(i \leq 1.15 \cdot 10^{+81}\right):\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -3.9000000000000001e73 or 1.1499999999999999e81 < i Initial program 63.1%
cancel-sign-sub63.1%
cancel-sign-sub-inv63.1%
*-commutative63.1%
*-commutative63.1%
remove-double-neg63.1%
*-commutative63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in x around 0 62.1%
Taylor expanded in y around 0 53.6%
Taylor expanded in c around 0 44.8%
Taylor expanded in c around 0 42.5%
*-commutative42.5%
*-commutative42.5%
associate-*r*43.5%
Simplified43.5%
if -3.9000000000000001e73 < i < 1.1499999999999999e81Initial program 79.4%
+-commutative79.4%
fma-def79.4%
*-commutative79.4%
*-commutative79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in t around 0 79.3%
Taylor expanded in y around 0 66.3%
Taylor expanded in j around inf 30.7%
Final simplification35.8%
(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 72.9%
sub-neg72.9%
associate-+l+72.9%
fma-def75.2%
+-commutative75.2%
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 a around inf 37.5%
+-commutative37.5%
mul-1-neg37.5%
unsub-neg37.5%
Simplified37.5%
Taylor expanded in i around inf 21.1%
Final simplification21.1%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 72.9%
cancel-sign-sub72.9%
cancel-sign-sub-inv72.9%
*-commutative72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in x around 0 60.8%
Taylor expanded in y around 0 53.2%
Taylor expanded in c around 0 49.8%
Taylor expanded in c around 0 22.5%
*-commutative22.5%
*-commutative22.5%
associate-*r*22.5%
Simplified22.5%
Final simplification22.5%
(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 2023192
(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)))))