
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<=
(+ (* j (- (* a c) (* y i))) (- t_1 (* b (- (* z c) (* t i)))))
INFINITY)
(fma b (- (* t i) (* z c)) (+ (* j (fma y (- i) (* a c))) t_1))
(* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if (((j * ((a * c) - (y * i))) + (t_1 - (b * ((z * c) - (t * i))))) <= ((double) INFINITY)) {
tmp = fma(b, ((t * i) - (z * c)), ((j * fma(y, -i, (a * c))) + t_1));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(t_1 - Float64(b * Float64(Float64(z * c) - Float64(t * i))))) <= Inf) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), Float64(Float64(j * fma(y, Float64(-i), Float64(a * c))) + t_1)); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(y * (-i) + N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \cdot \left(a \cdot c - y \cdot i\right) + \left(t_1 - b \cdot \left(z \cdot c - t \cdot i\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, j \cdot \mathsf{fma}\left(y, -i, a \cdot c\right) + t_1\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.5%
sub-neg92.5%
+-commutative92.5%
associate-+l+92.5%
distribute-rgt-neg-in92.5%
+-commutative92.5%
fma-def92.5%
sub-neg92.5%
+-commutative92.5%
distribute-neg-in92.5%
unsub-neg92.5%
remove-double-neg92.5%
*-commutative92.5%
Simplified92.5%
fma-udef92.5%
Applied egg-rr92.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 50.7%
Final simplification84.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y z) (* t a))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= (+ t_2 (- (* x t_1) (* b (- (* z c) (* t i))))) INFINITY)
(fma b (- (* t i) (* z c)) (fma x t_1 t_2))
(* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (y * z) - (t * a);
double t_2 = j * ((a * c) - (y * i));
double tmp;
if ((t_2 + ((x * t_1) - (b * ((z * c) - (t * i))))) <= ((double) INFINITY)) {
tmp = fma(b, ((t * i) - (z * c)), fma(x, t_1, t_2));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * z) - Float64(t * a)) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (Float64(t_2 + Float64(Float64(x * t_1) - Float64(b * Float64(Float64(z * c) - Float64(t * i))))) <= Inf) tmp = fma(b, Float64(Float64(t * i) - Float64(z * c)), fma(x, t_1, t_2)); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 + N[(N[(x * t$95$1), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1 + t$95$2), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot z - t \cdot a\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t_2 + \left(x \cdot t_1 - b \cdot \left(z \cdot c - t \cdot i\right)\right) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(b, t \cdot i - z \cdot c, \mathsf{fma}\left(x, t_1, t_2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.5%
sub-neg92.5%
+-commutative92.5%
associate-+l+92.5%
distribute-rgt-neg-in92.5%
+-commutative92.5%
fma-def92.5%
sub-neg92.5%
+-commutative92.5%
distribute-neg-in92.5%
unsub-neg92.5%
remove-double-neg92.5%
*-commutative92.5%
Simplified92.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 50.7%
Final simplification84.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* a c) (* y i)))
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i)))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 50.7%
Final simplification84.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (- (* c (* a j)) (* a (* x t))) (* b (- (* t i) (* z c)))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -2.7e+202)
t_3
(if (<= y -7.9e-91)
(- t_2 (* b (- (* z c) (* t i))))
(if (<= y 2.6e-33)
t_1
(if (<= y 4.2e+50)
(- t_2 (* b (* z c)))
(if (<= y 8e+210) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((c * (a * j)) - (a * (x * t))) + (b * ((t * i) - (z * c)));
double t_2 = x * ((y * z) - (t * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.7e+202) {
tmp = t_3;
} else if (y <= -7.9e-91) {
tmp = t_2 - (b * ((z * c) - (t * i)));
} else if (y <= 2.6e-33) {
tmp = t_1;
} else if (y <= 4.2e+50) {
tmp = t_2 - (b * (z * c));
} else if (y <= 8e+210) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = ((c * (a * j)) - (a * (x * t))) + (b * ((t * i) - (z * c)))
t_2 = x * ((y * z) - (t * a))
t_3 = y * ((x * z) - (i * j))
if (y <= (-2.7d+202)) then
tmp = t_3
else if (y <= (-7.9d-91)) then
tmp = t_2 - (b * ((z * c) - (t * i)))
else if (y <= 2.6d-33) then
tmp = t_1
else if (y <= 4.2d+50) then
tmp = t_2 - (b * (z * c))
else if (y <= 8d+210) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((c * (a * j)) - (a * (x * t))) + (b * ((t * i) - (z * c)));
double t_2 = x * ((y * z) - (t * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.7e+202) {
tmp = t_3;
} else if (y <= -7.9e-91) {
tmp = t_2 - (b * ((z * c) - (t * i)));
} else if (y <= 2.6e-33) {
tmp = t_1;
} else if (y <= 4.2e+50) {
tmp = t_2 - (b * (z * c));
} else if (y <= 8e+210) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((c * (a * j)) - (a * (x * t))) + (b * ((t * i) - (z * c))) t_2 = x * ((y * z) - (t * a)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.7e+202: tmp = t_3 elif y <= -7.9e-91: tmp = t_2 - (b * ((z * c) - (t * i))) elif y <= 2.6e-33: tmp = t_1 elif y <= 4.2e+50: tmp = t_2 - (b * (z * c)) elif y <= 8e+210: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(c * Float64(a * j)) - Float64(a * Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.7e+202) tmp = t_3; elseif (y <= -7.9e-91) tmp = Float64(t_2 - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); elseif (y <= 2.6e-33) tmp = t_1; elseif (y <= 4.2e+50) tmp = Float64(t_2 - Float64(b * Float64(z * c))); elseif (y <= 8e+210) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((c * (a * j)) - (a * (x * t))) + (b * ((t * i) - (z * c))); t_2 = x * ((y * z) - (t * a)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.7e+202) tmp = t_3; elseif (y <= -7.9e-91) tmp = t_2 - (b * ((z * c) - (t * i))); elseif (y <= 2.6e-33) tmp = t_1; elseif (y <= 4.2e+50) tmp = t_2 - (b * (z * c)); elseif (y <= 8e+210) 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[(N[(N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.7e+202], t$95$3, If[LessEqual[y, -7.9e-91], N[(t$95$2 - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e-33], t$95$1, If[LessEqual[y, 4.2e+50], N[(t$95$2 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8e+210], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(c \cdot \left(a \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{+202}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq -7.9 \cdot 10^{-91}:\\
\;\;\;\;t_2 - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-33}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{+50}:\\
\;\;\;\;t_2 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq 8 \cdot 10^{+210}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if y < -2.69999999999999995e202 or 7.99999999999999942e210 < y Initial program 51.9%
cancel-sign-sub51.9%
cancel-sign-sub-inv51.9%
*-commutative51.9%
remove-double-neg51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in y around inf 77.7%
*-commutative77.7%
mul-1-neg77.7%
unsub-neg77.7%
*-commutative77.7%
Simplified77.7%
if -2.69999999999999995e202 < y < -7.9e-91Initial program 77.2%
cancel-sign-sub77.2%
cancel-sign-sub-inv77.2%
*-commutative77.2%
remove-double-neg77.2%
*-commutative77.2%
Simplified77.2%
Taylor expanded in j around 0 69.6%
if -7.9e-91 < y < 2.59999999999999994e-33 or 4.1999999999999999e50 < y < 7.99999999999999942e210Initial program 78.2%
cancel-sign-sub78.2%
cancel-sign-sub-inv78.2%
*-commutative78.2%
remove-double-neg78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in y around 0 72.2%
if 2.59999999999999994e-33 < y < 4.1999999999999999e50Initial program 75.6%
cancel-sign-sub75.6%
cancel-sign-sub-inv75.6%
*-commutative75.6%
remove-double-neg75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in j around 0 67.3%
Taylor expanded in c around inf 71.5%
associate-*r*75.7%
Simplified75.7%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* i (* t b))))
(t_2 (* a (- (* c j) (* x t))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -9e+94)
t_3
(if (<= z -2.8e-220)
t_2
(if (<= z 7.4e-224)
t_1
(if (<= z 1.22e-113)
t_2
(if (<= z 9e-54)
t_1
(if (<= z 8e-15)
(* x (- (* y z) (* t a)))
(if (<= z 8.2e+125) 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 = (j * ((a * c) - (y * i))) + (i * (t * b));
double t_2 = a * ((c * j) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e+94) {
tmp = t_3;
} else if (z <= -2.8e-220) {
tmp = t_2;
} else if (z <= 7.4e-224) {
tmp = t_1;
} else if (z <= 1.22e-113) {
tmp = t_2;
} else if (z <= 9e-54) {
tmp = t_1;
} else if (z <= 8e-15) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 8.2e+125) {
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 = (j * ((a * c) - (y * i))) + (i * (t * b))
t_2 = a * ((c * j) - (x * t))
t_3 = z * ((x * y) - (b * c))
if (z <= (-9d+94)) then
tmp = t_3
else if (z <= (-2.8d-220)) then
tmp = t_2
else if (z <= 7.4d-224) then
tmp = t_1
else if (z <= 1.22d-113) then
tmp = t_2
else if (z <= 9d-54) then
tmp = t_1
else if (z <= 8d-15) then
tmp = x * ((y * z) - (t * a))
else if (z <= 8.2d+125) 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 = (j * ((a * c) - (y * i))) + (i * (t * b));
double t_2 = a * ((c * j) - (x * t));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e+94) {
tmp = t_3;
} else if (z <= -2.8e-220) {
tmp = t_2;
} else if (z <= 7.4e-224) {
tmp = t_1;
} else if (z <= 1.22e-113) {
tmp = t_2;
} else if (z <= 9e-54) {
tmp = t_1;
} else if (z <= 8e-15) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 8.2e+125) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (i * (t * b)) t_2 = a * ((c * j) - (x * t)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -9e+94: tmp = t_3 elif z <= -2.8e-220: tmp = t_2 elif z <= 7.4e-224: tmp = t_1 elif z <= 1.22e-113: tmp = t_2 elif z <= 9e-54: tmp = t_1 elif z <= 8e-15: tmp = x * ((y * z) - (t * a)) elif z <= 8.2e+125: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(i * Float64(t * b))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -9e+94) tmp = t_3; elseif (z <= -2.8e-220) tmp = t_2; elseif (z <= 7.4e-224) tmp = t_1; elseif (z <= 1.22e-113) tmp = t_2; elseif (z <= 9e-54) tmp = t_1; elseif (z <= 8e-15) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= 8.2e+125) 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 = (j * ((a * c) - (y * i))) + (i * (t * b)); t_2 = a * ((c * j) - (x * t)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -9e+94) tmp = t_3; elseif (z <= -2.8e-220) tmp = t_2; elseif (z <= 7.4e-224) tmp = t_1; elseif (z <= 1.22e-113) tmp = t_2; elseif (z <= 9e-54) tmp = t_1; elseif (z <= 8e-15) tmp = x * ((y * z) - (t * a)); elseif (z <= 8.2e+125) 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[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e+94], t$95$3, If[LessEqual[z, -2.8e-220], t$95$2, If[LessEqual[z, 7.4e-224], t$95$1, If[LessEqual[z, 1.22e-113], t$95$2, If[LessEqual[z, 9e-54], t$95$1, If[LessEqual[z, 8e-15], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+125], t$95$1, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + i \cdot \left(t \cdot b\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -9 \cdot 10^{+94}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-220}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 7.4 \cdot 10^{-224}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.22 \cdot 10^{-113}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 9 \cdot 10^{-54}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 8 \cdot 10^{-15}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+125}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if z < -8.99999999999999944e94 or 8.19999999999999983e125 < z Initial program 66.5%
cancel-sign-sub66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
remove-double-neg66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in z around inf 81.1%
if -8.99999999999999944e94 < z < -2.7999999999999999e-220 or 7.4000000000000005e-224 < z < 1.21999999999999995e-113Initial program 79.1%
sub-neg79.1%
+-commutative79.1%
associate-+l+79.1%
distribute-rgt-neg-in79.1%
+-commutative79.1%
fma-def80.2%
sub-neg80.2%
+-commutative80.2%
distribute-neg-in80.2%
unsub-neg80.2%
remove-double-neg80.2%
*-commutative80.2%
Simplified81.3%
fma-udef80.2%
Applied egg-rr80.2%
Taylor expanded in a around inf 61.9%
mul-1-neg61.9%
unsub-neg61.9%
Simplified61.9%
if -2.7999999999999999e-220 < z < 7.4000000000000005e-224 or 1.21999999999999995e-113 < z < 8.9999999999999997e-54 or 8.0000000000000006e-15 < z < 8.19999999999999983e125Initial program 73.8%
cancel-sign-sub73.8%
cancel-sign-sub-inv73.8%
*-commutative73.8%
remove-double-neg73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in i around inf 69.0%
if 8.9999999999999997e-54 < z < 8.0000000000000006e-15Initial program 71.4%
cancel-sign-sub71.4%
cancel-sign-sub-inv71.4%
*-commutative71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified71.4%
Taylor expanded in x around inf 86.0%
Final simplification70.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* a (- (* c j) (* x t)))))
(if (<= a -5e+19)
t_3
(if (<= a -5.5e-211)
t_2
(if (<= a 1.8e-292)
t_1
(if (<= a 2.6e-251)
t_2
(if (<= a 2.6e-48)
t_1
(if (<= a 250000000000.0)
t_2
(if (<= a 1.6e+36)
(* (* z b) (- c))
(if (<= a 2.05e+120) (* j (- (* a c) (* y i))) 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 = b * ((t * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5e+19) {
tmp = t_3;
} else if (a <= -5.5e-211) {
tmp = t_2;
} else if (a <= 1.8e-292) {
tmp = t_1;
} else if (a <= 2.6e-251) {
tmp = t_2;
} else if (a <= 2.6e-48) {
tmp = t_1;
} else if (a <= 250000000000.0) {
tmp = t_2;
} else if (a <= 1.6e+36) {
tmp = (z * b) * -c;
} else if (a <= 2.05e+120) {
tmp = j * ((a * c) - (y * i));
} 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 = b * ((t * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
t_3 = a * ((c * j) - (x * t))
if (a <= (-5d+19)) then
tmp = t_3
else if (a <= (-5.5d-211)) then
tmp = t_2
else if (a <= 1.8d-292) then
tmp = t_1
else if (a <= 2.6d-251) then
tmp = t_2
else if (a <= 2.6d-48) then
tmp = t_1
else if (a <= 250000000000.0d0) then
tmp = t_2
else if (a <= 1.6d+36) then
tmp = (z * b) * -c
else if (a <= 2.05d+120) then
tmp = j * ((a * c) - (y * i))
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 = b * ((t * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5e+19) {
tmp = t_3;
} else if (a <= -5.5e-211) {
tmp = t_2;
} else if (a <= 1.8e-292) {
tmp = t_1;
} else if (a <= 2.6e-251) {
tmp = t_2;
} else if (a <= 2.6e-48) {
tmp = t_1;
} else if (a <= 250000000000.0) {
tmp = t_2;
} else if (a <= 1.6e+36) {
tmp = (z * b) * -c;
} else if (a <= 2.05e+120) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) t_3 = a * ((c * j) - (x * t)) tmp = 0 if a <= -5e+19: tmp = t_3 elif a <= -5.5e-211: tmp = t_2 elif a <= 1.8e-292: tmp = t_1 elif a <= 2.6e-251: tmp = t_2 elif a <= 2.6e-48: tmp = t_1 elif a <= 250000000000.0: tmp = t_2 elif a <= 1.6e+36: tmp = (z * b) * -c elif a <= 2.05e+120: tmp = j * ((a * c) - (y * i)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -5e+19) tmp = t_3; elseif (a <= -5.5e-211) tmp = t_2; elseif (a <= 1.8e-292) tmp = t_1; elseif (a <= 2.6e-251) tmp = t_2; elseif (a <= 2.6e-48) tmp = t_1; elseif (a <= 250000000000.0) tmp = t_2; elseif (a <= 1.6e+36) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (a <= 2.05e+120) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); t_3 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -5e+19) tmp = t_3; elseif (a <= -5.5e-211) tmp = t_2; elseif (a <= 1.8e-292) tmp = t_1; elseif (a <= 2.6e-251) tmp = t_2; elseif (a <= 2.6e-48) tmp = t_1; elseif (a <= 250000000000.0) tmp = t_2; elseif (a <= 1.6e+36) tmp = (z * b) * -c; elseif (a <= 2.05e+120) tmp = j * ((a * c) - (y * i)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5e+19], t$95$3, If[LessEqual[a, -5.5e-211], t$95$2, If[LessEqual[a, 1.8e-292], t$95$1, If[LessEqual[a, 2.6e-251], t$95$2, If[LessEqual[a, 2.6e-48], t$95$1, If[LessEqual[a, 250000000000.0], t$95$2, If[LessEqual[a, 1.6e+36], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[a, 2.05e+120], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -5 \cdot 10^{+19}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -5.5 \cdot 10^{-211}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{-292}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-251}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-48}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 250000000000:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq 1.6 \cdot 10^{+36}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;a \leq 2.05 \cdot 10^{+120}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if a < -5e19 or 2.05e120 < a Initial program 69.9%
sub-neg69.9%
+-commutative69.9%
associate-+l+69.9%
distribute-rgt-neg-in69.9%
+-commutative69.9%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
distribute-neg-in70.8%
unsub-neg70.8%
remove-double-neg70.8%
*-commutative70.8%
Simplified73.4%
fma-udef70.8%
Applied egg-rr70.8%
Taylor expanded in a around inf 68.9%
mul-1-neg68.9%
unsub-neg68.9%
Simplified68.9%
if -5e19 < a < -5.49999999999999973e-211 or 1.8000000000000001e-292 < a < 2.5999999999999999e-251 or 2.59999999999999987e-48 < a < 2.5e11Initial program 76.0%
cancel-sign-sub76.0%
cancel-sign-sub-inv76.0%
*-commutative76.0%
remove-double-neg76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in y around inf 67.9%
*-commutative67.9%
mul-1-neg67.9%
unsub-neg67.9%
*-commutative67.9%
Simplified67.9%
if -5.49999999999999973e-211 < a < 1.8000000000000001e-292 or 2.5999999999999999e-251 < a < 2.59999999999999987e-48Initial program 79.1%
cancel-sign-sub79.1%
cancel-sign-sub-inv79.1%
*-commutative79.1%
remove-double-neg79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in b around inf 58.2%
if 2.5e11 < a < 1.5999999999999999e36Initial program 66.5%
cancel-sign-sub66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
remove-double-neg66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in c around inf 56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in j around 0 56.9%
neg-mul-156.9%
*-commutative56.9%
distribute-rgt-neg-in56.9%
Simplified56.9%
if 1.5999999999999999e36 < a < 2.05e120Initial program 76.5%
cancel-sign-sub76.5%
cancel-sign-sub-inv76.5%
*-commutative76.5%
remove-double-neg76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in j around inf 76.8%
Final simplification66.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* b (* z c))))
(t_2 (* i (- (* t b) (* y j)))))
(if (<= i -4.5e+263)
t_2
(if (<= i -3.7e+29)
(+ (* j (- (* a c) (* y i))) (* i (* t b)))
(if (<= i 1.2e-252)
t_1
(if (<= i 6.6e-164)
(* a (- (* c j) (* x t)))
(if (<= i 1.5e+179) 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 * (z * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.5e+263) {
tmp = t_2;
} else if (i <= -3.7e+29) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (i <= 1.2e-252) {
tmp = t_1;
} else if (i <= 6.6e-164) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.5e+179) {
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 * (z * c))
t_2 = i * ((t * b) - (y * j))
if (i <= (-4.5d+263)) then
tmp = t_2
else if (i <= (-3.7d+29)) then
tmp = (j * ((a * c) - (y * i))) + (i * (t * b))
else if (i <= 1.2d-252) then
tmp = t_1
else if (i <= 6.6d-164) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.5d+179) 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 * (z * c));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.5e+263) {
tmp = t_2;
} else if (i <= -3.7e+29) {
tmp = (j * ((a * c) - (y * i))) + (i * (t * b));
} else if (i <= 1.2e-252) {
tmp = t_1;
} else if (i <= 6.6e-164) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.5e+179) {
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 * (z * c)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4.5e+263: tmp = t_2 elif i <= -3.7e+29: tmp = (j * ((a * c) - (y * i))) + (i * (t * b)) elif i <= 1.2e-252: tmp = t_1 elif i <= 6.6e-164: tmp = a * ((c * j) - (x * t)) elif i <= 1.5e+179: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.5e+263) tmp = t_2; elseif (i <= -3.7e+29) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(i * Float64(t * b))); elseif (i <= 1.2e-252) tmp = t_1; elseif (i <= 6.6e-164) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.5e+179) 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 * (z * c)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4.5e+263) tmp = t_2; elseif (i <= -3.7e+29) tmp = (j * ((a * c) - (y * i))) + (i * (t * b)); elseif (i <= 1.2e-252) tmp = t_1; elseif (i <= 6.6e-164) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.5e+179) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.5e+263], t$95$2, If[LessEqual[i, -3.7e+29], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.2e-252], t$95$1, If[LessEqual[i, 6.6e-164], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.5e+179], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.5 \cdot 10^{+263}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -3.7 \cdot 10^{+29}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;i \leq 1.2 \cdot 10^{-252}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 6.6 \cdot 10^{-164}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.5 \cdot 10^{+179}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -4.50000000000000014e263 or 1.4999999999999999e179 < i Initial program 55.5%
cancel-sign-sub55.5%
cancel-sign-sub-inv55.5%
*-commutative55.5%
remove-double-neg55.5%
*-commutative55.5%
Simplified55.5%
Taylor expanded in i around inf 81.4%
sub-neg81.4%
mul-1-neg81.4%
remove-double-neg81.4%
+-commutative81.4%
mul-1-neg81.4%
unsub-neg81.4%
*-commutative81.4%
Simplified81.4%
if -4.50000000000000014e263 < i < -3.69999999999999974e29Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in i around inf 75.2%
if -3.69999999999999974e29 < i < 1.2000000000000001e-252 or 6.6e-164 < i < 1.4999999999999999e179Initial program 77.7%
cancel-sign-sub77.7%
cancel-sign-sub-inv77.7%
*-commutative77.7%
remove-double-neg77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in j around 0 64.1%
Taylor expanded in c around inf 60.2%
associate-*r*60.3%
Simplified60.3%
if 1.2000000000000001e-252 < i < 6.6e-164Initial program 80.0%
sub-neg80.0%
+-commutative80.0%
associate-+l+80.0%
distribute-rgt-neg-in80.0%
+-commutative80.0%
fma-def80.0%
sub-neg80.0%
+-commutative80.0%
distribute-neg-in80.0%
unsub-neg80.0%
remove-double-neg80.0%
*-commutative80.0%
Simplified85.0%
fma-udef80.0%
Applied egg-rr80.0%
Taylor expanded in a around inf 68.2%
mul-1-neg68.2%
unsub-neg68.2%
Simplified68.2%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (+ t_1 (* i (* t b)))))
(if (<= j -6.2e+198)
(* a (- (* c j) (* x t)))
(if (<= j -2.8e+41)
t_2
(if (<= j 1.55e+46)
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(if (<= j 2e+192)
t_2
(if (<= j 2e+232) (* z (- (* x y) (* b c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t_1 + (i * (t * b));
double tmp;
if (j <= -6.2e+198) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -2.8e+41) {
tmp = t_2;
} else if (j <= 1.55e+46) {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
} else if (j <= 2e+192) {
tmp = t_2;
} else if (j <= 2e+232) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t_1 + (i * (t * b))
if (j <= (-6.2d+198)) then
tmp = a * ((c * j) - (x * t))
else if (j <= (-2.8d+41)) then
tmp = t_2
else if (j <= 1.55d+46) then
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))
else if (j <= 2d+192) then
tmp = t_2
else if (j <= 2d+232) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t_1 + (i * (t * b));
double tmp;
if (j <= -6.2e+198) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -2.8e+41) {
tmp = t_2;
} else if (j <= 1.55e+46) {
tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
} else if (j <= 2e+192) {
tmp = t_2;
} else if (j <= 2e+232) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t_1 + (i * (t * b)) tmp = 0 if j <= -6.2e+198: tmp = a * ((c * j) - (x * t)) elif j <= -2.8e+41: tmp = t_2 elif j <= 1.55e+46: tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))) elif j <= 2e+192: tmp = t_2 elif j <= 2e+232: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t_1 + Float64(i * Float64(t * b))) tmp = 0.0 if (j <= -6.2e+198) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (j <= -2.8e+41) tmp = t_2; elseif (j <= 1.55e+46) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); elseif (j <= 2e+192) tmp = t_2; elseif (j <= 2e+232) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t_1 + (i * (t * b)); tmp = 0.0; if (j <= -6.2e+198) tmp = a * ((c * j) - (x * t)); elseif (j <= -2.8e+41) tmp = t_2; elseif (j <= 1.55e+46) tmp = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i))); elseif (j <= 2e+192) tmp = t_2; elseif (j <= 2e+232) tmp = z * ((x * y) - (b * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.2e+198], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.8e+41], t$95$2, If[LessEqual[j, 1.55e+46], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e+192], t$95$2, If[LessEqual[j, 2e+232], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t_1 + i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;j \leq -6.2 \cdot 10^{+198}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;j \leq -2.8 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.55 \cdot 10^{+46}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+192}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 2 \cdot 10^{+232}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -6.1999999999999995e198Initial program 70.4%
sub-neg70.4%
+-commutative70.4%
associate-+l+70.4%
distribute-rgt-neg-in70.4%
+-commutative70.4%
fma-def70.4%
sub-neg70.4%
+-commutative70.4%
distribute-neg-in70.4%
unsub-neg70.4%
remove-double-neg70.4%
*-commutative70.4%
Simplified74.1%
fma-udef70.4%
Applied egg-rr70.4%
Taylor expanded in a around inf 82.0%
mul-1-neg82.0%
unsub-neg82.0%
Simplified82.0%
if -6.1999999999999995e198 < j < -2.7999999999999999e41 or 1.54999999999999988e46 < j < 2.00000000000000008e192Initial program 78.3%
cancel-sign-sub78.3%
cancel-sign-sub-inv78.3%
*-commutative78.3%
remove-double-neg78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in i around inf 72.1%
if -2.7999999999999999e41 < j < 1.54999999999999988e46Initial program 74.2%
cancel-sign-sub74.2%
cancel-sign-sub-inv74.2%
*-commutative74.2%
remove-double-neg74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in j around 0 72.7%
if 2.00000000000000008e192 < j < 2.00000000000000011e232Initial program 49.8%
cancel-sign-sub49.8%
cancel-sign-sub-inv49.8%
*-commutative49.8%
remove-double-neg49.8%
*-commutative49.8%
Simplified49.8%
Taylor expanded in z around inf 70.5%
if 2.00000000000000011e232 < j Initial program 66.7%
cancel-sign-sub66.7%
cancel-sign-sub-inv66.7%
*-commutative66.7%
remove-double-neg66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in j around inf 83.3%
Final simplification73.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -9e+94)
t_2
(if (<= z -1.62e-223)
t_1
(if (<= z 2.8e-224)
(* j (- (* a c) (* y i)))
(if (<= z 4e-92)
t_1
(if (<= z 6.4e-18)
t_2
(if (<= z 215000000.0)
t_1
(if (<= z 9e+124) (* y (- (* x z) (* i j))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e+94) {
tmp = t_2;
} else if (z <= -1.62e-223) {
tmp = t_1;
} else if (z <= 2.8e-224) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 4e-92) {
tmp = t_1;
} else if (z <= 6.4e-18) {
tmp = t_2;
} else if (z <= 215000000.0) {
tmp = t_1;
} else if (z <= 9e+124) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = z * ((x * y) - (b * c))
if (z <= (-9d+94)) then
tmp = t_2
else if (z <= (-1.62d-223)) then
tmp = t_1
else if (z <= 2.8d-224) then
tmp = j * ((a * c) - (y * i))
else if (z <= 4d-92) then
tmp = t_1
else if (z <= 6.4d-18) then
tmp = t_2
else if (z <= 215000000.0d0) then
tmp = t_1
else if (z <= 9d+124) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -9e+94) {
tmp = t_2;
} else if (z <= -1.62e-223) {
tmp = t_1;
} else if (z <= 2.8e-224) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 4e-92) {
tmp = t_1;
} else if (z <= 6.4e-18) {
tmp = t_2;
} else if (z <= 215000000.0) {
tmp = t_1;
} else if (z <= 9e+124) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -9e+94: tmp = t_2 elif z <= -1.62e-223: tmp = t_1 elif z <= 2.8e-224: tmp = j * ((a * c) - (y * i)) elif z <= 4e-92: tmp = t_1 elif z <= 6.4e-18: tmp = t_2 elif z <= 215000000.0: tmp = t_1 elif z <= 9e+124: tmp = y * ((x * z) - (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -9e+94) tmp = t_2; elseif (z <= -1.62e-223) tmp = t_1; elseif (z <= 2.8e-224) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 4e-92) tmp = t_1; elseif (z <= 6.4e-18) tmp = t_2; elseif (z <= 215000000.0) tmp = t_1; elseif (z <= 9e+124) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -9e+94) tmp = t_2; elseif (z <= -1.62e-223) tmp = t_1; elseif (z <= 2.8e-224) tmp = j * ((a * c) - (y * i)); elseif (z <= 4e-92) tmp = t_1; elseif (z <= 6.4e-18) tmp = t_2; elseif (z <= 215000000.0) tmp = t_1; elseif (z <= 9e+124) tmp = y * ((x * z) - (i * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9e+94], t$95$2, If[LessEqual[z, -1.62e-223], t$95$1, If[LessEqual[z, 2.8e-224], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4e-92], t$95$1, If[LessEqual[z, 6.4e-18], t$95$2, If[LessEqual[z, 215000000.0], t$95$1, If[LessEqual[z, 9e+124], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -9 \cdot 10^{+94}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.62 \cdot 10^{-223}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-224}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 6.4 \cdot 10^{-18}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 215000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 9 \cdot 10^{+124}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -8.99999999999999944e94 or 3.99999999999999995e-92 < z < 6.3999999999999998e-18 or 9.0000000000000008e124 < z Initial program 68.3%
cancel-sign-sub68.3%
cancel-sign-sub-inv68.3%
*-commutative68.3%
remove-double-neg68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in z around inf 76.5%
if -8.99999999999999944e94 < z < -1.6200000000000001e-223 or 2.7999999999999998e-224 < z < 3.99999999999999995e-92 or 6.3999999999999998e-18 < z < 2.15e8Initial program 77.6%
sub-neg77.6%
+-commutative77.6%
associate-+l+77.6%
distribute-rgt-neg-in77.6%
+-commutative77.6%
fma-def78.6%
sub-neg78.6%
+-commutative78.6%
distribute-neg-in78.6%
unsub-neg78.6%
remove-double-neg78.6%
*-commutative78.6%
Simplified79.6%
fma-udef78.6%
Applied egg-rr78.6%
Taylor expanded in a around inf 62.4%
mul-1-neg62.4%
unsub-neg62.4%
Simplified62.4%
if -1.6200000000000001e-223 < z < 2.7999999999999998e-224Initial program 77.0%
cancel-sign-sub77.0%
cancel-sign-sub-inv77.0%
*-commutative77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in j around inf 63.7%
if 2.15e8 < z < 9.0000000000000008e124Initial program 70.3%
cancel-sign-sub70.3%
cancel-sign-sub-inv70.3%
*-commutative70.3%
remove-double-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in y around inf 52.5%
*-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
*-commutative52.5%
Simplified52.5%
Final simplification66.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -3.3e+96)
t_2
(if (<= z -2.05e-224)
t_1
(if (<= z 2.5e-224)
(* j (- (* a c) (* y i)))
(if (<= z 1.8e-92)
t_1
(if (<= z 2.65e-76)
(* b (- (* t i) (* z c)))
(if (<= z 7e+44)
(* x (- (* y z) (* t a)))
(if (<= z 1.9e+130) (* y (- (* x z) (* i j))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.3e+96) {
tmp = t_2;
} else if (z <= -2.05e-224) {
tmp = t_1;
} else if (z <= 2.5e-224) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.8e-92) {
tmp = t_1;
} else if (z <= 2.65e-76) {
tmp = b * ((t * i) - (z * c));
} else if (z <= 7e+44) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 1.9e+130) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = z * ((x * y) - (b * c))
if (z <= (-3.3d+96)) then
tmp = t_2
else if (z <= (-2.05d-224)) then
tmp = t_1
else if (z <= 2.5d-224) then
tmp = j * ((a * c) - (y * i))
else if (z <= 1.8d-92) then
tmp = t_1
else if (z <= 2.65d-76) then
tmp = b * ((t * i) - (z * c))
else if (z <= 7d+44) then
tmp = x * ((y * z) - (t * a))
else if (z <= 1.9d+130) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -3.3e+96) {
tmp = t_2;
} else if (z <= -2.05e-224) {
tmp = t_1;
} else if (z <= 2.5e-224) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.8e-92) {
tmp = t_1;
} else if (z <= 2.65e-76) {
tmp = b * ((t * i) - (z * c));
} else if (z <= 7e+44) {
tmp = x * ((y * z) - (t * a));
} else if (z <= 1.9e+130) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -3.3e+96: tmp = t_2 elif z <= -2.05e-224: tmp = t_1 elif z <= 2.5e-224: tmp = j * ((a * c) - (y * i)) elif z <= 1.8e-92: tmp = t_1 elif z <= 2.65e-76: tmp = b * ((t * i) - (z * c)) elif z <= 7e+44: tmp = x * ((y * z) - (t * a)) elif z <= 1.9e+130: tmp = y * ((x * z) - (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -3.3e+96) tmp = t_2; elseif (z <= -2.05e-224) tmp = t_1; elseif (z <= 2.5e-224) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 1.8e-92) tmp = t_1; elseif (z <= 2.65e-76) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (z <= 7e+44) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= 1.9e+130) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -3.3e+96) tmp = t_2; elseif (z <= -2.05e-224) tmp = t_1; elseif (z <= 2.5e-224) tmp = j * ((a * c) - (y * i)); elseif (z <= 1.8e-92) tmp = t_1; elseif (z <= 2.65e-76) tmp = b * ((t * i) - (z * c)); elseif (z <= 7e+44) tmp = x * ((y * z) - (t * a)); elseif (z <= 1.9e+130) tmp = y * ((x * z) - (i * j)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.3e+96], t$95$2, If[LessEqual[z, -2.05e-224], t$95$1, If[LessEqual[z, 2.5e-224], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e-92], t$95$1, If[LessEqual[z, 2.65e-76], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+44], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+130], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -3.3 \cdot 10^{+96}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{-224}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-224}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{-92}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.65 \cdot 10^{-76}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+44}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+130}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -3.29999999999999984e96 or 1.9000000000000001e130 < z Initial program 66.5%
cancel-sign-sub66.5%
cancel-sign-sub-inv66.5%
*-commutative66.5%
remove-double-neg66.5%
*-commutative66.5%
Simplified66.5%
Taylor expanded in z around inf 81.1%
if -3.29999999999999984e96 < z < -2.04999999999999993e-224 or 2.4999999999999999e-224 < z < 1.80000000000000008e-92Initial program 79.1%
sub-neg79.1%
+-commutative79.1%
associate-+l+79.1%
distribute-rgt-neg-in79.1%
+-commutative79.1%
fma-def80.2%
sub-neg80.2%
+-commutative80.2%
distribute-neg-in80.2%
unsub-neg80.2%
remove-double-neg80.2%
*-commutative80.2%
Simplified81.2%
fma-udef80.2%
Applied egg-rr80.2%
Taylor expanded in a around inf 61.7%
mul-1-neg61.7%
unsub-neg61.7%
Simplified61.7%
if -2.04999999999999993e-224 < z < 2.4999999999999999e-224Initial program 77.0%
cancel-sign-sub77.0%
cancel-sign-sub-inv77.0%
*-commutative77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in j around inf 63.7%
if 1.80000000000000008e-92 < z < 2.65e-76Initial program 80.0%
cancel-sign-sub80.0%
cancel-sign-sub-inv80.0%
*-commutative80.0%
remove-double-neg80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in b around inf 100.0%
if 2.65e-76 < z < 6.9999999999999998e44Initial program 72.5%
cancel-sign-sub72.5%
cancel-sign-sub-inv72.5%
*-commutative72.5%
remove-double-neg72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in x around inf 52.9%
if 6.9999999999999998e44 < z < 1.9000000000000001e130Initial program 64.9%
cancel-sign-sub64.9%
cancel-sign-sub-inv64.9%
*-commutative64.9%
remove-double-neg64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in y around inf 55.7%
*-commutative55.7%
mul-1-neg55.7%
unsub-neg55.7%
*-commutative55.7%
Simplified55.7%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -5.2e+19)
t_2
(if (<= a -7.5e-214)
t_1
(if (<= a -1.26e-254)
(* t (* b i))
(if (<= a -4.4e-262)
t_1
(if (<= a 5e-294)
(* c (- (* a j) (* z b)))
(if (<= a 520000000.0) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.2e+19) {
tmp = t_2;
} else if (a <= -7.5e-214) {
tmp = t_1;
} else if (a <= -1.26e-254) {
tmp = t * (b * i);
} else if (a <= -4.4e-262) {
tmp = t_1;
} else if (a <= 5e-294) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 520000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
t_2 = a * ((c * j) - (x * t))
if (a <= (-5.2d+19)) then
tmp = t_2
else if (a <= (-7.5d-214)) then
tmp = t_1
else if (a <= (-1.26d-254)) then
tmp = t * (b * i)
else if (a <= (-4.4d-262)) then
tmp = t_1
else if (a <= 5d-294) then
tmp = c * ((a * j) - (z * b))
else if (a <= 520000000.0d0) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -5.2e+19) {
tmp = t_2;
} else if (a <= -7.5e-214) {
tmp = t_1;
} else if (a <= -1.26e-254) {
tmp = t * (b * i);
} else if (a <= -4.4e-262) {
tmp = t_1;
} else if (a <= 5e-294) {
tmp = c * ((a * j) - (z * b));
} else if (a <= 520000000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -5.2e+19: tmp = t_2 elif a <= -7.5e-214: tmp = t_1 elif a <= -1.26e-254: tmp = t * (b * i) elif a <= -4.4e-262: tmp = t_1 elif a <= 5e-294: tmp = c * ((a * j) - (z * b)) elif a <= 520000000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -5.2e+19) tmp = t_2; elseif (a <= -7.5e-214) tmp = t_1; elseif (a <= -1.26e-254) tmp = Float64(t * Float64(b * i)); elseif (a <= -4.4e-262) tmp = t_1; elseif (a <= 5e-294) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (a <= 520000000.0) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -5.2e+19) tmp = t_2; elseif (a <= -7.5e-214) tmp = t_1; elseif (a <= -1.26e-254) tmp = t * (b * i); elseif (a <= -4.4e-262) tmp = t_1; elseif (a <= 5e-294) tmp = c * ((a * j) - (z * b)); elseif (a <= 520000000.0) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.2e+19], t$95$2, If[LessEqual[a, -7.5e-214], t$95$1, If[LessEqual[a, -1.26e-254], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.4e-262], t$95$1, If[LessEqual[a, 5e-294], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 520000000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -5.2 \cdot 10^{+19}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -7.5 \cdot 10^{-214}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.26 \cdot 10^{-254}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq -4.4 \cdot 10^{-262}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-294}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 520000000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -5.2e19 or 5.2e8 < a Initial program 70.7%
sub-neg70.7%
+-commutative70.7%
associate-+l+70.7%
distribute-rgt-neg-in70.7%
+-commutative70.7%
fma-def71.4%
sub-neg71.4%
+-commutative71.4%
distribute-neg-in71.4%
unsub-neg71.4%
remove-double-neg71.4%
*-commutative71.4%
Simplified73.5%
fma-udef71.4%
Applied egg-rr71.4%
Taylor expanded in a around inf 65.2%
mul-1-neg65.2%
unsub-neg65.2%
Simplified65.2%
if -5.2e19 < a < -7.49999999999999966e-214 or -1.26e-254 < a < -4.39999999999999977e-262 or 5.0000000000000003e-294 < a < 5.2e8Initial program 77.3%
cancel-sign-sub77.3%
cancel-sign-sub-inv77.3%
*-commutative77.3%
remove-double-neg77.3%
*-commutative77.3%
Simplified77.3%
Taylor expanded in y around inf 56.6%
*-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
*-commutative56.6%
Simplified56.6%
if -7.49999999999999966e-214 < a < -1.26e-254Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in j around 0 92.7%
Taylor expanded in i around inf 52.7%
associate-*r*64.5%
*-commutative64.5%
associate-*r*64.4%
Simplified64.4%
if -4.39999999999999977e-262 < a < 5.0000000000000003e-294Initial program 79.4%
cancel-sign-sub79.4%
cancel-sign-sub-inv79.4%
*-commutative79.4%
remove-double-neg79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in c around inf 71.8%
*-commutative71.8%
Simplified71.8%
Final simplification62.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* i (- (* t b) (* y j))))
(t_3 (* c (- (* a j) (* z b)))))
(if (<= c -2.2e-74)
t_3
(if (<= c 1.02e-156)
t_2
(if (<= c 3.9e-73)
t_1
(if (<= c 5.4e-36) t_2 (if (<= c 4e+111) t_1 t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.2e-74) {
tmp = t_3;
} else if (c <= 1.02e-156) {
tmp = t_2;
} else if (c <= 3.9e-73) {
tmp = t_1;
} else if (c <= 5.4e-36) {
tmp = t_2;
} else if (c <= 4e+111) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = i * ((t * b) - (y * j))
t_3 = c * ((a * j) - (z * b))
if (c <= (-2.2d-74)) then
tmp = t_3
else if (c <= 1.02d-156) then
tmp = t_2
else if (c <= 3.9d-73) then
tmp = t_1
else if (c <= 5.4d-36) then
tmp = t_2
else if (c <= 4d+111) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double t_3 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.2e-74) {
tmp = t_3;
} else if (c <= 1.02e-156) {
tmp = t_2;
} else if (c <= 3.9e-73) {
tmp = t_1;
} else if (c <= 5.4e-36) {
tmp = t_2;
} else if (c <= 4e+111) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = i * ((t * b) - (y * j)) t_3 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.2e-74: tmp = t_3 elif c <= 1.02e-156: tmp = t_2 elif c <= 3.9e-73: tmp = t_1 elif c <= 5.4e-36: tmp = t_2 elif c <= 4e+111: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_3 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.2e-74) tmp = t_3; elseif (c <= 1.02e-156) tmp = t_2; elseif (c <= 3.9e-73) tmp = t_1; elseif (c <= 5.4e-36) tmp = t_2; elseif (c <= 4e+111) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = i * ((t * b) - (y * j)); t_3 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.2e-74) tmp = t_3; elseif (c <= 1.02e-156) tmp = t_2; elseif (c <= 3.9e-73) tmp = t_1; elseif (c <= 5.4e-36) tmp = t_2; elseif (c <= 4e+111) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.2e-74], t$95$3, If[LessEqual[c, 1.02e-156], t$95$2, If[LessEqual[c, 3.9e-73], t$95$1, If[LessEqual[c, 5.4e-36], t$95$2, If[LessEqual[c, 4e+111], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_3 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.2 \cdot 10^{-74}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{-156}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-73}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 5.4 \cdot 10^{-36}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq 4 \cdot 10^{+111}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if c < -2.2000000000000001e-74 or 3.99999999999999983e111 < c Initial program 65.7%
cancel-sign-sub65.7%
cancel-sign-sub-inv65.7%
*-commutative65.7%
remove-double-neg65.7%
*-commutative65.7%
Simplified65.7%
Taylor expanded in c around inf 64.3%
*-commutative64.3%
Simplified64.3%
if -2.2000000000000001e-74 < c < 1.02e-156 or 3.89999999999999982e-73 < c < 5.40000000000000015e-36Initial program 82.7%
cancel-sign-sub82.7%
cancel-sign-sub-inv82.7%
*-commutative82.7%
remove-double-neg82.7%
*-commutative82.7%
Simplified82.7%
Taylor expanded in i around inf 56.7%
sub-neg56.7%
mul-1-neg56.7%
remove-double-neg56.7%
+-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
*-commutative56.7%
Simplified56.7%
if 1.02e-156 < c < 3.89999999999999982e-73 or 5.40000000000000015e-36 < c < 3.99999999999999983e111Initial program 80.3%
sub-neg80.3%
+-commutative80.3%
associate-+l+80.3%
distribute-rgt-neg-in80.3%
+-commutative80.3%
fma-def80.3%
sub-neg80.3%
+-commutative80.3%
distribute-neg-in80.3%
unsub-neg80.3%
remove-double-neg80.3%
*-commutative80.3%
Simplified82.0%
fma-udef80.3%
Applied egg-rr80.3%
Taylor expanded in a around inf 57.0%
mul-1-neg57.0%
unsub-neg57.0%
Simplified57.0%
Final simplification60.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= x -3.3e+186)
(* y (* x z))
(if (<= x -3.1e-49)
(* t (* x (- a)))
(if (<= x -7e-220)
t_1
(if (<= x -3.1e-276)
(* (* z b) (- c))
(if (<= x 4.7e-138)
t_1
(if (<= x 45000.0) (* t (* b i)) (* z (* x 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 * (c * j);
double tmp;
if (x <= -3.3e+186) {
tmp = y * (x * z);
} else if (x <= -3.1e-49) {
tmp = t * (x * -a);
} else if (x <= -7e-220) {
tmp = t_1;
} else if (x <= -3.1e-276) {
tmp = (z * b) * -c;
} else if (x <= 4.7e-138) {
tmp = t_1;
} else if (x <= 45000.0) {
tmp = t * (b * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (x <= (-3.3d+186)) then
tmp = y * (x * z)
else if (x <= (-3.1d-49)) then
tmp = t * (x * -a)
else if (x <= (-7d-220)) then
tmp = t_1
else if (x <= (-3.1d-276)) then
tmp = (z * b) * -c
else if (x <= 4.7d-138) then
tmp = t_1
else if (x <= 45000.0d0) then
tmp = t * (b * i)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (x <= -3.3e+186) {
tmp = y * (x * z);
} else if (x <= -3.1e-49) {
tmp = t * (x * -a);
} else if (x <= -7e-220) {
tmp = t_1;
} else if (x <= -3.1e-276) {
tmp = (z * b) * -c;
} else if (x <= 4.7e-138) {
tmp = t_1;
} else if (x <= 45000.0) {
tmp = t * (b * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if x <= -3.3e+186: tmp = y * (x * z) elif x <= -3.1e-49: tmp = t * (x * -a) elif x <= -7e-220: tmp = t_1 elif x <= -3.1e-276: tmp = (z * b) * -c elif x <= 4.7e-138: tmp = t_1 elif x <= 45000.0: tmp = t * (b * i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (x <= -3.3e+186) tmp = Float64(y * Float64(x * z)); elseif (x <= -3.1e-49) tmp = Float64(t * Float64(x * Float64(-a))); elseif (x <= -7e-220) tmp = t_1; elseif (x <= -3.1e-276) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (x <= 4.7e-138) tmp = t_1; elseif (x <= 45000.0) tmp = Float64(t * Float64(b * i)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (x <= -3.3e+186) tmp = y * (x * z); elseif (x <= -3.1e-49) tmp = t * (x * -a); elseif (x <= -7e-220) tmp = t_1; elseif (x <= -3.1e-276) tmp = (z * b) * -c; elseif (x <= 4.7e-138) tmp = t_1; elseif (x <= 45000.0) tmp = t * (b * i); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.3e+186], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.1e-49], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -7e-220], t$95$1, If[LessEqual[x, -3.1e-276], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[x, 4.7e-138], t$95$1, If[LessEqual[x, 45000.0], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;x \leq -3.3 \cdot 10^{+186}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-49}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-220}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.1 \cdot 10^{-276}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{-138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 45000:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -3.30000000000000023e186Initial program 50.3%
sub-neg50.3%
+-commutative50.3%
associate-+l+50.3%
distribute-rgt-neg-in50.3%
+-commutative50.3%
fma-def57.4%
sub-neg57.4%
+-commutative57.4%
distribute-neg-in57.4%
unsub-neg57.4%
remove-double-neg57.4%
*-commutative57.4%
Simplified57.4%
fma-udef57.4%
Applied egg-rr57.4%
Taylor expanded in y around inf 50.5%
Taylor expanded in x around inf 64.8%
if -3.30000000000000023e186 < x < -3.1e-49Initial program 77.0%
sub-neg77.0%
+-commutative77.0%
associate-+l+77.0%
distribute-rgt-neg-in77.0%
+-commutative77.0%
fma-def77.0%
sub-neg77.0%
+-commutative77.0%
distribute-neg-in77.0%
unsub-neg77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
fma-udef77.0%
Applied egg-rr77.0%
Taylor expanded in a around inf 51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
Taylor expanded in c around 0 45.2%
mul-1-neg45.2%
*-commutative45.2%
associate-*r*45.2%
distribute-lft-neg-in45.2%
Simplified45.2%
if -3.1e-49 < x < -6.99999999999999975e-220 or -3.09999999999999989e-276 < x < 4.7000000000000001e-138Initial program 72.7%
sub-neg72.7%
+-commutative72.7%
associate-+l+72.7%
distribute-rgt-neg-in72.7%
+-commutative72.7%
fma-def72.7%
sub-neg72.7%
+-commutative72.7%
distribute-neg-in72.7%
unsub-neg72.7%
remove-double-neg72.7%
*-commutative72.7%
Simplified72.7%
fma-udef72.7%
Applied egg-rr72.7%
Taylor expanded in y around inf 77.8%
Taylor expanded in a around inf 40.7%
associate-*r*38.7%
*-commutative38.7%
associate-*l*44.3%
Simplified44.3%
if -6.99999999999999975e-220 < x < -3.09999999999999989e-276Initial program 74.2%
cancel-sign-sub74.2%
cancel-sign-sub-inv74.2%
*-commutative74.2%
remove-double-neg74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in c around inf 67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in j around 0 67.8%
neg-mul-167.8%
*-commutative67.8%
distribute-rgt-neg-in67.8%
Simplified67.8%
if 4.7000000000000001e-138 < x < 45000Initial program 69.0%
cancel-sign-sub69.0%
cancel-sign-sub-inv69.0%
*-commutative69.0%
remove-double-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 36.0%
associate-*r*45.7%
*-commutative45.7%
associate-*r*42.4%
Simplified42.4%
if 45000 < x Initial program 85.6%
cancel-sign-sub85.6%
cancel-sign-sub-inv85.6%
*-commutative85.6%
remove-double-neg85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in z around inf 38.6%
Taylor expanded in y around inf 36.9%
Final simplification46.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= x -2.5e+189)
(* y (* x z))
(if (<= x -3.8e-49)
(* x (* t (- a)))
(if (<= x -1.55e-215)
t_1
(if (<= x -2.85e-275)
(* (* z b) (- c))
(if (<= x 3.3e-138)
t_1
(if (<= x 45000.0) (* t (* b i)) (* z (* x 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 * (c * j);
double tmp;
if (x <= -2.5e+189) {
tmp = y * (x * z);
} else if (x <= -3.8e-49) {
tmp = x * (t * -a);
} else if (x <= -1.55e-215) {
tmp = t_1;
} else if (x <= -2.85e-275) {
tmp = (z * b) * -c;
} else if (x <= 3.3e-138) {
tmp = t_1;
} else if (x <= 45000.0) {
tmp = t * (b * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (x <= (-2.5d+189)) then
tmp = y * (x * z)
else if (x <= (-3.8d-49)) then
tmp = x * (t * -a)
else if (x <= (-1.55d-215)) then
tmp = t_1
else if (x <= (-2.85d-275)) then
tmp = (z * b) * -c
else if (x <= 3.3d-138) then
tmp = t_1
else if (x <= 45000.0d0) then
tmp = t * (b * i)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (x <= -2.5e+189) {
tmp = y * (x * z);
} else if (x <= -3.8e-49) {
tmp = x * (t * -a);
} else if (x <= -1.55e-215) {
tmp = t_1;
} else if (x <= -2.85e-275) {
tmp = (z * b) * -c;
} else if (x <= 3.3e-138) {
tmp = t_1;
} else if (x <= 45000.0) {
tmp = t * (b * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if x <= -2.5e+189: tmp = y * (x * z) elif x <= -3.8e-49: tmp = x * (t * -a) elif x <= -1.55e-215: tmp = t_1 elif x <= -2.85e-275: tmp = (z * b) * -c elif x <= 3.3e-138: tmp = t_1 elif x <= 45000.0: tmp = t * (b * i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (x <= -2.5e+189) tmp = Float64(y * Float64(x * z)); elseif (x <= -3.8e-49) tmp = Float64(x * Float64(t * Float64(-a))); elseif (x <= -1.55e-215) tmp = t_1; elseif (x <= -2.85e-275) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (x <= 3.3e-138) tmp = t_1; elseif (x <= 45000.0) tmp = Float64(t * Float64(b * i)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (x <= -2.5e+189) tmp = y * (x * z); elseif (x <= -3.8e-49) tmp = x * (t * -a); elseif (x <= -1.55e-215) tmp = t_1; elseif (x <= -2.85e-275) tmp = (z * b) * -c; elseif (x <= 3.3e-138) tmp = t_1; elseif (x <= 45000.0) tmp = t * (b * i); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.5e+189], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.8e-49], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.55e-215], t$95$1, If[LessEqual[x, -2.85e-275], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[x, 3.3e-138], t$95$1, If[LessEqual[x, 45000.0], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;x \leq -2.5 \cdot 10^{+189}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq -3.8 \cdot 10^{-49}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;x \leq -1.55 \cdot 10^{-215}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.85 \cdot 10^{-275}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{-138}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 45000:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.5000000000000002e189Initial program 50.3%
sub-neg50.3%
+-commutative50.3%
associate-+l+50.3%
distribute-rgt-neg-in50.3%
+-commutative50.3%
fma-def57.4%
sub-neg57.4%
+-commutative57.4%
distribute-neg-in57.4%
unsub-neg57.4%
remove-double-neg57.4%
*-commutative57.4%
Simplified57.4%
fma-udef57.4%
Applied egg-rr57.4%
Taylor expanded in y around inf 50.5%
Taylor expanded in x around inf 64.8%
if -2.5000000000000002e189 < x < -3.7999999999999997e-49Initial program 77.0%
cancel-sign-sub77.0%
cancel-sign-sub-inv77.0%
*-commutative77.0%
remove-double-neg77.0%
*-commutative77.0%
Simplified77.0%
Taylor expanded in x around inf 59.9%
Taylor expanded in y around 0 47.4%
mul-1-neg47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if -3.7999999999999997e-49 < x < -1.54999999999999997e-215 or -2.84999999999999995e-275 < x < 3.29999999999999982e-138Initial program 72.7%
sub-neg72.7%
+-commutative72.7%
associate-+l+72.7%
distribute-rgt-neg-in72.7%
+-commutative72.7%
fma-def72.7%
sub-neg72.7%
+-commutative72.7%
distribute-neg-in72.7%
unsub-neg72.7%
remove-double-neg72.7%
*-commutative72.7%
Simplified72.7%
fma-udef72.7%
Applied egg-rr72.7%
Taylor expanded in y around inf 77.8%
Taylor expanded in a around inf 40.7%
associate-*r*38.7%
*-commutative38.7%
associate-*l*44.3%
Simplified44.3%
if -1.54999999999999997e-215 < x < -2.84999999999999995e-275Initial program 74.2%
cancel-sign-sub74.2%
cancel-sign-sub-inv74.2%
*-commutative74.2%
remove-double-neg74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in c around inf 67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in j around 0 67.8%
neg-mul-167.8%
*-commutative67.8%
distribute-rgt-neg-in67.8%
Simplified67.8%
if 3.29999999999999982e-138 < x < 45000Initial program 69.0%
cancel-sign-sub69.0%
cancel-sign-sub-inv69.0%
*-commutative69.0%
remove-double-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 36.0%
associate-*r*45.7%
*-commutative45.7%
associate-*r*42.4%
Simplified42.4%
if 45000 < x Initial program 85.6%
cancel-sign-sub85.6%
cancel-sign-sub-inv85.6%
*-commutative85.6%
remove-double-neg85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in z around inf 38.6%
Taylor expanded in y around inf 36.9%
Final simplification46.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* (* z b) (- c))))
(if (<= z -8e+101)
t_2
(if (<= z -2.45e-262)
t_1
(if (<= z -8e-291)
(* y (* i (- j)))
(if (<= z 2.9e+50) t_1 (if (<= z 4.4e+187) (* x (* y z)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = (z * b) * -c;
double tmp;
if (z <= -8e+101) {
tmp = t_2;
} else if (z <= -2.45e-262) {
tmp = t_1;
} else if (z <= -8e-291) {
tmp = y * (i * -j);
} else if (z <= 2.9e+50) {
tmp = t_1;
} else if (z <= 4.4e+187) {
tmp = x * (y * z);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
t_2 = (z * b) * -c
if (z <= (-8d+101)) then
tmp = t_2
else if (z <= (-2.45d-262)) then
tmp = t_1
else if (z <= (-8d-291)) then
tmp = y * (i * -j)
else if (z <= 2.9d+50) then
tmp = t_1
else if (z <= 4.4d+187) then
tmp = x * (y * z)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double t_2 = (z * b) * -c;
double tmp;
if (z <= -8e+101) {
tmp = t_2;
} else if (z <= -2.45e-262) {
tmp = t_1;
} else if (z <= -8e-291) {
tmp = y * (i * -j);
} else if (z <= 2.9e+50) {
tmp = t_1;
} else if (z <= 4.4e+187) {
tmp = x * (y * z);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = (z * b) * -c tmp = 0 if z <= -8e+101: tmp = t_2 elif z <= -2.45e-262: tmp = t_1 elif z <= -8e-291: tmp = y * (i * -j) elif z <= 2.9e+50: tmp = t_1 elif z <= 4.4e+187: tmp = x * (y * z) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(Float64(z * b) * Float64(-c)) tmp = 0.0 if (z <= -8e+101) tmp = t_2; elseif (z <= -2.45e-262) tmp = t_1; elseif (z <= -8e-291) tmp = Float64(y * Float64(i * Float64(-j))); elseif (z <= 2.9e+50) tmp = t_1; elseif (z <= 4.4e+187) tmp = Float64(x * Float64(y * z)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = (z * b) * -c; tmp = 0.0; if (z <= -8e+101) tmp = t_2; elseif (z <= -2.45e-262) tmp = t_1; elseif (z <= -8e-291) tmp = y * (i * -j); elseif (z <= 2.9e+50) tmp = t_1; elseif (z <= 4.4e+187) tmp = x * (y * z); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, If[LessEqual[z, -8e+101], t$95$2, If[LessEqual[z, -2.45e-262], t$95$1, If[LessEqual[z, -8e-291], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+50], t$95$1, If[LessEqual[z, 4.4e+187], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := \left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{+101}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -2.45 \cdot 10^{-262}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-291}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+50}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+187}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -7.9999999999999998e101 or 4.3999999999999997e187 < z Initial program 65.3%
cancel-sign-sub65.3%
cancel-sign-sub-inv65.3%
*-commutative65.3%
remove-double-neg65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around inf 61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in j around 0 56.0%
neg-mul-156.0%
*-commutative56.0%
distribute-rgt-neg-in56.0%
Simplified56.0%
if -7.9999999999999998e101 < z < -2.4500000000000001e-262 or -7.9999999999999997e-291 < z < 2.9e50Initial program 79.0%
sub-neg79.0%
+-commutative79.0%
associate-+l+79.0%
distribute-rgt-neg-in79.0%
+-commutative79.0%
fma-def79.6%
sub-neg79.6%
+-commutative79.6%
distribute-neg-in79.6%
unsub-neg79.6%
remove-double-neg79.6%
*-commutative79.6%
Simplified80.9%
fma-udef79.6%
Applied egg-rr79.6%
Taylor expanded in a around inf 55.2%
mul-1-neg55.2%
unsub-neg55.2%
Simplified55.2%
if -2.4500000000000001e-262 < z < -7.9999999999999997e-291Initial program 56.0%
cancel-sign-sub56.0%
cancel-sign-sub-inv56.0%
*-commutative56.0%
remove-double-neg56.0%
*-commutative56.0%
Simplified56.0%
Taylor expanded in j around inf 56.5%
Taylor expanded in c around 0 67.7%
if 2.9e50 < z < 4.3999999999999997e187Initial program 66.6%
cancel-sign-sub66.6%
cancel-sign-sub-inv66.6%
*-commutative66.6%
remove-double-neg66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in x around inf 47.9%
Taylor expanded in y around inf 41.6%
Final simplification54.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* c (- (* a j) (* z b)))))
(if (<= c -0.00021)
t_2
(if (<= c -1.36e-276)
t_1
(if (<= c 1.3e-154) (* (* y i) (- j)) (if (<= c 4.2e+112) 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 = a * ((c * j) - (x * t));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.00021) {
tmp = t_2;
} else if (c <= -1.36e-276) {
tmp = t_1;
} else if (c <= 1.3e-154) {
tmp = (y * i) * -j;
} else if (c <= 4.2e+112) {
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 = a * ((c * j) - (x * t))
t_2 = c * ((a * j) - (z * b))
if (c <= (-0.00021d0)) then
tmp = t_2
else if (c <= (-1.36d-276)) then
tmp = t_1
else if (c <= 1.3d-154) then
tmp = (y * i) * -j
else if (c <= 4.2d+112) 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 = a * ((c * j) - (x * t));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -0.00021) {
tmp = t_2;
} else if (c <= -1.36e-276) {
tmp = t_1;
} else if (c <= 1.3e-154) {
tmp = (y * i) * -j;
} else if (c <= 4.2e+112) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -0.00021: tmp = t_2 elif c <= -1.36e-276: tmp = t_1 elif c <= 1.3e-154: tmp = (y * i) * -j elif c <= 4.2e+112: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -0.00021) tmp = t_2; elseif (c <= -1.36e-276) tmp = t_1; elseif (c <= 1.3e-154) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (c <= 4.2e+112) 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 = a * ((c * j) - (x * t)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -0.00021) tmp = t_2; elseif (c <= -1.36e-276) tmp = t_1; elseif (c <= 1.3e-154) tmp = (y * i) * -j; elseif (c <= 4.2e+112) 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -0.00021], t$95$2, If[LessEqual[c, -1.36e-276], t$95$1, If[LessEqual[c, 1.3e-154], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[c, 4.2e+112], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -0.00021:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -1.36 \cdot 10^{-276}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{-154}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;c \leq 4.2 \cdot 10^{+112}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.1000000000000001e-4 or 4.1999999999999998e112 < c Initial program 65.8%
cancel-sign-sub65.8%
cancel-sign-sub-inv65.8%
*-commutative65.8%
remove-double-neg65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in c around inf 66.7%
*-commutative66.7%
Simplified66.7%
if -2.1000000000000001e-4 < c < -1.35999999999999993e-276 or 1.3e-154 < c < 4.1999999999999998e112Initial program 81.3%
sub-neg81.3%
+-commutative81.3%
associate-+l+81.3%
distribute-rgt-neg-in81.3%
+-commutative81.3%
fma-def83.1%
sub-neg83.1%
+-commutative83.1%
distribute-neg-in83.1%
unsub-neg83.1%
remove-double-neg83.1%
*-commutative83.1%
Simplified84.0%
fma-udef83.1%
Applied egg-rr83.1%
Taylor expanded in a around inf 50.7%
mul-1-neg50.7%
unsub-neg50.7%
Simplified50.7%
if -1.35999999999999993e-276 < c < 1.3e-154Initial program 74.8%
cancel-sign-sub74.8%
cancel-sign-sub-inv74.8%
*-commutative74.8%
remove-double-neg74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in j around inf 46.8%
Taylor expanded in c around 0 46.7%
mul-1-neg46.7%
*-commutative46.7%
distribute-rgt-neg-in46.7%
Simplified46.7%
Final simplification57.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -6800000.0)
t_1
(if (<= j -2.65e-189)
(* z (* x y))
(if (<= j -5.2e-289)
(* i (* t b))
(if (<= j 1.6e-113)
(* x (* y z))
(if (<= j 1.18e-22) (* b (* z (- c))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -6800000.0) {
tmp = t_1;
} else if (j <= -2.65e-189) {
tmp = z * (x * y);
} else if (j <= -5.2e-289) {
tmp = i * (t * b);
} else if (j <= 1.6e-113) {
tmp = x * (y * z);
} else if (j <= 1.18e-22) {
tmp = b * (z * -c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (j <= (-6800000.0d0)) then
tmp = t_1
else if (j <= (-2.65d-189)) then
tmp = z * (x * y)
else if (j <= (-5.2d-289)) then
tmp = i * (t * b)
else if (j <= 1.6d-113) then
tmp = x * (y * z)
else if (j <= 1.18d-22) then
tmp = b * (z * -c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -6800000.0) {
tmp = t_1;
} else if (j <= -2.65e-189) {
tmp = z * (x * y);
} else if (j <= -5.2e-289) {
tmp = i * (t * b);
} else if (j <= 1.6e-113) {
tmp = x * (y * z);
} else if (j <= 1.18e-22) {
tmp = b * (z * -c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -6800000.0: tmp = t_1 elif j <= -2.65e-189: tmp = z * (x * y) elif j <= -5.2e-289: tmp = i * (t * b) elif j <= 1.6e-113: tmp = x * (y * z) elif j <= 1.18e-22: tmp = b * (z * -c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -6800000.0) tmp = t_1; elseif (j <= -2.65e-189) tmp = Float64(z * Float64(x * y)); elseif (j <= -5.2e-289) tmp = Float64(i * Float64(t * b)); elseif (j <= 1.6e-113) tmp = Float64(x * Float64(y * z)); elseif (j <= 1.18e-22) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (j <= -6800000.0) tmp = t_1; elseif (j <= -2.65e-189) tmp = z * (x * y); elseif (j <= -5.2e-289) tmp = i * (t * b); elseif (j <= 1.6e-113) tmp = x * (y * z); elseif (j <= 1.18e-22) tmp = b * (z * -c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6800000.0], t$95$1, If[LessEqual[j, -2.65e-189], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -5.2e-289], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.6e-113], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.18e-22], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -6800000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.65 \cdot 10^{-189}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq -5.2 \cdot 10^{-289}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 1.6 \cdot 10^{-113}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 1.18 \cdot 10^{-22}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -6.8e6 or 1.1799999999999999e-22 < j Initial program 74.4%
sub-neg74.4%
+-commutative74.4%
associate-+l+74.4%
distribute-rgt-neg-in74.4%
+-commutative74.4%
fma-def76.5%
sub-neg76.5%
+-commutative76.5%
distribute-neg-in76.5%
unsub-neg76.5%
remove-double-neg76.5%
*-commutative76.5%
Simplified78.7%
fma-udef76.5%
Applied egg-rr76.5%
Taylor expanded in y around inf 72.8%
Taylor expanded in a around inf 38.7%
associate-*r*40.0%
*-commutative40.0%
associate-*l*43.4%
Simplified43.4%
if -6.8e6 < j < -2.6499999999999999e-189Initial program 66.2%
cancel-sign-sub66.2%
cancel-sign-sub-inv66.2%
*-commutative66.2%
remove-double-neg66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in z around inf 59.9%
Taylor expanded in y around inf 37.7%
if -2.6499999999999999e-189 < j < -5.1999999999999998e-289Initial program 80.8%
cancel-sign-sub80.8%
cancel-sign-sub-inv80.8%
*-commutative80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in j around 0 85.6%
Taylor expanded in i around inf 51.2%
if -5.1999999999999998e-289 < j < 1.6000000000000001e-113Initial program 66.9%
cancel-sign-sub66.9%
cancel-sign-sub-inv66.9%
*-commutative66.9%
remove-double-neg66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in x around inf 56.3%
Taylor expanded in y around inf 36.3%
if 1.6000000000000001e-113 < j < 1.1799999999999999e-22Initial program 93.7%
cancel-sign-sub93.7%
cancel-sign-sub-inv93.7%
*-commutative93.7%
remove-double-neg93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in c around inf 45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in j around 0 39.9%
mul-1-neg39.9%
associate-*r*39.9%
Simplified39.9%
Final simplification41.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -5600000.0)
t_1
(if (<= j -1.8e-188)
(* z (* x y))
(if (<= j -7.2e-289)
(* i (* t b))
(if (<= j 4.8e-108)
(* x (* y z))
(if (<= j 2e-23) (* (* z b) (- c)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -5600000.0) {
tmp = t_1;
} else if (j <= -1.8e-188) {
tmp = z * (x * y);
} else if (j <= -7.2e-289) {
tmp = i * (t * b);
} else if (j <= 4.8e-108) {
tmp = x * (y * z);
} else if (j <= 2e-23) {
tmp = (z * b) * -c;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (j <= (-5600000.0d0)) then
tmp = t_1
else if (j <= (-1.8d-188)) then
tmp = z * (x * y)
else if (j <= (-7.2d-289)) then
tmp = i * (t * b)
else if (j <= 4.8d-108) then
tmp = x * (y * z)
else if (j <= 2d-23) then
tmp = (z * b) * -c
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -5600000.0) {
tmp = t_1;
} else if (j <= -1.8e-188) {
tmp = z * (x * y);
} else if (j <= -7.2e-289) {
tmp = i * (t * b);
} else if (j <= 4.8e-108) {
tmp = x * (y * z);
} else if (j <= 2e-23) {
tmp = (z * b) * -c;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -5600000.0: tmp = t_1 elif j <= -1.8e-188: tmp = z * (x * y) elif j <= -7.2e-289: tmp = i * (t * b) elif j <= 4.8e-108: tmp = x * (y * z) elif j <= 2e-23: tmp = (z * b) * -c else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -5600000.0) tmp = t_1; elseif (j <= -1.8e-188) tmp = Float64(z * Float64(x * y)); elseif (j <= -7.2e-289) tmp = Float64(i * Float64(t * b)); elseif (j <= 4.8e-108) tmp = Float64(x * Float64(y * z)); elseif (j <= 2e-23) tmp = Float64(Float64(z * b) * Float64(-c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (j <= -5600000.0) tmp = t_1; elseif (j <= -1.8e-188) tmp = z * (x * y); elseif (j <= -7.2e-289) tmp = i * (t * b); elseif (j <= 4.8e-108) tmp = x * (y * z); elseif (j <= 2e-23) tmp = (z * b) * -c; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5600000.0], t$95$1, If[LessEqual[j, -1.8e-188], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -7.2e-289], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.8e-108], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2e-23], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -5600000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -1.8 \cdot 10^{-188}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq -7.2 \cdot 10^{-289}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{-108}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 2 \cdot 10^{-23}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -5.6e6 or 1.99999999999999992e-23 < j Initial program 74.4%
sub-neg74.4%
+-commutative74.4%
associate-+l+74.4%
distribute-rgt-neg-in74.4%
+-commutative74.4%
fma-def76.5%
sub-neg76.5%
+-commutative76.5%
distribute-neg-in76.5%
unsub-neg76.5%
remove-double-neg76.5%
*-commutative76.5%
Simplified78.7%
fma-udef76.5%
Applied egg-rr76.5%
Taylor expanded in y around inf 72.8%
Taylor expanded in a around inf 38.7%
associate-*r*40.0%
*-commutative40.0%
associate-*l*43.4%
Simplified43.4%
if -5.6e6 < j < -1.7999999999999998e-188Initial program 66.2%
cancel-sign-sub66.2%
cancel-sign-sub-inv66.2%
*-commutative66.2%
remove-double-neg66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in z around inf 59.9%
Taylor expanded in y around inf 37.7%
if -1.7999999999999998e-188 < j < -7.2e-289Initial program 80.8%
cancel-sign-sub80.8%
cancel-sign-sub-inv80.8%
*-commutative80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in j around 0 85.6%
Taylor expanded in i around inf 51.2%
if -7.2e-289 < j < 4.80000000000000034e-108Initial program 66.9%
cancel-sign-sub66.9%
cancel-sign-sub-inv66.9%
*-commutative66.9%
remove-double-neg66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in x around inf 56.3%
Taylor expanded in y around inf 36.3%
if 4.80000000000000034e-108 < j < 1.99999999999999992e-23Initial program 93.7%
cancel-sign-sub93.7%
cancel-sign-sub-inv93.7%
*-commutative93.7%
remove-double-neg93.7%
*-commutative93.7%
Simplified93.7%
Taylor expanded in c around inf 45.5%
*-commutative45.5%
Simplified45.5%
Taylor expanded in j around 0 39.9%
neg-mul-139.9%
*-commutative39.9%
distribute-rgt-neg-in39.9%
Simplified39.9%
Final simplification41.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= j -6500000.0)
t_1
(if (<= j -2.25e-190)
(* z (* x y))
(if (<= j -9e-287)
(* i (* t b))
(if (<= j 1.7e-156) (* x (* y z)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -6500000.0) {
tmp = t_1;
} else if (j <= -2.25e-190) {
tmp = z * (x * y);
} else if (j <= -9e-287) {
tmp = i * (t * b);
} else if (j <= 1.7e-156) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (j <= (-6500000.0d0)) then
tmp = t_1
else if (j <= (-2.25d-190)) then
tmp = z * (x * y)
else if (j <= (-9d-287)) then
tmp = i * (t * b)
else if (j <= 1.7d-156) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (j <= -6500000.0) {
tmp = t_1;
} else if (j <= -2.25e-190) {
tmp = z * (x * y);
} else if (j <= -9e-287) {
tmp = i * (t * b);
} else if (j <= 1.7e-156) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if j <= -6500000.0: tmp = t_1 elif j <= -2.25e-190: tmp = z * (x * y) elif j <= -9e-287: tmp = i * (t * b) elif j <= 1.7e-156: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (j <= -6500000.0) tmp = t_1; elseif (j <= -2.25e-190) tmp = Float64(z * Float64(x * y)); elseif (j <= -9e-287) tmp = Float64(i * Float64(t * b)); elseif (j <= 1.7e-156) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (j <= -6500000.0) tmp = t_1; elseif (j <= -2.25e-190) tmp = z * (x * y); elseif (j <= -9e-287) tmp = i * (t * b); elseif (j <= 1.7e-156) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6500000.0], t$95$1, If[LessEqual[j, -2.25e-190], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -9e-287], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.7e-156], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;j \leq -6500000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -2.25 \cdot 10^{-190}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;j \leq -9 \cdot 10^{-287}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{-156}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if j < -6.5e6 or 1.69999999999999995e-156 < j Initial program 76.6%
sub-neg76.6%
+-commutative76.6%
associate-+l+76.6%
distribute-rgt-neg-in76.6%
+-commutative76.6%
fma-def78.5%
sub-neg78.5%
+-commutative78.5%
distribute-neg-in78.5%
unsub-neg78.5%
remove-double-neg78.5%
*-commutative78.5%
Simplified80.3%
fma-udef78.5%
Applied egg-rr78.5%
Taylor expanded in y around inf 71.2%
Taylor expanded in a around inf 35.6%
associate-*r*36.2%
*-commutative36.2%
associate-*l*39.7%
Simplified39.7%
if -6.5e6 < j < -2.2500000000000001e-190Initial program 66.2%
cancel-sign-sub66.2%
cancel-sign-sub-inv66.2%
*-commutative66.2%
remove-double-neg66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in z around inf 59.9%
Taylor expanded in y around inf 37.7%
if -2.2500000000000001e-190 < j < -9.00000000000000034e-287Initial program 80.8%
cancel-sign-sub80.8%
cancel-sign-sub-inv80.8%
*-commutative80.8%
remove-double-neg80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in j around 0 85.6%
Taylor expanded in i around inf 51.2%
if -9.00000000000000034e-287 < j < 1.69999999999999995e-156Initial program 64.2%
cancel-sign-sub64.2%
cancel-sign-sub-inv64.2%
*-commutative64.2%
remove-double-neg64.2%
*-commutative64.2%
Simplified64.2%
Taylor expanded in x around inf 56.9%
Taylor expanded in y around inf 38.6%
Final simplification40.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= x -6.2e+155)
t_1
(if (<= x 3e-138) (* a (* c j)) (if (<= x 35000.0) (* t (* b i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (x <= -6.2e+155) {
tmp = t_1;
} else if (x <= 3e-138) {
tmp = a * (c * j);
} else if (x <= 35000.0) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (x <= (-6.2d+155)) then
tmp = t_1
else if (x <= 3d-138) then
tmp = a * (c * j)
else if (x <= 35000.0d0) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (x <= -6.2e+155) {
tmp = t_1;
} else if (x <= 3e-138) {
tmp = a * (c * j);
} else if (x <= 35000.0) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if x <= -6.2e+155: tmp = t_1 elif x <= 3e-138: tmp = a * (c * j) elif x <= 35000.0: tmp = t * (b * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (x <= -6.2e+155) tmp = t_1; elseif (x <= 3e-138) tmp = Float64(a * Float64(c * j)); elseif (x <= 35000.0) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (x <= -6.2e+155) tmp = t_1; elseif (x <= 3e-138) tmp = a * (c * j); elseif (x <= 35000.0) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.2e+155], t$95$1, If[LessEqual[x, 3e-138], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 35000.0], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;x \leq -6.2 \cdot 10^{+155}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 3 \cdot 10^{-138}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 35000:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if x < -6.19999999999999978e155 or 35000 < x Initial program 75.2%
sub-neg75.2%
+-commutative75.2%
associate-+l+75.2%
distribute-rgt-neg-in75.2%
+-commutative75.2%
fma-def77.3%
sub-neg77.3%
+-commutative77.3%
distribute-neg-in77.3%
unsub-neg77.3%
remove-double-neg77.3%
*-commutative77.3%
Simplified80.4%
fma-udef77.3%
Applied egg-rr77.3%
Taylor expanded in y around inf 59.3%
Taylor expanded in x around inf 42.0%
if -6.19999999999999978e155 < x < 3.0000000000000001e-138Initial program 73.6%
sub-neg73.6%
+-commutative73.6%
associate-+l+73.6%
distribute-rgt-neg-in73.6%
+-commutative73.6%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
fma-udef73.6%
Applied egg-rr73.6%
Taylor expanded in y around inf 70.4%
Taylor expanded in a around inf 30.8%
associate-*r*30.9%
*-commutative30.9%
associate-*l*34.4%
Simplified34.4%
if 3.0000000000000001e-138 < x < 35000Initial program 69.0%
cancel-sign-sub69.0%
cancel-sign-sub-inv69.0%
*-commutative69.0%
remove-double-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 36.0%
associate-*r*45.7%
*-commutative45.7%
associate-*r*42.4%
Simplified42.4%
Final simplification38.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.05e+157)
(* y (* x z))
(if (<= x 4e-138)
(* a (* c j))
(if (<= x 45000.0) (* t (* b i)) (* z (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.05e+157) {
tmp = y * (x * z);
} else if (x <= 4e-138) {
tmp = a * (c * j);
} else if (x <= 45000.0) {
tmp = t * (b * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-2.05d+157)) then
tmp = y * (x * z)
else if (x <= 4d-138) then
tmp = a * (c * j)
else if (x <= 45000.0d0) then
tmp = t * (b * i)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.05e+157) {
tmp = y * (x * z);
} else if (x <= 4e-138) {
tmp = a * (c * j);
} else if (x <= 45000.0) {
tmp = t * (b * i);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.05e+157: tmp = y * (x * z) elif x <= 4e-138: tmp = a * (c * j) elif x <= 45000.0: tmp = t * (b * i) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.05e+157) tmp = Float64(y * Float64(x * z)); elseif (x <= 4e-138) tmp = Float64(a * Float64(c * j)); elseif (x <= 45000.0) tmp = Float64(t * Float64(b * i)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.05e+157) tmp = y * (x * z); elseif (x <= 4e-138) tmp = a * (c * j); elseif (x <= 45000.0) tmp = t * (b * i); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.05e+157], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4e-138], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 45000.0], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.05 \cdot 10^{+157}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;x \leq 4 \cdot 10^{-138}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 45000:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if x < -2.05000000000000008e157Initial program 56.3%
sub-neg56.3%
+-commutative56.3%
associate-+l+56.3%
distribute-rgt-neg-in56.3%
+-commutative56.3%
fma-def62.1%
sub-neg62.1%
+-commutative62.1%
distribute-neg-in62.1%
unsub-neg62.1%
remove-double-neg62.1%
*-commutative62.1%
Simplified62.1%
fma-udef62.1%
Applied egg-rr62.1%
Taylor expanded in y around inf 48.0%
Taylor expanded in x around inf 56.9%
if -2.05000000000000008e157 < x < 4.00000000000000027e-138Initial program 73.6%
sub-neg73.6%
+-commutative73.6%
associate-+l+73.6%
distribute-rgt-neg-in73.6%
+-commutative73.6%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
fma-udef73.6%
Applied egg-rr73.6%
Taylor expanded in y around inf 70.4%
Taylor expanded in a around inf 30.8%
associate-*r*30.9%
*-commutative30.9%
associate-*l*34.4%
Simplified34.4%
if 4.00000000000000027e-138 < x < 45000Initial program 69.0%
cancel-sign-sub69.0%
cancel-sign-sub-inv69.0%
*-commutative69.0%
remove-double-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in j around 0 65.7%
Taylor expanded in i around inf 36.0%
associate-*r*45.7%
*-commutative45.7%
associate-*r*42.4%
Simplified42.4%
if 45000 < x Initial program 85.6%
cancel-sign-sub85.6%
cancel-sign-sub-inv85.6%
*-commutative85.6%
remove-double-neg85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in z around inf 38.6%
Taylor expanded in y around inf 36.9%
Final simplification38.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -4e-21) (not (<= j 4.1e+40))) (* a (* c j)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -4e-21) || !(j <= 4.1e+40)) {
tmp = a * (c * j);
} else {
tmp = i * (t * 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 ((j <= (-4d-21)) .or. (.not. (j <= 4.1d+40))) then
tmp = a * (c * j)
else
tmp = i * (t * 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 ((j <= -4e-21) || !(j <= 4.1e+40)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -4e-21) or not (j <= 4.1e+40): tmp = a * (c * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -4e-21) || !(j <= 4.1e+40)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -4e-21) || ~((j <= 4.1e+40))) tmp = a * (c * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -4e-21], N[Not[LessEqual[j, 4.1e+40]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4 \cdot 10^{-21} \lor \neg \left(j \leq 4.1 \cdot 10^{+40}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if j < -3.99999999999999963e-21 or 4.1000000000000002e40 < j Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def75.9%
sub-neg75.9%
+-commutative75.9%
distribute-neg-in75.9%
unsub-neg75.9%
remove-double-neg75.9%
*-commutative75.9%
Simplified78.0%
fma-udef75.9%
Applied egg-rr75.9%
Taylor expanded in y around inf 73.5%
Taylor expanded in a around inf 37.1%
associate-*r*38.4%
*-commutative38.4%
associate-*l*41.7%
Simplified41.7%
if -3.99999999999999963e-21 < j < 4.1000000000000002e40Initial program 73.7%
cancel-sign-sub73.7%
cancel-sign-sub-inv73.7%
*-commutative73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in j around 0 74.4%
Taylor expanded in i around inf 28.6%
Final simplification35.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -7.8e-22) (not (<= j 3.6e+46))) (* a (* c j)) (* t (* b i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -7.8e-22) || !(j <= 3.6e+46)) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-7.8d-22)) .or. (.not. (j <= 3.6d+46))) then
tmp = a * (c * j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -7.8e-22) || !(j <= 3.6e+46)) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -7.8e-22) or not (j <= 3.6e+46): tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -7.8e-22) || !(j <= 3.6e+46)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -7.8e-22) || ~((j <= 3.6e+46))) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -7.8e-22], N[Not[LessEqual[j, 3.6e+46]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -7.8 \cdot 10^{-22} \lor \neg \left(j \leq 3.6 \cdot 10^{+46}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if j < -7.79999999999999996e-22 or 3.5999999999999999e46 < j Initial program 73.5%
sub-neg73.5%
+-commutative73.5%
associate-+l+73.5%
distribute-rgt-neg-in73.5%
+-commutative73.5%
fma-def75.7%
sub-neg75.7%
+-commutative75.7%
distribute-neg-in75.7%
unsub-neg75.7%
remove-double-neg75.7%
*-commutative75.7%
Simplified77.8%
fma-udef75.7%
Applied egg-rr75.7%
Taylor expanded in y around inf 74.0%
Taylor expanded in a around inf 37.3%
associate-*r*38.7%
*-commutative38.7%
associate-*l*42.0%
Simplified42.0%
if -7.79999999999999996e-22 < j < 3.5999999999999999e46Initial program 73.9%
cancel-sign-sub73.9%
cancel-sign-sub-inv73.9%
*-commutative73.9%
remove-double-neg73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in j around 0 74.6%
Taylor expanded in i around inf 28.4%
associate-*r*29.2%
*-commutative29.2%
associate-*r*29.2%
Simplified29.2%
Final simplification36.2%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 73.7%
sub-neg73.7%
+-commutative73.7%
associate-+l+73.7%
distribute-rgt-neg-in73.7%
+-commutative73.7%
fma-def74.9%
sub-neg74.9%
+-commutative74.9%
distribute-neg-in74.9%
unsub-neg74.9%
remove-double-neg74.9%
*-commutative74.9%
Simplified76.0%
fma-udef74.9%
Applied egg-rr74.9%
Taylor expanded in y around inf 66.5%
Taylor expanded in a around inf 25.3%
associate-*r*26.8%
*-commutative26.8%
associate-*l*27.9%
Simplified27.9%
Final simplification27.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023173
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))