
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* (* t c) (- j (* a (/ x c)))))))
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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (t * c) * (j - (a * (x / c)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (t * c) * (j - (a * (x / c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (t * c) * (j - (a * (x / c))) 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(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(t * c) * Float64(j - Float64(a * Float64(x / c)))); 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 * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (t * c) * (j - (a * (x / c))); 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(t * c), $MachinePrecision] * N[(j - N[(a * N[(x / c), $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(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(t \cdot c\right) \cdot \left(j - a \cdot \frac{x}{c}\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 94.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
+-commutative0.0%
fma-define4.8%
*-commutative4.8%
*-commutative4.8%
cancel-sign-sub-inv4.8%
cancel-sign-sub4.8%
sub-neg4.8%
sub-neg4.8%
*-commutative4.8%
fma-neg7.1%
*-commutative7.1%
distribute-rgt-neg-out7.1%
remove-double-neg7.1%
*-commutative7.1%
*-commutative7.1%
Simplified7.1%
Taylor expanded in c around inf 23.8%
Taylor expanded in t around inf 53.1%
associate-*r*59.9%
mul-1-neg59.9%
unsub-neg59.9%
associate-/l*59.9%
Simplified59.9%
Final simplification88.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* j (- (* t c) (* y i))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -5.8e+49)
t_3
(if (<= b -1.6e-108)
(* t (- (* c j) (* x a)))
(if (<= b -3.7e-159)
t_1
(if (<= b -2.3e-268)
t_2
(if (<= b -9e-283)
(* y (* x z))
(if (<= b -2.5e-304)
t_2
(if (<= b 7e-259)
t_1
(if (<= b 1.55e-180)
t_2
(if (<= b 245000.0)
t_1
(if (<= b 1.05e+154)
(* c (- (* t j) (* z b)))
(if (<= b 1.4e+203) t_2 t_3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.8e+49) {
tmp = t_3;
} else if (b <= -1.6e-108) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -3.7e-159) {
tmp = t_1;
} else if (b <= -2.3e-268) {
tmp = t_2;
} else if (b <= -9e-283) {
tmp = y * (x * z);
} else if (b <= -2.5e-304) {
tmp = t_2;
} else if (b <= 7e-259) {
tmp = t_1;
} else if (b <= 1.55e-180) {
tmp = t_2;
} else if (b <= 245000.0) {
tmp = t_1;
} else if (b <= 1.05e+154) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 1.4e+203) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = j * ((t * c) - (y * i))
t_3 = b * ((a * i) - (z * c))
if (b <= (-5.8d+49)) then
tmp = t_3
else if (b <= (-1.6d-108)) then
tmp = t * ((c * j) - (x * a))
else if (b <= (-3.7d-159)) then
tmp = t_1
else if (b <= (-2.3d-268)) then
tmp = t_2
else if (b <= (-9d-283)) then
tmp = y * (x * z)
else if (b <= (-2.5d-304)) then
tmp = t_2
else if (b <= 7d-259) then
tmp = t_1
else if (b <= 1.55d-180) then
tmp = t_2
else if (b <= 245000.0d0) then
tmp = t_1
else if (b <= 1.05d+154) then
tmp = c * ((t * j) - (z * b))
else if (b <= 1.4d+203) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = j * ((t * c) - (y * i));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.8e+49) {
tmp = t_3;
} else if (b <= -1.6e-108) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -3.7e-159) {
tmp = t_1;
} else if (b <= -2.3e-268) {
tmp = t_2;
} else if (b <= -9e-283) {
tmp = y * (x * z);
} else if (b <= -2.5e-304) {
tmp = t_2;
} else if (b <= 7e-259) {
tmp = t_1;
} else if (b <= 1.55e-180) {
tmp = t_2;
} else if (b <= 245000.0) {
tmp = t_1;
} else if (b <= 1.05e+154) {
tmp = c * ((t * j) - (z * b));
} else if (b <= 1.4e+203) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = j * ((t * c) - (y * i)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.8e+49: tmp = t_3 elif b <= -1.6e-108: tmp = t * ((c * j) - (x * a)) elif b <= -3.7e-159: tmp = t_1 elif b <= -2.3e-268: tmp = t_2 elif b <= -9e-283: tmp = y * (x * z) elif b <= -2.5e-304: tmp = t_2 elif b <= 7e-259: tmp = t_1 elif b <= 1.55e-180: tmp = t_2 elif b <= 245000.0: tmp = t_1 elif b <= 1.05e+154: tmp = c * ((t * j) - (z * b)) elif b <= 1.4e+203: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.8e+49) tmp = t_3; elseif (b <= -1.6e-108) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= -3.7e-159) tmp = t_1; elseif (b <= -2.3e-268) tmp = t_2; elseif (b <= -9e-283) tmp = Float64(y * Float64(x * z)); elseif (b <= -2.5e-304) tmp = t_2; elseif (b <= 7e-259) tmp = t_1; elseif (b <= 1.55e-180) tmp = t_2; elseif (b <= 245000.0) tmp = t_1; elseif (b <= 1.05e+154) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (b <= 1.4e+203) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = j * ((t * c) - (y * i)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.8e+49) tmp = t_3; elseif (b <= -1.6e-108) tmp = t * ((c * j) - (x * a)); elseif (b <= -3.7e-159) tmp = t_1; elseif (b <= -2.3e-268) tmp = t_2; elseif (b <= -9e-283) tmp = y * (x * z); elseif (b <= -2.5e-304) tmp = t_2; elseif (b <= 7e-259) tmp = t_1; elseif (b <= 1.55e-180) tmp = t_2; elseif (b <= 245000.0) tmp = t_1; elseif (b <= 1.05e+154) tmp = c * ((t * j) - (z * b)); elseif (b <= 1.4e+203) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.8e+49], t$95$3, If[LessEqual[b, -1.6e-108], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.7e-159], t$95$1, If[LessEqual[b, -2.3e-268], t$95$2, If[LessEqual[b, -9e-283], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-304], t$95$2, If[LessEqual[b, 7e-259], t$95$1, If[LessEqual[b, 1.55e-180], t$95$2, If[LessEqual[b, 245000.0], t$95$1, If[LessEqual[b, 1.05e+154], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.4e+203], t$95$2, t$95$3]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.8 \cdot 10^{+49}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-108}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq -3.7 \cdot 10^{-159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-268}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -9 \cdot 10^{-283}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-304}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-259}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.55 \cdot 10^{-180}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 245000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{+154}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+203}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -5.8e49 or 1.39999999999999995e203 < b Initial program 81.6%
+-commutative81.6%
fma-define81.6%
*-commutative81.6%
*-commutative81.6%
cancel-sign-sub-inv81.6%
cancel-sign-sub81.6%
sub-neg81.6%
sub-neg81.6%
*-commutative81.6%
fma-neg81.6%
*-commutative81.6%
distribute-rgt-neg-out81.6%
remove-double-neg81.6%
*-commutative81.6%
*-commutative81.6%
Simplified81.6%
Taylor expanded in b around inf 73.8%
*-commutative73.8%
Simplified73.8%
if -5.8e49 < b < -1.6e-108Initial program 65.3%
+-commutative65.3%
fma-define70.3%
*-commutative70.3%
*-commutative70.3%
cancel-sign-sub-inv70.3%
cancel-sign-sub70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
fma-neg72.8%
*-commutative72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in t around inf 77.3%
+-commutative77.3%
mul-1-neg77.3%
unsub-neg77.3%
*-commutative77.3%
Simplified77.3%
if -1.6e-108 < b < -3.6999999999999999e-159 or -2.49999999999999983e-304 < b < 7.0000000000000005e-259 or 1.5499999999999999e-180 < b < 245000Initial program 86.6%
+-commutative86.6%
fma-define86.6%
*-commutative86.6%
*-commutative86.6%
cancel-sign-sub-inv86.6%
cancel-sign-sub86.6%
sub-neg86.6%
sub-neg86.6%
*-commutative86.6%
fma-neg86.6%
*-commutative86.6%
distribute-rgt-neg-out86.6%
remove-double-neg86.6%
*-commutative86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in x around inf 63.6%
+-commutative63.6%
mul-1-neg63.6%
sub-neg63.6%
Simplified63.6%
if -3.6999999999999999e-159 < b < -2.3000000000000001e-268 or -8.9999999999999994e-283 < b < -2.49999999999999983e-304 or 7.0000000000000005e-259 < b < 1.5499999999999999e-180 or 1.04999999999999997e154 < b < 1.39999999999999995e203Initial program 76.5%
+-commutative76.5%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
cancel-sign-sub-inv76.5%
cancel-sign-sub76.5%
sub-neg76.5%
sub-neg76.5%
*-commutative76.5%
fma-neg76.5%
*-commutative76.5%
distribute-rgt-neg-out76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in j around inf 70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
if -2.3000000000000001e-268 < b < -8.9999999999999994e-283Initial program 83.9%
+-commutative83.9%
fma-define83.9%
*-commutative83.9%
*-commutative83.9%
cancel-sign-sub-inv83.9%
cancel-sign-sub83.9%
sub-neg83.9%
sub-neg83.9%
*-commutative83.9%
fma-neg83.9%
*-commutative83.9%
distribute-rgt-neg-out83.9%
remove-double-neg83.9%
*-commutative83.9%
*-commutative83.9%
Simplified83.9%
Taylor expanded in y around -inf 100.0%
Simplified83.3%
Taylor expanded in j around inf 76.5%
Taylor expanded in j around 0 67.9%
associate-*r*76.5%
*-commutative76.5%
associate-*r*76.5%
Simplified76.5%
if 245000 < b < 1.04999999999999997e154Initial program 76.1%
+-commutative76.1%
fma-define76.1%
*-commutative76.1%
*-commutative76.1%
cancel-sign-sub-inv76.1%
cancel-sign-sub76.1%
sub-neg76.1%
sub-neg76.1%
*-commutative76.1%
fma-neg76.1%
*-commutative76.1%
distribute-rgt-neg-out76.1%
remove-double-neg76.1%
*-commutative76.1%
*-commutative76.1%
Simplified76.1%
Taylor expanded in c around inf 63.0%
*-commutative63.0%
*-commutative63.0%
Simplified63.0%
Final simplification70.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3.8e+62)
(* z (* b (- c)))
(if (<= b -6.2e+45)
(* a (* b i))
(if (<= b -4.7e-54)
(* j (* t c))
(if (<= b -3.5e-110)
(* a (* t (- x)))
(if (<= b -8.2e-283)
(* y (* x z))
(if (<= b 7e-70)
(* (* y j) (- i))
(if (<= b 1.8e-10) (* x (* y z)) (* b (* z (- c)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.8e+62) {
tmp = z * (b * -c);
} else if (b <= -6.2e+45) {
tmp = a * (b * i);
} else if (b <= -4.7e-54) {
tmp = j * (t * c);
} else if (b <= -3.5e-110) {
tmp = a * (t * -x);
} else if (b <= -8.2e-283) {
tmp = y * (x * z);
} else if (b <= 7e-70) {
tmp = (y * j) * -i;
} else if (b <= 1.8e-10) {
tmp = x * (y * z);
} else {
tmp = b * (z * -c);
}
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 (b <= (-3.8d+62)) then
tmp = z * (b * -c)
else if (b <= (-6.2d+45)) then
tmp = a * (b * i)
else if (b <= (-4.7d-54)) then
tmp = j * (t * c)
else if (b <= (-3.5d-110)) then
tmp = a * (t * -x)
else if (b <= (-8.2d-283)) then
tmp = y * (x * z)
else if (b <= 7d-70) then
tmp = (y * j) * -i
else if (b <= 1.8d-10) then
tmp = x * (y * z)
else
tmp = b * (z * -c)
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 (b <= -3.8e+62) {
tmp = z * (b * -c);
} else if (b <= -6.2e+45) {
tmp = a * (b * i);
} else if (b <= -4.7e-54) {
tmp = j * (t * c);
} else if (b <= -3.5e-110) {
tmp = a * (t * -x);
} else if (b <= -8.2e-283) {
tmp = y * (x * z);
} else if (b <= 7e-70) {
tmp = (y * j) * -i;
} else if (b <= 1.8e-10) {
tmp = x * (y * z);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.8e+62: tmp = z * (b * -c) elif b <= -6.2e+45: tmp = a * (b * i) elif b <= -4.7e-54: tmp = j * (t * c) elif b <= -3.5e-110: tmp = a * (t * -x) elif b <= -8.2e-283: tmp = y * (x * z) elif b <= 7e-70: tmp = (y * j) * -i elif b <= 1.8e-10: tmp = x * (y * z) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.8e+62) tmp = Float64(z * Float64(b * Float64(-c))); elseif (b <= -6.2e+45) tmp = Float64(a * Float64(b * i)); elseif (b <= -4.7e-54) tmp = Float64(j * Float64(t * c)); elseif (b <= -3.5e-110) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= -8.2e-283) tmp = Float64(y * Float64(x * z)); elseif (b <= 7e-70) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (b <= 1.8e-10) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.8e+62) tmp = z * (b * -c); elseif (b <= -6.2e+45) tmp = a * (b * i); elseif (b <= -4.7e-54) tmp = j * (t * c); elseif (b <= -3.5e-110) tmp = a * (t * -x); elseif (b <= -8.2e-283) tmp = y * (x * z); elseif (b <= 7e-70) tmp = (y * j) * -i; elseif (b <= 1.8e-10) tmp = x * (y * z); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.8e+62], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e+45], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.7e-54], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.5e-110], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.2e-283], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e-70], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[b, 1.8e-10], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{+62}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{+45}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -4.7 \cdot 10^{-54}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-110}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-283}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-70}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-10}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -3.79999999999999984e62Initial program 85.0%
+-commutative85.0%
fma-define85.0%
*-commutative85.0%
*-commutative85.0%
cancel-sign-sub-inv85.0%
cancel-sign-sub85.0%
sub-neg85.0%
sub-neg85.0%
*-commutative85.0%
fma-neg85.0%
*-commutative85.0%
distribute-rgt-neg-out85.0%
remove-double-neg85.0%
*-commutative85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y around -inf 74.9%
Simplified79.0%
Taylor expanded in z around inf 66.4%
associate-*r*66.4%
neg-mul-166.4%
associate-/l*64.3%
Simplified64.3%
Taylor expanded in y around 0 54.8%
associate-*r*60.7%
associate-*r*60.7%
*-commutative60.7%
mul-1-neg60.7%
*-commutative60.7%
distribute-rgt-neg-in60.7%
Simplified60.7%
if -3.79999999999999984e62 < b < -6.19999999999999975e45Initial program 50.0%
+-commutative50.0%
fma-define50.0%
*-commutative50.0%
*-commutative50.0%
cancel-sign-sub-inv50.0%
cancel-sign-sub50.0%
sub-neg50.0%
sub-neg50.0%
*-commutative50.0%
fma-neg50.0%
*-commutative50.0%
distribute-rgt-neg-out50.0%
remove-double-neg50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around -inf 83.3%
Simplified83.3%
Taylor expanded in a around -inf 83.1%
associate-*r*83.1%
*-commutative83.1%
associate-/l*83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in b around inf 83.1%
if -6.19999999999999975e45 < b < -4.7e-54Initial program 68.0%
+-commutative68.0%
fma-define71.6%
*-commutative71.6%
*-commutative71.6%
cancel-sign-sub-inv71.6%
cancel-sign-sub71.6%
sub-neg71.6%
sub-neg71.6%
*-commutative71.6%
fma-neg71.6%
*-commutative71.6%
distribute-rgt-neg-out71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in y around -inf 71.8%
Simplified71.5%
Taylor expanded in j around inf 48.0%
Taylor expanded in c around inf 41.3%
associate-*r*47.1%
*-commutative47.1%
associate-*l*44.7%
Simplified44.7%
if -4.7e-54 < b < -3.49999999999999974e-110Initial program 59.0%
+-commutative59.0%
fma-define67.3%
*-commutative67.3%
*-commutative67.3%
cancel-sign-sub-inv67.3%
cancel-sign-sub67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
fma-neg75.6%
*-commutative75.6%
distribute-rgt-neg-out75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y around -inf 67.7%
Simplified76.1%
Taylor expanded in a around -inf 68.0%
associate-*r*68.0%
*-commutative68.0%
associate-/l*67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 67.6%
mul-1-neg67.6%
*-commutative67.6%
distribute-rgt-neg-in67.6%
distribute-rgt-neg-out67.6%
Simplified67.6%
if -3.49999999999999974e-110 < b < -8.19999999999999973e-283Initial program 75.0%
+-commutative75.0%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
cancel-sign-sub-inv75.0%
cancel-sign-sub75.0%
sub-neg75.0%
sub-neg75.0%
*-commutative75.0%
fma-neg75.0%
*-commutative75.0%
distribute-rgt-neg-out75.0%
remove-double-neg75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
Taylor expanded in y around -inf 78.0%
Simplified78.1%
Taylor expanded in j around inf 73.1%
Taylor expanded in j around 0 39.4%
associate-*r*48.8%
*-commutative48.8%
associate-*r*43.2%
Simplified43.2%
if -8.19999999999999973e-283 < b < 6.99999999999999949e-70Initial program 86.0%
+-commutative86.0%
fma-define86.0%
*-commutative86.0%
*-commutative86.0%
cancel-sign-sub-inv86.0%
cancel-sign-sub86.0%
sub-neg86.0%
sub-neg86.0%
*-commutative86.0%
fma-neg86.0%
*-commutative86.0%
distribute-rgt-neg-out86.0%
remove-double-neg86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in y around -inf 72.6%
Simplified72.6%
Taylor expanded in j around inf 58.3%
Taylor expanded in i around inf 32.7%
mul-1-neg32.7%
*-commutative32.7%
distribute-rgt-neg-in32.7%
*-commutative32.7%
Simplified32.7%
if 6.99999999999999949e-70 < b < 1.8e-10Initial program 99.9%
+-commutative99.9%
fma-define99.9%
*-commutative99.9%
*-commutative99.9%
cancel-sign-sub-inv99.9%
cancel-sign-sub99.9%
sub-neg99.9%
sub-neg99.9%
*-commutative99.9%
fma-neg99.9%
*-commutative99.9%
distribute-rgt-neg-out99.9%
remove-double-neg99.9%
*-commutative99.9%
*-commutative99.9%
Simplified99.9%
Taylor expanded in y around -inf 82.1%
Simplified91.2%
Taylor expanded in j around inf 65.1%
Taylor expanded in j around 0 47.4%
if 1.8e-10 < b Initial program 76.8%
+-commutative76.8%
fma-define76.8%
*-commutative76.8%
*-commutative76.8%
cancel-sign-sub-inv76.8%
cancel-sign-sub76.8%
sub-neg76.8%
sub-neg76.8%
*-commutative76.8%
fma-neg76.8%
*-commutative76.8%
distribute-rgt-neg-out76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in y around -inf 61.0%
Simplified60.8%
Taylor expanded in z around inf 40.2%
associate-*r*40.2%
neg-mul-140.2%
associate-/l*41.8%
Simplified41.8%
Taylor expanded in y around 0 40.5%
mul-1-neg40.5%
*-commutative40.5%
Simplified40.5%
Final simplification45.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))))
(if (<= b -4.8e-111)
t_2
(if (<= b -8.5e-149)
(* z (- (* x y) (* b c)))
(if (<= b -1.95e-203)
t_2
(if (<= b 92.0)
(- t_1 (* x (- (* t a) (* y z))))
(- t_1 (* b (- (* z c) (* a i))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (b <= -4.8e-111) {
tmp = t_2;
} else if (b <= -8.5e-149) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -1.95e-203) {
tmp = t_2;
} else if (b <= 92.0) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else {
tmp = t_1 - (b * ((z * c) - (a * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
if (b <= (-4.8d-111)) then
tmp = t_2
else if (b <= (-8.5d-149)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-1.95d-203)) then
tmp = t_2
else if (b <= 92.0d0) then
tmp = t_1 - (x * ((t * a) - (y * z)))
else
tmp = t_1 - (b * ((z * c) - (a * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
double tmp;
if (b <= -4.8e-111) {
tmp = t_2;
} else if (b <= -8.5e-149) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -1.95e-203) {
tmp = t_2;
} else if (b <= 92.0) {
tmp = t_1 - (x * ((t * a) - (y * z)));
} else {
tmp = t_1 - (b * ((z * c) - (a * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) tmp = 0 if b <= -4.8e-111: tmp = t_2 elif b <= -8.5e-149: tmp = z * ((x * y) - (b * c)) elif b <= -1.95e-203: tmp = t_2 elif b <= 92.0: tmp = t_1 - (x * ((t * a) - (y * z))) else: tmp = t_1 - (b * ((z * c) - (a * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (b <= -4.8e-111) tmp = t_2; elseif (b <= -8.5e-149) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -1.95e-203) tmp = t_2; elseif (b <= 92.0) tmp = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); tmp = 0.0; if (b <= -4.8e-111) tmp = t_2; elseif (b <= -8.5e-149) tmp = z * ((x * y) - (b * c)); elseif (b <= -1.95e-203) tmp = t_2; elseif (b <= 92.0) tmp = t_1 - (x * ((t * a) - (y * z))); else tmp = t_1 - (b * ((z * c) - (a * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.8e-111], t$95$2, If[LessEqual[b, -8.5e-149], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.95e-203], t$95$2, If[LessEqual[b, 92.0], N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.8 \cdot 10^{-111}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-149}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{-203}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 92:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c - a \cdot i\right)\\
\end{array}
\end{array}
if b < -4.8000000000000001e-111 or -8.5000000000000006e-149 < b < -1.95e-203Initial program 73.0%
+-commutative73.0%
fma-define75.0%
*-commutative75.0%
*-commutative75.0%
cancel-sign-sub-inv75.0%
cancel-sign-sub75.0%
sub-neg75.0%
sub-neg75.0%
*-commutative75.0%
fma-neg75.9%
*-commutative75.9%
distribute-rgt-neg-out75.9%
remove-double-neg75.9%
*-commutative75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in y around 0 74.6%
associate-*r*74.6%
*-commutative74.6%
associate-*r*75.4%
associate-*r*75.4%
associate-*r*79.1%
distribute-rgt-in80.1%
+-commutative80.1%
mul-1-neg80.1%
unsub-neg80.1%
*-commutative80.1%
*-commutative80.1%
Simplified80.1%
if -4.8000000000000001e-111 < b < -8.5000000000000006e-149Initial program 80.6%
+-commutative80.6%
fma-define80.6%
*-commutative80.6%
*-commutative80.6%
cancel-sign-sub-inv80.6%
cancel-sign-sub80.6%
sub-neg80.6%
sub-neg80.6%
*-commutative80.6%
fma-neg80.6%
*-commutative80.6%
distribute-rgt-neg-out80.6%
remove-double-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in z around inf 89.8%
if -1.95e-203 < b < 92Initial program 86.0%
+-commutative86.0%
fma-define86.0%
*-commutative86.0%
*-commutative86.0%
cancel-sign-sub-inv86.0%
cancel-sign-sub86.0%
sub-neg86.0%
sub-neg86.0%
*-commutative86.0%
fma-neg86.0%
*-commutative86.0%
distribute-rgt-neg-out86.0%
remove-double-neg86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in b around 0 82.2%
if 92 < b Initial program 77.7%
+-commutative77.7%
fma-define77.7%
*-commutative77.7%
*-commutative77.7%
cancel-sign-sub-inv77.7%
cancel-sign-sub77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
fma-neg77.7%
*-commutative77.7%
distribute-rgt-neg-out77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in x around 0 73.8%
fma-neg73.8%
*-commutative73.8%
fma-neg73.8%
distribute-rgt-neg-out73.8%
*-rgt-identity73.8%
fma-neg73.8%
*-rgt-identity73.8%
distribute-rgt-neg-out73.8%
fma-neg73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Final simplification79.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -5.4e+49)
t_1
(if (<= b -5.6e-109)
(* t (- (* c j) (* x a)))
(if (<= b -7.5e-158)
(* z (- (* x y) (* b c)))
(if (<= b -2.6e-268)
(* j (- (* t c) (* y i)))
(if (<= b 8.4e-10) (* y (- (* x z) (* i j))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.4e+49) {
tmp = t_1;
} else if (b <= -5.6e-109) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -7.5e-158) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.6e-268) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 8.4e-10) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-5.4d+49)) then
tmp = t_1
else if (b <= (-5.6d-109)) then
tmp = t * ((c * j) - (x * a))
else if (b <= (-7.5d-158)) then
tmp = z * ((x * y) - (b * c))
else if (b <= (-2.6d-268)) then
tmp = j * ((t * c) - (y * i))
else if (b <= 8.4d-10) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -5.4e+49) {
tmp = t_1;
} else if (b <= -5.6e-109) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -7.5e-158) {
tmp = z * ((x * y) - (b * c));
} else if (b <= -2.6e-268) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 8.4e-10) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -5.4e+49: tmp = t_1 elif b <= -5.6e-109: tmp = t * ((c * j) - (x * a)) elif b <= -7.5e-158: tmp = z * ((x * y) - (b * c)) elif b <= -2.6e-268: tmp = j * ((t * c) - (y * i)) elif b <= 8.4e-10: tmp = y * ((x * z) - (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -5.4e+49) tmp = t_1; elseif (b <= -5.6e-109) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= -7.5e-158) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (b <= -2.6e-268) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 8.4e-10) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -5.4e+49) tmp = t_1; elseif (b <= -5.6e-109) tmp = t * ((c * j) - (x * a)); elseif (b <= -7.5e-158) tmp = z * ((x * y) - (b * c)); elseif (b <= -2.6e-268) tmp = j * ((t * c) - (y * i)); elseif (b <= 8.4e-10) tmp = y * ((x * z) - (i * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.4e+49], t$95$1, If[LessEqual[b, -5.6e-109], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e-158], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.6e-268], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.4e-10], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5.4 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-109}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-158}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{-268}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 8.4 \cdot 10^{-10}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.4000000000000002e49 or 8.3999999999999999e-10 < b Initial program 78.8%
+-commutative78.8%
fma-define78.8%
*-commutative78.8%
*-commutative78.8%
cancel-sign-sub-inv78.8%
cancel-sign-sub78.8%
sub-neg78.8%
sub-neg78.8%
*-commutative78.8%
fma-neg78.8%
*-commutative78.8%
distribute-rgt-neg-out78.8%
remove-double-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in b around inf 66.0%
*-commutative66.0%
Simplified66.0%
if -5.4000000000000002e49 < b < -5.59999999999999958e-109Initial program 65.3%
+-commutative65.3%
fma-define70.3%
*-commutative70.3%
*-commutative70.3%
cancel-sign-sub-inv70.3%
cancel-sign-sub70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
fma-neg72.8%
*-commutative72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in t around inf 77.3%
+-commutative77.3%
mul-1-neg77.3%
unsub-neg77.3%
*-commutative77.3%
Simplified77.3%
if -5.59999999999999958e-109 < b < -7.5e-158Initial program 75.5%
+-commutative75.5%
fma-define75.5%
*-commutative75.5%
*-commutative75.5%
cancel-sign-sub-inv75.5%
cancel-sign-sub75.5%
sub-neg75.5%
sub-neg75.5%
*-commutative75.5%
fma-neg75.5%
*-commutative75.5%
distribute-rgt-neg-out75.5%
remove-double-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in z around inf 83.8%
if -7.5e-158 < b < -2.60000000000000002e-268Initial program 71.6%
+-commutative71.6%
fma-define71.6%
*-commutative71.6%
*-commutative71.6%
cancel-sign-sub-inv71.6%
cancel-sign-sub71.6%
sub-neg71.6%
sub-neg71.6%
*-commutative71.6%
fma-neg71.6%
*-commutative71.6%
distribute-rgt-neg-out71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in j around inf 74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
if -2.60000000000000002e-268 < b < 8.3999999999999999e-10Initial program 87.9%
+-commutative87.9%
fma-define87.9%
*-commutative87.9%
*-commutative87.9%
cancel-sign-sub-inv87.9%
cancel-sign-sub87.9%
sub-neg87.9%
sub-neg87.9%
*-commutative87.9%
fma-neg87.9%
*-commutative87.9%
distribute-rgt-neg-out87.9%
remove-double-neg87.9%
*-commutative87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -3.3e+45)
t_1
(if (<= b -5.8e-108)
(* t (- (* c j) (* x a)))
(if (<= b -6.2e-158)
(* x (- (* y z) (* t a)))
(if (<= b -2.5e-268)
(* j (- (* t c) (* y i)))
(if (<= b 4.7e-8) (* y (- (* x z) (* i j))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.3e+45) {
tmp = t_1;
} else if (b <= -5.8e-108) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -6.2e-158) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -2.5e-268) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.7e-8) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-3.3d+45)) then
tmp = t_1
else if (b <= (-5.8d-108)) then
tmp = t * ((c * j) - (x * a))
else if (b <= (-6.2d-158)) then
tmp = x * ((y * z) - (t * a))
else if (b <= (-2.5d-268)) then
tmp = j * ((t * c) - (y * i))
else if (b <= 4.7d-8) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.3e+45) {
tmp = t_1;
} else if (b <= -5.8e-108) {
tmp = t * ((c * j) - (x * a));
} else if (b <= -6.2e-158) {
tmp = x * ((y * z) - (t * a));
} else if (b <= -2.5e-268) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.7e-8) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.3e+45: tmp = t_1 elif b <= -5.8e-108: tmp = t * ((c * j) - (x * a)) elif b <= -6.2e-158: tmp = x * ((y * z) - (t * a)) elif b <= -2.5e-268: tmp = j * ((t * c) - (y * i)) elif b <= 4.7e-8: tmp = y * ((x * z) - (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.3e+45) tmp = t_1; elseif (b <= -5.8e-108) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= -6.2e-158) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= -2.5e-268) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 4.7e-8) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.3e+45) tmp = t_1; elseif (b <= -5.8e-108) tmp = t * ((c * j) - (x * a)); elseif (b <= -6.2e-158) tmp = x * ((y * z) - (t * a)); elseif (b <= -2.5e-268) tmp = j * ((t * c) - (y * i)); elseif (b <= 4.7e-8) tmp = y * ((x * z) - (i * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.3e+45], t$95$1, If[LessEqual[b, -5.8e-108], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.2e-158], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.5e-268], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.7e-8], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.3 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.8 \cdot 10^{-108}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-158}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq -2.5 \cdot 10^{-268}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 4.7 \cdot 10^{-8}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.3000000000000001e45 or 4.6999999999999997e-8 < b Initial program 78.8%
+-commutative78.8%
fma-define78.8%
*-commutative78.8%
*-commutative78.8%
cancel-sign-sub-inv78.8%
cancel-sign-sub78.8%
sub-neg78.8%
sub-neg78.8%
*-commutative78.8%
fma-neg78.8%
*-commutative78.8%
distribute-rgt-neg-out78.8%
remove-double-neg78.8%
*-commutative78.8%
*-commutative78.8%
Simplified78.8%
Taylor expanded in b around inf 66.0%
*-commutative66.0%
Simplified66.0%
if -3.3000000000000001e45 < b < -5.8000000000000002e-108Initial program 65.3%
+-commutative65.3%
fma-define70.3%
*-commutative70.3%
*-commutative70.3%
cancel-sign-sub-inv70.3%
cancel-sign-sub70.3%
sub-neg70.3%
sub-neg70.3%
*-commutative70.3%
fma-neg72.8%
*-commutative72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in t around inf 77.3%
+-commutative77.3%
mul-1-neg77.3%
unsub-neg77.3%
*-commutative77.3%
Simplified77.3%
if -5.8000000000000002e-108 < b < -6.20000000000000036e-158Initial program 75.5%
+-commutative75.5%
fma-define75.5%
*-commutative75.5%
*-commutative75.5%
cancel-sign-sub-inv75.5%
cancel-sign-sub75.5%
sub-neg75.5%
sub-neg75.5%
*-commutative75.5%
fma-neg75.5%
*-commutative75.5%
distribute-rgt-neg-out75.5%
remove-double-neg75.5%
*-commutative75.5%
*-commutative75.5%
Simplified75.5%
Taylor expanded in x around inf 68.0%
+-commutative68.0%
mul-1-neg68.0%
sub-neg68.0%
Simplified68.0%
if -6.20000000000000036e-158 < b < -2.5e-268Initial program 71.6%
+-commutative71.6%
fma-define71.6%
*-commutative71.6%
*-commutative71.6%
cancel-sign-sub-inv71.6%
cancel-sign-sub71.6%
sub-neg71.6%
sub-neg71.6%
*-commutative71.6%
fma-neg71.6%
*-commutative71.6%
distribute-rgt-neg-out71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in j around inf 74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
if -2.5e-268 < b < 4.6999999999999997e-8Initial program 87.9%
+-commutative87.9%
fma-define87.9%
*-commutative87.9%
*-commutative87.9%
cancel-sign-sub-inv87.9%
cancel-sign-sub87.9%
sub-neg87.9%
sub-neg87.9%
*-commutative87.9%
fma-neg87.9%
*-commutative87.9%
distribute-rgt-neg-out87.9%
remove-double-neg87.9%
*-commutative87.9%
*-commutative87.9%
Simplified87.9%
Taylor expanded in y around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -1.6e+46)
t_2
(if (<= b -4.8e-111)
t_1
(if (<= b -6e-151)
(* x (* y z))
(if (<= b -2.75e-194)
t_1
(if (<= b 1.42e+23) (* j (- (* t c) (* y i))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.6e+46) {
tmp = t_2;
} else if (b <= -4.8e-111) {
tmp = t_1;
} else if (b <= -6e-151) {
tmp = x * (y * z);
} else if (b <= -2.75e-194) {
tmp = t_1;
} else if (b <= 1.42e+23) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = b * ((a * i) - (z * c))
if (b <= (-1.6d+46)) then
tmp = t_2
else if (b <= (-4.8d-111)) then
tmp = t_1
else if (b <= (-6d-151)) then
tmp = x * (y * z)
else if (b <= (-2.75d-194)) then
tmp = t_1
else if (b <= 1.42d+23) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -1.6e+46) {
tmp = t_2;
} else if (b <= -4.8e-111) {
tmp = t_1;
} else if (b <= -6e-151) {
tmp = x * (y * z);
} else if (b <= -2.75e-194) {
tmp = t_1;
} else if (b <= 1.42e+23) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -1.6e+46: tmp = t_2 elif b <= -4.8e-111: tmp = t_1 elif b <= -6e-151: tmp = x * (y * z) elif b <= -2.75e-194: tmp = t_1 elif b <= 1.42e+23: tmp = j * ((t * c) - (y * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -1.6e+46) tmp = t_2; elseif (b <= -4.8e-111) tmp = t_1; elseif (b <= -6e-151) tmp = Float64(x * Float64(y * z)); elseif (b <= -2.75e-194) tmp = t_1; elseif (b <= 1.42e+23) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -1.6e+46) tmp = t_2; elseif (b <= -4.8e-111) tmp = t_1; elseif (b <= -6e-151) tmp = x * (y * z); elseif (b <= -2.75e-194) tmp = t_1; elseif (b <= 1.42e+23) tmp = j * ((t * c) - (y * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+46], t$95$2, If[LessEqual[b, -4.8e-111], t$95$1, If[LessEqual[b, -6e-151], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.75e-194], t$95$1, If[LessEqual[b, 1.42e+23], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+46}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.8 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6 \cdot 10^{-151}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -2.75 \cdot 10^{-194}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.42 \cdot 10^{+23}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.5999999999999999e46 or 1.42000000000000004e23 < b Initial program 77.9%
+-commutative77.9%
fma-define77.9%
*-commutative77.9%
*-commutative77.9%
cancel-sign-sub-inv77.9%
cancel-sign-sub77.9%
sub-neg77.9%
sub-neg77.9%
*-commutative77.9%
fma-neg77.9%
*-commutative77.9%
distribute-rgt-neg-out77.9%
remove-double-neg77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in b around inf 67.8%
*-commutative67.8%
Simplified67.8%
if -1.5999999999999999e46 < b < -4.8000000000000001e-111 or -6e-151 < b < -2.74999999999999971e-194Initial program 65.1%
+-commutative65.1%
fma-define69.2%
*-commutative69.2%
*-commutative69.2%
cancel-sign-sub-inv69.2%
cancel-sign-sub69.2%
sub-neg69.2%
sub-neg69.2%
*-commutative69.2%
fma-neg71.3%
*-commutative71.3%
distribute-rgt-neg-out71.3%
remove-double-neg71.3%
*-commutative71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in t around inf 75.0%
+-commutative75.0%
mul-1-neg75.0%
unsub-neg75.0%
*-commutative75.0%
Simplified75.0%
if -4.8000000000000001e-111 < b < -6e-151Initial program 73.3%
+-commutative73.3%
fma-define73.3%
*-commutative73.3%
*-commutative73.3%
cancel-sign-sub-inv73.3%
cancel-sign-sub73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
fma-neg73.3%
*-commutative73.3%
distribute-rgt-neg-out73.3%
remove-double-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in y around -inf 81.9%
Simplified73.3%
Taylor expanded in j around inf 73.9%
Taylor expanded in j around 0 65.1%
if -2.74999999999999971e-194 < b < 1.42000000000000004e23Initial program 87.2%
+-commutative87.2%
fma-define87.2%
*-commutative87.2%
*-commutative87.2%
cancel-sign-sub-inv87.2%
cancel-sign-sub87.2%
sub-neg87.2%
sub-neg87.2%
*-commutative87.2%
fma-neg87.2%
*-commutative87.2%
distribute-rgt-neg-out87.2%
remove-double-neg87.2%
*-commutative87.2%
*-commutative87.2%
Simplified87.2%
Taylor expanded in j around inf 48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= x -180000000.0)
(- (- (* c (* t j)) t_1) (* b (* z c)))
(if (<= x -1.05e-174)
(+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))
(if (<= x 0.19) (- t_2 (* b (- (* z c) (* a i)))) (- 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 = x * ((t * a) - (y * z));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (x <= -180000000.0) {
tmp = ((c * (t * j)) - t_1) - (b * (z * c));
} else if (x <= -1.05e-174) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else if (x <= 0.19) {
tmp = t_2 - (b * ((z * c) - (a * i)));
} else {
tmp = t_2 - 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 = x * ((t * a) - (y * z))
t_2 = j * ((t * c) - (y * i))
if (x <= (-180000000.0d0)) then
tmp = ((c * (t * j)) - t_1) - (b * (z * c))
else if (x <= (-1.05d-174)) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else if (x <= 0.19d0) then
tmp = t_2 - (b * ((z * c) - (a * i)))
else
tmp = t_2 - 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 = x * ((t * a) - (y * z));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (x <= -180000000.0) {
tmp = ((c * (t * j)) - t_1) - (b * (z * c));
} else if (x <= -1.05e-174) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else if (x <= 0.19) {
tmp = t_2 - (b * ((z * c) - (a * i)));
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if x <= -180000000.0: tmp = ((c * (t * j)) - t_1) - (b * (z * c)) elif x <= -1.05e-174: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) elif x <= 0.19: tmp = t_2 - (b * ((z * c) - (a * i))) else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (x <= -180000000.0) tmp = Float64(Float64(Float64(c * Float64(t * j)) - t_1) - Float64(b * Float64(z * c))); elseif (x <= -1.05e-174) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 0.19) tmp = Float64(t_2 - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (x <= -180000000.0) tmp = ((c * (t * j)) - t_1) - (b * (z * c)); elseif (x <= -1.05e-174) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); elseif (x <= 0.19) tmp = t_2 - (b * ((z * c) - (a * i))); else tmp = t_2 - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -180000000.0], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.05e-174], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 0.19], N[(t$95$2 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -180000000:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - t\_1\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq -1.05 \cdot 10^{-174}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 0.19:\\
\;\;\;\;t\_2 - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if x < -1.8e8Initial program 82.9%
+-commutative82.9%
fma-define84.6%
*-commutative84.6%
*-commutative84.6%
cancel-sign-sub-inv84.6%
cancel-sign-sub84.6%
sub-neg84.6%
sub-neg84.6%
*-commutative84.6%
fma-neg84.6%
*-commutative84.6%
distribute-rgt-neg-out84.6%
remove-double-neg84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in i around 0 80.0%
if -1.8e8 < x < -1.05000000000000005e-174Initial program 78.0%
+-commutative78.0%
fma-define78.0%
*-commutative78.0%
*-commutative78.0%
cancel-sign-sub-inv78.0%
cancel-sign-sub78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
fma-neg78.0%
*-commutative78.0%
distribute-rgt-neg-out78.0%
remove-double-neg78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in y around 0 66.8%
associate-*r*66.8%
*-commutative66.8%
associate-*r*66.8%
associate-*r*66.8%
associate-*r*74.9%
distribute-rgt-in74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
if -1.05000000000000005e-174 < x < 0.19Initial program 79.5%
+-commutative79.5%
fma-define79.5%
*-commutative79.5%
*-commutative79.5%
cancel-sign-sub-inv79.5%
cancel-sign-sub79.5%
sub-neg79.5%
sub-neg79.5%
*-commutative79.5%
fma-neg79.5%
*-commutative79.5%
distribute-rgt-neg-out79.5%
remove-double-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in x around 0 80.6%
fma-neg80.6%
*-commutative80.6%
fma-neg81.6%
distribute-rgt-neg-out81.6%
*-rgt-identity81.6%
fma-neg81.6%
*-rgt-identity81.6%
distribute-rgt-neg-out81.6%
fma-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
if 0.19 < x Initial program 73.5%
+-commutative73.5%
fma-define75.2%
*-commutative75.2%
*-commutative75.2%
cancel-sign-sub-inv75.2%
cancel-sign-sub75.2%
sub-neg75.2%
sub-neg75.2%
*-commutative75.2%
fma-neg76.8%
*-commutative76.8%
distribute-rgt-neg-out76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in b around 0 75.4%
Final simplification78.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -1.7e+69)
(* z (* b (- c)))
(if (<= b -1.65e+50)
(* a (* b i))
(if (<= b -5.6e-56)
(* j (* t c))
(if (<= b -7e-108)
(* a (* t (- x)))
(if (<= b 4.8e-9) (* y (* x z)) (* b (* z (- c)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -1.7e+69) {
tmp = z * (b * -c);
} else if (b <= -1.65e+50) {
tmp = a * (b * i);
} else if (b <= -5.6e-56) {
tmp = j * (t * c);
} else if (b <= -7e-108) {
tmp = a * (t * -x);
} else if (b <= 4.8e-9) {
tmp = y * (x * z);
} else {
tmp = b * (z * -c);
}
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 (b <= (-1.7d+69)) then
tmp = z * (b * -c)
else if (b <= (-1.65d+50)) then
tmp = a * (b * i)
else if (b <= (-5.6d-56)) then
tmp = j * (t * c)
else if (b <= (-7d-108)) then
tmp = a * (t * -x)
else if (b <= 4.8d-9) then
tmp = y * (x * z)
else
tmp = b * (z * -c)
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 (b <= -1.7e+69) {
tmp = z * (b * -c);
} else if (b <= -1.65e+50) {
tmp = a * (b * i);
} else if (b <= -5.6e-56) {
tmp = j * (t * c);
} else if (b <= -7e-108) {
tmp = a * (t * -x);
} else if (b <= 4.8e-9) {
tmp = y * (x * z);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1.7e+69: tmp = z * (b * -c) elif b <= -1.65e+50: tmp = a * (b * i) elif b <= -5.6e-56: tmp = j * (t * c) elif b <= -7e-108: tmp = a * (t * -x) elif b <= 4.8e-9: tmp = y * (x * z) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1.7e+69) tmp = Float64(z * Float64(b * Float64(-c))); elseif (b <= -1.65e+50) tmp = Float64(a * Float64(b * i)); elseif (b <= -5.6e-56) tmp = Float64(j * Float64(t * c)); elseif (b <= -7e-108) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 4.8e-9) tmp = Float64(y * Float64(x * z)); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1.7e+69) tmp = z * (b * -c); elseif (b <= -1.65e+50) tmp = a * (b * i); elseif (b <= -5.6e-56) tmp = j * (t * c); elseif (b <= -7e-108) tmp = a * (t * -x); elseif (b <= 4.8e-9) tmp = y * (x * z); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.7e+69], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.65e+50], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.6e-56], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7e-108], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.8e-9], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.7 \cdot 10^{+69}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq -1.65 \cdot 10^{+50}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-56}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-108}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-9}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -1.69999999999999993e69Initial program 85.0%
+-commutative85.0%
fma-define85.0%
*-commutative85.0%
*-commutative85.0%
cancel-sign-sub-inv85.0%
cancel-sign-sub85.0%
sub-neg85.0%
sub-neg85.0%
*-commutative85.0%
fma-neg85.0%
*-commutative85.0%
distribute-rgt-neg-out85.0%
remove-double-neg85.0%
*-commutative85.0%
*-commutative85.0%
Simplified85.0%
Taylor expanded in y around -inf 74.9%
Simplified79.0%
Taylor expanded in z around inf 66.4%
associate-*r*66.4%
neg-mul-166.4%
associate-/l*64.3%
Simplified64.3%
Taylor expanded in y around 0 54.8%
associate-*r*60.7%
associate-*r*60.7%
*-commutative60.7%
mul-1-neg60.7%
*-commutative60.7%
distribute-rgt-neg-in60.7%
Simplified60.7%
if -1.69999999999999993e69 < b < -1.65e50Initial program 50.0%
+-commutative50.0%
fma-define50.0%
*-commutative50.0%
*-commutative50.0%
cancel-sign-sub-inv50.0%
cancel-sign-sub50.0%
sub-neg50.0%
sub-neg50.0%
*-commutative50.0%
fma-neg50.0%
*-commutative50.0%
distribute-rgt-neg-out50.0%
remove-double-neg50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around -inf 83.3%
Simplified83.3%
Taylor expanded in a around -inf 83.1%
associate-*r*83.1%
*-commutative83.1%
associate-/l*83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in b around inf 83.1%
if -1.65e50 < b < -5.59999999999999986e-56Initial program 68.0%
+-commutative68.0%
fma-define71.6%
*-commutative71.6%
*-commutative71.6%
cancel-sign-sub-inv71.6%
cancel-sign-sub71.6%
sub-neg71.6%
sub-neg71.6%
*-commutative71.6%
fma-neg71.6%
*-commutative71.6%
distribute-rgt-neg-out71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in y around -inf 71.8%
Simplified71.5%
Taylor expanded in j around inf 48.0%
Taylor expanded in c around inf 41.3%
associate-*r*47.1%
*-commutative47.1%
associate-*l*44.7%
Simplified44.7%
if -5.59999999999999986e-56 < b < -6.9999999999999997e-108Initial program 59.0%
+-commutative59.0%
fma-define67.3%
*-commutative67.3%
*-commutative67.3%
cancel-sign-sub-inv67.3%
cancel-sign-sub67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
fma-neg75.6%
*-commutative75.6%
distribute-rgt-neg-out75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y around -inf 67.7%
Simplified76.1%
Taylor expanded in a around -inf 68.0%
associate-*r*68.0%
*-commutative68.0%
associate-/l*67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 67.6%
mul-1-neg67.6%
*-commutative67.6%
distribute-rgt-neg-in67.6%
distribute-rgt-neg-out67.6%
Simplified67.6%
if -6.9999999999999997e-108 < b < 4.8e-9Initial program 83.8%
+-commutative83.8%
fma-define83.8%
*-commutative83.8%
*-commutative83.8%
cancel-sign-sub-inv83.8%
cancel-sign-sub83.8%
sub-neg83.8%
sub-neg83.8%
*-commutative83.8%
fma-neg83.8%
*-commutative83.8%
distribute-rgt-neg-out83.8%
remove-double-neg83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in y around -inf 75.4%
Simplified76.5%
Taylor expanded in j around inf 64.1%
Taylor expanded in j around 0 31.7%
associate-*r*35.8%
*-commutative35.8%
associate-*r*32.2%
Simplified32.2%
if 4.8e-9 < b Initial program 76.8%
+-commutative76.8%
fma-define76.8%
*-commutative76.8%
*-commutative76.8%
cancel-sign-sub-inv76.8%
cancel-sign-sub76.8%
sub-neg76.8%
sub-neg76.8%
*-commutative76.8%
fma-neg76.8%
*-commutative76.8%
distribute-rgt-neg-out76.8%
remove-double-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in y around -inf 61.0%
Simplified60.8%
Taylor expanded in z around inf 40.2%
associate-*r*40.2%
neg-mul-140.2%
associate-/l*41.8%
Simplified41.8%
Taylor expanded in y around 0 40.5%
mul-1-neg40.5%
*-commutative40.5%
Simplified40.5%
Final simplification43.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))))
(if (<= b -4.5e+66)
t_1
(if (<= b -1.35e+50)
(* a (* b i))
(if (<= b -1.75e-56)
(* j (* t c))
(if (<= b -1.25e-109)
(* a (* t (- x)))
(if (<= b 2.5e-9) (* 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 = b * (z * -c);
double tmp;
if (b <= -4.5e+66) {
tmp = t_1;
} else if (b <= -1.35e+50) {
tmp = a * (b * i);
} else if (b <= -1.75e-56) {
tmp = j * (t * c);
} else if (b <= -1.25e-109) {
tmp = a * (t * -x);
} else if (b <= 2.5e-9) {
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 = b * (z * -c)
if (b <= (-4.5d+66)) then
tmp = t_1
else if (b <= (-1.35d+50)) then
tmp = a * (b * i)
else if (b <= (-1.75d-56)) then
tmp = j * (t * c)
else if (b <= (-1.25d-109)) then
tmp = a * (t * -x)
else if (b <= 2.5d-9) 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 = b * (z * -c);
double tmp;
if (b <= -4.5e+66) {
tmp = t_1;
} else if (b <= -1.35e+50) {
tmp = a * (b * i);
} else if (b <= -1.75e-56) {
tmp = j * (t * c);
} else if (b <= -1.25e-109) {
tmp = a * (t * -x);
} else if (b <= 2.5e-9) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) tmp = 0 if b <= -4.5e+66: tmp = t_1 elif b <= -1.35e+50: tmp = a * (b * i) elif b <= -1.75e-56: tmp = j * (t * c) elif b <= -1.25e-109: tmp = a * (t * -x) elif b <= 2.5e-9: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (b <= -4.5e+66) tmp = t_1; elseif (b <= -1.35e+50) tmp = Float64(a * Float64(b * i)); elseif (b <= -1.75e-56) tmp = Float64(j * Float64(t * c)); elseif (b <= -1.25e-109) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 2.5e-9) 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 = b * (z * -c); tmp = 0.0; if (b <= -4.5e+66) tmp = t_1; elseif (b <= -1.35e+50) tmp = a * (b * i); elseif (b <= -1.75e-56) tmp = j * (t * c); elseif (b <= -1.25e-109) tmp = a * (t * -x); elseif (b <= 2.5e-9) 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[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e+66], t$95$1, If[LessEqual[b, -1.35e+50], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.75e-56], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.25e-109], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.5e-9], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{+66}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.35 \cdot 10^{+50}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -1.75 \cdot 10^{-56}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;b \leq -1.25 \cdot 10^{-109}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 2.5 \cdot 10^{-9}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -4.4999999999999998e66 or 2.5000000000000001e-9 < b Initial program 80.4%
+-commutative80.4%
fma-define80.4%
*-commutative80.4%
*-commutative80.4%
cancel-sign-sub-inv80.4%
cancel-sign-sub80.4%
sub-neg80.4%
sub-neg80.4%
*-commutative80.4%
fma-neg80.4%
*-commutative80.4%
distribute-rgt-neg-out80.4%
remove-double-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in y around -inf 67.1%
Simplified68.8%
Taylor expanded in z around inf 51.7%
associate-*r*51.7%
neg-mul-151.7%
associate-/l*51.7%
Simplified51.7%
Taylor expanded in y around 0 46.8%
mul-1-neg46.8%
*-commutative46.8%
Simplified46.8%
if -4.4999999999999998e66 < b < -1.35e50Initial program 50.0%
+-commutative50.0%
fma-define50.0%
*-commutative50.0%
*-commutative50.0%
cancel-sign-sub-inv50.0%
cancel-sign-sub50.0%
sub-neg50.0%
sub-neg50.0%
*-commutative50.0%
fma-neg50.0%
*-commutative50.0%
distribute-rgt-neg-out50.0%
remove-double-neg50.0%
*-commutative50.0%
*-commutative50.0%
Simplified50.0%
Taylor expanded in y around -inf 83.3%
Simplified83.3%
Taylor expanded in a around -inf 83.1%
associate-*r*83.1%
*-commutative83.1%
associate-/l*83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in b around inf 83.1%
if -1.35e50 < b < -1.7499999999999999e-56Initial program 68.0%
+-commutative68.0%
fma-define71.6%
*-commutative71.6%
*-commutative71.6%
cancel-sign-sub-inv71.6%
cancel-sign-sub71.6%
sub-neg71.6%
sub-neg71.6%
*-commutative71.6%
fma-neg71.6%
*-commutative71.6%
distribute-rgt-neg-out71.6%
remove-double-neg71.6%
*-commutative71.6%
*-commutative71.6%
Simplified71.6%
Taylor expanded in y around -inf 71.8%
Simplified71.5%
Taylor expanded in j around inf 48.0%
Taylor expanded in c around inf 41.3%
associate-*r*47.1%
*-commutative47.1%
associate-*l*44.7%
Simplified44.7%
if -1.7499999999999999e-56 < b < -1.25000000000000005e-109Initial program 59.0%
+-commutative59.0%
fma-define67.3%
*-commutative67.3%
*-commutative67.3%
cancel-sign-sub-inv67.3%
cancel-sign-sub67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
fma-neg75.6%
*-commutative75.6%
distribute-rgt-neg-out75.6%
remove-double-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in y around -inf 67.7%
Simplified76.1%
Taylor expanded in a around -inf 68.0%
associate-*r*68.0%
*-commutative68.0%
associate-/l*67.7%
*-commutative67.7%
Simplified67.7%
Taylor expanded in b around 0 67.6%
mul-1-neg67.6%
*-commutative67.6%
distribute-rgt-neg-in67.6%
distribute-rgt-neg-out67.6%
Simplified67.6%
if -1.25000000000000005e-109 < b < 2.5000000000000001e-9Initial program 83.8%
+-commutative83.8%
fma-define83.8%
*-commutative83.8%
*-commutative83.8%
cancel-sign-sub-inv83.8%
cancel-sign-sub83.8%
sub-neg83.8%
sub-neg83.8%
*-commutative83.8%
fma-neg83.8%
*-commutative83.8%
distribute-rgt-neg-out83.8%
remove-double-neg83.8%
*-commutative83.8%
*-commutative83.8%
Simplified83.8%
Taylor expanded in y around -inf 75.4%
Simplified76.5%
Taylor expanded in j around inf 64.1%
Taylor expanded in j around 0 31.7%
associate-*r*35.8%
*-commutative35.8%
associate-*r*32.2%
Simplified32.2%
Final simplification42.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.2e+87)
t_1
(if (<= y -2.4e-12)
(* j (- (* t c) (* y i)))
(if (<= y 1.05e+42) (- (* t (- (* c j) (* x a))) (* z (* b 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) - (i * j));
double tmp;
if (y <= -1.2e+87) {
tmp = t_1;
} else if (y <= -2.4e-12) {
tmp = j * ((t * c) - (y * i));
} else if (y <= 1.05e+42) {
tmp = (t * ((c * j) - (x * a))) - (z * (b * 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) - (i * j))
if (y <= (-1.2d+87)) then
tmp = t_1
else if (y <= (-2.4d-12)) then
tmp = j * ((t * c) - (y * i))
else if (y <= 1.05d+42) then
tmp = (t * ((c * j) - (x * a))) - (z * (b * 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) - (i * j));
double tmp;
if (y <= -1.2e+87) {
tmp = t_1;
} else if (y <= -2.4e-12) {
tmp = j * ((t * c) - (y * i));
} else if (y <= 1.05e+42) {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
} 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 <= -1.2e+87: tmp = t_1 elif y <= -2.4e-12: tmp = j * ((t * c) - (y * i)) elif y <= 1.05e+42: tmp = (t * ((c * j) - (x * a))) - (z * (b * c)) 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 <= -1.2e+87) tmp = t_1; elseif (y <= -2.4e-12) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (y <= 1.05e+42) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(z * Float64(b * 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) - (i * j)); tmp = 0.0; if (y <= -1.2e+87) tmp = t_1; elseif (y <= -2.4e-12) tmp = j * ((t * c) - (y * i)); elseif (y <= 1.05e+42) tmp = (t * ((c * j) - (x * a))) - (z * (b * 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[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.2e+87], t$95$1, If[LessEqual[y, -2.4e-12], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.05e+42], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $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 -1.2 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-12}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+42}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.19999999999999991e87 or 1.04999999999999998e42 < y Initial program 69.1%
+-commutative69.1%
fma-define71.3%
*-commutative71.3%
*-commutative71.3%
cancel-sign-sub-inv71.3%
cancel-sign-sub71.3%
sub-neg71.3%
sub-neg71.3%
*-commutative71.3%
fma-neg72.4%
*-commutative72.4%
distribute-rgt-neg-out72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in y around inf 63.3%
+-commutative63.3%
mul-1-neg63.3%
unsub-neg63.3%
Simplified63.3%
if -1.19999999999999991e87 < y < -2.39999999999999987e-12Initial program 82.5%
+-commutative82.5%
fma-define82.5%
*-commutative82.5%
*-commutative82.5%
cancel-sign-sub-inv82.5%
cancel-sign-sub82.5%
sub-neg82.5%
sub-neg82.5%
*-commutative82.5%
fma-neg82.5%
*-commutative82.5%
distribute-rgt-neg-out82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in j around inf 74.7%
*-commutative74.7%
*-commutative74.7%
Simplified74.7%
if -2.39999999999999987e-12 < y < 1.04999999999999998e42Initial program 84.1%
+-commutative84.1%
fma-define84.1%
*-commutative84.1%
*-commutative84.1%
cancel-sign-sub-inv84.1%
cancel-sign-sub84.1%
sub-neg84.1%
sub-neg84.1%
*-commutative84.1%
fma-neg84.1%
*-commutative84.1%
distribute-rgt-neg-out84.1%
remove-double-neg84.1%
*-commutative84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in y around 0 70.8%
associate-*r*70.8%
*-commutative70.8%
associate-*r*70.8%
associate-*r*70.8%
associate-*r*74.7%
distribute-rgt-in75.4%
+-commutative75.4%
mul-1-neg75.4%
unsub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in z around inf 64.6%
*-commutative64.6%
*-commutative64.6%
associate-*r*63.4%
Simplified63.4%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= a -5e+61)
t_2
(if (<= a 2.15e-287)
t_1
(if (<= a 3.1e-267)
(* i (* j (- y)))
(if (<= a 210000000000.0) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (a <= -5e+61) {
tmp = t_2;
} else if (a <= 2.15e-287) {
tmp = t_1;
} else if (a <= 3.1e-267) {
tmp = i * (j * -y);
} else if (a <= 210000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
t_2 = b * ((a * i) - (z * c))
if (a <= (-5d+61)) then
tmp = t_2
else if (a <= 2.15d-287) then
tmp = t_1
else if (a <= 3.1d-267) then
tmp = i * (j * -y)
else if (a <= 210000000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (a <= -5e+61) {
tmp = t_2;
} else if (a <= 2.15e-287) {
tmp = t_1;
} else if (a <= 3.1e-267) {
tmp = i * (j * -y);
} else if (a <= 210000000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if a <= -5e+61: tmp = t_2 elif a <= 2.15e-287: tmp = t_1 elif a <= 3.1e-267: tmp = i * (j * -y) elif a <= 210000000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (a <= -5e+61) tmp = t_2; elseif (a <= 2.15e-287) tmp = t_1; elseif (a <= 3.1e-267) tmp = Float64(i * Float64(j * Float64(-y))); elseif (a <= 210000000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (a <= -5e+61) tmp = t_2; elseif (a <= 2.15e-287) tmp = t_1; elseif (a <= 3.1e-267) tmp = i * (j * -y); elseif (a <= 210000000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5e+61], t$95$2, If[LessEqual[a, 2.15e-287], t$95$1, If[LessEqual[a, 3.1e-267], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 210000000000.0], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;a \leq -5 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 2.15 \cdot 10^{-287}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 3.1 \cdot 10^{-267}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;a \leq 210000000000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -5.00000000000000018e61 or 2.1e11 < a Initial program 75.9%
+-commutative75.9%
fma-define76.9%
*-commutative76.9%
*-commutative76.9%
cancel-sign-sub-inv76.9%
cancel-sign-sub76.9%
sub-neg76.9%
sub-neg76.9%
*-commutative76.9%
fma-neg77.9%
*-commutative77.9%
distribute-rgt-neg-out77.9%
remove-double-neg77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in b around inf 48.1%
*-commutative48.1%
Simplified48.1%
if -5.00000000000000018e61 < a < 2.14999999999999995e-287 or 3.1000000000000001e-267 < a < 2.1e11Initial program 81.1%
+-commutative81.1%
fma-define81.8%
*-commutative81.8%
*-commutative81.8%
cancel-sign-sub-inv81.8%
cancel-sign-sub81.8%
sub-neg81.8%
sub-neg81.8%
*-commutative81.8%
fma-neg81.8%
*-commutative81.8%
distribute-rgt-neg-out81.8%
remove-double-neg81.8%
*-commutative81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in c around inf 47.9%
*-commutative47.9%
*-commutative47.9%
Simplified47.9%
if 2.14999999999999995e-287 < a < 3.1000000000000001e-267Initial program 70.8%
+-commutative70.8%
fma-define70.8%
*-commutative70.8%
*-commutative70.8%
cancel-sign-sub-inv70.8%
cancel-sign-sub70.8%
sub-neg70.8%
sub-neg70.8%
*-commutative70.8%
fma-neg70.8%
*-commutative70.8%
distribute-rgt-neg-out70.8%
remove-double-neg70.8%
*-commutative70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in y around -inf 71.1%
Simplified80.3%
Taylor expanded in j around inf 70.6%
Taylor expanded in i around inf 78.0%
mul-1-neg78.0%
*-commutative78.0%
distribute-rgt-neg-in78.0%
*-commutative78.0%
Simplified78.0%
Final simplification49.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* i (* j (- y)))))
(if (<= j -3.6e+221)
t_2
(if (<= j -2.15e+159)
t_1
(if (<= j -4.6e+54) (* j (* t c)) (if (<= j 3.7e+154) 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 * ((a * i) - (z * c));
double t_2 = i * (j * -y);
double tmp;
if (j <= -3.6e+221) {
tmp = t_2;
} else if (j <= -2.15e+159) {
tmp = t_1;
} else if (j <= -4.6e+54) {
tmp = j * (t * c);
} else if (j <= 3.7e+154) {
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 * ((a * i) - (z * c))
t_2 = i * (j * -y)
if (j <= (-3.6d+221)) then
tmp = t_2
else if (j <= (-2.15d+159)) then
tmp = t_1
else if (j <= (-4.6d+54)) then
tmp = j * (t * c)
else if (j <= 3.7d+154) 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 * ((a * i) - (z * c));
double t_2 = i * (j * -y);
double tmp;
if (j <= -3.6e+221) {
tmp = t_2;
} else if (j <= -2.15e+159) {
tmp = t_1;
} else if (j <= -4.6e+54) {
tmp = j * (t * c);
} else if (j <= 3.7e+154) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = i * (j * -y) tmp = 0 if j <= -3.6e+221: tmp = t_2 elif j <= -2.15e+159: tmp = t_1 elif j <= -4.6e+54: tmp = j * (t * c) elif j <= 3.7e+154: 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(a * i) - Float64(z * c))) t_2 = Float64(i * Float64(j * Float64(-y))) tmp = 0.0 if (j <= -3.6e+221) tmp = t_2; elseif (j <= -2.15e+159) tmp = t_1; elseif (j <= -4.6e+54) tmp = Float64(j * Float64(t * c)); elseif (j <= 3.7e+154) 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 * ((a * i) - (z * c)); t_2 = i * (j * -y); tmp = 0.0; if (j <= -3.6e+221) tmp = t_2; elseif (j <= -2.15e+159) tmp = t_1; elseif (j <= -4.6e+54) tmp = j * (t * c); elseif (j <= 3.7e+154) 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.6e+221], t$95$2, If[LessEqual[j, -2.15e+159], t$95$1, If[LessEqual[j, -4.6e+54], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.7e+154], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{if}\;j \leq -3.6 \cdot 10^{+221}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2.15 \cdot 10^{+159}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.6 \cdot 10^{+54}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;j \leq 3.7 \cdot 10^{+154}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -3.60000000000000009e221 or 3.69999999999999994e154 < j Initial program 65.9%
+-commutative65.9%
fma-define68.0%
*-commutative68.0%
*-commutative68.0%
cancel-sign-sub-inv68.0%
cancel-sign-sub68.0%
sub-neg68.0%
sub-neg68.0%
*-commutative68.0%
fma-neg68.0%
*-commutative68.0%
distribute-rgt-neg-out68.0%
remove-double-neg68.0%
*-commutative68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in y around -inf 49.5%
Simplified51.5%
Taylor expanded in j around inf 57.8%
Taylor expanded in i around inf 49.7%
mul-1-neg49.7%
*-commutative49.7%
distribute-rgt-neg-in49.7%
*-commutative49.7%
Simplified49.7%
if -3.60000000000000009e221 < j < -2.1500000000000001e159 or -4.59999999999999988e54 < j < 3.69999999999999994e154Initial program 81.4%
+-commutative81.4%
fma-define81.9%
*-commutative81.9%
*-commutative81.9%
cancel-sign-sub-inv81.9%
cancel-sign-sub81.9%
sub-neg81.9%
sub-neg81.9%
*-commutative81.9%
fma-neg82.5%
*-commutative82.5%
distribute-rgt-neg-out82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in b around inf 46.0%
*-commutative46.0%
Simplified46.0%
if -2.1500000000000001e159 < j < -4.59999999999999988e54Initial program 83.2%
+-commutative83.2%
fma-define83.2%
*-commutative83.2%
*-commutative83.2%
cancel-sign-sub-inv83.2%
cancel-sign-sub83.2%
sub-neg83.2%
sub-neg83.2%
*-commutative83.2%
fma-neg83.2%
*-commutative83.2%
distribute-rgt-neg-out83.2%
remove-double-neg83.2%
*-commutative83.2%
*-commutative83.2%
Simplified83.2%
Taylor expanded in y around -inf 78.6%
Simplified62.5%
Taylor expanded in j around inf 67.6%
Taylor expanded in c around inf 62.4%
associate-*r*56.8%
*-commutative56.8%
associate-*l*67.2%
Simplified67.2%
Final simplification48.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -48000.0) (not (<= y 1.3e+41))) (* y (+ (* x z) (- (/ (* c (* t j)) y) (* i j)))) (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -48000.0) || !(y <= 1.3e+41)) {
tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j)));
} else {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-48000.0d0)) .or. (.not. (y <= 1.3d+41))) then
tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j)))
else
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -48000.0) || !(y <= 1.3e+41)) {
tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j)));
} else {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -48000.0) or not (y <= 1.3e+41): tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j))) else: tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -48000.0) || !(y <= 1.3e+41)) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(c * Float64(t * j)) / y) - Float64(i * j)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -48000.0) || ~((y <= 1.3e+41))) tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j))); else tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -48000.0], N[Not[LessEqual[y, 1.3e+41]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -48000 \lor \neg \left(y \leq 1.3 \cdot 10^{+41}\right):\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{c \cdot \left(t \cdot j\right)}{y} - i \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if y < -48000 or 1.3e41 < y Initial program 70.5%
+-commutative70.5%
fma-define72.4%
*-commutative72.4%
*-commutative72.4%
cancel-sign-sub-inv72.4%
cancel-sign-sub72.4%
sub-neg72.4%
sub-neg72.4%
*-commutative72.4%
fma-neg73.3%
*-commutative73.3%
distribute-rgt-neg-out73.3%
remove-double-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in y around -inf 79.6%
Simplified81.5%
Taylor expanded in j around inf 70.2%
if -48000 < y < 1.3e41Initial program 84.6%
+-commutative84.6%
fma-define84.6%
*-commutative84.6%
*-commutative84.6%
cancel-sign-sub-inv84.6%
cancel-sign-sub84.6%
sub-neg84.6%
sub-neg84.6%
*-commutative84.6%
fma-neg84.6%
*-commutative84.6%
distribute-rgt-neg-out84.6%
remove-double-neg84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in y around 0 71.1%
associate-*r*71.1%
*-commutative71.1%
associate-*r*71.1%
associate-*r*71.1%
associate-*r*74.9%
distribute-rgt-in75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
*-commutative75.6%
*-commutative75.6%
Simplified75.6%
Final simplification73.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -3.2e+74) (not (<= x 1.82e+87))) (* x (- (* y z) (* t a))) (- (* j (- (* t c) (* y i))) (* b (- (* z c) (* a i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -3.2e+74) || !(x <= 1.82e+87)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((x <= (-3.2d+74)) .or. (.not. (x <= 1.82d+87))) then
tmp = x * ((y * z) - (t * a))
else
tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((x <= -3.2e+74) || !(x <= 1.82e+87)) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -3.2e+74) or not (x <= 1.82e+87): tmp = x * ((y * z) - (t * a)) else: tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -3.2e+74) || !(x <= 1.82e+87)) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((x <= -3.2e+74) || ~((x <= 1.82e+87))) tmp = x * ((y * z) - (t * a)); else tmp = (j * ((t * c) - (y * i))) - (b * ((z * c) - (a * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -3.2e+74], N[Not[LessEqual[x, 1.82e+87]], $MachinePrecision]], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+74} \lor \neg \left(x \leq 1.82 \cdot 10^{+87}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\end{array}
\end{array}
if x < -3.19999999999999995e74 or 1.8199999999999999e87 < x Initial program 74.0%
+-commutative74.0%
fma-define76.1%
*-commutative76.1%
*-commutative76.1%
cancel-sign-sub-inv76.1%
cancel-sign-sub76.1%
sub-neg76.1%
sub-neg76.1%
*-commutative76.1%
fma-neg77.2%
*-commutative77.2%
distribute-rgt-neg-out77.2%
remove-double-neg77.2%
*-commutative77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in x around inf 67.1%
+-commutative67.1%
mul-1-neg67.1%
sub-neg67.1%
Simplified67.1%
if -3.19999999999999995e74 < x < 1.8199999999999999e87Initial program 81.3%
+-commutative81.3%
fma-define81.3%
*-commutative81.3%
*-commutative81.3%
cancel-sign-sub-inv81.3%
cancel-sign-sub81.3%
sub-neg81.3%
sub-neg81.3%
*-commutative81.3%
fma-neg81.3%
*-commutative81.3%
distribute-rgt-neg-out81.3%
remove-double-neg81.3%
*-commutative81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in x around 0 73.5%
fma-neg73.5%
*-commutative73.5%
fma-neg74.1%
distribute-rgt-neg-out74.1%
*-rgt-identity74.1%
fma-neg74.1%
*-rgt-identity74.1%
distribute-rgt-neg-out74.1%
fma-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Final simplification71.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -3.4e-82) (not (<= y 1.95e+40))) (* y (+ (* x z) (- (/ (* c (* t j)) y) (* i j)))) (- (* t (- (* c j) (* x a))) (* z (* b c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -3.4e-82) || !(y <= 1.95e+40)) {
tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j)));
} else {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((y <= (-3.4d-82)) .or. (.not. (y <= 1.95d+40))) then
tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j)))
else
tmp = (t * ((c * j) - (x * a))) - (z * (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((y <= -3.4e-82) || !(y <= 1.95e+40)) {
tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j)));
} else {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -3.4e-82) or not (y <= 1.95e+40): tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j))) else: tmp = (t * ((c * j) - (x * a))) - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -3.4e-82) || !(y <= 1.95e+40)) tmp = Float64(y * Float64(Float64(x * z) + Float64(Float64(Float64(c * Float64(t * j)) / y) - Float64(i * j)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((y <= -3.4e-82) || ~((y <= 1.95e+40))) tmp = y * ((x * z) + (((c * (t * j)) / y) - (i * j))); else tmp = (t * ((c * j) - (x * a))) - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -3.4e-82], N[Not[LessEqual[y, 1.95e+40]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] + N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -3.4 \cdot 10^{-82} \lor \neg \left(y \leq 1.95 \cdot 10^{+40}\right):\\
\;\;\;\;y \cdot \left(x \cdot z + \left(\frac{c \cdot \left(t \cdot j\right)}{y} - i \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if y < -3.39999999999999975e-82 or 1.95e40 < y Initial program 74.2%
+-commutative74.2%
fma-define75.7%
*-commutative75.7%
*-commutative75.7%
cancel-sign-sub-inv75.7%
cancel-sign-sub75.7%
sub-neg75.7%
sub-neg75.7%
*-commutative75.7%
fma-neg76.5%
*-commutative76.5%
distribute-rgt-neg-out76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in y around -inf 80.2%
Simplified82.4%
Taylor expanded in j around inf 66.6%
if -3.39999999999999975e-82 < y < 1.95e40Initial program 83.4%
+-commutative83.4%
fma-define83.4%
*-commutative83.4%
*-commutative83.4%
cancel-sign-sub-inv83.4%
cancel-sign-sub83.4%
sub-neg83.4%
sub-neg83.4%
*-commutative83.4%
fma-neg83.4%
*-commutative83.4%
distribute-rgt-neg-out83.4%
remove-double-neg83.4%
*-commutative83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in y around 0 72.1%
associate-*r*72.1%
*-commutative72.1%
associate-*r*71.3%
associate-*r*71.3%
associate-*r*75.0%
distribute-rgt-in75.8%
+-commutative75.8%
mul-1-neg75.8%
unsub-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in z around inf 67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r*65.9%
Simplified65.9%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* t c))))
(if (<= j -6.2e+70)
t_1
(if (<= j -5.9e-31)
(* x (* y z))
(if (<= j 1.76e-97)
(* b (* z (- c)))
(if (<= j 2.15e+26) (* 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 = j * (t * c);
double tmp;
if (j <= -6.2e+70) {
tmp = t_1;
} else if (j <= -5.9e-31) {
tmp = x * (y * z);
} else if (j <= 1.76e-97) {
tmp = b * (z * -c);
} else if (j <= 2.15e+26) {
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 = j * (t * c)
if (j <= (-6.2d+70)) then
tmp = t_1
else if (j <= (-5.9d-31)) then
tmp = x * (y * z)
else if (j <= 1.76d-97) then
tmp = b * (z * -c)
else if (j <= 2.15d+26) 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 = j * (t * c);
double tmp;
if (j <= -6.2e+70) {
tmp = t_1;
} else if (j <= -5.9e-31) {
tmp = x * (y * z);
} else if (j <= 1.76e-97) {
tmp = b * (z * -c);
} else if (j <= 2.15e+26) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (t * c) tmp = 0 if j <= -6.2e+70: tmp = t_1 elif j <= -5.9e-31: tmp = x * (y * z) elif j <= 1.76e-97: tmp = b * (z * -c) elif j <= 2.15e+26: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(t * c)) tmp = 0.0 if (j <= -6.2e+70) tmp = t_1; elseif (j <= -5.9e-31) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.76e-97) tmp = Float64(b * Float64(z * Float64(-c))); elseif (j <= 2.15e+26) 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 = j * (t * c); tmp = 0.0; if (j <= -6.2e+70) tmp = t_1; elseif (j <= -5.9e-31) tmp = x * (y * z); elseif (j <= 1.76e-97) tmp = b * (z * -c); elseif (j <= 2.15e+26) 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[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.2e+70], t$95$1, If[LessEqual[j, -5.9e-31], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.76e-97], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.15e+26], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c\right)\\
\mathbf{if}\;j \leq -6.2 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -5.9 \cdot 10^{-31}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.76 \cdot 10^{-97}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 2.15 \cdot 10^{+26}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -6.2000000000000006e70 or 2.1499999999999999e26 < j Initial program 76.7%
+-commutative76.7%
fma-define78.7%
*-commutative78.7%
*-commutative78.7%
cancel-sign-sub-inv78.7%
cancel-sign-sub78.7%
sub-neg78.7%
sub-neg78.7%
*-commutative78.7%
fma-neg78.7%
*-commutative78.7%
distribute-rgt-neg-out78.7%
remove-double-neg78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in y around -inf 61.2%
Simplified60.2%
Taylor expanded in j around inf 57.2%
Taylor expanded in c around inf 37.9%
associate-*r*43.3%
*-commutative43.3%
associate-*l*39.7%
Simplified39.7%
if -6.2000000000000006e70 < j < -5.90000000000000032e-31Initial program 84.9%
+-commutative84.9%
fma-define84.9%
*-commutative84.9%
*-commutative84.9%
cancel-sign-sub-inv84.9%
cancel-sign-sub84.9%
sub-neg84.9%
sub-neg84.9%
*-commutative84.9%
fma-neg84.9%
*-commutative84.9%
distribute-rgt-neg-out84.9%
remove-double-neg84.9%
*-commutative84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in y around -inf 70.8%
Simplified75.5%
Taylor expanded in j around inf 56.4%
Taylor expanded in j around 0 46.1%
if -5.90000000000000032e-31 < j < 1.75999999999999997e-97Initial program 77.1%
+-commutative77.1%
fma-define77.1%
*-commutative77.1%
*-commutative77.1%
cancel-sign-sub-inv77.1%
cancel-sign-sub77.1%
sub-neg77.1%
sub-neg77.1%
*-commutative77.1%
fma-neg78.1%
*-commutative78.1%
distribute-rgt-neg-out78.1%
remove-double-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in y around -inf 79.6%
Simplified80.4%
Taylor expanded in z around inf 45.1%
associate-*r*45.1%
neg-mul-145.1%
associate-/l*45.1%
Simplified45.1%
Taylor expanded in y around 0 39.0%
mul-1-neg39.0%
*-commutative39.0%
Simplified39.0%
if 1.75999999999999997e-97 < j < 2.1499999999999999e26Initial program 85.9%
+-commutative85.9%
fma-define85.9%
*-commutative85.9%
*-commutative85.9%
cancel-sign-sub-inv85.9%
cancel-sign-sub85.9%
sub-neg85.9%
sub-neg85.9%
*-commutative85.9%
fma-neg85.9%
*-commutative85.9%
distribute-rgt-neg-out85.9%
remove-double-neg85.9%
*-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in y around -inf 76.7%
Simplified85.6%
Taylor expanded in j around inf 58.8%
Taylor expanded in j around 0 35.7%
associate-*r*35.6%
*-commutative35.6%
associate-*r*41.1%
Simplified41.1%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* j (* t c))))
(if (<= c -2.65e+39)
t_2
(if (<= c -3.5e-285)
t_1
(if (<= c 7.5e-138) (* a (* b i)) (if (<= c 2.6e-8) 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 = y * (x * z);
double t_2 = j * (t * c);
double tmp;
if (c <= -2.65e+39) {
tmp = t_2;
} else if (c <= -3.5e-285) {
tmp = t_1;
} else if (c <= 7.5e-138) {
tmp = a * (b * i);
} else if (c <= 2.6e-8) {
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 = y * (x * z)
t_2 = j * (t * c)
if (c <= (-2.65d+39)) then
tmp = t_2
else if (c <= (-3.5d-285)) then
tmp = t_1
else if (c <= 7.5d-138) then
tmp = a * (b * i)
else if (c <= 2.6d-8) 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 = y * (x * z);
double t_2 = j * (t * c);
double tmp;
if (c <= -2.65e+39) {
tmp = t_2;
} else if (c <= -3.5e-285) {
tmp = t_1;
} else if (c <= 7.5e-138) {
tmp = a * (b * i);
} else if (c <= 2.6e-8) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = j * (t * c) tmp = 0 if c <= -2.65e+39: tmp = t_2 elif c <= -3.5e-285: tmp = t_1 elif c <= 7.5e-138: tmp = a * (b * i) elif c <= 2.6e-8: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(j * Float64(t * c)) tmp = 0.0 if (c <= -2.65e+39) tmp = t_2; elseif (c <= -3.5e-285) tmp = t_1; elseif (c <= 7.5e-138) tmp = Float64(a * Float64(b * i)); elseif (c <= 2.6e-8) 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 = y * (x * z); t_2 = j * (t * c); tmp = 0.0; if (c <= -2.65e+39) tmp = t_2; elseif (c <= -3.5e-285) tmp = t_1; elseif (c <= 7.5e-138) tmp = a * (b * i); elseif (c <= 2.6e-8) 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.65e+39], t$95$2, If[LessEqual[c, -3.5e-285], t$95$1, If[LessEqual[c, 7.5e-138], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.6e-8], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := j \cdot \left(t \cdot c\right)\\
\mathbf{if}\;c \leq -2.65 \cdot 10^{+39}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -3.5 \cdot 10^{-285}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7.5 \cdot 10^{-138}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 2.6 \cdot 10^{-8}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -2.64999999999999989e39 or 2.6000000000000001e-8 < c Initial program 71.4%
+-commutative71.4%
fma-define71.4%
*-commutative71.4%
*-commutative71.4%
cancel-sign-sub-inv71.4%
cancel-sign-sub71.4%
sub-neg71.4%
sub-neg71.4%
*-commutative71.4%
fma-neg72.2%
*-commutative72.2%
distribute-rgt-neg-out72.2%
remove-double-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in y around -inf 70.3%
Simplified69.4%
Taylor expanded in j around inf 46.7%
Taylor expanded in c around inf 36.6%
associate-*r*39.5%
*-commutative39.5%
associate-*l*39.9%
Simplified39.9%
if -2.64999999999999989e39 < c < -3.5000000000000004e-285 or 7.4999999999999995e-138 < c < 2.6000000000000001e-8Initial program 85.2%
+-commutative85.2%
fma-define85.2%
*-commutative85.2%
*-commutative85.2%
cancel-sign-sub-inv85.2%
cancel-sign-sub85.2%
sub-neg85.2%
sub-neg85.2%
*-commutative85.2%
fma-neg85.2%
*-commutative85.2%
distribute-rgt-neg-out85.2%
remove-double-neg85.2%
*-commutative85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in y around -inf 73.9%
Simplified74.9%
Taylor expanded in j around inf 53.0%
Taylor expanded in j around 0 29.7%
associate-*r*34.2%
*-commutative34.2%
associate-*r*32.2%
Simplified32.2%
if -3.5000000000000004e-285 < c < 7.4999999999999995e-138Initial program 85.4%
+-commutative85.4%
fma-define90.2%
*-commutative90.2%
*-commutative90.2%
cancel-sign-sub-inv90.2%
cancel-sign-sub90.2%
sub-neg90.2%
sub-neg90.2%
*-commutative90.2%
fma-neg90.2%
*-commutative90.2%
distribute-rgt-neg-out90.2%
remove-double-neg90.2%
*-commutative90.2%
*-commutative90.2%
Simplified90.2%
Taylor expanded in y around -inf 68.9%
Simplified78.3%
Taylor expanded in a around -inf 57.1%
associate-*r*54.7%
*-commutative54.7%
associate-/l*54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in b around inf 35.6%
Final simplification36.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* j (* t c))))
(if (<= c -1e+44)
t_2
(if (<= c -1.45e-166)
t_1
(if (<= c 7.1e-138) (* a (* b i)) (if (<= c 7e-6) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = j * (t * c);
double tmp;
if (c <= -1e+44) {
tmp = t_2;
} else if (c <= -1.45e-166) {
tmp = t_1;
} else if (c <= 7.1e-138) {
tmp = a * (b * i);
} else if (c <= 7e-6) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * (y * z)
t_2 = j * (t * c)
if (c <= (-1d+44)) then
tmp = t_2
else if (c <= (-1.45d-166)) then
tmp = t_1
else if (c <= 7.1d-138) then
tmp = a * (b * i)
else if (c <= 7d-6) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = j * (t * c);
double tmp;
if (c <= -1e+44) {
tmp = t_2;
} else if (c <= -1.45e-166) {
tmp = t_1;
} else if (c <= 7.1e-138) {
tmp = a * (b * i);
} else if (c <= 7e-6) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = j * (t * c) tmp = 0 if c <= -1e+44: tmp = t_2 elif c <= -1.45e-166: tmp = t_1 elif c <= 7.1e-138: tmp = a * (b * i) elif c <= 7e-6: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(j * Float64(t * c)) tmp = 0.0 if (c <= -1e+44) tmp = t_2; elseif (c <= -1.45e-166) tmp = t_1; elseif (c <= 7.1e-138) tmp = Float64(a * Float64(b * i)); elseif (c <= 7e-6) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = j * (t * c); tmp = 0.0; if (c <= -1e+44) tmp = t_2; elseif (c <= -1.45e-166) tmp = t_1; elseif (c <= 7.1e-138) tmp = a * (b * i); elseif (c <= 7e-6) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1e+44], t$95$2, If[LessEqual[c, -1.45e-166], t$95$1, If[LessEqual[c, 7.1e-138], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7e-6], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := j \cdot \left(t \cdot c\right)\\
\mathbf{if}\;c \leq -1 \cdot 10^{+44}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.45 \cdot 10^{-166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 7.1 \cdot 10^{-138}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-6}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.0000000000000001e44 or 6.99999999999999989e-6 < c Initial program 71.4%
+-commutative71.4%
fma-define71.4%
*-commutative71.4%
*-commutative71.4%
cancel-sign-sub-inv71.4%
cancel-sign-sub71.4%
sub-neg71.4%
sub-neg71.4%
*-commutative71.4%
fma-neg72.2%
*-commutative72.2%
distribute-rgt-neg-out72.2%
remove-double-neg72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in y around -inf 70.3%
Simplified69.4%
Taylor expanded in j around inf 46.7%
Taylor expanded in c around inf 36.6%
associate-*r*39.5%
*-commutative39.5%
associate-*l*39.9%
Simplified39.9%
if -1.0000000000000001e44 < c < -1.45e-166 or 7.09999999999999945e-138 < c < 6.99999999999999989e-6Initial program 81.4%
+-commutative81.4%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
cancel-sign-sub-inv81.4%
cancel-sign-sub81.4%
sub-neg81.4%
sub-neg81.4%
*-commutative81.4%
fma-neg81.4%
*-commutative81.4%
distribute-rgt-neg-out81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around -inf 73.3%
Simplified76.1%
Taylor expanded in j around inf 56.3%
Taylor expanded in j around 0 33.3%
if -1.45e-166 < c < 7.09999999999999945e-138Initial program 89.3%
+-commutative89.3%
fma-define92.4%
*-commutative92.4%
*-commutative92.4%
cancel-sign-sub-inv92.4%
cancel-sign-sub92.4%
sub-neg92.4%
sub-neg92.4%
*-commutative92.4%
fma-neg92.4%
*-commutative92.4%
distribute-rgt-neg-out92.4%
remove-double-neg92.4%
*-commutative92.4%
*-commutative92.4%
Simplified92.4%
Taylor expanded in y around -inf 71.4%
Simplified75.8%
Taylor expanded in a around -inf 47.6%
associate-*r*46.0%
*-commutative46.0%
associate-/l*45.9%
*-commutative45.9%
Simplified45.9%
Taylor expanded in b around inf 30.9%
Final simplification35.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -4.3e-33)
t_1
(if (<= j 2.4e-97)
(* b (- (* a i) (* z c)))
(if (<= j 2.3e+25) (* 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -4.3e-33) {
tmp = t_1;
} else if (j <= 2.4e-97) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 2.3e+25) {
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 = j * ((t * c) - (y * i))
if (j <= (-4.3d-33)) then
tmp = t_1
else if (j <= 2.4d-97) then
tmp = b * ((a * i) - (z * c))
else if (j <= 2.3d+25) 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -4.3e-33) {
tmp = t_1;
} else if (j <= 2.4e-97) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 2.3e+25) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if j <= -4.3e-33: tmp = t_1 elif j <= 2.4e-97: tmp = b * ((a * i) - (z * c)) elif j <= 2.3e+25: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -4.3e-33) tmp = t_1; elseif (j <= 2.4e-97) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 2.3e+25) 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 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -4.3e-33) tmp = t_1; elseif (j <= 2.4e-97) tmp = b * ((a * i) - (z * c)); elseif (j <= 2.3e+25) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e-33], t$95$1, If[LessEqual[j, 2.4e-97], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.3e+25], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -4.3 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.4 \cdot 10^{-97}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 2.3 \cdot 10^{+25}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -4.30000000000000031e-33 or 2.2999999999999998e25 < j Initial program 78.2%
+-commutative78.2%
fma-define79.9%
*-commutative79.9%
*-commutative79.9%
cancel-sign-sub-inv79.9%
cancel-sign-sub79.9%
sub-neg79.9%
sub-neg79.9%
*-commutative79.9%
fma-neg79.9%
*-commutative79.9%
distribute-rgt-neg-out79.9%
remove-double-neg79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in j around inf 59.5%
*-commutative59.5%
*-commutative59.5%
Simplified59.5%
if -4.30000000000000031e-33 < j < 2.4e-97Initial program 76.9%
+-commutative76.9%
fma-define76.9%
*-commutative76.9%
*-commutative76.9%
cancel-sign-sub-inv76.9%
cancel-sign-sub76.9%
sub-neg76.9%
sub-neg76.9%
*-commutative76.9%
fma-neg77.9%
*-commutative77.9%
distribute-rgt-neg-out77.9%
remove-double-neg77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in b around inf 55.6%
*-commutative55.6%
Simplified55.6%
if 2.4e-97 < j < 2.2999999999999998e25Initial program 85.9%
+-commutative85.9%
fma-define85.9%
*-commutative85.9%
*-commutative85.9%
cancel-sign-sub-inv85.9%
cancel-sign-sub85.9%
sub-neg85.9%
sub-neg85.9%
*-commutative85.9%
fma-neg85.9%
*-commutative85.9%
distribute-rgt-neg-out85.9%
remove-double-neg85.9%
*-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in y around -inf 76.7%
Simplified85.6%
Taylor expanded in j around inf 58.8%
Taylor expanded in j around 0 35.7%
associate-*r*35.6%
*-commutative35.6%
associate-*r*41.1%
Simplified41.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -9.1e+33) (not (<= a 2.05e+45))) (* a (* b i)) (* j (* t c))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -9.1e+33) || !(a <= 2.05e+45)) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
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 <= (-9.1d+33)) .or. (.not. (a <= 2.05d+45))) then
tmp = a * (b * i)
else
tmp = j * (t * c)
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 <= -9.1e+33) || !(a <= 2.05e+45)) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -9.1e+33) or not (a <= 2.05e+45): tmp = a * (b * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -9.1e+33) || !(a <= 2.05e+45)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -9.1e+33) || ~((a <= 2.05e+45))) tmp = a * (b * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -9.1e+33], N[Not[LessEqual[a, 2.05e+45]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.1 \cdot 10^{+33} \lor \neg \left(a \leq 2.05 \cdot 10^{+45}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if a < -9.0999999999999997e33 or 2.05000000000000006e45 < a Initial program 74.5%
+-commutative74.5%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
cancel-sign-sub-inv76.5%
cancel-sign-sub76.5%
sub-neg76.5%
sub-neg76.5%
*-commutative76.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around -inf 67.3%
Simplified67.2%
Taylor expanded in a around -inf 59.1%
associate-*r*60.9%
*-commutative60.9%
associate-/l*58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in b around inf 35.8%
if -9.0999999999999997e33 < a < 2.05000000000000006e45Initial program 81.4%
+-commutative81.4%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
cancel-sign-sub-inv81.4%
cancel-sign-sub81.4%
sub-neg81.4%
sub-neg81.4%
*-commutative81.4%
fma-neg81.4%
*-commutative81.4%
distribute-rgt-neg-out81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around -inf 74.1%
Simplified76.6%
Taylor expanded in j around inf 57.8%
Taylor expanded in c around inf 26.4%
associate-*r*28.9%
*-commutative28.9%
associate-*l*29.0%
Simplified29.0%
Final simplification31.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -2.46e+33) (not (<= a 1.8e+43))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.46e+33) || !(a <= 1.8e+43)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-2.46d+33)) .or. (.not. (a <= 1.8d+43))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -2.46e+33) || !(a <= 1.8e+43)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -2.46e+33) or not (a <= 1.8e+43): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -2.46e+33) || !(a <= 1.8e+43)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -2.46e+33) || ~((a <= 1.8e+43))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -2.46e+33], N[Not[LessEqual[a, 1.8e+43]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.46 \cdot 10^{+33} \lor \neg \left(a \leq 1.8 \cdot 10^{+43}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if a < -2.46000000000000003e33 or 1.80000000000000005e43 < a Initial program 74.5%
+-commutative74.5%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
cancel-sign-sub-inv76.5%
cancel-sign-sub76.5%
sub-neg76.5%
sub-neg76.5%
*-commutative76.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in y around -inf 67.3%
Simplified67.2%
Taylor expanded in a around -inf 59.1%
associate-*r*60.9%
*-commutative60.9%
associate-/l*58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in b around inf 35.8%
if -2.46000000000000003e33 < a < 1.80000000000000005e43Initial program 81.4%
+-commutative81.4%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
cancel-sign-sub-inv81.4%
cancel-sign-sub81.4%
sub-neg81.4%
sub-neg81.4%
*-commutative81.4%
fma-neg81.4%
*-commutative81.4%
distribute-rgt-neg-out81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around -inf 74.1%
Simplified76.6%
Taylor expanded in j around inf 57.8%
Taylor expanded in c around inf 26.4%
Final simplification30.2%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 78.7%
+-commutative78.7%
fma-define79.5%
*-commutative79.5%
*-commutative79.5%
cancel-sign-sub-inv79.5%
cancel-sign-sub79.5%
sub-neg79.5%
sub-neg79.5%
*-commutative79.5%
fma-neg79.9%
*-commutative79.9%
distribute-rgt-neg-out79.9%
remove-double-neg79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in y around -inf 71.4%
Simplified72.9%
Taylor expanded in a around -inf 33.0%
associate-*r*32.0%
*-commutative32.0%
associate-/l*31.1%
*-commutative31.1%
Simplified31.1%
Taylor expanded in b around inf 17.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024111
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))