
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 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) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (cbrt (pow (* a (- (* c j) (* x t))) 3.0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = cbrt(pow((a * ((c * j) - (x * t))), 3.0));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = Math.cbrt(Math.pow((a * ((c * j) - (x * t))), 3.0));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = cbrt((Float64(a * Float64(Float64(c * j) - Float64(x * t))) ^ 3.0)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[Power[N[Power[N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 3.0], $MachinePrecision], 1/3], $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{{\left(a \cdot \left(c \cdot j - x \cdot t\right)\right)}^{3}}\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in a around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
*-commutative51.2%
Simplified51.2%
add-cbrt-cube57.4%
pow357.4%
*-commutative57.4%
Applied egg-rr57.4%
Final simplification86.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ (+ t_1 (* b (- (* t i) (* z c)))) (* j (- (* a c) (* y i))))))
(if (<= t_2 INFINITY) t_2 (+ (* a (* c j)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = (t_1 + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = (a * (c * j)) + 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 = (t_1 + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_2 <= Double.POSITIVE_INFINITY) {
tmp = t_2;
} else {
tmp = (a * (c * j)) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = (t_1 + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_2 <= math.inf: tmp = t_2 else: tmp = (a * (c * j)) + 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(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_2 <= Inf) tmp = t_2; else tmp = Float64(Float64(a * Float64(c * j)) + 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 = (t_1 + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_2 <= Inf) tmp = t_2; else tmp = (a * (c * j)) + 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[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, Infinity], t$95$2, N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := \left(t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + 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 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.4%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in b around 0 50.1%
Taylor expanded in i around 0 57.3%
Final simplification86.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (+ (* a (- (* c j) (* x t))) (* t (* b i)))))
(if (<= z -1.6e+55)
(* z (- (* x y) (* b c)))
(if (<= z -1.16e-77)
t_2
(if (<= z -3.8e-199)
t_1
(if (<= z -5.7e-260)
(* t (- (* b i) (* x a)))
(if (<= z -3.9e-287)
t_1
(if (<= z 4.5e-170)
t_2
(if (<= z 8.5e-125)
(* j (- (* a c) (* y i)))
(if (<= z 1.7e+101)
t_2
(+ (* a (* c j)) (* x (- (* y z) (* t a))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = (a * ((c * j) - (x * t))) + (t * (b * i));
double tmp;
if (z <= -1.6e+55) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.16e-77) {
tmp = t_2;
} else if (z <= -3.8e-199) {
tmp = t_1;
} else if (z <= -5.7e-260) {
tmp = t * ((b * i) - (x * a));
} else if (z <= -3.9e-287) {
tmp = t_1;
} else if (z <= 4.5e-170) {
tmp = t_2;
} else if (z <= 8.5e-125) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.7e+101) {
tmp = t_2;
} else {
tmp = (a * (c * j)) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = (a * ((c * j) - (x * t))) + (t * (b * i))
if (z <= (-1.6d+55)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-1.16d-77)) then
tmp = t_2
else if (z <= (-3.8d-199)) then
tmp = t_1
else if (z <= (-5.7d-260)) then
tmp = t * ((b * i) - (x * a))
else if (z <= (-3.9d-287)) then
tmp = t_1
else if (z <= 4.5d-170) then
tmp = t_2
else if (z <= 8.5d-125) then
tmp = j * ((a * c) - (y * i))
else if (z <= 1.7d+101) then
tmp = t_2
else
tmp = (a * (c * j)) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = (a * ((c * j) - (x * t))) + (t * (b * i));
double tmp;
if (z <= -1.6e+55) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.16e-77) {
tmp = t_2;
} else if (z <= -3.8e-199) {
tmp = t_1;
} else if (z <= -5.7e-260) {
tmp = t * ((b * i) - (x * a));
} else if (z <= -3.9e-287) {
tmp = t_1;
} else if (z <= 4.5e-170) {
tmp = t_2;
} else if (z <= 8.5e-125) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.7e+101) {
tmp = t_2;
} else {
tmp = (a * (c * j)) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = (a * ((c * j) - (x * t))) + (t * (b * i)) tmp = 0 if z <= -1.6e+55: tmp = z * ((x * y) - (b * c)) elif z <= -1.16e-77: tmp = t_2 elif z <= -3.8e-199: tmp = t_1 elif z <= -5.7e-260: tmp = t * ((b * i) - (x * a)) elif z <= -3.9e-287: tmp = t_1 elif z <= 4.5e-170: tmp = t_2 elif z <= 8.5e-125: tmp = j * ((a * c) - (y * i)) elif z <= 1.7e+101: tmp = t_2 else: tmp = (a * (c * j)) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(t * Float64(b * i))) tmp = 0.0 if (z <= -1.6e+55) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -1.16e-77) tmp = t_2; elseif (z <= -3.8e-199) tmp = t_1; elseif (z <= -5.7e-260) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= -3.9e-287) tmp = t_1; elseif (z <= 4.5e-170) tmp = t_2; elseif (z <= 8.5e-125) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 1.7e+101) tmp = t_2; else tmp = Float64(Float64(a * Float64(c * j)) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = (a * ((c * j) - (x * t))) + (t * (b * i)); tmp = 0.0; if (z <= -1.6e+55) tmp = z * ((x * y) - (b * c)); elseif (z <= -1.16e-77) tmp = t_2; elseif (z <= -3.8e-199) tmp = t_1; elseif (z <= -5.7e-260) tmp = t * ((b * i) - (x * a)); elseif (z <= -3.9e-287) tmp = t_1; elseif (z <= 4.5e-170) tmp = t_2; elseif (z <= 8.5e-125) tmp = j * ((a * c) - (y * i)); elseif (z <= 1.7e+101) tmp = t_2; else tmp = (a * (c * j)) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.6e+55], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.16e-77], t$95$2, If[LessEqual[z, -3.8e-199], t$95$1, If[LessEqual[z, -5.7e-260], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.9e-287], t$95$1, If[LessEqual[z, 4.5e-170], t$95$2, If[LessEqual[z, 8.5e-125], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+101], t$95$2, N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;z \leq -1.6 \cdot 10^{+55}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -1.16 \cdot 10^{-77}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.8 \cdot 10^{-199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.7 \cdot 10^{-260}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq -3.9 \cdot 10^{-287}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{-170}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{-125}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+101}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if z < -1.6000000000000001e55Initial program 69.4%
Taylor expanded in z around inf 83.5%
if -1.6000000000000001e55 < z < -1.16e-77 or -3.9e-287 < z < 4.50000000000000002e-170 or 8.5000000000000002e-125 < z < 1.70000000000000009e101Initial program 81.9%
Taylor expanded in c around 0 75.8%
associate-*r*74.9%
associate-*r*74.9%
*-commutative74.9%
mul-1-neg74.9%
*-commutative74.9%
distribute-rgt-neg-in74.9%
Simplified74.9%
Taylor expanded in y around 0 66.1%
cancel-sign-sub-inv66.1%
mul-1-neg66.1%
distribute-rgt-neg-in66.1%
distribute-lft-in66.9%
+-commutative66.9%
sub-neg66.9%
metadata-eval66.9%
*-lft-identity66.9%
associate-*r*66.9%
remove-double-neg66.9%
mul-1-neg66.9%
associate-*r*66.9%
neg-mul-166.9%
*-commutative66.9%
distribute-lft-neg-in66.9%
*-commutative66.9%
distribute-rgt-neg-in66.9%
*-commutative66.9%
neg-mul-166.9%
associate-*r*66.9%
mul-1-neg66.9%
remove-double-neg66.9%
Simplified66.9%
if -1.16e-77 < z < -3.7999999999999998e-199 or -5.6999999999999998e-260 < z < -3.9e-287Initial program 81.2%
Taylor expanded in c around 0 76.2%
associate-*r*73.8%
associate-*r*73.8%
*-commutative73.8%
mul-1-neg73.8%
*-commutative73.8%
distribute-rgt-neg-in73.8%
Simplified73.8%
Taylor expanded in t around -inf 74.1%
Taylor expanded in i around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
if -3.7999999999999998e-199 < z < -5.6999999999999998e-260Initial program 75.0%
Taylor expanded in c around 0 58.8%
associate-*r*67.2%
associate-*r*67.2%
*-commutative67.2%
mul-1-neg67.2%
*-commutative67.2%
distribute-rgt-neg-in67.2%
Simplified67.2%
Taylor expanded in t around -inf 67.2%
Taylor expanded in t around inf 67.3%
associate-*r*67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r*67.3%
neg-mul-167.3%
neg-sub067.3%
cancel-sign-sub-inv67.3%
*-commutative67.3%
+-commutative67.3%
associate--r+67.3%
neg-sub067.3%
distribute-rgt-neg-in67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if 4.50000000000000002e-170 < z < 8.5000000000000002e-125Initial program 83.3%
Taylor expanded in j around inf 75.8%
*-commutative75.8%
Simplified75.8%
if 1.70000000000000009e101 < z Initial program 67.5%
Taylor expanded in b around 0 69.8%
Taylor expanded in i around 0 69.9%
Final simplification71.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (+ (* a (- (* c j) (* x t))) (* t (* b i)))))
(if (<= z -1.4e+55)
(* z (- (* x y) (* b c)))
(if (<= z -1.95e-71)
t_2
(if (<= z -1.1e-199)
t_1
(if (<= z -4.5e-260)
(* t (- (* b i) (* x a)))
(if (<= z -9e-293)
t_1
(if (<= z 5.8e-174)
t_2
(if (<= z 2.2e-126)
(* j (- (* a c) (* y i)))
(if (<= z 7.2e+157)
t_2
(+ (* x (- (* y z) (* t a))) (* b (* t i)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = (a * ((c * j) - (x * t))) + (t * (b * i));
double tmp;
if (z <= -1.4e+55) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.95e-71) {
tmp = t_2;
} else if (z <= -1.1e-199) {
tmp = t_1;
} else if (z <= -4.5e-260) {
tmp = t * ((b * i) - (x * a));
} else if (z <= -9e-293) {
tmp = t_1;
} else if (z <= 5.8e-174) {
tmp = t_2;
} else if (z <= 2.2e-126) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 7.2e+157) {
tmp = t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + (b * (t * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = (a * ((c * j) - (x * t))) + (t * (b * i))
if (z <= (-1.4d+55)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-1.95d-71)) then
tmp = t_2
else if (z <= (-1.1d-199)) then
tmp = t_1
else if (z <= (-4.5d-260)) then
tmp = t * ((b * i) - (x * a))
else if (z <= (-9d-293)) then
tmp = t_1
else if (z <= 5.8d-174) then
tmp = t_2
else if (z <= 2.2d-126) then
tmp = j * ((a * c) - (y * i))
else if (z <= 7.2d+157) then
tmp = t_2
else
tmp = (x * ((y * z) - (t * a))) + (b * (t * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = (a * ((c * j) - (x * t))) + (t * (b * i));
double tmp;
if (z <= -1.4e+55) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.95e-71) {
tmp = t_2;
} else if (z <= -1.1e-199) {
tmp = t_1;
} else if (z <= -4.5e-260) {
tmp = t * ((b * i) - (x * a));
} else if (z <= -9e-293) {
tmp = t_1;
} else if (z <= 5.8e-174) {
tmp = t_2;
} else if (z <= 2.2e-126) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 7.2e+157) {
tmp = t_2;
} else {
tmp = (x * ((y * z) - (t * a))) + (b * (t * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = (a * ((c * j) - (x * t))) + (t * (b * i)) tmp = 0 if z <= -1.4e+55: tmp = z * ((x * y) - (b * c)) elif z <= -1.95e-71: tmp = t_2 elif z <= -1.1e-199: tmp = t_1 elif z <= -4.5e-260: tmp = t * ((b * i) - (x * a)) elif z <= -9e-293: tmp = t_1 elif z <= 5.8e-174: tmp = t_2 elif z <= 2.2e-126: tmp = j * ((a * c) - (y * i)) elif z <= 7.2e+157: tmp = t_2 else: tmp = (x * ((y * z) - (t * a))) + (b * (t * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(t * Float64(b * i))) tmp = 0.0 if (z <= -1.4e+55) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -1.95e-71) tmp = t_2; elseif (z <= -1.1e-199) tmp = t_1; elseif (z <= -4.5e-260) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= -9e-293) tmp = t_1; elseif (z <= 5.8e-174) tmp = t_2; elseif (z <= 2.2e-126) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 7.2e+157) tmp = t_2; else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(t * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = (a * ((c * j) - (x * t))) + (t * (b * i)); tmp = 0.0; if (z <= -1.4e+55) tmp = z * ((x * y) - (b * c)); elseif (z <= -1.95e-71) tmp = t_2; elseif (z <= -1.1e-199) tmp = t_1; elseif (z <= -4.5e-260) tmp = t * ((b * i) - (x * a)); elseif (z <= -9e-293) tmp = t_1; elseif (z <= 5.8e-174) tmp = t_2; elseif (z <= 2.2e-126) tmp = j * ((a * c) - (y * i)); elseif (z <= 7.2e+157) tmp = t_2; else tmp = (x * ((y * z) - (t * a))) + (b * (t * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.4e+55], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.95e-71], t$95$2, If[LessEqual[z, -1.1e-199], t$95$1, If[LessEqual[z, -4.5e-260], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -9e-293], t$95$1, If[LessEqual[z, 5.8e-174], t$95$2, If[LessEqual[z, 2.2e-126], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e+157], t$95$2, N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;z \leq -1.4 \cdot 10^{+55}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{-71}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-199}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{-260}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq -9 \cdot 10^{-293}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.8 \cdot 10^{-174}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-126}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{+157}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if z < -1.4e55Initial program 69.4%
Taylor expanded in z around inf 83.5%
if -1.4e55 < z < -1.9500000000000001e-71 or -9.0000000000000005e-293 < z < 5.8000000000000002e-174 or 2.20000000000000014e-126 < z < 7.20000000000000049e157Initial program 79.0%
Taylor expanded in c around 0 76.0%
associate-*r*75.2%
associate-*r*75.2%
*-commutative75.2%
mul-1-neg75.2%
*-commutative75.2%
distribute-rgt-neg-in75.2%
Simplified75.2%
Taylor expanded in y around 0 65.7%
cancel-sign-sub-inv65.7%
mul-1-neg65.7%
distribute-rgt-neg-in65.7%
distribute-lft-in66.5%
+-commutative66.5%
sub-neg66.5%
metadata-eval66.5%
*-lft-identity66.5%
associate-*r*66.5%
remove-double-neg66.5%
mul-1-neg66.5%
associate-*r*66.5%
neg-mul-166.5%
*-commutative66.5%
distribute-lft-neg-in66.5%
*-commutative66.5%
distribute-rgt-neg-in66.5%
*-commutative66.5%
neg-mul-166.5%
associate-*r*66.5%
mul-1-neg66.5%
remove-double-neg66.5%
Simplified66.5%
if -1.9500000000000001e-71 < z < -1.0999999999999999e-199 or -4.4999999999999997e-260 < z < -9.0000000000000005e-293Initial program 81.2%
Taylor expanded in c around 0 76.2%
associate-*r*73.8%
associate-*r*73.8%
*-commutative73.8%
mul-1-neg73.8%
*-commutative73.8%
distribute-rgt-neg-in73.8%
Simplified73.8%
Taylor expanded in t around -inf 74.1%
Taylor expanded in i around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
if -1.0999999999999999e-199 < z < -4.4999999999999997e-260Initial program 75.0%
Taylor expanded in c around 0 58.8%
associate-*r*67.2%
associate-*r*67.2%
*-commutative67.2%
mul-1-neg67.2%
*-commutative67.2%
distribute-rgt-neg-in67.2%
Simplified67.2%
Taylor expanded in t around -inf 67.2%
Taylor expanded in t around inf 67.3%
associate-*r*67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r*67.3%
neg-mul-167.3%
neg-sub067.3%
cancel-sign-sub-inv67.3%
*-commutative67.3%
+-commutative67.3%
associate--r+67.3%
neg-sub067.3%
distribute-rgt-neg-in67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if 5.8000000000000002e-174 < z < 2.20000000000000014e-126Initial program 83.3%
Taylor expanded in j around inf 75.8%
*-commutative75.8%
Simplified75.8%
if 7.20000000000000049e157 < z Initial program 74.1%
Taylor expanded in c around 0 76.5%
associate-*r*76.5%
associate-*r*76.5%
*-commutative76.5%
mul-1-neg76.5%
*-commutative76.5%
distribute-rgt-neg-in76.5%
Simplified76.5%
Taylor expanded in j around 0 76.7%
fma-neg76.7%
*-commutative76.7%
*-commutative76.7%
fma-udef76.7%
mul-1-neg76.7%
remove-double-neg76.7%
Simplified76.7%
Final simplification71.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j))))
(t_2 (+ (* a (- (* c j) (* x t))) (* t (* b i)))))
(if (<= z -9.5e+54)
(* z (- (* x y) (* b c)))
(if (<= z -1.6e-75)
t_2
(if (<= z -8e-193)
t_1
(if (<= z -5.6e-260)
(* t (- (* b i) (* x a)))
(if (<= z -3.5e-290)
t_1
(if (<= z 4e-170)
t_2
(if (<= z 1.85e-125)
(* j (- (* a c) (* y i)))
(if (<= z 4.8e+131)
t_2
(+ (* x (* y z)) (* b (- (* t i) (* z c))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = (a * ((c * j) - (x * t))) + (t * (b * i));
double tmp;
if (z <= -9.5e+54) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.6e-75) {
tmp = t_2;
} else if (z <= -8e-193) {
tmp = t_1;
} else if (z <= -5.6e-260) {
tmp = t * ((b * i) - (x * a));
} else if (z <= -3.5e-290) {
tmp = t_1;
} else if (z <= 4e-170) {
tmp = t_2;
} else if (z <= 1.85e-125) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 4.8e+131) {
tmp = t_2;
} else {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
t_2 = (a * ((c * j) - (x * t))) + (t * (b * i))
if (z <= (-9.5d+54)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-1.6d-75)) then
tmp = t_2
else if (z <= (-8d-193)) then
tmp = t_1
else if (z <= (-5.6d-260)) then
tmp = t * ((b * i) - (x * a))
else if (z <= (-3.5d-290)) then
tmp = t_1
else if (z <= 4d-170) then
tmp = t_2
else if (z <= 1.85d-125) then
tmp = j * ((a * c) - (y * i))
else if (z <= 4.8d+131) then
tmp = t_2
else
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double t_2 = (a * ((c * j) - (x * t))) + (t * (b * i));
double tmp;
if (z <= -9.5e+54) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.6e-75) {
tmp = t_2;
} else if (z <= -8e-193) {
tmp = t_1;
} else if (z <= -5.6e-260) {
tmp = t * ((b * i) - (x * a));
} else if (z <= -3.5e-290) {
tmp = t_1;
} else if (z <= 4e-170) {
tmp = t_2;
} else if (z <= 1.85e-125) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 4.8e+131) {
tmp = t_2;
} else {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) t_2 = (a * ((c * j) - (x * t))) + (t * (b * i)) tmp = 0 if z <= -9.5e+54: tmp = z * ((x * y) - (b * c)) elif z <= -1.6e-75: tmp = t_2 elif z <= -8e-193: tmp = t_1 elif z <= -5.6e-260: tmp = t * ((b * i) - (x * a)) elif z <= -3.5e-290: tmp = t_1 elif z <= 4e-170: tmp = t_2 elif z <= 1.85e-125: tmp = j * ((a * c) - (y * i)) elif z <= 4.8e+131: tmp = t_2 else: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) t_2 = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(t * Float64(b * i))) tmp = 0.0 if (z <= -9.5e+54) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -1.6e-75) tmp = t_2; elseif (z <= -8e-193) tmp = t_1; elseif (z <= -5.6e-260) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= -3.5e-290) tmp = t_1; elseif (z <= 4e-170) tmp = t_2; elseif (z <= 1.85e-125) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 4.8e+131) tmp = t_2; else tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); t_2 = (a * ((c * j) - (x * t))) + (t * (b * i)); tmp = 0.0; if (z <= -9.5e+54) tmp = z * ((x * y) - (b * c)); elseif (z <= -1.6e-75) tmp = t_2; elseif (z <= -8e-193) tmp = t_1; elseif (z <= -5.6e-260) tmp = t * ((b * i) - (x * a)); elseif (z <= -3.5e-290) tmp = t_1; elseif (z <= 4e-170) tmp = t_2; elseif (z <= 1.85e-125) tmp = j * ((a * c) - (y * i)); elseif (z <= 4.8e+131) tmp = t_2; else tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.5e+54], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.6e-75], t$95$2, If[LessEqual[z, -8e-193], t$95$1, If[LessEqual[z, -5.6e-260], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.5e-290], t$95$1, If[LessEqual[z, 4e-170], t$95$2, If[LessEqual[z, 1.85e-125], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e+131], t$95$2, N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{+54}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -1.6 \cdot 10^{-75}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-193}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -5.6 \cdot 10^{-260}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-290}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 4 \cdot 10^{-170}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-125}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+131}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if z < -9.4999999999999999e54Initial program 69.4%
Taylor expanded in z around inf 83.5%
if -9.4999999999999999e54 < z < -1.59999999999999988e-75 or -3.49999999999999981e-290 < z < 3.99999999999999993e-170 or 1.85e-125 < z < 4.7999999999999999e131Initial program 80.0%
Taylor expanded in c around 0 76.8%
associate-*r*75.9%
associate-*r*75.9%
*-commutative75.9%
mul-1-neg75.9%
*-commutative75.9%
distribute-rgt-neg-in75.9%
Simplified75.9%
Taylor expanded in y around 0 66.2%
cancel-sign-sub-inv66.2%
mul-1-neg66.2%
distribute-rgt-neg-in66.2%
distribute-lft-in67.0%
+-commutative67.0%
sub-neg67.0%
metadata-eval67.0%
*-lft-identity67.0%
associate-*r*67.0%
remove-double-neg67.0%
mul-1-neg67.0%
associate-*r*67.0%
neg-mul-167.0%
*-commutative67.0%
distribute-lft-neg-in67.0%
*-commutative67.0%
distribute-rgt-neg-in67.0%
*-commutative67.0%
neg-mul-167.0%
associate-*r*67.0%
mul-1-neg67.0%
remove-double-neg67.0%
Simplified67.0%
if -1.59999999999999988e-75 < z < -8.0000000000000004e-193 or -5.5999999999999996e-260 < z < -3.49999999999999981e-290Initial program 81.2%
Taylor expanded in c around 0 76.2%
associate-*r*73.8%
associate-*r*73.8%
*-commutative73.8%
mul-1-neg73.8%
*-commutative73.8%
distribute-rgt-neg-in73.8%
Simplified73.8%
Taylor expanded in t around -inf 74.1%
Taylor expanded in i around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
Simplified70.8%
if -8.0000000000000004e-193 < z < -5.5999999999999996e-260Initial program 75.0%
Taylor expanded in c around 0 58.8%
associate-*r*67.2%
associate-*r*67.2%
*-commutative67.2%
mul-1-neg67.2%
*-commutative67.2%
distribute-rgt-neg-in67.2%
Simplified67.2%
Taylor expanded in t around -inf 67.2%
Taylor expanded in t around inf 67.3%
associate-*r*67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r*67.3%
neg-mul-167.3%
neg-sub067.3%
cancel-sign-sub-inv67.3%
*-commutative67.3%
+-commutative67.3%
associate--r+67.3%
neg-sub067.3%
distribute-rgt-neg-in67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if 3.99999999999999993e-170 < z < 1.85e-125Initial program 83.3%
Taylor expanded in j around inf 75.8%
*-commutative75.8%
Simplified75.8%
if 4.7999999999999999e131 < z Initial program 71.0%
Taylor expanded in j around 0 74.4%
Taylor expanded in a around 0 74.4%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z)))
(t_2 (+ t_1 (* t (- (* b i) (* x a)))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -7.2e+174)
t_3
(if (<= j -2.45e-7)
(- (* x (- (* y z) (* t a))) (* j (* y i)))
(if (<= j -1.7e-17)
(* a (- (* c j) (* x t)))
(if (<= j -6.5e-183)
(+ t_1 (* b (- (* t i) (* z c))))
(if (<= j 3.2e-160)
t_2
(if (<= j 1.4e-71)
(* z (- (* x y) (* b c)))
(if (<= j 1.55e+122) t_2 t_3)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = t_1 + (t * ((b * i) - (x * a)));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -7.2e+174) {
tmp = t_3;
} else if (j <= -2.45e-7) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (j <= -1.7e-17) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -6.5e-183) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else if (j <= 3.2e-160) {
tmp = t_2;
} else if (j <= 1.4e-71) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 1.55e+122) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = t_1 + (t * ((b * i) - (x * a)))
t_3 = j * ((a * c) - (y * i))
if (j <= (-7.2d+174)) then
tmp = t_3
else if (j <= (-2.45d-7)) then
tmp = (x * ((y * z) - (t * a))) - (j * (y * i))
else if (j <= (-1.7d-17)) then
tmp = a * ((c * j) - (x * t))
else if (j <= (-6.5d-183)) then
tmp = t_1 + (b * ((t * i) - (z * c)))
else if (j <= 3.2d-160) then
tmp = t_2
else if (j <= 1.4d-71) then
tmp = z * ((x * y) - (b * c))
else if (j <= 1.55d+122) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = t_1 + (t * ((b * i) - (x * a)));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -7.2e+174) {
tmp = t_3;
} else if (j <= -2.45e-7) {
tmp = (x * ((y * z) - (t * a))) - (j * (y * i));
} else if (j <= -1.7e-17) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -6.5e-183) {
tmp = t_1 + (b * ((t * i) - (z * c)));
} else if (j <= 3.2e-160) {
tmp = t_2;
} else if (j <= 1.4e-71) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 1.55e+122) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = t_1 + (t * ((b * i) - (x * a))) t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -7.2e+174: tmp = t_3 elif j <= -2.45e-7: tmp = (x * ((y * z) - (t * a))) - (j * (y * i)) elif j <= -1.7e-17: tmp = a * ((c * j) - (x * t)) elif j <= -6.5e-183: tmp = t_1 + (b * ((t * i) - (z * c))) elif j <= 3.2e-160: tmp = t_2 elif j <= 1.4e-71: tmp = z * ((x * y) - (b * c)) elif j <= 1.55e+122: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(t_1 + Float64(t * Float64(Float64(b * i) - Float64(x * a)))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -7.2e+174) tmp = t_3; elseif (j <= -2.45e-7) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(j * Float64(y * i))); elseif (j <= -1.7e-17) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (j <= -6.5e-183) tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= 3.2e-160) tmp = t_2; elseif (j <= 1.4e-71) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 1.55e+122) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = t_1 + (t * ((b * i) - (x * a))); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -7.2e+174) tmp = t_3; elseif (j <= -2.45e-7) tmp = (x * ((y * z) - (t * a))) - (j * (y * i)); elseif (j <= -1.7e-17) tmp = a * ((c * j) - (x * t)); elseif (j <= -6.5e-183) tmp = t_1 + (b * ((t * i) - (z * c))); elseif (j <= 3.2e-160) tmp = t_2; elseif (j <= 1.4e-71) tmp = z * ((x * y) - (b * c)); elseif (j <= 1.55e+122) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7.2e+174], t$95$3, If[LessEqual[j, -2.45e-7], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.7e-17], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.5e-183], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.2e-160], t$95$2, If[LessEqual[j, 1.4e-71], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.55e+122], t$95$2, t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := t\_1 + t \cdot \left(b \cdot i - x \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -7.2 \cdot 10^{+174}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -2.45 \cdot 10^{-7}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;j \leq -1.7 \cdot 10^{-17}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-183}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{-160}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{-71}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 1.55 \cdot 10^{+122}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if j < -7.2000000000000003e174 or 1.54999999999999999e122 < j Initial program 79.0%
Taylor expanded in j around inf 75.0%
*-commutative75.0%
Simplified75.0%
if -7.2000000000000003e174 < j < -2.4499999999999998e-7Initial program 78.3%
Taylor expanded in b around 0 66.1%
Taylor expanded in a around 0 61.1%
neg-mul-161.1%
distribute-lft-neg-in61.1%
*-commutative61.1%
Simplified61.1%
if -2.4499999999999998e-7 < j < -1.6999999999999999e-17Initial program 25.0%
Taylor expanded in a around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
if -1.6999999999999999e-17 < j < -6.50000000000000014e-183Initial program 87.0%
Taylor expanded in j around 0 83.9%
Taylor expanded in a around 0 80.8%
if -6.50000000000000014e-183 < j < 3.20000000000000009e-160 or 1.4e-71 < j < 1.54999999999999999e122Initial program 74.3%
Taylor expanded in c around 0 74.3%
associate-*r*75.2%
associate-*r*75.2%
*-commutative75.2%
mul-1-neg75.2%
*-commutative75.2%
distribute-rgt-neg-in75.2%
Simplified75.2%
Taylor expanded in t around -inf 77.0%
Taylor expanded in j around 0 71.0%
if 3.20000000000000009e-160 < j < 1.4e-71Initial program 73.4%
Taylor expanded in z around inf 80.3%
Final simplification72.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a))))
(t_2 (+ t_1 (* b (* t i))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= j -1.7e+120)
t_3
(if (<= j -7.5e+85)
t_2
(if (<= j -2e-17)
t_3
(if (<= j -1.75e-171)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(if (<= j 1.5e-206)
t_2
(if (<= j 5.6e+32) (- t_1 (* b (* z c))) t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = t_1 + (b * (t * i));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.7e+120) {
tmp = t_3;
} else if (j <= -7.5e+85) {
tmp = t_2;
} else if (j <= -2e-17) {
tmp = t_3;
} else if (j <= -1.75e-171) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (j <= 1.5e-206) {
tmp = t_2;
} else if (j <= 5.6e+32) {
tmp = t_1 - (b * (z * c));
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
t_2 = t_1 + (b * (t * i))
t_3 = j * ((a * c) - (y * i))
if (j <= (-1.7d+120)) then
tmp = t_3
else if (j <= (-7.5d+85)) then
tmp = t_2
else if (j <= (-2d-17)) then
tmp = t_3
else if (j <= (-1.75d-171)) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else if (j <= 1.5d-206) then
tmp = t_2
else if (j <= 5.6d+32) then
tmp = t_1 - (b * (z * c))
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double t_2 = t_1 + (b * (t * i));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.7e+120) {
tmp = t_3;
} else if (j <= -7.5e+85) {
tmp = t_2;
} else if (j <= -2e-17) {
tmp = t_3;
} else if (j <= -1.75e-171) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (j <= 1.5e-206) {
tmp = t_2;
} else if (j <= 5.6e+32) {
tmp = t_1 - (b * (z * c));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) t_2 = t_1 + (b * (t * i)) t_3 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.7e+120: tmp = t_3 elif j <= -7.5e+85: tmp = t_2 elif j <= -2e-17: tmp = t_3 elif j <= -1.75e-171: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) elif j <= 1.5e-206: tmp = t_2 elif j <= 5.6e+32: tmp = t_1 - (b * (z * c)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(t_1 + Float64(b * Float64(t * i))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.7e+120) tmp = t_3; elseif (j <= -7.5e+85) tmp = t_2; elseif (j <= -2e-17) tmp = t_3; elseif (j <= -1.75e-171) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= 1.5e-206) tmp = t_2; elseif (j <= 5.6e+32) tmp = Float64(t_1 - Float64(b * Float64(z * c))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); t_2 = t_1 + (b * (t * i)); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.7e+120) tmp = t_3; elseif (j <= -7.5e+85) tmp = t_2; elseif (j <= -2e-17) tmp = t_3; elseif (j <= -1.75e-171) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); elseif (j <= 1.5e-206) tmp = t_2; elseif (j <= 5.6e+32) tmp = t_1 - (b * (z * c)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.7e+120], t$95$3, If[LessEqual[j, -7.5e+85], t$95$2, If[LessEqual[j, -2e-17], t$95$3, If[LessEqual[j, -1.75e-171], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.5e-206], t$95$2, If[LessEqual[j, 5.6e+32], N[(t$95$1 - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := t\_1 + b \cdot \left(t \cdot i\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{+120}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -7.5 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -2 \cdot 10^{-17}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;j \leq -1.75 \cdot 10^{-171}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{-206}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{+32}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if j < -1.69999999999999999e120 or -7.49999999999999942e85 < j < -2.00000000000000014e-17 or 5.6e32 < j Initial program 77.3%
Taylor expanded in j around inf 65.4%
*-commutative65.4%
Simplified65.4%
if -1.69999999999999999e120 < j < -7.49999999999999942e85 or -1.74999999999999997e-171 < j < 1.5000000000000001e-206Initial program 75.3%
Taylor expanded in c around 0 77.2%
associate-*r*77.2%
associate-*r*77.2%
*-commutative77.2%
mul-1-neg77.2%
*-commutative77.2%
distribute-rgt-neg-in77.2%
Simplified77.2%
Taylor expanded in j around 0 77.3%
fma-neg77.3%
*-commutative77.3%
*-commutative77.3%
fma-udef77.3%
mul-1-neg77.3%
remove-double-neg77.3%
Simplified77.3%
if -2.00000000000000014e-17 < j < -1.74999999999999997e-171Initial program 85.1%
Taylor expanded in j around 0 81.5%
Taylor expanded in a around 0 78.0%
if 1.5000000000000001e-206 < j < 5.6e32Initial program 73.8%
Taylor expanded in j around 0 62.4%
Taylor expanded in i around 0 64.2%
*-commutative64.2%
Simplified64.2%
Final simplification69.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= j -7.5e+174)
t_2
(if (<= j -1.05e-8)
(- t_1 (* j (* y i)))
(if (<= j -1.05e-17)
(* a (- (* c j) (* x t)))
(if (<= j -2.8e-170)
(+ (* x (* y z)) (* b (- (* t i) (* z c))))
(if (<= j 1.45e-206)
(+ t_1 (* b (* t i)))
(if (<= j 5.2e+32) (- t_1 (* b (* 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) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -7.5e+174) {
tmp = t_2;
} else if (j <= -1.05e-8) {
tmp = t_1 - (j * (y * i));
} else if (j <= -1.05e-17) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -2.8e-170) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (j <= 1.45e-206) {
tmp = t_1 + (b * (t * i));
} else if (j <= 5.2e+32) {
tmp = t_1 - (b * (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 = x * ((y * z) - (t * a))
t_2 = j * ((a * c) - (y * i))
if (j <= (-7.5d+174)) then
tmp = t_2
else if (j <= (-1.05d-8)) then
tmp = t_1 - (j * (y * i))
else if (j <= (-1.05d-17)) then
tmp = a * ((c * j) - (x * t))
else if (j <= (-2.8d-170)) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else if (j <= 1.45d-206) then
tmp = t_1 + (b * (t * i))
else if (j <= 5.2d+32) then
tmp = t_1 - (b * (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) - (t * a));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (j <= -7.5e+174) {
tmp = t_2;
} else if (j <= -1.05e-8) {
tmp = t_1 - (j * (y * i));
} else if (j <= -1.05e-17) {
tmp = a * ((c * j) - (x * t));
} else if (j <= -2.8e-170) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else if (j <= 1.45e-206) {
tmp = t_1 + (b * (t * i));
} else if (j <= 5.2e+32) {
tmp = t_1 - (b * (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 * a)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if j <= -7.5e+174: tmp = t_2 elif j <= -1.05e-8: tmp = t_1 - (j * (y * i)) elif j <= -1.05e-17: tmp = a * ((c * j) - (x * t)) elif j <= -2.8e-170: tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) elif j <= 1.45e-206: tmp = t_1 + (b * (t * i)) elif j <= 5.2e+32: tmp = t_1 - (b * (z * c)) 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(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -7.5e+174) tmp = t_2; elseif (j <= -1.05e-8) tmp = Float64(t_1 - Float64(j * Float64(y * i))); elseif (j <= -1.05e-17) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (j <= -2.8e-170) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); elseif (j <= 1.45e-206) tmp = Float64(t_1 + Float64(b * Float64(t * i))); elseif (j <= 5.2e+32) tmp = Float64(t_1 - Float64(b * 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 * a)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -7.5e+174) tmp = t_2; elseif (j <= -1.05e-8) tmp = t_1 - (j * (y * i)); elseif (j <= -1.05e-17) tmp = a * ((c * j) - (x * t)); elseif (j <= -2.8e-170) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); elseif (j <= 1.45e-206) tmp = t_1 + (b * (t * i)); elseif (j <= 5.2e+32) tmp = t_1 - (b * (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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -7.5e+174], t$95$2, If[LessEqual[j, -1.05e-8], N[(t$95$1 - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.05e-17], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.8e-170], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.45e-206], N[(t$95$1 + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.2e+32], N[(t$95$1 - N[(b * N[(z * c), $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 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -7.5 \cdot 10^{+174}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{-8}:\\
\;\;\;\;t\_1 - j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;j \leq -1.05 \cdot 10^{-17}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;j \leq -2.8 \cdot 10^{-170}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 1.45 \cdot 10^{-206}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{+32}:\\
\;\;\;\;t\_1 - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -7.5000000000000004e174 or 5.2000000000000004e32 < j Initial program 80.0%
Taylor expanded in j around inf 68.3%
*-commutative68.3%
Simplified68.3%
if -7.5000000000000004e174 < j < -1.04999999999999997e-8Initial program 78.3%
Taylor expanded in b around 0 66.1%
Taylor expanded in a around 0 61.1%
neg-mul-161.1%
distribute-lft-neg-in61.1%
*-commutative61.1%
Simplified61.1%
if -1.04999999999999997e-8 < j < -1.04999999999999996e-17Initial program 25.0%
Taylor expanded in a around inf 100.0%
+-commutative100.0%
mul-1-neg100.0%
unsub-neg100.0%
*-commutative100.0%
Simplified100.0%
if -1.04999999999999996e-17 < j < -2.79999999999999995e-170Initial program 85.1%
Taylor expanded in j around 0 81.5%
Taylor expanded in a around 0 78.0%
if -2.79999999999999995e-170 < j < 1.4500000000000001e-206Initial program 73.8%
Taylor expanded in c around 0 78.1%
associate-*r*78.1%
associate-*r*78.1%
*-commutative78.1%
mul-1-neg78.1%
*-commutative78.1%
distribute-rgt-neg-in78.1%
Simplified78.1%
Taylor expanded in j around 0 80.0%
fma-neg80.0%
*-commutative80.0%
*-commutative80.0%
fma-udef80.0%
mul-1-neg80.0%
remove-double-neg80.0%
Simplified80.0%
if 1.4500000000000001e-206 < j < 5.2000000000000004e32Initial program 73.8%
Taylor expanded in j around 0 62.4%
Taylor expanded in i around 0 64.2%
*-commutative64.2%
Simplified64.2%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= b -3.4e+51)
(* b (- (* t i) (* z c)))
(if (<= b -1.6e-7)
(* a (- (* c j) (* x t)))
(if (<= b -4.3e-138)
(* i (- (* t b) (* y j)))
(if (<= b 4.4e-148)
t_1
(if (<= b 1.4e-122)
(* x (* y z))
(if (<= b 2e+80) t_1 (* t (- (* b i) (* x a)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (b <= -3.4e+51) {
tmp = b * ((t * i) - (z * c));
} else if (b <= -1.6e-7) {
tmp = a * ((c * j) - (x * t));
} else if (b <= -4.3e-138) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 4.4e-148) {
tmp = t_1;
} else if (b <= 1.4e-122) {
tmp = x * (y * z);
} else if (b <= 2e+80) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (b <= (-3.4d+51)) then
tmp = b * ((t * i) - (z * c))
else if (b <= (-1.6d-7)) then
tmp = a * ((c * j) - (x * t))
else if (b <= (-4.3d-138)) then
tmp = i * ((t * b) - (y * j))
else if (b <= 4.4d-148) then
tmp = t_1
else if (b <= 1.4d-122) then
tmp = x * (y * z)
else if (b <= 2d+80) then
tmp = t_1
else
tmp = t * ((b * i) - (x * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (b <= -3.4e+51) {
tmp = b * ((t * i) - (z * c));
} else if (b <= -1.6e-7) {
tmp = a * ((c * j) - (x * t));
} else if (b <= -4.3e-138) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 4.4e-148) {
tmp = t_1;
} else if (b <= 1.4e-122) {
tmp = x * (y * z);
} else if (b <= 2e+80) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if b <= -3.4e+51: tmp = b * ((t * i) - (z * c)) elif b <= -1.6e-7: tmp = a * ((c * j) - (x * t)) elif b <= -4.3e-138: tmp = i * ((t * b) - (y * j)) elif b <= 4.4e-148: tmp = t_1 elif b <= 1.4e-122: tmp = x * (y * z) elif b <= 2e+80: tmp = t_1 else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (b <= -3.4e+51) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (b <= -1.6e-7) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= -4.3e-138) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= 4.4e-148) tmp = t_1; elseif (b <= 1.4e-122) tmp = Float64(x * Float64(y * z)); elseif (b <= 2e+80) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (b <= -3.4e+51) tmp = b * ((t * i) - (z * c)); elseif (b <= -1.6e-7) tmp = a * ((c * j) - (x * t)); elseif (b <= -4.3e-138) tmp = i * ((t * b) - (y * j)); elseif (b <= 4.4e-148) tmp = t_1; elseif (b <= 1.4e-122) tmp = x * (y * z); elseif (b <= 2e+80) tmp = t_1; else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e+51], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.6e-7], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.3e-138], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e-148], t$95$1, If[LessEqual[b, 1.4e-122], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2e+80], t$95$1, N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{+51}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -1.6 \cdot 10^{-7}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq -4.3 \cdot 10^{-138}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{-148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{-122}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 2 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if b < -3.39999999999999984e51Initial program 82.9%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
*-commutative71.4%
Simplified71.4%
if -3.39999999999999984e51 < b < -1.6e-7Initial program 62.4%
Taylor expanded in a around inf 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
Simplified63.2%
if -1.6e-7 < b < -4.3e-138Initial program 82.2%
Taylor expanded in c around 0 82.5%
associate-*r*85.0%
associate-*r*85.0%
*-commutative85.0%
mul-1-neg85.0%
*-commutative85.0%
distribute-rgt-neg-in85.0%
Simplified85.0%
Taylor expanded in t around -inf 88.1%
Taylor expanded in i around inf 53.4%
+-commutative53.4%
mul-1-neg53.4%
unsub-neg53.4%
Simplified53.4%
if -4.3e-138 < b < 4.40000000000000034e-148 or 1.3999999999999999e-122 < b < 2e80Initial program 72.3%
Taylor expanded in j around inf 56.6%
*-commutative56.6%
Simplified56.6%
if 4.40000000000000034e-148 < b < 1.3999999999999999e-122Initial program 85.5%
add-cube-cbrt85.5%
pow385.5%
*-commutative85.5%
Applied egg-rr85.5%
Taylor expanded in z around inf 84.0%
*-commutative84.0%
Simplified84.0%
if 2e80 < b Initial program 82.3%
Taylor expanded in c around 0 73.8%
associate-*r*68.8%
associate-*r*68.8%
*-commutative68.8%
mul-1-neg68.8%
*-commutative68.8%
distribute-rgt-neg-in68.8%
Simplified68.8%
Taylor expanded in t around -inf 73.5%
Taylor expanded in t around inf 57.3%
associate-*r*57.3%
*-commutative57.3%
*-commutative57.3%
associate-*r*57.3%
neg-mul-157.3%
neg-sub057.3%
cancel-sign-sub-inv57.3%
*-commutative57.3%
+-commutative57.3%
associate--r+57.3%
neg-sub057.3%
distribute-rgt-neg-in57.3%
remove-double-neg57.3%
*-commutative57.3%
*-commutative57.3%
Simplified57.3%
Final simplification60.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.7e-17)
t_1
(if (<= j -7e-183)
(* b (- (* t i) (* z c)))
(if (<= j 5.6e-249)
(* t (- (* b i) (* x a)))
(if (<= j 7.5e-71)
(* z (- (* x y) (* b c)))
(if (<= j 1.8e-21)
(* a (- (* c j) (* x t)))
(if (<= j 6.5e+32) (* x (- (* y z) (* t 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.7e-17) {
tmp = t_1;
} else if (j <= -7e-183) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 5.6e-249) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 7.5e-71) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 1.8e-21) {
tmp = a * ((c * j) - (x * t));
} else if (j <= 6.5e+32) {
tmp = x * ((y * z) - (t * 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 = j * ((a * c) - (y * i))
if (j <= (-1.7d-17)) then
tmp = t_1
else if (j <= (-7d-183)) then
tmp = b * ((t * i) - (z * c))
else if (j <= 5.6d-249) then
tmp = t * ((b * i) - (x * a))
else if (j <= 7.5d-71) then
tmp = z * ((x * y) - (b * c))
else if (j <= 1.8d-21) then
tmp = a * ((c * j) - (x * t))
else if (j <= 6.5d+32) then
tmp = x * ((y * z) - (t * 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.7e-17) {
tmp = t_1;
} else if (j <= -7e-183) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 5.6e-249) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 7.5e-71) {
tmp = z * ((x * y) - (b * c));
} else if (j <= 1.8e-21) {
tmp = a * ((c * j) - (x * t));
} else if (j <= 6.5e+32) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.7e-17: tmp = t_1 elif j <= -7e-183: tmp = b * ((t * i) - (z * c)) elif j <= 5.6e-249: tmp = t * ((b * i) - (x * a)) elif j <= 7.5e-71: tmp = z * ((x * y) - (b * c)) elif j <= 1.8e-21: tmp = a * ((c * j) - (x * t)) elif j <= 6.5e+32: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.7e-17) tmp = t_1; elseif (j <= -7e-183) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 5.6e-249) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 7.5e-71) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (j <= 1.8e-21) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (j <= 6.5e+32) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.7e-17) tmp = t_1; elseif (j <= -7e-183) tmp = b * ((t * i) - (z * c)); elseif (j <= 5.6e-249) tmp = t * ((b * i) - (x * a)); elseif (j <= 7.5e-71) tmp = z * ((x * y) - (b * c)); elseif (j <= 1.8e-21) tmp = a * ((c * j) - (x * t)); elseif (j <= 6.5e+32) tmp = x * ((y * z) - (t * 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.7e-17], t$95$1, If[LessEqual[j, -7e-183], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.6e-249], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.5e-71], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.8e-21], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.5e+32], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -7 \cdot 10^{-183}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 5.6 \cdot 10^{-249}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{-71}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 1.8 \cdot 10^{-21}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{+32}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.6999999999999999e-17 or 6.4999999999999994e32 < j Initial program 77.7%
Taylor expanded in j around inf 62.3%
*-commutative62.3%
Simplified62.3%
if -1.6999999999999999e-17 < j < -6.99999999999999983e-183Initial program 87.0%
Taylor expanded in b around inf 67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
if -6.99999999999999983e-183 < j < 5.5999999999999998e-249Initial program 71.8%
Taylor expanded in c around 0 77.5%
associate-*r*80.1%
associate-*r*80.1%
*-commutative80.1%
mul-1-neg80.1%
*-commutative80.1%
distribute-rgt-neg-in80.1%
Simplified80.1%
Taylor expanded in t around -inf 80.2%
Taylor expanded in t around inf 74.5%
associate-*r*74.5%
*-commutative74.5%
*-commutative74.5%
associate-*r*74.5%
neg-mul-174.5%
neg-sub074.5%
cancel-sign-sub-inv74.5%
*-commutative74.5%
+-commutative74.5%
associate--r+74.5%
neg-sub074.5%
distribute-rgt-neg-in74.5%
remove-double-neg74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
if 5.5999999999999998e-249 < j < 7.5000000000000004e-71Initial program 71.5%
Taylor expanded in z around inf 66.6%
if 7.5000000000000004e-71 < j < 1.79999999999999995e-21Initial program 64.4%
Taylor expanded in a around inf 61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
*-commutative61.4%
Simplified61.4%
if 1.79999999999999995e-21 < j < 6.4999999999999994e32Initial program 81.1%
add-cube-cbrt81.1%
pow381.1%
*-commutative81.1%
Applied egg-rr81.1%
Taylor expanded in x around inf 62.2%
*-commutative62.2%
*-commutative62.2%
Simplified62.2%
Final simplification65.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.55e-17)
t_1
(if (<= j -7.4e-183)
(* b (- (* t i) (* z c)))
(if (<= j 8.6e-276)
(* t (- (* b i) (* x a)))
(if (<= j 7e+38) (+ (* a (* c j)) (* x (- (* y z) (* t 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.55e-17) {
tmp = t_1;
} else if (j <= -7.4e-183) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 8.6e-276) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 7e+38) {
tmp = (a * (c * j)) + (x * ((y * z) - (t * 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 = j * ((a * c) - (y * i))
if (j <= (-1.55d-17)) then
tmp = t_1
else if (j <= (-7.4d-183)) then
tmp = b * ((t * i) - (z * c))
else if (j <= 8.6d-276) then
tmp = t * ((b * i) - (x * a))
else if (j <= 7d+38) then
tmp = (a * (c * j)) + (x * ((y * z) - (t * 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.55e-17) {
tmp = t_1;
} else if (j <= -7.4e-183) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 8.6e-276) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 7e+38) {
tmp = (a * (c * j)) + (x * ((y * z) - (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.55e-17: tmp = t_1 elif j <= -7.4e-183: tmp = b * ((t * i) - (z * c)) elif j <= 8.6e-276: tmp = t * ((b * i) - (x * a)) elif j <= 7e+38: tmp = (a * (c * j)) + (x * ((y * z) - (t * a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.55e-17) tmp = t_1; elseif (j <= -7.4e-183) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 8.6e-276) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 7e+38) tmp = Float64(Float64(a * Float64(c * j)) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.55e-17) tmp = t_1; elseif (j <= -7.4e-183) tmp = b * ((t * i) - (z * c)); elseif (j <= 8.6e-276) tmp = t * ((b * i) - (x * a)); elseif (j <= 7e+38) tmp = (a * (c * j)) + (x * ((y * z) - (t * 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.55e-17], t$95$1, If[LessEqual[j, -7.4e-183], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.6e-276], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7e+38], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.55 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -7.4 \cdot 10^{-183}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 8.6 \cdot 10^{-276}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 7 \cdot 10^{+38}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.5499999999999999e-17 or 7.00000000000000003e38 < j Initial program 78.1%
Taylor expanded in j around inf 62.5%
*-commutative62.5%
Simplified62.5%
if -1.5499999999999999e-17 < j < -7.3999999999999997e-183Initial program 87.0%
Taylor expanded in b around inf 67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
if -7.3999999999999997e-183 < j < 8.59999999999999921e-276Initial program 74.2%
Taylor expanded in c around 0 81.6%
associate-*r*84.9%
associate-*r*84.9%
*-commutative84.9%
mul-1-neg84.9%
*-commutative84.9%
distribute-rgt-neg-in84.9%
Simplified84.9%
Taylor expanded in t around -inf 85.0%
Taylor expanded in t around inf 78.0%
associate-*r*78.0%
*-commutative78.0%
*-commutative78.0%
associate-*r*78.0%
neg-mul-178.0%
neg-sub078.0%
cancel-sign-sub-inv78.0%
*-commutative78.0%
+-commutative78.0%
associate--r+78.0%
neg-sub078.0%
distribute-rgt-neg-in78.0%
remove-double-neg78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
if 8.59999999999999921e-276 < j < 7.00000000000000003e38Initial program 71.0%
Taylor expanded in b around 0 57.6%
Taylor expanded in i around 0 58.8%
Final simplification64.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.7e+208)
(+ (* a (- (* c j) (* x t))) (* t (* b i)))
(if (or (<= a -2e-103) (not (<= a 7e-60)))
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(+ (* y (- (* x z) (* i j))) (* b (- (* t i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.7e+208) {
tmp = (a * ((c * j) - (x * t))) + (t * (b * i));
} else if ((a <= -2e-103) || !(a <= 7e-60)) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-3.7d+208)) then
tmp = (a * ((c * j) - (x * t))) + (t * (b * i))
else if ((a <= (-2d-103)) .or. (.not. (a <= 7d-60))) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.7e+208) {
tmp = (a * ((c * j) - (x * t))) + (t * (b * i));
} else if ((a <= -2e-103) || !(a <= 7e-60)) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3.7e+208: tmp = (a * ((c * j) - (x * t))) + (t * (b * i)) elif (a <= -2e-103) or not (a <= 7e-60): tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3.7e+208) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(t * Float64(b * i))); elseif ((a <= -2e-103) || !(a <= 7e-60)) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -3.7e+208) tmp = (a * ((c * j) - (x * t))) + (t * (b * i)); elseif ((a <= -2e-103) || ~((a <= 7e-60))) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.7e+208], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -2e-103], N[Not[LessEqual[a, 7e-60]], $MachinePrecision]], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.7 \cdot 10^{+208}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq -2 \cdot 10^{-103} \lor \neg \left(a \leq 7 \cdot 10^{-60}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -3.69999999999999989e208Initial program 51.4%
Taylor expanded in c around 0 51.4%
associate-*r*51.4%
associate-*r*51.4%
*-commutative51.4%
mul-1-neg51.4%
*-commutative51.4%
distribute-rgt-neg-in51.4%
Simplified51.4%
Taylor expanded in y around 0 78.5%
cancel-sign-sub-inv78.5%
mul-1-neg78.5%
distribute-rgt-neg-in78.5%
distribute-lft-in85.6%
+-commutative85.6%
sub-neg85.6%
metadata-eval85.6%
*-lft-identity85.6%
associate-*r*85.6%
remove-double-neg85.6%
mul-1-neg85.6%
associate-*r*85.6%
neg-mul-185.6%
*-commutative85.6%
distribute-lft-neg-in85.6%
*-commutative85.6%
distribute-rgt-neg-in85.6%
*-commutative85.6%
neg-mul-185.6%
associate-*r*85.6%
mul-1-neg85.6%
remove-double-neg85.6%
Simplified85.6%
if -3.69999999999999989e208 < a < -1.99999999999999992e-103 or 6.99999999999999952e-60 < a Initial program 72.3%
Taylor expanded in b around 0 71.9%
if -1.99999999999999992e-103 < a < 6.99999999999999952e-60Initial program 86.9%
Taylor expanded in a around 0 80.7%
cancel-sign-sub-inv80.7%
*-commutative80.7%
*-commutative80.7%
cancel-sign-sub-inv80.7%
sub-neg80.7%
distribute-rgt-neg-out80.7%
Simplified83.4%
Final simplification77.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.6e+152)
(* a (- (* c j) (* x t)))
(if (<= a -4e-103)
(- (* a (* c j)) (- (* x (- (* t a) (* y z))) (* t (* b i))))
(if (<= a 1.4e-60)
(+ (* y (- (* x z) (* i j))) (* b (- (* t i) (* z c))))
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.6e+152) {
tmp = a * ((c * j) - (x * t));
} else if (a <= -4e-103) {
tmp = (a * (c * j)) - ((x * ((t * a) - (y * z))) - (t * (b * i)));
} else if (a <= 1.4e-60) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-3.6d+152)) then
tmp = a * ((c * j) - (x * t))
else if (a <= (-4d-103)) then
tmp = (a * (c * j)) - ((x * ((t * a) - (y * z))) - (t * (b * i)))
else if (a <= 1.4d-60) then
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)))
else
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -3.6e+152) {
tmp = a * ((c * j) - (x * t));
} else if (a <= -4e-103) {
tmp = (a * (c * j)) - ((x * ((t * a) - (y * z))) - (t * (b * i)));
} else if (a <= 1.4e-60) {
tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3.6e+152: tmp = a * ((c * j) - (x * t)) elif a <= -4e-103: tmp = (a * (c * j)) - ((x * ((t * a) - (y * z))) - (t * (b * i))) elif a <= 1.4e-60: tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -3.6e+152) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (a <= -4e-103) tmp = Float64(Float64(a * Float64(c * j)) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - Float64(t * Float64(b * i)))); elseif (a <= 1.4e-60) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -3.6e+152) tmp = a * ((c * j) - (x * t)); elseif (a <= -4e-103) tmp = (a * (c * j)) - ((x * ((t * a) - (y * z))) - (t * (b * i))); elseif (a <= 1.4e-60) tmp = (y * ((x * z) - (i * j))) + (b * ((t * i) - (z * c))); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.6e+152], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4e-103], N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.4e-60], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.6 \cdot 10^{+152}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;a \leq -4 \cdot 10^{-103}:\\
\;\;\;\;a \cdot \left(c \cdot j\right) - \left(x \cdot \left(t \cdot a - y \cdot z\right) - t \cdot \left(b \cdot i\right)\right)\\
\mathbf{elif}\;a \leq 1.4 \cdot 10^{-60}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if a < -3.5999999999999999e152Initial program 51.1%
Taylor expanded in a around inf 83.0%
+-commutative83.0%
mul-1-neg83.0%
unsub-neg83.0%
*-commutative83.0%
Simplified83.0%
if -3.5999999999999999e152 < a < -3.99999999999999983e-103Initial program 79.8%
Taylor expanded in c around 0 82.7%
associate-*r*80.9%
associate-*r*80.9%
*-commutative80.9%
mul-1-neg80.9%
*-commutative80.9%
distribute-rgt-neg-in80.9%
Simplified80.9%
Taylor expanded in c around inf 77.6%
if -3.99999999999999983e-103 < a < 1.4000000000000001e-60Initial program 86.9%
Taylor expanded in a around 0 80.7%
cancel-sign-sub-inv80.7%
*-commutative80.7%
*-commutative80.7%
cancel-sign-sub-inv80.7%
sub-neg80.7%
distribute-rgt-neg-out80.7%
Simplified83.4%
if 1.4000000000000001e-60 < a Initial program 69.7%
Taylor expanded in b around 0 70.7%
Final simplification78.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* x (* y z))))
(if (<= z -7.5e+59)
t_2
(if (<= z -4.1e-300)
(* b (* t i))
(if (<= z 5e-227)
t_1
(if (<= z 6.8e+52) (* t (* b i)) (if (<= z 1.75e+153) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = x * (y * z);
double tmp;
if (z <= -7.5e+59) {
tmp = t_2;
} else if (z <= -4.1e-300) {
tmp = b * (t * i);
} else if (z <= 5e-227) {
tmp = t_1;
} else if (z <= 6.8e+52) {
tmp = t * (b * i);
} else if (z <= 1.75e+153) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = x * (y * z)
if (z <= (-7.5d+59)) then
tmp = t_2
else if (z <= (-4.1d-300)) then
tmp = b * (t * i)
else if (z <= 5d-227) then
tmp = t_1
else if (z <= 6.8d+52) then
tmp = t * (b * i)
else if (z <= 1.75d+153) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = x * (y * z);
double tmp;
if (z <= -7.5e+59) {
tmp = t_2;
} else if (z <= -4.1e-300) {
tmp = b * (t * i);
} else if (z <= 5e-227) {
tmp = t_1;
} else if (z <= 6.8e+52) {
tmp = t * (b * i);
} else if (z <= 1.75e+153) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = x * (y * z) tmp = 0 if z <= -7.5e+59: tmp = t_2 elif z <= -4.1e-300: tmp = b * (t * i) elif z <= 5e-227: tmp = t_1 elif z <= 6.8e+52: tmp = t * (b * i) elif z <= 1.75e+153: 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(c * j)) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -7.5e+59) tmp = t_2; elseif (z <= -4.1e-300) tmp = Float64(b * Float64(t * i)); elseif (z <= 5e-227) tmp = t_1; elseif (z <= 6.8e+52) tmp = Float64(t * Float64(b * i)); elseif (z <= 1.75e+153) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = x * (y * z); tmp = 0.0; if (z <= -7.5e+59) tmp = t_2; elseif (z <= -4.1e-300) tmp = b * (t * i); elseif (z <= 5e-227) tmp = t_1; elseif (z <= 6.8e+52) tmp = t * (b * i); elseif (z <= 1.75e+153) 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[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.5e+59], t$95$2, If[LessEqual[z, -4.1e-300], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-227], t$95$1, If[LessEqual[z, 6.8e+52], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.75e+153], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -7.5 \cdot 10^{+59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{-300}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-227}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+52}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 1.75 \cdot 10^{+153}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -7.4999999999999996e59 or 1.75e153 < z Initial program 72.3%
add-cube-cbrt72.2%
pow372.2%
*-commutative72.2%
Applied egg-rr72.2%
Taylor expanded in z around inf 57.6%
*-commutative57.6%
Simplified57.6%
if -7.4999999999999996e59 < z < -4.1000000000000001e-300Initial program 75.7%
Taylor expanded in c around 0 66.3%
associate-*r*66.4%
associate-*r*66.4%
*-commutative66.4%
mul-1-neg66.4%
*-commutative66.4%
distribute-rgt-neg-in66.4%
Simplified66.4%
Taylor expanded in b around inf 27.8%
if -4.1000000000000001e-300 < z < 4.99999999999999961e-227 or 6.8e52 < z < 1.75e153Initial program 71.5%
add-cube-cbrt71.4%
pow371.4%
*-commutative71.4%
Applied egg-rr71.4%
Taylor expanded in c around inf 41.5%
if 4.99999999999999961e-227 < z < 6.8e52Initial program 89.8%
Taylor expanded in c around 0 81.7%
associate-*r*78.5%
associate-*r*78.5%
*-commutative78.5%
mul-1-neg78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
Simplified78.5%
Taylor expanded in b around inf 33.9%
associate-*r*34.0%
remove-double-neg34.0%
mul-1-neg34.0%
associate-*r*34.0%
neg-mul-134.0%
*-commutative34.0%
distribute-lft-neg-in34.0%
*-commutative34.0%
distribute-rgt-neg-in34.0%
*-commutative34.0%
neg-mul-134.0%
associate-*r*34.0%
mul-1-neg34.0%
remove-double-neg34.0%
Simplified34.0%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -4.2e+55)
t_1
(if (<= z -1.35e-300)
(* b (* t i))
(if (<= z 2.2e-226)
(* a (* c j))
(if (<= z 3.7e+55)
(* t (* b i))
(if (<= z 1.35e+152) (* c (* a j)) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (z <= -4.2e+55) {
tmp = t_1;
} else if (z <= -1.35e-300) {
tmp = b * (t * i);
} else if (z <= 2.2e-226) {
tmp = a * (c * j);
} else if (z <= 3.7e+55) {
tmp = t * (b * i);
} else if (z <= 1.35e+152) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (z <= (-4.2d+55)) then
tmp = t_1
else if (z <= (-1.35d-300)) then
tmp = b * (t * i)
else if (z <= 2.2d-226) then
tmp = a * (c * j)
else if (z <= 3.7d+55) then
tmp = t * (b * i)
else if (z <= 1.35d+152) then
tmp = c * (a * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (z <= -4.2e+55) {
tmp = t_1;
} else if (z <= -1.35e-300) {
tmp = b * (t * i);
} else if (z <= 2.2e-226) {
tmp = a * (c * j);
} else if (z <= 3.7e+55) {
tmp = t * (b * i);
} else if (z <= 1.35e+152) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -4.2e+55: tmp = t_1 elif z <= -1.35e-300: tmp = b * (t * i) elif z <= 2.2e-226: tmp = a * (c * j) elif z <= 3.7e+55: tmp = t * (b * i) elif z <= 1.35e+152: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -4.2e+55) tmp = t_1; elseif (z <= -1.35e-300) tmp = Float64(b * Float64(t * i)); elseif (z <= 2.2e-226) tmp = Float64(a * Float64(c * j)); elseif (z <= 3.7e+55) tmp = Float64(t * Float64(b * i)); elseif (z <= 1.35e+152) tmp = Float64(c * Float64(a * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (z <= -4.2e+55) tmp = t_1; elseif (z <= -1.35e-300) tmp = b * (t * i); elseif (z <= 2.2e-226) tmp = a * (c * j); elseif (z <= 3.7e+55) tmp = t * (b * i); elseif (z <= 1.35e+152) tmp = c * (a * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+55], t$95$1, If[LessEqual[z, -1.35e-300], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e-226], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.7e+55], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.35e+152], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-300}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-226}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 3.7 \cdot 10^{+55}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 1.35 \cdot 10^{+152}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.2000000000000001e55 or 1.35000000000000007e152 < z Initial program 72.3%
add-cube-cbrt72.2%
pow372.2%
*-commutative72.2%
Applied egg-rr72.2%
Taylor expanded in z around inf 57.6%
*-commutative57.6%
Simplified57.6%
if -4.2000000000000001e55 < z < -1.34999999999999998e-300Initial program 75.7%
Taylor expanded in c around 0 66.3%
associate-*r*66.4%
associate-*r*66.4%
*-commutative66.4%
mul-1-neg66.4%
*-commutative66.4%
distribute-rgt-neg-in66.4%
Simplified66.4%
Taylor expanded in b around inf 27.8%
if -1.34999999999999998e-300 < z < 2.2e-226Initial program 88.0%
add-cube-cbrt88.0%
pow388.0%
*-commutative88.0%
Applied egg-rr88.0%
Taylor expanded in c around inf 34.2%
if 2.2e-226 < z < 3.7000000000000002e55Initial program 89.8%
Taylor expanded in c around 0 81.7%
associate-*r*78.5%
associate-*r*78.5%
*-commutative78.5%
mul-1-neg78.5%
*-commutative78.5%
distribute-rgt-neg-in78.5%
Simplified78.5%
Taylor expanded in b around inf 33.9%
associate-*r*34.0%
remove-double-neg34.0%
mul-1-neg34.0%
associate-*r*34.0%
neg-mul-134.0%
*-commutative34.0%
distribute-lft-neg-in34.0%
*-commutative34.0%
distribute-rgt-neg-in34.0%
*-commutative34.0%
neg-mul-134.0%
associate-*r*34.0%
mul-1-neg34.0%
remove-double-neg34.0%
Simplified34.0%
if 3.7000000000000002e55 < z < 1.35000000000000007e152Initial program 53.5%
Taylor expanded in c around 0 70.3%
associate-*r*73.9%
associate-*r*73.9%
*-commutative73.9%
mul-1-neg73.9%
*-commutative73.9%
distribute-rgt-neg-in73.9%
Simplified73.9%
Taylor expanded in t around -inf 81.9%
Taylor expanded in c around inf 49.5%
*-commutative49.5%
associate-*r*53.6%
Simplified53.6%
Final simplification40.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -2.2e+51) (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))) (- (* j (- (* a c) (* y i))) (- (* x (- (* t a) (* y z))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.2e+51) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (t * (b * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2.2d+51)) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else
tmp = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (t * (b * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.2e+51) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (t * (b * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.2e+51: tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) else: tmp = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (t * (b * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.2e+51) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - Float64(t * Float64(b * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.2e+51) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); else tmp = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (t * (b * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.2e+51], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.2 \cdot 10^{+51}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - \left(x \cdot \left(t \cdot a - y \cdot z\right) - t \cdot \left(b \cdot i\right)\right)\\
\end{array}
\end{array}
if b < -2.19999999999999992e51Initial program 82.9%
Taylor expanded in j around 0 83.1%
if -2.19999999999999992e51 < b Initial program 75.6%
Taylor expanded in c around 0 74.5%
associate-*r*75.4%
associate-*r*75.4%
*-commutative75.4%
mul-1-neg75.4%
*-commutative75.4%
distribute-rgt-neg-in75.4%
Simplified75.4%
Final simplification77.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -3.8e+59) (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))) (- (+ (* x (* y z)) (* j (- (* a c) (* y i)))) (* t (- (* x 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 (b <= -3.8e+59) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = ((x * (y * z)) + (j * ((a * c) - (y * i)))) - (t * ((x * 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 (b <= (-3.8d+59)) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else
tmp = ((x * (y * z)) + (j * ((a * c) - (y * i)))) - (t * ((x * 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 (b <= -3.8e+59) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = ((x * (y * z)) + (j * ((a * c) - (y * i)))) - (t * ((x * a) - (b * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.8e+59: tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) else: tmp = ((x * (y * z)) + (j * ((a * c) - (y * i)))) - (t * ((x * a) - (b * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.8e+59) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(Float64(x * Float64(y * z)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) - Float64(t * Float64(Float64(x * 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 (b <= -3.8e+59) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); else tmp = ((x * (y * z)) + (j * ((a * c) - (y * i)))) - (t * ((x * a) - (b * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.8e+59], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(x * a), $MachinePrecision] - N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{+59}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z\right) + j \cdot \left(a \cdot c - y \cdot i\right)\right) - t \cdot \left(x \cdot a - b \cdot i\right)\\
\end{array}
\end{array}
if b < -3.8000000000000001e59Initial program 82.9%
Taylor expanded in j around 0 83.1%
if -3.8000000000000001e59 < b Initial program 75.6%
Taylor expanded in c around 0 74.5%
associate-*r*75.4%
associate-*r*75.4%
*-commutative75.4%
mul-1-neg75.4%
*-commutative75.4%
distribute-rgt-neg-in75.4%
Simplified75.4%
Taylor expanded in t around -inf 77.3%
Final simplification78.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.15e-17)
t_1
(if (<= j -3.85e-184)
(* b (- (* t i) (* z c)))
(if (<= j 2.9e-252)
(* t (- (* b i) (* x a)))
(if (<= j 4.8e+32) (* x (- (* y z) (* t 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.15e-17) {
tmp = t_1;
} else if (j <= -3.85e-184) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 2.9e-252) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 4.8e+32) {
tmp = x * ((y * z) - (t * 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 = j * ((a * c) - (y * i))
if (j <= (-1.15d-17)) then
tmp = t_1
else if (j <= (-3.85d-184)) then
tmp = b * ((t * i) - (z * c))
else if (j <= 2.9d-252) then
tmp = t * ((b * i) - (x * a))
else if (j <= 4.8d+32) then
tmp = x * ((y * z) - (t * 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.15e-17) {
tmp = t_1;
} else if (j <= -3.85e-184) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 2.9e-252) {
tmp = t * ((b * i) - (x * a));
} else if (j <= 4.8e+32) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.15e-17: tmp = t_1 elif j <= -3.85e-184: tmp = b * ((t * i) - (z * c)) elif j <= 2.9e-252: tmp = t * ((b * i) - (x * a)) elif j <= 4.8e+32: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.15e-17) tmp = t_1; elseif (j <= -3.85e-184) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 2.9e-252) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (j <= 4.8e+32) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.15e-17) tmp = t_1; elseif (j <= -3.85e-184) tmp = b * ((t * i) - (z * c)); elseif (j <= 2.9e-252) tmp = t * ((b * i) - (x * a)); elseif (j <= 4.8e+32) tmp = x * ((y * z) - (t * 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.15e-17], t$95$1, If[LessEqual[j, -3.85e-184], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.9e-252], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.8e+32], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.15 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -3.85 \cdot 10^{-184}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{-252}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;j \leq 4.8 \cdot 10^{+32}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.15000000000000004e-17 or 4.79999999999999983e32 < j Initial program 77.7%
Taylor expanded in j around inf 62.3%
*-commutative62.3%
Simplified62.3%
if -1.15000000000000004e-17 < j < -3.85000000000000005e-184Initial program 87.0%
Taylor expanded in b around inf 67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
if -3.85000000000000005e-184 < j < 2.9000000000000001e-252Initial program 71.8%
Taylor expanded in c around 0 77.5%
associate-*r*80.1%
associate-*r*80.1%
*-commutative80.1%
mul-1-neg80.1%
*-commutative80.1%
distribute-rgt-neg-in80.1%
Simplified80.1%
Taylor expanded in t around -inf 80.2%
Taylor expanded in t around inf 74.5%
associate-*r*74.5%
*-commutative74.5%
*-commutative74.5%
associate-*r*74.5%
neg-mul-174.5%
neg-sub074.5%
cancel-sign-sub-inv74.5%
*-commutative74.5%
+-commutative74.5%
associate--r+74.5%
neg-sub074.5%
distribute-rgt-neg-in74.5%
remove-double-neg74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
if 2.9000000000000001e-252 < j < 4.79999999999999983e32Initial program 72.7%
add-cube-cbrt72.5%
pow372.5%
*-commutative72.5%
Applied egg-rr72.5%
Taylor expanded in x around inf 53.0%
*-commutative53.0%
*-commutative53.0%
Simplified53.0%
Final simplification62.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.1e+54) (not (<= b 8.8e+172))) (+ (* x (* y z)) (* b (- (* t i) (* z c)))) (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.1e+54) || !(b <= 8.8e+172)) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.1d+54)) .or. (.not. (b <= 8.8d+172))) then
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)))
else
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.1e+54) || !(b <= 8.8e+172)) {
tmp = (x * (y * z)) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.1e+54) or not (b <= 8.8e+172): tmp = (x * (y * z)) + (b * ((t * i) - (z * c))) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.1e+54) || !(b <= 8.8e+172)) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.1e+54) || ~((b <= 8.8e+172))) tmp = (x * (y * z)) + (b * ((t * i) - (z * c))); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.1e+54], N[Not[LessEqual[b, 8.8e+172]], $MachinePrecision]], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.1 \cdot 10^{+54} \lor \neg \left(b \leq 8.8 \cdot 10^{+172}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -2.09999999999999986e54 or 8.8000000000000005e172 < b Initial program 83.5%
Taylor expanded in j around 0 83.6%
Taylor expanded in a around 0 79.7%
if -2.09999999999999986e54 < b < 8.8000000000000005e172Initial program 74.8%
Taylor expanded in b around 0 69.9%
Final simplification72.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* i (- y)))))
(if (<= j -1.26e-17)
t_1
(if (<= j 3.8e-249)
(* t (* b i))
(if (<= j 1050000000.0)
(* y (* x z))
(if (<= j 1.5e+156) t_1 (* a (* c 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 * (i * -y);
double tmp;
if (j <= -1.26e-17) {
tmp = t_1;
} else if (j <= 3.8e-249) {
tmp = t * (b * i);
} else if (j <= 1050000000.0) {
tmp = y * (x * z);
} else if (j <= 1.5e+156) {
tmp = t_1;
} else {
tmp = a * (c * 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) :: tmp
t_1 = j * (i * -y)
if (j <= (-1.26d-17)) then
tmp = t_1
else if (j <= 3.8d-249) then
tmp = t * (b * i)
else if (j <= 1050000000.0d0) then
tmp = y * (x * z)
else if (j <= 1.5d+156) then
tmp = t_1
else
tmp = a * (c * 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 * (i * -y);
double tmp;
if (j <= -1.26e-17) {
tmp = t_1;
} else if (j <= 3.8e-249) {
tmp = t * (b * i);
} else if (j <= 1050000000.0) {
tmp = y * (x * z);
} else if (j <= 1.5e+156) {
tmp = t_1;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (i * -y) tmp = 0 if j <= -1.26e-17: tmp = t_1 elif j <= 3.8e-249: tmp = t * (b * i) elif j <= 1050000000.0: tmp = y * (x * z) elif j <= 1.5e+156: tmp = t_1 else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(i * Float64(-y))) tmp = 0.0 if (j <= -1.26e-17) tmp = t_1; elseif (j <= 3.8e-249) tmp = Float64(t * Float64(b * i)); elseif (j <= 1050000000.0) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.5e+156) tmp = t_1; else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * (i * -y); tmp = 0.0; if (j <= -1.26e-17) tmp = t_1; elseif (j <= 3.8e-249) tmp = t * (b * i); elseif (j <= 1050000000.0) tmp = y * (x * z); elseif (j <= 1.5e+156) tmp = t_1; else tmp = a * (c * j); 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]}, If[LessEqual[j, -1.26e-17], t$95$1, If[LessEqual[j, 3.8e-249], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1050000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.5e+156], t$95$1, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(i \cdot \left(-y\right)\right)\\
\mathbf{if}\;j \leq -1.26 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{-249}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 1050000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.5 \cdot 10^{+156}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.2600000000000001e-17 or 1.05e9 < j < 1.5e156Initial program 77.9%
Taylor expanded in y around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in x around 0 37.8%
neg-mul-137.8%
distribute-lft-neg-in37.8%
*-commutative37.8%
Simplified37.8%
Taylor expanded in y around 0 38.6%
associate-*r*38.6%
neg-mul-138.6%
*-commutative38.6%
associate-*l*36.1%
Simplified36.1%
if -1.2600000000000001e-17 < j < 3.8000000000000001e-249Initial program 79.8%
Taylor expanded in c around 0 73.6%
associate-*r*73.5%
associate-*r*73.5%
*-commutative73.5%
mul-1-neg73.5%
*-commutative73.5%
distribute-rgt-neg-in73.5%
Simplified73.5%
Taylor expanded in b around inf 44.2%
associate-*r*45.4%
remove-double-neg45.4%
mul-1-neg45.4%
associate-*r*45.4%
neg-mul-145.4%
*-commutative45.4%
distribute-lft-neg-in45.4%
*-commutative45.4%
distribute-rgt-neg-in45.4%
*-commutative45.4%
neg-mul-145.4%
associate-*r*45.4%
mul-1-neg45.4%
remove-double-neg45.4%
Simplified45.4%
if 3.8000000000000001e-249 < j < 1.05e9Initial program 72.0%
Taylor expanded in y around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
Simplified42.1%
Taylor expanded in x around inf 39.3%
*-commutative39.3%
Simplified39.3%
if 1.5e156 < j Initial program 75.8%
add-cube-cbrt75.8%
pow375.8%
*-commutative75.8%
Applied egg-rr75.8%
Taylor expanded in c around inf 53.4%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= j -1.25e-17)
t_1
(if (<= j 3.5e-245)
(* t (* b i))
(if (<= j 2500000000.0)
(* y (* x z))
(if (<= j 5e+155) t_1 (* a (* c j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double tmp;
if (j <= -1.25e-17) {
tmp = t_1;
} else if (j <= 3.5e-245) {
tmp = t * (b * i);
} else if (j <= 2500000000.0) {
tmp = y * (x * z);
} else if (j <= 5e+155) {
tmp = t_1;
} else {
tmp = a * (c * 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) :: tmp
t_1 = y * (i * -j)
if (j <= (-1.25d-17)) then
tmp = t_1
else if (j <= 3.5d-245) then
tmp = t * (b * i)
else if (j <= 2500000000.0d0) then
tmp = y * (x * z)
else if (j <= 5d+155) then
tmp = t_1
else
tmp = a * (c * 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 = y * (i * -j);
double tmp;
if (j <= -1.25e-17) {
tmp = t_1;
} else if (j <= 3.5e-245) {
tmp = t * (b * i);
} else if (j <= 2500000000.0) {
tmp = y * (x * z);
} else if (j <= 5e+155) {
tmp = t_1;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) tmp = 0 if j <= -1.25e-17: tmp = t_1 elif j <= 3.5e-245: tmp = t * (b * i) elif j <= 2500000000.0: tmp = y * (x * z) elif j <= 5e+155: tmp = t_1 else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (j <= -1.25e-17) tmp = t_1; elseif (j <= 3.5e-245) tmp = Float64(t * Float64(b * i)); elseif (j <= 2500000000.0) tmp = Float64(y * Float64(x * z)); elseif (j <= 5e+155) tmp = t_1; else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (i * -j); tmp = 0.0; if (j <= -1.25e-17) tmp = t_1; elseif (j <= 3.5e-245) tmp = t * (b * i); elseif (j <= 2500000000.0) tmp = y * (x * z); elseif (j <= 5e+155) tmp = t_1; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.25e-17], t$95$1, If[LessEqual[j, 3.5e-245], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2500000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e+155], t$95$1, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1.25 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.5 \cdot 10^{-245}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 2500000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.25e-17 or 2.5e9 < j < 4.9999999999999999e155Initial program 77.9%
Taylor expanded in y around inf 46.3%
+-commutative46.3%
mul-1-neg46.3%
unsub-neg46.3%
Simplified46.3%
Taylor expanded in x around 0 37.8%
neg-mul-137.8%
distribute-lft-neg-in37.8%
*-commutative37.8%
Simplified37.8%
if -1.25e-17 < j < 3.50000000000000016e-245Initial program 79.8%
Taylor expanded in c around 0 73.6%
associate-*r*73.5%
associate-*r*73.5%
*-commutative73.5%
mul-1-neg73.5%
*-commutative73.5%
distribute-rgt-neg-in73.5%
Simplified73.5%
Taylor expanded in b around inf 44.2%
associate-*r*45.4%
remove-double-neg45.4%
mul-1-neg45.4%
associate-*r*45.4%
neg-mul-145.4%
*-commutative45.4%
distribute-lft-neg-in45.4%
*-commutative45.4%
distribute-rgt-neg-in45.4%
*-commutative45.4%
neg-mul-145.4%
associate-*r*45.4%
mul-1-neg45.4%
remove-double-neg45.4%
Simplified45.4%
if 3.50000000000000016e-245 < j < 2.5e9Initial program 72.0%
Taylor expanded in y around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
Simplified42.1%
Taylor expanded in x around inf 39.3%
*-commutative39.3%
Simplified39.3%
if 4.9999999999999999e155 < j Initial program 75.8%
add-cube-cbrt75.8%
pow375.8%
*-commutative75.8%
Applied egg-rr75.8%
Taylor expanded in c around inf 53.4%
Final simplification42.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -8.5e-18)
(* y (* i (- j)))
(if (<= j 6e-249)
(* t (* b i))
(if (<= j 2300000000.0)
(* y (* x z))
(if (<= j 1.62e+156) (* (- i) (* y j)) (* a (* c j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -8.5e-18) {
tmp = y * (i * -j);
} else if (j <= 6e-249) {
tmp = t * (b * i);
} else if (j <= 2300000000.0) {
tmp = y * (x * z);
} else if (j <= 1.62e+156) {
tmp = -i * (y * j);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-8.5d-18)) then
tmp = y * (i * -j)
else if (j <= 6d-249) then
tmp = t * (b * i)
else if (j <= 2300000000.0d0) then
tmp = y * (x * z)
else if (j <= 1.62d+156) then
tmp = -i * (y * j)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -8.5e-18) {
tmp = y * (i * -j);
} else if (j <= 6e-249) {
tmp = t * (b * i);
} else if (j <= 2300000000.0) {
tmp = y * (x * z);
} else if (j <= 1.62e+156) {
tmp = -i * (y * j);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -8.5e-18: tmp = y * (i * -j) elif j <= 6e-249: tmp = t * (b * i) elif j <= 2300000000.0: tmp = y * (x * z) elif j <= 1.62e+156: tmp = -i * (y * j) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -8.5e-18) tmp = Float64(y * Float64(i * Float64(-j))); elseif (j <= 6e-249) tmp = Float64(t * Float64(b * i)); elseif (j <= 2300000000.0) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.62e+156) tmp = Float64(Float64(-i) * Float64(y * j)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -8.5e-18) tmp = y * (i * -j); elseif (j <= 6e-249) tmp = t * (b * i); elseif (j <= 2300000000.0) tmp = y * (x * z); elseif (j <= 1.62e+156) tmp = -i * (y * j); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -8.5e-18], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6e-249], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2300000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.62e+156], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -8.5 \cdot 10^{-18}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;j \leq 6 \cdot 10^{-249}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 2300000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.62 \cdot 10^{+156}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -8.4999999999999995e-18Initial program 78.9%
Taylor expanded in y around inf 50.0%
+-commutative50.0%
mul-1-neg50.0%
unsub-neg50.0%
Simplified50.0%
Taylor expanded in x around 0 38.3%
neg-mul-138.3%
distribute-lft-neg-in38.3%
*-commutative38.3%
Simplified38.3%
if -8.4999999999999995e-18 < j < 6.00000000000000008e-249Initial program 79.8%
Taylor expanded in c around 0 73.6%
associate-*r*73.5%
associate-*r*73.5%
*-commutative73.5%
mul-1-neg73.5%
*-commutative73.5%
distribute-rgt-neg-in73.5%
Simplified73.5%
Taylor expanded in b around inf 44.2%
associate-*r*45.4%
remove-double-neg45.4%
mul-1-neg45.4%
associate-*r*45.4%
neg-mul-145.4%
*-commutative45.4%
distribute-lft-neg-in45.4%
*-commutative45.4%
distribute-rgt-neg-in45.4%
*-commutative45.4%
neg-mul-145.4%
associate-*r*45.4%
mul-1-neg45.4%
remove-double-neg45.4%
Simplified45.4%
if 6.00000000000000008e-249 < j < 2.3e9Initial program 72.0%
Taylor expanded in y around inf 42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
Simplified42.1%
Taylor expanded in x around inf 39.3%
*-commutative39.3%
Simplified39.3%
if 2.3e9 < j < 1.62000000000000006e156Initial program 75.7%
add-cube-cbrt75.5%
pow375.5%
*-commutative75.5%
Applied egg-rr75.5%
Taylor expanded in i around inf 39.2%
mul-1-neg39.2%
*-commutative39.2%
distribute-rgt-neg-in39.2%
Simplified39.2%
if 1.62000000000000006e156 < j Initial program 75.8%
add-cube-cbrt75.8%
pow375.8%
*-commutative75.8%
Applied egg-rr75.8%
Taylor expanded in c around inf 53.4%
Final simplification42.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -1.7e-17)
t_1
(if (<= j 6.2e-210)
(* b (- (* t i) (* z c)))
(if (<= j 7.5e+34) (* a (- (* c j) (* 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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.7e-17) {
tmp = t_1;
} else if (j <= 6.2e-210) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 7.5e+34) {
tmp = a * ((c * j) - (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 = j * ((a * c) - (y * i))
if (j <= (-1.7d-17)) then
tmp = t_1
else if (j <= 6.2d-210) then
tmp = b * ((t * i) - (z * c))
else if (j <= 7.5d+34) then
tmp = a * ((c * j) - (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 = j * ((a * c) - (y * i));
double tmp;
if (j <= -1.7e-17) {
tmp = t_1;
} else if (j <= 6.2e-210) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 7.5e+34) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -1.7e-17: tmp = t_1 elif j <= 6.2e-210: tmp = b * ((t * i) - (z * c)) elif j <= 7.5e+34: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.7e-17) tmp = t_1; elseif (j <= 6.2e-210) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 7.5e+34) tmp = Float64(a * Float64(Float64(c * j) - 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 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -1.7e-17) tmp = t_1; elseif (j <= 6.2e-210) tmp = b * ((t * i) - (z * c)); elseif (j <= 7.5e+34) tmp = a * ((c * j) - (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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.7e-17], t$95$1, If[LessEqual[j, 6.2e-210], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.5e+34], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 6.2 \cdot 10^{-210}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{+34}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.6999999999999999e-17 or 7.49999999999999976e34 < j Initial program 78.1%
Taylor expanded in j around inf 62.5%
*-commutative62.5%
Simplified62.5%
if -1.6999999999999999e-17 < j < 6.19999999999999973e-210Initial program 79.2%
Taylor expanded in b around inf 60.4%
*-commutative60.4%
*-commutative60.4%
Simplified60.4%
if 6.19999999999999973e-210 < j < 7.49999999999999976e34Initial program 72.0%
Taylor expanded in a around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
*-commutative43.6%
Simplified43.6%
Final simplification58.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.4e+105)
(* j (* i (- y)))
(if (<= i 5.2e+81)
(* a (- (* c j) (* x t)))
(if (<= i 5.2e+216) (* b (* t i)) (* (- i) (* y j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.4e+105) {
tmp = j * (i * -y);
} else if (i <= 5.2e+81) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 5.2e+216) {
tmp = b * (t * i);
} else {
tmp = -i * (y * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.4d+105)) then
tmp = j * (i * -y)
else if (i <= 5.2d+81) then
tmp = a * ((c * j) - (x * t))
else if (i <= 5.2d+216) then
tmp = b * (t * i)
else
tmp = -i * (y * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.4e+105) {
tmp = j * (i * -y);
} else if (i <= 5.2e+81) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 5.2e+216) {
tmp = b * (t * i);
} else {
tmp = -i * (y * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.4e+105: tmp = j * (i * -y) elif i <= 5.2e+81: tmp = a * ((c * j) - (x * t)) elif i <= 5.2e+216: tmp = b * (t * i) else: tmp = -i * (y * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.4e+105) tmp = Float64(j * Float64(i * Float64(-y))); elseif (i <= 5.2e+81) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 5.2e+216) tmp = Float64(b * Float64(t * i)); else tmp = Float64(Float64(-i) * Float64(y * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.4e+105) tmp = j * (i * -y); elseif (i <= 5.2e+81) tmp = a * ((c * j) - (x * t)); elseif (i <= 5.2e+216) tmp = b * (t * i); else tmp = -i * (y * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.4e+105], N[(j * N[(i * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e+81], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e+216], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[((-i) * N[(y * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.4 \cdot 10^{+105}:\\
\;\;\;\;j \cdot \left(i \cdot \left(-y\right)\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+81}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{+216}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot j\right)\\
\end{array}
\end{array}
if i < -1.4000000000000001e105Initial program 68.2%
Taylor expanded in y around inf 61.2%
+-commutative61.2%
mul-1-neg61.2%
unsub-neg61.2%
Simplified61.2%
Taylor expanded in x around 0 50.7%
neg-mul-150.7%
distribute-lft-neg-in50.7%
*-commutative50.7%
Simplified50.7%
Taylor expanded in y around 0 46.6%
associate-*r*46.6%
neg-mul-146.6%
*-commutative46.6%
associate-*l*53.2%
Simplified53.2%
if -1.4000000000000001e105 < i < 5.19999999999999984e81Initial program 80.7%
Taylor expanded in a around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
*-commutative46.1%
Simplified46.1%
if 5.19999999999999984e81 < i < 5.1999999999999997e216Initial program 79.8%
Taylor expanded in c around 0 84.8%
associate-*r*80.0%
associate-*r*80.0%
*-commutative80.0%
mul-1-neg80.0%
*-commutative80.0%
distribute-rgt-neg-in80.0%
Simplified80.0%
Taylor expanded in b around inf 63.4%
if 5.1999999999999997e216 < i Initial program 64.3%
add-cube-cbrt64.2%
pow364.2%
*-commutative64.2%
Applied egg-rr64.2%
Taylor expanded in i around inf 63.8%
mul-1-neg63.8%
*-commutative63.8%
distribute-rgt-neg-in63.8%
Simplified63.8%
Final simplification50.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))))
(if (<= x -2.6e+151)
t_1
(if (<= x -3.9e+33)
(* a (* c j))
(if (<= x 1.1e-106) (* b (* t i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -2.6e+151) {
tmp = t_1;
} else if (x <= -3.9e+33) {
tmp = a * (c * j);
} else if (x <= 1.1e-106) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (x * y)
if (x <= (-2.6d+151)) then
tmp = t_1
else if (x <= (-3.9d+33)) then
tmp = a * (c * j)
else if (x <= 1.1d-106) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double tmp;
if (x <= -2.6e+151) {
tmp = t_1;
} else if (x <= -3.9e+33) {
tmp = a * (c * j);
} else if (x <= 1.1e-106) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) tmp = 0 if x <= -2.6e+151: tmp = t_1 elif x <= -3.9e+33: tmp = a * (c * j) elif x <= 1.1e-106: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -2.6e+151) tmp = t_1; elseif (x <= -3.9e+33) tmp = Float64(a * Float64(c * j)); elseif (x <= 1.1e-106) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); tmp = 0.0; if (x <= -2.6e+151) tmp = t_1; elseif (x <= -3.9e+33) tmp = a * (c * j); elseif (x <= 1.1e-106) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.6e+151], t$95$1, If[LessEqual[x, -3.9e+33], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.1e-106], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -2.6 \cdot 10^{+151}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -3.9 \cdot 10^{+33}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-106}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.60000000000000013e151 or 1.09999999999999997e-106 < x Initial program 73.5%
Taylor expanded in c around 0 74.1%
associate-*r*73.3%
associate-*r*73.3%
*-commutative73.3%
mul-1-neg73.3%
*-commutative73.3%
distribute-rgt-neg-in73.3%
Simplified73.3%
Taylor expanded in t around -inf 73.3%
Taylor expanded in z around inf 36.6%
associate-*r*40.5%
Simplified40.5%
if -2.60000000000000013e151 < x < -3.9000000000000002e33Initial program 77.2%
add-cube-cbrt77.1%
pow377.1%
*-commutative77.1%
Applied egg-rr77.1%
Taylor expanded in c around inf 34.0%
if -3.9000000000000002e33 < x < 1.09999999999999997e-106Initial program 81.4%
Taylor expanded in c around 0 72.7%
associate-*r*70.0%
associate-*r*70.0%
*-commutative70.0%
mul-1-neg70.0%
*-commutative70.0%
distribute-rgt-neg-in70.0%
Simplified70.0%
Taylor expanded in b around inf 34.6%
Final simplification37.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -5.2e-103) (not (<= a 1.6e-36))) (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -5.2e-103) || !(a <= 1.6e-36)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-5.2d-103)) .or. (.not. (a <= 1.6d-36))) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -5.2e-103) || !(a <= 1.6e-36)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -5.2e-103) or not (a <= 1.6e-36): tmp = a * ((c * j) - (x * t)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -5.2e-103) || !(a <= 1.6e-36)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -5.2e-103) || ~((a <= 1.6e-36))) tmp = a * ((c * j) - (x * t)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -5.2e-103], N[Not[LessEqual[a, 1.6e-36]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.2 \cdot 10^{-103} \lor \neg \left(a \leq 1.6 \cdot 10^{-36}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -5.19999999999999993e-103 or 1.60000000000000011e-36 < a Initial program 70.2%
Taylor expanded in a around inf 55.2%
+-commutative55.2%
mul-1-neg55.2%
unsub-neg55.2%
*-commutative55.2%
Simplified55.2%
if -5.19999999999999993e-103 < a < 1.60000000000000011e-36Initial program 86.4%
Taylor expanded in b around inf 50.3%
*-commutative50.3%
*-commutative50.3%
Simplified50.3%
Final simplification53.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.6e+25) (not (<= a 9.2e+70))) (* a (- (* c j) (* x t))) (* i (- (* t b) (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.6e+25) || !(a <= 9.2e+70)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-1.6d+25)) .or. (.not. (a <= 9.2d+70))) then
tmp = a * ((c * j) - (x * t))
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -1.6e+25) || !(a <= 9.2e+70)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -1.6e+25) or not (a <= 9.2e+70): tmp = a * ((c * j) - (x * t)) else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -1.6e+25) || !(a <= 9.2e+70)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -1.6e+25) || ~((a <= 9.2e+70))) tmp = a * ((c * j) - (x * t)); else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -1.6e+25], N[Not[LessEqual[a, 9.2e+70]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.6 \cdot 10^{+25} \lor \neg \left(a \leq 9.2 \cdot 10^{+70}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if a < -1.6e25 or 9.19999999999999975e70 < a Initial program 61.9%
Taylor expanded in a around inf 61.6%
+-commutative61.6%
mul-1-neg61.6%
unsub-neg61.6%
*-commutative61.6%
Simplified61.6%
if -1.6e25 < a < 9.19999999999999975e70Initial program 87.1%
Taylor expanded in c around 0 78.5%
associate-*r*76.6%
associate-*r*76.6%
*-commutative76.6%
mul-1-neg76.6%
*-commutative76.6%
distribute-rgt-neg-in76.6%
Simplified76.6%
Taylor expanded in t around -inf 78.0%
Taylor expanded in i around inf 51.1%
+-commutative51.1%
mul-1-neg51.1%
unsub-neg51.1%
Simplified51.1%
Final simplification55.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.4e-142) (not (<= b 5.4e+114))) (* b (* t i)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.4e-142) || !(b <= 5.4e+114)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.4d-142)) .or. (.not. (b <= 5.4d+114))) then
tmp = b * (t * i)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.4e-142) || !(b <= 5.4e+114)) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.4e-142) or not (b <= 5.4e+114): tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.4e-142) || !(b <= 5.4e+114)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.4e-142) || ~((b <= 5.4e+114))) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.4e-142], N[Not[LessEqual[b, 5.4e+114]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.4 \cdot 10^{-142} \lor \neg \left(b \leq 5.4 \cdot 10^{+114}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -2.39999999999999988e-142 or 5.4000000000000001e114 < b Initial program 80.8%
Taylor expanded in c around 0 74.6%
associate-*r*70.4%
associate-*r*70.4%
*-commutative70.4%
mul-1-neg70.4%
*-commutative70.4%
distribute-rgt-neg-in70.4%
Simplified70.4%
Taylor expanded in b around inf 36.7%
if -2.39999999999999988e-142 < b < 5.4000000000000001e114Initial program 73.1%
add-cube-cbrt72.9%
pow372.9%
*-commutative72.9%
Applied egg-rr72.9%
Taylor expanded in c around inf 29.7%
Final simplification33.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -3.2e-142) (* b (* t i)) (if (<= b 7e+114) (* a (* c j)) (* t (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.2e-142) {
tmp = b * (t * i);
} else if (b <= 7e+114) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-3.2d-142)) then
tmp = b * (t * i)
else if (b <= 7d+114) then
tmp = a * (c * j)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3.2e-142) {
tmp = b * (t * i);
} else if (b <= 7e+114) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.2e-142: tmp = b * (t * i) elif b <= 7e+114: tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.2e-142) tmp = Float64(b * Float64(t * i)); elseif (b <= 7e+114) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.2e-142) tmp = b * (t * i); elseif (b <= 7e+114) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.2e-142], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7e+114], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.2 \cdot 10^{-142}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq 7 \cdot 10^{+114}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -3.1999999999999998e-142Initial program 79.6%
Taylor expanded in c around 0 74.4%
associate-*r*70.7%
associate-*r*70.7%
*-commutative70.7%
mul-1-neg70.7%
*-commutative70.7%
distribute-rgt-neg-in70.7%
Simplified70.7%
Taylor expanded in b around inf 35.9%
if -3.1999999999999998e-142 < b < 7.0000000000000001e114Initial program 73.1%
add-cube-cbrt72.9%
pow372.9%
*-commutative72.9%
Applied egg-rr72.9%
Taylor expanded in c around inf 29.7%
if 7.0000000000000001e114 < b Initial program 84.5%
Taylor expanded in c around 0 75.5%
associate-*r*69.4%
associate-*r*69.4%
*-commutative69.4%
mul-1-neg69.4%
*-commutative69.4%
distribute-rgt-neg-in69.4%
Simplified69.4%
Taylor expanded in b around inf 39.4%
associate-*r*48.1%
remove-double-neg48.1%
mul-1-neg48.1%
associate-*r*48.1%
neg-mul-148.1%
*-commutative48.1%
distribute-lft-neg-in48.1%
*-commutative48.1%
distribute-rgt-neg-in48.1%
*-commutative48.1%
neg-mul-148.1%
associate-*r*48.1%
mul-1-neg48.1%
remove-double-neg48.1%
Simplified48.1%
Final simplification34.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 77.3%
add-cube-cbrt77.0%
pow377.1%
*-commutative77.1%
Applied egg-rr77.1%
Taylor expanded in c around inf 20.4%
Final simplification20.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024031
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))