
(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 30 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 (* b (- (* a i) (* z c)))) (t_2 (- (* t c) (* y i))))
(if (<= (- (* j t_2) (- (* x (- (* t a) (* y z))) t_1)) INFINITY)
(fma j t_2 (+ (* x (fma y z (* t (- a)))) t_1))
(* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (t * c) - (y * i);
double tmp;
if (((j * t_2) - ((x * ((t * a) - (y * z))) - t_1)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, ((x * fma(y, z, (t * -a))) + t_1));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_2) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - t_1)) <= Inf) tmp = fma(j, t_2, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1)); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$2), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t\_2 - \left(x \cdot \left(t \cdot a - y \cdot z\right) - t\_1\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.3%
+-commutative90.3%
fma-define90.3%
*-commutative90.3%
*-commutative90.3%
cancel-sign-sub-inv90.3%
cancel-sign-sub90.3%
sub-neg90.3%
sub-neg90.3%
*-commutative90.3%
fma-neg90.3%
*-commutative90.3%
distribute-rgt-neg-out90.3%
remove-double-neg90.3%
*-commutative90.3%
*-commutative90.3%
Simplified90.3%
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.3%
*-commutative4.3%
*-commutative4.3%
cancel-sign-sub-inv4.3%
cancel-sign-sub4.3%
sub-neg4.3%
sub-neg4.3%
*-commutative4.3%
fma-neg6.5%
*-commutative6.5%
distribute-rgt-neg-out6.5%
remove-double-neg6.5%
*-commutative6.5%
*-commutative6.5%
Simplified6.5%
Taylor expanded in y around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
Simplified53.6%
Final simplification83.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* t c) (* y i)))
(- (* x (- (* t a) (* y z))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
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))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((a * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) - \left(x \cdot \left(t \cdot a - y \cdot z\right) - b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.3%
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.3%
*-commutative4.3%
*-commutative4.3%
cancel-sign-sub-inv4.3%
cancel-sign-sub4.3%
sub-neg4.3%
sub-neg4.3%
*-commutative4.3%
fma-neg6.5%
*-commutative6.5%
distribute-rgt-neg-out6.5%
remove-double-neg6.5%
*-commutative6.5%
*-commutative6.5%
Simplified6.5%
Taylor expanded in y around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
Simplified53.6%
Final simplification83.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* a (* b i))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= z -1.75e+142)
t_2
(if (<= z -1.35e-16)
(* (* x y) (- z (* a (/ t y))))
(if (<= z 1.85e-145)
t_1
(if (<= z 5.4e-70)
(* t (- (* c j) (* x a)))
(if (<= z 2.6e-26)
t_1
(if (<= z 1e+30)
(* y (- (* x z) (* i j)))
(if (<= z 7.5e+50)
(* (* b c) (- (* t (/ j b)) z))
(if (<= z 2.9e+57)
(* (* x y) (- z (/ (* t a) y)))
(if (<= z 1.48e+94) t_1 t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.75e+142) {
tmp = t_2;
} else if (z <= -1.35e-16) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 1.85e-145) {
tmp = t_1;
} else if (z <= 5.4e-70) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 2.6e-26) {
tmp = t_1;
} else if (z <= 1e+30) {
tmp = y * ((x * z) - (i * j));
} else if (z <= 7.5e+50) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (z <= 2.9e+57) {
tmp = (x * y) * (z - ((t * a) / y));
} else if (z <= 1.48e+94) {
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 = (j * ((t * c) - (y * i))) + (a * (b * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-1.75d+142)) then
tmp = t_2
else if (z <= (-1.35d-16)) then
tmp = (x * y) * (z - (a * (t / y)))
else if (z <= 1.85d-145) then
tmp = t_1
else if (z <= 5.4d-70) then
tmp = t * ((c * j) - (x * a))
else if (z <= 2.6d-26) then
tmp = t_1
else if (z <= 1d+30) then
tmp = y * ((x * z) - (i * j))
else if (z <= 7.5d+50) then
tmp = (b * c) * ((t * (j / b)) - z)
else if (z <= 2.9d+57) then
tmp = (x * y) * (z - ((t * a) / y))
else if (z <= 1.48d+94) 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 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.75e+142) {
tmp = t_2;
} else if (z <= -1.35e-16) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 1.85e-145) {
tmp = t_1;
} else if (z <= 5.4e-70) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 2.6e-26) {
tmp = t_1;
} else if (z <= 1e+30) {
tmp = y * ((x * z) - (i * j));
} else if (z <= 7.5e+50) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (z <= 2.9e+57) {
tmp = (x * y) * (z - ((t * a) / y));
} else if (z <= 1.48e+94) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (a * (b * i)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.75e+142: tmp = t_2 elif z <= -1.35e-16: tmp = (x * y) * (z - (a * (t / y))) elif z <= 1.85e-145: tmp = t_1 elif z <= 5.4e-70: tmp = t * ((c * j) - (x * a)) elif z <= 2.6e-26: tmp = t_1 elif z <= 1e+30: tmp = y * ((x * z) - (i * j)) elif z <= 7.5e+50: tmp = (b * c) * ((t * (j / b)) - z) elif z <= 2.9e+57: tmp = (x * y) * (z - ((t * a) / y)) elif z <= 1.48e+94: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.75e+142) tmp = t_2; elseif (z <= -1.35e-16) tmp = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))); elseif (z <= 1.85e-145) tmp = t_1; elseif (z <= 5.4e-70) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 2.6e-26) tmp = t_1; elseif (z <= 1e+30) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= 7.5e+50) tmp = Float64(Float64(b * c) * Float64(Float64(t * Float64(j / b)) - z)); elseif (z <= 2.9e+57) tmp = Float64(Float64(x * y) * Float64(z - Float64(Float64(t * a) / y))); elseif (z <= 1.48e+94) 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 = (j * ((t * c) - (y * i))) + (a * (b * i)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.75e+142) tmp = t_2; elseif (z <= -1.35e-16) tmp = (x * y) * (z - (a * (t / y))); elseif (z <= 1.85e-145) tmp = t_1; elseif (z <= 5.4e-70) tmp = t * ((c * j) - (x * a)); elseif (z <= 2.6e-26) tmp = t_1; elseif (z <= 1e+30) tmp = y * ((x * z) - (i * j)); elseif (z <= 7.5e+50) tmp = (b * c) * ((t * (j / b)) - z); elseif (z <= 2.9e+57) tmp = (x * y) * (z - ((t * a) / y)); elseif (z <= 1.48e+94) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.75e+142], t$95$2, If[LessEqual[z, -1.35e-16], N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e-145], t$95$1, If[LessEqual[z, 5.4e-70], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e-26], t$95$1, If[LessEqual[z, 1e+30], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.5e+50], N[(N[(b * c), $MachinePrecision] * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+57], N[(N[(x * y), $MachinePrecision] * N[(z - N[(N[(t * a), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.48e+94], t$95$1, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.75 \cdot 10^{+142}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-16}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-70}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{-26}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 10^{+30}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq 7.5 \cdot 10^{+50}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(t \cdot \frac{j}{b} - z\right)\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+57}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - \frac{t \cdot a}{y}\right)\\
\mathbf{elif}\;z \leq 1.48 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.74999999999999999e142 or 1.47999999999999995e94 < z Initial program 60.4%
+-commutative60.4%
fma-define60.4%
*-commutative60.4%
*-commutative60.4%
cancel-sign-sub-inv60.4%
cancel-sign-sub60.4%
sub-neg60.4%
sub-neg60.4%
*-commutative60.4%
fma-neg61.9%
*-commutative61.9%
distribute-rgt-neg-out61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 62.0%
associate-*r*59.2%
associate-*r*59.2%
*-commutative59.2%
associate-*r*56.6%
distribute-rgt-in56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around inf 78.7%
*-commutative78.7%
Simplified78.7%
if -1.74999999999999999e142 < z < -1.35e-16Initial program 77.4%
+-commutative77.4%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
sub-neg77.4%
sub-neg77.4%
*-commutative77.4%
fma-neg77.4%
*-commutative77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in y around -inf 69.4%
Simplified72.1%
Taylor expanded in x around inf 62.6%
associate-*r*62.5%
*-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
associate-/l*67.3%
Simplified67.3%
if -1.35e-16 < z < 1.85000000000000006e-145 or 5.4000000000000003e-70 < z < 2.6000000000000001e-26 or 2.9000000000000002e57 < z < 1.47999999999999995e94Initial program 79.9%
Taylor expanded in i around inf 65.9%
if 1.85000000000000006e-145 < z < 5.4000000000000003e-70Initial program 71.7%
+-commutative71.7%
fma-define71.7%
*-commutative71.7%
*-commutative71.7%
cancel-sign-sub-inv71.7%
cancel-sign-sub71.7%
sub-neg71.7%
sub-neg71.7%
*-commutative71.7%
fma-neg71.7%
*-commutative71.7%
distribute-rgt-neg-out71.7%
remove-double-neg71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in t around inf 65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
*-commutative65.1%
Simplified65.1%
if 2.6000000000000001e-26 < z < 1e30Initial program 79.8%
+-commutative79.8%
fma-define79.8%
*-commutative79.8%
*-commutative79.8%
cancel-sign-sub-inv79.8%
cancel-sign-sub79.8%
sub-neg79.8%
sub-neg79.8%
*-commutative79.8%
fma-neg79.8%
*-commutative79.8%
distribute-rgt-neg-out79.8%
remove-double-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y around inf 61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
*-commutative61.4%
Simplified61.4%
if 1e30 < z < 7.4999999999999999e50Initial program 98.4%
+-commutative98.4%
fma-define98.4%
*-commutative98.4%
*-commutative98.4%
cancel-sign-sub-inv98.4%
cancel-sign-sub98.4%
sub-neg98.4%
sub-neg98.4%
*-commutative98.4%
fma-neg98.4%
*-commutative98.4%
distribute-rgt-neg-out98.4%
remove-double-neg98.4%
*-commutative98.4%
*-commutative98.4%
Simplified98.4%
Taylor expanded in c around inf 37.3%
Taylor expanded in b around inf 36.8%
mul-1-neg36.8%
+-commutative36.8%
unsub-neg36.8%
associate-/l*36.8%
associate-/l*68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in b around inf 36.8%
neg-mul-136.8%
+-commutative36.8%
associate-/l*36.8%
associate-*r/68.3%
distribute-rgt-neg-in68.3%
neg-mul-168.3%
distribute-lft-in68.3%
associate-*r/36.8%
neg-mul-136.8%
sub-neg36.8%
associate-*r*37.3%
*-commutative37.3%
associate-/l*68.8%
Simplified68.8%
if 7.4999999999999999e50 < z < 2.9000000000000002e57Initial program 100.0%
+-commutative100.0%
fma-define100.0%
*-commutative100.0%
*-commutative100.0%
cancel-sign-sub-inv100.0%
cancel-sign-sub100.0%
sub-neg100.0%
sub-neg100.0%
*-commutative100.0%
fma-neg100.0%
*-commutative100.0%
distribute-rgt-neg-out100.0%
remove-double-neg100.0%
*-commutative100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around -inf 4.1%
Simplified4.1%
Taylor expanded in x around inf 100.0%
associate-*r*100.0%
*-commutative100.0%
associate-*r/100.0%
associate-*r*100.0%
mul-1-neg100.0%
Simplified100.0%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* c (* z b))))
(t_2 (* y (- (* x z) (+ (* i j) (/ (* a (* x t)) y))))))
(if (<= z -6e+140)
(* z (- (* x y) (* b c)))
(if (<= z -4.1e+54)
(* (* x y) (- z (* a (/ t y))))
(if (<= z -1.35e-83)
t_1
(if (<= z -2.8e-109)
(+ (* b (* a i)) (* t (* c j)))
(if (<= z -3.5e-184)
t_2
(if (<= z 2.5e-137)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (<= z 1.02e-15)
t_2
(if (<= z 4.6e+167)
t_1
(* (* y z) (- x (* b (/ c y))))))))))))))
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))) - (c * (z * b));
double t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
double tmp;
if (z <= -6e+140) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -4.1e+54) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= -1.35e-83) {
tmp = t_1;
} else if (z <= -2.8e-109) {
tmp = (b * (a * i)) + (t * (c * j));
} else if (z <= -3.5e-184) {
tmp = t_2;
} else if (z <= 2.5e-137) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (z <= 1.02e-15) {
tmp = t_2;
} else if (z <= 4.6e+167) {
tmp = t_1;
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (c * (z * b))
t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)))
if (z <= (-6d+140)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-4.1d+54)) then
tmp = (x * y) * (z - (a * (t / y)))
else if (z <= (-1.35d-83)) then
tmp = t_1
else if (z <= (-2.8d-109)) then
tmp = (b * (a * i)) + (t * (c * j))
else if (z <= (-3.5d-184)) then
tmp = t_2
else if (z <= 2.5d-137) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if (z <= 1.02d-15) then
tmp = t_2
else if (z <= 4.6d+167) then
tmp = t_1
else
tmp = (y * z) * (x - (b * (c / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * ((x * z) - (i * j))) - (c * (z * b));
double t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
double tmp;
if (z <= -6e+140) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -4.1e+54) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= -1.35e-83) {
tmp = t_1;
} else if (z <= -2.8e-109) {
tmp = (b * (a * i)) + (t * (c * j));
} else if (z <= -3.5e-184) {
tmp = t_2;
} else if (z <= 2.5e-137) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (z <= 1.02e-15) {
tmp = t_2;
} else if (z <= 4.6e+167) {
tmp = t_1;
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (c * (z * b)) t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))) tmp = 0 if z <= -6e+140: tmp = z * ((x * y) - (b * c)) elif z <= -4.1e+54: tmp = (x * y) * (z - (a * (t / y))) elif z <= -1.35e-83: tmp = t_1 elif z <= -2.8e-109: tmp = (b * (a * i)) + (t * (c * j)) elif z <= -3.5e-184: tmp = t_2 elif z <= 2.5e-137: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif z <= 1.02e-15: tmp = t_2 elif z <= 4.6e+167: tmp = t_1 else: tmp = (y * z) * (x - (b * (c / y))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(Float64(i * j) + Float64(Float64(a * Float64(x * t)) / y)))) tmp = 0.0 if (z <= -6e+140) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -4.1e+54) tmp = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))); elseif (z <= -1.35e-83) tmp = t_1; elseif (z <= -2.8e-109) tmp = Float64(Float64(b * Float64(a * i)) + Float64(t * Float64(c * j))); elseif (z <= -3.5e-184) tmp = t_2; elseif (z <= 2.5e-137) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif (z <= 1.02e-15) tmp = t_2; elseif (z <= 4.6e+167) tmp = t_1; else tmp = Float64(Float64(y * z) * Float64(x - Float64(b * Float64(c / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (c * (z * b)); t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))); tmp = 0.0; if (z <= -6e+140) tmp = z * ((x * y) - (b * c)); elseif (z <= -4.1e+54) tmp = (x * y) * (z - (a * (t / y))); elseif (z <= -1.35e-83) tmp = t_1; elseif (z <= -2.8e-109) tmp = (b * (a * i)) + (t * (c * j)); elseif (z <= -3.5e-184) tmp = t_2; elseif (z <= 2.5e-137) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif (z <= 1.02e-15) tmp = t_2; elseif (z <= 4.6e+167) tmp = t_1; else tmp = (y * z) * (x - (b * (c / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(N[(i * j), $MachinePrecision] + N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6e+140], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.1e+54], N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e-83], t$95$1, If[LessEqual[z, -2.8e-109], N[(N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.5e-184], t$95$2, If[LessEqual[z, 2.5e-137], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.02e-15], t$95$2, If[LessEqual[z, 4.6e+167], t$95$1, N[(N[(y * z), $MachinePrecision] * N[(x - N[(b * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - \left(i \cdot j + \frac{a \cdot \left(x \cdot t\right)}{y}\right)\right)\\
\mathbf{if}\;z \leq -6 \cdot 10^{+140}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{+54}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-109}:\\
\;\;\;\;b \cdot \left(a \cdot i\right) + t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-184}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-137}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - b \cdot \frac{c}{y}\right)\\
\end{array}
\end{array}
if z < -5.99999999999999993e140Initial program 61.3%
+-commutative61.3%
fma-define61.3%
*-commutative61.3%
*-commutative61.3%
cancel-sign-sub-inv61.3%
cancel-sign-sub61.3%
sub-neg61.3%
sub-neg61.3%
*-commutative61.3%
fma-neg64.9%
*-commutative64.9%
distribute-rgt-neg-out64.9%
remove-double-neg64.9%
*-commutative64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in t around 0 65.0%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*54.6%
distribute-rgt-in54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around inf 78.4%
*-commutative78.4%
Simplified78.4%
if -5.99999999999999993e140 < z < -4.09999999999999967e54Initial program 74.1%
+-commutative74.1%
fma-define74.1%
*-commutative74.1%
*-commutative74.1%
cancel-sign-sub-inv74.1%
cancel-sign-sub74.1%
sub-neg74.1%
sub-neg74.1%
*-commutative74.1%
fma-neg74.1%
*-commutative74.1%
distribute-rgt-neg-out74.1%
remove-double-neg74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in y around -inf 56.6%
Simplified65.2%
Taylor expanded in x around inf 74.9%
associate-*r*74.8%
*-commutative74.8%
mul-1-neg74.8%
unsub-neg74.8%
associate-/l*78.8%
Simplified78.8%
if -4.09999999999999967e54 < z < -1.34999999999999996e-83 or 1.02e-15 < z < 4.59999999999999976e167Initial program 75.0%
+-commutative75.0%
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 t around 0 63.4%
associate-*r*63.4%
associate-*r*63.4%
*-commutative63.4%
associate-*r*63.4%
distribute-rgt-in66.2%
+-commutative66.2%
mul-1-neg66.2%
unsub-neg66.2%
*-commutative66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in c around inf 65.6%
*-commutative65.6%
associate-*l*66.8%
*-commutative66.8%
Simplified66.8%
if -1.34999999999999996e-83 < z < -2.79999999999999979e-109Initial program 67.9%
Taylor expanded in i around inf 67.9%
*-commutative67.9%
associate-*r*67.9%
Simplified67.9%
Taylor expanded in c around inf 67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r*99.7%
Simplified99.7%
if -2.79999999999999979e-109 < z < -3.49999999999999981e-184 or 2.5e-137 < z < 1.02e-15Initial program 73.8%
+-commutative73.8%
fma-define73.8%
*-commutative73.8%
*-commutative73.8%
cancel-sign-sub-inv73.8%
cancel-sign-sub73.8%
sub-neg73.8%
sub-neg73.8%
*-commutative73.8%
fma-neg73.8%
*-commutative73.8%
distribute-rgt-neg-out73.8%
remove-double-neg73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in y around -inf 71.2%
Simplified73.6%
Taylor expanded in x around inf 69.5%
associate-*r/69.5%
associate-*r*69.5%
mul-1-neg69.5%
Simplified69.5%
if -3.49999999999999981e-184 < z < 2.5e-137Initial program 82.9%
Taylor expanded in i around inf 73.9%
if 4.59999999999999976e167 < z Initial program 66.6%
+-commutative66.6%
fma-define66.6%
*-commutative66.6%
*-commutative66.6%
cancel-sign-sub-inv66.6%
cancel-sign-sub66.6%
sub-neg66.6%
sub-neg66.6%
*-commutative66.6%
fma-neg66.6%
*-commutative66.6%
distribute-rgt-neg-out66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around -inf 63.7%
Simplified60.0%
Taylor expanded in z around inf 74.8%
associate-*r*78.2%
*-commutative78.2%
associate-/l*85.6%
Simplified85.6%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= t -1.3e+163)
(* t (- (* c j) (* x a)))
(if (<= t -1.12e+108)
(* b (+ (* a i) (/ t_2 b)))
(if (<= t -2.7)
(- t_2 (* x (* t a)))
(if (<= t -2e-59)
t_1
(if (<= t 2.4e-41)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= t 2.25e-17)
t_1
(if (<= t 3.2e+29)
(* z (- (* x y) (* b c)))
(- t_2 (* a (* x t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (t <= -1.3e+163) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -1.12e+108) {
tmp = b * ((a * i) + (t_2 / b));
} else if (t <= -2.7) {
tmp = t_2 - (x * (t * a));
} else if (t <= -2e-59) {
tmp = t_1;
} else if (t <= 2.4e-41) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (t <= 2.25e-17) {
tmp = t_1;
} else if (t <= 3.2e+29) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_2 - (a * (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = j * ((t * c) - (y * i))
if (t <= (-1.3d+163)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-1.12d+108)) then
tmp = b * ((a * i) + (t_2 / b))
else if (t <= (-2.7d0)) then
tmp = t_2 - (x * (t * a))
else if (t <= (-2d-59)) then
tmp = t_1
else if (t <= 2.4d-41) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (t <= 2.25d-17) then
tmp = t_1
else if (t <= 3.2d+29) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_2 - (a * (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (t <= -1.3e+163) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -1.12e+108) {
tmp = b * ((a * i) + (t_2 / b));
} else if (t <= -2.7) {
tmp = t_2 - (x * (t * a));
} else if (t <= -2e-59) {
tmp = t_1;
} else if (t <= 2.4e-41) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (t <= 2.25e-17) {
tmp = t_1;
} else if (t <= 3.2e+29) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_2 - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if t <= -1.3e+163: tmp = t * ((c * j) - (x * a)) elif t <= -1.12e+108: tmp = b * ((a * i) + (t_2 / b)) elif t <= -2.7: tmp = t_2 - (x * (t * a)) elif t <= -2e-59: tmp = t_1 elif t <= 2.4e-41: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif t <= 2.25e-17: tmp = t_1 elif t <= 3.2e+29: tmp = z * ((x * y) - (b * c)) else: tmp = t_2 - (a * (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (t <= -1.3e+163) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -1.12e+108) tmp = Float64(b * Float64(Float64(a * i) + Float64(t_2 / b))); elseif (t <= -2.7) tmp = Float64(t_2 - Float64(x * Float64(t * a))); elseif (t <= -2e-59) tmp = t_1; elseif (t <= 2.4e-41) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (t <= 2.25e-17) tmp = t_1; elseif (t <= 3.2e+29) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(t_2 - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (t <= -1.3e+163) tmp = t * ((c * j) - (x * a)); elseif (t <= -1.12e+108) tmp = b * ((a * i) + (t_2 / b)); elseif (t <= -2.7) tmp = t_2 - (x * (t * a)); elseif (t <= -2e-59) tmp = t_1; elseif (t <= 2.4e-41) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (t <= 2.25e-17) tmp = t_1; elseif (t <= 3.2e+29) tmp = z * ((x * y) - (b * c)); else tmp = t_2 - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+163], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.12e+108], N[(b * N[(N[(a * i), $MachinePrecision] + N[(t$95$2 / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.7], N[(t$95$2 - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2e-59], t$95$1, If[LessEqual[t, 2.4e-41], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.25e-17], t$95$1, If[LessEqual[t, 3.2e+29], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+163}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -1.12 \cdot 10^{+108}:\\
\;\;\;\;b \cdot \left(a \cdot i + \frac{t\_2}{b}\right)\\
\mathbf{elif}\;t \leq -2.7:\\
\;\;\;\;t\_2 - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-41}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t \leq 2.25 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 3.2 \cdot 10^{+29}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < -1.3000000000000001e163Initial program 70.3%
+-commutative70.3%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around inf 76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
Simplified76.9%
if -1.3000000000000001e163 < t < -1.11999999999999994e108Initial program 56.7%
Taylor expanded in i around inf 85.3%
*-commutative85.3%
associate-*r*85.3%
Simplified85.3%
Taylor expanded in b around inf 85.3%
if -1.11999999999999994e108 < t < -2.7000000000000002Initial program 67.3%
Taylor expanded in b around -inf 73.8%
associate-*r*73.8%
neg-mul-173.8%
distribute-lft-out--73.8%
associate-/l*66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in t around inf 68.4%
mul-1-neg68.4%
associate-*r*68.5%
distribute-lft-neg-in68.5%
*-commutative68.5%
distribute-rgt-neg-in68.5%
Simplified68.5%
if -2.7000000000000002 < t < -2.0000000000000001e-59 or 2.40000000000000022e-41 < t < 2.24999999999999989e-17Initial program 95.9%
Taylor expanded in a around -inf 81.1%
Taylor expanded in a around inf 70.3%
if -2.0000000000000001e-59 < t < 2.40000000000000022e-41Initial program 76.9%
+-commutative76.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 t around 0 74.7%
associate-*r*73.6%
associate-*r*73.6%
*-commutative73.6%
associate-*r*72.7%
distribute-rgt-in73.7%
+-commutative73.7%
mul-1-neg73.7%
unsub-neg73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in c around inf 70.3%
*-commutative70.3%
associate-*l*72.0%
*-commutative72.0%
Simplified72.0%
if 2.24999999999999989e-17 < t < 3.19999999999999987e29Initial program 70.0%
+-commutative70.0%
fma-define70.0%
*-commutative70.0%
*-commutative70.0%
cancel-sign-sub-inv70.0%
cancel-sign-sub70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
fma-neg70.0%
*-commutative70.0%
distribute-rgt-neg-out70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around 0 60.4%
associate-*r*60.6%
associate-*r*60.6%
*-commutative60.6%
associate-*r*60.6%
distribute-rgt-in60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in z around inf 71.1%
*-commutative71.1%
Simplified71.1%
if 3.19999999999999987e29 < t Initial program 65.8%
Taylor expanded in a around -inf 66.5%
Taylor expanded in b around 0 61.3%
+-commutative61.3%
*-commutative61.3%
*-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= t -3.35e+155)
(* t (- (* c j) (* x a)))
(if (<= t -8.2e+103)
(+ t_1 (* a (* b i)))
(if (<= t -2300.0)
(- t_1 (* x (* t a)))
(if (<= t -2e-59)
t_2
(if (<= t 6.8e-43)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= t 5.2e-17)
t_2
(if (<= t 3.4e+29)
(* z (- (* x y) (* b c)))
(- t_1 (* a (* x t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (t <= -3.35e+155) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -8.2e+103) {
tmp = t_1 + (a * (b * i));
} else if (t <= -2300.0) {
tmp = t_1 - (x * (t * a));
} else if (t <= -2e-59) {
tmp = t_2;
} else if (t <= 6.8e-43) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (t <= 5.2e-17) {
tmp = t_2;
} else if (t <= 3.4e+29) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1 - (a * (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = a * ((b * i) - (x * t))
if (t <= (-3.35d+155)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-8.2d+103)) then
tmp = t_1 + (a * (b * i))
else if (t <= (-2300.0d0)) then
tmp = t_1 - (x * (t * a))
else if (t <= (-2d-59)) then
tmp = t_2
else if (t <= 6.8d-43) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (t <= 5.2d-17) then
tmp = t_2
else if (t <= 3.4d+29) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1 - (a * (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (t <= -3.35e+155) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -8.2e+103) {
tmp = t_1 + (a * (b * i));
} else if (t <= -2300.0) {
tmp = t_1 - (x * (t * a));
} else if (t <= -2e-59) {
tmp = t_2;
} else if (t <= 6.8e-43) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (t <= 5.2e-17) {
tmp = t_2;
} else if (t <= 3.4e+29) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1 - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if t <= -3.35e+155: tmp = t * ((c * j) - (x * a)) elif t <= -8.2e+103: tmp = t_1 + (a * (b * i)) elif t <= -2300.0: tmp = t_1 - (x * (t * a)) elif t <= -2e-59: tmp = t_2 elif t <= 6.8e-43: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif t <= 5.2e-17: tmp = t_2 elif t <= 3.4e+29: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 - (a * (x * t)) 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(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (t <= -3.35e+155) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -8.2e+103) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (t <= -2300.0) tmp = Float64(t_1 - Float64(x * Float64(t * a))); elseif (t <= -2e-59) tmp = t_2; elseif (t <= 6.8e-43) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (t <= 5.2e-17) tmp = t_2; elseif (t <= 3.4e+29) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(t_1 - Float64(a * Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (t <= -3.35e+155) tmp = t * ((c * j) - (x * a)); elseif (t <= -8.2e+103) tmp = t_1 + (a * (b * i)); elseif (t <= -2300.0) tmp = t_1 - (x * (t * a)); elseif (t <= -2e-59) tmp = t_2; elseif (t <= 6.8e-43) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (t <= 5.2e-17) tmp = t_2; elseif (t <= 3.4e+29) tmp = z * ((x * y) - (b * c)); else tmp = t_1 - (a * (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.35e+155], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -8.2e+103], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2300.0], N[(t$95$1 - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2e-59], t$95$2, If[LessEqual[t, 6.8e-43], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.2e-17], t$95$2, If[LessEqual[t, 3.4e+29], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;t \leq -3.35 \cdot 10^{+155}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -8.2 \cdot 10^{+103}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -2300:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-43}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 3.4 \cdot 10^{+29}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < -3.35e155Initial program 70.3%
+-commutative70.3%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around inf 76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
Simplified76.9%
if -3.35e155 < t < -8.2000000000000003e103Initial program 56.7%
Taylor expanded in i around inf 85.3%
if -8.2000000000000003e103 < t < -2300Initial program 67.3%
Taylor expanded in b around -inf 73.8%
associate-*r*73.8%
neg-mul-173.8%
distribute-lft-out--73.8%
associate-/l*66.8%
*-commutative66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in t around inf 68.4%
mul-1-neg68.4%
associate-*r*68.5%
distribute-lft-neg-in68.5%
*-commutative68.5%
distribute-rgt-neg-in68.5%
Simplified68.5%
if -2300 < t < -2.0000000000000001e-59 or 6.8000000000000001e-43 < t < 5.20000000000000006e-17Initial program 95.9%
Taylor expanded in a around -inf 81.1%
Taylor expanded in a around inf 70.3%
if -2.0000000000000001e-59 < t < 6.8000000000000001e-43Initial program 76.9%
+-commutative76.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 t around 0 74.7%
associate-*r*73.6%
associate-*r*73.6%
*-commutative73.6%
associate-*r*72.7%
distribute-rgt-in73.7%
+-commutative73.7%
mul-1-neg73.7%
unsub-neg73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in c around inf 70.3%
*-commutative70.3%
associate-*l*72.0%
*-commutative72.0%
Simplified72.0%
if 5.20000000000000006e-17 < t < 3.39999999999999981e29Initial program 70.0%
+-commutative70.0%
fma-define70.0%
*-commutative70.0%
*-commutative70.0%
cancel-sign-sub-inv70.0%
cancel-sign-sub70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
fma-neg70.0%
*-commutative70.0%
distribute-rgt-neg-out70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around 0 60.4%
associate-*r*60.6%
associate-*r*60.6%
*-commutative60.6%
associate-*r*60.6%
distribute-rgt-in60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in z around inf 71.1%
*-commutative71.1%
Simplified71.1%
if 3.39999999999999981e29 < t Initial program 65.8%
Taylor expanded in a around -inf 66.5%
Taylor expanded in b around 0 61.3%
+-commutative61.3%
*-commutative61.3%
*-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* a (- (* b i) (* x t))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -3.15e+32)
t_3
(if (<= y -9e-243)
t_1
(if (<= y 4.6e-305)
(* c (* j (- t (* b (/ z j)))))
(if (<= y 3.6e-269)
t_2
(if (<= y 4.6e-169)
(* b (* c (- (* t (/ j b)) z)))
(if (<= y 2.65e-129)
t_2
(if (<= y 7e-27)
(* c (* b (- (/ (* t j) b) z)))
(if (<= y 3e+68) t_1 t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = a * ((b * i) - (x * t));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.15e+32) {
tmp = t_3;
} else if (y <= -9e-243) {
tmp = t_1;
} else if (y <= 4.6e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 3.6e-269) {
tmp = t_2;
} else if (y <= 4.6e-169) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 2.65e-129) {
tmp = t_2;
} else if (y <= 7e-27) {
tmp = c * (b * (((t * j) / b) - z));
} else if (y <= 3e+68) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = a * ((b * i) - (x * t))
t_3 = y * ((x * z) - (i * j))
if (y <= (-3.15d+32)) then
tmp = t_3
else if (y <= (-9d-243)) then
tmp = t_1
else if (y <= 4.6d-305) then
tmp = c * (j * (t - (b * (z / j))))
else if (y <= 3.6d-269) then
tmp = t_2
else if (y <= 4.6d-169) then
tmp = b * (c * ((t * (j / b)) - z))
else if (y <= 2.65d-129) then
tmp = t_2
else if (y <= 7d-27) then
tmp = c * (b * (((t * j) / b) - z))
else if (y <= 3d+68) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = a * ((b * i) - (x * t));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.15e+32) {
tmp = t_3;
} else if (y <= -9e-243) {
tmp = t_1;
} else if (y <= 4.6e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 3.6e-269) {
tmp = t_2;
} else if (y <= 4.6e-169) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 2.65e-129) {
tmp = t_2;
} else if (y <= 7e-27) {
tmp = c * (b * (((t * j) / b) - z));
} else if (y <= 3e+68) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = a * ((b * i) - (x * t)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.15e+32: tmp = t_3 elif y <= -9e-243: tmp = t_1 elif y <= 4.6e-305: tmp = c * (j * (t - (b * (z / j)))) elif y <= 3.6e-269: tmp = t_2 elif y <= 4.6e-169: tmp = b * (c * ((t * (j / b)) - z)) elif y <= 2.65e-129: tmp = t_2 elif y <= 7e-27: tmp = c * (b * (((t * j) / b) - z)) elif y <= 3e+68: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.15e+32) tmp = t_3; elseif (y <= -9e-243) tmp = t_1; elseif (y <= 4.6e-305) tmp = Float64(c * Float64(j * Float64(t - Float64(b * Float64(z / j))))); elseif (y <= 3.6e-269) tmp = t_2; elseif (y <= 4.6e-169) tmp = Float64(b * Float64(c * Float64(Float64(t * Float64(j / b)) - z))); elseif (y <= 2.65e-129) tmp = t_2; elseif (y <= 7e-27) tmp = Float64(c * Float64(b * Float64(Float64(Float64(t * j) / b) - z))); elseif (y <= 3e+68) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = a * ((b * i) - (x * t)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.15e+32) tmp = t_3; elseif (y <= -9e-243) tmp = t_1; elseif (y <= 4.6e-305) tmp = c * (j * (t - (b * (z / j)))); elseif (y <= 3.6e-269) tmp = t_2; elseif (y <= 4.6e-169) tmp = b * (c * ((t * (j / b)) - z)); elseif (y <= 2.65e-129) tmp = t_2; elseif (y <= 7e-27) tmp = c * (b * (((t * j) / b) - z)); elseif (y <= 3e+68) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.15e+32], t$95$3, If[LessEqual[y, -9e-243], t$95$1, If[LessEqual[y, 4.6e-305], N[(c * N[(j * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e-269], t$95$2, If[LessEqual[y, 4.6e-169], N[(b * N[(c * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.65e-129], t$95$2, If[LessEqual[y, 7e-27], N[(c * N[(b * N[(N[(N[(t * j), $MachinePrecision] / b), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3e+68], t$95$1, t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.15 \cdot 10^{+32}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -9 \cdot 10^{-243}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(j \cdot \left(t - b \cdot \frac{z}{j}\right)\right)\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-269}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-169}:\\
\;\;\;\;b \cdot \left(c \cdot \left(t \cdot \frac{j}{b} - z\right)\right)\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{-129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \left(b \cdot \left(\frac{t \cdot j}{b} - z\right)\right)\\
\mathbf{elif}\;y \leq 3 \cdot 10^{+68}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -3.1500000000000001e32 or 3.0000000000000002e68 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -3.1500000000000001e32 < y < -9.00000000000000035e-243 or 7.0000000000000003e-27 < y < 3.0000000000000002e68Initial program 85.2%
+-commutative85.2%
fma-define86.9%
*-commutative86.9%
*-commutative86.9%
cancel-sign-sub-inv86.9%
cancel-sign-sub86.9%
sub-neg86.9%
sub-neg86.9%
*-commutative86.9%
fma-neg86.9%
*-commutative86.9%
distribute-rgt-neg-out86.9%
remove-double-neg86.9%
*-commutative86.9%
*-commutative86.9%
Simplified86.9%
Taylor expanded in t around inf 63.7%
+-commutative63.7%
mul-1-neg63.7%
unsub-neg63.7%
*-commutative63.7%
Simplified63.7%
if -9.00000000000000035e-243 < y < 4.5999999999999999e-305Initial program 77.5%
+-commutative77.5%
fma-define77.5%
*-commutative77.5%
*-commutative77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
sub-neg77.5%
sub-neg77.5%
*-commutative77.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around inf 59.9%
Taylor expanded in j around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-/l*64.3%
Simplified64.3%
if 4.5999999999999999e-305 < y < 3.59999999999999998e-269 or 4.6000000000000002e-169 < y < 2.64999999999999987e-129Initial program 90.8%
Taylor expanded in a around -inf 80.9%
Taylor expanded in a around inf 62.9%
if 3.59999999999999998e-269 < y < 4.6000000000000002e-169Initial program 93.1%
+-commutative93.1%
fma-define93.1%
*-commutative93.1%
*-commutative93.1%
cancel-sign-sub-inv93.1%
cancel-sign-sub93.1%
sub-neg93.1%
sub-neg93.1%
*-commutative93.1%
fma-neg93.1%
*-commutative93.1%
distribute-rgt-neg-out93.1%
remove-double-neg93.1%
*-commutative93.1%
*-commutative93.1%
Simplified93.1%
Taylor expanded in c around inf 66.2%
Taylor expanded in b around inf 71.0%
mul-1-neg71.0%
+-commutative71.0%
unsub-neg71.0%
associate-/l*71.0%
associate-/l*71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in c around 0 71.0%
*-commutative71.0%
associate-/l*71.0%
Simplified71.0%
if 2.64999999999999987e-129 < y < 7.0000000000000003e-27Initial program 79.3%
+-commutative79.3%
fma-define79.3%
*-commutative79.3%
*-commutative79.3%
cancel-sign-sub-inv79.3%
cancel-sign-sub79.3%
sub-neg79.3%
sub-neg79.3%
*-commutative79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-out79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in c around inf 48.7%
Taylor expanded in b around inf 48.8%
Final simplification65.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -6.1e+31)
t_2
(if (<= y -1.6e-248)
t_1
(if (<= y 2.95e-280)
(* c (- (* t j) (* z b)))
(if (<= y 7.8e-249)
t_1
(if (<= y 1.26e-166)
(* b (* c (- (* t (/ j b)) z)))
(if (<= y 3.1e-130)
(* a (- (* b i) (* x t)))
(if (<= y 1.5e-27)
(* c (* b (- (/ (* t j) b) z)))
(if (<= y 4e+67) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6.1e+31) {
tmp = t_2;
} else if (y <= -1.6e-248) {
tmp = t_1;
} else if (y <= 2.95e-280) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 7.8e-249) {
tmp = t_1;
} else if (y <= 1.26e-166) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 3.1e-130) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.5e-27) {
tmp = c * (b * (((t * j) / b) - z));
} else if (y <= 4e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-6.1d+31)) then
tmp = t_2
else if (y <= (-1.6d-248)) then
tmp = t_1
else if (y <= 2.95d-280) then
tmp = c * ((t * j) - (z * b))
else if (y <= 7.8d-249) then
tmp = t_1
else if (y <= 1.26d-166) then
tmp = b * (c * ((t * (j / b)) - z))
else if (y <= 3.1d-130) then
tmp = a * ((b * i) - (x * t))
else if (y <= 1.5d-27) then
tmp = c * (b * (((t * j) / b) - z))
else if (y <= 4d+67) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6.1e+31) {
tmp = t_2;
} else if (y <= -1.6e-248) {
tmp = t_1;
} else if (y <= 2.95e-280) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 7.8e-249) {
tmp = t_1;
} else if (y <= 1.26e-166) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 3.1e-130) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.5e-27) {
tmp = c * (b * (((t * j) / b) - z));
} else if (y <= 4e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -6.1e+31: tmp = t_2 elif y <= -1.6e-248: tmp = t_1 elif y <= 2.95e-280: tmp = c * ((t * j) - (z * b)) elif y <= 7.8e-249: tmp = t_1 elif y <= 1.26e-166: tmp = b * (c * ((t * (j / b)) - z)) elif y <= 3.1e-130: tmp = a * ((b * i) - (x * t)) elif y <= 1.5e-27: tmp = c * (b * (((t * j) / b) - z)) elif y <= 4e+67: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -6.1e+31) tmp = t_2; elseif (y <= -1.6e-248) tmp = t_1; elseif (y <= 2.95e-280) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 7.8e-249) tmp = t_1; elseif (y <= 1.26e-166) tmp = Float64(b * Float64(c * Float64(Float64(t * Float64(j / b)) - z))); elseif (y <= 3.1e-130) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 1.5e-27) tmp = Float64(c * Float64(b * Float64(Float64(Float64(t * j) / b) - z))); elseif (y <= 4e+67) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -6.1e+31) tmp = t_2; elseif (y <= -1.6e-248) tmp = t_1; elseif (y <= 2.95e-280) tmp = c * ((t * j) - (z * b)); elseif (y <= 7.8e-249) tmp = t_1; elseif (y <= 1.26e-166) tmp = b * (c * ((t * (j / b)) - z)); elseif (y <= 3.1e-130) tmp = a * ((b * i) - (x * t)); elseif (y <= 1.5e-27) tmp = c * (b * (((t * j) / b) - z)); elseif (y <= 4e+67) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.1e+31], t$95$2, If[LessEqual[y, -1.6e-248], t$95$1, If[LessEqual[y, 2.95e-280], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.8e-249], t$95$1, If[LessEqual[y, 1.26e-166], N[(b * N[(c * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.1e-130], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e-27], N[(c * N[(b * N[(N[(N[(t * j), $MachinePrecision] / b), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+67], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -6.1 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.95 \cdot 10^{-280}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 7.8 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.26 \cdot 10^{-166}:\\
\;\;\;\;b \cdot \left(c \cdot \left(t \cdot \frac{j}{b} - z\right)\right)\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{-130}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \left(b \cdot \left(\frac{t \cdot j}{b} - z\right)\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -6.10000000000000009e31 or 3.99999999999999993e67 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -6.10000000000000009e31 < y < -1.60000000000000009e-248 or 2.9500000000000002e-280 < y < 7.7999999999999998e-249 or 1.5000000000000001e-27 < y < 3.99999999999999993e67Initial program 86.1%
+-commutative86.1%
fma-define87.5%
*-commutative87.5%
*-commutative87.5%
cancel-sign-sub-inv87.5%
cancel-sign-sub87.5%
sub-neg87.5%
sub-neg87.5%
*-commutative87.5%
fma-neg87.5%
*-commutative87.5%
distribute-rgt-neg-out87.5%
remove-double-neg87.5%
*-commutative87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in t around inf 63.9%
+-commutative63.9%
mul-1-neg63.9%
unsub-neg63.9%
*-commutative63.9%
Simplified63.9%
if -1.60000000000000009e-248 < y < 2.9500000000000002e-280Initial program 75.4%
+-commutative75.4%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
cancel-sign-sub-inv75.4%
cancel-sign-sub75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
fma-neg75.4%
*-commutative75.4%
distribute-rgt-neg-out75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in c around inf 59.3%
if 7.7999999999999998e-249 < y < 1.26e-166Initial program 97.7%
+-commutative97.7%
fma-define97.7%
*-commutative97.7%
*-commutative97.7%
cancel-sign-sub-inv97.7%
cancel-sign-sub97.7%
sub-neg97.7%
sub-neg97.7%
*-commutative97.7%
fma-neg97.7%
*-commutative97.7%
distribute-rgt-neg-out97.7%
remove-double-neg97.7%
*-commutative97.7%
*-commutative97.7%
Simplified97.7%
Taylor expanded in c around inf 64.0%
Taylor expanded in b around inf 75.9%
mul-1-neg75.9%
+-commutative75.9%
unsub-neg75.9%
associate-/l*75.9%
associate-/l*76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in c around 0 75.9%
*-commutative75.9%
associate-/l*75.9%
Simplified75.9%
if 1.26e-166 < y < 3.10000000000000011e-130Initial program 91.9%
Taylor expanded in a around -inf 91.4%
Taylor expanded in a around inf 60.0%
if 3.10000000000000011e-130 < y < 1.5000000000000001e-27Initial program 79.3%
+-commutative79.3%
fma-define79.3%
*-commutative79.3%
*-commutative79.3%
cancel-sign-sub-inv79.3%
cancel-sign-sub79.3%
sub-neg79.3%
sub-neg79.3%
*-commutative79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-out79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in c around inf 48.7%
Taylor expanded in b around inf 48.8%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* b (* c (- (* t (/ j b)) z)))))
(if (<= y -4.2e+32)
t_2
(if (<= y -1.62e-248)
t_1
(if (<= y 1e-280)
(* c (- (* t j) (* z b)))
(if (<= y 2.15e-246)
t_1
(if (<= y 4.2e-156)
t_3
(if (<= y 2.7e-132)
(* i (- (* a b) (* y j)))
(if (<= y 1.25e-60) t_3 (if (<= y 1.05e+64) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * (c * ((t * (j / b)) - z));
double tmp;
if (y <= -4.2e+32) {
tmp = t_2;
} else if (y <= -1.62e-248) {
tmp = t_1;
} else if (y <= 1e-280) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 2.15e-246) {
tmp = t_1;
} else if (y <= 4.2e-156) {
tmp = t_3;
} else if (y <= 2.7e-132) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 1.25e-60) {
tmp = t_3;
} else if (y <= 1.05e+64) {
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) :: t_3
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
t_3 = b * (c * ((t * (j / b)) - z))
if (y <= (-4.2d+32)) then
tmp = t_2
else if (y <= (-1.62d-248)) then
tmp = t_1
else if (y <= 1d-280) then
tmp = c * ((t * j) - (z * b))
else if (y <= 2.15d-246) then
tmp = t_1
else if (y <= 4.2d-156) then
tmp = t_3
else if (y <= 2.7d-132) then
tmp = i * ((a * b) - (y * j))
else if (y <= 1.25d-60) then
tmp = t_3
else if (y <= 1.05d+64) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * (c * ((t * (j / b)) - z));
double tmp;
if (y <= -4.2e+32) {
tmp = t_2;
} else if (y <= -1.62e-248) {
tmp = t_1;
} else if (y <= 1e-280) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 2.15e-246) {
tmp = t_1;
} else if (y <= 4.2e-156) {
tmp = t_3;
} else if (y <= 2.7e-132) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 1.25e-60) {
tmp = t_3;
} else if (y <= 1.05e+64) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) t_3 = b * (c * ((t * (j / b)) - z)) tmp = 0 if y <= -4.2e+32: tmp = t_2 elif y <= -1.62e-248: tmp = t_1 elif y <= 1e-280: tmp = c * ((t * j) - (z * b)) elif y <= 2.15e-246: tmp = t_1 elif y <= 4.2e-156: tmp = t_3 elif y <= 2.7e-132: tmp = i * ((a * b) - (y * j)) elif y <= 1.25e-60: tmp = t_3 elif y <= 1.05e+64: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(b * Float64(c * Float64(Float64(t * Float64(j / b)) - z))) tmp = 0.0 if (y <= -4.2e+32) tmp = t_2; elseif (y <= -1.62e-248) tmp = t_1; elseif (y <= 1e-280) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 2.15e-246) tmp = t_1; elseif (y <= 4.2e-156) tmp = t_3; elseif (y <= 2.7e-132) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (y <= 1.25e-60) tmp = t_3; elseif (y <= 1.05e+64) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); t_3 = b * (c * ((t * (j / b)) - z)); tmp = 0.0; if (y <= -4.2e+32) tmp = t_2; elseif (y <= -1.62e-248) tmp = t_1; elseif (y <= 1e-280) tmp = c * ((t * j) - (z * b)); elseif (y <= 2.15e-246) tmp = t_1; elseif (y <= 4.2e-156) tmp = t_3; elseif (y <= 2.7e-132) tmp = i * ((a * b) - (y * j)); elseif (y <= 1.25e-60) tmp = t_3; elseif (y <= 1.05e+64) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(c * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.2e+32], t$95$2, If[LessEqual[y, -1.62e-248], t$95$1, If[LessEqual[y, 1e-280], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.15e-246], t$95$1, If[LessEqual[y, 4.2e-156], t$95$3, If[LessEqual[y, 2.7e-132], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.25e-60], t$95$3, If[LessEqual[y, 1.05e+64], t$95$1, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := b \cdot \left(c \cdot \left(t \cdot \frac{j}{b} - z\right)\right)\\
\mathbf{if}\;y \leq -4.2 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.62 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 10^{-280}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-246}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-156}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{-132}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq 1.25 \cdot 10^{-60}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.2000000000000001e32 or 1.05e64 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -4.2000000000000001e32 < y < -1.6200000000000001e-248 or 9.9999999999999996e-281 < y < 2.14999999999999996e-246 or 1.25e-60 < y < 1.05e64Initial program 85.3%
+-commutative85.3%
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 t around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
Simplified64.0%
if -1.6200000000000001e-248 < y < 9.9999999999999996e-281Initial program 75.4%
+-commutative75.4%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
cancel-sign-sub-inv75.4%
cancel-sign-sub75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
fma-neg75.4%
*-commutative75.4%
distribute-rgt-neg-out75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in c around inf 59.3%
if 2.14999999999999996e-246 < y < 4.20000000000000025e-156 or 2.6999999999999999e-132 < y < 1.25e-60Initial program 88.6%
+-commutative88.6%
fma-define88.6%
*-commutative88.6%
*-commutative88.6%
cancel-sign-sub-inv88.6%
cancel-sign-sub88.6%
sub-neg88.6%
sub-neg88.6%
*-commutative88.6%
fma-neg88.6%
*-commutative88.6%
distribute-rgt-neg-out88.6%
remove-double-neg88.6%
*-commutative88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in c around inf 50.3%
Taylor expanded in b around inf 55.5%
mul-1-neg55.5%
+-commutative55.5%
unsub-neg55.5%
associate-/l*55.6%
associate-/l*58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in c around 0 55.6%
*-commutative55.6%
associate-/l*58.2%
Simplified58.2%
if 4.20000000000000025e-156 < y < 2.6999999999999999e-132Initial program 99.8%
Taylor expanded in i around inf 72.2%
*-commutative72.2%
associate-*r*72.2%
Simplified72.2%
Taylor expanded in i around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
Simplified72.2%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -1.95e+32)
t_2
(if (<= y -2.4e-242)
t_1
(if (<= y 9e-305)
(* c (* j (- t (* b (/ z j)))))
(if (<= y 9.2e-268)
(* a (- (* b i) (* x t)))
(if (<= y 1.6e-164)
(* (* b c) (- (* t (/ j b)) z))
(if (<= y 2.2e-132)
(* (* b i) (- a (* j (/ y b))))
(if (<= y 3.8e+62) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.95e+32) {
tmp = t_2;
} else if (y <= -2.4e-242) {
tmp = t_1;
} else if (y <= 9e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 9.2e-268) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.6e-164) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 2.2e-132) {
tmp = (b * i) * (a - (j * (y / b)));
} else if (y <= 3.8e+62) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-1.95d+32)) then
tmp = t_2
else if (y <= (-2.4d-242)) then
tmp = t_1
else if (y <= 9d-305) then
tmp = c * (j * (t - (b * (z / j))))
else if (y <= 9.2d-268) then
tmp = a * ((b * i) - (x * t))
else if (y <= 1.6d-164) then
tmp = (b * c) * ((t * (j / b)) - z)
else if (y <= 2.2d-132) then
tmp = (b * i) * (a - (j * (y / b)))
else if (y <= 3.8d+62) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.95e+32) {
tmp = t_2;
} else if (y <= -2.4e-242) {
tmp = t_1;
} else if (y <= 9e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 9.2e-268) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.6e-164) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 2.2e-132) {
tmp = (b * i) * (a - (j * (y / b)));
} else if (y <= 3.8e+62) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.95e+32: tmp = t_2 elif y <= -2.4e-242: tmp = t_1 elif y <= 9e-305: tmp = c * (j * (t - (b * (z / j)))) elif y <= 9.2e-268: tmp = a * ((b * i) - (x * t)) elif y <= 1.6e-164: tmp = (b * c) * ((t * (j / b)) - z) elif y <= 2.2e-132: tmp = (b * i) * (a - (j * (y / b))) elif y <= 3.8e+62: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.95e+32) tmp = t_2; elseif (y <= -2.4e-242) tmp = t_1; elseif (y <= 9e-305) tmp = Float64(c * Float64(j * Float64(t - Float64(b * Float64(z / j))))); elseif (y <= 9.2e-268) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 1.6e-164) tmp = Float64(Float64(b * c) * Float64(Float64(t * Float64(j / b)) - z)); elseif (y <= 2.2e-132) tmp = Float64(Float64(b * i) * Float64(a - Float64(j * Float64(y / b)))); elseif (y <= 3.8e+62) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.95e+32) tmp = t_2; elseif (y <= -2.4e-242) tmp = t_1; elseif (y <= 9e-305) tmp = c * (j * (t - (b * (z / j)))); elseif (y <= 9.2e-268) tmp = a * ((b * i) - (x * t)); elseif (y <= 1.6e-164) tmp = (b * c) * ((t * (j / b)) - z); elseif (y <= 2.2e-132) tmp = (b * i) * (a - (j * (y / b))); elseif (y <= 3.8e+62) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.95e+32], t$95$2, If[LessEqual[y, -2.4e-242], t$95$1, If[LessEqual[y, 9e-305], N[(c * N[(j * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.2e-268], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-164], N[(N[(b * c), $MachinePrecision] * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-132], N[(N[(b * i), $MachinePrecision] * N[(a - N[(j * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e+62], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.95 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.4 \cdot 10^{-242}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(j \cdot \left(t - b \cdot \frac{z}{j}\right)\right)\\
\mathbf{elif}\;y \leq 9.2 \cdot 10^{-268}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-164}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(t \cdot \frac{j}{b} - z\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-132}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(a - j \cdot \frac{y}{b}\right)\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -1.95e32 or 3.79999999999999984e62 < y Initial program 60.6%
+-commutative60.6%
fma-define61.4%
*-commutative61.4%
*-commutative61.4%
cancel-sign-sub-inv61.4%
cancel-sign-sub61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
fma-neg62.3%
*-commutative62.3%
distribute-rgt-neg-out62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around inf 68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
Simplified68.7%
if -1.95e32 < y < -2.4000000000000001e-242 or 2.19999999999999991e-132 < y < 3.79999999999999984e62Initial program 84.0%
+-commutative84.0%
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 t around inf 56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
*-commutative56.8%
Simplified56.8%
if -2.4000000000000001e-242 < y < 9.0000000000000003e-305Initial program 77.5%
+-commutative77.5%
fma-define77.5%
*-commutative77.5%
*-commutative77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
sub-neg77.5%
sub-neg77.5%
*-commutative77.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around inf 59.9%
Taylor expanded in j around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-/l*64.3%
Simplified64.3%
if 9.0000000000000003e-305 < y < 9.20000000000000042e-268Initial program 89.4%
Taylor expanded in a around -inf 66.8%
Taylor expanded in a around inf 66.8%
if 9.20000000000000042e-268 < y < 1.6e-164Initial program 89.4%
+-commutative89.4%
fma-define89.4%
*-commutative89.4%
*-commutative89.4%
cancel-sign-sub-inv89.4%
cancel-sign-sub89.4%
sub-neg89.4%
sub-neg89.4%
*-commutative89.4%
fma-neg89.4%
*-commutative89.4%
distribute-rgt-neg-out89.4%
remove-double-neg89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in c around inf 60.9%
Taylor expanded in b around inf 65.2%
mul-1-neg65.2%
+-commutative65.2%
unsub-neg65.2%
associate-/l*65.2%
associate-/l*65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in b around inf 65.2%
neg-mul-165.2%
+-commutative65.2%
associate-/l*65.2%
associate-*r/65.2%
distribute-rgt-neg-in65.2%
neg-mul-165.2%
distribute-lft-in65.2%
associate-*r/65.2%
neg-mul-165.2%
sub-neg65.2%
associate-*r*69.3%
*-commutative69.3%
associate-/l*69.3%
Simplified69.3%
if 1.6e-164 < y < 2.19999999999999991e-132Initial program 99.8%
Taylor expanded in i around inf 75.7%
*-commutative75.7%
associate-*r*64.0%
Simplified64.0%
Taylor expanded in b around inf 64.3%
Taylor expanded in i around inf 64.3%
associate-*r*87.6%
mul-1-neg87.6%
unsub-neg87.6%
associate-/l*87.6%
Simplified87.6%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -3.7e+31)
t_2
(if (<= y -5e-238)
t_1
(if (<= y 1.9e-304)
(* c (* j (- t (* b (/ z j)))))
(if (<= y 3.4e-268)
(* a (- (* b i) (* x t)))
(if (<= y 1.6e-155)
(* (* b c) (- (* t (/ j b)) z))
(if (<= y 2.2e-132)
(* i (- (* a b) (* y j)))
(if (<= y 2.6e+62) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.7e+31) {
tmp = t_2;
} else if (y <= -5e-238) {
tmp = t_1;
} else if (y <= 1.9e-304) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 3.4e-268) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.6e-155) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 2.2e-132) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 2.6e+62) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-3.7d+31)) then
tmp = t_2
else if (y <= (-5d-238)) then
tmp = t_1
else if (y <= 1.9d-304) then
tmp = c * (j * (t - (b * (z / j))))
else if (y <= 3.4d-268) then
tmp = a * ((b * i) - (x * t))
else if (y <= 1.6d-155) then
tmp = (b * c) * ((t * (j / b)) - z)
else if (y <= 2.2d-132) then
tmp = i * ((a * b) - (y * j))
else if (y <= 2.6d+62) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.7e+31) {
tmp = t_2;
} else if (y <= -5e-238) {
tmp = t_1;
} else if (y <= 1.9e-304) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 3.4e-268) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 1.6e-155) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 2.2e-132) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 2.6e+62) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.7e+31: tmp = t_2 elif y <= -5e-238: tmp = t_1 elif y <= 1.9e-304: tmp = c * (j * (t - (b * (z / j)))) elif y <= 3.4e-268: tmp = a * ((b * i) - (x * t)) elif y <= 1.6e-155: tmp = (b * c) * ((t * (j / b)) - z) elif y <= 2.2e-132: tmp = i * ((a * b) - (y * j)) elif y <= 2.6e+62: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.7e+31) tmp = t_2; elseif (y <= -5e-238) tmp = t_1; elseif (y <= 1.9e-304) tmp = Float64(c * Float64(j * Float64(t - Float64(b * Float64(z / j))))); elseif (y <= 3.4e-268) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 1.6e-155) tmp = Float64(Float64(b * c) * Float64(Float64(t * Float64(j / b)) - z)); elseif (y <= 2.2e-132) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (y <= 2.6e+62) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.7e+31) tmp = t_2; elseif (y <= -5e-238) tmp = t_1; elseif (y <= 1.9e-304) tmp = c * (j * (t - (b * (z / j)))); elseif (y <= 3.4e-268) tmp = a * ((b * i) - (x * t)); elseif (y <= 1.6e-155) tmp = (b * c) * ((t * (j / b)) - z); elseif (y <= 2.2e-132) tmp = i * ((a * b) - (y * j)); elseif (y <= 2.6e+62) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.7e+31], t$95$2, If[LessEqual[y, -5e-238], t$95$1, If[LessEqual[y, 1.9e-304], N[(c * N[(j * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.4e-268], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-155], N[(N[(b * c), $MachinePrecision] * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-132], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e+62], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.7 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -5 \cdot 10^{-238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-304}:\\
\;\;\;\;c \cdot \left(j \cdot \left(t - b \cdot \frac{z}{j}\right)\right)\\
\mathbf{elif}\;y \leq 3.4 \cdot 10^{-268}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-155}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(t \cdot \frac{j}{b} - z\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-132}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.6999999999999998e31 or 2.59999999999999984e62 < y Initial program 60.6%
+-commutative60.6%
fma-define61.4%
*-commutative61.4%
*-commutative61.4%
cancel-sign-sub-inv61.4%
cancel-sign-sub61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
fma-neg62.3%
*-commutative62.3%
distribute-rgt-neg-out62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around inf 68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
Simplified68.7%
if -3.6999999999999998e31 < y < -5e-238 or 2.19999999999999991e-132 < y < 2.59999999999999984e62Initial program 84.0%
+-commutative84.0%
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 t around inf 56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
*-commutative56.8%
Simplified56.8%
if -5e-238 < y < 1.8999999999999998e-304Initial program 77.5%
+-commutative77.5%
fma-define77.5%
*-commutative77.5%
*-commutative77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
sub-neg77.5%
sub-neg77.5%
*-commutative77.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around inf 59.9%
Taylor expanded in j around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-/l*64.3%
Simplified64.3%
if 1.8999999999999998e-304 < y < 3.4e-268Initial program 89.4%
Taylor expanded in a around -inf 66.8%
Taylor expanded in a around inf 66.8%
if 3.4e-268 < y < 1.60000000000000006e-155Initial program 89.9%
+-commutative89.9%
fma-define89.9%
*-commutative89.9%
*-commutative89.9%
cancel-sign-sub-inv89.9%
cancel-sign-sub89.9%
sub-neg89.9%
sub-neg89.9%
*-commutative89.9%
fma-neg89.9%
*-commutative89.9%
distribute-rgt-neg-out89.9%
remove-double-neg89.9%
*-commutative89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in c around inf 62.6%
Taylor expanded in b around inf 66.7%
mul-1-neg66.7%
+-commutative66.7%
unsub-neg66.7%
associate-/l*66.7%
associate-/l*66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in b around inf 66.7%
neg-mul-166.7%
+-commutative66.7%
associate-/l*66.7%
associate-*r/66.7%
distribute-rgt-neg-in66.7%
neg-mul-166.7%
distribute-lft-in66.7%
associate-*r/66.7%
neg-mul-166.7%
sub-neg66.7%
associate-*r*70.7%
*-commutative70.7%
associate-/l*70.7%
Simplified70.7%
if 1.60000000000000006e-155 < y < 2.19999999999999991e-132Initial program 99.8%
Taylor expanded in i around inf 72.2%
*-commutative72.2%
associate-*r*72.2%
Simplified72.2%
Taylor expanded in i around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
Simplified72.2%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (- t_1 (* x (- (* t a) (* y z))))))
(if (<= z -1.75e+131)
(* z (- (* x y) (* b c)))
(if (<= z -1.12e-157)
t_2
(if (<= z 2.05e-148)
(+ t_1 (* a (* b i)))
(if (<= z 2.6e+58)
t_2
(if (<= z 1.7e+169)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(* (* y z) (- x (* b (/ c y)))))))))))
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_1 - (x * ((t * a) - (y * z)));
double tmp;
if (z <= -1.75e+131) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.12e-157) {
tmp = t_2;
} else if (z <= 2.05e-148) {
tmp = t_1 + (a * (b * i));
} else if (z <= 2.6e+58) {
tmp = t_2;
} else if (z <= 1.7e+169) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 - (x * ((t * a) - (y * z)))
if (z <= (-1.75d+131)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-1.12d-157)) then
tmp = t_2
else if (z <= 2.05d-148) then
tmp = t_1 + (a * (b * i))
else if (z <= 2.6d+58) then
tmp = t_2
else if (z <= 1.7d+169) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else
tmp = (y * z) * (x - (b * (c / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - (x * ((t * a) - (y * z)));
double tmp;
if (z <= -1.75e+131) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.12e-157) {
tmp = t_2;
} else if (z <= 2.05e-148) {
tmp = t_1 + (a * (b * i));
} else if (z <= 2.6e+58) {
tmp = t_2;
} else if (z <= 1.7e+169) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 - (x * ((t * a) - (y * z))) tmp = 0 if z <= -1.75e+131: tmp = z * ((x * y) - (b * c)) elif z <= -1.12e-157: tmp = t_2 elif z <= 2.05e-148: tmp = t_1 + (a * (b * i)) elif z <= 2.6e+58: tmp = t_2 elif z <= 1.7e+169: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) else: tmp = (y * z) * (x - (b * (c / y))) 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(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) tmp = 0.0 if (z <= -1.75e+131) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -1.12e-157) tmp = t_2; elseif (z <= 2.05e-148) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (z <= 2.6e+58) tmp = t_2; elseif (z <= 1.7e+169) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); else tmp = Float64(Float64(y * z) * Float64(x - Float64(b * Float64(c / y)))); 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_1 - (x * ((t * a) - (y * z))); tmp = 0.0; if (z <= -1.75e+131) tmp = z * ((x * y) - (b * c)); elseif (z <= -1.12e-157) tmp = t_2; elseif (z <= 2.05e-148) tmp = t_1 + (a * (b * i)); elseif (z <= 2.6e+58) tmp = t_2; elseif (z <= 1.7e+169) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); else tmp = (y * z) * (x - (b * (c / y))); 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[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.75e+131], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.12e-157], t$95$2, If[LessEqual[z, 2.05e-148], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+58], t$95$2, If[LessEqual[z, 1.7e+169], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] * N[(x - N[(b * N[(c / y), $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\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{if}\;z \leq -1.75 \cdot 10^{+131}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -1.12 \cdot 10^{-157}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-148}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+58}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+169}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - b \cdot \frac{c}{y}\right)\\
\end{array}
\end{array}
if z < -1.7499999999999999e131Initial program 58.6%
+-commutative58.6%
fma-define58.6%
*-commutative58.6%
*-commutative58.6%
cancel-sign-sub-inv58.6%
cancel-sign-sub58.6%
sub-neg58.6%
sub-neg58.6%
*-commutative58.6%
fma-neg61.9%
*-commutative61.9%
distribute-rgt-neg-out61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 65.1%
associate-*r*61.9%
associate-*r*61.9%
*-commutative61.9%
associate-*r*55.8%
distribute-rgt-in55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in z around inf 74.1%
*-commutative74.1%
Simplified74.1%
if -1.7499999999999999e131 < z < -1.12000000000000001e-157 or 2.0500000000000001e-148 < z < 2.59999999999999988e58Initial program 81.2%
Taylor expanded in b around -inf 75.2%
associate-*r*75.2%
neg-mul-175.2%
distribute-lft-out--75.2%
associate-/l*74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in b around 0 64.6%
if -1.12000000000000001e-157 < z < 2.0500000000000001e-148Initial program 80.5%
Taylor expanded in i around inf 73.2%
if 2.59999999999999988e58 < z < 1.70000000000000014e169Initial program 54.8%
+-commutative54.8%
fma-define54.8%
*-commutative54.8%
*-commutative54.8%
cancel-sign-sub-inv54.8%
cancel-sign-sub54.8%
sub-neg54.8%
sub-neg54.8%
*-commutative54.8%
fma-neg54.8%
*-commutative54.8%
distribute-rgt-neg-out54.8%
remove-double-neg54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in t around 0 60.7%
associate-*r*60.8%
associate-*r*60.8%
*-commutative60.8%
associate-*r*64.5%
distribute-rgt-in68.3%
+-commutative68.3%
mul-1-neg68.3%
unsub-neg68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in c around inf 70.5%
*-commutative70.5%
associate-*l*73.9%
*-commutative73.9%
Simplified73.9%
if 1.70000000000000014e169 < z Initial program 66.6%
+-commutative66.6%
fma-define66.6%
*-commutative66.6%
*-commutative66.6%
cancel-sign-sub-inv66.6%
cancel-sign-sub66.6%
sub-neg66.6%
sub-neg66.6%
*-commutative66.6%
fma-neg66.6%
*-commutative66.6%
distribute-rgt-neg-out66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around -inf 63.7%
Simplified60.0%
Taylor expanded in z around inf 74.8%
associate-*r*78.2%
*-commutative78.2%
associate-/l*85.6%
Simplified85.6%
Final simplification71.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (- t_1 (* a (* x t)))))
(if (<= t -7.2e+155)
(* t (- (* c j) (* x a)))
(if (<= t -1e+109)
(+ t_1 (* a (* b i)))
(if (<= t -0.47)
t_2
(if (<= t -1.6e-59)
(* a (- (* b i) (* x t)))
(if (<= t 6.5e-41)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - (a * (x * t));
double tmp;
if (t <= -7.2e+155) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -1e+109) {
tmp = t_1 + (a * (b * i));
} else if (t <= -0.47) {
tmp = t_2;
} else if (t <= -1.6e-59) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 6.5e-41) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 - (a * (x * t))
if (t <= (-7.2d+155)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-1d+109)) then
tmp = t_1 + (a * (b * i))
else if (t <= (-0.47d0)) then
tmp = t_2
else if (t <= (-1.6d-59)) then
tmp = a * ((b * i) - (x * t))
else if (t <= 6.5d-41) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - (a * (x * t));
double tmp;
if (t <= -7.2e+155) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -1e+109) {
tmp = t_1 + (a * (b * i));
} else if (t <= -0.47) {
tmp = t_2;
} else if (t <= -1.6e-59) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 6.5e-41) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 - (a * (x * t)) tmp = 0 if t <= -7.2e+155: tmp = t * ((c * j) - (x * a)) elif t <= -1e+109: tmp = t_1 + (a * (b * i)) elif t <= -0.47: tmp = t_2 elif t <= -1.6e-59: tmp = a * ((b * i) - (x * t)) elif t <= 6.5e-41: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) else: tmp = t_2 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(t_1 - Float64(a * Float64(x * t))) tmp = 0.0 if (t <= -7.2e+155) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -1e+109) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (t <= -0.47) tmp = t_2; elseif (t <= -1.6e-59) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (t <= 6.5e-41) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); else tmp = t_2; 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_1 - (a * (x * t)); tmp = 0.0; if (t <= -7.2e+155) tmp = t * ((c * j) - (x * a)); elseif (t <= -1e+109) tmp = t_1 + (a * (b * i)); elseif (t <= -0.47) tmp = t_2; elseif (t <= -1.6e-59) tmp = a * ((b * i) - (x * t)); elseif (t <= 6.5e-41) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -7.2e+155], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1e+109], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -0.47], t$95$2, If[LessEqual[t, -1.6e-59], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-41], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{if}\;t \leq -7.2 \cdot 10^{+155}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -1 \cdot 10^{+109}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -0.47:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -1.6 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-41}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -7.20000000000000015e155Initial program 70.3%
+-commutative70.3%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around inf 76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
Simplified76.9%
if -7.20000000000000015e155 < t < -9.99999999999999982e108Initial program 66.1%
Taylor expanded in i around inf 99.5%
if -9.99999999999999982e108 < t < -0.46999999999999997 or 6.5000000000000004e-41 < t Initial program 69.5%
Taylor expanded in a around -inf 65.9%
Taylor expanded in b around 0 58.5%
+-commutative58.5%
*-commutative58.5%
*-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
if -0.46999999999999997 < t < -1.6e-59Initial program 93.0%
Taylor expanded in a around -inf 80.1%
Taylor expanded in a around inf 74.5%
if -1.6e-59 < t < 6.5000000000000004e-41Initial program 77.2%
+-commutative77.2%
fma-define78.1%
*-commutative78.1%
*-commutative78.1%
cancel-sign-sub-inv78.1%
cancel-sign-sub78.1%
sub-neg78.1%
sub-neg78.1%
*-commutative78.1%
fma-neg78.1%
*-commutative78.1%
distribute-rgt-neg-out78.1%
remove-double-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in t around 0 74.9%
associate-*r*73.8%
associate-*r*73.8%
*-commutative73.8%
associate-*r*73.0%
distribute-rgt-in74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in c around inf 69.7%
*-commutative69.7%
associate-*l*71.3%
*-commutative71.3%
Simplified71.3%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ t_1 (* a (* b i))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -7.5e+140)
t_3
(if (<= z -2.7e-16)
(* (* x y) (- z (* a (/ t y))))
(if (<= z 1.25e-148)
t_2
(if (<= z 1.55e+39)
(- t_1 (* a (* x t)))
(if (<= z 2e+93) 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 = j * ((t * c) - (y * i));
double t_2 = t_1 + (a * (b * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.5e+140) {
tmp = t_3;
} else if (z <= -2.7e-16) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 1.25e-148) {
tmp = t_2;
} else if (z <= 1.55e+39) {
tmp = t_1 - (a * (x * t));
} else if (z <= 2e+93) {
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 = j * ((t * c) - (y * i))
t_2 = t_1 + (a * (b * i))
t_3 = z * ((x * y) - (b * c))
if (z <= (-7.5d+140)) then
tmp = t_3
else if (z <= (-2.7d-16)) then
tmp = (x * y) * (z - (a * (t / y)))
else if (z <= 1.25d-148) then
tmp = t_2
else if (z <= 1.55d+39) then
tmp = t_1 - (a * (x * t))
else if (z <= 2d+93) 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 = j * ((t * c) - (y * i));
double t_2 = t_1 + (a * (b * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.5e+140) {
tmp = t_3;
} else if (z <= -2.7e-16) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 1.25e-148) {
tmp = t_2;
} else if (z <= 1.55e+39) {
tmp = t_1 - (a * (x * t));
} else if (z <= 2e+93) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 + (a * (b * i)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -7.5e+140: tmp = t_3 elif z <= -2.7e-16: tmp = (x * y) * (z - (a * (t / y))) elif z <= 1.25e-148: tmp = t_2 elif z <= 1.55e+39: tmp = t_1 - (a * (x * t)) elif z <= 2e+93: tmp = t_2 else: tmp = t_3 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(t_1 + Float64(a * Float64(b * i))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -7.5e+140) tmp = t_3; elseif (z <= -2.7e-16) tmp = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))); elseif (z <= 1.25e-148) tmp = t_2; elseif (z <= 1.55e+39) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (z <= 2e+93) 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 = j * ((t * c) - (y * i)); t_2 = t_1 + (a * (b * i)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -7.5e+140) tmp = t_3; elseif (z <= -2.7e-16) tmp = (x * y) * (z - (a * (t / y))); elseif (z <= 1.25e-148) tmp = t_2; elseif (z <= 1.55e+39) tmp = t_1 - (a * (x * t)); elseif (z <= 2e+93) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.5e+140], t$95$3, If[LessEqual[z, -2.7e-16], N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.25e-148], t$95$2, If[LessEqual[z, 1.55e+39], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e+93], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 + a \cdot \left(b \cdot i\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -7.5 \cdot 10^{+140}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.7 \cdot 10^{-16}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-148}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+39}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{+93}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -7.4999999999999997e140 or 2.00000000000000009e93 < z Initial program 60.4%
+-commutative60.4%
fma-define60.4%
*-commutative60.4%
*-commutative60.4%
cancel-sign-sub-inv60.4%
cancel-sign-sub60.4%
sub-neg60.4%
sub-neg60.4%
*-commutative60.4%
fma-neg61.9%
*-commutative61.9%
distribute-rgt-neg-out61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 62.0%
associate-*r*59.2%
associate-*r*59.2%
*-commutative59.2%
associate-*r*56.6%
distribute-rgt-in56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around inf 78.7%
*-commutative78.7%
Simplified78.7%
if -7.4999999999999997e140 < z < -2.69999999999999999e-16Initial program 77.4%
+-commutative77.4%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
sub-neg77.4%
sub-neg77.4%
*-commutative77.4%
fma-neg77.4%
*-commutative77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in y around -inf 69.4%
Simplified72.1%
Taylor expanded in x around inf 62.6%
associate-*r*62.5%
*-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
associate-/l*67.3%
Simplified67.3%
if -2.69999999999999999e-16 < z < 1.25e-148 or 1.5500000000000001e39 < z < 2.00000000000000009e93Initial program 79.1%
Taylor expanded in i around inf 65.7%
if 1.25e-148 < z < 1.5500000000000001e39Initial program 81.2%
Taylor expanded in a around -inf 58.5%
Taylor expanded in b around 0 55.8%
+-commutative55.8%
*-commutative55.8%
*-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
Simplified55.8%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -3.5e+31)
t_3
(if (<= y -4.05e-249)
t_2
(if (<= y 2.15e-168)
t_1
(if (<= y 7.5e-130)
(* a (- (* b i) (* x t)))
(if (<= y 6.8e-28) t_1 (if (<= y 3.5e+63) 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 = c * ((t * j) - (z * b));
double t_2 = t * ((c * j) - (x * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.5e+31) {
tmp = t_3;
} else if (y <= -4.05e-249) {
tmp = t_2;
} else if (y <= 2.15e-168) {
tmp = t_1;
} else if (y <= 7.5e-130) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 6.8e-28) {
tmp = t_1;
} else if (y <= 3.5e+63) {
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 = c * ((t * j) - (z * b))
t_2 = t * ((c * j) - (x * a))
t_3 = y * ((x * z) - (i * j))
if (y <= (-3.5d+31)) then
tmp = t_3
else if (y <= (-4.05d-249)) then
tmp = t_2
else if (y <= 2.15d-168) then
tmp = t_1
else if (y <= 7.5d-130) then
tmp = a * ((b * i) - (x * t))
else if (y <= 6.8d-28) then
tmp = t_1
else if (y <= 3.5d+63) 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 = c * ((t * j) - (z * b));
double t_2 = t * ((c * j) - (x * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.5e+31) {
tmp = t_3;
} else if (y <= -4.05e-249) {
tmp = t_2;
} else if (y <= 2.15e-168) {
tmp = t_1;
} else if (y <= 7.5e-130) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 6.8e-28) {
tmp = t_1;
} else if (y <= 3.5e+63) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = t * ((c * j) - (x * a)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.5e+31: tmp = t_3 elif y <= -4.05e-249: tmp = t_2 elif y <= 2.15e-168: tmp = t_1 elif y <= 7.5e-130: tmp = a * ((b * i) - (x * t)) elif y <= 6.8e-28: tmp = t_1 elif y <= 3.5e+63: tmp = t_2 else: tmp = t_3 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(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.5e+31) tmp = t_3; elseif (y <= -4.05e-249) tmp = t_2; elseif (y <= 2.15e-168) tmp = t_1; elseif (y <= 7.5e-130) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 6.8e-28) tmp = t_1; elseif (y <= 3.5e+63) 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 = c * ((t * j) - (z * b)); t_2 = t * ((c * j) - (x * a)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.5e+31) tmp = t_3; elseif (y <= -4.05e-249) tmp = t_2; elseif (y <= 2.15e-168) tmp = t_1; elseif (y <= 7.5e-130) tmp = a * ((b * i) - (x * t)); elseif (y <= 6.8e-28) tmp = t_1; elseif (y <= 3.5e+63) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.5e+31], t$95$3, If[LessEqual[y, -4.05e-249], t$95$2, If[LessEqual[y, 2.15e-168], t$95$1, If[LessEqual[y, 7.5e-130], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e-28], t$95$1, If[LessEqual[y, 3.5e+63], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.5 \cdot 10^{+31}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -4.05 \cdot 10^{-249}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 2.15 \cdot 10^{-168}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-130}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{-28}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.5 \cdot 10^{+63}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -3.5e31 or 3.50000000000000029e63 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -3.5e31 < y < -4.0500000000000001e-249 or 6.8000000000000001e-28 < y < 3.50000000000000029e63Initial program 85.9%
+-commutative85.9%
fma-define87.5%
*-commutative87.5%
*-commutative87.5%
cancel-sign-sub-inv87.5%
cancel-sign-sub87.5%
sub-neg87.5%
sub-neg87.5%
*-commutative87.5%
fma-neg87.5%
*-commutative87.5%
distribute-rgt-neg-out87.5%
remove-double-neg87.5%
*-commutative87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in t around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
*-commutative62.3%
Simplified62.3%
if -4.0500000000000001e-249 < y < 2.14999999999999998e-168 or 7.4999999999999994e-130 < y < 6.8000000000000001e-28Initial program 83.3%
+-commutative83.3%
fma-define83.3%
*-commutative83.3%
*-commutative83.3%
cancel-sign-sub-inv83.3%
cancel-sign-sub83.3%
sub-neg83.3%
sub-neg83.3%
*-commutative83.3%
fma-neg83.3%
*-commutative83.3%
distribute-rgt-neg-out83.3%
remove-double-neg83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in c around inf 55.1%
if 2.14999999999999998e-168 < y < 7.4999999999999994e-130Initial program 91.9%
Taylor expanded in a around -inf 91.4%
Taylor expanded in a around inf 60.0%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -1.5e+119)
t_2
(if (<= a -1.3e+35)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= a -4.8e+26)
t_2
(if (<= a 0.0068) (+ t_1 (* z (- (* x y) (* b c)))) (+ t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.5e+119) {
tmp = t_2;
} else if (a <= -1.3e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -4.8e+26) {
tmp = t_2;
} else if (a <= 0.0068) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = a * ((b * i) - (x * t))
if (a <= (-1.5d+119)) then
tmp = t_2
else if (a <= (-1.3d+35)) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (a <= (-4.8d+26)) then
tmp = t_2
else if (a <= 0.0068d0) then
tmp = t_1 + (z * ((x * y) - (b * c)))
else
tmp = t_1 + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.5e+119) {
tmp = t_2;
} else if (a <= -1.3e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -4.8e+26) {
tmp = t_2;
} else if (a <= 0.0068) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.5e+119: tmp = t_2 elif a <= -1.3e+35: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif a <= -4.8e+26: tmp = t_2 elif a <= 0.0068: tmp = t_1 + (z * ((x * y) - (b * c))) else: tmp = t_1 + t_2 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(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.5e+119) tmp = t_2; elseif (a <= -1.3e+35) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (a <= -4.8e+26) tmp = t_2; elseif (a <= 0.0068) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(t_1 + t_2); 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 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.5e+119) tmp = t_2; elseif (a <= -1.3e+35) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (a <= -4.8e+26) tmp = t_2; elseif (a <= 0.0068) tmp = t_1 + (z * ((x * y) - (b * c))); else tmp = t_1 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.5e+119], t$95$2, If[LessEqual[a, -1.3e+35], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e+26], t$95$2, If[LessEqual[a, 0.0068], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.5 \cdot 10^{+119}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 0.0068:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + t\_2\\
\end{array}
\end{array}
if a < -1.50000000000000001e119 or -1.30000000000000003e35 < a < -4.80000000000000009e26Initial program 63.5%
Taylor expanded in a around -inf 64.0%
Taylor expanded in a around inf 74.0%
if -1.50000000000000001e119 < a < -1.30000000000000003e35Initial program 53.5%
+-commutative53.5%
fma-define61.2%
*-commutative61.2%
*-commutative61.2%
cancel-sign-sub-inv61.2%
cancel-sign-sub61.2%
sub-neg61.2%
sub-neg61.2%
*-commutative61.2%
fma-neg61.2%
*-commutative61.2%
distribute-rgt-neg-out61.2%
remove-double-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in t around 0 61.4%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*69.1%
distribute-rgt-in76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 84.5%
*-commutative84.5%
associate-*l*84.5%
*-commutative84.5%
Simplified84.5%
if -4.80000000000000009e26 < a < 0.00679999999999999962Initial program 80.9%
Taylor expanded in z around inf 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if 0.00679999999999999962 < a Initial program 66.8%
Taylor expanded in a around -inf 62.8%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -6.6e+119)
t_1
(if (<= a -1.55e+35)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= a -1.8e+24)
t_1
(if (<= a 2.65e+32)
(+ (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))
(* y (- (* x z) (+ (* i j) (/ (* a (* x t)) y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -6.6e+119) {
tmp = t_1;
} else if (a <= -1.55e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -1.8e+24) {
tmp = t_1;
} else if (a <= 2.65e+32) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
if (a <= (-6.6d+119)) then
tmp = t_1
else if (a <= (-1.55d+35)) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (a <= (-1.8d+24)) then
tmp = t_1
else if (a <= 2.65d+32) then
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)))
else
tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double tmp;
if (a <= -6.6e+119) {
tmp = t_1;
} else if (a <= -1.55e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -1.8e+24) {
tmp = t_1;
} else if (a <= 2.65e+32) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -6.6e+119: tmp = t_1 elif a <= -1.55e+35: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif a <= -1.8e+24: tmp = t_1 elif a <= 2.65e+32: tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -6.6e+119) tmp = t_1; elseif (a <= -1.55e+35) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (a <= -1.8e+24) tmp = t_1; elseif (a <= 2.65e+32) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(Float64(i * j) + Float64(Float64(a * Float64(x * t)) / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -6.6e+119) tmp = t_1; elseif (a <= -1.55e+35) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (a <= -1.8e+24) tmp = t_1; elseif (a <= 2.65e+32) tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6.6e+119], t$95$1, If[LessEqual[a, -1.55e+35], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.8e+24], t$95$1, If[LessEqual[a, 2.65e+32], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(N[(i * j), $MachinePrecision] + N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.55 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.65 \cdot 10^{+32}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - \left(i \cdot j + \frac{a \cdot \left(x \cdot t\right)}{y}\right)\right)\\
\end{array}
\end{array}
if a < -6.6000000000000004e119 or -1.54999999999999993e35 < a < -1.79999999999999992e24Initial program 63.5%
Taylor expanded in a around -inf 64.0%
Taylor expanded in a around inf 74.0%
if -6.6000000000000004e119 < a < -1.54999999999999993e35Initial program 53.5%
+-commutative53.5%
fma-define61.2%
*-commutative61.2%
*-commutative61.2%
cancel-sign-sub-inv61.2%
cancel-sign-sub61.2%
sub-neg61.2%
sub-neg61.2%
*-commutative61.2%
fma-neg61.2%
*-commutative61.2%
distribute-rgt-neg-out61.2%
remove-double-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in t around 0 61.4%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*69.1%
distribute-rgt-in76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 84.5%
*-commutative84.5%
associate-*l*84.5%
*-commutative84.5%
Simplified84.5%
if -1.79999999999999992e24 < a < 2.65e32Initial program 81.1%
Taylor expanded in z around inf 74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
if 2.65e32 < a Initial program 64.4%
+-commutative64.4%
fma-define66.3%
*-commutative66.3%
*-commutative66.3%
cancel-sign-sub-inv66.3%
cancel-sign-sub66.3%
sub-neg66.3%
sub-neg66.3%
*-commutative66.3%
fma-neg66.3%
*-commutative66.3%
distribute-rgt-neg-out66.3%
remove-double-neg66.3%
*-commutative66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in y around -inf 59.2%
Simplified57.5%
Taylor expanded in x around inf 59.9%
associate-*r/59.9%
associate-*r*59.9%
mul-1-neg59.9%
Simplified59.9%
Final simplification71.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -1.25e+167)
t_1
(if (<= t -1.35e-250)
(* i (* y (- j)))
(if (<= t 2.4e-294)
(* z (* c (- b)))
(if (<= t 6.5e-16)
(* y (* x z))
(if (<= t 8e+92) (* c (* z (- b))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -1.25e+167) {
tmp = t_1;
} else if (t <= -1.35e-250) {
tmp = i * (y * -j);
} else if (t <= 2.4e-294) {
tmp = z * (c * -b);
} else if (t <= 6.5e-16) {
tmp = y * (x * z);
} else if (t <= 8e+92) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-1.25d+167)) then
tmp = t_1
else if (t <= (-1.35d-250)) then
tmp = i * (y * -j)
else if (t <= 2.4d-294) then
tmp = z * (c * -b)
else if (t <= 6.5d-16) then
tmp = y * (x * z)
else if (t <= 8d+92) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -1.25e+167) {
tmp = t_1;
} else if (t <= -1.35e-250) {
tmp = i * (y * -j);
} else if (t <= 2.4e-294) {
tmp = z * (c * -b);
} else if (t <= 6.5e-16) {
tmp = y * (x * z);
} else if (t <= 8e+92) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -1.25e+167: tmp = t_1 elif t <= -1.35e-250: tmp = i * (y * -j) elif t <= 2.4e-294: tmp = z * (c * -b) elif t <= 6.5e-16: tmp = y * (x * z) elif t <= 8e+92: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -1.25e+167) tmp = t_1; elseif (t <= -1.35e-250) tmp = Float64(i * Float64(y * Float64(-j))); elseif (t <= 2.4e-294) tmp = Float64(z * Float64(c * Float64(-b))); elseif (t <= 6.5e-16) tmp = Float64(y * Float64(x * z)); elseif (t <= 8e+92) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -1.25e+167) tmp = t_1; elseif (t <= -1.35e-250) tmp = i * (y * -j); elseif (t <= 2.4e-294) tmp = z * (c * -b); elseif (t <= 6.5e-16) tmp = y * (x * z); elseif (t <= 8e+92) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.25e+167], t$95$1, If[LessEqual[t, -1.35e-250], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e-294], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.5e-16], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8e+92], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -1.25 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.35 \cdot 10^{-250}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{-294}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;t \leq 6.5 \cdot 10^{-16}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 8 \cdot 10^{+92}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.2499999999999999e167 or 8.0000000000000003e92 < t Initial program 65.9%
+-commutative65.9%
fma-define67.1%
*-commutative67.1%
*-commutative67.1%
cancel-sign-sub-inv67.1%
cancel-sign-sub67.1%
sub-neg67.1%
sub-neg67.1%
*-commutative67.1%
fma-neg68.4%
*-commutative68.4%
distribute-rgt-neg-out68.4%
remove-double-neg68.4%
*-commutative68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in c around inf 48.2%
Taylor expanded in j around inf 40.8%
*-commutative40.8%
Simplified40.8%
if -1.2499999999999999e167 < t < -1.35000000000000001e-250Initial program 77.4%
Taylor expanded in i around inf 45.6%
*-commutative45.6%
associate-*r*47.0%
Simplified47.0%
Taylor expanded in y around inf 32.6%
associate-*r*32.6%
neg-mul-132.6%
*-commutative32.6%
Simplified32.6%
if -1.35000000000000001e-250 < t < 2.39999999999999997e-294Initial program 79.3%
+-commutative79.3%
fma-define79.3%
*-commutative79.3%
*-commutative79.3%
cancel-sign-sub-inv79.3%
cancel-sign-sub79.3%
sub-neg79.3%
sub-neg79.3%
*-commutative79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-out79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in c around inf 51.3%
Taylor expanded in b around inf 51.4%
mul-1-neg51.4%
+-commutative51.4%
unsub-neg51.4%
associate-/l*51.4%
associate-/l*51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in b around inf 51.4%
mul-1-neg51.4%
associate-*r*58.1%
Simplified58.1%
if 2.39999999999999997e-294 < t < 6.50000000000000011e-16Initial program 79.4%
+-commutative79.4%
fma-define79.4%
*-commutative79.4%
*-commutative79.4%
cancel-sign-sub-inv79.4%
cancel-sign-sub79.4%
sub-neg79.4%
sub-neg79.4%
*-commutative79.4%
fma-neg79.4%
*-commutative79.4%
distribute-rgt-neg-out79.4%
remove-double-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in y around inf 53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in z around inf 37.8%
*-commutative37.8%
Simplified37.8%
if 6.50000000000000011e-16 < t < 8.0000000000000003e92Initial program 73.9%
+-commutative73.9%
fma-define73.9%
*-commutative73.9%
*-commutative73.9%
cancel-sign-sub-inv73.9%
cancel-sign-sub73.9%
sub-neg73.9%
sub-neg73.9%
*-commutative73.9%
fma-neg73.9%
*-commutative73.9%
distribute-rgt-neg-out73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in c around inf 43.2%
Taylor expanded in j around 0 36.4%
neg-mul-136.4%
distribute-lft-neg-in36.4%
*-commutative36.4%
Simplified36.4%
Final simplification38.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= i -8.6e+214)
(* a (* b i))
(if (<= i -9.8e-7)
(* b (* z (- c)))
(if (<= i 5.4e-263)
t_1
(if (<= i 1.55e-169)
(* c (* z (- b)))
(if (<= i 3.1e-77) t_1 (* (* i j) (- y)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (i <= -8.6e+214) {
tmp = a * (b * i);
} else if (i <= -9.8e-7) {
tmp = b * (z * -c);
} else if (i <= 5.4e-263) {
tmp = t_1;
} else if (i <= 1.55e-169) {
tmp = c * (z * -b);
} else if (i <= 3.1e-77) {
tmp = t_1;
} else {
tmp = (i * j) * -y;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (i <= (-8.6d+214)) then
tmp = a * (b * i)
else if (i <= (-9.8d-7)) then
tmp = b * (z * -c)
else if (i <= 5.4d-263) then
tmp = t_1
else if (i <= 1.55d-169) then
tmp = c * (z * -b)
else if (i <= 3.1d-77) then
tmp = t_1
else
tmp = (i * j) * -y
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (i <= -8.6e+214) {
tmp = a * (b * i);
} else if (i <= -9.8e-7) {
tmp = b * (z * -c);
} else if (i <= 5.4e-263) {
tmp = t_1;
} else if (i <= 1.55e-169) {
tmp = c * (z * -b);
} else if (i <= 3.1e-77) {
tmp = t_1;
} else {
tmp = (i * j) * -y;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if i <= -8.6e+214: tmp = a * (b * i) elif i <= -9.8e-7: tmp = b * (z * -c) elif i <= 5.4e-263: tmp = t_1 elif i <= 1.55e-169: tmp = c * (z * -b) elif i <= 3.1e-77: tmp = t_1 else: tmp = (i * j) * -y return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (i <= -8.6e+214) tmp = Float64(a * Float64(b * i)); elseif (i <= -9.8e-7) tmp = Float64(b * Float64(z * Float64(-c))); elseif (i <= 5.4e-263) tmp = t_1; elseif (i <= 1.55e-169) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 3.1e-77) tmp = t_1; else tmp = Float64(Float64(i * j) * Float64(-y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (i <= -8.6e+214) tmp = a * (b * i); elseif (i <= -9.8e-7) tmp = b * (z * -c); elseif (i <= 5.4e-263) tmp = t_1; elseif (i <= 1.55e-169) tmp = c * (z * -b); elseif (i <= 3.1e-77) tmp = t_1; else tmp = (i * j) * -y; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -8.6e+214], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -9.8e-7], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.4e-263], t$95$1, If[LessEqual[i, 1.55e-169], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.1e-77], t$95$1, N[(N[(i * j), $MachinePrecision] * (-y)), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;i \leq -8.6 \cdot 10^{+214}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -9.8 \cdot 10^{-7}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;i \leq 5.4 \cdot 10^{-263}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{-169}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 3.1 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(-y\right)\\
\end{array}
\end{array}
if i < -8.59999999999999966e214Initial program 52.1%
Taylor expanded in i around inf 64.8%
*-commutative64.8%
associate-*r*64.6%
Simplified64.6%
Taylor expanded in b around inf 60.6%
Taylor expanded in b around inf 49.2%
if -8.59999999999999966e214 < i < -9.7999999999999993e-7Initial program 71.3%
+-commutative71.3%
fma-define74.2%
*-commutative74.2%
*-commutative74.2%
cancel-sign-sub-inv74.2%
cancel-sign-sub74.2%
sub-neg74.2%
sub-neg74.2%
*-commutative74.2%
fma-neg74.2%
*-commutative74.2%
distribute-rgt-neg-out74.2%
remove-double-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in c around inf 52.6%
Taylor expanded in b around inf 52.5%
mul-1-neg52.5%
+-commutative52.5%
unsub-neg52.5%
associate-/l*55.3%
associate-/l*55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in j around 0 39.0%
neg-mul-139.0%
distribute-lft-neg-in39.0%
Simplified39.0%
if -9.7999999999999993e-7 < i < 5.40000000000000007e-263 or 1.5500000000000001e-169 < i < 3.10000000000000008e-77Initial program 80.7%
+-commutative80.7%
fma-define81.7%
*-commutative81.7%
*-commutative81.7%
cancel-sign-sub-inv81.7%
cancel-sign-sub81.7%
sub-neg81.7%
sub-neg81.7%
*-commutative81.7%
fma-neg81.7%
*-commutative81.7%
distribute-rgt-neg-out81.7%
remove-double-neg81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in y around inf 39.9%
+-commutative39.9%
mul-1-neg39.9%
unsub-neg39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in z around inf 36.1%
*-commutative36.1%
Simplified36.1%
if 5.40000000000000007e-263 < i < 1.5500000000000001e-169Initial program 79.2%
+-commutative79.2%
fma-define79.2%
*-commutative79.2%
*-commutative79.2%
cancel-sign-sub-inv79.2%
cancel-sign-sub79.2%
sub-neg79.2%
sub-neg79.2%
*-commutative79.2%
fma-neg79.2%
*-commutative79.2%
distribute-rgt-neg-out79.2%
remove-double-neg79.2%
*-commutative79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in c around inf 63.6%
Taylor expanded in j around 0 48.1%
neg-mul-148.1%
distribute-lft-neg-in48.1%
*-commutative48.1%
Simplified48.1%
if 3.10000000000000008e-77 < i Initial program 72.2%
+-commutative72.2%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
cancel-sign-sub-inv72.2%
cancel-sign-sub72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
fma-neg73.5%
*-commutative73.5%
distribute-rgt-neg-out73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in y around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in z around 0 33.0%
mul-1-neg33.0%
distribute-lft-neg-out33.0%
*-commutative33.0%
Simplified33.0%
Final simplification37.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= y -2.3e-29)
t_1
(if (<= y -4.8e-246)
(* c (* t j))
(if (<= y 2.3e-292)
(* a (* b i))
(if (<= y 0.00076)
(* z (* c (- b)))
(if (<= y 1.1e+134) (* (* y 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 = y * (x * z);
double tmp;
if (y <= -2.3e-29) {
tmp = t_1;
} else if (y <= -4.8e-246) {
tmp = c * (t * j);
} else if (y <= 2.3e-292) {
tmp = a * (b * i);
} else if (y <= 0.00076) {
tmp = z * (c * -b);
} else if (y <= 1.1e+134) {
tmp = (y * 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 = y * (x * z)
if (y <= (-2.3d-29)) then
tmp = t_1
else if (y <= (-4.8d-246)) then
tmp = c * (t * j)
else if (y <= 2.3d-292) then
tmp = a * (b * i)
else if (y <= 0.00076d0) then
tmp = z * (c * -b)
else if (y <= 1.1d+134) then
tmp = (y * 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 = y * (x * z);
double tmp;
if (y <= -2.3e-29) {
tmp = t_1;
} else if (y <= -4.8e-246) {
tmp = c * (t * j);
} else if (y <= 2.3e-292) {
tmp = a * (b * i);
} else if (y <= 0.00076) {
tmp = z * (c * -b);
} else if (y <= 1.1e+134) {
tmp = (y * i) * -j;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if y <= -2.3e-29: tmp = t_1 elif y <= -4.8e-246: tmp = c * (t * j) elif y <= 2.3e-292: tmp = a * (b * i) elif y <= 0.00076: tmp = z * (c * -b) elif y <= 1.1e+134: tmp = (y * i) * -j else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (y <= -2.3e-29) tmp = t_1; elseif (y <= -4.8e-246) tmp = Float64(c * Float64(t * j)); elseif (y <= 2.3e-292) tmp = Float64(a * Float64(b * i)); elseif (y <= 0.00076) tmp = Float64(z * Float64(c * Float64(-b))); elseif (y <= 1.1e+134) tmp = Float64(Float64(y * i) * Float64(-j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (y <= -2.3e-29) tmp = t_1; elseif (y <= -4.8e-246) tmp = c * (t * j); elseif (y <= 2.3e-292) tmp = a * (b * i); elseif (y <= 0.00076) tmp = z * (c * -b); elseif (y <= 1.1e+134) tmp = (y * 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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.3e-29], t$95$1, If[LessEqual[y, -4.8e-246], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e-292], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.00076], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+134], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;y \leq -2.3 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.8 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{-292}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 0.00076:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+134}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.29999999999999991e-29 or 1.1e134 < y Initial program 61.5%
+-commutative61.5%
fma-define62.5%
*-commutative62.5%
*-commutative62.5%
cancel-sign-sub-inv62.5%
cancel-sign-sub62.5%
sub-neg62.5%
sub-neg62.5%
*-commutative62.5%
fma-neg63.4%
*-commutative63.4%
distribute-rgt-neg-out63.4%
remove-double-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in y around inf 65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in z around inf 40.7%
*-commutative40.7%
Simplified40.7%
if -2.29999999999999991e-29 < y < -4.7999999999999996e-246Initial program 88.9%
+-commutative88.9%
fma-define88.9%
*-commutative88.9%
*-commutative88.9%
cancel-sign-sub-inv88.9%
cancel-sign-sub88.9%
sub-neg88.9%
sub-neg88.9%
*-commutative88.9%
fma-neg88.9%
*-commutative88.9%
distribute-rgt-neg-out88.9%
remove-double-neg88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in c around inf 46.4%
Taylor expanded in j around inf 30.3%
*-commutative30.3%
Simplified30.3%
if -4.7999999999999996e-246 < y < 2.2999999999999999e-292Initial program 74.4%
Taylor expanded in i around inf 58.3%
*-commutative58.3%
associate-*r*50.2%
Simplified50.2%
Taylor expanded in b around inf 46.0%
Taylor expanded in b around inf 44.9%
if 2.2999999999999999e-292 < y < 7.6000000000000004e-4Initial program 88.0%
+-commutative88.0%
fma-define88.0%
*-commutative88.0%
*-commutative88.0%
cancel-sign-sub-inv88.0%
cancel-sign-sub88.0%
sub-neg88.0%
sub-neg88.0%
*-commutative88.0%
fma-neg88.0%
*-commutative88.0%
distribute-rgt-neg-out88.0%
remove-double-neg88.0%
*-commutative88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in c around inf 46.2%
Taylor expanded in b around inf 47.7%
mul-1-neg47.7%
+-commutative47.7%
unsub-neg47.7%
associate-/l*47.7%
associate-/l*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in b around inf 33.8%
mul-1-neg33.8%
associate-*r*35.3%
Simplified35.3%
if 7.6000000000000004e-4 < y < 1.1e134Initial program 72.1%
+-commutative72.1%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
cancel-sign-sub-inv75.3%
cancel-sign-sub75.3%
sub-neg75.3%
sub-neg75.3%
*-commutative75.3%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around 0 58.6%
associate-*r*58.5%
associate-*r*58.5%
*-commutative58.5%
associate-*r*61.6%
distribute-rgt-in64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in j around inf 41.7%
mul-1-neg41.7%
associate-*r*41.6%
*-commutative41.6%
associate-*r*47.7%
distribute-rgt-neg-out47.7%
distribute-rgt-neg-in47.7%
Simplified47.7%
Final simplification39.2%
(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 (<= j -3e-72)
(+ t_2 (* z (- (* x y) (* b c))))
(if (<= j 9.5e+18) (- (- (* c (* t j)) t_1) (* b (* z c))) (- 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 (j <= -3e-72) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else if (j <= 9.5e+18) {
tmp = ((c * (t * j)) - t_1) - (b * (z * c));
} 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 (j <= (-3d-72)) then
tmp = t_2 + (z * ((x * y) - (b * c)))
else if (j <= 9.5d+18) then
tmp = ((c * (t * j)) - t_1) - (b * (z * c))
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 (j <= -3e-72) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else if (j <= 9.5e+18) {
tmp = ((c * (t * j)) - t_1) - (b * (z * c));
} 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 j <= -3e-72: tmp = t_2 + (z * ((x * y) - (b * c))) elif j <= 9.5e+18: tmp = ((c * (t * j)) - t_1) - (b * (z * c)) 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 (j <= -3e-72) tmp = Float64(t_2 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (j <= 9.5e+18) tmp = Float64(Float64(Float64(c * Float64(t * j)) - t_1) - Float64(b * Float64(z * c))); 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 (j <= -3e-72) tmp = t_2 + (z * ((x * y) - (b * c))); elseif (j <= 9.5e+18) tmp = ((c * (t * j)) - t_1) - (b * (z * c)); 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[j, -3e-72], N[(t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.5e+18], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(b * N[(z * c), $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}\;j \leq -3 \cdot 10^{-72}:\\
\;\;\;\;t\_2 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{+18}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - t\_1\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if j < -3e-72Initial program 73.1%
Taylor expanded in z around inf 74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
if -3e-72 < j < 9.5e18Initial program 72.4%
+-commutative72.4%
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-neg72.4%
*-commutative72.4%
distribute-rgt-neg-out72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around 0 72.4%
if 9.5e18 < j Initial program 78.4%
Taylor expanded in b around -inf 71.9%
associate-*r*71.9%
neg-mul-171.9%
distribute-lft-out--71.9%
associate-/l*75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in b around 0 70.8%
Final simplification72.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -2.65e+32)
t_2
(if (<= y -7.8e-249)
t_1
(if (<= y 1.05e-203)
(* c (- (* t j) (* z b)))
(if (<= y 2.7e+67) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.65e+32) {
tmp = t_2;
} else if (y <= -7.8e-249) {
tmp = t_1;
} else if (y <= 1.05e-203) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 2.7e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-2.65d+32)) then
tmp = t_2
else if (y <= (-7.8d-249)) then
tmp = t_1
else if (y <= 1.05d-203) then
tmp = c * ((t * j) - (z * b))
else if (y <= 2.7d+67) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.65e+32) {
tmp = t_2;
} else if (y <= -7.8e-249) {
tmp = t_1;
} else if (y <= 1.05e-203) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 2.7e+67) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.65e+32: tmp = t_2 elif y <= -7.8e-249: tmp = t_1 elif y <= 1.05e-203: tmp = c * ((t * j) - (z * b)) elif y <= 2.7e+67: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.65e+32) tmp = t_2; elseif (y <= -7.8e-249) tmp = t_1; elseif (y <= 1.05e-203) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 2.7e+67) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.65e+32) tmp = t_2; elseif (y <= -7.8e-249) tmp = t_1; elseif (y <= 1.05e-203) tmp = c * ((t * j) - (z * b)); elseif (y <= 2.7e+67) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.65e+32], t$95$2, If[LessEqual[y, -7.8e-249], t$95$1, If[LessEqual[y, 1.05e-203], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+67], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.65 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -7.8 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-203}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.65e32 or 2.6999999999999999e67 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -2.65e32 < y < -7.7999999999999998e-249 or 1.05000000000000001e-203 < y < 2.6999999999999999e67Initial program 85.9%
+-commutative85.9%
fma-define86.9%
*-commutative86.9%
*-commutative86.9%
cancel-sign-sub-inv86.9%
cancel-sign-sub86.9%
sub-neg86.9%
sub-neg86.9%
*-commutative86.9%
fma-neg86.9%
*-commutative86.9%
distribute-rgt-neg-out86.9%
remove-double-neg86.9%
*-commutative86.9%
*-commutative86.9%
Simplified86.9%
Taylor expanded in t around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
Simplified54.8%
if -7.7999999999999998e-249 < y < 1.05000000000000001e-203Initial program 83.5%
+-commutative83.5%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
sub-neg83.5%
sub-neg83.5%
*-commutative83.5%
fma-neg83.5%
*-commutative83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in c around inf 58.2%
Final simplification61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -4e+174)
t_2
(if (<= i -4.3e-73)
t_1
(if (<= i 4.9e-257)
(* t (- (* c j) (* x a)))
(if (<= i 9.5e-134) 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -4e+174) {
tmp = t_2;
} else if (i <= -4.3e-73) {
tmp = t_1;
} else if (i <= 4.9e-257) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 9.5e-134) {
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 = i * ((a * b) - (y * j))
if (i <= (-4d+174)) then
tmp = t_2
else if (i <= (-4.3d-73)) then
tmp = t_1
else if (i <= 4.9d-257) then
tmp = t * ((c * j) - (x * a))
else if (i <= 9.5d-134) 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -4e+174) {
tmp = t_2;
} else if (i <= -4.3e-73) {
tmp = t_1;
} else if (i <= 4.9e-257) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 9.5e-134) {
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 = i * ((a * b) - (y * j)) tmp = 0 if i <= -4e+174: tmp = t_2 elif i <= -4.3e-73: tmp = t_1 elif i <= 4.9e-257: tmp = t * ((c * j) - (x * a)) elif i <= 9.5e-134: 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(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -4e+174) tmp = t_2; elseif (i <= -4.3e-73) tmp = t_1; elseif (i <= 4.9e-257) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 9.5e-134) 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 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -4e+174) tmp = t_2; elseif (i <= -4.3e-73) tmp = t_1; elseif (i <= 4.9e-257) tmp = t * ((c * j) - (x * a)); elseif (i <= 9.5e-134) 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4e+174], t$95$2, If[LessEqual[i, -4.3e-73], t$95$1, If[LessEqual[i, 4.9e-257], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.5e-134], 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 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4 \cdot 10^{+174}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.3 \cdot 10^{-73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.9 \cdot 10^{-257}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{-134}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -4.00000000000000028e174 or 9.5000000000000008e-134 < i Initial program 69.8%
Taylor expanded in i around inf 54.0%
*-commutative54.0%
associate-*r*54.1%
Simplified54.1%
Taylor expanded in i around inf 52.6%
+-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
Simplified52.6%
if -4.00000000000000028e174 < i < -4.2999999999999999e-73 or 4.90000000000000011e-257 < i < 9.5000000000000008e-134Initial program 75.2%
+-commutative75.2%
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-neg75.2%
*-commutative75.2%
distribute-rgt-neg-out75.2%
remove-double-neg75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in c around inf 51.8%
if -4.2999999999999999e-73 < i < 4.90000000000000011e-257Initial program 80.8%
+-commutative80.8%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
cancel-sign-sub-inv80.8%
cancel-sign-sub80.8%
sub-neg80.8%
sub-neg80.8%
*-commutative80.8%
fma-neg80.8%
*-commutative80.8%
distribute-rgt-neg-out80.8%
remove-double-neg80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in t around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
Simplified58.1%
Final simplification53.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -1.2e-136)
t_2
(if (<= c 6.4e-298)
t_1
(if (<= c 5e-222) (* a (* b i)) (if (<= c 6.5e-113) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.2e-136) {
tmp = t_2;
} else if (c <= 6.4e-298) {
tmp = t_1;
} else if (c <= 5e-222) {
tmp = a * (b * i);
} else if (c <= 6.5e-113) {
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 = c * ((t * j) - (z * b))
if (c <= (-1.2d-136)) then
tmp = t_2
else if (c <= 6.4d-298) then
tmp = t_1
else if (c <= 5d-222) then
tmp = a * (b * i)
else if (c <= 6.5d-113) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -1.2e-136) {
tmp = t_2;
} else if (c <= 6.4e-298) {
tmp = t_1;
} else if (c <= 5e-222) {
tmp = a * (b * i);
} else if (c <= 6.5e-113) {
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 = c * ((t * j) - (z * b)) tmp = 0 if c <= -1.2e-136: tmp = t_2 elif c <= 6.4e-298: tmp = t_1 elif c <= 5e-222: tmp = a * (b * i) elif c <= 6.5e-113: 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(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.2e-136) tmp = t_2; elseif (c <= 6.4e-298) tmp = t_1; elseif (c <= 5e-222) tmp = Float64(a * Float64(b * i)); elseif (c <= 6.5e-113) 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 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -1.2e-136) tmp = t_2; elseif (c <= 6.4e-298) tmp = t_1; elseif (c <= 5e-222) tmp = a * (b * i); elseif (c <= 6.5e-113) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.2e-136], t$95$2, If[LessEqual[c, 6.4e-298], t$95$1, If[LessEqual[c, 5e-222], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.5e-113], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.2 \cdot 10^{-136}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 6.4 \cdot 10^{-298}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 5 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 6.5 \cdot 10^{-113}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.1999999999999999e-136 or 6.49999999999999979e-113 < c Initial program 72.8%
+-commutative72.8%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
cancel-sign-sub-inv73.4%
cancel-sign-sub73.4%
sub-neg73.4%
sub-neg73.4%
*-commutative73.4%
fma-neg73.4%
*-commutative73.4%
distribute-rgt-neg-out73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in c around inf 50.7%
if -1.1999999999999999e-136 < c < 6.39999999999999995e-298 or 5.00000000000000008e-222 < c < 6.49999999999999979e-113Initial program 76.9%
+-commutative76.9%
fma-define78.4%
*-commutative78.4%
*-commutative78.4%
cancel-sign-sub-inv78.4%
cancel-sign-sub78.4%
sub-neg78.4%
sub-neg78.4%
*-commutative78.4%
fma-neg78.4%
*-commutative78.4%
distribute-rgt-neg-out78.4%
remove-double-neg78.4%
*-commutative78.4%
*-commutative78.4%
Simplified78.4%
Taylor expanded in y around inf 58.6%
+-commutative58.6%
mul-1-neg58.6%
unsub-neg58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in z around inf 38.0%
*-commutative38.0%
Simplified38.0%
if 6.39999999999999995e-298 < c < 5.00000000000000008e-222Initial program 75.1%
Taylor expanded in i around inf 65.5%
*-commutative65.5%
associate-*r*60.9%
Simplified60.9%
Taylor expanded in b around inf 46.9%
Taylor expanded in b around inf 38.2%
Final simplification46.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= y -6.2e-31)
t_1
(if (<= y -2.05e-246)
(* c (* t j))
(if (<= y 1.7e-290)
(* a (* b i))
(if (<= y 7.6e-19) (* z (* c (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (y <= -6.2e-31) {
tmp = t_1;
} else if (y <= -2.05e-246) {
tmp = c * (t * j);
} else if (y <= 1.7e-290) {
tmp = a * (b * i);
} else if (y <= 7.6e-19) {
tmp = z * (c * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (y <= (-6.2d-31)) then
tmp = t_1
else if (y <= (-2.05d-246)) then
tmp = c * (t * j)
else if (y <= 1.7d-290) then
tmp = a * (b * i)
else if (y <= 7.6d-19) then
tmp = z * (c * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (y <= -6.2e-31) {
tmp = t_1;
} else if (y <= -2.05e-246) {
tmp = c * (t * j);
} else if (y <= 1.7e-290) {
tmp = a * (b * i);
} else if (y <= 7.6e-19) {
tmp = z * (c * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if y <= -6.2e-31: tmp = t_1 elif y <= -2.05e-246: tmp = c * (t * j) elif y <= 1.7e-290: tmp = a * (b * i) elif y <= 7.6e-19: tmp = z * (c * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (y <= -6.2e-31) tmp = t_1; elseif (y <= -2.05e-246) tmp = Float64(c * Float64(t * j)); elseif (y <= 1.7e-290) tmp = Float64(a * Float64(b * i)); elseif (y <= 7.6e-19) tmp = Float64(z * Float64(c * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (y <= -6.2e-31) tmp = t_1; elseif (y <= -2.05e-246) tmp = c * (t * j); elseif (y <= 1.7e-290) tmp = a * (b * i); elseif (y <= 7.6e-19) tmp = z * (c * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.2e-31], t$95$1, If[LessEqual[y, -2.05e-246], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-290], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.6e-19], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;y \leq -6.2 \cdot 10^{-31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-290}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{-19}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.19999999999999999e-31 or 7.6e-19 < y Initial program 64.8%
+-commutative64.8%
fma-define66.2%
*-commutative66.2%
*-commutative66.2%
cancel-sign-sub-inv66.2%
cancel-sign-sub66.2%
sub-neg66.2%
sub-neg66.2%
*-commutative66.2%
fma-neg66.9%
*-commutative66.9%
distribute-rgt-neg-out66.9%
remove-double-neg66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in y around inf 63.8%
+-commutative63.8%
mul-1-neg63.8%
unsub-neg63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in z around inf 36.6%
*-commutative36.6%
Simplified36.6%
if -6.19999999999999999e-31 < y < -2.04999999999999993e-246Initial program 88.9%
+-commutative88.9%
fma-define88.9%
*-commutative88.9%
*-commutative88.9%
cancel-sign-sub-inv88.9%
cancel-sign-sub88.9%
sub-neg88.9%
sub-neg88.9%
*-commutative88.9%
fma-neg88.9%
*-commutative88.9%
distribute-rgt-neg-out88.9%
remove-double-neg88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in c around inf 46.4%
Taylor expanded in j around inf 30.3%
*-commutative30.3%
Simplified30.3%
if -2.04999999999999993e-246 < y < 1.69999999999999992e-290Initial program 74.4%
Taylor expanded in i around inf 58.3%
*-commutative58.3%
associate-*r*50.2%
Simplified50.2%
Taylor expanded in b around inf 46.0%
Taylor expanded in b around inf 44.9%
if 1.69999999999999992e-290 < y < 7.6e-19Initial program 87.4%
+-commutative87.4%
fma-define87.4%
*-commutative87.4%
*-commutative87.4%
cancel-sign-sub-inv87.4%
cancel-sign-sub87.4%
sub-neg87.4%
sub-neg87.4%
*-commutative87.4%
fma-neg87.4%
*-commutative87.4%
distribute-rgt-neg-out87.4%
remove-double-neg87.4%
*-commutative87.4%
*-commutative87.4%
Simplified87.4%
Taylor expanded in c around inf 46.7%
Taylor expanded in b around inf 48.3%
mul-1-neg48.3%
+-commutative48.3%
unsub-neg48.3%
associate-/l*48.3%
associate-/l*49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in b around inf 35.5%
mul-1-neg35.5%
associate-*r*37.0%
Simplified37.0%
Final simplification36.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= x -1.35e+45)
t_1
(if (<= x -9.8e-110)
(* a (* b i))
(if (<= x 1.3e-34) (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (x <= -1.35e+45) {
tmp = t_1;
} else if (x <= -9.8e-110) {
tmp = a * (b * i);
} else if (x <= 1.3e-34) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (x <= (-1.35d+45)) then
tmp = t_1
else if (x <= (-9.8d-110)) then
tmp = a * (b * i)
else if (x <= 1.3d-34) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (x <= -1.35e+45) {
tmp = t_1;
} else if (x <= -9.8e-110) {
tmp = a * (b * i);
} else if (x <= 1.3e-34) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if x <= -1.35e+45: tmp = t_1 elif x <= -9.8e-110: tmp = a * (b * i) elif x <= 1.3e-34: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (x <= -1.35e+45) tmp = t_1; elseif (x <= -9.8e-110) tmp = Float64(a * Float64(b * i)); elseif (x <= 1.3e-34) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (x <= -1.35e+45) tmp = t_1; elseif (x <= -9.8e-110) tmp = a * (b * i); elseif (x <= 1.3e-34) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.35e+45], t$95$1, If[LessEqual[x, -9.8e-110], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.3e-34], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;x \leq -1.35 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -9.8 \cdot 10^{-110}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 1.3 \cdot 10^{-34}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.34999999999999992e45 or 1.3e-34 < x Initial program 76.0%
+-commutative76.0%
fma-define77.6%
*-commutative77.6%
*-commutative77.6%
cancel-sign-sub-inv77.6%
cancel-sign-sub77.6%
sub-neg77.6%
sub-neg77.6%
*-commutative77.6%
fma-neg77.6%
*-commutative77.6%
distribute-rgt-neg-out77.6%
remove-double-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in y around inf 50.5%
+-commutative50.5%
mul-1-neg50.5%
unsub-neg50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in z around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -1.34999999999999992e45 < x < -9.7999999999999995e-110Initial program 63.0%
Taylor expanded in i around inf 47.8%
*-commutative47.8%
associate-*r*42.4%
Simplified42.4%
Taylor expanded in b around inf 40.0%
Taylor expanded in b around inf 33.4%
if -9.7999999999999995e-110 < x < 1.3e-34Initial program 75.3%
+-commutative75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
cancel-sign-sub-inv75.3%
cancel-sign-sub75.3%
sub-neg75.3%
sub-neg75.3%
*-commutative75.3%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in c around inf 51.1%
Taylor expanded in j around inf 27.4%
*-commutative27.4%
Simplified27.4%
Final simplification33.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.85e+174) (not (<= i 9e-134))) (* i (- (* a b) (* y j))) (* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.85e+174) || !(i <= 9e-134)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-1.85d+174)) .or. (.not. (i <= 9d-134))) then
tmp = i * ((a * b) - (y * j))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.85e+174) || !(i <= 9e-134)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.85e+174) or not (i <= 9e-134): tmp = i * ((a * b) - (y * j)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.85e+174) || !(i <= 9e-134)) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -1.85e+174) || ~((i <= 9e-134))) tmp = i * ((a * b) - (y * j)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.85e+174], N[Not[LessEqual[i, 9e-134]], $MachinePrecision]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.85 \cdot 10^{+174} \lor \neg \left(i \leq 9 \cdot 10^{-134}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if i < -1.8500000000000001e174 or 9.000000000000001e-134 < i Initial program 69.8%
Taylor expanded in i around inf 54.0%
*-commutative54.0%
associate-*r*54.1%
Simplified54.1%
Taylor expanded in i around inf 52.6%
+-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
Simplified52.6%
if -1.8500000000000001e174 < i < 9.000000000000001e-134Initial 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 c around inf 46.9%
Final simplification49.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -3e-11) (not (<= t 1.7e+62))) (* c (* t j)) (* y (* x z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -3e-11) || !(t <= 1.7e+62)) {
tmp = c * (t * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-3d-11)) .or. (.not. (t <= 1.7d+62))) then
tmp = c * (t * j)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -3e-11) || !(t <= 1.7e+62)) {
tmp = c * (t * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -3e-11) or not (t <= 1.7e+62): tmp = c * (t * j) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -3e-11) || !(t <= 1.7e+62)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -3e-11) || ~((t <= 1.7e+62))) tmp = c * (t * j); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -3e-11], N[Not[LessEqual[t, 1.7e+62]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{-11} \lor \neg \left(t \leq 1.7 \cdot 10^{+62}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if t < -3e-11 or 1.70000000000000007e62 < t Initial program 67.0%
+-commutative67.0%
fma-define67.9%
*-commutative67.9%
*-commutative67.9%
cancel-sign-sub-inv67.9%
cancel-sign-sub67.9%
sub-neg67.9%
sub-neg67.9%
*-commutative67.9%
fma-neg68.8%
*-commutative68.8%
distribute-rgt-neg-out68.8%
remove-double-neg68.8%
*-commutative68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in c around inf 44.6%
Taylor expanded in j around inf 34.9%
*-commutative34.9%
Simplified34.9%
if -3e-11 < t < 1.70000000000000007e62Initial program 79.7%
+-commutative79.7%
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 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in z around inf 31.3%
*-commutative31.3%
Simplified31.3%
Final simplification32.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -6.6e+21) (not (<= b 9e-72))) (* 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 ((b <= -6.6e+21) || !(b <= 9e-72)) {
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 ((b <= (-6.6d+21)) .or. (.not. (b <= 9d-72))) 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 ((b <= -6.6e+21) || !(b <= 9e-72)) {
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 (b <= -6.6e+21) or not (b <= 9e-72): 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 ((b <= -6.6e+21) || !(b <= 9e-72)) 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 ((b <= -6.6e+21) || ~((b <= 9e-72))) 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[b, -6.6e+21], N[Not[LessEqual[b, 9e-72]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -6.6 \cdot 10^{+21} \lor \neg \left(b \leq 9 \cdot 10^{-72}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -6.6e21 or 9e-72 < b Initial program 74.2%
Taylor expanded in i around inf 44.0%
*-commutative44.0%
associate-*r*43.3%
Simplified43.3%
Taylor expanded in b around inf 44.8%
Taylor expanded in b around inf 30.5%
if -6.6e21 < b < 9e-72Initial program 73.9%
+-commutative73.9%
fma-define74.8%
*-commutative74.8%
*-commutative74.8%
cancel-sign-sub-inv74.8%
cancel-sign-sub74.8%
sub-neg74.8%
sub-neg74.8%
*-commutative74.8%
fma-neg74.8%
*-commutative74.8%
distribute-rgt-neg-out74.8%
remove-double-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in c around inf 34.9%
Taylor expanded in j around inf 26.9%
*-commutative26.9%
Simplified26.9%
Final simplification28.8%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 74.1%
Taylor expanded in i around inf 43.7%
*-commutative43.7%
associate-*r*42.9%
Simplified42.9%
Taylor expanded in b around inf 40.5%
Taylor expanded in b around inf 18.3%
(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 2024091
(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)))))