
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY)
t_1
(+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* 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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (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 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) 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(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); 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 * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); 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[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - 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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
sub-neg0.0%
+-commutative0.0%
associate-+l+0.0%
distribute-rgt-neg-in0.0%
+-commutative0.0%
fma-def14.8%
sub-neg14.8%
+-commutative14.8%
distribute-neg-in14.8%
unsub-neg14.8%
remove-double-neg14.8%
*-commutative14.8%
Simplified18.5%
Taylor expanded in a around -inf 29.6%
associate-+r+29.6%
+-commutative29.6%
associate-+r+29.6%
Simplified35.2%
Taylor expanded in b around 0 60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Final simplification84.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))
(t_2 (* j (- (* a c) (* y i)))))
(if (<= x -4.5e+258)
(* t (- (* b i) (* x a)))
(if (<= x -6.8e+99)
t_1
(if (<= x -1.7e-87)
(- t_2 (* z (* b c)))
(if (<= x -1.9e-258)
(+ t_2 (* t (* b i)))
(if (<= x 7e-261)
(- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z))))
(if (<= x 2.7e+15)
(-
(+ (* i (- (* t b) (* y j))) (* c (- (* a j) (* z b))))
(* a (* x t)))
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))) + (a * ((c * j) - (x * t)));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (x <= -4.5e+258) {
tmp = t * ((b * i) - (x * a));
} else if (x <= -6.8e+99) {
tmp = t_1;
} else if (x <= -1.7e-87) {
tmp = t_2 - (z * (b * c));
} else if (x <= -1.9e-258) {
tmp = t_2 + (t * (b * i));
} else if (x <= 7e-261) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else if (x <= 2.7e+15) {
tmp = ((i * ((t * b) - (y * j))) + (c * ((a * j) - (z * b)))) - (a * (x * t));
} 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 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
t_2 = j * ((a * c) - (y * i))
if (x <= (-4.5d+258)) then
tmp = t * ((b * i) - (x * a))
else if (x <= (-6.8d+99)) then
tmp = t_1
else if (x <= (-1.7d-87)) then
tmp = t_2 - (z * (b * c))
else if (x <= (-1.9d-258)) then
tmp = t_2 + (t * (b * i))
else if (x <= 7d-261) then
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
else if (x <= 2.7d+15) then
tmp = ((i * ((t * b) - (y * j))) + (c * ((a * j) - (z * b)))) - (a * (x * t))
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))) + (a * ((c * j) - (x * t)));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (x <= -4.5e+258) {
tmp = t * ((b * i) - (x * a));
} else if (x <= -6.8e+99) {
tmp = t_1;
} else if (x <= -1.7e-87) {
tmp = t_2 - (z * (b * c));
} else if (x <= -1.9e-258) {
tmp = t_2 + (t * (b * i));
} else if (x <= 7e-261) {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
} else if (x <= 2.7e+15) {
tmp = ((i * ((t * b) - (y * j))) + (c * ((a * j) - (z * b)))) - (a * (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) t_2 = j * ((a * c) - (y * i)) tmp = 0 if x <= -4.5e+258: tmp = t * ((b * i) - (x * a)) elif x <= -6.8e+99: tmp = t_1 elif x <= -1.7e-87: tmp = t_2 - (z * (b * c)) elif x <= -1.9e-258: tmp = t_2 + (t * (b * i)) elif x <= 7e-261: tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) elif x <= 2.7e+15: tmp = ((i * ((t * b) - (y * j))) + (c * ((a * j) - (z * b)))) - (a * (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (x <= -4.5e+258) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (x <= -6.8e+99) tmp = t_1; elseif (x <= -1.7e-87) tmp = Float64(t_2 - Float64(z * Float64(b * c))); elseif (x <= -1.9e-258) tmp = Float64(t_2 + Float64(t * Float64(b * i))); elseif (x <= 7e-261) tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))); elseif (x <= 2.7e+15) tmp = Float64(Float64(Float64(i * Float64(Float64(t * b) - Float64(y * j))) + Float64(c * Float64(Float64(a * j) - Float64(z * b)))) - Float64(a * Float64(x * t))); 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))) + (a * ((c * j) - (x * t))); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (x <= -4.5e+258) tmp = t * ((b * i) - (x * a)); elseif (x <= -6.8e+99) tmp = t_1; elseif (x <= -1.7e-87) tmp = t_2 - (z * (b * c)); elseif (x <= -1.9e-258) tmp = t_2 + (t * (b * i)); elseif (x <= 7e-261) tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); elseif (x <= 2.7e+15) tmp = ((i * ((t * b) - (y * j))) + (c * ((a * j) - (z * b)))) - (a * (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -4.5e+258], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -6.8e+99], t$95$1, If[LessEqual[x, -1.7e-87], N[(t$95$2 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.9e-258], N[(t$95$2 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7e-261], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.7e+15], N[(N[(N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -4.5 \cdot 10^{+258}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;x \leq -6.8 \cdot 10^{+99}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.7 \cdot 10^{-87}:\\
\;\;\;\;t_2 - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-258}:\\
\;\;\;\;t_2 + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-261}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\mathbf{elif}\;x \leq 2.7 \cdot 10^{+15}:\\
\;\;\;\;\left(i \cdot \left(t \cdot b - y \cdot j\right) + c \cdot \left(a \cdot j - z \cdot b\right)\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -4.5000000000000004e258Initial program 66.3%
sub-neg66.3%
+-commutative66.3%
associate-+l+66.3%
distribute-rgt-neg-in66.3%
+-commutative66.3%
fma-def74.6%
sub-neg74.6%
+-commutative74.6%
distribute-neg-in74.6%
unsub-neg74.6%
remove-double-neg74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in t around inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
if -4.5000000000000004e258 < x < -6.79999999999999968e99 or 2.7e15 < x Initial program 70.3%
sub-neg70.3%
+-commutative70.3%
associate-+l+70.3%
distribute-rgt-neg-in70.3%
+-commutative70.3%
fma-def73.9%
sub-neg73.9%
+-commutative73.9%
distribute-neg-in73.9%
unsub-neg73.9%
remove-double-neg73.9%
*-commutative73.9%
Simplified75.7%
Taylor expanded in a around -inf 70.5%
associate-+r+70.5%
+-commutative70.5%
associate-+r+70.5%
Simplified72.3%
Taylor expanded in b around 0 75.1%
*-commutative75.1%
*-commutative75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
if -6.79999999999999968e99 < x < -1.6999999999999999e-87Initial program 78.9%
cancel-sign-sub78.9%
cancel-sign-sub-inv78.9%
*-commutative78.9%
remove-double-neg78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in c around inf 67.6%
mul-1-neg67.6%
associate-*r*75.5%
Simplified75.5%
if -1.6999999999999999e-87 < x < -1.8999999999999999e-258Initial program 83.8%
cancel-sign-sub83.8%
cancel-sign-sub-inv83.8%
*-commutative83.8%
remove-double-neg83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in i around inf 84.0%
associate-*r*80.2%
*-commutative80.2%
associate-*r*84.0%
Simplified84.0%
if -1.8999999999999999e-258 < x < 6.9999999999999995e-261Initial program 71.3%
sub-neg71.3%
+-commutative71.3%
associate-+l+71.3%
distribute-rgt-neg-in71.3%
+-commutative71.3%
fma-def71.3%
sub-neg71.3%
+-commutative71.3%
distribute-neg-in71.3%
unsub-neg71.3%
remove-double-neg71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in a around 0 90.2%
associate-+r+90.2%
mul-1-neg90.2%
distribute-rgt-neg-in90.2%
mul-1-neg90.2%
distribute-lft-in90.2%
mul-1-neg90.2%
unsub-neg90.2%
*-commutative90.2%
Simplified90.2%
if 6.9999999999999995e-261 < x < 2.7e15Initial program 67.1%
sub-neg67.1%
+-commutative67.1%
associate-+l+67.1%
distribute-rgt-neg-in67.1%
+-commutative67.1%
fma-def71.3%
sub-neg71.3%
+-commutative71.3%
distribute-neg-in71.3%
unsub-neg71.3%
remove-double-neg71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in a around -inf 77.2%
associate-+r+77.2%
+-commutative77.2%
associate-+r+77.2%
Simplified77.2%
Taylor expanded in c around -inf 83.3%
Taylor expanded in x around 0 86.9%
neg-mul-186.9%
+-commutative86.9%
unsub-neg86.9%
mul-1-neg86.9%
distribute-rgt-neg-in86.9%
mul-1-neg86.9%
distribute-lft-in87.0%
mul-1-neg87.0%
unsub-neg87.0%
*-commutative87.0%
*-commutative87.0%
*-commutative87.0%
Simplified87.0%
Final simplification80.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z)))))
(t_2 (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= x -1.9e+258)
(* t (- (* b i) (* x a)))
(if (<= x -1.9e+101)
t_2
(if (<= x -5.8e-86)
(- t_3 (* z (* b c)))
(if (<= x -3.1e-257)
(+ t_3 (* t (* b i)))
(if (<= x 1.8e-260)
t_1
(if (<= x 3.4e-58)
(- (- (* i (* t b)) (* c (- (* z b) (* a j)))) (* a (* x t)))
(if (or (<= x 1.02e+54) (not (<= x 1.8e+117))) 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 * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
double t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (x <= -1.9e+258) {
tmp = t * ((b * i) - (x * a));
} else if (x <= -1.9e+101) {
tmp = t_2;
} else if (x <= -5.8e-86) {
tmp = t_3 - (z * (b * c));
} else if (x <= -3.1e-257) {
tmp = t_3 + (t * (b * i));
} else if (x <= 1.8e-260) {
tmp = t_1;
} else if (x <= 3.4e-58) {
tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t));
} else if ((x <= 1.02e+54) || !(x <= 1.8e+117)) {
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) :: t_3
real(8) :: tmp
t_1 = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
t_3 = j * ((a * c) - (y * i))
if (x <= (-1.9d+258)) then
tmp = t * ((b * i) - (x * a))
else if (x <= (-1.9d+101)) then
tmp = t_2
else if (x <= (-5.8d-86)) then
tmp = t_3 - (z * (b * c))
else if (x <= (-3.1d-257)) then
tmp = t_3 + (t * (b * i))
else if (x <= 1.8d-260) then
tmp = t_1
else if (x <= 3.4d-58) then
tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t))
else if ((x <= 1.02d+54) .or. (.not. (x <= 1.8d+117))) 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 * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
double t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (x <= -1.9e+258) {
tmp = t * ((b * i) - (x * a));
} else if (x <= -1.9e+101) {
tmp = t_2;
} else if (x <= -5.8e-86) {
tmp = t_3 - (z * (b * c));
} else if (x <= -3.1e-257) {
tmp = t_3 + (t * (b * i));
} else if (x <= 1.8e-260) {
tmp = t_1;
} else if (x <= 3.4e-58) {
tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t));
} else if ((x <= 1.02e+54) || !(x <= 1.8e+117)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) t_3 = j * ((a * c) - (y * i)) tmp = 0 if x <= -1.9e+258: tmp = t * ((b * i) - (x * a)) elif x <= -1.9e+101: tmp = t_2 elif x <= -5.8e-86: tmp = t_3 - (z * (b * c)) elif x <= -3.1e-257: tmp = t_3 + (t * (b * i)) elif x <= 1.8e-260: tmp = t_1 elif x <= 3.4e-58: tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t)) elif (x <= 1.02e+54) or not (x <= 1.8e+117): tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))) t_2 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (x <= -1.9e+258) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (x <= -1.9e+101) tmp = t_2; elseif (x <= -5.8e-86) tmp = Float64(t_3 - Float64(z * Float64(b * c))); elseif (x <= -3.1e-257) tmp = Float64(t_3 + Float64(t * Float64(b * i))); elseif (x <= 1.8e-260) tmp = t_1; elseif (x <= 3.4e-58) tmp = Float64(Float64(Float64(i * Float64(t * b)) - Float64(c * Float64(Float64(z * b) - Float64(a * j)))) - Float64(a * Float64(x * t))); elseif ((x <= 1.02e+54) || !(x <= 1.8e+117)) 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 * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); t_2 = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (x <= -1.9e+258) tmp = t * ((b * i) - (x * a)); elseif (x <= -1.9e+101) tmp = t_2; elseif (x <= -5.8e-86) tmp = t_3 - (z * (b * c)); elseif (x <= -3.1e-257) tmp = t_3 + (t * (b * i)); elseif (x <= 1.8e-260) tmp = t_1; elseif (x <= 3.4e-58) tmp = ((i * (t * b)) - (c * ((z * b) - (a * j)))) - (a * (x * t)); elseif ((x <= 1.02e+54) || ~((x <= 1.8e+117))) 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[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.9e+258], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.9e+101], t$95$2, If[LessEqual[x, -5.8e-86], N[(t$95$3 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.1e-257], N[(t$95$3 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.8e-260], t$95$1, If[LessEqual[x, 3.4e-58], N[(N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(z * b), $MachinePrecision] - N[(a * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[x, 1.02e+54], N[Not[LessEqual[x, 1.8e+117]], $MachinePrecision]], t$95$2, t$95$1]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -1.9 \cdot 10^{+258}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{+101}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5.8 \cdot 10^{-86}:\\
\;\;\;\;t_3 - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-257}:\\
\;\;\;\;t_3 + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-260}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-58}:\\
\;\;\;\;\left(i \cdot \left(t \cdot b\right) - c \cdot \left(z \cdot b - a \cdot j\right)\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;x \leq 1.02 \cdot 10^{+54} \lor \neg \left(x \leq 1.8 \cdot 10^{+117}\right):\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -1.90000000000000004e258Initial program 66.3%
sub-neg66.3%
+-commutative66.3%
associate-+l+66.3%
distribute-rgt-neg-in66.3%
+-commutative66.3%
fma-def74.6%
sub-neg74.6%
+-commutative74.6%
distribute-neg-in74.6%
unsub-neg74.6%
remove-double-neg74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in t around inf 92.0%
mul-1-neg92.0%
unsub-neg92.0%
Simplified92.0%
if -1.90000000000000004e258 < x < -1.8999999999999999e101 or 3.39999999999999973e-58 < x < 1.02e54 or 1.80000000000000006e117 < x Initial program 70.5%
sub-neg70.5%
+-commutative70.5%
associate-+l+70.5%
distribute-rgt-neg-in70.5%
+-commutative70.5%
fma-def75.2%
sub-neg75.2%
+-commutative75.2%
distribute-neg-in75.2%
unsub-neg75.2%
remove-double-neg75.2%
*-commutative75.2%
Simplified76.2%
Taylor expanded in a around -inf 73.4%
associate-+r+73.4%
+-commutative73.4%
associate-+r+73.4%
Simplified75.4%
Taylor expanded in b around 0 80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
*-commutative80.3%
Simplified80.3%
if -1.8999999999999999e101 < x < -5.7999999999999998e-86Initial program 78.9%
cancel-sign-sub78.9%
cancel-sign-sub-inv78.9%
*-commutative78.9%
remove-double-neg78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in c around inf 67.6%
mul-1-neg67.6%
associate-*r*75.5%
Simplified75.5%
if -5.7999999999999998e-86 < x < -3.10000000000000008e-257Initial program 83.8%
cancel-sign-sub83.8%
cancel-sign-sub-inv83.8%
*-commutative83.8%
remove-double-neg83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in i around inf 84.0%
associate-*r*80.2%
*-commutative80.2%
associate-*r*84.0%
Simplified84.0%
if -3.10000000000000008e-257 < x < 1.8e-260 or 1.02e54 < x < 1.80000000000000006e117Initial program 72.9%
sub-neg72.9%
+-commutative72.9%
associate-+l+72.9%
distribute-rgt-neg-in72.9%
+-commutative72.9%
fma-def72.9%
sub-neg72.9%
+-commutative72.9%
distribute-neg-in72.9%
unsub-neg72.9%
remove-double-neg72.9%
*-commutative72.9%
Simplified75.2%
Taylor expanded in a around 0 81.5%
associate-+r+81.5%
mul-1-neg81.5%
distribute-rgt-neg-in81.5%
mul-1-neg81.5%
distribute-lft-in81.5%
mul-1-neg81.5%
unsub-neg81.5%
*-commutative81.5%
Simplified81.5%
if 1.8e-260 < x < 3.39999999999999973e-58Initial program 62.6%
sub-neg62.6%
+-commutative62.6%
associate-+l+62.6%
distribute-rgt-neg-in62.6%
+-commutative62.6%
fma-def65.6%
sub-neg65.6%
+-commutative65.6%
distribute-neg-in65.6%
unsub-neg65.6%
remove-double-neg65.6%
*-commutative65.6%
Simplified65.6%
Taylor expanded in a around -inf 73.9%
associate-+r+73.9%
+-commutative73.9%
associate-+r+73.9%
Simplified73.9%
Taylor expanded in c around -inf 85.2%
Taylor expanded in y around 0 81.4%
neg-mul-181.4%
+-commutative81.4%
unsub-neg81.4%
*-commutative81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Final simplification80.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (+ t_1 (* t (* b i)))))
(if (<= x -3.7e+119)
(* x (- (* y z) (* t a)))
(if (<= x -1.65e-252)
t_2
(if (<= x 1.2e-169)
(- t_1 (* z (* b c)))
(if (<= x 1.06e+21) t_2 (- (* y (* x z)) (* a (* 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 = j * ((a * c) - (y * i));
double t_2 = t_1 + (t * (b * i));
double tmp;
if (x <= -3.7e+119) {
tmp = x * ((y * z) - (t * a));
} else if (x <= -1.65e-252) {
tmp = t_2;
} else if (x <= 1.2e-169) {
tmp = t_1 - (z * (b * c));
} else if (x <= 1.06e+21) {
tmp = t_2;
} else {
tmp = (y * (x * z)) - (a * (x * t));
}
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 = j * ((a * c) - (y * i))
t_2 = t_1 + (t * (b * i))
if (x <= (-3.7d+119)) then
tmp = x * ((y * z) - (t * a))
else if (x <= (-1.65d-252)) then
tmp = t_2
else if (x <= 1.2d-169) then
tmp = t_1 - (z * (b * c))
else if (x <= 1.06d+21) then
tmp = t_2
else
tmp = (y * (x * z)) - (a * (x * t))
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 = j * ((a * c) - (y * i));
double t_2 = t_1 + (t * (b * i));
double tmp;
if (x <= -3.7e+119) {
tmp = x * ((y * z) - (t * a));
} else if (x <= -1.65e-252) {
tmp = t_2;
} else if (x <= 1.2e-169) {
tmp = t_1 - (z * (b * c));
} else if (x <= 1.06e+21) {
tmp = t_2;
} else {
tmp = (y * (x * z)) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t_1 + (t * (b * i)) tmp = 0 if x <= -3.7e+119: tmp = x * ((y * z) - (t * a)) elif x <= -1.65e-252: tmp = t_2 elif x <= 1.2e-169: tmp = t_1 - (z * (b * c)) elif x <= 1.06e+21: tmp = t_2 else: tmp = (y * (x * z)) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t_1 + Float64(t * Float64(b * i))) tmp = 0.0 if (x <= -3.7e+119) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (x <= -1.65e-252) tmp = t_2; elseif (x <= 1.2e-169) tmp = Float64(t_1 - Float64(z * Float64(b * c))); elseif (x <= 1.06e+21) tmp = t_2; else tmp = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t_1 + (t * (b * i)); tmp = 0.0; if (x <= -3.7e+119) tmp = x * ((y * z) - (t * a)); elseif (x <= -1.65e-252) tmp = t_2; elseif (x <= 1.2e-169) tmp = t_1 - (z * (b * c)); elseif (x <= 1.06e+21) tmp = t_2; else tmp = (y * (x * z)) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.7e+119], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.65e-252], t$95$2, If[LessEqual[x, 1.2e-169], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.06e+21], t$95$2, N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t_1 + t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;x \leq -3.7 \cdot 10^{+119}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;x \leq -1.65 \cdot 10^{-252}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 1.2 \cdot 10^{-169}:\\
\;\;\;\;t_1 - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{+21}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if x < -3.7e119Initial program 72.3%
sub-neg72.3%
+-commutative72.3%
associate-+l+72.3%
distribute-rgt-neg-in72.3%
+-commutative72.3%
fma-def74.4%
sub-neg74.4%
+-commutative74.4%
distribute-neg-in74.4%
unsub-neg74.4%
remove-double-neg74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in x around inf 74.0%
if -3.7e119 < x < -1.65000000000000004e-252 or 1.20000000000000005e-169 < x < 1.06e21Initial program 78.8%
cancel-sign-sub78.8%
cancel-sign-sub-inv78.8%
*-commutative78.8%
remove-double-neg78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in i around inf 68.1%
associate-*r*66.9%
*-commutative66.9%
associate-*r*69.2%
Simplified69.2%
if -1.65000000000000004e-252 < x < 1.20000000000000005e-169Initial program 67.9%
cancel-sign-sub67.9%
cancel-sign-sub-inv67.9%
*-commutative67.9%
remove-double-neg67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in c around inf 65.9%
mul-1-neg65.9%
associate-*r*63.9%
Simplified63.9%
if 1.06e21 < x Initial program 66.7%
sub-neg66.7%
+-commutative66.7%
associate-+l+66.7%
distribute-rgt-neg-in66.7%
+-commutative66.7%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified75.0%
Taylor expanded in a around -inf 69.5%
associate-+r+69.5%
+-commutative69.5%
associate-+r+69.5%
Simplified70.9%
Taylor expanded in c around -inf 68.1%
Taylor expanded in x around inf 65.8%
Final simplification68.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -3e+192) (not (<= a 2e+99))) (* a (- (* c j) (* x t))) (- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3e+192) || !(a <= 2e+99)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-3d+192)) .or. (.not. (a <= 2d+99))) then
tmp = a * ((c * j) - (x * t))
else
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3e+192) || !(a <= 2e+99)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -3e+192) or not (a <= 2e+99): tmp = a * ((c * j) - (x * t)) else: tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -3e+192) || !(a <= 2e+99)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -3e+192) || ~((a <= 2e+99))) tmp = a * ((c * j) - (x * t)); else tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -3e+192], N[Not[LessEqual[a, 2e+99]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{+192} \lor \neg \left(a \leq 2 \cdot 10^{+99}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\end{array}
\end{array}
if a < -3e192 or 1.9999999999999999e99 < a Initial program 66.9%
sub-neg66.9%
+-commutative66.9%
associate-+l+66.9%
distribute-rgt-neg-in66.9%
+-commutative66.9%
fma-def68.3%
sub-neg68.3%
+-commutative68.3%
distribute-neg-in68.3%
unsub-neg68.3%
remove-double-neg68.3%
*-commutative68.3%
Simplified69.7%
Taylor expanded in a around inf 76.7%
+-commutative76.7%
mul-1-neg76.7%
unsub-neg76.7%
Simplified76.7%
if -3e192 < a < 1.9999999999999999e99Initial program 74.2%
sub-neg74.2%
+-commutative74.2%
associate-+l+74.2%
distribute-rgt-neg-in74.2%
+-commutative74.2%
fma-def78.0%
sub-neg78.0%
+-commutative78.0%
distribute-neg-in78.0%
unsub-neg78.0%
remove-double-neg78.0%
*-commutative78.0%
Simplified78.5%
Taylor expanded in a around 0 63.8%
associate-+r+63.8%
mul-1-neg63.8%
distribute-rgt-neg-in63.8%
mul-1-neg63.8%
distribute-lft-in65.4%
mul-1-neg65.4%
unsub-neg65.4%
*-commutative65.4%
Simplified65.4%
Final simplification68.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.2e-85) (not (<= a 1.6e+73))) (+ (* y (- (* x z) (* i j))) (* a (- (* c j) (* x t)))) (- (* b (- (* t i) (* z c))) (* y (- (* i j) (* x z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.2e-85) || !(a <= 1.6e+73)) {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
} else {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-2.2d-85)) .or. (.not. (a <= 1.6d+73))) then
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)))
else
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.2e-85) || !(a <= 1.6e+73)) {
tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t)));
} else {
tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -2.2e-85) or not (a <= 1.6e+73): tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))) else: tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.2e-85) || !(a <= 1.6e+73)) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(a * Float64(Float64(c * j) - Float64(x * t)))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - Float64(y * Float64(Float64(i * j) - Float64(x * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -2.2e-85) || ~((a <= 1.6e+73))) tmp = (y * ((x * z) - (i * j))) + (a * ((c * j) - (x * t))); else tmp = (b * ((t * i) - (z * c))) - (y * ((i * j) - (x * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.2e-85], N[Not[LessEqual[a, 1.6e+73]], $MachinePrecision]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{-85} \lor \neg \left(a \leq 1.6 \cdot 10^{+73}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) - y \cdot \left(i \cdot j - x \cdot z\right)\\
\end{array}
\end{array}
if a < -2.2e-85 or 1.59999999999999991e73 < a Initial program 70.1%
sub-neg70.1%
+-commutative70.1%
associate-+l+70.1%
distribute-rgt-neg-in70.1%
+-commutative70.1%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified73.1%
Taylor expanded in a around -inf 74.5%
associate-+r+74.5%
+-commutative74.5%
associate-+r+74.5%
Simplified76.0%
Taylor expanded in b around 0 72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
if -2.2e-85 < a < 1.59999999999999991e73Initial program 74.4%
sub-neg74.4%
+-commutative74.4%
associate-+l+74.4%
distribute-rgt-neg-in74.4%
+-commutative74.4%
fma-def78.6%
sub-neg78.6%
+-commutative78.6%
distribute-neg-in78.6%
unsub-neg78.6%
remove-double-neg78.6%
*-commutative78.6%
Simplified79.4%
Taylor expanded in a around 0 68.8%
associate-+r+68.8%
mul-1-neg68.8%
distribute-rgt-neg-in68.8%
mul-1-neg68.8%
distribute-lft-in70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
Simplified70.4%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* t (- (* b i) (* x a)))))
(if (<= t -3.3e+21)
t_3
(if (<= t -3.5e-151)
t_2
(if (<= t 4.8e-226)
t_1
(if (<= t 3.6e-173)
t_2
(if (<= t 6.5e-131)
(* j (- (* a c) (* y i)))
(if (<= t 1.05e+41) 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 = c * ((a * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.3e+21) {
tmp = t_3;
} else if (t <= -3.5e-151) {
tmp = t_2;
} else if (t <= 4.8e-226) {
tmp = t_1;
} else if (t <= 3.6e-173) {
tmp = t_2;
} else if (t <= 6.5e-131) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 1.05e+41) {
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 = c * ((a * j) - (z * b))
t_2 = y * ((x * z) - (i * j))
t_3 = t * ((b * i) - (x * a))
if (t <= (-3.3d+21)) then
tmp = t_3
else if (t <= (-3.5d-151)) then
tmp = t_2
else if (t <= 4.8d-226) then
tmp = t_1
else if (t <= 3.6d-173) then
tmp = t_2
else if (t <= 6.5d-131) then
tmp = j * ((a * c) - (y * i))
else if (t <= 1.05d+41) 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 = c * ((a * j) - (z * b));
double t_2 = y * ((x * z) - (i * j));
double t_3 = t * ((b * i) - (x * a));
double tmp;
if (t <= -3.3e+21) {
tmp = t_3;
} else if (t <= -3.5e-151) {
tmp = t_2;
} else if (t <= 4.8e-226) {
tmp = t_1;
} else if (t <= 3.6e-173) {
tmp = t_2;
} else if (t <= 6.5e-131) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 1.05e+41) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) t_2 = y * ((x * z) - (i * j)) t_3 = t * ((b * i) - (x * a)) tmp = 0 if t <= -3.3e+21: tmp = t_3 elif t <= -3.5e-151: tmp = t_2 elif t <= 4.8e-226: tmp = t_1 elif t <= 3.6e-173: tmp = t_2 elif t <= 6.5e-131: tmp = j * ((a * c) - (y * i)) elif t <= 1.05e+41: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -3.3e+21) tmp = t_3; elseif (t <= -3.5e-151) tmp = t_2; elseif (t <= 4.8e-226) tmp = t_1; elseif (t <= 3.6e-173) tmp = t_2; elseif (t <= 6.5e-131) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (t <= 1.05e+41) 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 = c * ((a * j) - (z * b)); t_2 = y * ((x * z) - (i * j)); t_3 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -3.3e+21) tmp = t_3; elseif (t <= -3.5e-151) tmp = t_2; elseif (t <= 4.8e-226) tmp = t_1; elseif (t <= 3.6e-173) tmp = t_2; elseif (t <= 6.5e-131) tmp = j * ((a * c) - (y * i)); elseif (t <= 1.05e+41) 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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.3e+21], t$95$3, If[LessEqual[t, -3.5e-151], t$95$2, If[LessEqual[t, 4.8e-226], t$95$1, If[LessEqual[t, 3.6e-173], t$95$2, If[LessEqual[t, 6.5e-131], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.05e+41], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -3.3 \cdot 10^{+21}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;t \leq -3.5 \cdot 10^{-151}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{-226}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{-173}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-131}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 1.05 \cdot 10^{+41}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if t < -3.3e21 or 1.05e41 < t Initial program 68.0%
sub-neg68.0%
+-commutative68.0%
associate-+l+68.0%
distribute-rgt-neg-in68.0%
+-commutative68.0%
fma-def71.7%
sub-neg71.7%
+-commutative71.7%
distribute-neg-in71.7%
unsub-neg71.7%
remove-double-neg71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in t around inf 67.0%
mul-1-neg67.0%
unsub-neg67.0%
Simplified67.0%
if -3.3e21 < t < -3.49999999999999995e-151 or 4.7999999999999999e-226 < t < 3.59999999999999972e-173Initial program 68.2%
sub-neg68.2%
+-commutative68.2%
associate-+l+68.2%
distribute-rgt-neg-in68.2%
+-commutative68.2%
fma-def70.7%
sub-neg70.7%
+-commutative70.7%
distribute-neg-in70.7%
unsub-neg70.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in y around inf 58.8%
*-commutative58.8%
mul-1-neg58.8%
unsub-neg58.8%
Simplified58.8%
if -3.49999999999999995e-151 < t < 4.7999999999999999e-226 or 6.5000000000000002e-131 < t < 1.05e41Initial program 76.8%
sub-neg76.8%
+-commutative76.8%
associate-+l+76.8%
distribute-rgt-neg-in76.8%
+-commutative76.8%
fma-def79.8%
sub-neg79.8%
+-commutative79.8%
distribute-neg-in79.8%
unsub-neg79.8%
remove-double-neg79.8%
*-commutative79.8%
Simplified81.9%
Taylor expanded in c around inf 53.1%
distribute-rgt-in53.1%
*-commutative53.1%
mul-1-neg53.1%
cancel-sign-sub-inv53.1%
*-commutative53.1%
distribute-rgt-out--53.1%
Simplified53.1%
if 3.59999999999999972e-173 < t < 6.5000000000000002e-131Initial program 88.7%
sub-neg88.7%
+-commutative88.7%
associate-+l+88.7%
distribute-rgt-neg-in88.7%
+-commutative88.7%
fma-def88.7%
sub-neg88.7%
+-commutative88.7%
distribute-neg-in88.7%
unsub-neg88.7%
remove-double-neg88.7%
*-commutative88.7%
Simplified88.7%
Taylor expanded in j around inf 78.1%
mul-1-neg78.1%
sub-neg78.1%
Simplified78.1%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1.52e+119)
(* x (- (* y z) (* t a)))
(if (<= x 5.5e+20)
(+ (* j (- (* a c) (* y i))) (* t (* b i)))
(- (* y (* x z)) (* a (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1.52e+119) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 5.5e+20) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else {
tmp = (y * (x * z)) - (a * (x * t));
}
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 <= (-1.52d+119)) then
tmp = x * ((y * z) - (t * a))
else if (x <= 5.5d+20) then
tmp = (j * ((a * c) - (y * i))) + (t * (b * i))
else
tmp = (y * (x * z)) - (a * (x * t))
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 <= -1.52e+119) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 5.5e+20) {
tmp = (j * ((a * c) - (y * i))) + (t * (b * i));
} else {
tmp = (y * (x * z)) - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1.52e+119: tmp = x * ((y * z) - (t * a)) elif x <= 5.5e+20: tmp = (j * ((a * c) - (y * i))) + (t * (b * i)) else: tmp = (y * (x * z)) - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1.52e+119) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (x <= 5.5e+20) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t * Float64(b * i))); else tmp = Float64(Float64(y * Float64(x * z)) - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1.52e+119) tmp = x * ((y * z) - (t * a)); elseif (x <= 5.5e+20) tmp = (j * ((a * c) - (y * i))) + (t * (b * i)); else tmp = (y * (x * z)) - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1.52e+119], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.5e+20], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.52 \cdot 10^{+119}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;x \leq 5.5 \cdot 10^{+20}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right) - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if x < -1.52000000000000007e119Initial program 72.3%
sub-neg72.3%
+-commutative72.3%
associate-+l+72.3%
distribute-rgt-neg-in72.3%
+-commutative72.3%
fma-def74.4%
sub-neg74.4%
+-commutative74.4%
distribute-neg-in74.4%
unsub-neg74.4%
remove-double-neg74.4%
*-commutative74.4%
Simplified74.4%
Taylor expanded in x around inf 74.0%
if -1.52000000000000007e119 < x < 5.5e20Initial program 74.9%
cancel-sign-sub74.9%
cancel-sign-sub-inv74.9%
*-commutative74.9%
remove-double-neg74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in i around inf 63.9%
associate-*r*61.7%
*-commutative61.7%
associate-*r*63.9%
Simplified63.9%
if 5.5e20 < x Initial program 66.7%
sub-neg66.7%
+-commutative66.7%
associate-+l+66.7%
distribute-rgt-neg-in66.7%
+-commutative66.7%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified75.0%
Taylor expanded in a around -inf 69.5%
associate-+r+69.5%
+-commutative69.5%
associate-+r+69.5%
Simplified70.9%
Taylor expanded in c around -inf 68.1%
Taylor expanded in x around inf 65.8%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))) (t_2 (* a (- (* x t)))))
(if (<= x -1.7e+33)
t_2
(if (<= x -6.2e-165)
t_1
(if (<= x 5.2e-271)
(* t (* b i))
(if (<= x 4.2e+20)
t_1
(if (or (<= x 7.5e+262) (not (<= x 2.8e+302)))
(* y (* x z))
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 = j * (a * c);
double t_2 = a * -(x * t);
double tmp;
if (x <= -1.7e+33) {
tmp = t_2;
} else if (x <= -6.2e-165) {
tmp = t_1;
} else if (x <= 5.2e-271) {
tmp = t * (b * i);
} else if (x <= 4.2e+20) {
tmp = t_1;
} else if ((x <= 7.5e+262) || !(x <= 2.8e+302)) {
tmp = y * (x * z);
} 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 = j * (a * c)
t_2 = a * -(x * t)
if (x <= (-1.7d+33)) then
tmp = t_2
else if (x <= (-6.2d-165)) then
tmp = t_1
else if (x <= 5.2d-271) then
tmp = t * (b * i)
else if (x <= 4.2d+20) then
tmp = t_1
else if ((x <= 7.5d+262) .or. (.not. (x <= 2.8d+302))) then
tmp = y * (x * z)
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 = j * (a * c);
double t_2 = a * -(x * t);
double tmp;
if (x <= -1.7e+33) {
tmp = t_2;
} else if (x <= -6.2e-165) {
tmp = t_1;
} else if (x <= 5.2e-271) {
tmp = t * (b * i);
} else if (x <= 4.2e+20) {
tmp = t_1;
} else if ((x <= 7.5e+262) || !(x <= 2.8e+302)) {
tmp = y * (x * z);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) t_2 = a * -(x * t) tmp = 0 if x <= -1.7e+33: tmp = t_2 elif x <= -6.2e-165: tmp = t_1 elif x <= 5.2e-271: tmp = t * (b * i) elif x <= 4.2e+20: tmp = t_1 elif (x <= 7.5e+262) or not (x <= 2.8e+302): tmp = y * (x * z) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) t_2 = Float64(a * Float64(-Float64(x * t))) tmp = 0.0 if (x <= -1.7e+33) tmp = t_2; elseif (x <= -6.2e-165) tmp = t_1; elseif (x <= 5.2e-271) tmp = Float64(t * Float64(b * i)); elseif (x <= 4.2e+20) tmp = t_1; elseif ((x <= 7.5e+262) || !(x <= 2.8e+302)) tmp = Float64(y * Float64(x * z)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); t_2 = a * -(x * t); tmp = 0.0; if (x <= -1.7e+33) tmp = t_2; elseif (x <= -6.2e-165) tmp = t_1; elseif (x <= 5.2e-271) tmp = t * (b * i); elseif (x <= 4.2e+20) tmp = t_1; elseif ((x <= 7.5e+262) || ~((x <= 2.8e+302))) tmp = y * (x * z); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[x, -1.7e+33], t$95$2, If[LessEqual[x, -6.2e-165], t$95$1, If[LessEqual[x, 5.2e-271], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.2e+20], t$95$1, If[Or[LessEqual[x, 7.5e+262], N[Not[LessEqual[x, 2.8e+302]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
t_2 := a \cdot \left(-x \cdot t\right)\\
\mathbf{if}\;x \leq -1.7 \cdot 10^{+33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -6.2 \cdot 10^{-165}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{+262} \lor \neg \left(x \leq 2.8 \cdot 10^{+302}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.7e33 or 7.49999999999999977e262 < x < 2.7999999999999999e302Initial program 74.3%
sub-neg74.3%
+-commutative74.3%
associate-+l+74.3%
distribute-rgt-neg-in74.3%
+-commutative74.3%
fma-def77.0%
sub-neg77.0%
+-commutative77.0%
distribute-neg-in77.0%
unsub-neg77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in a around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
Simplified58.1%
Taylor expanded in c around 0 49.0%
mul-1-neg49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
distribute-rgt-neg-in49.0%
Simplified49.0%
if -1.7e33 < x < -6.19999999999999992e-165 or 5.2e-271 < x < 4.2e20Initial program 73.5%
sub-neg73.5%
+-commutative73.5%
associate-+l+73.5%
distribute-rgt-neg-in73.5%
+-commutative73.5%
fma-def76.9%
sub-neg76.9%
+-commutative76.9%
distribute-neg-in76.9%
unsub-neg76.9%
remove-double-neg76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in a around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
Simplified43.0%
Taylor expanded in c around inf 35.3%
associate-*r*37.2%
*-commutative37.2%
Simplified37.2%
if -6.19999999999999992e-165 < x < 5.2e-271Initial program 69.8%
sub-neg69.8%
+-commutative69.8%
associate-+l+69.8%
distribute-rgt-neg-in69.8%
+-commutative69.8%
fma-def69.8%
sub-neg69.8%
+-commutative69.8%
distribute-neg-in69.8%
unsub-neg69.8%
remove-double-neg69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in a around -inf 83.0%
associate-+r+83.0%
+-commutative83.0%
associate-+r+83.0%
Simplified83.0%
Taylor expanded in t around inf 39.8%
*-commutative39.8%
Simplified39.8%
Taylor expanded in i around inf 36.5%
if 4.2e20 < x < 7.49999999999999977e262 or 2.7999999999999999e302 < x Initial program 68.8%
sub-neg68.8%
+-commutative68.8%
associate-+l+68.8%
distribute-rgt-neg-in68.8%
+-commutative68.8%
fma-def73.5%
sub-neg73.5%
+-commutative73.5%
distribute-neg-in73.5%
unsub-neg73.5%
remove-double-neg73.5%
*-commutative73.5%
Simplified76.6%
Taylor expanded in y around inf 61.3%
*-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
Simplified61.3%
Taylor expanded in z around inf 49.0%
Final simplification43.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))) (t_2 (* a (- (* x t)))))
(if (<= x -1.35e+32)
t_2
(if (<= x -7.8e-259)
t_1
(if (<= x 7e-261)
(* b (* c (- z)))
(if (<= x 8.5e+20)
t_1
(if (or (<= x 1.35e+263) (not (<= x 7.8e+299)))
(* y (* x z))
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 = j * (a * c);
double t_2 = a * -(x * t);
double tmp;
if (x <= -1.35e+32) {
tmp = t_2;
} else if (x <= -7.8e-259) {
tmp = t_1;
} else if (x <= 7e-261) {
tmp = b * (c * -z);
} else if (x <= 8.5e+20) {
tmp = t_1;
} else if ((x <= 1.35e+263) || !(x <= 7.8e+299)) {
tmp = y * (x * z);
} 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 = j * (a * c)
t_2 = a * -(x * t)
if (x <= (-1.35d+32)) then
tmp = t_2
else if (x <= (-7.8d-259)) then
tmp = t_1
else if (x <= 7d-261) then
tmp = b * (c * -z)
else if (x <= 8.5d+20) then
tmp = t_1
else if ((x <= 1.35d+263) .or. (.not. (x <= 7.8d+299))) then
tmp = y * (x * z)
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 = j * (a * c);
double t_2 = a * -(x * t);
double tmp;
if (x <= -1.35e+32) {
tmp = t_2;
} else if (x <= -7.8e-259) {
tmp = t_1;
} else if (x <= 7e-261) {
tmp = b * (c * -z);
} else if (x <= 8.5e+20) {
tmp = t_1;
} else if ((x <= 1.35e+263) || !(x <= 7.8e+299)) {
tmp = y * (x * z);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) t_2 = a * -(x * t) tmp = 0 if x <= -1.35e+32: tmp = t_2 elif x <= -7.8e-259: tmp = t_1 elif x <= 7e-261: tmp = b * (c * -z) elif x <= 8.5e+20: tmp = t_1 elif (x <= 1.35e+263) or not (x <= 7.8e+299): tmp = y * (x * z) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) t_2 = Float64(a * Float64(-Float64(x * t))) tmp = 0.0 if (x <= -1.35e+32) tmp = t_2; elseif (x <= -7.8e-259) tmp = t_1; elseif (x <= 7e-261) tmp = Float64(b * Float64(c * Float64(-z))); elseif (x <= 8.5e+20) tmp = t_1; elseif ((x <= 1.35e+263) || !(x <= 7.8e+299)) tmp = Float64(y * Float64(x * z)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); t_2 = a * -(x * t); tmp = 0.0; if (x <= -1.35e+32) tmp = t_2; elseif (x <= -7.8e-259) tmp = t_1; elseif (x <= 7e-261) tmp = b * (c * -z); elseif (x <= 8.5e+20) tmp = t_1; elseif ((x <= 1.35e+263) || ~((x <= 7.8e+299))) tmp = y * (x * z); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision]}, If[LessEqual[x, -1.35e+32], t$95$2, If[LessEqual[x, -7.8e-259], t$95$1, If[LessEqual[x, 7e-261], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.5e+20], t$95$1, If[Or[LessEqual[x, 1.35e+263], N[Not[LessEqual[x, 7.8e+299]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
t_2 := a \cdot \left(-x \cdot t\right)\\
\mathbf{if}\;x \leq -1.35 \cdot 10^{+32}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -7.8 \cdot 10^{-259}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 7 \cdot 10^{-261}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{+20}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+263} \lor \neg \left(x \leq 7.8 \cdot 10^{+299}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -1.35000000000000006e32 or 1.35e263 < x < 7.80000000000000071e299Initial program 74.3%
sub-neg74.3%
+-commutative74.3%
associate-+l+74.3%
distribute-rgt-neg-in74.3%
+-commutative74.3%
fma-def77.0%
sub-neg77.0%
+-commutative77.0%
distribute-neg-in77.0%
unsub-neg77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in a around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
Simplified58.1%
Taylor expanded in c around 0 49.0%
mul-1-neg49.0%
*-commutative49.0%
distribute-rgt-neg-in49.0%
distribute-rgt-neg-in49.0%
Simplified49.0%
if -1.35000000000000006e32 < x < -7.80000000000000031e-259 or 6.9999999999999995e-261 < x < 8.5e20Initial program 72.9%
sub-neg72.9%
+-commutative72.9%
associate-+l+72.9%
distribute-rgt-neg-in72.9%
+-commutative72.9%
fma-def76.1%
sub-neg76.1%
+-commutative76.1%
distribute-neg-in76.1%
unsub-neg76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in a around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
Simplified42.7%
Taylor expanded in c around inf 35.5%
associate-*r*36.4%
*-commutative36.4%
Simplified36.4%
if -7.80000000000000031e-259 < x < 6.9999999999999995e-261Initial program 71.3%
cancel-sign-sub71.3%
cancel-sign-sub-inv71.3%
*-commutative71.3%
remove-double-neg71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in z around inf 33.6%
Taylor expanded in y around 0 39.0%
Taylor expanded in y around 0 31.1%
associate-*r*41.6%
associate-*r*41.6%
*-commutative41.6%
mul-1-neg41.6%
*-commutative41.6%
distribute-rgt-neg-in41.6%
Simplified41.6%
if 8.5e20 < x < 1.35e263 or 7.80000000000000071e299 < x Initial program 68.8%
sub-neg68.8%
+-commutative68.8%
associate-+l+68.8%
distribute-rgt-neg-in68.8%
+-commutative68.8%
fma-def73.5%
sub-neg73.5%
+-commutative73.5%
distribute-neg-in73.5%
unsub-neg73.5%
remove-double-neg73.5%
*-commutative73.5%
Simplified76.6%
Taylor expanded in y around inf 61.3%
*-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
Simplified61.3%
Taylor expanded in z around inf 49.0%
Final simplification43.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= x -1.2e+32)
(* t (- (* x a)))
(if (<= x -8.2e-258)
t_1
(if (<= x 3e-259)
(* b (* c (- z)))
(if (<= x 2.9e+19)
t_1
(if (or (<= x 1.3e+261) (not (<= x 1.05e+297)))
(* y (* x z))
(* a (- (* 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 = j * (a * c);
double tmp;
if (x <= -1.2e+32) {
tmp = t * -(x * a);
} else if (x <= -8.2e-258) {
tmp = t_1;
} else if (x <= 3e-259) {
tmp = b * (c * -z);
} else if (x <= 2.9e+19) {
tmp = t_1;
} else if ((x <= 1.3e+261) || !(x <= 1.05e+297)) {
tmp = y * (x * z);
} else {
tmp = a * -(x * t);
}
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 = j * (a * c)
if (x <= (-1.2d+32)) then
tmp = t * -(x * a)
else if (x <= (-8.2d-258)) then
tmp = t_1
else if (x <= 3d-259) then
tmp = b * (c * -z)
else if (x <= 2.9d+19) then
tmp = t_1
else if ((x <= 1.3d+261) .or. (.not. (x <= 1.05d+297))) then
tmp = y * (x * z)
else
tmp = a * -(x * t)
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 = j * (a * c);
double tmp;
if (x <= -1.2e+32) {
tmp = t * -(x * a);
} else if (x <= -8.2e-258) {
tmp = t_1;
} else if (x <= 3e-259) {
tmp = b * (c * -z);
} else if (x <= 2.9e+19) {
tmp = t_1;
} else if ((x <= 1.3e+261) || !(x <= 1.05e+297)) {
tmp = y * (x * z);
} else {
tmp = a * -(x * t);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if x <= -1.2e+32: tmp = t * -(x * a) elif x <= -8.2e-258: tmp = t_1 elif x <= 3e-259: tmp = b * (c * -z) elif x <= 2.9e+19: tmp = t_1 elif (x <= 1.3e+261) or not (x <= 1.05e+297): tmp = y * (x * z) else: tmp = a * -(x * t) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (x <= -1.2e+32) tmp = Float64(t * Float64(-Float64(x * a))); elseif (x <= -8.2e-258) tmp = t_1; elseif (x <= 3e-259) tmp = Float64(b * Float64(c * Float64(-z))); elseif (x <= 2.9e+19) tmp = t_1; elseif ((x <= 1.3e+261) || !(x <= 1.05e+297)) tmp = Float64(y * Float64(x * z)); else tmp = Float64(a * Float64(-Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (a * c); tmp = 0.0; if (x <= -1.2e+32) tmp = t * -(x * a); elseif (x <= -8.2e-258) tmp = t_1; elseif (x <= 3e-259) tmp = b * (c * -z); elseif (x <= 2.9e+19) tmp = t_1; elseif ((x <= 1.3e+261) || ~((x <= 1.05e+297))) tmp = y * (x * z); else tmp = a * -(x * t); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.2e+32], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, -8.2e-258], t$95$1, If[LessEqual[x, 3e-259], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e+19], t$95$1, If[Or[LessEqual[x, 1.3e+261], N[Not[LessEqual[x, 1.05e+297]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * (-N[(x * t), $MachinePrecision])), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;x \leq -1.2 \cdot 10^{+32}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\mathbf{elif}\;x \leq -8.2 \cdot 10^{-258}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-259}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{+19}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{+261} \lor \neg \left(x \leq 1.05 \cdot 10^{+297}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(-x \cdot t\right)\\
\end{array}
\end{array}
if x < -1.19999999999999996e32Initial program 77.2%
sub-neg77.2%
+-commutative77.2%
associate-+l+77.2%
distribute-rgt-neg-in77.2%
+-commutative77.2%
fma-def78.7%
sub-neg78.7%
+-commutative78.7%
distribute-neg-in78.7%
unsub-neg78.7%
remove-double-neg78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in a around -inf 59.5%
associate-+r+59.5%
+-commutative59.5%
associate-+r+59.5%
Simplified62.5%
Taylor expanded in t around inf 62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in i around 0 50.0%
neg-mul-150.0%
*-commutative50.0%
distribute-rgt-neg-in50.0%
Simplified50.0%
if -1.19999999999999996e32 < x < -8.2000000000000001e-258 or 3.0000000000000002e-259 < x < 2.9e19Initial program 72.9%
sub-neg72.9%
+-commutative72.9%
associate-+l+72.9%
distribute-rgt-neg-in72.9%
+-commutative72.9%
fma-def76.1%
sub-neg76.1%
+-commutative76.1%
distribute-neg-in76.1%
unsub-neg76.1%
remove-double-neg76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in a around inf 42.7%
+-commutative42.7%
mul-1-neg42.7%
unsub-neg42.7%
Simplified42.7%
Taylor expanded in c around inf 35.5%
associate-*r*36.4%
*-commutative36.4%
Simplified36.4%
if -8.2000000000000001e-258 < x < 3.0000000000000002e-259Initial program 71.3%
cancel-sign-sub71.3%
cancel-sign-sub-inv71.3%
*-commutative71.3%
remove-double-neg71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in z around inf 33.6%
Taylor expanded in y around 0 39.0%
Taylor expanded in y around 0 31.1%
associate-*r*41.6%
associate-*r*41.6%
*-commutative41.6%
mul-1-neg41.6%
*-commutative41.6%
distribute-rgt-neg-in41.6%
Simplified41.6%
if 2.9e19 < x < 1.29999999999999991e261 or 1.0500000000000001e297 < x Initial program 68.8%
sub-neg68.8%
+-commutative68.8%
associate-+l+68.8%
distribute-rgt-neg-in68.8%
+-commutative68.8%
fma-def73.5%
sub-neg73.5%
+-commutative73.5%
distribute-neg-in73.5%
unsub-neg73.5%
remove-double-neg73.5%
*-commutative73.5%
Simplified76.6%
Taylor expanded in y around inf 61.3%
*-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
Simplified61.3%
Taylor expanded in z around inf 49.0%
if 1.29999999999999991e261 < x < 1.0500000000000001e297Initial program 50.0%
sub-neg50.0%
+-commutative50.0%
associate-+l+50.0%
distribute-rgt-neg-in50.0%
+-commutative50.0%
fma-def62.5%
sub-neg62.5%
+-commutative62.5%
distribute-neg-in62.5%
unsub-neg62.5%
remove-double-neg62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in a around inf 75.3%
+-commutative75.3%
mul-1-neg75.3%
unsub-neg75.3%
Simplified75.3%
Taylor expanded in c around 0 63.2%
mul-1-neg63.2%
*-commutative63.2%
distribute-rgt-neg-in63.2%
distribute-rgt-neg-in63.2%
Simplified63.2%
Final simplification44.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -2.3e-85)
t_2
(if (<= a 3.1e-284)
t_1
(if (<= a 4.4e-179)
(* y (- (* x z) (* i j)))
(if (<= a 1.36e+73) 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.3e-85) {
tmp = t_2;
} else if (a <= 3.1e-284) {
tmp = t_1;
} else if (a <= 4.4e-179) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 1.36e+73) {
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 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-2.3d-85)) then
tmp = t_2
else if (a <= 3.1d-284) then
tmp = t_1
else if (a <= 4.4d-179) then
tmp = y * ((x * z) - (i * j))
else if (a <= 1.36d+73) 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.3e-85) {
tmp = t_2;
} else if (a <= 3.1e-284) {
tmp = t_1;
} else if (a <= 4.4e-179) {
tmp = y * ((x * z) - (i * j));
} else if (a <= 1.36e+73) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.3e-85: tmp = t_2 elif a <= 3.1e-284: tmp = t_1 elif a <= 4.4e-179: tmp = y * ((x * z) - (i * j)) elif a <= 1.36e+73: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.3e-85) tmp = t_2; elseif (a <= 3.1e-284) tmp = t_1; elseif (a <= 4.4e-179) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (a <= 1.36e+73) 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 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.3e-85) tmp = t_2; elseif (a <= 3.1e-284) tmp = t_1; elseif (a <= 4.4e-179) tmp = y * ((x * z) - (i * j)); elseif (a <= 1.36e+73) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.3e-85], t$95$2, If[LessEqual[a, 3.1e-284], t$95$1, If[LessEqual[a, 4.4e-179], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.36e+73], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.3 \cdot 10^{-85}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-284}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-179}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;a \leq 1.36 \cdot 10^{+73}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -2.3e-85 or 1.3599999999999999e73 < a Initial program 70.1%
sub-neg70.1%
+-commutative70.1%
associate-+l+70.1%
distribute-rgt-neg-in70.1%
+-commutative70.1%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified73.1%
Taylor expanded in a around inf 63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
Simplified63.4%
if -2.3e-85 < a < 3.0999999999999998e-284 or 4.40000000000000009e-179 < a < 1.3599999999999999e73Initial program 76.9%
sub-neg76.9%
+-commutative76.9%
associate-+l+76.9%
distribute-rgt-neg-in76.9%
+-commutative76.9%
fma-def80.0%
sub-neg80.0%
+-commutative80.0%
distribute-neg-in80.0%
unsub-neg80.0%
remove-double-neg80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in b around inf 54.7%
if 3.0999999999999998e-284 < a < 4.40000000000000009e-179Initial program 62.4%
sub-neg62.4%
+-commutative62.4%
associate-+l+62.4%
distribute-rgt-neg-in62.4%
+-commutative62.4%
fma-def71.9%
sub-neg71.9%
+-commutative71.9%
distribute-neg-in71.9%
unsub-neg71.9%
remove-double-neg71.9%
*-commutative71.9%
Simplified76.7%
Taylor expanded in y around inf 62.7%
*-commutative62.7%
mul-1-neg62.7%
unsub-neg62.7%
Simplified62.7%
Final simplification60.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -8.6e-162)
t_1
(if (<= a 9.8e-237)
(* t (* b i))
(if (<= a 1.6e-154) (* y (* x z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.6e-162) {
tmp = t_1;
} else if (a <= 9.8e-237) {
tmp = t * (b * i);
} else if (a <= 1.6e-154) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-8.6d-162)) then
tmp = t_1
else if (a <= 9.8d-237) then
tmp = t * (b * i)
else if (a <= 1.6d-154) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -8.6e-162) {
tmp = t_1;
} else if (a <= 9.8e-237) {
tmp = t * (b * i);
} else if (a <= 1.6e-154) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -8.6e-162: tmp = t_1 elif a <= 9.8e-237: tmp = t * (b * i) elif a <= 1.6e-154: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -8.6e-162) tmp = t_1; elseif (a <= 9.8e-237) tmp = Float64(t * Float64(b * i)); elseif (a <= 1.6e-154) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -8.6e-162) tmp = t_1; elseif (a <= 9.8e-237) tmp = t * (b * i); elseif (a <= 1.6e-154) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.6e-162], t$95$1, If[LessEqual[a, 9.8e-237], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.6e-154], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -8.6 \cdot 10^{-162}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 9.8 \cdot 10^{-237}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{-154}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -8.59999999999999993e-162 or 1.60000000000000002e-154 < a Initial program 71.8%
sub-neg71.8%
+-commutative71.8%
associate-+l+71.8%
distribute-rgt-neg-in71.8%
+-commutative71.8%
fma-def74.4%
sub-neg74.4%
+-commutative74.4%
distribute-neg-in74.4%
unsub-neg74.4%
remove-double-neg74.4%
*-commutative74.4%
Simplified74.9%
Taylor expanded in a around inf 53.8%
+-commutative53.8%
mul-1-neg53.8%
unsub-neg53.8%
Simplified53.8%
if -8.59999999999999993e-162 < a < 9.8000000000000002e-237Initial program 70.9%
sub-neg70.9%
+-commutative70.9%
associate-+l+70.9%
distribute-rgt-neg-in70.9%
+-commutative70.9%
fma-def75.5%
sub-neg75.5%
+-commutative75.5%
distribute-neg-in75.5%
unsub-neg75.5%
remove-double-neg75.5%
*-commutative75.5%
Simplified77.7%
Taylor expanded in a around -inf 57.3%
associate-+r+57.3%
+-commutative57.3%
associate-+r+57.3%
Simplified61.9%
Taylor expanded in t around inf 38.2%
*-commutative38.2%
Simplified38.2%
Taylor expanded in i around inf 32.8%
if 9.8000000000000002e-237 < a < 1.60000000000000002e-154Initial program 78.5%
sub-neg78.5%
+-commutative78.5%
associate-+l+78.5%
distribute-rgt-neg-in78.5%
+-commutative78.5%
fma-def84.0%
sub-neg84.0%
+-commutative84.0%
distribute-neg-in84.0%
unsub-neg84.0%
remove-double-neg84.0%
*-commutative84.0%
Simplified84.0%
Taylor expanded in y around inf 56.7%
*-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
Simplified56.7%
Taylor expanded in z around inf 51.2%
Final simplification50.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= x -3.15e+25)
t_1
(if (<= x 4.8e+24)
(* c (- (* a j) (* z b)))
(if (<= x 1.15e+262) (* y (* x z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (x <= -3.15e+25) {
tmp = t_1;
} else if (x <= 4.8e+24) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 1.15e+262) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (x <= (-3.15d+25)) then
tmp = t_1
else if (x <= 4.8d+24) then
tmp = c * ((a * j) - (z * b))
else if (x <= 1.15d+262) then
tmp = y * (x * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (x <= -3.15e+25) {
tmp = t_1;
} else if (x <= 4.8e+24) {
tmp = c * ((a * j) - (z * b));
} else if (x <= 1.15e+262) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if x <= -3.15e+25: tmp = t_1 elif x <= 4.8e+24: tmp = c * ((a * j) - (z * b)) elif x <= 1.15e+262: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (x <= -3.15e+25) tmp = t_1; elseif (x <= 4.8e+24) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (x <= 1.15e+262) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (x <= -3.15e+25) tmp = t_1; elseif (x <= 4.8e+24) tmp = c * ((a * j) - (z * b)); elseif (x <= 1.15e+262) tmp = y * (x * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.15e+25], t$95$1, If[LessEqual[x, 4.8e+24], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.15e+262], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;x \leq -3.15 \cdot 10^{+25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 4.8 \cdot 10^{+24}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{+262}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -3.14999999999999987e25 or 1.15e262 < x Initial program 73.6%
sub-neg73.6%
+-commutative73.6%
associate-+l+73.6%
distribute-rgt-neg-in73.6%
+-commutative73.6%
fma-def76.3%
sub-neg76.3%
+-commutative76.3%
distribute-neg-in76.3%
unsub-neg76.3%
remove-double-neg76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in a around inf 57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
Simplified57.9%
if -3.14999999999999987e25 < x < 4.8000000000000001e24Initial program 72.8%
sub-neg72.8%
+-commutative72.8%
associate-+l+72.8%
distribute-rgt-neg-in72.8%
+-commutative72.8%
fma-def75.3%
sub-neg75.3%
+-commutative75.3%
distribute-neg-in75.3%
unsub-neg75.3%
remove-double-neg75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in c around inf 50.1%
distribute-rgt-in49.2%
*-commutative49.2%
mul-1-neg49.2%
cancel-sign-sub-inv49.2%
*-commutative49.2%
distribute-rgt-out--50.1%
Simplified50.1%
if 4.8000000000000001e24 < x < 1.15e262Initial program 68.9%
sub-neg68.9%
+-commutative68.9%
associate-+l+68.9%
distribute-rgt-neg-in68.9%
+-commutative68.9%
fma-def73.8%
sub-neg73.8%
+-commutative73.8%
distribute-neg-in73.8%
unsub-neg73.8%
remove-double-neg73.8%
*-commutative73.8%
Simplified77.1%
Taylor expanded in y around inf 59.4%
*-commutative59.4%
mul-1-neg59.4%
unsub-neg59.4%
Simplified59.4%
Taylor expanded in z around inf 48.0%
Final simplification51.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -3.4e+27)
t_1
(if (<= y 1.02e-137)
(* a (- (* c j) (* x t)))
(if (<= y 8.5) (* t (- (* b i) (* x a))) 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 tmp;
if (y <= -3.4e+27) {
tmp = t_1;
} else if (y <= 1.02e-137) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 8.5) {
tmp = t * ((b * i) - (x * a));
} 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 = y * ((x * z) - (i * j))
if (y <= (-3.4d+27)) then
tmp = t_1
else if (y <= 1.02d-137) then
tmp = a * ((c * j) - (x * t))
else if (y <= 8.5d0) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.4e+27) {
tmp = t_1;
} else if (y <= 1.02e-137) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 8.5) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.4e+27: tmp = t_1 elif y <= 1.02e-137: tmp = a * ((c * j) - (x * t)) elif y <= 8.5: tmp = t * ((b * i) - (x * a)) 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))) tmp = 0.0 if (y <= -3.4e+27) tmp = t_1; elseif (y <= 1.02e-137) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 8.5) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); 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)); tmp = 0.0; if (y <= -3.4e+27) tmp = t_1; elseif (y <= 1.02e-137) tmp = a * ((c * j) - (x * t)); elseif (y <= 8.5) tmp = t * ((b * i) - (x * a)); 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]}, If[LessEqual[y, -3.4e+27], t$95$1, If[LessEqual[y, 1.02e-137], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+27}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 1.02 \cdot 10^{-137}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 8.5:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -3.4e27 or 8.5 < y Initial program 62.9%
sub-neg62.9%
+-commutative62.9%
associate-+l+62.9%
distribute-rgt-neg-in62.9%
+-commutative62.9%
fma-def66.2%
sub-neg66.2%
+-commutative66.2%
distribute-neg-in66.2%
unsub-neg66.2%
remove-double-neg66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in y around inf 59.6%
*-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
Simplified59.6%
if -3.4e27 < y < 1.02e-137Initial program 83.9%
sub-neg83.9%
+-commutative83.9%
associate-+l+83.9%
distribute-rgt-neg-in83.9%
+-commutative83.9%
fma-def86.7%
sub-neg86.7%
+-commutative86.7%
distribute-neg-in86.7%
unsub-neg86.7%
remove-double-neg86.7%
*-commutative86.7%
Simplified88.6%
Taylor expanded in a around inf 55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
Simplified55.2%
if 1.02e-137 < y < 8.5Initial program 67.4%
sub-neg67.4%
+-commutative67.4%
associate-+l+67.4%
distribute-rgt-neg-in67.4%
+-commutative67.4%
fma-def70.7%
sub-neg70.7%
+-commutative70.7%
distribute-neg-in70.7%
unsub-neg70.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in t around inf 61.3%
mul-1-neg61.3%
unsub-neg61.3%
Simplified61.3%
Final simplification58.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -8.8e+201)
t_1
(if (<= x -9.5e-165)
(* a (* c j))
(if (<= x 2.6e-271)
(* t (* b i))
(if (<= x 1.1e+21) (* j (* a 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 = y * (x * z);
double tmp;
if (x <= -8.8e+201) {
tmp = t_1;
} else if (x <= -9.5e-165) {
tmp = a * (c * j);
} else if (x <= 2.6e-271) {
tmp = t * (b * i);
} else if (x <= 1.1e+21) {
tmp = j * (a * 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 = y * (x * z)
if (x <= (-8.8d+201)) then
tmp = t_1
else if (x <= (-9.5d-165)) then
tmp = a * (c * j)
else if (x <= 2.6d-271) then
tmp = t * (b * i)
else if (x <= 1.1d+21) then
tmp = j * (a * 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 = y * (x * z);
double tmp;
if (x <= -8.8e+201) {
tmp = t_1;
} else if (x <= -9.5e-165) {
tmp = a * (c * j);
} else if (x <= 2.6e-271) {
tmp = t * (b * i);
} else if (x <= 1.1e+21) {
tmp = j * (a * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if x <= -8.8e+201: tmp = t_1 elif x <= -9.5e-165: tmp = a * (c * j) elif x <= 2.6e-271: tmp = t * (b * i) elif x <= 1.1e+21: tmp = j * (a * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (x <= -8.8e+201) tmp = t_1; elseif (x <= -9.5e-165) tmp = Float64(a * Float64(c * j)); elseif (x <= 2.6e-271) tmp = Float64(t * Float64(b * i)); elseif (x <= 1.1e+21) tmp = Float64(j * Float64(a * c)); 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); tmp = 0.0; if (x <= -8.8e+201) tmp = t_1; elseif (x <= -9.5e-165) tmp = a * (c * j); elseif (x <= 2.6e-271) tmp = t * (b * i); elseif (x <= 1.1e+21) tmp = j * (a * 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -8.8e+201], t$95$1, If[LessEqual[x, -9.5e-165], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.6e-271], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e+21], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -8.8 \cdot 10^{+201}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -9.5 \cdot 10^{-165}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 2.6 \cdot 10^{-271}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{+21}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -8.8e201 or 1.1e21 < x Initial program 65.8%
sub-neg65.8%
+-commutative65.8%
associate-+l+65.8%
distribute-rgt-neg-in65.8%
+-commutative65.8%
fma-def70.5%
sub-neg70.5%
+-commutative70.5%
distribute-neg-in70.5%
unsub-neg70.5%
remove-double-neg70.5%
*-commutative70.5%
Simplified72.4%
Taylor expanded in y around inf 53.2%
*-commutative53.2%
mul-1-neg53.2%
unsub-neg53.2%
Simplified53.2%
Taylor expanded in z around inf 40.0%
if -8.8e201 < x < -9.49999999999999973e-165Initial program 83.6%
sub-neg83.6%
+-commutative83.6%
associate-+l+83.6%
distribute-rgt-neg-in83.6%
+-commutative83.6%
fma-def85.1%
sub-neg85.1%
+-commutative85.1%
distribute-neg-in85.1%
unsub-neg85.1%
remove-double-neg85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in a around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
Taylor expanded in c around inf 36.3%
*-commutative36.3%
Simplified36.3%
if -9.49999999999999973e-165 < x < 2.6e-271Initial program 69.8%
sub-neg69.8%
+-commutative69.8%
associate-+l+69.8%
distribute-rgt-neg-in69.8%
+-commutative69.8%
fma-def69.8%
sub-neg69.8%
+-commutative69.8%
distribute-neg-in69.8%
unsub-neg69.8%
remove-double-neg69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in a around -inf 83.0%
associate-+r+83.0%
+-commutative83.0%
associate-+r+83.0%
Simplified83.0%
Taylor expanded in t around inf 39.8%
*-commutative39.8%
Simplified39.8%
Taylor expanded in i around inf 36.5%
if 2.6e-271 < x < 1.1e21Initial program 71.8%
sub-neg71.8%
+-commutative71.8%
associate-+l+71.8%
distribute-rgt-neg-in71.8%
+-commutative71.8%
fma-def75.4%
sub-neg75.4%
+-commutative75.4%
distribute-neg-in75.4%
unsub-neg75.4%
remove-double-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in a around inf 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
Simplified42.3%
Taylor expanded in c around inf 32.0%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
Final simplification37.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -4.8e+202)
(* z (* x y))
(if (<= x -1.02e-168)
(* a (* c j))
(if (<= x 5.2e-271)
(* t (* b i))
(if (<= x 6.8e+20) (* j (* a c)) (* y (* x z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4.8e+202) {
tmp = z * (x * y);
} else if (x <= -1.02e-168) {
tmp = a * (c * j);
} else if (x <= 5.2e-271) {
tmp = t * (b * i);
} else if (x <= 6.8e+20) {
tmp = j * (a * c);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-4.8d+202)) then
tmp = z * (x * y)
else if (x <= (-1.02d-168)) then
tmp = a * (c * j)
else if (x <= 5.2d-271) then
tmp = t * (b * i)
else if (x <= 6.8d+20) then
tmp = j * (a * c)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -4.8e+202) {
tmp = z * (x * y);
} else if (x <= -1.02e-168) {
tmp = a * (c * j);
} else if (x <= 5.2e-271) {
tmp = t * (b * i);
} else if (x <= 6.8e+20) {
tmp = j * (a * c);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -4.8e+202: tmp = z * (x * y) elif x <= -1.02e-168: tmp = a * (c * j) elif x <= 5.2e-271: tmp = t * (b * i) elif x <= 6.8e+20: tmp = j * (a * c) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -4.8e+202) tmp = Float64(z * Float64(x * y)); elseif (x <= -1.02e-168) tmp = Float64(a * Float64(c * j)); elseif (x <= 5.2e-271) tmp = Float64(t * Float64(b * i)); elseif (x <= 6.8e+20) tmp = Float64(j * Float64(a * c)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -4.8e+202) tmp = z * (x * y); elseif (x <= -1.02e-168) tmp = a * (c * j); elseif (x <= 5.2e-271) tmp = t * (b * i); elseif (x <= 6.8e+20) tmp = j * (a * c); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -4.8e+202], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.02e-168], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.2e-271], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.8e+20], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -4.8 \cdot 10^{+202}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -1.02 \cdot 10^{-168}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 5.2 \cdot 10^{-271}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 6.8 \cdot 10^{+20}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if x < -4.8000000000000004e202Initial program 63.7%
cancel-sign-sub63.7%
cancel-sign-sub-inv63.7%
*-commutative63.7%
remove-double-neg63.7%
*-commutative63.7%
Simplified63.7%
Taylor expanded in z around inf 40.4%
Taylor expanded in y around inf 37.5%
if -4.8000000000000004e202 < x < -1.01999999999999999e-168Initial program 83.6%
sub-neg83.6%
+-commutative83.6%
associate-+l+83.6%
distribute-rgt-neg-in83.6%
+-commutative83.6%
fma-def85.1%
sub-neg85.1%
+-commutative85.1%
distribute-neg-in85.1%
unsub-neg85.1%
remove-double-neg85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in a around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
Taylor expanded in c around inf 36.3%
*-commutative36.3%
Simplified36.3%
if -1.01999999999999999e-168 < x < 5.2e-271Initial program 69.8%
sub-neg69.8%
+-commutative69.8%
associate-+l+69.8%
distribute-rgt-neg-in69.8%
+-commutative69.8%
fma-def69.8%
sub-neg69.8%
+-commutative69.8%
distribute-neg-in69.8%
unsub-neg69.8%
remove-double-neg69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in a around -inf 83.0%
associate-+r+83.0%
+-commutative83.0%
associate-+r+83.0%
Simplified83.0%
Taylor expanded in t around inf 39.8%
*-commutative39.8%
Simplified39.8%
Taylor expanded in i around inf 36.5%
if 5.2e-271 < x < 6.8e20Initial program 71.8%
sub-neg71.8%
+-commutative71.8%
associate-+l+71.8%
distribute-rgt-neg-in71.8%
+-commutative71.8%
fma-def75.4%
sub-neg75.4%
+-commutative75.4%
distribute-neg-in75.4%
unsub-neg75.4%
remove-double-neg75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in a around inf 42.3%
+-commutative42.3%
mul-1-neg42.3%
unsub-neg42.3%
Simplified42.3%
Taylor expanded in c around inf 32.0%
associate-*r*34.9%
*-commutative34.9%
Simplified34.9%
if 6.8e20 < x Initial program 66.7%
sub-neg66.7%
+-commutative66.7%
associate-+l+66.7%
distribute-rgt-neg-in66.7%
+-commutative66.7%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified75.0%
Taylor expanded in y around inf 56.1%
*-commutative56.1%
mul-1-neg56.1%
unsub-neg56.1%
Simplified56.1%
Taylor expanded in z around inf 43.8%
Final simplification38.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1.5e-55) (not (<= c 8.2e+102))) (* c (- (* a j) (* z b))) (* t (- (* b i) (* x a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.5e-55) || !(c <= 8.2e+102)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1.5d-55)) .or. (.not. (c <= 8.2d+102))) then
tmp = c * ((a * j) - (z * b))
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.5e-55) || !(c <= 8.2e+102)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.5e-55) or not (c <= 8.2e+102): tmp = c * ((a * j) - (z * b)) else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.5e-55) || !(c <= 8.2e+102)) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.5e-55) || ~((c <= 8.2e+102))) tmp = c * ((a * j) - (z * b)); else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.5e-55], N[Not[LessEqual[c, 8.2e+102]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.5 \cdot 10^{-55} \lor \neg \left(c \leq 8.2 \cdot 10^{+102}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if c < -1.50000000000000008e-55 or 8.1999999999999999e102 < c Initial program 65.2%
sub-neg65.2%
+-commutative65.2%
associate-+l+65.2%
distribute-rgt-neg-in65.2%
+-commutative65.2%
fma-def68.6%
sub-neg68.6%
+-commutative68.6%
distribute-neg-in68.6%
unsub-neg68.6%
remove-double-neg68.6%
*-commutative68.6%
Simplified69.5%
Taylor expanded in c around inf 59.1%
distribute-rgt-in55.7%
*-commutative55.7%
mul-1-neg55.7%
cancel-sign-sub-inv55.7%
*-commutative55.7%
distribute-rgt-out--59.1%
Simplified59.1%
if -1.50000000000000008e-55 < c < 8.1999999999999999e102Initial program 78.1%
sub-neg78.1%
+-commutative78.1%
associate-+l+78.1%
distribute-rgt-neg-in78.1%
+-commutative78.1%
fma-def81.0%
sub-neg81.0%
+-commutative81.0%
distribute-neg-in81.0%
unsub-neg81.0%
remove-double-neg81.0%
*-commutative81.0%
Simplified81.7%
Taylor expanded in t around inf 50.5%
mul-1-neg50.5%
unsub-neg50.5%
Simplified50.5%
Final simplification54.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -1.32e-63) (not (<= j 3.9e-16))) (* a (* c j)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.32e-63) || !(j <= 3.9e-16)) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-1.32d-63)) .or. (.not. (j <= 3.9d-16))) then
tmp = a * (c * j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -1.32e-63) || !(j <= 3.9e-16)) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -1.32e-63) or not (j <= 3.9e-16): tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -1.32e-63) || !(j <= 3.9e-16)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -1.32e-63) || ~((j <= 3.9e-16))) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -1.32e-63], N[Not[LessEqual[j, 3.9e-16]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.32 \cdot 10^{-63} \lor \neg \left(j \leq 3.9 \cdot 10^{-16}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if j < -1.32e-63 or 3.89999999999999977e-16 < j Initial program 72.4%
sub-neg72.4%
+-commutative72.4%
associate-+l+72.4%
distribute-rgt-neg-in72.4%
+-commutative72.4%
fma-def76.6%
sub-neg76.6%
+-commutative76.6%
distribute-neg-in76.6%
unsub-neg76.6%
remove-double-neg76.6%
*-commutative76.6%
Simplified78.0%
Taylor expanded in a around inf 57.1%
+-commutative57.1%
mul-1-neg57.1%
unsub-neg57.1%
Simplified57.1%
Taylor expanded in c around inf 42.4%
*-commutative42.4%
Simplified42.4%
if -1.32e-63 < j < 3.89999999999999977e-16Initial program 71.8%
sub-neg71.8%
+-commutative71.8%
associate-+l+71.8%
distribute-rgt-neg-in71.8%
+-commutative71.8%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in a around -inf 80.2%
associate-+r+80.2%
+-commutative80.2%
associate-+r+80.2%
Simplified80.2%
Taylor expanded in t around inf 44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in i around inf 28.3%
Final simplification36.1%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 72.1%
sub-neg72.1%
+-commutative72.1%
associate-+l+72.1%
distribute-rgt-neg-in72.1%
+-commutative72.1%
fma-def75.3%
sub-neg75.3%
+-commutative75.3%
distribute-neg-in75.3%
unsub-neg75.3%
remove-double-neg75.3%
*-commutative75.3%
Simplified76.0%
Taylor expanded in a around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
Simplified43.3%
Taylor expanded in c around inf 25.3%
*-commutative25.3%
Simplified25.3%
Final simplification25.3%
(FPCore (x y z t a b c i j) :precision binary64 (* j (* a c)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return j * (a * c);
}
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 = j * (a * c)
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 j * (a * c);
}
def code(x, y, z, t, a, b, c, i, j): return j * (a * c)
function code(x, y, z, t, a, b, c, i, j) return Float64(j * Float64(a * c)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = j * (a * c); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
j \cdot \left(a \cdot c\right)
\end{array}
Initial program 72.1%
sub-neg72.1%
+-commutative72.1%
associate-+l+72.1%
distribute-rgt-neg-in72.1%
+-commutative72.1%
fma-def75.3%
sub-neg75.3%
+-commutative75.3%
distribute-neg-in75.3%
unsub-neg75.3%
remove-double-neg75.3%
*-commutative75.3%
Simplified76.0%
Taylor expanded in a around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
Simplified43.3%
Taylor expanded in c around inf 24.2%
associate-*r*25.6%
*-commutative25.6%
Simplified25.6%
Final simplification25.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - 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 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - 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[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023257
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))