
(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 20 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 (- (* z c) (* t i)))))
(t_2 (- (* a c) (* y i))))
(if (<= (+ t_1 (* j t_2)) INFINITY)
(fma j t_2 t_1)
(* 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 t_1 = (x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)));
double t_2 = (a * c) - (y * i);
double tmp;
if ((t_1 + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, t_1);
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) t_2 = Float64(Float64(a * c) - Float64(y * i)) tmp = 0.0 if (Float64(t_1 + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$1 + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
t_2 := a \cdot c - y \cdot i\\
\mathbf{if}\;t\_1 + j \cdot t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.5%
+-commutative93.5%
fma-define93.5%
*-commutative93.5%
sub-neg93.5%
*-commutative93.5%
sub-neg93.5%
*-commutative93.5%
*-commutative93.5%
Simplified93.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf 60.1%
distribute-lft-out--60.1%
*-commutative60.1%
Simplified60.1%
Final simplification86.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* 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 t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * ((t * b) - (y * j)) 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(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; 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) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 93.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
Taylor expanded in i around inf 60.1%
distribute-lft-out--60.1%
*-commutative60.1%
Simplified60.1%
Final simplification86.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* t i))) (t_2 (* z (* b (- c)))))
(if (<= c -1e+64)
t_2
(if (<= c -1.35e-169)
t_1
(if (<= c 9.5e-206)
(* a (* t (- x)))
(if (<= c 9.5e-75)
t_1
(if (<= c 1.1e+28)
(* c (* z (- b)))
(if (<= c 1.75e+244) (* c (* a j)) t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double t_2 = z * (b * -c);
double tmp;
if (c <= -1e+64) {
tmp = t_2;
} else if (c <= -1.35e-169) {
tmp = t_1;
} else if (c <= 9.5e-206) {
tmp = a * (t * -x);
} else if (c <= 9.5e-75) {
tmp = t_1;
} else if (c <= 1.1e+28) {
tmp = c * (z * -b);
} else if (c <= 1.75e+244) {
tmp = c * (a * j);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (t * i)
t_2 = z * (b * -c)
if (c <= (-1d+64)) then
tmp = t_2
else if (c <= (-1.35d-169)) then
tmp = t_1
else if (c <= 9.5d-206) then
tmp = a * (t * -x)
else if (c <= 9.5d-75) then
tmp = t_1
else if (c <= 1.1d+28) then
tmp = c * (z * -b)
else if (c <= 1.75d+244) then
tmp = c * (a * j)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (t * i);
double t_2 = z * (b * -c);
double tmp;
if (c <= -1e+64) {
tmp = t_2;
} else if (c <= -1.35e-169) {
tmp = t_1;
} else if (c <= 9.5e-206) {
tmp = a * (t * -x);
} else if (c <= 9.5e-75) {
tmp = t_1;
} else if (c <= 1.1e+28) {
tmp = c * (z * -b);
} else if (c <= 1.75e+244) {
tmp = c * (a * j);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (t * i) t_2 = z * (b * -c) tmp = 0 if c <= -1e+64: tmp = t_2 elif c <= -1.35e-169: tmp = t_1 elif c <= 9.5e-206: tmp = a * (t * -x) elif c <= 9.5e-75: tmp = t_1 elif c <= 1.1e+28: tmp = c * (z * -b) elif c <= 1.75e+244: tmp = c * (a * j) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(t * i)) t_2 = Float64(z * Float64(b * Float64(-c))) tmp = 0.0 if (c <= -1e+64) tmp = t_2; elseif (c <= -1.35e-169) tmp = t_1; elseif (c <= 9.5e-206) tmp = Float64(a * Float64(t * Float64(-x))); elseif (c <= 9.5e-75) tmp = t_1; elseif (c <= 1.1e+28) tmp = Float64(c * Float64(z * Float64(-b))); elseif (c <= 1.75e+244) tmp = Float64(c * Float64(a * j)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (t * i); t_2 = z * (b * -c); tmp = 0.0; if (c <= -1e+64) tmp = t_2; elseif (c <= -1.35e-169) tmp = t_1; elseif (c <= 9.5e-206) tmp = a * (t * -x); elseif (c <= 9.5e-75) tmp = t_1; elseif (c <= 1.1e+28) tmp = c * (z * -b); elseif (c <= 1.75e+244) tmp = c * (a * j); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1e+64], t$95$2, If[LessEqual[c, -1.35e-169], t$95$1, If[LessEqual[c, 9.5e-206], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9.5e-75], t$95$1, If[LessEqual[c, 1.1e+28], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.75e+244], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i\right)\\
t_2 := z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{if}\;c \leq -1 \cdot 10^{+64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -1.35 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-206}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;c \leq 9.5 \cdot 10^{-75}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{+28}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq 1.75 \cdot 10^{+244}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -1.00000000000000002e64 or 1.74999999999999987e244 < c Initial program 62.8%
Taylor expanded in z around inf 59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in y around 0 55.6%
neg-mul-155.6%
distribute-rgt-neg-in55.6%
Simplified55.6%
if -1.00000000000000002e64 < c < -1.3500000000000001e-169 or 9.49999999999999979e-206 < c < 9.4999999999999991e-75Initial program 80.8%
Taylor expanded in b around inf 35.2%
*-commutative35.2%
Simplified35.2%
Taylor expanded in t around inf 29.3%
*-commutative29.3%
Simplified29.3%
if -1.3500000000000001e-169 < c < 9.49999999999999979e-206Initial program 84.8%
Taylor expanded in a around inf 40.7%
+-commutative40.7%
mul-1-neg40.7%
unsub-neg40.7%
Simplified40.7%
Taylor expanded in c around 0 36.5%
mul-1-neg36.5%
distribute-lft-neg-out36.5%
*-commutative36.5%
Simplified36.5%
if 9.4999999999999991e-75 < c < 1.09999999999999993e28Initial program 74.2%
Taylor expanded in z around inf 69.9%
Taylor expanded in c around inf 53.2%
Taylor expanded in z around inf 44.9%
mul-1-neg44.9%
distribute-lft-neg-out44.9%
*-commutative44.9%
Simplified44.9%
if 1.09999999999999993e28 < c < 1.74999999999999987e244Initial program 57.4%
Taylor expanded in z around inf 58.2%
Taylor expanded in c around inf 50.0%
Taylor expanded in z around 0 39.4%
Final simplification39.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1e+121) (not (<= b 4.35e+145))) (* b (- (* t i) (* z c))) (+ (* j (- (* a c) (* y i))) (- (* x (- (* y z) (* t a))) (* z (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1e+121) || !(b <= 4.35e+145)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1d+121)) .or. (.not. (b <= 4.35d+145))) then
tmp = b * ((t * i) - (z * c))
else
tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1e+121) || !(b <= 4.35e+145)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1e+121) or not (b <= 4.35e+145): tmp = b * ((t * i) - (z * c)) else: tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1e+121) || !(b <= 4.35e+145)) tmp = 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(y * z) - Float64(t * a))) - Float64(z * Float64(b * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1e+121) || ~((b <= 4.35e+145))) tmp = b * ((t * i) - (z * c)); else tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) - (z * (b * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1e+121], N[Not[LessEqual[b, 4.35e+145]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1 \cdot 10^{+121} \lor \neg \left(b \leq 4.35 \cdot 10^{+145}\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(y \cdot z - t \cdot a\right) - z \cdot \left(b \cdot c\right)\right)\\
\end{array}
\end{array}
if b < -1.00000000000000004e121 or 4.35000000000000008e145 < b Initial program 58.3%
Taylor expanded in b around inf 71.6%
*-commutative71.6%
Simplified71.6%
if -1.00000000000000004e121 < b < 4.35000000000000008e145Initial program 78.3%
Taylor expanded in c around inf 78.6%
*-commutative78.6%
*-commutative78.6%
associate-*l*81.8%
*-commutative81.8%
Simplified81.8%
Final simplification78.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -4.4e+49)
(+ (* j (- (* a c) (* y i))) (* y (* x z)))
(if (<= y -1.2e-88)
(- (- (* x (* t (- (/ (* y z) t) a))) (* z (* b c))) (* i (* y j)))
(if (<= y 1.6e+98)
(- (* a (- (* c j) (* x t))) (* b (- (* z c) (* t i))))
(* y (- (* x z) (* i j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -4.4e+49) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else if (y <= -1.2e-88) {
tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) - (i * (y * j));
} else if (y <= 1.6e+98) {
tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i)));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-4.4d+49)) then
tmp = (j * ((a * c) - (y * i))) + (y * (x * z))
else if (y <= (-1.2d-88)) then
tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) - (i * (y * j))
else if (y <= 1.6d+98) then
tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i)))
else
tmp = y * ((x * z) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -4.4e+49) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else if (y <= -1.2e-88) {
tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) - (i * (y * j));
} else if (y <= 1.6e+98) {
tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i)));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -4.4e+49: tmp = (j * ((a * c) - (y * i))) + (y * (x * z)) elif y <= -1.2e-88: tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) - (i * (y * j)) elif y <= 1.6e+98: tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i))) else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -4.4e+49) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(y * Float64(x * z))); elseif (y <= -1.2e-88) tmp = Float64(Float64(Float64(x * Float64(t * Float64(Float64(Float64(y * z) / t) - a))) - Float64(z * Float64(b * c))) - Float64(i * Float64(y * j))); elseif (y <= 1.6e+98) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -4.4e+49) tmp = (j * ((a * c) - (y * i))) + (y * (x * z)); elseif (y <= -1.2e-88) tmp = ((x * (t * (((y * z) / t) - a))) - (z * (b * c))) - (i * (y * j)); elseif (y <= 1.6e+98) tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i))); else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -4.4e+49], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -1.2e-88], N[(N[(N[(x * N[(t * N[(N[(N[(y * z), $MachinePrecision] / t), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+98], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.4 \cdot 10^{+49}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{-88}:\\
\;\;\;\;\left(x \cdot \left(t \cdot \left(\frac{y \cdot z}{t} - a\right)\right) - z \cdot \left(b \cdot c\right)\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+98}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if y < -4.4000000000000001e49Initial program 68.2%
Taylor expanded in y around inf 74.7%
*-commutative74.7%
associate-*l*79.4%
Simplified79.4%
if -4.4000000000000001e49 < y < -1.2e-88Initial program 83.1%
Taylor expanded in c around inf 86.5%
*-commutative86.5%
*-commutative86.5%
associate-*l*89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in t around inf 86.5%
Taylor expanded in c around 0 89.9%
associate-*r*89.9%
mul-1-neg89.9%
*-commutative89.9%
Simplified89.9%
if -1.2e-88 < y < 1.6000000000000001e98Initial program 75.6%
Taylor expanded in y around 0 67.5%
Simplified68.3%
if 1.6000000000000001e98 < y Initial program 63.5%
Taylor expanded in y around inf 80.7%
+-commutative80.7%
mul-1-neg80.7%
unsub-neg80.7%
*-commutative80.7%
Simplified80.7%
Final simplification75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -5.8e-56)
t_1
(if (<= y -8.2e-203)
(* c (* z (- (/ (* a j) z) b)))
(if (<= y 52.0)
(* a (- (* c j) (* x t)))
(if (<= y 1.6e+98) (* i (- (* t b) (* y j))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.8e-56) {
tmp = t_1;
} else if (y <= -8.2e-203) {
tmp = c * (z * (((a * j) / z) - b));
} else if (y <= 52.0) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1.6e+98) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-5.8d-56)) then
tmp = t_1
else if (y <= (-8.2d-203)) then
tmp = c * (z * (((a * j) / z) - b))
else if (y <= 52.0d0) then
tmp = a * ((c * j) - (x * t))
else if (y <= 1.6d+98) then
tmp = i * ((t * b) - (y * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.8e-56) {
tmp = t_1;
} else if (y <= -8.2e-203) {
tmp = c * (z * (((a * j) / z) - b));
} else if (y <= 52.0) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 1.6e+98) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -5.8e-56: tmp = t_1 elif y <= -8.2e-203: tmp = c * (z * (((a * j) / z) - b)) elif y <= 52.0: tmp = a * ((c * j) - (x * t)) elif y <= 1.6e+98: tmp = i * ((t * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -5.8e-56) tmp = t_1; elseif (y <= -8.2e-203) tmp = Float64(c * Float64(z * Float64(Float64(Float64(a * j) / z) - b))); elseif (y <= 52.0) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 1.6e+98) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -5.8e-56) tmp = t_1; elseif (y <= -8.2e-203) tmp = c * (z * (((a * j) / z) - b)); elseif (y <= 52.0) tmp = a * ((c * j) - (x * t)); elseif (y <= 1.6e+98) tmp = i * ((t * b) - (y * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.8e-56], t$95$1, If[LessEqual[y, -8.2e-203], N[(c * N[(z * N[(N[(N[(a * j), $MachinePrecision] / z), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 52.0], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e+98], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -5.8 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -8.2 \cdot 10^{-203}:\\
\;\;\;\;c \cdot \left(z \cdot \left(\frac{a \cdot j}{z} - b\right)\right)\\
\mathbf{elif}\;y \leq 52:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{+98}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.79999999999999982e-56 or 1.6000000000000001e98 < y Initial program 70.3%
Taylor expanded in y around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
Simplified74.0%
if -5.79999999999999982e-56 < y < -8.19999999999999962e-203Initial program 68.2%
Taylor expanded in z around inf 71.2%
Taylor expanded in c around inf 65.3%
if -8.19999999999999962e-203 < y < 52Initial program 81.6%
Taylor expanded in a around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
Simplified48.6%
if 52 < y < 1.6000000000000001e98Initial program 53.6%
Taylor expanded in i around inf 67.8%
distribute-lft-out--67.8%
*-commutative67.8%
Simplified67.8%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -7.2e-57)
t_1
(if (<= y -7.5e-203)
(* c (* z (- (/ (* a j) z) b)))
(if (<= y 1.55e-188)
(* a (- (* c j) (* x t)))
(if (<= y 6.5e+97) (* b (- (* t i) (* z c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7.2e-57) {
tmp = t_1;
} else if (y <= -7.5e-203) {
tmp = c * (z * (((a * j) / z) - b));
} else if (y <= 1.55e-188) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 6.5e+97) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-7.2d-57)) then
tmp = t_1
else if (y <= (-7.5d-203)) then
tmp = c * (z * (((a * j) / z) - b))
else if (y <= 1.55d-188) then
tmp = a * ((c * j) - (x * t))
else if (y <= 6.5d+97) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7.2e-57) {
tmp = t_1;
} else if (y <= -7.5e-203) {
tmp = c * (z * (((a * j) / z) - b));
} else if (y <= 1.55e-188) {
tmp = a * ((c * j) - (x * t));
} else if (y <= 6.5e+97) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -7.2e-57: tmp = t_1 elif y <= -7.5e-203: tmp = c * (z * (((a * j) / z) - b)) elif y <= 1.55e-188: tmp = a * ((c * j) - (x * t)) elif y <= 6.5e+97: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -7.2e-57) tmp = t_1; elseif (y <= -7.5e-203) tmp = Float64(c * Float64(z * Float64(Float64(Float64(a * j) / z) - b))); elseif (y <= 1.55e-188) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (y <= 6.5e+97) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -7.2e-57) tmp = t_1; elseif (y <= -7.5e-203) tmp = c * (z * (((a * j) / z) - b)); elseif (y <= 1.55e-188) tmp = a * ((c * j) - (x * t)); elseif (y <= 6.5e+97) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7.2e-57], t$95$1, If[LessEqual[y, -7.5e-203], N[(c * N[(z * N[(N[(N[(a * j), $MachinePrecision] / z), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e-188], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e+97], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -7.2 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -7.5 \cdot 10^{-203}:\\
\;\;\;\;c \cdot \left(z \cdot \left(\frac{a \cdot j}{z} - b\right)\right)\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-188}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{+97}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -7.2000000000000005e-57 or 6.4999999999999999e97 < y Initial program 70.3%
Taylor expanded in y around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
Simplified74.0%
if -7.2000000000000005e-57 < y < -7.50000000000000027e-203Initial program 68.2%
Taylor expanded in z around inf 71.2%
Taylor expanded in c around inf 65.3%
if -7.50000000000000027e-203 < y < 1.5500000000000001e-188Initial program 81.3%
Taylor expanded in a around inf 56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
Simplified56.0%
if 1.5500000000000001e-188 < y < 6.4999999999999999e97Initial program 74.0%
Taylor expanded in b around inf 47.6%
*-commutative47.6%
Simplified47.6%
Final simplification64.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -8e-69)
(+ (* j (- (* a c) (* y i))) (* y (* x z)))
(if (<= y 1.15e+98)
(- (* a (- (* c j) (* x t))) (* b (- (* z c) (* t i))))
(* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8e-69) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else if (y <= 1.15e+98) {
tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i)));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-8d-69)) then
tmp = (j * ((a * c) - (y * i))) + (y * (x * z))
else if (y <= 1.15d+98) then
tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i)))
else
tmp = y * ((x * z) - (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -8e-69) {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
} else if (y <= 1.15e+98) {
tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i)));
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -8e-69: tmp = (j * ((a * c) - (y * i))) + (y * (x * z)) elif y <= 1.15e+98: tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i))) else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -8e-69) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(y * Float64(x * z))); elseif (y <= 1.15e+98) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -8e-69) tmp = (j * ((a * c) - (y * i))) + (y * (x * z)); elseif (y <= 1.15e+98) tmp = (a * ((c * j) - (x * t))) - (b * ((z * c) - (t * i))); else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -8e-69], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.15e+98], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -8 \cdot 10^{-69}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+98}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if y < -7.9999999999999997e-69Initial program 72.7%
Taylor expanded in y around inf 72.9%
*-commutative72.9%
associate-*l*76.3%
Simplified76.3%
if -7.9999999999999997e-69 < y < 1.15000000000000007e98Initial program 75.7%
Taylor expanded in y around 0 66.9%
Simplified67.7%
if 1.15000000000000007e98 < y Initial program 63.5%
Taylor expanded in y around inf 80.7%
+-commutative80.7%
mul-1-neg80.7%
unsub-neg80.7%
*-commutative80.7%
Simplified80.7%
Final simplification72.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -9.8e+123) (not (<= t 6.4e+34))) (* t (- (* b i) (* x a))) (+ (* j (- (* a c) (* y i))) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -9.8e+123) || !(t <= 6.4e+34)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-9.8d+123)) .or. (.not. (t <= 6.4d+34))) then
tmp = t * ((b * i) - (x * a))
else
tmp = (j * ((a * c) - (y * i))) + (y * (x * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -9.8e+123) || !(t <= 6.4e+34)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (j * ((a * c) - (y * i))) + (y * (x * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -9.8e+123) or not (t <= 6.4e+34): tmp = t * ((b * i) - (x * a)) else: tmp = (j * ((a * c) - (y * i))) + (y * (x * z)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -9.8e+123) || !(t <= 6.4e+34)) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(y * Float64(x * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -9.8e+123) || ~((t <= 6.4e+34))) tmp = t * ((b * i) - (x * a)); else tmp = (j * ((a * c) - (y * i))) + (y * (x * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -9.8e+123], N[Not[LessEqual[t, 6.4e+34]], $MachinePrecision]], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -9.8 \cdot 10^{+123} \lor \neg \left(t \leq 6.4 \cdot 10^{+34}\right):\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if t < -9.79999999999999952e123 or 6.3999999999999997e34 < t Initial program 62.3%
Taylor expanded in t around inf 65.6%
distribute-lft-out--65.6%
Simplified65.6%
if -9.79999999999999952e123 < t < 6.3999999999999997e34Initial program 78.3%
Taylor expanded in y around inf 65.4%
*-commutative65.4%
associate-*l*67.3%
Simplified67.3%
Final simplification66.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -9.5e-57)
t_1
(if (<= y -1.4e-211)
(* c (* z (- (/ (* a j) z) b)))
(if (<= y 1.95e+15) (* t (- (* b i) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -9.5e-57) {
tmp = t_1;
} else if (y <= -1.4e-211) {
tmp = c * (z * (((a * j) / z) - b));
} else if (y <= 1.95e+15) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-9.5d-57)) then
tmp = t_1
else if (y <= (-1.4d-211)) then
tmp = c * (z * (((a * j) / z) - b))
else if (y <= 1.95d+15) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -9.5e-57) {
tmp = t_1;
} else if (y <= -1.4e-211) {
tmp = c * (z * (((a * j) / z) - b));
} else if (y <= 1.95e+15) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -9.5e-57: tmp = t_1 elif y <= -1.4e-211: tmp = c * (z * (((a * j) / z) - b)) elif y <= 1.95e+15: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -9.5e-57) tmp = t_1; elseif (y <= -1.4e-211) tmp = Float64(c * Float64(z * Float64(Float64(Float64(a * j) / z) - b))); elseif (y <= 1.95e+15) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -9.5e-57) tmp = t_1; elseif (y <= -1.4e-211) tmp = c * (z * (((a * j) / z) - b)); elseif (y <= 1.95e+15) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9.5e-57], t$95$1, If[LessEqual[y, -1.4e-211], N[(c * N[(z * N[(N[(N[(a * j), $MachinePrecision] / z), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.95e+15], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -9.5 \cdot 10^{-57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.4 \cdot 10^{-211}:\\
\;\;\;\;c \cdot \left(z \cdot \left(\frac{a \cdot j}{z} - b\right)\right)\\
\mathbf{elif}\;y \leq 1.95 \cdot 10^{+15}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -9.5000000000000005e-57 or 1.95e15 < y Initial program 68.6%
Taylor expanded in y around inf 69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
*-commutative69.9%
Simplified69.9%
if -9.5000000000000005e-57 < y < -1.3999999999999999e-211Initial program 69.2%
Taylor expanded in z around inf 72.1%
Taylor expanded in c around inf 66.3%
if -1.3999999999999999e-211 < y < 1.95e15Initial program 80.8%
Taylor expanded in t around inf 52.6%
distribute-lft-out--52.6%
Simplified52.6%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -3.3e-56)
t_1
(if (<= y 1.15e-62)
(* c (- (* a j) (* z b)))
(if (<= y 2.3e+98) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.3e-56) {
tmp = t_1;
} else if (y <= 1.15e-62) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 2.3e+98) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-3.3d-56)) then
tmp = t_1
else if (y <= 1.15d-62) then
tmp = c * ((a * j) - (z * b))
else if (y <= 2.3d+98) then
tmp = b * ((t * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.3e-56) {
tmp = t_1;
} else if (y <= 1.15e-62) {
tmp = c * ((a * j) - (z * b));
} else if (y <= 2.3e+98) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.3e-56: tmp = t_1 elif y <= 1.15e-62: tmp = c * ((a * j) - (z * b)) elif y <= 2.3e+98: tmp = b * ((t * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.3e-56) tmp = t_1; elseif (y <= 1.15e-62) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (y <= 2.3e+98) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.3e-56) tmp = t_1; elseif (y <= 1.15e-62) tmp = c * ((a * j) - (z * b)); elseif (y <= 2.3e+98) tmp = b * ((t * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.3e-56], t$95$1, If[LessEqual[y, 1.15e-62], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.3e+98], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.3 \cdot 10^{-56}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-62}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 2.3 \cdot 10^{+98}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.29999999999999984e-56 or 2.30000000000000013e98 < y Initial program 70.3%
Taylor expanded in y around inf 74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
Simplified74.0%
if -3.29999999999999984e-56 < y < 1.15e-62Initial program 77.3%
Taylor expanded in c around inf 50.0%
if 1.15e-62 < y < 2.30000000000000013e98Initial program 66.7%
Taylor expanded in b around inf 56.3%
*-commutative56.3%
Simplified56.3%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -4.3e+49)
(* c (* a j))
(if (<= j -6.5e-166)
(* a (* t (- x)))
(if (<= j 1.3e+51) (* b (* z (- c))) (* j (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -4.3e+49) {
tmp = c * (a * j);
} else if (j <= -6.5e-166) {
tmp = a * (t * -x);
} else if (j <= 1.3e+51) {
tmp = b * (z * -c);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-4.3d+49)) then
tmp = c * (a * j)
else if (j <= (-6.5d-166)) then
tmp = a * (t * -x)
else if (j <= 1.3d+51) then
tmp = b * (z * -c)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -4.3e+49) {
tmp = c * (a * j);
} else if (j <= -6.5e-166) {
tmp = a * (t * -x);
} else if (j <= 1.3e+51) {
tmp = b * (z * -c);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -4.3e+49: tmp = c * (a * j) elif j <= -6.5e-166: tmp = a * (t * -x) elif j <= 1.3e+51: tmp = b * (z * -c) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.3e+49) tmp = Float64(c * Float64(a * j)); elseif (j <= -6.5e-166) tmp = Float64(a * Float64(t * Float64(-x))); elseif (j <= 1.3e+51) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -4.3e+49) tmp = c * (a * j); elseif (j <= -6.5e-166) tmp = a * (t * -x); elseif (j <= 1.3e+51) tmp = b * (z * -c); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.3e+49], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -6.5e-166], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.3e+51], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.3 \cdot 10^{+49}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-166}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+51}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -4.2999999999999999e49Initial program 70.1%
Taylor expanded in z around inf 69.0%
Taylor expanded in c around inf 41.4%
Taylor expanded in z around 0 35.9%
if -4.2999999999999999e49 < j < -6.50000000000000019e-166Initial program 80.9%
Taylor expanded in a around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
Simplified43.3%
Taylor expanded in c around 0 34.5%
mul-1-neg34.5%
distribute-lft-neg-out34.5%
*-commutative34.5%
Simplified34.5%
if -6.50000000000000019e-166 < j < 1.3000000000000001e51Initial program 69.5%
Taylor expanded in z around inf 50.6%
Taylor expanded in c around inf 41.5%
Taylor expanded in z around inf 36.8%
associate-*r*36.8%
neg-mul-136.8%
*-commutative36.8%
*-commutative36.8%
*-commutative36.8%
Simplified36.8%
if 1.3000000000000001e51 < j Initial program 73.7%
Taylor expanded in a around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
Simplified43.3%
Taylor expanded in c around inf 32.7%
associate-*r*36.1%
*-commutative36.1%
Simplified36.1%
Final simplification36.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -5.6e+47)
(* c (* a j))
(if (<= j -1.9e-166)
(* a (* t (- x)))
(if (<= j 7.6e+59) (* c (* z (- b))) (* j (* a c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -5.6e+47) {
tmp = c * (a * j);
} else if (j <= -1.9e-166) {
tmp = a * (t * -x);
} else if (j <= 7.6e+59) {
tmp = c * (z * -b);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-5.6d+47)) then
tmp = c * (a * j)
else if (j <= (-1.9d-166)) then
tmp = a * (t * -x)
else if (j <= 7.6d+59) then
tmp = c * (z * -b)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -5.6e+47) {
tmp = c * (a * j);
} else if (j <= -1.9e-166) {
tmp = a * (t * -x);
} else if (j <= 7.6e+59) {
tmp = c * (z * -b);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -5.6e+47: tmp = c * (a * j) elif j <= -1.9e-166: tmp = a * (t * -x) elif j <= 7.6e+59: tmp = c * (z * -b) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -5.6e+47) tmp = Float64(c * Float64(a * j)); elseif (j <= -1.9e-166) tmp = Float64(a * Float64(t * Float64(-x))); elseif (j <= 7.6e+59) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -5.6e+47) tmp = c * (a * j); elseif (j <= -1.9e-166) tmp = a * (t * -x); elseif (j <= 7.6e+59) tmp = c * (z * -b); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -5.6e+47], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.9e-166], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.6e+59], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -5.6 \cdot 10^{+47}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq -1.9 \cdot 10^{-166}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;j \leq 7.6 \cdot 10^{+59}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if j < -5.59999999999999976e47Initial program 70.1%
Taylor expanded in z around inf 69.0%
Taylor expanded in c around inf 41.4%
Taylor expanded in z around 0 35.9%
if -5.59999999999999976e47 < j < -1.89999999999999991e-166Initial program 80.9%
Taylor expanded in a around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
Simplified43.3%
Taylor expanded in c around 0 34.5%
mul-1-neg34.5%
distribute-lft-neg-out34.5%
*-commutative34.5%
Simplified34.5%
if -1.89999999999999991e-166 < j < 7.6000000000000002e59Initial program 69.1%
Taylor expanded in z around inf 51.7%
Taylor expanded in c around inf 42.8%
Taylor expanded in z around inf 33.8%
mul-1-neg33.8%
distribute-lft-neg-out33.8%
*-commutative33.8%
Simplified33.8%
if 7.6000000000000002e59 < j Initial program 74.5%
Taylor expanded in a around inf 43.0%
+-commutative43.0%
mul-1-neg43.0%
unsub-neg43.0%
Simplified43.0%
Taylor expanded in c around inf 32.1%
associate-*r*35.6%
*-commutative35.6%
Simplified35.6%
Final simplification34.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2e+78) (not (<= c 1.16e+119))) (* c (- (* a j) (* z b))) (* 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 ((c <= -2e+78) || !(c <= 1.16e+119)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = 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 ((c <= (-2d+78)) .or. (.not. (c <= 1.16d+119))) then
tmp = c * ((a * j) - (z * b))
else
tmp = 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 ((c <= -2e+78) || !(c <= 1.16e+119)) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2e+78) or not (c <= 1.16e+119): tmp = c * ((a * j) - (z * b)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2e+78) || !(c <= 1.16e+119)) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = 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 ((c <= -2e+78) || ~((c <= 1.16e+119))) tmp = c * ((a * j) - (z * b)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2e+78], N[Not[LessEqual[c, 1.16e+119]], $MachinePrecision]], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2 \cdot 10^{+78} \lor \neg \left(c \leq 1.16 \cdot 10^{+119}\right):\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if c < -2.00000000000000002e78 or 1.16000000000000006e119 < c Initial program 60.7%
Taylor expanded in c around inf 67.9%
if -2.00000000000000002e78 < c < 1.16000000000000006e119Initial program 77.8%
Taylor expanded in x around inf 46.8%
*-commutative46.8%
Simplified46.8%
Final simplification53.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.3e+136) (not (<= b 1.65e+129))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.3e+136) || !(b <= 1.65e+129)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-4.3d+136)) .or. (.not. (b <= 1.65d+129))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -4.3e+136) || !(b <= 1.65e+129)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -4.3e+136) or not (b <= 1.65e+129): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -4.3e+136) || !(b <= 1.65e+129)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -4.3e+136) || ~((b <= 1.65e+129))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -4.3e+136], N[Not[LessEqual[b, 1.65e+129]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.3 \cdot 10^{+136} \lor \neg \left(b \leq 1.65 \cdot 10^{+129}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -4.2999999999999999e136 or 1.64999999999999995e129 < b Initial program 60.0%
Taylor expanded in b around inf 73.8%
*-commutative73.8%
Simplified73.8%
if -4.2999999999999999e136 < b < 1.64999999999999995e129Initial program 77.5%
Taylor expanded in a around inf 41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
Simplified41.8%
Final simplification50.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -3.35e+125) (* z (* b (- c))) (if (<= b 5.7e+130) (* a (- (* c j) (* x t))) (* b (* t 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.35e+125) {
tmp = z * (b * -c);
} else if (b <= 5.7e+130) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = 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) :: tmp
if (b <= (-3.35d+125)) then
tmp = z * (b * -c)
else if (b <= 5.7d+130) then
tmp = a * ((c * j) - (x * t))
else
tmp = 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 tmp;
if (b <= -3.35e+125) {
tmp = z * (b * -c);
} else if (b <= 5.7e+130) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3.35e+125: tmp = z * (b * -c) elif b <= 5.7e+130: tmp = a * ((c * j) - (x * t)) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3.35e+125) tmp = Float64(z * Float64(b * Float64(-c))); elseif (b <= 5.7e+130) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3.35e+125) tmp = z * (b * -c); elseif (b <= 5.7e+130) tmp = a * ((c * j) - (x * t)); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3.35e+125], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.7e+130], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.35 \cdot 10^{+125}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq 5.7 \cdot 10^{+130}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if b < -3.3500000000000002e125Initial program 61.1%
Taylor expanded in z around inf 43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in y around 0 46.1%
neg-mul-146.1%
distribute-rgt-neg-in46.1%
Simplified46.1%
if -3.3500000000000002e125 < b < 5.7e130Initial program 77.8%
Taylor expanded in a around inf 41.7%
+-commutative41.7%
mul-1-neg41.7%
unsub-neg41.7%
Simplified41.7%
if 5.7e130 < b Initial program 58.4%
Taylor expanded in b around inf 73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in t around inf 54.2%
*-commutative54.2%
Simplified54.2%
Final simplification44.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -1.02e-34) (* b (* z (- c))) (if (<= z 1.06e+84) (* x (* t (- a))) (* c (* z (- b))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.02e-34) {
tmp = b * (z * -c);
} else if (z <= 1.06e+84) {
tmp = x * (t * -a);
} else {
tmp = c * (z * -b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-1.02d-34)) then
tmp = b * (z * -c)
else if (z <= 1.06d+84) then
tmp = x * (t * -a)
else
tmp = c * (z * -b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -1.02e-34) {
tmp = b * (z * -c);
} else if (z <= 1.06e+84) {
tmp = x * (t * -a);
} else {
tmp = c * (z * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -1.02e-34: tmp = b * (z * -c) elif z <= 1.06e+84: tmp = x * (t * -a) else: tmp = c * (z * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -1.02e-34) tmp = Float64(b * Float64(z * Float64(-c))); elseif (z <= 1.06e+84) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = Float64(c * Float64(z * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -1.02e-34) tmp = b * (z * -c); elseif (z <= 1.06e+84) tmp = x * (t * -a); else tmp = c * (z * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -1.02e-34], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.06e+84], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.02 \cdot 10^{-34}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;z \leq 1.06 \cdot 10^{+84}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if z < -1.01999999999999997e-34Initial program 68.5%
Taylor expanded in z around inf 75.9%
Taylor expanded in c around inf 54.0%
Taylor expanded in z around inf 46.8%
associate-*r*46.8%
neg-mul-146.8%
*-commutative46.8%
*-commutative46.8%
*-commutative46.8%
Simplified46.8%
if -1.01999999999999997e-34 < z < 1.05999999999999993e84Initial program 82.4%
Taylor expanded in x around inf 38.1%
*-commutative38.1%
Simplified38.1%
Taylor expanded in z around 0 26.0%
if 1.05999999999999993e84 < z Initial program 42.8%
Taylor expanded in z around inf 63.5%
Taylor expanded in c around inf 56.0%
Taylor expanded in z around inf 46.9%
mul-1-neg46.9%
distribute-lft-neg-out46.9%
*-commutative46.9%
Simplified46.9%
Final simplification34.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.55e+121) (not (<= t 5.6))) (* b (* t i)) (* c (* a j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.55e+121) || !(t <= 5.6)) {
tmp = b * (t * i);
} else {
tmp = c * (a * 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 ((t <= (-1.55d+121)) .or. (.not. (t <= 5.6d0))) then
tmp = b * (t * i)
else
tmp = c * (a * 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 ((t <= -1.55e+121) || !(t <= 5.6)) {
tmp = b * (t * i);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.55e+121) or not (t <= 5.6): tmp = b * (t * i) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.55e+121) || !(t <= 5.6)) tmp = Float64(b * Float64(t * i)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.55e+121) || ~((t <= 5.6))) tmp = b * (t * i); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.55e+121], N[Not[LessEqual[t, 5.6]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.55 \cdot 10^{+121} \lor \neg \left(t \leq 5.6\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if t < -1.55000000000000004e121 or 5.5999999999999996 < t Initial program 62.3%
Taylor expanded in b around inf 48.1%
*-commutative48.1%
Simplified48.1%
Taylor expanded in t around inf 40.1%
*-commutative40.1%
Simplified40.1%
if -1.55000000000000004e121 < t < 5.5999999999999996Initial program 79.1%
Taylor expanded in z around inf 69.7%
Taylor expanded in c around inf 44.0%
Taylor expanded in z around 0 27.6%
Final simplification32.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -2e+129) (not (<= t 9.5e-9))) (* 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 ((t <= -2e+129) || !(t <= 9.5e-9)) {
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 ((t <= (-2d+129)) .or. (.not. (t <= 9.5d-9))) 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 ((t <= -2e+129) || !(t <= 9.5e-9)) {
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 (t <= -2e+129) or not (t <= 9.5e-9): 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 ((t <= -2e+129) || !(t <= 9.5e-9)) 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 ((t <= -2e+129) || ~((t <= 9.5e-9))) 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[t, -2e+129], N[Not[LessEqual[t, 9.5e-9]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2 \cdot 10^{+129} \lor \neg \left(t \leq 9.5 \cdot 10^{-9}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -2e129 or 9.5000000000000007e-9 < t Initial program 63.1%
Taylor expanded in b around inf 47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in t around inf 39.4%
*-commutative39.4%
Simplified39.4%
if -2e129 < t < 9.5000000000000007e-9Initial program 78.9%
Taylor expanded in a around inf 36.5%
+-commutative36.5%
mul-1-neg36.5%
unsub-neg36.5%
Simplified36.5%
Taylor expanded in c around inf 25.6%
Final simplification31.0%
(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 72.7%
Taylor expanded in a around inf 35.4%
+-commutative35.4%
mul-1-neg35.4%
unsub-neg35.4%
Simplified35.4%
Taylor expanded in c around inf 19.8%
(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 2024181
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))