
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 30 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* t c) (* y i)))
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c)))))))
(if (<= t_1 INFINITY)
t_1
(fma (- (* i j) (* x z)) (- y) (* a (- (* b i) (* x t)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(((i * j) - (x * z)), -y, (a * ((b * i) - (x * t))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = fma(Float64(Float64(i * j) - Float64(x * z)), Float64(-y), Float64(a * Float64(Float64(b * i) - Float64(x * t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * 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[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(i * j), $MachinePrecision] - N[(x * z), $MachinePrecision]), $MachinePrecision] * (-y) + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(i \cdot j - x \cdot z, -y, a \cdot \left(b \cdot i - x \cdot t\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in y around -inf 18.5%
Simplified25.9%
associate--l+25.9%
fma-def35.2%
fma-neg35.2%
Applied egg-rr35.2%
Taylor expanded in c around 0 40.7%
Simplified59.3%
Final simplification85.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (* j (- (* t c) (* y i))) (+ t_1 (* b (- (* a i) (* z c)))))))
(if (<= t_2 INFINITY) t_2 t_1)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + (t_1 + (b * ((a * i) - (z * c))));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (j * ((t * c) - (y * i))) + (t_1 + (b * ((a * i) - (z * c))));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (j * ((t * c) - (y * i))) + (t_1 + (b * ((a * i) - (z * c)))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c))))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = (j * ((t * c) - (y * i))) + (t_1 + (b * ((a * i) - (z * c)))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_2 \leq \infty:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.9%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in x around inf 52.0%
*-commutative52.0%
Simplified52.0%
Final simplification83.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (- t_1 (* z (* b c))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -1.4e+194)
t_3
(if (<= x -1.6e+110)
t_2
(if (<= x -4.5e+58)
t_3
(if (<= x -3.4e-8)
(+ t_1 (* z (* x y)))
(if (<= x -3.2e-175)
(- (* c (* t j)) (* z (- (* b c) (* x y))))
(if (<= x -8.4e-278)
(* b (- (* a i) (* z c)))
(if (<= x 5.8e-25)
t_2
(if (<= x 3.2e+85) (* i (- (* a b) (* y j))) t_3))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - (z * (b * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.4e+194) {
tmp = t_3;
} else if (x <= -1.6e+110) {
tmp = t_2;
} else if (x <= -4.5e+58) {
tmp = t_3;
} else if (x <= -3.4e-8) {
tmp = t_1 + (z * (x * y));
} else if (x <= -3.2e-175) {
tmp = (c * (t * j)) - (z * ((b * c) - (x * y)));
} else if (x <= -8.4e-278) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 5.8e-25) {
tmp = t_2;
} else if (x <= 3.2e+85) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 - (z * (b * c))
t_3 = x * ((y * z) - (t * a))
if (x <= (-1.4d+194)) then
tmp = t_3
else if (x <= (-1.6d+110)) then
tmp = t_2
else if (x <= (-4.5d+58)) then
tmp = t_3
else if (x <= (-3.4d-8)) then
tmp = t_1 + (z * (x * y))
else if (x <= (-3.2d-175)) then
tmp = (c * (t * j)) - (z * ((b * c) - (x * y)))
else if (x <= (-8.4d-278)) then
tmp = b * ((a * i) - (z * c))
else if (x <= 5.8d-25) then
tmp = t_2
else if (x <= 3.2d+85) then
tmp = i * ((a * b) - (y * j))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - (z * (b * c));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.4e+194) {
tmp = t_3;
} else if (x <= -1.6e+110) {
tmp = t_2;
} else if (x <= -4.5e+58) {
tmp = t_3;
} else if (x <= -3.4e-8) {
tmp = t_1 + (z * (x * y));
} else if (x <= -3.2e-175) {
tmp = (c * (t * j)) - (z * ((b * c) - (x * y)));
} else if (x <= -8.4e-278) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 5.8e-25) {
tmp = t_2;
} else if (x <= 3.2e+85) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 - (z * (b * c)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.4e+194: tmp = t_3 elif x <= -1.6e+110: tmp = t_2 elif x <= -4.5e+58: tmp = t_3 elif x <= -3.4e-8: tmp = t_1 + (z * (x * y)) elif x <= -3.2e-175: tmp = (c * (t * j)) - (z * ((b * c) - (x * y))) elif x <= -8.4e-278: tmp = b * ((a * i) - (z * c)) elif x <= 5.8e-25: tmp = t_2 elif x <= 3.2e+85: tmp = i * ((a * b) - (y * j)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t_1 - Float64(z * Float64(b * c))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.4e+194) tmp = t_3; elseif (x <= -1.6e+110) tmp = t_2; elseif (x <= -4.5e+58) tmp = t_3; elseif (x <= -3.4e-8) tmp = Float64(t_1 + Float64(z * Float64(x * y))); elseif (x <= -3.2e-175) tmp = Float64(Float64(c * Float64(t * j)) - Float64(z * Float64(Float64(b * c) - Float64(x * y)))); elseif (x <= -8.4e-278) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 5.8e-25) tmp = t_2; elseif (x <= 3.2e+85) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t_1 - (z * (b * c)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.4e+194) tmp = t_3; elseif (x <= -1.6e+110) tmp = t_2; elseif (x <= -4.5e+58) tmp = t_3; elseif (x <= -3.4e-8) tmp = t_1 + (z * (x * y)); elseif (x <= -3.2e-175) tmp = (c * (t * j)) - (z * ((b * c) - (x * y))); elseif (x <= -8.4e-278) tmp = b * ((a * i) - (z * c)); elseif (x <= 5.8e-25) tmp = t_2; elseif (x <= 3.2e+85) tmp = i * ((a * b) - (y * j)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.4e+194], t$95$3, If[LessEqual[x, -1.6e+110], t$95$2, If[LessEqual[x, -4.5e+58], t$95$3, If[LessEqual[x, -3.4e-8], N[(t$95$1 + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -3.2e-175], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(z * N[(N[(b * c), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.4e-278], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.8e-25], t$95$2, If[LessEqual[x, 3.2e+85], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t_1 - z \cdot \left(b \cdot c\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.4 \cdot 10^{+194}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{+110}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -4.5 \cdot 10^{+58}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -3.4 \cdot 10^{-8}:\\
\;\;\;\;t_1 + z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -3.2 \cdot 10^{-175}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - z \cdot \left(b \cdot c - x \cdot y\right)\\
\mathbf{elif}\;x \leq -8.4 \cdot 10^{-278}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 5.8 \cdot 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 3.2 \cdot 10^{+85}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -1.40000000000000005e194 or -1.59999999999999997e110 < x < -4.4999999999999998e58 or 3.20000000000000018e85 < x Initial program 70.0%
Taylor expanded in x around inf 80.7%
*-commutative80.7%
Simplified80.7%
if -1.40000000000000005e194 < x < -1.59999999999999997e110 or -8.40000000000000054e-278 < x < 5.8000000000000001e-25Initial program 74.0%
Taylor expanded in i around 0 67.5%
*-commutative67.5%
*-commutative67.5%
*-commutative67.5%
*-commutative67.5%
associate-*l*66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in x around 0 65.4%
sub-neg65.4%
sub-neg65.4%
*-commutative65.4%
*-commutative65.4%
associate-*r*64.4%
*-commutative64.4%
Simplified64.4%
if -4.4999999999999998e58 < x < -3.4e-8Initial program 78.5%
Taylor expanded in y around inf 79.1%
*-commutative79.1%
*-commutative79.1%
associate-*l*79.1%
Simplified79.1%
if -3.4e-8 < x < -3.2e-175Initial program 84.3%
Taylor expanded in y around -inf 90.5%
Simplified87.3%
Taylor expanded in i around 0 68.1%
sub-neg68.1%
associate-+r+68.1%
sub-neg68.1%
associate-*r*68.1%
associate-*r*71.0%
distribute-rgt-out--74.1%
+-commutative74.1%
fma-def74.1%
Simplified74.1%
Taylor expanded in a around 0 77.5%
if -3.2e-175 < x < -8.40000000000000054e-278Initial program 54.0%
Taylor expanded in b around inf 62.1%
if 5.8000000000000001e-25 < x < 3.20000000000000018e85Initial program 67.7%
Taylor expanded in y around -inf 50.6%
Simplified51.2%
Taylor expanded in i around inf 67.4%
mul-1-neg67.4%
neg-sub067.4%
mul-1-neg67.4%
*-commutative67.4%
associate--r+67.4%
+-commutative67.4%
associate--r+67.4%
neg-sub067.4%
remove-double-neg67.4%
*-commutative67.4%
Simplified67.4%
Final simplification72.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -4.2e+120) (not (<= i 2.2e+141))) (* i (- (* a b) (* y j))) (+ (* j (- (* t c) (* y i))) (- (* x (- (* y z) (* t a))) (* c (* z b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -4.2e+120) || !(i <= 2.2e+141)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (c * (z * b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-4.2d+120)) .or. (.not. (i <= 2.2d+141))) then
tmp = i * ((a * b) - (y * j))
else
tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (c * (z * b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -4.2e+120) || !(i <= 2.2e+141)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (c * (z * b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -4.2e+120) or not (i <= 2.2e+141): tmp = i * ((a * b) - (y * j)) else: tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (c * (z * b))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -4.2e+120) || !(i <= 2.2e+141)) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(c * Float64(z * b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -4.2e+120) || ~((i <= 2.2e+141))) tmp = i * ((a * b) - (y * j)); else tmp = (j * ((t * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (c * (z * b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -4.2e+120], N[Not[LessEqual[i, 2.2e+141]], $MachinePrecision]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.2 \cdot 10^{+120} \lor \neg \left(i \leq 2.2 \cdot 10^{+141}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) - c \cdot \left(z \cdot b\right)\right)\\
\end{array}
\end{array}
if i < -4.2000000000000001e120 or 2.2e141 < i Initial program 57.1%
Taylor expanded in y around -inf 57.1%
Simplified57.0%
Taylor expanded in i around inf 71.2%
mul-1-neg71.2%
neg-sub071.2%
mul-1-neg71.2%
*-commutative71.2%
associate--r+71.2%
+-commutative71.2%
associate--r+71.2%
neg-sub071.2%
remove-double-neg71.2%
*-commutative71.2%
Simplified71.2%
if -4.2000000000000001e120 < i < 2.2e141Initial program 79.4%
Taylor expanded in i around 0 73.8%
*-commutative73.8%
*-commutative73.8%
*-commutative73.8%
*-commutative73.8%
associate-*l*73.8%
*-commutative73.8%
Simplified73.8%
Final simplification73.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j))))
(t_2 (- (* c (* t j)) (* z (- (* b c) (* x y)))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= x -1.15e+194)
t_3
(if (<= x -2.3e-181)
t_2
(if (<= x -4.9e-297)
(* b (- (* a i) (* z c)))
(if (<= x 8.2e-218)
(* j (- (* t c) (* y i)))
(if (<= x 2.9e-199)
t_1
(if (<= x 1.65e-110)
t_2
(if (<= x 8.5e-67)
(* a (- (* b i) (* x t)))
(if (<= x 2.2e-30)
(* c (- (* t j) (* z b)))
(if (<= x 7.4e+85) 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 = i * ((a * b) - (y * j));
double t_2 = (c * (t * j)) - (z * ((b * c) - (x * y)));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.15e+194) {
tmp = t_3;
} else if (x <= -2.3e-181) {
tmp = t_2;
} else if (x <= -4.9e-297) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 8.2e-218) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 2.9e-199) {
tmp = t_1;
} else if (x <= 1.65e-110) {
tmp = t_2;
} else if (x <= 8.5e-67) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 2.2e-30) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 7.4e+85) {
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 = i * ((a * b) - (y * j))
t_2 = (c * (t * j)) - (z * ((b * c) - (x * y)))
t_3 = x * ((y * z) - (t * a))
if (x <= (-1.15d+194)) then
tmp = t_3
else if (x <= (-2.3d-181)) then
tmp = t_2
else if (x <= (-4.9d-297)) then
tmp = b * ((a * i) - (z * c))
else if (x <= 8.2d-218) then
tmp = j * ((t * c) - (y * i))
else if (x <= 2.9d-199) then
tmp = t_1
else if (x <= 1.65d-110) then
tmp = t_2
else if (x <= 8.5d-67) then
tmp = a * ((b * i) - (x * t))
else if (x <= 2.2d-30) then
tmp = c * ((t * j) - (z * b))
else if (x <= 7.4d+85) 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 = i * ((a * b) - (y * j));
double t_2 = (c * (t * j)) - (z * ((b * c) - (x * y)));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.15e+194) {
tmp = t_3;
} else if (x <= -2.3e-181) {
tmp = t_2;
} else if (x <= -4.9e-297) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 8.2e-218) {
tmp = j * ((t * c) - (y * i));
} else if (x <= 2.9e-199) {
tmp = t_1;
} else if (x <= 1.65e-110) {
tmp = t_2;
} else if (x <= 8.5e-67) {
tmp = a * ((b * i) - (x * t));
} else if (x <= 2.2e-30) {
tmp = c * ((t * j) - (z * b));
} else if (x <= 7.4e+85) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = (c * (t * j)) - (z * ((b * c) - (x * y))) t_3 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.15e+194: tmp = t_3 elif x <= -2.3e-181: tmp = t_2 elif x <= -4.9e-297: tmp = b * ((a * i) - (z * c)) elif x <= 8.2e-218: tmp = j * ((t * c) - (y * i)) elif x <= 2.9e-199: tmp = t_1 elif x <= 1.65e-110: tmp = t_2 elif x <= 8.5e-67: tmp = a * ((b * i) - (x * t)) elif x <= 2.2e-30: tmp = c * ((t * j) - (z * b)) elif x <= 7.4e+85: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(Float64(c * Float64(t * j)) - Float64(z * Float64(Float64(b * c) - Float64(x * y)))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.15e+194) tmp = t_3; elseif (x <= -2.3e-181) tmp = t_2; elseif (x <= -4.9e-297) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 8.2e-218) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (x <= 2.9e-199) tmp = t_1; elseif (x <= 1.65e-110) tmp = t_2; elseif (x <= 8.5e-67) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (x <= 2.2e-30) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (x <= 7.4e+85) 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 = i * ((a * b) - (y * j)); t_2 = (c * (t * j)) - (z * ((b * c) - (x * y))); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.15e+194) tmp = t_3; elseif (x <= -2.3e-181) tmp = t_2; elseif (x <= -4.9e-297) tmp = b * ((a * i) - (z * c)); elseif (x <= 8.2e-218) tmp = j * ((t * c) - (y * i)); elseif (x <= 2.9e-199) tmp = t_1; elseif (x <= 1.65e-110) tmp = t_2; elseif (x <= 8.5e-67) tmp = a * ((b * i) - (x * t)); elseif (x <= 2.2e-30) tmp = c * ((t * j) - (z * b)); elseif (x <= 7.4e+85) 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(z * N[(N[(b * c), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.15e+194], t$95$3, If[LessEqual[x, -2.3e-181], t$95$2, If[LessEqual[x, -4.9e-297], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 8.2e-218], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.9e-199], t$95$1, If[LessEqual[x, 1.65e-110], t$95$2, If[LessEqual[x, 8.5e-67], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.2e-30], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e+85], t$95$1, t$95$3]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := c \cdot \left(t \cdot j\right) - z \cdot \left(b \cdot c - x \cdot y\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.15 \cdot 10^{+194}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;x \leq -2.3 \cdot 10^{-181}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -4.9 \cdot 10^{-297}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 8.2 \cdot 10^{-218}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;x \leq 2.9 \cdot 10^{-199}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.65 \cdot 10^{-110}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-67}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;x \leq 2.2 \cdot 10^{-30}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{+85}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if x < -1.15000000000000003e194 or 7.4000000000000004e85 < x Initial program 69.9%
Taylor expanded in x around inf 80.8%
*-commutative80.8%
Simplified80.8%
if -1.15000000000000003e194 < x < -2.29999999999999991e-181 or 2.9e-199 < x < 1.65e-110Initial program 75.4%
Taylor expanded in y around -inf 77.5%
Simplified74.3%
Taylor expanded in i around 0 61.6%
sub-neg61.6%
associate-+r+61.6%
sub-neg61.6%
associate-*r*59.6%
associate-*r*60.9%
distribute-rgt-out--63.1%
+-commutative63.1%
fma-def63.1%
Simplified63.1%
Taylor expanded in a around 0 66.9%
if -2.29999999999999991e-181 < x < -4.89999999999999997e-297Initial program 58.7%
Taylor expanded in b around inf 64.8%
if -4.89999999999999997e-297 < x < 8.1999999999999995e-218Initial program 84.6%
Taylor expanded in j around inf 69.0%
if 8.1999999999999995e-218 < x < 2.9e-199 or 2.19999999999999983e-30 < x < 7.4000000000000004e85Initial program 69.3%
Taylor expanded in y around -inf 59.6%
Simplified60.1%
Taylor expanded in i around inf 73.3%
mul-1-neg73.3%
neg-sub073.3%
mul-1-neg73.3%
*-commutative73.3%
associate--r+73.3%
+-commutative73.3%
associate--r+73.3%
neg-sub073.3%
remove-double-neg73.3%
*-commutative73.3%
Simplified73.3%
if 1.65e-110 < x < 8.49999999999999993e-67Initial program 67.0%
Taylor expanded in y around -inf 89.2%
Simplified89.3%
associate--l+89.3%
fma-def89.3%
fma-neg89.3%
Applied egg-rr89.3%
Taylor expanded in a around inf 70.1%
mul-1-neg70.1%
*-commutative70.1%
neg-sub070.1%
mul-1-neg70.1%
distribute-lft-neg-out70.1%
associate--r+70.1%
+-commutative70.1%
associate--r+70.1%
neg-sub070.1%
*-commutative70.1%
distribute-rgt-neg-in70.1%
remove-double-neg70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
if 8.49999999999999993e-67 < x < 2.19999999999999983e-30Initial program 74.6%
Taylor expanded in c around inf 63.6%
Final simplification71.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (+ (* j (- (* t c) (* y i))) t_1)))
(if (<= y -2.5e+161)
(+ (* t (* c j)) t_2)
(if (<= y -2.05e-69)
t_3
(if (<= y 4.3e-239)
(- t_1 (* b (* z c)))
(if (<= y 4.5e+194) t_3 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = (j * ((t * c) - (y * i))) + t_1;
double tmp;
if (y <= -2.5e+161) {
tmp = (t * (c * j)) + t_2;
} else if (y <= -2.05e-69) {
tmp = t_3;
} else if (y <= 4.3e-239) {
tmp = t_1 - (b * (z * c));
} else if (y <= 4.5e+194) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = y * ((x * z) - (i * j))
t_3 = (j * ((t * c) - (y * i))) + t_1
if (y <= (-2.5d+161)) then
tmp = (t * (c * j)) + t_2
else if (y <= (-2.05d-69)) then
tmp = t_3
else if (y <= 4.3d-239) then
tmp = t_1 - (b * (z * c))
else if (y <= 4.5d+194) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = (j * ((t * c) - (y * i))) + t_1;
double tmp;
if (y <= -2.5e+161) {
tmp = (t * (c * j)) + t_2;
} else if (y <= -2.05e-69) {
tmp = t_3;
} else if (y <= 4.3e-239) {
tmp = t_1 - (b * (z * c));
} else if (y <= 4.5e+194) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = y * ((x * z) - (i * j)) t_3 = (j * ((t * c) - (y * i))) + t_1 tmp = 0 if y <= -2.5e+161: tmp = (t * (c * j)) + t_2 elif y <= -2.05e-69: tmp = t_3 elif y <= 4.3e-239: tmp = t_1 - (b * (z * c)) elif y <= 4.5e+194: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1) tmp = 0.0 if (y <= -2.5e+161) tmp = Float64(Float64(t * Float64(c * j)) + t_2); elseif (y <= -2.05e-69) tmp = t_3; elseif (y <= 4.3e-239) tmp = Float64(t_1 - Float64(b * Float64(z * c))); elseif (y <= 4.5e+194) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = y * ((x * z) - (i * j)); t_3 = (j * ((t * c) - (y * i))) + t_1; tmp = 0.0; if (y <= -2.5e+161) tmp = (t * (c * j)) + t_2; elseif (y <= -2.05e-69) tmp = t_3; elseif (y <= 4.3e-239) tmp = t_1 - (b * (z * c)); elseif (y <= 4.5e+194) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[y, -2.5e+161], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[y, -2.05e-69], t$95$3, If[LessEqual[y, 4.3e-239], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.5e+194], t$95$3, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right) + t_1\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+161}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + t_2\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-69}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{-239}:\\
\;\;\;\;t_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq 4.5 \cdot 10^{+194}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2.4999999999999998e161Initial program 68.8%
Taylor expanded in y around -inf 76.5%
Simplified84.2%
Taylor expanded in b around 0 84.4%
Taylor expanded in c around inf 87.0%
*-commutative87.0%
Simplified87.0%
if -2.4999999999999998e161 < y < -2.04999999999999995e-69 or 4.3e-239 < y < 4.4999999999999998e194Initial program 76.0%
Taylor expanded in b around 0 72.5%
if -2.04999999999999995e-69 < y < 4.3e-239Initial program 79.1%
Taylor expanded in j around 0 76.9%
*-commutative76.9%
Simplified76.9%
Taylor expanded in c around inf 65.8%
if 4.4999999999999998e194 < y Initial program 42.2%
Taylor expanded in y around -inf 79.4%
mul-1-neg79.4%
*-commutative79.4%
distribute-rgt-neg-in79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
Simplified79.4%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (+ (* j (- (* t c) (* y i))) t_1)))
(if (<= y -2.5e+161)
(+ (* t (* c j)) t_2)
(if (<= y -8.5e-69)
t_3
(if (<= y 8e-209)
(+ t_1 (* b (- (* a i) (* z c))))
(if (<= y 2e+194) t_3 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = (j * ((t * c) - (y * i))) + t_1;
double tmp;
if (y <= -2.5e+161) {
tmp = (t * (c * j)) + t_2;
} else if (y <= -8.5e-69) {
tmp = t_3;
} else if (y <= 8e-209) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (y <= 2e+194) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = y * ((x * z) - (i * j))
t_3 = (j * ((t * c) - (y * i))) + t_1
if (y <= (-2.5d+161)) then
tmp = (t * (c * j)) + t_2
else if (y <= (-8.5d-69)) then
tmp = t_3
else if (y <= 8d-209) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else if (y <= 2d+194) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = (j * ((t * c) - (y * i))) + t_1;
double tmp;
if (y <= -2.5e+161) {
tmp = (t * (c * j)) + t_2;
} else if (y <= -8.5e-69) {
tmp = t_3;
} else if (y <= 8e-209) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (y <= 2e+194) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = y * ((x * z) - (i * j)) t_3 = (j * ((t * c) - (y * i))) + t_1 tmp = 0 if y <= -2.5e+161: tmp = (t * (c * j)) + t_2 elif y <= -8.5e-69: tmp = t_3 elif y <= 8e-209: tmp = t_1 + (b * ((a * i) - (z * c))) elif y <= 2e+194: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1) tmp = 0.0 if (y <= -2.5e+161) tmp = Float64(Float64(t * Float64(c * j)) + t_2); elseif (y <= -8.5e-69) tmp = t_3; elseif (y <= 8e-209) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (y <= 2e+194) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = y * ((x * z) - (i * j)); t_3 = (j * ((t * c) - (y * i))) + t_1; tmp = 0.0; if (y <= -2.5e+161) tmp = (t * (c * j)) + t_2; elseif (y <= -8.5e-69) tmp = t_3; elseif (y <= 8e-209) tmp = t_1 + (b * ((a * i) - (z * c))); elseif (y <= 2e+194) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[y, -2.5e+161], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[y, -8.5e-69], t$95$3, If[LessEqual[y, 8e-209], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+194], t$95$3, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := j \cdot \left(t \cdot c - y \cdot i\right) + t_1\\
\mathbf{if}\;y \leq -2.5 \cdot 10^{+161}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + t_2\\
\mathbf{elif}\;y \leq -8.5 \cdot 10^{-69}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;y \leq 8 \cdot 10^{-209}:\\
\;\;\;\;t_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+194}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2.4999999999999998e161Initial program 68.8%
Taylor expanded in y around -inf 76.5%
Simplified84.2%
Taylor expanded in b around 0 84.4%
Taylor expanded in c around inf 87.0%
*-commutative87.0%
Simplified87.0%
if -2.4999999999999998e161 < y < -8.50000000000000046e-69 or 8.0000000000000004e-209 < y < 1.99999999999999989e194Initial program 74.6%
Taylor expanded in b around 0 72.6%
if -8.50000000000000046e-69 < y < 8.0000000000000004e-209Initial program 81.2%
Taylor expanded in j around 0 76.4%
*-commutative76.4%
Simplified76.4%
if 1.99999999999999989e194 < y Initial program 42.2%
Taylor expanded in y around -inf 79.4%
mul-1-neg79.4%
*-commutative79.4%
distribute-rgt-neg-in79.4%
+-commutative79.4%
mul-1-neg79.4%
unsub-neg79.4%
*-commutative79.4%
Simplified79.4%
Final simplification76.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (- t_1 (* i (* y j)))))
(if (<= y -1.55e+157)
(+ (* t (* c j)) (* y (- (* x z) (* i j))))
(if (<= y -1.35e-89)
t_2
(if (<= y -8.2e-240)
(* b (- (* a i) (* z c)))
(if (<= y 1.26e-256)
(- t_1 (* b (* z c)))
(if (<= y 6.2e-11)
(- (* t (- (* c j) (* x a))) (* y (* 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 = x * ((y * z) - (t * a));
double t_2 = t_1 - (i * (y * j));
double tmp;
if (y <= -1.55e+157) {
tmp = (t * (c * j)) + (y * ((x * z) - (i * j)));
} else if (y <= -1.35e-89) {
tmp = t_2;
} else if (y <= -8.2e-240) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 1.26e-256) {
tmp = t_1 - (b * (z * c));
} else if (y <= 6.2e-11) {
tmp = (t * ((c * j) - (x * a))) - (y * (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 = x * ((y * z) - (t * a))
t_2 = t_1 - (i * (y * j))
if (y <= (-1.55d+157)) then
tmp = (t * (c * j)) + (y * ((x * z) - (i * j)))
else if (y <= (-1.35d-89)) then
tmp = t_2
else if (y <= (-8.2d-240)) then
tmp = b * ((a * i) - (z * c))
else if (y <= 1.26d-256) then
tmp = t_1 - (b * (z * c))
else if (y <= 6.2d-11) then
tmp = (t * ((c * j) - (x * a))) - (y * (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 = x * ((y * z) - (t * a));
double t_2 = t_1 - (i * (y * j));
double tmp;
if (y <= -1.55e+157) {
tmp = (t * (c * j)) + (y * ((x * z) - (i * j)));
} else if (y <= -1.35e-89) {
tmp = t_2;
} else if (y <= -8.2e-240) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 1.26e-256) {
tmp = t_1 - (b * (z * c));
} else if (y <= 6.2e-11) {
tmp = (t * ((c * j) - (x * a))) - (y * (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = t_1 - (i * (y * j)) tmp = 0 if y <= -1.55e+157: tmp = (t * (c * j)) + (y * ((x * z) - (i * j))) elif y <= -1.35e-89: tmp = t_2 elif y <= -8.2e-240: tmp = b * ((a * i) - (z * c)) elif y <= 1.26e-256: tmp = t_1 - (b * (z * c)) elif y <= 6.2e-11: tmp = (t * ((c * j) - (x * a))) - (y * (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(t_1 - Float64(i * Float64(y * j))) tmp = 0.0 if (y <= -1.55e+157) tmp = Float64(Float64(t * Float64(c * j)) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); elseif (y <= -1.35e-89) tmp = t_2; elseif (y <= -8.2e-240) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= 1.26e-256) tmp = Float64(t_1 - Float64(b * Float64(z * c))); elseif (y <= 6.2e-11) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(y * 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 = x * ((y * z) - (t * a)); t_2 = t_1 - (i * (y * j)); tmp = 0.0; if (y <= -1.55e+157) tmp = (t * (c * j)) + (y * ((x * z) - (i * j))); elseif (y <= -1.35e-89) tmp = t_2; elseif (y <= -8.2e-240) tmp = b * ((a * i) - (z * c)); elseif (y <= 1.26e-256) tmp = t_1 - (b * (z * c)); elseif (y <= 6.2e-11) tmp = (t * ((c * j) - (x * a))) - (y * (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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.55e+157], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.35e-89], t$95$2, If[LessEqual[y, -8.2e-240], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.26e-256], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.2e-11], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t_1 - i \cdot \left(y \cdot j\right)\\
\mathbf{if}\;y \leq -1.55 \cdot 10^{+157}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{-89}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-240}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 1.26 \cdot 10^{-256}:\\
\;\;\;\;t_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq 6.2 \cdot 10^{-11}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.5499999999999999e157Initial program 70.4%
Taylor expanded in y around -inf 77.7%
Simplified85.0%
Taylor expanded in b around 0 85.2%
Taylor expanded in c around inf 87.6%
*-commutative87.6%
Simplified87.6%
if -1.5499999999999999e157 < y < -1.34999999999999994e-89 or 6.20000000000000056e-11 < y Initial program 67.1%
Taylor expanded in i around 0 65.4%
*-commutative65.4%
*-commutative65.4%
*-commutative65.4%
*-commutative65.4%
associate-*l*66.4%
*-commutative66.4%
Simplified66.4%
Taylor expanded in c around 0 69.5%
if -1.34999999999999994e-89 < y < -8.2000000000000003e-240Initial program 73.2%
Taylor expanded in b around inf 68.3%
if -8.2000000000000003e-240 < y < 1.25999999999999999e-256Initial program 85.4%
Taylor expanded in j around 0 85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in c around inf 71.1%
if 1.25999999999999999e-256 < y < 6.20000000000000056e-11Initial program 78.1%
Taylor expanded in y around -inf 67.5%
Simplified72.8%
Taylor expanded in b around 0 65.8%
Taylor expanded in z around 0 70.9%
+-commutative70.9%
*-commutative70.9%
*-commutative70.9%
mul-1-neg70.9%
associate-*r*67.0%
unsub-neg67.0%
*-commutative67.0%
Simplified67.0%
Final simplification71.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -2.1e+116)
t_1
(if (<= i -6.2e-272)
(+ (* t (- (* c j) (* x a))) (* y (- (* x z) (* i j))))
(if (<= i 1.35e+89)
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.1e+116) {
tmp = t_1;
} else if (i <= -6.2e-272) {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
} else if (i <= 1.35e+89) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (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 = i * ((a * b) - (y * j))
if (i <= (-2.1d+116)) then
tmp = t_1
else if (i <= (-6.2d-272)) then
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)))
else if (i <= 1.35d+89) then
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -2.1e+116) {
tmp = t_1;
} else if (i <= -6.2e-272) {
tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j)));
} else if (i <= 1.35e+89) {
tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -2.1e+116: tmp = t_1 elif i <= -6.2e-272: tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))) elif i <= 1.35e+89: tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -2.1e+116) tmp = t_1; elseif (i <= -6.2e-272) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); elseif (i <= 1.35e+89) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -2.1e+116) tmp = t_1; elseif (i <= -6.2e-272) tmp = (t * ((c * j) - (x * a))) + (y * ((x * z) - (i * j))); elseif (i <= 1.35e+89) tmp = (x * ((y * z) - (t * a))) + (b * ((a * i) - (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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.1e+116], t$95$1, If[LessEqual[i, -6.2e-272], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.35e+89], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -2.1 \cdot 10^{+116}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -6.2 \cdot 10^{-272}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;i \leq 1.35 \cdot 10^{+89}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -2.1000000000000001e116 or 1.35e89 < i Initial program 59.8%
Taylor expanded in y around -inf 58.7%
Simplified58.7%
Taylor expanded in i around inf 70.7%
mul-1-neg70.7%
neg-sub070.7%
mul-1-neg70.7%
*-commutative70.7%
associate--r+70.7%
+-commutative70.7%
associate--r+70.7%
neg-sub070.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
if -2.1000000000000001e116 < i < -6.20000000000000059e-272Initial program 75.4%
Taylor expanded in y around -inf 75.4%
Simplified80.7%
Taylor expanded in b around 0 76.3%
if -6.20000000000000059e-272 < i < 1.35e89Initial program 83.7%
Taylor expanded in j around 0 71.8%
*-commutative71.8%
Simplified71.8%
Final simplification72.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z)))
(t_2 (* a (- (* b i) (* x t))))
(t_3 (* j (* t c))))
(if (<= a -3.4e+45)
t_2
(if (<= a -3.35e-56)
t_1
(if (<= a -1.95e-107)
t_3
(if (<= a -4.5e-239)
t_1
(if (<= a 3.2e-300)
t_3
(if (<= a 1.2e-193)
t_1
(if (<= a 4.7e+94) (* b (- (* a i) (* z c))) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = a * ((b * i) - (x * t));
double t_3 = j * (t * c);
double tmp;
if (a <= -3.4e+45) {
tmp = t_2;
} else if (a <= -3.35e-56) {
tmp = t_1;
} else if (a <= -1.95e-107) {
tmp = t_3;
} else if (a <= -4.5e-239) {
tmp = t_1;
} else if (a <= 3.2e-300) {
tmp = t_3;
} else if (a <= 1.2e-193) {
tmp = t_1;
} else if (a <= 4.7e+94) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = a * ((b * i) - (x * t))
t_3 = j * (t * c)
if (a <= (-3.4d+45)) then
tmp = t_2
else if (a <= (-3.35d-56)) then
tmp = t_1
else if (a <= (-1.95d-107)) then
tmp = t_3
else if (a <= (-4.5d-239)) then
tmp = t_1
else if (a <= 3.2d-300) then
tmp = t_3
else if (a <= 1.2d-193) then
tmp = t_1
else if (a <= 4.7d+94) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = a * ((b * i) - (x * t));
double t_3 = j * (t * c);
double tmp;
if (a <= -3.4e+45) {
tmp = t_2;
} else if (a <= -3.35e-56) {
tmp = t_1;
} else if (a <= -1.95e-107) {
tmp = t_3;
} else if (a <= -4.5e-239) {
tmp = t_1;
} else if (a <= 3.2e-300) {
tmp = t_3;
} else if (a <= 1.2e-193) {
tmp = t_1;
} else if (a <= 4.7e+94) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = a * ((b * i) - (x * t)) t_3 = j * (t * c) tmp = 0 if a <= -3.4e+45: tmp = t_2 elif a <= -3.35e-56: tmp = t_1 elif a <= -1.95e-107: tmp = t_3 elif a <= -4.5e-239: tmp = t_1 elif a <= 3.2e-300: tmp = t_3 elif a <= 1.2e-193: tmp = t_1 elif a <= 4.7e+94: tmp = b * ((a * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_3 = Float64(j * Float64(t * c)) tmp = 0.0 if (a <= -3.4e+45) tmp = t_2; elseif (a <= -3.35e-56) tmp = t_1; elseif (a <= -1.95e-107) tmp = t_3; elseif (a <= -4.5e-239) tmp = t_1; elseif (a <= 3.2e-300) tmp = t_3; elseif (a <= 1.2e-193) tmp = t_1; elseif (a <= 4.7e+94) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = a * ((b * i) - (x * t)); t_3 = j * (t * c); tmp = 0.0; if (a <= -3.4e+45) tmp = t_2; elseif (a <= -3.35e-56) tmp = t_1; elseif (a <= -1.95e-107) tmp = t_3; elseif (a <= -4.5e-239) tmp = t_1; elseif (a <= 3.2e-300) tmp = t_3; elseif (a <= 1.2e-193) tmp = t_1; elseif (a <= 4.7e+94) tmp = b * ((a * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e+45], t$95$2, If[LessEqual[a, -3.35e-56], t$95$1, If[LessEqual[a, -1.95e-107], t$95$3, If[LessEqual[a, -4.5e-239], t$95$1, If[LessEqual[a, 3.2e-300], t$95$3, If[LessEqual[a, 1.2e-193], t$95$1, If[LessEqual[a, 4.7e+94], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_3 := j \cdot \left(t \cdot c\right)\\
\mathbf{if}\;a \leq -3.4 \cdot 10^{+45}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;a \leq -3.35 \cdot 10^{-56}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-107}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq -4.5 \cdot 10^{-239}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-300}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;a \leq 1.2 \cdot 10^{-193}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.7 \cdot 10^{+94}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if a < -3.4e45 or 4.70000000000000017e94 < a Initial program 63.5%
Taylor expanded in y around -inf 67.2%
Simplified65.5%
associate--l+65.5%
fma-def67.4%
fma-neg67.4%
Applied egg-rr67.4%
Taylor expanded in a around inf 70.7%
mul-1-neg70.7%
*-commutative70.7%
neg-sub070.7%
mul-1-neg70.7%
distribute-lft-neg-out70.7%
associate--r+70.7%
+-commutative70.7%
associate--r+70.7%
neg-sub070.7%
*-commutative70.7%
distribute-rgt-neg-in70.7%
remove-double-neg70.7%
*-commutative70.7%
*-commutative70.7%
Simplified70.7%
if -3.4e45 < a < -3.3499999999999998e-56 or -1.95e-107 < a < -4.50000000000000013e-239 or 3.20000000000000021e-300 < a < 1.2e-193Initial program 75.5%
Taylor expanded in x around inf 56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around inf 46.7%
*-commutative46.7%
Simplified46.7%
if -3.3499999999999998e-56 < a < -1.95e-107 or -4.50000000000000013e-239 < a < 3.20000000000000021e-300Initial program 79.7%
Taylor expanded in y around -inf 69.6%
Simplified72.7%
Taylor expanded in b around 0 69.3%
Taylor expanded in c around inf 50.1%
*-commutative50.1%
associate-*r*53.1%
Simplified53.1%
if 1.2e-193 < a < 4.70000000000000017e94Initial program 81.4%
Taylor expanded in b around inf 41.6%
Final simplification55.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* i (- (* a b) (* y j))))
(t_3 (* x (- (* y z) (* t a)))))
(if (<= i -1.1e+112)
t_2
(if (<= i -8.5e+46)
t_1
(if (<= i -1.6e-24)
(* z (- (* x y) (* b c)))
(if (<= i -2.35e-271)
t_1
(if (<= i 3.3e-6)
t_3
(if (<= i 9.5e+49)
(* b (- (* a i) (* z c)))
(if (<= i 4.1e+86) t_3 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (i <= -1.1e+112) {
tmp = t_2;
} else if (i <= -8.5e+46) {
tmp = t_1;
} else if (i <= -1.6e-24) {
tmp = z * ((x * y) - (b * c));
} else if (i <= -2.35e-271) {
tmp = t_1;
} else if (i <= 3.3e-6) {
tmp = t_3;
} else if (i <= 9.5e+49) {
tmp = b * ((a * i) - (z * c));
} else if (i <= 4.1e+86) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = i * ((a * b) - (y * j))
t_3 = x * ((y * z) - (t * a))
if (i <= (-1.1d+112)) then
tmp = t_2
else if (i <= (-8.5d+46)) then
tmp = t_1
else if (i <= (-1.6d-24)) then
tmp = z * ((x * y) - (b * c))
else if (i <= (-2.35d-271)) then
tmp = t_1
else if (i <= 3.3d-6) then
tmp = t_3
else if (i <= 9.5d+49) then
tmp = b * ((a * i) - (z * c))
else if (i <= 4.1d+86) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double t_3 = x * ((y * z) - (t * a));
double tmp;
if (i <= -1.1e+112) {
tmp = t_2;
} else if (i <= -8.5e+46) {
tmp = t_1;
} else if (i <= -1.6e-24) {
tmp = z * ((x * y) - (b * c));
} else if (i <= -2.35e-271) {
tmp = t_1;
} else if (i <= 3.3e-6) {
tmp = t_3;
} else if (i <= 9.5e+49) {
tmp = b * ((a * i) - (z * c));
} else if (i <= 4.1e+86) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = i * ((a * b) - (y * j)) t_3 = x * ((y * z) - (t * a)) tmp = 0 if i <= -1.1e+112: tmp = t_2 elif i <= -8.5e+46: tmp = t_1 elif i <= -1.6e-24: tmp = z * ((x * y) - (b * c)) elif i <= -2.35e-271: tmp = t_1 elif i <= 3.3e-6: tmp = t_3 elif i <= 9.5e+49: tmp = b * ((a * i) - (z * c)) elif i <= 4.1e+86: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_3 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (i <= -1.1e+112) tmp = t_2; elseif (i <= -8.5e+46) tmp = t_1; elseif (i <= -1.6e-24) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= -2.35e-271) tmp = t_1; elseif (i <= 3.3e-6) tmp = t_3; elseif (i <= 9.5e+49) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (i <= 4.1e+86) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = i * ((a * b) - (y * j)); t_3 = x * ((y * z) - (t * a)); tmp = 0.0; if (i <= -1.1e+112) tmp = t_2; elseif (i <= -8.5e+46) tmp = t_1; elseif (i <= -1.6e-24) tmp = z * ((x * y) - (b * c)); elseif (i <= -2.35e-271) tmp = t_1; elseif (i <= 3.3e-6) tmp = t_3; elseif (i <= 9.5e+49) tmp = b * ((a * i) - (z * c)); elseif (i <= 4.1e+86) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.1e+112], t$95$2, If[LessEqual[i, -8.5e+46], t$95$1, If[LessEqual[i, -1.6e-24], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.35e-271], t$95$1, If[LessEqual[i, 3.3e-6], t$95$3, If[LessEqual[i, 9.5e+49], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.1e+86], t$95$3, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_3 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;i \leq -1.1 \cdot 10^{+112}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -8.5 \cdot 10^{+46}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq -1.6 \cdot 10^{-24}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq -2.35 \cdot 10^{-271}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{-6}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{+49}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 4.1 \cdot 10^{+86}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -1.1e112 or 4.0999999999999999e86 < i Initial program 59.8%
Taylor expanded in y around -inf 58.7%
Simplified58.7%
Taylor expanded in i around inf 70.7%
mul-1-neg70.7%
neg-sub070.7%
mul-1-neg70.7%
*-commutative70.7%
associate--r+70.7%
+-commutative70.7%
associate--r+70.7%
neg-sub070.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
if -1.1e112 < i < -8.4999999999999996e46 or -1.60000000000000006e-24 < i < -2.35000000000000002e-271Initial program 75.4%
Taylor expanded in t around inf 62.4%
+-commutative62.4%
mul-1-neg62.4%
unsub-neg62.4%
Simplified62.4%
if -8.4999999999999996e46 < i < -1.60000000000000006e-24Initial program 75.6%
Taylor expanded in z around inf 100.0%
if -2.35000000000000002e-271 < i < 3.30000000000000017e-6 or 9.49999999999999969e49 < i < 4.0999999999999999e86Initial program 81.5%
Taylor expanded in x around inf 62.6%
*-commutative62.6%
Simplified62.6%
if 3.30000000000000017e-6 < i < 9.49999999999999969e49Initial program 93.5%
Taylor expanded in b around inf 63.2%
Final simplification66.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* z (* x y))))
(t_2 (* a (- (* b i) (* x t)))))
(if (<= y -4.1e-49)
t_1
(if (<= y 4.063e-265)
t_2
(if (<= y 5500000.0)
(* t (- (* c j) (* x a)))
(if (<= y 1.5e+132)
t_1
(if (<= y 4.6e+178) t_2 (* y (- (* x z) (* i j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (z * (x * y));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (y <= -4.1e-49) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = t_2;
} else if (y <= 5500000.0) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.5e+132) {
tmp = t_1;
} else if (y <= 4.6e+178) {
tmp = t_2;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (z * (x * y))
t_2 = a * ((b * i) - (x * t))
if (y <= (-4.1d-49)) then
tmp = t_1
else if (y <= 4.063d-265) then
tmp = t_2
else if (y <= 5500000.0d0) then
tmp = t * ((c * j) - (x * a))
else if (y <= 1.5d+132) then
tmp = t_1
else if (y <= 4.6d+178) then
tmp = t_2
else
tmp = y * ((x * z) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (z * (x * y));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (y <= -4.1e-49) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = t_2;
} else if (y <= 5500000.0) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.5e+132) {
tmp = t_1;
} else if (y <= 4.6e+178) {
tmp = t_2;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (z * (x * y)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if y <= -4.1e-49: tmp = t_1 elif y <= 4.063e-265: tmp = t_2 elif y <= 5500000.0: tmp = t * ((c * j) - (x * a)) elif y <= 1.5e+132: tmp = t_1 elif y <= 4.6e+178: tmp = t_2 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(x * y))) t_2 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (y <= -4.1e-49) tmp = t_1; elseif (y <= 4.063e-265) tmp = t_2; elseif (y <= 5500000.0) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 1.5e+132) tmp = t_1; elseif (y <= 4.6e+178) tmp = t_2; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (z * (x * y)); t_2 = a * ((b * i) - (x * t)); tmp = 0.0; if (y <= -4.1e-49) tmp = t_1; elseif (y <= 4.063e-265) tmp = t_2; elseif (y <= 5500000.0) tmp = t * ((c * j) - (x * a)); elseif (y <= 1.5e+132) tmp = t_1; elseif (y <= 4.6e+178) tmp = t_2; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.1e-49], t$95$1, If[LessEqual[y, 4.063e-265], t$95$2, If[LessEqual[y, 5500000.0], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.5e+132], t$95$1, If[LessEqual[y, 4.6e+178], t$95$2, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;y \leq -4.1 \cdot 10^{-49}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.063 \cdot 10^{-265}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 5500000:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{+132}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{+178}:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if y < -4.1000000000000001e-49 or 5.5e6 < y < 1.4999999999999999e132Initial program 72.7%
Taylor expanded in y around inf 69.7%
*-commutative69.7%
*-commutative69.7%
associate-*l*67.9%
Simplified67.9%
if -4.1000000000000001e-49 < y < 4.06299999999999987e-265 or 1.4999999999999999e132 < y < 4.6000000000000002e178Initial program 75.8%
Taylor expanded in y around -inf 73.1%
Simplified71.8%
associate--l+71.8%
fma-def71.8%
fma-neg71.8%
Applied egg-rr71.8%
Taylor expanded in a around inf 66.1%
mul-1-neg66.1%
*-commutative66.1%
neg-sub066.1%
mul-1-neg66.1%
distribute-lft-neg-out66.1%
associate--r+66.1%
+-commutative66.1%
associate--r+66.1%
neg-sub066.1%
*-commutative66.1%
distribute-rgt-neg-in66.1%
remove-double-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
if 4.06299999999999987e-265 < y < 5.5e6Initial program 80.0%
Taylor expanded in t around inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
if 4.6000000000000002e178 < y Initial program 44.5%
Taylor expanded in y around -inf 76.6%
mul-1-neg76.6%
*-commutative76.6%
distribute-rgt-neg-in76.6%
+-commutative76.6%
mul-1-neg76.6%
unsub-neg76.6%
*-commutative76.6%
Simplified76.6%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -1.15e-56)
(- (* c (* t j)) (* z (- (* b c) (* x y))))
(if (<= z 4.2e-88)
(- (* t (- (* c j) (* x a))) (* y (* i j)))
(if (<= z 2.05e+33)
(- (* j (- (* t c) (* y i))) (* z (* b c)))
(* 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 tmp;
if (z <= -1.15e-56) {
tmp = (c * (t * j)) - (z * ((b * c) - (x * y)));
} else if (z <= 4.2e-88) {
tmp = (t * ((c * j) - (x * a))) - (y * (i * j));
} else if (z <= 2.05e+33) {
tmp = (j * ((t * c) - (y * i))) - (z * (b * c));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.15d-56)) then
tmp = (c * (t * j)) - (z * ((b * c) - (x * y)))
else if (z <= 4.2d-88) then
tmp = (t * ((c * j) - (x * a))) - (y * (i * j))
else if (z <= 2.05d+33) then
tmp = (j * ((t * c) - (y * i))) - (z * (b * c))
else
tmp = z * ((x * y) - (b * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.15e-56) {
tmp = (c * (t * j)) - (z * ((b * c) - (x * y)));
} else if (z <= 4.2e-88) {
tmp = (t * ((c * j) - (x * a))) - (y * (i * j));
} else if (z <= 2.05e+33) {
tmp = (j * ((t * c) - (y * i))) - (z * (b * c));
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.15e-56: tmp = (c * (t * j)) - (z * ((b * c) - (x * y))) elif z <= 4.2e-88: tmp = (t * ((c * j) - (x * a))) - (y * (i * j)) elif z <= 2.05e+33: tmp = (j * ((t * c) - (y * i))) - (z * (b * c)) else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.15e-56) tmp = Float64(Float64(c * Float64(t * j)) - Float64(z * Float64(Float64(b * c) - Float64(x * y)))); elseif (z <= 4.2e-88) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(y * Float64(i * j))); elseif (z <= 2.05e+33) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(z * Float64(b * c))); 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) tmp = 0.0; if (z <= -1.15e-56) tmp = (c * (t * j)) - (z * ((b * c) - (x * y))); elseif (z <= 4.2e-88) tmp = (t * ((c * j) - (x * a))) - (y * (i * j)); elseif (z <= 2.05e+33) tmp = (j * ((t * c) - (y * i))) - (z * (b * c)); else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.15e-56], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(z * N[(N[(b * c), $MachinePrecision] - N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e-88], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.05e+33], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.15 \cdot 10^{-56}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) - z \cdot \left(b \cdot c - x \cdot y\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{-88}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{+33}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if z < -1.15000000000000001e-56Initial program 68.1%
Taylor expanded in y around -inf 66.8%
Simplified60.8%
Taylor expanded in i around 0 59.0%
sub-neg59.0%
associate-+r+59.0%
sub-neg59.0%
associate-*r*57.6%
associate-*r*56.2%
distribute-rgt-out--60.8%
+-commutative60.8%
fma-def62.3%
Simplified62.3%
Taylor expanded in a around 0 63.9%
if -1.15000000000000001e-56 < z < 4.1999999999999999e-88Initial program 76.6%
Taylor expanded in y around -inf 75.7%
Simplified79.6%
Taylor expanded in b around 0 76.3%
Taylor expanded in z around 0 71.0%
+-commutative71.0%
*-commutative71.0%
*-commutative71.0%
mul-1-neg71.0%
associate-*r*70.0%
unsub-neg70.0%
*-commutative70.0%
Simplified70.0%
if 4.1999999999999999e-88 < z < 2.04999999999999997e33Initial program 87.8%
Taylor expanded in i around 0 80.0%
*-commutative80.0%
*-commutative80.0%
*-commutative80.0%
*-commutative80.0%
associate-*l*80.1%
*-commutative80.1%
Simplified80.1%
Taylor expanded in x around 0 65.2%
sub-neg65.2%
sub-neg65.2%
*-commutative65.2%
*-commutative65.2%
associate-*r*69.0%
*-commutative69.0%
Simplified69.0%
if 2.04999999999999997e33 < z Initial program 64.6%
Taylor expanded in z around inf 65.7%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (- t_1 (* i (* y j)))))
(if (<= y -2.95e-62)
t_2
(if (<= y 2.25e-255)
(- t_1 (* b (* z c)))
(if (<= y 7.4e-11) (- (* t (- (* c j) (* x a))) (* y (* 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 = x * ((y * z) - (t * a));
double t_2 = t_1 - (i * (y * j));
double tmp;
if (y <= -2.95e-62) {
tmp = t_2;
} else if (y <= 2.25e-255) {
tmp = t_1 - (b * (z * c));
} else if (y <= 7.4e-11) {
tmp = (t * ((c * j) - (x * a))) - (y * (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 = x * ((y * z) - (t * a))
t_2 = t_1 - (i * (y * j))
if (y <= (-2.95d-62)) then
tmp = t_2
else if (y <= 2.25d-255) then
tmp = t_1 - (b * (z * c))
else if (y <= 7.4d-11) then
tmp = (t * ((c * j) - (x * a))) - (y * (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 = x * ((y * z) - (t * a));
double t_2 = t_1 - (i * (y * j));
double tmp;
if (y <= -2.95e-62) {
tmp = t_2;
} else if (y <= 2.25e-255) {
tmp = t_1 - (b * (z * c));
} else if (y <= 7.4e-11) {
tmp = (t * ((c * j) - (x * a))) - (y * (i * j));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = t_1 - (i * (y * j)) tmp = 0 if y <= -2.95e-62: tmp = t_2 elif y <= 2.25e-255: tmp = t_1 - (b * (z * c)) elif y <= 7.4e-11: tmp = (t * ((c * j) - (x * a))) - (y * (i * j)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(t_1 - Float64(i * Float64(y * j))) tmp = 0.0 if (y <= -2.95e-62) tmp = t_2; elseif (y <= 2.25e-255) tmp = Float64(t_1 - Float64(b * Float64(z * c))); elseif (y <= 7.4e-11) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(y * 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 = x * ((y * z) - (t * a)); t_2 = t_1 - (i * (y * j)); tmp = 0.0; if (y <= -2.95e-62) tmp = t_2; elseif (y <= 2.25e-255) tmp = t_1 - (b * (z * c)); elseif (y <= 7.4e-11) tmp = (t * ((c * j) - (x * a))) - (y * (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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.95e-62], t$95$2, If[LessEqual[y, 2.25e-255], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.4e-11], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t_1 - i \cdot \left(y \cdot j\right)\\
\mathbf{if}\;y \leq -2.95 \cdot 10^{-62}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 2.25 \cdot 10^{-255}:\\
\;\;\;\;t_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;y \leq 7.4 \cdot 10^{-11}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - y \cdot \left(i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -2.9500000000000002e-62 or 7.4000000000000003e-11 < y Initial program 67.4%
Taylor expanded in i around 0 65.4%
*-commutative65.4%
*-commutative65.4%
*-commutative65.4%
*-commutative65.4%
associate-*l*65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around 0 70.5%
if -2.9500000000000002e-62 < y < 2.2499999999999999e-255Initial program 79.8%
Taylor expanded in j around 0 77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in c around inf 65.7%
if 2.2499999999999999e-255 < y < 7.4000000000000003e-11Initial program 78.1%
Taylor expanded in y around -inf 67.5%
Simplified72.8%
Taylor expanded in b around 0 65.8%
Taylor expanded in z around 0 70.9%
+-commutative70.9%
*-commutative70.9%
*-commutative70.9%
mul-1-neg70.9%
associate-*r*67.0%
unsub-neg67.0%
*-commutative67.0%
Simplified67.0%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* j (* i (- y)))))
(if (<= y -1.8e+88)
(* x (* y z))
(if (<= y -1300.0)
t_2
(if (<= y -2.6e-81)
(* j (* t c))
(if (<= y -1.3e-152)
t_1
(if (<= y 4.063e-265)
(* a (* b i))
(if (<= y 1.35e-239)
t_1
(if (<= y 7.5e-56) (* c (* t j)) t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = j * (i * -y);
double tmp;
if (y <= -1.8e+88) {
tmp = x * (y * z);
} else if (y <= -1300.0) {
tmp = t_2;
} else if (y <= -2.6e-81) {
tmp = j * (t * c);
} else if (y <= -1.3e-152) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = a * (b * i);
} else if (y <= 1.35e-239) {
tmp = t_1;
} else if (y <= 7.5e-56) {
tmp = c * (t * j);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = j * (i * -y)
if (y <= (-1.8d+88)) then
tmp = x * (y * z)
else if (y <= (-1300.0d0)) then
tmp = t_2
else if (y <= (-2.6d-81)) then
tmp = j * (t * c)
else if (y <= (-1.3d-152)) then
tmp = t_1
else if (y <= 4.063d-265) then
tmp = a * (b * i)
else if (y <= 1.35d-239) then
tmp = t_1
else if (y <= 7.5d-56) then
tmp = c * (t * j)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = j * (i * -y);
double tmp;
if (y <= -1.8e+88) {
tmp = x * (y * z);
} else if (y <= -1300.0) {
tmp = t_2;
} else if (y <= -2.6e-81) {
tmp = j * (t * c);
} else if (y <= -1.3e-152) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = a * (b * i);
} else if (y <= 1.35e-239) {
tmp = t_1;
} else if (y <= 7.5e-56) {
tmp = c * (t * j);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = j * (i * -y) tmp = 0 if y <= -1.8e+88: tmp = x * (y * z) elif y <= -1300.0: tmp = t_2 elif y <= -2.6e-81: tmp = j * (t * c) elif y <= -1.3e-152: tmp = t_1 elif y <= 4.063e-265: tmp = a * (b * i) elif y <= 1.35e-239: tmp = t_1 elif y <= 7.5e-56: tmp = c * (t * j) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(j * Float64(i * Float64(-y))) tmp = 0.0 if (y <= -1.8e+88) tmp = Float64(x * Float64(y * z)); elseif (y <= -1300.0) tmp = t_2; elseif (y <= -2.6e-81) tmp = Float64(j * Float64(t * c)); elseif (y <= -1.3e-152) tmp = t_1; elseif (y <= 4.063e-265) tmp = Float64(a * Float64(b * i)); elseif (y <= 1.35e-239) tmp = t_1; elseif (y <= 7.5e-56) tmp = Float64(c * Float64(t * j)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); t_2 = j * (i * -y); tmp = 0.0; if (y <= -1.8e+88) tmp = x * (y * z); elseif (y <= -1300.0) tmp = t_2; elseif (y <= -2.6e-81) tmp = j * (t * c); elseif (y <= -1.3e-152) tmp = t_1; elseif (y <= 4.063e-265) tmp = a * (b * i); elseif (y <= 1.35e-239) tmp = t_1; elseif (y <= 7.5e-56) tmp = c * (t * j); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.8e+88], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1300.0], t$95$2, If[LessEqual[y, -2.6e-81], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.3e-152], t$95$1, If[LessEqual[y, 4.063e-265], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.35e-239], t$95$1, If[LessEqual[y, 7.5e-56], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := j \cdot \left(i \cdot \left(-y\right)\right)\\
\mathbf{if}\;y \leq -1.8 \cdot 10^{+88}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -1300:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{-81}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{elif}\;y \leq -1.3 \cdot 10^{-152}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.063 \cdot 10^{-265}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 1.35 \cdot 10^{-239}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-56}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -1.8000000000000001e88Initial program 68.2%
Taylor expanded in x around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in z around inf 55.9%
*-commutative55.9%
Simplified55.9%
if -1.8000000000000001e88 < y < -1300 or 7.50000000000000041e-56 < y Initial program 64.7%
Taylor expanded in i around 0 61.3%
*-commutative61.3%
*-commutative61.3%
*-commutative61.3%
*-commutative61.3%
associate-*l*63.6%
*-commutative63.6%
Simplified63.6%
Taylor expanded in i around inf 44.0%
mul-1-neg44.0%
*-commutative44.0%
associate-*r*39.6%
*-commutative39.6%
distribute-rgt-neg-out39.6%
*-commutative39.6%
distribute-rgt-neg-in39.6%
Simplified39.6%
if -1300 < y < -2.5999999999999999e-81Initial program 83.1%
Taylor expanded in y around -inf 72.4%
Simplified72.7%
Taylor expanded in b around 0 78.6%
Taylor expanded in c around inf 30.9%
*-commutative30.9%
associate-*r*36.7%
Simplified36.7%
if -2.5999999999999999e-81 < y < -1.30000000000000006e-152 or 4.06299999999999987e-265 < y < 1.35e-239Initial program 71.8%
Taylor expanded in y around -inf 64.9%
Simplified57.5%
Taylor expanded in c around inf 71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in t around 0 68.4%
mul-1-neg68.4%
distribute-lft-neg-out68.4%
*-commutative68.4%
Simplified68.4%
if -1.30000000000000006e-152 < y < 4.06299999999999987e-265Initial program 81.4%
Taylor expanded in b around inf 62.2%
Taylor expanded in a around inf 37.3%
if 1.35e-239 < y < 7.50000000000000041e-56Initial program 79.9%
Taylor expanded in y around -inf 64.6%
Simplified73.4%
Taylor expanded in c around inf 49.5%
*-commutative49.5%
Simplified49.5%
Taylor expanded in t around inf 41.0%
*-commutative41.0%
Simplified41.0%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* i (- y)))) (t_2 (* (* t a) (- x))))
(if (<= y -1.02e+89)
(* x (* y z))
(if (<= y -1450.0)
t_1
(if (<= y -1.45e-88)
t_2
(if (<= y -5.6e-144)
(* c (* z (- b)))
(if (<= y 4.2e-242)
t_2
(if (<= y 3.6e-134)
(* c (* t j))
(if (<= y 18000000.0) t_2 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (i * -y);
double t_2 = (t * a) * -x;
double tmp;
if (y <= -1.02e+89) {
tmp = x * (y * z);
} else if (y <= -1450.0) {
tmp = t_1;
} else if (y <= -1.45e-88) {
tmp = t_2;
} else if (y <= -5.6e-144) {
tmp = c * (z * -b);
} else if (y <= 4.2e-242) {
tmp = t_2;
} else if (y <= 3.6e-134) {
tmp = c * (t * j);
} else if (y <= 18000000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * (i * -y)
t_2 = (t * a) * -x
if (y <= (-1.02d+89)) then
tmp = x * (y * z)
else if (y <= (-1450.0d0)) then
tmp = t_1
else if (y <= (-1.45d-88)) then
tmp = t_2
else if (y <= (-5.6d-144)) then
tmp = c * (z * -b)
else if (y <= 4.2d-242) then
tmp = t_2
else if (y <= 3.6d-134) then
tmp = c * (t * j)
else if (y <= 18000000.0d0) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * (i * -y);
double t_2 = (t * a) * -x;
double tmp;
if (y <= -1.02e+89) {
tmp = x * (y * z);
} else if (y <= -1450.0) {
tmp = t_1;
} else if (y <= -1.45e-88) {
tmp = t_2;
} else if (y <= -5.6e-144) {
tmp = c * (z * -b);
} else if (y <= 4.2e-242) {
tmp = t_2;
} else if (y <= 3.6e-134) {
tmp = c * (t * j);
} else if (y <= 18000000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (i * -y) t_2 = (t * a) * -x tmp = 0 if y <= -1.02e+89: tmp = x * (y * z) elif y <= -1450.0: tmp = t_1 elif y <= -1.45e-88: tmp = t_2 elif y <= -5.6e-144: tmp = c * (z * -b) elif y <= 4.2e-242: tmp = t_2 elif y <= 3.6e-134: tmp = c * (t * j) elif y <= 18000000.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(i * Float64(-y))) t_2 = Float64(Float64(t * a) * Float64(-x)) tmp = 0.0 if (y <= -1.02e+89) tmp = Float64(x * Float64(y * z)); elseif (y <= -1450.0) tmp = t_1; elseif (y <= -1.45e-88) tmp = t_2; elseif (y <= -5.6e-144) tmp = Float64(c * Float64(z * Float64(-b))); elseif (y <= 4.2e-242) tmp = t_2; elseif (y <= 3.6e-134) tmp = Float64(c * Float64(t * j)); elseif (y <= 18000000.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (i * -y); t_2 = (t * a) * -x; tmp = 0.0; if (y <= -1.02e+89) tmp = x * (y * z); elseif (y <= -1450.0) tmp = t_1; elseif (y <= -1.45e-88) tmp = t_2; elseif (y <= -5.6e-144) tmp = c * (z * -b); elseif (y <= 4.2e-242) tmp = t_2; elseif (y <= 3.6e-134) tmp = c * (t * j); elseif (y <= 18000000.0) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision]}, If[LessEqual[y, -1.02e+89], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1450.0], t$95$1, If[LessEqual[y, -1.45e-88], t$95$2, If[LessEqual[y, -5.6e-144], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-242], t$95$2, If[LessEqual[y, 3.6e-134], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 18000000.0], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(i \cdot \left(-y\right)\right)\\
t_2 := \left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{if}\;y \leq -1.02 \cdot 10^{+89}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -1450:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.45 \cdot 10^{-88}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5.6 \cdot 10^{-144}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-242}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{-134}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 18000000:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.0199999999999999e89Initial program 68.2%
Taylor expanded in x around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in z around inf 55.9%
*-commutative55.9%
Simplified55.9%
if -1.0199999999999999e89 < y < -1450 or 1.8e7 < y Initial program 63.4%
Taylor expanded in i around 0 60.8%
*-commutative60.8%
*-commutative60.8%
*-commutative60.8%
*-commutative60.8%
associate-*l*63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in i around inf 46.2%
mul-1-neg46.2%
*-commutative46.2%
associate-*r*41.2%
*-commutative41.2%
distribute-rgt-neg-out41.2%
*-commutative41.2%
distribute-rgt-neg-in41.2%
Simplified41.2%
if -1450 < y < -1.4500000000000001e-88 or -5.59999999999999995e-144 < y < 4.20000000000000037e-242 or 3.5999999999999999e-134 < y < 1.8e7Initial program 80.2%
Taylor expanded in x around inf 46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in z around 0 44.1%
neg-mul-144.1%
distribute-rgt-neg-in44.1%
Simplified44.1%
if -1.4500000000000001e-88 < y < -5.59999999999999995e-144Initial program 58.2%
Taylor expanded in y around -inf 58.2%
Simplified44.0%
Taylor expanded in c around inf 85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in t around 0 78.6%
mul-1-neg78.6%
distribute-lft-neg-out78.6%
*-commutative78.6%
Simplified78.6%
if 4.20000000000000037e-242 < y < 3.5999999999999999e-134Initial program 82.1%
Taylor expanded in y around -inf 68.7%
Simplified68.8%
Taylor expanded in c around inf 52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in t around inf 42.0%
*-commutative42.0%
Simplified42.0%
Final simplification46.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* (* t a) (- x))))
(if (<= y -2.7e+90)
(* x (* y z))
(if (<= y -10500.0)
t_1
(if (<= y -7.2e-90)
t_2
(if (<= y -1.6e-146)
(* c (* z (- b)))
(if (<= y 1.9e-249)
t_2
(if (<= y 1.5e-133)
(* c (* t j))
(if (<= y 12500000.0) t_2 t_1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = (t * a) * -x;
double tmp;
if (y <= -2.7e+90) {
tmp = x * (y * z);
} else if (y <= -10500.0) {
tmp = t_1;
} else if (y <= -7.2e-90) {
tmp = t_2;
} else if (y <= -1.6e-146) {
tmp = c * (z * -b);
} else if (y <= 1.9e-249) {
tmp = t_2;
} else if (y <= 1.5e-133) {
tmp = c * (t * j);
} else if (y <= 12500000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = (t * a) * -x
if (y <= (-2.7d+90)) then
tmp = x * (y * z)
else if (y <= (-10500.0d0)) then
tmp = t_1
else if (y <= (-7.2d-90)) then
tmp = t_2
else if (y <= (-1.6d-146)) then
tmp = c * (z * -b)
else if (y <= 1.9d-249) then
tmp = t_2
else if (y <= 1.5d-133) then
tmp = c * (t * j)
else if (y <= 12500000.0d0) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = (t * a) * -x;
double tmp;
if (y <= -2.7e+90) {
tmp = x * (y * z);
} else if (y <= -10500.0) {
tmp = t_1;
} else if (y <= -7.2e-90) {
tmp = t_2;
} else if (y <= -1.6e-146) {
tmp = c * (z * -b);
} else if (y <= 1.9e-249) {
tmp = t_2;
} else if (y <= 1.5e-133) {
tmp = c * (t * j);
} else if (y <= 12500000.0) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = (t * a) * -x tmp = 0 if y <= -2.7e+90: tmp = x * (y * z) elif y <= -10500.0: tmp = t_1 elif y <= -7.2e-90: tmp = t_2 elif y <= -1.6e-146: tmp = c * (z * -b) elif y <= 1.9e-249: tmp = t_2 elif y <= 1.5e-133: tmp = c * (t * j) elif y <= 12500000.0: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(Float64(t * a) * Float64(-x)) tmp = 0.0 if (y <= -2.7e+90) tmp = Float64(x * Float64(y * z)); elseif (y <= -10500.0) tmp = t_1; elseif (y <= -7.2e-90) tmp = t_2; elseif (y <= -1.6e-146) tmp = Float64(c * Float64(z * Float64(-b))); elseif (y <= 1.9e-249) tmp = t_2; elseif (y <= 1.5e-133) tmp = Float64(c * Float64(t * j)); elseif (y <= 12500000.0) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = (t * a) * -x; tmp = 0.0; if (y <= -2.7e+90) tmp = x * (y * z); elseif (y <= -10500.0) tmp = t_1; elseif (y <= -7.2e-90) tmp = t_2; elseif (y <= -1.6e-146) tmp = c * (z * -b); elseif (y <= 1.9e-249) tmp = t_2; elseif (y <= 1.5e-133) tmp = c * (t * j); elseif (y <= 12500000.0) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * a), $MachinePrecision] * (-x)), $MachinePrecision]}, If[LessEqual[y, -2.7e+90], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -10500.0], t$95$1, If[LessEqual[y, -7.2e-90], t$95$2, If[LessEqual[y, -1.6e-146], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-249], t$95$2, If[LessEqual[y, 1.5e-133], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 12500000.0], t$95$2, t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := \left(t \cdot a\right) \cdot \left(-x\right)\\
\mathbf{if}\;y \leq -2.7 \cdot 10^{+90}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;y \leq -10500:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -7.2 \cdot 10^{-90}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.6 \cdot 10^{-146}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-249}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 1.5 \cdot 10^{-133}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 12500000:\\
\;\;\;\;t_2\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.7e90Initial program 68.2%
Taylor expanded in x around inf 63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in z around inf 55.9%
*-commutative55.9%
Simplified55.9%
if -2.7e90 < y < -10500 or 1.25e7 < y Initial program 63.4%
Taylor expanded in i around 0 60.8%
*-commutative60.8%
*-commutative60.8%
*-commutative60.8%
*-commutative60.8%
associate-*l*63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in i around inf 46.2%
associate-*r*46.2%
neg-mul-146.2%
Simplified46.2%
if -10500 < y < -7.19999999999999961e-90 or -1.6e-146 < y < 1.9e-249 or 1.5000000000000001e-133 < y < 1.25e7Initial program 80.2%
Taylor expanded in x around inf 46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in z around 0 44.1%
neg-mul-144.1%
distribute-rgt-neg-in44.1%
Simplified44.1%
if -7.19999999999999961e-90 < y < -1.6e-146Initial program 58.2%
Taylor expanded in y around -inf 58.2%
Simplified44.0%
Taylor expanded in c around inf 85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in t around 0 78.6%
mul-1-neg78.6%
distribute-lft-neg-out78.6%
*-commutative78.6%
Simplified78.6%
if 1.9e-249 < y < 1.5000000000000001e-133Initial program 82.1%
Taylor expanded in y around -inf 68.7%
Simplified68.8%
Taylor expanded in c around inf 52.2%
*-commutative52.2%
Simplified52.2%
Taylor expanded in t around inf 42.0%
*-commutative42.0%
Simplified42.0%
Final simplification47.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -7.5e+111)
t_2
(if (<= i 3e-281)
t_1
(if (<= i 5.8e-172)
(* x (* y z))
(if (<= i 4e-18)
t_1
(if (<= i 5.6e+49) (* b (- (* a i) (* z c))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -7.5e+111) {
tmp = t_2;
} else if (i <= 3e-281) {
tmp = t_1;
} else if (i <= 5.8e-172) {
tmp = x * (y * z);
} else if (i <= 4e-18) {
tmp = t_1;
} else if (i <= 5.6e+49) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = i * ((a * b) - (y * j))
if (i <= (-7.5d+111)) then
tmp = t_2
else if (i <= 3d-281) then
tmp = t_1
else if (i <= 5.8d-172) then
tmp = x * (y * z)
else if (i <= 4d-18) then
tmp = t_1
else if (i <= 5.6d+49) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -7.5e+111) {
tmp = t_2;
} else if (i <= 3e-281) {
tmp = t_1;
} else if (i <= 5.8e-172) {
tmp = x * (y * z);
} else if (i <= 4e-18) {
tmp = t_1;
} else if (i <= 5.6e+49) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -7.5e+111: tmp = t_2 elif i <= 3e-281: tmp = t_1 elif i <= 5.8e-172: tmp = x * (y * z) elif i <= 4e-18: tmp = t_1 elif i <= 5.6e+49: tmp = b * ((a * i) - (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -7.5e+111) tmp = t_2; elseif (i <= 3e-281) tmp = t_1; elseif (i <= 5.8e-172) tmp = Float64(x * Float64(y * z)); elseif (i <= 4e-18) tmp = t_1; elseif (i <= 5.6e+49) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -7.5e+111) tmp = t_2; elseif (i <= 3e-281) tmp = t_1; elseif (i <= 5.8e-172) tmp = x * (y * z); elseif (i <= 4e-18) tmp = t_1; elseif (i <= 5.6e+49) tmp = b * ((a * i) - (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -7.5e+111], t$95$2, If[LessEqual[i, 3e-281], t$95$1, If[LessEqual[i, 5.8e-172], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4e-18], t$95$1, If[LessEqual[i, 5.6e+49], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -7.5 \cdot 10^{+111}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq 3 \cdot 10^{-281}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 5.8 \cdot 10^{-172}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 4 \cdot 10^{-18}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 5.6 \cdot 10^{+49}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -7.49999999999999948e111 or 5.5999999999999996e49 < i Initial program 59.9%
Taylor expanded in y around -inf 58.8%
Simplified58.7%
Taylor expanded in i around inf 69.2%
mul-1-neg69.2%
neg-sub069.2%
mul-1-neg69.2%
*-commutative69.2%
associate--r+69.2%
+-commutative69.2%
associate--r+69.2%
neg-sub069.2%
remove-double-neg69.2%
*-commutative69.2%
Simplified69.2%
if -7.49999999999999948e111 < i < 2.99999999999999975e-281 or 5.79999999999999995e-172 < i < 4.0000000000000003e-18Initial program 77.3%
Taylor expanded in t around inf 55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
Simplified55.8%
if 2.99999999999999975e-281 < i < 5.79999999999999995e-172Initial program 83.1%
Taylor expanded in x around inf 69.2%
*-commutative69.2%
Simplified69.2%
Taylor expanded in z around inf 51.4%
*-commutative51.4%
Simplified51.4%
if 4.0000000000000003e-18 < i < 5.5999999999999996e49Initial program 94.5%
Taylor expanded in b around inf 64.0%
Final simplification61.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -1.05e+113)
t_2
(if (<= i -9e-271)
(* t (- (* c j) (* x a)))
(if (<= i 2.85e-6)
t_1
(if (<= i 1.75e+49)
(* b (- (* a i) (* z c)))
(if (<= i 1.05e+75) 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));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.05e+113) {
tmp = t_2;
} else if (i <= -9e-271) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 2.85e-6) {
tmp = t_1;
} else if (i <= 1.75e+49) {
tmp = b * ((a * i) - (z * c));
} else if (i <= 1.05e+75) {
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))
t_2 = i * ((a * b) - (y * j))
if (i <= (-1.05d+113)) then
tmp = t_2
else if (i <= (-9d-271)) then
tmp = t * ((c * j) - (x * a))
else if (i <= 2.85d-6) then
tmp = t_1
else if (i <= 1.75d+49) then
tmp = b * ((a * i) - (z * c))
else if (i <= 1.05d+75) 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));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.05e+113) {
tmp = t_2;
} else if (i <= -9e-271) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 2.85e-6) {
tmp = t_1;
} else if (i <= 1.75e+49) {
tmp = b * ((a * i) - (z * c));
} else if (i <= 1.05e+75) {
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)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -1.05e+113: tmp = t_2 elif i <= -9e-271: tmp = t * ((c * j) - (x * a)) elif i <= 2.85e-6: tmp = t_1 elif i <= 1.75e+49: tmp = b * ((a * i) - (z * c)) elif i <= 1.05e+75: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.05e+113) tmp = t_2; elseif (i <= -9e-271) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 2.85e-6) tmp = t_1; elseif (i <= 1.75e+49) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (i <= 1.05e+75) 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)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -1.05e+113) tmp = t_2; elseif (i <= -9e-271) tmp = t * ((c * j) - (x * a)); elseif (i <= 2.85e-6) tmp = t_1; elseif (i <= 1.75e+49) tmp = b * ((a * i) - (z * c)); elseif (i <= 1.05e+75) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.05e+113], t$95$2, If[LessEqual[i, -9e-271], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.85e-6], t$95$1, If[LessEqual[i, 1.75e+49], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.05e+75], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.05 \cdot 10^{+113}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;i \leq -9 \cdot 10^{-271}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 2.85 \cdot 10^{-6}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 1.75 \cdot 10^{+49}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.05 \cdot 10^{+75}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if i < -1.0499999999999999e113 or 1.04999999999999999e75 < i Initial program 59.8%
Taylor expanded in y around -inf 58.7%
Simplified58.7%
Taylor expanded in i around inf 70.7%
mul-1-neg70.7%
neg-sub070.7%
mul-1-neg70.7%
*-commutative70.7%
associate--r+70.7%
+-commutative70.7%
associate--r+70.7%
neg-sub070.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
if -1.0499999999999999e113 < i < -8.9999999999999995e-271Initial program 75.4%
Taylor expanded in t around inf 59.9%
+-commutative59.9%
mul-1-neg59.9%
unsub-neg59.9%
Simplified59.9%
if -8.9999999999999995e-271 < i < 2.8499999999999998e-6 or 1.74999999999999987e49 < i < 1.04999999999999999e75Initial program 81.5%
Taylor expanded in x around inf 62.6%
*-commutative62.6%
Simplified62.6%
if 2.8499999999999998e-6 < i < 1.74999999999999987e49Initial program 93.5%
Taylor expanded in b around inf 63.2%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -31500.0)
t_1
(if (<= y -9.6e-87)
(* x (- (* y z) (* t a)))
(if (<= y -9.4e-269)
(* b (- (* a i) (* z c)))
(if (<= y 4.063e-265)
(* a (- (* b i) (* x t)))
(if (<= y 19500000.0) (* t (- (* c j) (* x a))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -31500.0) {
tmp = t_1;
} else if (y <= -9.6e-87) {
tmp = x * ((y * z) - (t * a));
} else if (y <= -9.4e-269) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 4.063e-265) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 19500000.0) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-31500.0d0)) then
tmp = t_1
else if (y <= (-9.6d-87)) then
tmp = x * ((y * z) - (t * a))
else if (y <= (-9.4d-269)) then
tmp = b * ((a * i) - (z * c))
else if (y <= 4.063d-265) then
tmp = a * ((b * i) - (x * t))
else if (y <= 19500000.0d0) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -31500.0) {
tmp = t_1;
} else if (y <= -9.6e-87) {
tmp = x * ((y * z) - (t * a));
} else if (y <= -9.4e-269) {
tmp = b * ((a * i) - (z * c));
} else if (y <= 4.063e-265) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 19500000.0) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -31500.0: tmp = t_1 elif y <= -9.6e-87: tmp = x * ((y * z) - (t * a)) elif y <= -9.4e-269: tmp = b * ((a * i) - (z * c)) elif y <= 4.063e-265: tmp = a * ((b * i) - (x * t)) elif y <= 19500000.0: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -31500.0) tmp = t_1; elseif (y <= -9.6e-87) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (y <= -9.4e-269) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (y <= 4.063e-265) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 19500000.0) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -31500.0) tmp = t_1; elseif (y <= -9.6e-87) tmp = x * ((y * z) - (t * a)); elseif (y <= -9.4e-269) tmp = b * ((a * i) - (z * c)); elseif (y <= 4.063e-265) tmp = a * ((b * i) - (x * t)); elseif (y <= 19500000.0) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -31500.0], t$95$1, If[LessEqual[y, -9.6e-87], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.4e-269], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.063e-265], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 19500000.0], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -31500:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -9.6 \cdot 10^{-87}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;y \leq -9.4 \cdot 10^{-269}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 4.063 \cdot 10^{-265}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 19500000:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -31500 or 1.95e7 < y Initial program 65.4%
Taylor expanded in y around -inf 65.3%
mul-1-neg65.3%
*-commutative65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
*-commutative65.3%
Simplified65.3%
if -31500 < y < -9.5999999999999998e-87Initial program 80.6%
Taylor expanded in x around inf 63.7%
*-commutative63.7%
Simplified63.7%
if -9.5999999999999998e-87 < y < -9.3999999999999995e-269Initial program 79.5%
Taylor expanded in b around inf 67.3%
if -9.3999999999999995e-269 < y < 4.06299999999999987e-265Initial program 75.5%
Taylor expanded in y around -inf 63.3%
Simplified75.8%
associate--l+75.8%
fma-def75.8%
fma-neg75.8%
Applied egg-rr75.8%
Taylor expanded in a around inf 72.9%
mul-1-neg72.9%
*-commutative72.9%
neg-sub072.9%
mul-1-neg72.9%
distribute-lft-neg-out72.9%
associate--r+72.9%
+-commutative72.9%
associate--r+72.9%
neg-sub072.9%
*-commutative72.9%
distribute-rgt-neg-in72.9%
remove-double-neg72.9%
*-commutative72.9%
*-commutative72.9%
Simplified72.9%
if 4.06299999999999987e-265 < y < 1.95e7Initial program 80.0%
Taylor expanded in t around inf 60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
Simplified60.9%
Final simplification64.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -2.1e-49) (not (<= j 2.8e+90))) (+ (* j (- (* t c) (* y i))) (* z (* x y))) (- (* x (- (* y z) (* t a))) (* b (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.1e-49) || !(j <= 2.8e+90)) {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
} else {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-2.1d-49)) .or. (.not. (j <= 2.8d+90))) then
tmp = (j * ((t * c) - (y * i))) + (z * (x * y))
else
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.1e-49) || !(j <= 2.8e+90)) {
tmp = (j * ((t * c) - (y * i))) + (z * (x * y));
} else {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -2.1e-49) or not (j <= 2.8e+90): tmp = (j * ((t * c) - (y * i))) + (z * (x * y)) else: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -2.1e-49) || !(j <= 2.8e+90)) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(x * y))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -2.1e-49) || ~((j <= 2.8e+90))) tmp = (j * ((t * c) - (y * i))) + (z * (x * y)); else tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -2.1e-49], N[Not[LessEqual[j, 2.8e+90]], $MachinePrecision]], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.1 \cdot 10^{-49} \lor \neg \left(j \leq 2.8 \cdot 10^{+90}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\end{array}
\end{array}
if j < -2.0999999999999999e-49 or 2.8e90 < j Initial program 69.3%
Taylor expanded in y around inf 69.2%
*-commutative69.2%
*-commutative69.2%
associate-*l*69.1%
Simplified69.1%
if -2.0999999999999999e-49 < j < 2.8e90Initial program 74.9%
Taylor expanded in j around 0 71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in c around inf 66.0%
Final simplification67.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))))
(if (<= i -4.8e+121)
t_1
(if (<= i 6.5e-198)
(* c (- (* t j) (* z b)))
(if (<= i 6e-165)
(* x (* y z))
(if (<= i 6e+49) (* b (- (* a i) (* 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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -4.8e+121) {
tmp = t_1;
} else if (i <= 6.5e-198) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 6e-165) {
tmp = x * (y * z);
} else if (i <= 6e+49) {
tmp = b * ((a * i) - (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 = i * ((a * b) - (y * j))
if (i <= (-4.8d+121)) then
tmp = t_1
else if (i <= 6.5d-198) then
tmp = c * ((t * j) - (z * b))
else if (i <= 6d-165) then
tmp = x * (y * z)
else if (i <= 6d+49) then
tmp = b * ((a * i) - (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 = i * ((a * b) - (y * j));
double tmp;
if (i <= -4.8e+121) {
tmp = t_1;
} else if (i <= 6.5e-198) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 6e-165) {
tmp = x * (y * z);
} else if (i <= 6e+49) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) tmp = 0 if i <= -4.8e+121: tmp = t_1 elif i <= 6.5e-198: tmp = c * ((t * j) - (z * b)) elif i <= 6e-165: tmp = x * (y * z) elif i <= 6e+49: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.8e+121) tmp = t_1; elseif (i <= 6.5e-198) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (i <= 6e-165) tmp = Float64(x * Float64(y * z)); elseif (i <= 6e+49) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -4.8e+121) tmp = t_1; elseif (i <= 6.5e-198) tmp = c * ((t * j) - (z * b)); elseif (i <= 6e-165) tmp = x * (y * z); elseif (i <= 6e+49) tmp = b * ((a * i) - (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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.8e+121], t$95$1, If[LessEqual[i, 6.5e-198], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e-165], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e+49], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.8 \cdot 10^{+121}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;i \leq 6.5 \cdot 10^{-198}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-165}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+49}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if i < -4.8e121 or 6.0000000000000005e49 < i Initial program 60.3%
Taylor expanded in y around -inf 60.2%
Simplified60.2%
Taylor expanded in i around inf 70.1%
mul-1-neg70.1%
neg-sub070.1%
mul-1-neg70.1%
*-commutative70.1%
associate--r+70.1%
+-commutative70.1%
associate--r+70.1%
neg-sub070.1%
remove-double-neg70.1%
*-commutative70.1%
Simplified70.1%
if -4.8e121 < i < 6.5000000000000004e-198Initial program 76.2%
Taylor expanded in c around inf 44.4%
if 6.5000000000000004e-198 < i < 5.99999999999999958e-165Initial program 99.6%
Taylor expanded in x around inf 99.6%
*-commutative99.6%
Simplified99.6%
Taylor expanded in z around inf 86.2%
*-commutative86.2%
Simplified86.2%
if 5.99999999999999958e-165 < i < 6.0000000000000005e49Initial program 86.7%
Taylor expanded in b around inf 46.0%
Final simplification55.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= j -1.45e-35)
t_2
(if (<= j 1.02e-147)
t_1
(if (<= j 4.1e-59) (* x (* y z)) (if (<= j 5.4e+108) 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 * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.45e-35) {
tmp = t_2;
} else if (j <= 1.02e-147) {
tmp = t_1;
} else if (j <= 4.1e-59) {
tmp = x * (y * z);
} else if (j <= 5.4e+108) {
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 * ((b * i) - (x * t))
t_2 = j * ((t * c) - (y * i))
if (j <= (-1.45d-35)) then
tmp = t_2
else if (j <= 1.02d-147) then
tmp = t_1
else if (j <= 4.1d-59) then
tmp = x * (y * z)
else if (j <= 5.4d+108) 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 * ((b * i) - (x * t));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.45e-35) {
tmp = t_2;
} else if (j <= 1.02e-147) {
tmp = t_1;
} else if (j <= 4.1e-59) {
tmp = x * (y * z);
} else if (j <= 5.4e+108) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.45e-35: tmp = t_2 elif j <= 1.02e-147: tmp = t_1 elif j <= 4.1e-59: tmp = x * (y * z) elif j <= 5.4e+108: 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(b * i) - Float64(x * t))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.45e-35) tmp = t_2; elseif (j <= 1.02e-147) tmp = t_1; elseif (j <= 4.1e-59) tmp = Float64(x * Float64(y * z)); elseif (j <= 5.4e+108) 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 * ((b * i) - (x * t)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.45e-35) tmp = t_2; elseif (j <= 1.02e-147) tmp = t_1; elseif (j <= 4.1e-59) tmp = x * (y * z); elseif (j <= 5.4e+108) 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[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.45e-35], t$95$2, If[LessEqual[j, 1.02e-147], t$95$1, If[LessEqual[j, 4.1e-59], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.4e+108], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.45 \cdot 10^{-35}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;j \leq 1.02 \cdot 10^{-147}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq 4.1 \cdot 10^{-59}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;j \leq 5.4 \cdot 10^{+108}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if j < -1.4500000000000001e-35 or 5.4e108 < j Initial program 70.2%
Taylor expanded in j around inf 68.3%
if -1.4500000000000001e-35 < j < 1.02e-147 or 4.0999999999999996e-59 < j < 5.4e108Initial program 73.8%
Taylor expanded in y around -inf 77.6%
Simplified77.0%
associate--l+77.0%
fma-def79.4%
fma-neg79.4%
Applied egg-rr79.4%
Taylor expanded in a around inf 50.4%
mul-1-neg50.4%
*-commutative50.4%
neg-sub050.4%
mul-1-neg50.4%
distribute-lft-neg-out50.4%
associate--r+50.4%
+-commutative50.4%
associate--r+50.4%
neg-sub050.4%
*-commutative50.4%
distribute-rgt-neg-in50.4%
remove-double-neg50.4%
*-commutative50.4%
*-commutative50.4%
Simplified50.4%
if 1.02e-147 < j < 4.0999999999999996e-59Initial program 76.2%
Taylor expanded in x around inf 55.0%
*-commutative55.0%
Simplified55.0%
Taylor expanded in z around inf 50.2%
*-commutative50.2%
Simplified50.2%
Final simplification57.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* x (* y z))))
(if (<= y -7.2e-69)
t_2
(if (<= y -1.85e-143)
t_1
(if (<= y 4.063e-265)
(* a (* b i))
(if (<= y 4.6e-247) t_1 (if (<= y 7.5e-11) (* c (* t j)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = x * (y * z);
double tmp;
if (y <= -7.2e-69) {
tmp = t_2;
} else if (y <= -1.85e-143) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = a * (b * i);
} else if (y <= 4.6e-247) {
tmp = t_1;
} else if (y <= 7.5e-11) {
tmp = c * (t * j);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = x * (y * z)
if (y <= (-7.2d-69)) then
tmp = t_2
else if (y <= (-1.85d-143)) then
tmp = t_1
else if (y <= 4.063d-265) then
tmp = a * (b * i)
else if (y <= 4.6d-247) then
tmp = t_1
else if (y <= 7.5d-11) then
tmp = c * (t * j)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = x * (y * z);
double tmp;
if (y <= -7.2e-69) {
tmp = t_2;
} else if (y <= -1.85e-143) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = a * (b * i);
} else if (y <= 4.6e-247) {
tmp = t_1;
} else if (y <= 7.5e-11) {
tmp = c * (t * j);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = x * (y * z) tmp = 0 if y <= -7.2e-69: tmp = t_2 elif y <= -1.85e-143: tmp = t_1 elif y <= 4.063e-265: tmp = a * (b * i) elif y <= 4.6e-247: tmp = t_1 elif y <= 7.5e-11: tmp = c * (t * j) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -7.2e-69) tmp = t_2; elseif (y <= -1.85e-143) tmp = t_1; elseif (y <= 4.063e-265) tmp = Float64(a * Float64(b * i)); elseif (y <= 4.6e-247) tmp = t_1; elseif (y <= 7.5e-11) tmp = Float64(c * Float64(t * j)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); t_2 = x * (y * z); tmp = 0.0; if (y <= -7.2e-69) tmp = t_2; elseif (y <= -1.85e-143) tmp = t_1; elseif (y <= 4.063e-265) tmp = a * (b * i); elseif (y <= 4.6e-247) tmp = t_1; elseif (y <= 7.5e-11) tmp = c * (t * j); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e-69], t$95$2, If[LessEqual[y, -1.85e-143], t$95$1, If[LessEqual[y, 4.063e-265], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.6e-247], t$95$1, If[LessEqual[y, 7.5e-11], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{-69}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -1.85 \cdot 10^{-143}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.063 \cdot 10^{-265}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-247}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-11}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -7.20000000000000035e-69 or 7.5e-11 < y Initial program 67.4%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in z around inf 41.4%
*-commutative41.4%
Simplified41.4%
if -7.20000000000000035e-69 < y < -1.85e-143 or 4.06299999999999987e-265 < y < 4.6e-247Initial program 76.7%
Taylor expanded in y around -inf 71.1%
Simplified65.0%
Taylor expanded in c around inf 70.9%
*-commutative70.9%
Simplified70.9%
Taylor expanded in t around 0 62.3%
mul-1-neg62.3%
distribute-lft-neg-out62.3%
*-commutative62.3%
Simplified62.3%
if -1.85e-143 < y < 4.06299999999999987e-265Initial program 81.4%
Taylor expanded in b around inf 62.2%
Taylor expanded in a around inf 37.3%
if 4.6e-247 < y < 7.5e-11Initial program 77.7%
Taylor expanded in y around -inf 66.8%
Simplified72.3%
Taylor expanded in c around inf 47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in t around inf 38.1%
*-commutative38.1%
Simplified38.1%
Final simplification41.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -1.9e+88)
t_1
(if (<= y -35000.0)
(* i (* y (- j)))
(if (<= y 1e+185) (* a (- (* b i) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -1.9e+88) {
tmp = t_1;
} else if (y <= -35000.0) {
tmp = i * (y * -j);
} else if (y <= 1e+185) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-1.9d+88)) then
tmp = t_1
else if (y <= (-35000.0d0)) then
tmp = i * (y * -j)
else if (y <= 1d+185) then
tmp = a * ((b * i) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -1.9e+88) {
tmp = t_1;
} else if (y <= -35000.0) {
tmp = i * (y * -j);
} else if (y <= 1e+185) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -1.9e+88: tmp = t_1 elif y <= -35000.0: tmp = i * (y * -j) elif y <= 1e+185: tmp = a * ((b * i) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -1.9e+88) tmp = t_1; elseif (y <= -35000.0) tmp = Float64(i * Float64(y * Float64(-j))); elseif (y <= 1e+185) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -1.9e+88) tmp = t_1; elseif (y <= -35000.0) tmp = i * (y * -j); elseif (y <= 1e+185) tmp = a * ((b * i) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.9e+88], t$95$1, If[LessEqual[y, -35000.0], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+185], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.9 \cdot 10^{+88}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -35000:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;y \leq 10^{+185}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.8999999999999998e88 or 9.9999999999999998e184 < y Initial program 60.6%
Taylor expanded in x around inf 58.6%
*-commutative58.6%
Simplified58.6%
Taylor expanded in z around inf 53.7%
*-commutative53.7%
Simplified53.7%
if -1.8999999999999998e88 < y < -35000Initial program 88.1%
Taylor expanded in i around 0 77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
*-commutative77.2%
associate-*l*71.3%
*-commutative71.3%
Simplified71.3%
Taylor expanded in i around inf 54.0%
associate-*r*54.0%
neg-mul-154.0%
Simplified54.0%
if -35000 < y < 9.9999999999999998e184Initial program 76.6%
Taylor expanded in y around -inf 70.6%
Simplified71.8%
associate--l+71.8%
fma-def72.4%
fma-neg72.4%
Applied egg-rr72.4%
Taylor expanded in a around inf 51.7%
mul-1-neg51.7%
*-commutative51.7%
neg-sub051.7%
mul-1-neg51.7%
distribute-lft-neg-out51.7%
associate--r+51.7%
+-commutative51.7%
associate--r+51.7%
neg-sub051.7%
*-commutative51.7%
distribute-rgt-neg-in51.7%
remove-double-neg51.7%
*-commutative51.7%
*-commutative51.7%
Simplified51.7%
Final simplification52.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.55e+18) (not (<= c 1.26e+116))) (* c (- (* t j) (* z b))) (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.55e+18) || !(c <= 1.26e+116)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.55d+18)) .or. (.not. (c <= 1.26d+116))) then
tmp = c * ((t * j) - (z * b))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.55e+18) || !(c <= 1.26e+116)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.55e+18) or not (c <= 1.26e+116): tmp = c * ((t * j) - (z * b)) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.55e+18) || !(c <= 1.26e+116)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.55e+18) || ~((c <= 1.26e+116))) tmp = c * ((t * j) - (z * b)); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.55e+18], N[Not[LessEqual[c, 1.26e+116]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.55 \cdot 10^{+18} \lor \neg \left(c \leq 1.26 \cdot 10^{+116}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if c < -3.55e18 or 1.2599999999999999e116 < c Initial program 66.5%
Taylor expanded in c around inf 61.9%
if -3.55e18 < c < 1.2599999999999999e116Initial program 77.5%
Taylor expanded in y around -inf 74.7%
Simplified80.4%
associate--l+80.4%
fma-def81.1%
fma-neg81.1%
Applied egg-rr81.1%
Taylor expanded in a around inf 46.7%
mul-1-neg46.7%
*-commutative46.7%
neg-sub046.7%
mul-1-neg46.7%
distribute-lft-neg-out46.7%
associate--r+46.7%
+-commutative46.7%
associate--r+46.7%
neg-sub046.7%
*-commutative46.7%
distribute-rgt-neg-in46.7%
remove-double-neg46.7%
*-commutative46.7%
*-commutative46.7%
Simplified46.7%
Final simplification53.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -1.25e-67)
t_1
(if (<= y 4.063e-265)
(* a (* b i))
(if (<= y 8.6e-11) (* j (* t c)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -1.25e-67) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = a * (b * i);
} else if (y <= 8.6e-11) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-1.25d-67)) then
tmp = t_1
else if (y <= 4.063d-265) then
tmp = a * (b * i)
else if (y <= 8.6d-11) then
tmp = j * (t * c)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -1.25e-67) {
tmp = t_1;
} else if (y <= 4.063e-265) {
tmp = a * (b * i);
} else if (y <= 8.6e-11) {
tmp = j * (t * c);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -1.25e-67: tmp = t_1 elif y <= 4.063e-265: tmp = a * (b * i) elif y <= 8.6e-11: tmp = j * (t * c) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -1.25e-67) tmp = t_1; elseif (y <= 4.063e-265) tmp = Float64(a * Float64(b * i)); elseif (y <= 8.6e-11) tmp = Float64(j * Float64(t * c)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -1.25e-67) tmp = t_1; elseif (y <= 4.063e-265) tmp = a * (b * i); elseif (y <= 8.6e-11) tmp = j * (t * c); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.25e-67], t$95$1, If[LessEqual[y, 4.063e-265], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.6e-11], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.25 \cdot 10^{-67}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 4.063 \cdot 10^{-265}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 8.6 \cdot 10^{-11}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -1.25e-67 or 8.60000000000000003e-11 < y Initial program 67.4%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
Taylor expanded in z around inf 41.4%
*-commutative41.4%
Simplified41.4%
if -1.25e-67 < y < 4.06299999999999987e-265Initial program 78.7%
Taylor expanded in b around inf 61.4%
Taylor expanded in a around inf 34.3%
if 4.06299999999999987e-265 < y < 8.60000000000000003e-11Initial program 79.3%
Taylor expanded in y around -inf 67.5%
Simplified72.5%
Taylor expanded in b around 0 64.3%
Taylor expanded in c around inf 35.7%
*-commutative35.7%
associate-*r*35.8%
Simplified35.8%
Final simplification38.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.85e+19) (not (<= c 3.4e-81))) (* c (* t j)) (* a (* 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 ((c <= -2.85e+19) || !(c <= 3.4e-81)) {
tmp = c * (t * j);
} else {
tmp = a * (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 ((c <= (-2.85d+19)) .or. (.not. (c <= 3.4d-81))) then
tmp = c * (t * j)
else
tmp = a * (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 ((c <= -2.85e+19) || !(c <= 3.4e-81)) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.85e+19) or not (c <= 3.4e-81): tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.85e+19) || !(c <= 3.4e-81)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.85e+19) || ~((c <= 3.4e-81))) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.85e+19], N[Not[LessEqual[c, 3.4e-81]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.85 \cdot 10^{+19} \lor \neg \left(c \leq 3.4 \cdot 10^{-81}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if c < -2.85e19 or 3.3999999999999999e-81 < c Initial program 69.9%
Taylor expanded in y around -inf 70.0%
Simplified66.7%
Taylor expanded in c around inf 54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in t around inf 34.6%
*-commutative34.6%
Simplified34.6%
if -2.85e19 < c < 3.3999999999999999e-81Initial program 76.1%
Taylor expanded in b around inf 31.5%
Taylor expanded in a around inf 25.0%
Final simplification30.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -3e+17) (* c (* t j)) (if (<= c 2.05e+88) (* a (* b i)) (* j (* t c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3e+17) {
tmp = c * (t * j);
} else if (c <= 2.05e+88) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (c <= (-3d+17)) then
tmp = c * (t * j)
else if (c <= 2.05d+88) then
tmp = a * (b * i)
else
tmp = j * (t * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -3e+17) {
tmp = c * (t * j);
} else if (c <= 2.05e+88) {
tmp = a * (b * i);
} else {
tmp = j * (t * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -3e+17: tmp = c * (t * j) elif c <= 2.05e+88: tmp = a * (b * i) else: tmp = j * (t * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -3e+17) tmp = Float64(c * Float64(t * j)); elseif (c <= 2.05e+88) tmp = Float64(a * Float64(b * i)); else tmp = Float64(j * Float64(t * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -3e+17) tmp = c * (t * j); elseif (c <= 2.05e+88) tmp = a * (b * i); else tmp = j * (t * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -3e+17], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.05e+88], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(j * N[(t * c), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3 \cdot 10^{+17}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+88}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c\right)\\
\end{array}
\end{array}
if c < -3e17Initial program 72.3%
Taylor expanded in y around -inf 71.1%
Simplified67.0%
Taylor expanded in c around inf 61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in t around inf 35.5%
*-commutative35.5%
Simplified35.5%
if -3e17 < c < 2.05000000000000014e88Initial program 79.1%
Taylor expanded in b around inf 31.9%
Taylor expanded in a around inf 24.5%
if 2.05000000000000014e88 < c Initial program 54.2%
Taylor expanded in y around -inf 56.3%
Simplified50.4%
Taylor expanded in b around 0 54.8%
Taylor expanded in c around inf 39.5%
*-commutative39.5%
associate-*r*45.3%
Simplified45.3%
Final simplification31.5%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 72.5%
Taylor expanded in b around inf 36.9%
Taylor expanded in a around inf 19.0%
Final simplification19.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2024010
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))