
(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 21 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 (* 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 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 = a * ((c * j) - (x * t));
}
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 = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((c * j) - (x * t)) 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 = 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) t_1 = ((x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((c * j) - (x * t)); 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[(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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $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(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}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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 90.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 a around inf 49.4%
+-commutative49.4%
mul-1-neg49.4%
unsub-neg49.4%
*-commutative49.4%
Simplified49.4%
Final simplification84.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- x)))))
(if (<= j -9e+46)
(* y (* i (- j)))
(if (<= j -2.2e-81)
(* c (* z (- b)))
(if (<= j -4e-117)
t_1
(if (<= j -1.06e-188)
(* i (* t b))
(if (<= j -4.1e-289)
(* y (* x z))
(if (<= j 6.8e-251)
t_1
(if (<= j 2.5e-55) (* z (* x y)) (* c (* a j)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double tmp;
if (j <= -9e+46) {
tmp = y * (i * -j);
} else if (j <= -2.2e-81) {
tmp = c * (z * -b);
} else if (j <= -4e-117) {
tmp = t_1;
} else if (j <= -1.06e-188) {
tmp = i * (t * b);
} else if (j <= -4.1e-289) {
tmp = y * (x * z);
} else if (j <= 6.8e-251) {
tmp = t_1;
} else if (j <= 2.5e-55) {
tmp = z * (x * y);
} 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) :: t_1
real(8) :: tmp
t_1 = a * (t * -x)
if (j <= (-9d+46)) then
tmp = y * (i * -j)
else if (j <= (-2.2d-81)) then
tmp = c * (z * -b)
else if (j <= (-4d-117)) then
tmp = t_1
else if (j <= (-1.06d-188)) then
tmp = i * (t * b)
else if (j <= (-4.1d-289)) then
tmp = y * (x * z)
else if (j <= 6.8d-251) then
tmp = t_1
else if (j <= 2.5d-55) then
tmp = z * (x * y)
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 t_1 = a * (t * -x);
double tmp;
if (j <= -9e+46) {
tmp = y * (i * -j);
} else if (j <= -2.2e-81) {
tmp = c * (z * -b);
} else if (j <= -4e-117) {
tmp = t_1;
} else if (j <= -1.06e-188) {
tmp = i * (t * b);
} else if (j <= -4.1e-289) {
tmp = y * (x * z);
} else if (j <= 6.8e-251) {
tmp = t_1;
} else if (j <= 2.5e-55) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * -x) tmp = 0 if j <= -9e+46: tmp = y * (i * -j) elif j <= -2.2e-81: tmp = c * (z * -b) elif j <= -4e-117: tmp = t_1 elif j <= -1.06e-188: tmp = i * (t * b) elif j <= -4.1e-289: tmp = y * (x * z) elif j <= 6.8e-251: tmp = t_1 elif j <= 2.5e-55: tmp = z * (x * y) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(t * Float64(-x))) tmp = 0.0 if (j <= -9e+46) tmp = Float64(y * Float64(i * Float64(-j))); elseif (j <= -2.2e-81) tmp = Float64(c * Float64(z * Float64(-b))); elseif (j <= -4e-117) tmp = t_1; elseif (j <= -1.06e-188) tmp = Float64(i * Float64(t * b)); elseif (j <= -4.1e-289) tmp = Float64(y * Float64(x * z)); elseif (j <= 6.8e-251) tmp = t_1; elseif (j <= 2.5e-55) tmp = Float64(z * Float64(x * y)); else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (t * -x); tmp = 0.0; if (j <= -9e+46) tmp = y * (i * -j); elseif (j <= -2.2e-81) tmp = c * (z * -b); elseif (j <= -4e-117) tmp = t_1; elseif (j <= -1.06e-188) tmp = i * (t * b); elseif (j <= -4.1e-289) tmp = y * (x * z); elseif (j <= 6.8e-251) tmp = t_1; elseif (j <= 2.5e-55) tmp = z * (x * y); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -9e+46], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2.2e-81], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4e-117], t$95$1, If[LessEqual[j, -1.06e-188], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.1e-289], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.8e-251], t$95$1, If[LessEqual[j, 2.5e-55], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{if}\;j \leq -9 \cdot 10^{+46}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;j \leq -2.2 \cdot 10^{-81}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;j \leq -4 \cdot 10^{-117}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.06 \cdot 10^{-188}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq -4.1 \cdot 10^{-289}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{-251}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{-55}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if j < -9.00000000000000019e46Initial program 74.0%
Taylor expanded in y around inf 44.5%
+-commutative44.5%
mul-1-neg44.5%
unsub-neg44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in z around 0 40.7%
neg-mul-140.7%
distribute-rgt-neg-in40.7%
Simplified40.7%
if -9.00000000000000019e46 < j < -2.1999999999999999e-81Initial program 78.0%
Taylor expanded in c around inf 48.9%
*-commutative48.9%
Simplified48.9%
Taylor expanded in j around 0 45.2%
neg-mul-145.2%
distribute-rgt-neg-in45.2%
Simplified45.2%
if -2.1999999999999999e-81 < j < -4.00000000000000012e-117 or -4.0999999999999998e-289 < j < 6.80000000000000034e-251Initial program 68.7%
Taylor expanded in a around inf 50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
Simplified50.1%
Taylor expanded in j around 0 43.8%
associate-*r*43.8%
mul-1-neg43.8%
Simplified43.8%
if -4.00000000000000012e-117 < j < -1.06e-188Initial program 76.2%
Taylor expanded in i around inf 51.4%
distribute-lft-out--51.4%
Simplified51.4%
Taylor expanded in j around 0 35.8%
pow135.8%
Applied egg-rr35.8%
unpow135.8%
*-commutative35.8%
associate-*r*43.4%
Simplified43.4%
if -1.06e-188 < j < -4.0999999999999998e-289Initial program 69.5%
Taylor expanded in y around inf 59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
*-commutative59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in z around inf 43.9%
*-commutative43.9%
associate-*l*53.7%
*-commutative53.7%
Simplified53.7%
if 6.80000000000000034e-251 < j < 2.5000000000000001e-55Initial program 81.0%
Taylor expanded in y around inf 42.4%
+-commutative42.4%
mul-1-neg42.4%
unsub-neg42.4%
*-commutative42.4%
*-commutative42.4%
Simplified42.4%
Taylor expanded in z around inf 35.4%
associate-*r*37.6%
*-commutative37.6%
Simplified37.6%
if 2.5000000000000001e-55 < j Initial program 81.0%
Taylor expanded in c around inf 52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in j around inf 45.2%
*-commutative45.2%
Simplified45.2%
Final simplification43.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* a (- (* c j) (* x t)))))
(if (<= a -4.5e+57)
t_2
(if (<= a -1.4e+28)
(* i (* y (- j)))
(if (<= a -180000.0)
t_2
(if (<= a 2e-125)
t_1
(if (<= a 8.5e-31)
(* j (- (* a c) (* y i)))
(if (<= a 8.5e+63) 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.5e+57) {
tmp = t_2;
} else if (a <= -1.4e+28) {
tmp = i * (y * -j);
} else if (a <= -180000.0) {
tmp = t_2;
} else if (a <= 2e-125) {
tmp = t_1;
} else if (a <= 8.5e-31) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 8.5e+63) {
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 = b * ((t * i) - (z * c))
t_2 = a * ((c * j) - (x * t))
if (a <= (-4.5d+57)) then
tmp = t_2
else if (a <= (-1.4d+28)) then
tmp = i * (y * -j)
else if (a <= (-180000.0d0)) then
tmp = t_2
else if (a <= 2d-125) then
tmp = t_1
else if (a <= 8.5d-31) then
tmp = j * ((a * c) - (y * i))
else if (a <= 8.5d+63) 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 = b * ((t * i) - (z * c));
double t_2 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.5e+57) {
tmp = t_2;
} else if (a <= -1.4e+28) {
tmp = i * (y * -j);
} else if (a <= -180000.0) {
tmp = t_2;
} else if (a <= 2e-125) {
tmp = t_1;
} else if (a <= 8.5e-31) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 8.5e+63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = a * ((c * j) - (x * t)) tmp = 0 if a <= -4.5e+57: tmp = t_2 elif a <= -1.4e+28: tmp = i * (y * -j) elif a <= -180000.0: tmp = t_2 elif a <= 2e-125: tmp = t_1 elif a <= 8.5e-31: tmp = j * ((a * c) - (y * i)) elif a <= 8.5e+63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -4.5e+57) tmp = t_2; elseif (a <= -1.4e+28) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= -180000.0) tmp = t_2; elseif (a <= 2e-125) tmp = t_1; elseif (a <= 8.5e-31) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= 8.5e+63) 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 = b * ((t * i) - (z * c)); t_2 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -4.5e+57) tmp = t_2; elseif (a <= -1.4e+28) tmp = i * (y * -j); elseif (a <= -180000.0) tmp = t_2; elseif (a <= 2e-125) tmp = t_1; elseif (a <= 8.5e-31) tmp = j * ((a * c) - (y * i)); elseif (a <= 8.5e+63) 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4.5e+57], t$95$2, If[LessEqual[a, -1.4e+28], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -180000.0], t$95$2, If[LessEqual[a, 2e-125], t$95$1, If[LessEqual[a, 8.5e-31], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.5e+63], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -4.5 \cdot 10^{+57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.4 \cdot 10^{+28}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq -180000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 2 \cdot 10^{-125}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{-31}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 8.5 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -4.49999999999999996e57 or -1.4000000000000001e28 < a < -1.8e5 or 8.5000000000000004e63 < a Initial program 68.9%
Taylor expanded in a around inf 72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
Simplified72.6%
if -4.49999999999999996e57 < a < -1.4000000000000001e28Initial program 59.6%
Taylor expanded in i around inf 86.2%
distribute-lft-out--86.2%
Simplified86.2%
Taylor expanded in j around inf 86.2%
associate-*r*86.2%
mul-1-neg86.2%
Simplified86.2%
if -1.8e5 < a < 2.00000000000000002e-125 or 8.5000000000000007e-31 < a < 8.5000000000000004e63Initial program 84.4%
Taylor expanded in b around inf 48.6%
if 2.00000000000000002e-125 < a < 8.5000000000000007e-31Initial program 82.2%
sub-neg82.2%
distribute-rgt-in82.2%
*-commutative82.2%
distribute-rgt-neg-in82.2%
Applied egg-rr82.2%
Taylor expanded in j around inf 54.1%
Final simplification60.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -4.6e+45)
(* y (* i (- j)))
(if (<= j -3.8e-84)
(* c (* z (- b)))
(if (<= j -4.3e-190)
(* i (* t b))
(if (<= j -1.4e-228)
(* y (* x z))
(if (<= j 1.05e-227)
(* x (* t (- a)))
(if (<= j 2.9e-55) (* z (* x y)) (* 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 (j <= -4.6e+45) {
tmp = y * (i * -j);
} else if (j <= -3.8e-84) {
tmp = c * (z * -b);
} else if (j <= -4.3e-190) {
tmp = i * (t * b);
} else if (j <= -1.4e-228) {
tmp = y * (x * z);
} else if (j <= 1.05e-227) {
tmp = x * (t * -a);
} else if (j <= 2.9e-55) {
tmp = z * (x * y);
} 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 (j <= (-4.6d+45)) then
tmp = y * (i * -j)
else if (j <= (-3.8d-84)) then
tmp = c * (z * -b)
else if (j <= (-4.3d-190)) then
tmp = i * (t * b)
else if (j <= (-1.4d-228)) then
tmp = y * (x * z)
else if (j <= 1.05d-227) then
tmp = x * (t * -a)
else if (j <= 2.9d-55) then
tmp = z * (x * y)
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 (j <= -4.6e+45) {
tmp = y * (i * -j);
} else if (j <= -3.8e-84) {
tmp = c * (z * -b);
} else if (j <= -4.3e-190) {
tmp = i * (t * b);
} else if (j <= -1.4e-228) {
tmp = y * (x * z);
} else if (j <= 1.05e-227) {
tmp = x * (t * -a);
} else if (j <= 2.9e-55) {
tmp = z * (x * y);
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -4.6e+45: tmp = y * (i * -j) elif j <= -3.8e-84: tmp = c * (z * -b) elif j <= -4.3e-190: tmp = i * (t * b) elif j <= -1.4e-228: tmp = y * (x * z) elif j <= 1.05e-227: tmp = x * (t * -a) elif j <= 2.9e-55: tmp = z * (x * y) else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -4.6e+45) tmp = Float64(y * Float64(i * Float64(-j))); elseif (j <= -3.8e-84) tmp = Float64(c * Float64(z * Float64(-b))); elseif (j <= -4.3e-190) tmp = Float64(i * Float64(t * b)); elseif (j <= -1.4e-228) tmp = Float64(y * Float64(x * z)); elseif (j <= 1.05e-227) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 2.9e-55) tmp = Float64(z * Float64(x * y)); 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 (j <= -4.6e+45) tmp = y * (i * -j); elseif (j <= -3.8e-84) tmp = c * (z * -b); elseif (j <= -4.3e-190) tmp = i * (t * b); elseif (j <= -1.4e-228) tmp = y * (x * z); elseif (j <= 1.05e-227) tmp = x * (t * -a); elseif (j <= 2.9e-55) tmp = z * (x * y); else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -4.6e+45], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.8e-84], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -4.3e-190], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.4e-228], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.05e-227], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.9e-55], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.6 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;j \leq -3.8 \cdot 10^{-84}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;j \leq -4.3 \cdot 10^{-190}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq -1.4 \cdot 10^{-228}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-227}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{-55}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if j < -4.60000000000000025e45Initial program 74.0%
Taylor expanded in y around inf 44.5%
+-commutative44.5%
mul-1-neg44.5%
unsub-neg44.5%
*-commutative44.5%
*-commutative44.5%
Simplified44.5%
Taylor expanded in z around 0 40.7%
neg-mul-140.7%
distribute-rgt-neg-in40.7%
Simplified40.7%
if -4.60000000000000025e45 < j < -3.79999999999999986e-84Initial program 76.1%
Taylor expanded in c around inf 45.7%
*-commutative45.7%
Simplified45.7%
Taylor expanded in j around 0 42.2%
neg-mul-142.2%
distribute-rgt-neg-in42.2%
Simplified42.2%
if -3.79999999999999986e-84 < j < -4.3e-190Initial program 66.9%
Taylor expanded in i around inf 49.3%
distribute-lft-out--49.3%
Simplified49.3%
Taylor expanded in j around 0 28.6%
pow128.6%
Applied egg-rr28.6%
unpow128.6%
*-commutative28.6%
associate-*r*32.5%
Simplified32.5%
if -4.3e-190 < j < -1.4000000000000001e-228Initial program 63.7%
Taylor expanded in y around inf 63.5%
+-commutative63.5%
mul-1-neg63.5%
unsub-neg63.5%
*-commutative63.5%
*-commutative63.5%
Simplified63.5%
Taylor expanded in z around inf 52.4%
*-commutative52.4%
associate-*l*63.5%
*-commutative63.5%
Simplified63.5%
if -1.4000000000000001e-228 < j < 1.05e-227Initial program 77.1%
sub-neg77.1%
distribute-rgt-in77.1%
*-commutative77.1%
distribute-rgt-neg-in77.1%
Applied egg-rr77.1%
Taylor expanded in x around inf 51.6%
Taylor expanded in y around 0 38.7%
associate-*r*38.7%
neg-mul-138.7%
Simplified38.7%
if 1.05e-227 < j < 2.9e-55Initial program 80.5%
Taylor expanded in y around inf 43.4%
+-commutative43.4%
mul-1-neg43.4%
unsub-neg43.4%
*-commutative43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in z around inf 36.2%
associate-*r*38.4%
*-commutative38.4%
Simplified38.4%
if 2.9e-55 < j Initial program 81.0%
Taylor expanded in c around inf 52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in j around inf 45.2%
*-commutative45.2%
Simplified45.2%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* j (- (* a c) (* y i))) (* a (* x t)))))
(if (<= b -1.05e+142)
(* b (- (* t i) (* z c)))
(if (<= b -7.5e-115)
t_1
(if (<= b -7.5e-162)
(* x (- (* y z) (* t a)))
(if (<= b 1.25e+115) t_1 (* b (* z (- (* i (/ t 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 = (j * ((a * c) - (y * i))) - (a * (x * t));
double tmp;
if (b <= -1.05e+142) {
tmp = b * ((t * i) - (z * c));
} else if (b <= -7.5e-115) {
tmp = t_1;
} else if (b <= -7.5e-162) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.25e+115) {
tmp = t_1;
} else {
tmp = b * (z * ((i * (t / 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) :: tmp
t_1 = (j * ((a * c) - (y * i))) - (a * (x * t))
if (b <= (-1.05d+142)) then
tmp = b * ((t * i) - (z * c))
else if (b <= (-7.5d-115)) then
tmp = t_1
else if (b <= (-7.5d-162)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 1.25d+115) then
tmp = t_1
else
tmp = b * (z * ((i * (t / 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 = (j * ((a * c) - (y * i))) - (a * (x * t));
double tmp;
if (b <= -1.05e+142) {
tmp = b * ((t * i) - (z * c));
} else if (b <= -7.5e-115) {
tmp = t_1;
} else if (b <= -7.5e-162) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.25e+115) {
tmp = t_1;
} else {
tmp = b * (z * ((i * (t / z)) - c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - (a * (x * t)) tmp = 0 if b <= -1.05e+142: tmp = b * ((t * i) - (z * c)) elif b <= -7.5e-115: tmp = t_1 elif b <= -7.5e-162: tmp = x * ((y * z) - (t * a)) elif b <= 1.25e+115: tmp = t_1 else: tmp = b * (z * ((i * (t / z)) - c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(a * Float64(x * t))) tmp = 0.0 if (b <= -1.05e+142) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (b <= -7.5e-115) tmp = t_1; elseif (b <= -7.5e-162) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 1.25e+115) tmp = t_1; else tmp = Float64(b * Float64(z * Float64(Float64(i * Float64(t / z)) - c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - (a * (x * t)); tmp = 0.0; if (b <= -1.05e+142) tmp = b * ((t * i) - (z * c)); elseif (b <= -7.5e-115) tmp = t_1; elseif (b <= -7.5e-162) tmp = x * ((y * z) - (t * a)); elseif (b <= 1.25e+115) tmp = t_1; else tmp = b * (z * ((i * (t / z)) - c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.05e+142], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e-115], t$95$1, If[LessEqual[b, -7.5e-162], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e+115], t$95$1, N[(b * N[(z * N[(N[(i * N[(t / z), $MachinePrecision]), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - a \cdot \left(x \cdot t\right)\\
\mathbf{if}\;b \leq -1.05 \cdot 10^{+142}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-115}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-162}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{+115}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(i \cdot \frac{t}{z} - c\right)\right)\\
\end{array}
\end{array}
if b < -1.05e142Initial program 72.9%
Taylor expanded in b around inf 71.6%
if -1.05e142 < b < -7.50000000000000038e-115 or -7.49999999999999972e-162 < b < 1.25000000000000002e115Initial program 76.6%
Taylor expanded in b around 0 67.6%
Taylor expanded in y around 0 63.4%
associate-*r*63.4%
neg-mul-163.4%
Simplified63.4%
if -7.50000000000000038e-115 < b < -7.49999999999999972e-162Initial program 70.0%
sub-neg70.0%
distribute-rgt-in70.0%
*-commutative70.0%
distribute-rgt-neg-in70.0%
Applied egg-rr70.0%
Taylor expanded in x around inf 63.9%
if 1.25000000000000002e115 < b Initial program 86.2%
Taylor expanded in b around inf 70.0%
Taylor expanded in z around inf 70.0%
associate-/l*73.2%
Simplified73.2%
Final simplification65.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* x t)))
(t_2 (- (* b (- (* t i) (* z c))) t_1))
(t_3 (- (* j (- (* a c) (* y i))) t_1)))
(if (<= b -1.4e+17)
t_2
(if (<= b -4.1e-118)
t_3
(if (<= b -5.6e-162)
(* x (- (* y z) (* t a)))
(if (<= b 1.18e+120) t_3 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * t);
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = (j * ((a * c) - (y * i))) - t_1;
double tmp;
if (b <= -1.4e+17) {
tmp = t_2;
} else if (b <= -4.1e-118) {
tmp = t_3;
} else if (b <= -5.6e-162) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.18e+120) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = a * (x * t)
t_2 = (b * ((t * i) - (z * c))) - t_1
t_3 = (j * ((a * c) - (y * i))) - t_1
if (b <= (-1.4d+17)) then
tmp = t_2
else if (b <= (-4.1d-118)) then
tmp = t_3
else if (b <= (-5.6d-162)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 1.18d+120) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (x * t);
double t_2 = (b * ((t * i) - (z * c))) - t_1;
double t_3 = (j * ((a * c) - (y * i))) - t_1;
double tmp;
if (b <= -1.4e+17) {
tmp = t_2;
} else if (b <= -4.1e-118) {
tmp = t_3;
} else if (b <= -5.6e-162) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 1.18e+120) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (x * t) t_2 = (b * ((t * i) - (z * c))) - t_1 t_3 = (j * ((a * c) - (y * i))) - t_1 tmp = 0 if b <= -1.4e+17: tmp = t_2 elif b <= -4.1e-118: tmp = t_3 elif b <= -5.6e-162: tmp = x * ((y * z) - (t * a)) elif b <= 1.18e+120: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(x * t)) t_2 = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) - t_1) t_3 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - t_1) tmp = 0.0 if (b <= -1.4e+17) tmp = t_2; elseif (b <= -4.1e-118) tmp = t_3; elseif (b <= -5.6e-162) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 1.18e+120) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (x * t); t_2 = (b * ((t * i) - (z * c))) - t_1; t_3 = (j * ((a * c) - (y * i))) - t_1; tmp = 0.0; if (b <= -1.4e+17) tmp = t_2; elseif (b <= -4.1e-118) tmp = t_3; elseif (b <= -5.6e-162) tmp = x * ((y * z) - (t * a)); elseif (b <= 1.18e+120) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]}, If[LessEqual[b, -1.4e+17], t$95$2, If[LessEqual[b, -4.1e-118], t$95$3, If[LessEqual[b, -5.6e-162], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.18e+120], t$95$3, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(x \cdot t\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right) - t\_1\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right) - t\_1\\
\mathbf{if}\;b \leq -1.4 \cdot 10^{+17}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -4.1 \cdot 10^{-118}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-162}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 1.18 \cdot 10^{+120}:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -1.4e17 or 1.18e120 < b Initial program 76.6%
Taylor expanded in y around 0 76.4%
cancel-sign-sub-inv76.4%
*-commutative76.4%
associate-*r*76.4%
*-commutative76.4%
distribute-rgt-in79.7%
+-commutative79.7%
mul-1-neg79.7%
unsub-neg79.7%
*-commutative79.7%
distribute-lft-neg-in79.7%
sub-neg79.7%
distribute-rgt-neg-out79.7%
distribute-lft-out74.2%
+-commutative74.2%
distribute-rgt-neg-out74.2%
distribute-rgt-neg-in74.2%
mul-1-neg74.2%
Simplified79.7%
Taylor expanded in j around 0 73.2%
associate-*r*20.4%
mul-1-neg20.4%
Simplified73.2%
if -1.4e17 < b < -4.1000000000000003e-118 or -5.60000000000000043e-162 < b < 1.18e120Initial program 77.5%
Taylor expanded in b around 0 69.7%
Taylor expanded in y around 0 64.4%
associate-*r*64.4%
neg-mul-164.4%
Simplified64.4%
if -4.1000000000000003e-118 < b < -5.60000000000000043e-162Initial program 70.0%
sub-neg70.0%
distribute-rgt-in70.0%
*-commutative70.0%
distribute-rgt-neg-in70.0%
Applied egg-rr70.0%
Taylor expanded in x around inf 63.9%
Final simplification67.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* t (- (* b i) (* x a)))))
(if (<= t -5.1e+79)
t_2
(if (<= t -2.1e-153)
t_1
(if (<= t 1.2e-301)
(* y (- (* x z) (* i j)))
(if (<= t 9e-201)
t_1
(if (<= t 6.1e+88) (* c (- (* a j) (* z b))) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -5.1e+79) {
tmp = t_2;
} else if (t <= -2.1e-153) {
tmp = t_1;
} else if (t <= 1.2e-301) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 9e-201) {
tmp = t_1;
} else if (t <= 6.1e+88) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = t * ((b * i) - (x * a))
if (t <= (-5.1d+79)) then
tmp = t_2
else if (t <= (-2.1d-153)) then
tmp = t_1
else if (t <= 1.2d-301) then
tmp = y * ((x * z) - (i * j))
else if (t <= 9d-201) then
tmp = t_1
else if (t <= 6.1d+88) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = t * ((b * i) - (x * a));
double tmp;
if (t <= -5.1e+79) {
tmp = t_2;
} else if (t <= -2.1e-153) {
tmp = t_1;
} else if (t <= 1.2e-301) {
tmp = y * ((x * z) - (i * j));
} else if (t <= 9e-201) {
tmp = t_1;
} else if (t <= 6.1e+88) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = t * ((b * i) - (x * a)) tmp = 0 if t <= -5.1e+79: tmp = t_2 elif t <= -2.1e-153: tmp = t_1 elif t <= 1.2e-301: tmp = y * ((x * z) - (i * j)) elif t <= 9e-201: tmp = t_1 elif t <= 6.1e+88: tmp = c * ((a * j) - (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) t_2 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -5.1e+79) tmp = t_2; elseif (t <= -2.1e-153) tmp = t_1; elseif (t <= 1.2e-301) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (t <= 9e-201) tmp = t_1; elseif (t <= 6.1e+88) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -5.1e+79) tmp = t_2; elseif (t <= -2.1e-153) tmp = t_1; elseif (t <= 1.2e-301) tmp = y * ((x * z) - (i * j)); elseif (t <= 9e-201) tmp = t_1; elseif (t <= 6.1e+88) tmp = c * ((a * j) - (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -5.1e+79], t$95$2, If[LessEqual[t, -2.1e-153], t$95$1, If[LessEqual[t, 1.2e-301], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9e-201], t$95$1, If[LessEqual[t, 6.1e+88], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -5.1 \cdot 10^{+79}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2.1 \cdot 10^{-153}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.2 \cdot 10^{-301}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;t \leq 9 \cdot 10^{-201}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.1 \cdot 10^{+88}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -5.1000000000000001e79 or 6.0999999999999998e88 < t Initial program 67.0%
sub-neg67.0%
distribute-rgt-in66.0%
*-commutative66.0%
distribute-rgt-neg-in66.0%
Applied egg-rr66.0%
Taylor expanded in t around inf 68.3%
associate-*r*68.3%
neg-mul-168.3%
cancel-sign-sub68.3%
+-commutative68.3%
mul-1-neg68.3%
unsub-neg68.3%
Simplified68.3%
if -5.1000000000000001e79 < t < -2.10000000000000004e-153 or 1.19999999999999996e-301 < t < 9.0000000000000004e-201Initial program 81.5%
sub-neg81.5%
distribute-rgt-in81.5%
*-commutative81.5%
distribute-rgt-neg-in81.5%
Applied egg-rr81.5%
Taylor expanded in j around inf 63.5%
if -2.10000000000000004e-153 < t < 1.19999999999999996e-301Initial program 86.3%
Taylor expanded in y around inf 66.6%
+-commutative66.6%
mul-1-neg66.6%
unsub-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
if 9.0000000000000004e-201 < t < 6.0999999999999998e88Initial program 81.6%
Taylor expanded in c around inf 52.7%
*-commutative52.7%
Simplified52.7%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* c (* a j))))
(if (<= j -4.3e+48)
t_2
(if (<= j -3.4e-128)
t_1
(if (<= j -4.6e-285)
(* y (* x z))
(if (<= j 2.8e-227) t_1 (if (<= j 3.8e-55) (* z (* x y)) t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = c * (a * j);
double tmp;
if (j <= -4.3e+48) {
tmp = t_2;
} else if (j <= -3.4e-128) {
tmp = t_1;
} else if (j <= -4.6e-285) {
tmp = y * (x * z);
} else if (j <= 2.8e-227) {
tmp = t_1;
} else if (j <= 3.8e-55) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = c * (a * j)
if (j <= (-4.3d+48)) then
tmp = t_2
else if (j <= (-3.4d-128)) then
tmp = t_1
else if (j <= (-4.6d-285)) then
tmp = y * (x * z)
else if (j <= 2.8d-227) then
tmp = t_1
else if (j <= 3.8d-55) then
tmp = z * (x * y)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (z * -b);
double t_2 = c * (a * j);
double tmp;
if (j <= -4.3e+48) {
tmp = t_2;
} else if (j <= -3.4e-128) {
tmp = t_1;
} else if (j <= -4.6e-285) {
tmp = y * (x * z);
} else if (j <= 2.8e-227) {
tmp = t_1;
} else if (j <= 3.8e-55) {
tmp = z * (x * y);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = c * (a * j) tmp = 0 if j <= -4.3e+48: tmp = t_2 elif j <= -3.4e-128: tmp = t_1 elif j <= -4.6e-285: tmp = y * (x * z) elif j <= 2.8e-227: tmp = t_1 elif j <= 3.8e-55: tmp = z * (x * y) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (j <= -4.3e+48) tmp = t_2; elseif (j <= -3.4e-128) tmp = t_1; elseif (j <= -4.6e-285) tmp = Float64(y * Float64(x * z)); elseif (j <= 2.8e-227) tmp = t_1; elseif (j <= 3.8e-55) tmp = Float64(z * Float64(x * y)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (z * -b); t_2 = c * (a * j); tmp = 0.0; if (j <= -4.3e+48) tmp = t_2; elseif (j <= -3.4e-128) tmp = t_1; elseif (j <= -4.6e-285) tmp = y * (x * z); elseif (j <= 2.8e-227) tmp = t_1; elseif (j <= 3.8e-55) tmp = z * (x * y); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.3e+48], t$95$2, If[LessEqual[j, -3.4e-128], t$95$1, If[LessEqual[j, -4.6e-285], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e-227], t$95$1, If[LessEqual[j, 3.8e-55], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;j \leq -4.3 \cdot 10^{+48}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -3.4 \cdot 10^{-128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -4.6 \cdot 10^{-285}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{-227}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.8 \cdot 10^{-55}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -4.29999999999999978e48 or 3.7999999999999997e-55 < j Initial program 78.1%
Taylor expanded in c around inf 47.8%
*-commutative47.8%
Simplified47.8%
Taylor expanded in j around inf 42.2%
*-commutative42.2%
Simplified42.2%
if -4.29999999999999978e48 < j < -3.39999999999999975e-128 or -4.59999999999999993e-285 < j < 2.7999999999999998e-227Initial program 74.7%
Taylor expanded in c around inf 40.4%
*-commutative40.4%
Simplified40.4%
Taylor expanded in j around 0 35.7%
neg-mul-135.7%
distribute-rgt-neg-in35.7%
Simplified35.7%
if -3.39999999999999975e-128 < j < -4.59999999999999993e-285Initial program 69.1%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in z around inf 37.3%
*-commutative37.3%
associate-*l*43.9%
*-commutative43.9%
Simplified43.9%
if 2.7999999999999998e-227 < j < 3.7999999999999997e-55Initial program 80.5%
Taylor expanded in y around inf 43.4%
+-commutative43.4%
mul-1-neg43.4%
unsub-neg43.4%
*-commutative43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in z around inf 36.2%
associate-*r*38.4%
*-commutative38.4%
Simplified38.4%
Final simplification40.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* t b))))
(if (<= c -2.45e+89)
(* c (* z (- b)))
(if (<= c -1.75e-64)
(* x (* t (- a)))
(if (<= c -9.8e-214)
t_1
(if (<= c 2.4e-122)
(* y (* x z))
(if (<= c 14200000.0) t_1 (* c (* a j)))))))))
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);
double tmp;
if (c <= -2.45e+89) {
tmp = c * (z * -b);
} else if (c <= -1.75e-64) {
tmp = x * (t * -a);
} else if (c <= -9.8e-214) {
tmp = t_1;
} else if (c <= 2.4e-122) {
tmp = y * (x * z);
} else if (c <= 14200000.0) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = i * (t * b)
if (c <= (-2.45d+89)) then
tmp = c * (z * -b)
else if (c <= (-1.75d-64)) then
tmp = x * (t * -a)
else if (c <= (-9.8d-214)) then
tmp = t_1
else if (c <= 2.4d-122) then
tmp = y * (x * z)
else if (c <= 14200000.0d0) then
tmp = t_1
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 t_1 = i * (t * b);
double tmp;
if (c <= -2.45e+89) {
tmp = c * (z * -b);
} else if (c <= -1.75e-64) {
tmp = x * (t * -a);
} else if (c <= -9.8e-214) {
tmp = t_1;
} else if (c <= 2.4e-122) {
tmp = y * (x * z);
} else if (c <= 14200000.0) {
tmp = t_1;
} else {
tmp = c * (a * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (t * b) tmp = 0 if c <= -2.45e+89: tmp = c * (z * -b) elif c <= -1.75e-64: tmp = x * (t * -a) elif c <= -9.8e-214: tmp = t_1 elif c <= 2.4e-122: tmp = y * (x * z) elif c <= 14200000.0: tmp = t_1 else: tmp = c * (a * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(t * b)) tmp = 0.0 if (c <= -2.45e+89) tmp = Float64(c * Float64(z * Float64(-b))); elseif (c <= -1.75e-64) tmp = Float64(x * Float64(t * Float64(-a))); elseif (c <= -9.8e-214) tmp = t_1; elseif (c <= 2.4e-122) tmp = Float64(y * Float64(x * z)); elseif (c <= 14200000.0) tmp = t_1; else tmp = Float64(c * Float64(a * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (t * b); tmp = 0.0; if (c <= -2.45e+89) tmp = c * (z * -b); elseif (c <= -1.75e-64) tmp = x * (t * -a); elseif (c <= -9.8e-214) tmp = t_1; elseif (c <= 2.4e-122) tmp = y * (x * z); elseif (c <= 14200000.0) tmp = t_1; else tmp = c * (a * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.45e+89], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.75e-64], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -9.8e-214], t$95$1, If[LessEqual[c, 2.4e-122], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 14200000.0], t$95$1, N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right)\\
\mathbf{if}\;c \leq -2.45 \cdot 10^{+89}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -1.75 \cdot 10^{-64}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq -9.8 \cdot 10^{-214}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.4 \cdot 10^{-122}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 14200000:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if c < -2.44999999999999998e89Initial program 70.7%
Taylor expanded in c around inf 70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in j around 0 47.8%
neg-mul-147.8%
distribute-rgt-neg-in47.8%
Simplified47.8%
if -2.44999999999999998e89 < c < -1.7500000000000002e-64Initial program 67.3%
sub-neg67.3%
distribute-rgt-in67.3%
*-commutative67.3%
distribute-rgt-neg-in67.3%
Applied egg-rr67.3%
Taylor expanded in x around inf 44.0%
Taylor expanded in y around 0 35.3%
associate-*r*35.3%
neg-mul-135.3%
Simplified35.3%
if -1.7500000000000002e-64 < c < -9.79999999999999935e-214 or 2.39999999999999987e-122 < c < 1.42e7Initial program 83.0%
Taylor expanded in i around inf 55.1%
distribute-lft-out--55.1%
Simplified55.1%
Taylor expanded in j around 0 30.8%
pow130.8%
Applied egg-rr30.8%
unpow130.8%
*-commutative30.8%
associate-*r*38.4%
Simplified38.4%
if -9.79999999999999935e-214 < c < 2.39999999999999987e-122Initial program 83.2%
Taylor expanded in y around inf 57.9%
+-commutative57.9%
mul-1-neg57.9%
unsub-neg57.9%
*-commutative57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in z around inf 32.3%
*-commutative32.3%
associate-*l*35.9%
*-commutative35.9%
Simplified35.9%
if 1.42e7 < c Initial program 74.4%
Taylor expanded in c around inf 62.8%
*-commutative62.8%
Simplified62.8%
Taylor expanded in j around inf 43.7%
*-commutative43.7%
Simplified43.7%
Final simplification40.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -3.2e+57)
t_1
(if (<= a -1.6e+28)
(* i (* y (- j)))
(if (or (<= a -750000.0) (not (<= a 7e+63)))
t_1
(* 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.2e+57) {
tmp = t_1;
} else if (a <= -1.6e+28) {
tmp = i * (y * -j);
} else if ((a <= -750000.0) || !(a <= 7e+63)) {
tmp = t_1;
} 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) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-3.2d+57)) then
tmp = t_1
else if (a <= (-1.6d+28)) then
tmp = i * (y * -j)
else if ((a <= (-750000.0d0)) .or. (.not. (a <= 7d+63))) then
tmp = t_1
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 t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -3.2e+57) {
tmp = t_1;
} else if (a <= -1.6e+28) {
tmp = i * (y * -j);
} else if ((a <= -750000.0) || !(a <= 7e+63)) {
tmp = t_1;
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -3.2e+57: tmp = t_1 elif a <= -1.6e+28: tmp = i * (y * -j) elif (a <= -750000.0) or not (a <= 7e+63): tmp = t_1 else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -3.2e+57) tmp = t_1; elseif (a <= -1.6e+28) tmp = Float64(i * Float64(y * Float64(-j))); elseif ((a <= -750000.0) || !(a <= 7e+63)) tmp = t_1; 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) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -3.2e+57) tmp = t_1; elseif (a <= -1.6e+28) tmp = i * (y * -j); elseif ((a <= -750000.0) || ~((a <= 7e+63))) tmp = t_1; else tmp = 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[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.2e+57], t$95$1, If[LessEqual[a, -1.6e+28], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[a, -750000.0], N[Not[LessEqual[a, 7e+63]], $MachinePrecision]], t$95$1, N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -3.2 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{+28}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq -750000 \lor \neg \left(a \leq 7 \cdot 10^{+63}\right):\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -3.20000000000000029e57 or -1.6e28 < a < -7.5e5 or 7.00000000000000059e63 < a Initial program 68.9%
Taylor expanded in a around inf 72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
Simplified72.6%
if -3.20000000000000029e57 < a < -1.6e28Initial program 59.6%
Taylor expanded in i around inf 86.2%
distribute-lft-out--86.2%
Simplified86.2%
Taylor expanded in j around inf 86.2%
associate-*r*86.2%
mul-1-neg86.2%
Simplified86.2%
if -7.5e5 < a < 7.00000000000000059e63Initial program 84.1%
Taylor expanded in b around inf 45.5%
Final simplification58.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -1.95e+66) (not (<= y 6.6e+136))) (* y (- (* x z) (* i j))) (+ (* 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 ((y <= -1.95e+66) || !(y <= 6.6e+136)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = (a * ((c * j) - (x * t))) + (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 ((y <= (-1.95d+66)) .or. (.not. (y <= 6.6d+136))) then
tmp = y * ((x * z) - (i * j))
else
tmp = (a * ((c * j) - (x * t))) + (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 ((y <= -1.95e+66) || !(y <= 6.6e+136)) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -1.95e+66) or not (y <= 6.6e+136): tmp = y * ((x * z) - (i * j)) else: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -1.95e+66) || !(y <= 6.6e+136)) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + 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 ((y <= -1.95e+66) || ~((y <= 6.6e+136))) tmp = y * ((x * z) - (i * j)); else tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -1.95e+66], N[Not[LessEqual[y, 6.6e+136]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(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]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.95 \cdot 10^{+66} \lor \neg \left(y \leq 6.6 \cdot 10^{+136}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if y < -1.9500000000000002e66 or 6.59999999999999984e136 < y Initial program 64.7%
Taylor expanded in y around inf 69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
if -1.9500000000000002e66 < y < 6.59999999999999984e136Initial program 81.5%
Taylor expanded in y around 0 68.3%
cancel-sign-sub-inv68.3%
*-commutative68.3%
associate-*r*68.3%
*-commutative68.3%
distribute-rgt-in71.0%
+-commutative71.0%
mul-1-neg71.0%
unsub-neg71.0%
*-commutative71.0%
distribute-lft-neg-in71.0%
sub-neg71.0%
distribute-rgt-neg-out71.0%
distribute-lft-out69.4%
+-commutative69.4%
distribute-rgt-neg-out69.4%
distribute-rgt-neg-in69.4%
mul-1-neg69.4%
Simplified71.0%
Final simplification70.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.8e-81) (not (<= b 1.25e+120))) (+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))) (- (* j (- (* a c) (* y i))) (* x (- (* t a) (* y z))))))
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.8e-81) || !(b <= 1.25e+120)) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * 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 ((b <= (-2.8d-81)) .or. (.not. (b <= 1.25d+120))) then
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
else
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * 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 ((b <= -2.8e-81) || !(b <= 1.25e+120)) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else {
tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.8e-81) or not (b <= 1.25e+120): tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) else: tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.8e-81) || !(b <= 1.25e+120)) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + 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(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.8e-81) || ~((b <= 1.25e+120))) tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); else tmp = (j * ((a * c) - (y * i))) - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.8e-81], N[Not[LessEqual[b, 1.25e+120]], $MachinePrecision]], N[(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]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.8 \cdot 10^{-81} \lor \neg \left(b \leq 1.25 \cdot 10^{+120}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\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(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if b < -2.7999999999999999e-81 or 1.25000000000000005e120 < b Initial program 77.6%
Taylor expanded in y around 0 74.6%
cancel-sign-sub-inv74.6%
*-commutative74.6%
associate-*r*74.6%
*-commutative74.6%
distribute-rgt-in77.5%
+-commutative77.5%
mul-1-neg77.5%
unsub-neg77.5%
*-commutative77.5%
distribute-lft-neg-in77.5%
sub-neg77.5%
distribute-rgt-neg-out77.5%
distribute-lft-out72.6%
+-commutative72.6%
distribute-rgt-neg-out72.6%
distribute-rgt-neg-in72.6%
mul-1-neg72.6%
Simplified77.5%
if -2.7999999999999999e-81 < b < 1.25000000000000005e120Initial program 76.1%
Taylor expanded in b around 0 70.9%
Final simplification73.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* j (- (* a c) (* y i)))))
(if (<= b -2.4e-118)
(+ t_2 t_1)
(if (<= b 1.4e+120)
(- t_2 (* x (- (* t a) (* y z))))
(+ (* 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (b <= -2.4e-118) {
tmp = t_2 + t_1;
} else if (b <= 1.4e+120) {
tmp = t_2 - (x * ((t * a) - (y * z)));
} else {
tmp = (a * ((c * j) - (x * t))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = j * ((a * c) - (y * i))
if (b <= (-2.4d-118)) then
tmp = t_2 + t_1
else if (b <= 1.4d+120) then
tmp = t_2 - (x * ((t * a) - (y * z)))
else
tmp = (a * ((c * j) - (x * t))) + 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 = b * ((t * i) - (z * c));
double t_2 = j * ((a * c) - (y * i));
double tmp;
if (b <= -2.4e-118) {
tmp = t_2 + t_1;
} else if (b <= 1.4e+120) {
tmp = t_2 - (x * ((t * a) - (y * z)));
} else {
tmp = (a * ((c * j) - (x * t))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = j * ((a * c) - (y * i)) tmp = 0 if b <= -2.4e-118: tmp = t_2 + t_1 elif b <= 1.4e+120: tmp = t_2 - (x * ((t * a) - (y * z))) else: tmp = (a * ((c * j) - (x * t))) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_2 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (b <= -2.4e-118) tmp = Float64(t_2 + t_1); elseif (b <= 1.4e+120) tmp = Float64(t_2 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); t_2 = j * ((a * c) - (y * i)); tmp = 0.0; if (b <= -2.4e-118) tmp = t_2 + t_1; elseif (b <= 1.4e+120) tmp = t_2 - (x * ((t * a) - (y * z))); else tmp = (a * ((c * j) - (x * t))) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e-118], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 1.4e+120], N[(t$95$2 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{-118}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;b \leq 1.4 \cdot 10^{+120}:\\
\;\;\;\;t\_2 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + t\_1\\
\end{array}
\end{array}
if b < -2.4000000000000001e-118Initial program 75.3%
Taylor expanded in x around 0 74.4%
if -2.4000000000000001e-118 < b < 1.4e120Initial program 75.8%
Taylor expanded in b around 0 71.0%
if 1.4e120 < b Initial program 85.7%
Taylor expanded in y around 0 85.8%
cancel-sign-sub-inv85.8%
*-commutative85.8%
associate-*r*85.8%
*-commutative85.8%
distribute-rgt-in89.4%
+-commutative89.4%
mul-1-neg89.4%
unsub-neg89.4%
*-commutative89.4%
distribute-lft-neg-in89.4%
sub-neg89.4%
distribute-rgt-neg-out89.4%
distribute-lft-out85.8%
+-commutative85.8%
distribute-rgt-neg-out85.8%
distribute-rgt-neg-in85.8%
mul-1-neg85.8%
Simplified89.4%
Final simplification74.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))) (t_2 (* c (* a j))))
(if (<= j -5.4e+49)
t_2
(if (<= j -5.4e-78)
t_1
(if (<= j -1.75e-139) (* i (* t b)) (if (<= j 3.4e-55) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (a * j);
double tmp;
if (j <= -5.4e+49) {
tmp = t_2;
} else if (j <= -5.4e-78) {
tmp = t_1;
} else if (j <= -1.75e-139) {
tmp = i * (t * b);
} else if (j <= 3.4e-55) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = y * (x * z)
t_2 = c * (a * j)
if (j <= (-5.4d+49)) then
tmp = t_2
else if (j <= (-5.4d-78)) then
tmp = t_1
else if (j <= (-1.75d-139)) then
tmp = i * (t * b)
else if (j <= 3.4d-55) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double t_2 = c * (a * j);
double tmp;
if (j <= -5.4e+49) {
tmp = t_2;
} else if (j <= -5.4e-78) {
tmp = t_1;
} else if (j <= -1.75e-139) {
tmp = i * (t * b);
} else if (j <= 3.4e-55) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) t_2 = c * (a * j) tmp = 0 if j <= -5.4e+49: tmp = t_2 elif j <= -5.4e-78: tmp = t_1 elif j <= -1.75e-139: tmp = i * (t * b) elif j <= 3.4e-55: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (j <= -5.4e+49) tmp = t_2; elseif (j <= -5.4e-78) tmp = t_1; elseif (j <= -1.75e-139) tmp = Float64(i * Float64(t * b)); elseif (j <= 3.4e-55) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); t_2 = c * (a * j); tmp = 0.0; if (j <= -5.4e+49) tmp = t_2; elseif (j <= -5.4e-78) tmp = t_1; elseif (j <= -1.75e-139) tmp = i * (t * b); elseif (j <= 3.4e-55) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -5.4e+49], t$95$2, If[LessEqual[j, -5.4e-78], t$95$1, If[LessEqual[j, -1.75e-139], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.4e-55], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;j \leq -5.4 \cdot 10^{+49}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;j \leq -5.4 \cdot 10^{-78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.75 \cdot 10^{-139}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;j \leq 3.4 \cdot 10^{-55}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if j < -5.4000000000000002e49 or 3.39999999999999973e-55 < j Initial program 77.8%
Taylor expanded in c around inf 48.5%
*-commutative48.5%
Simplified48.5%
Taylor expanded in j around inf 42.9%
*-commutative42.9%
Simplified42.9%
if -5.4000000000000002e49 < j < -5.39999999999999987e-78 or -1.75000000000000001e-139 < j < 3.39999999999999973e-55Initial program 79.2%
Taylor expanded in y around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
unsub-neg43.1%
*-commutative43.1%
*-commutative43.1%
Simplified43.1%
Taylor expanded in z around inf 29.4%
*-commutative29.4%
associate-*l*31.9%
*-commutative31.9%
Simplified31.9%
if -5.39999999999999987e-78 < j < -1.75000000000000001e-139Initial program 56.2%
Taylor expanded in i around inf 46.1%
distribute-lft-out--46.1%
Simplified46.1%
Taylor expanded in j around 0 27.3%
pow127.3%
Applied egg-rr27.3%
unpow127.3%
*-commutative27.3%
associate-*r*31.7%
Simplified31.7%
Final simplification37.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -2.4e+76)
t_1
(if (<= t 1.22e-200)
(* j (- (* a c) (* y i)))
(if (<= t 9.6e+90) (* c (- (* a j) (* z b))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -2.4e+76) {
tmp = t_1;
} else if (t <= 1.22e-200) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 9.6e+90) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * ((b * i) - (x * a))
if (t <= (-2.4d+76)) then
tmp = t_1
else if (t <= 1.22d-200) then
tmp = j * ((a * c) - (y * i))
else if (t <= 9.6d+90) then
tmp = c * ((a * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -2.4e+76) {
tmp = t_1;
} else if (t <= 1.22e-200) {
tmp = j * ((a * c) - (y * i));
} else if (t <= 9.6e+90) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -2.4e+76: tmp = t_1 elif t <= 1.22e-200: tmp = j * ((a * c) - (y * i)) elif t <= 9.6e+90: tmp = c * ((a * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -2.4e+76) tmp = t_1; elseif (t <= 1.22e-200) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (t <= 9.6e+90) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -2.4e+76) tmp = t_1; elseif (t <= 1.22e-200) tmp = j * ((a * c) - (y * i)); elseif (t <= 9.6e+90) tmp = c * ((a * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e+76], t$95$1, If[LessEqual[t, 1.22e-200], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.6e+90], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.22 \cdot 10^{-200}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;t \leq 9.6 \cdot 10^{+90}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.4e76 or 9.6000000000000004e90 < t Initial program 67.0%
sub-neg67.0%
distribute-rgt-in66.0%
*-commutative66.0%
distribute-rgt-neg-in66.0%
Applied egg-rr66.0%
Taylor expanded in t around inf 68.3%
associate-*r*68.3%
neg-mul-168.3%
cancel-sign-sub68.3%
+-commutative68.3%
mul-1-neg68.3%
unsub-neg68.3%
Simplified68.3%
if -2.4e76 < t < 1.22000000000000005e-200Initial program 83.1%
sub-neg83.1%
distribute-rgt-in82.0%
*-commutative82.0%
distribute-rgt-neg-in82.0%
Applied egg-rr82.0%
Taylor expanded in j around inf 56.5%
if 1.22000000000000005e-200 < t < 9.6000000000000004e90Initial program 81.6%
Taylor expanded in c around inf 52.7%
*-commutative52.7%
Simplified52.7%
Final simplification59.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* a j))))
(if (<= c -3.8e+35)
t_1
(if (<= c 2e-122)
(* y (* x z))
(if (<= c 6600000.0) (* 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 = c * (a * j);
double tmp;
if (c <= -3.8e+35) {
tmp = t_1;
} else if (c <= 2e-122) {
tmp = y * (x * z);
} else if (c <= 6600000.0) {
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 = c * (a * j)
if (c <= (-3.8d+35)) then
tmp = t_1
else if (c <= 2d-122) then
tmp = y * (x * z)
else if (c <= 6600000.0d0) 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 = c * (a * j);
double tmp;
if (c <= -3.8e+35) {
tmp = t_1;
} else if (c <= 2e-122) {
tmp = y * (x * z);
} else if (c <= 6600000.0) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (a * j) tmp = 0 if c <= -3.8e+35: tmp = t_1 elif c <= 2e-122: tmp = y * (x * z) elif c <= 6600000.0: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(a * j)) tmp = 0.0 if (c <= -3.8e+35) tmp = t_1; elseif (c <= 2e-122) tmp = Float64(y * Float64(x * z)); elseif (c <= 6600000.0) 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 = c * (a * j); tmp = 0.0; if (c <= -3.8e+35) tmp = t_1; elseif (c <= 2e-122) tmp = y * (x * z); elseif (c <= 6600000.0) 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[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.8e+35], t$95$1, If[LessEqual[c, 2e-122], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6600000.0], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;c \leq -3.8 \cdot 10^{+35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2 \cdot 10^{-122}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 6600000:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.8e35 or 6.6e6 < c Initial program 73.0%
Taylor expanded in c around inf 62.7%
*-commutative62.7%
Simplified62.7%
Taylor expanded in j around inf 42.0%
*-commutative42.0%
Simplified42.0%
if -3.8e35 < c < 2.00000000000000012e-122Initial program 79.1%
Taylor expanded in y around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
*-commutative51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in z around inf 25.2%
*-commutative25.2%
associate-*l*27.9%
*-commutative27.9%
Simplified27.9%
if 2.00000000000000012e-122 < c < 6.6e6Initial program 84.8%
Taylor expanded in i around inf 54.9%
distribute-lft-out--54.9%
Simplified54.9%
Taylor expanded in j around 0 43.4%
Final simplification36.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -4e-140) (not (<= t 1.95e-220))) (* a (- (* c j) (* x t))) (* 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 ((t <= -4e-140) || !(t <= 1.95e-220)) {
tmp = a * ((c * j) - (x * t));
} 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 ((t <= (-4d-140)) .or. (.not. (t <= 1.95d-220))) then
tmp = a * ((c * j) - (x * t))
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 ((t <= -4e-140) || !(t <= 1.95e-220)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = i * (y * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -4e-140) or not (t <= 1.95e-220): tmp = a * ((c * j) - (x * t)) else: tmp = i * (y * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -4e-140) || !(t <= 1.95e-220)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(i * Float64(y * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -4e-140) || ~((t <= 1.95e-220))) tmp = a * ((c * j) - (x * t)); else tmp = i * (y * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -4e-140], N[Not[LessEqual[t, 1.95e-220]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4 \cdot 10^{-140} \lor \neg \left(t \leq 1.95 \cdot 10^{-220}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if t < -3.9999999999999999e-140 or 1.95000000000000001e-220 < t Initial program 74.3%
Taylor expanded in a around inf 47.9%
+-commutative47.9%
mul-1-neg47.9%
unsub-neg47.9%
*-commutative47.9%
Simplified47.9%
if -3.9999999999999999e-140 < t < 1.95000000000000001e-220Initial program 86.4%
Taylor expanded in i around inf 46.5%
distribute-lft-out--46.5%
Simplified46.5%
Taylor expanded in j around inf 44.7%
associate-*r*44.7%
mul-1-neg44.7%
Simplified44.7%
Final simplification47.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -3.6e+34) (not (<= t 3.4e+133))) (* 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 <= -3.6e+34) || !(t <= 3.4e+133)) {
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 <= (-3.6d+34)) .or. (.not. (t <= 3.4d+133))) 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 <= -3.6e+34) || !(t <= 3.4e+133)) {
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 <= -3.6e+34) or not (t <= 3.4e+133): 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 <= -3.6e+34) || !(t <= 3.4e+133)) 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 <= -3.6e+34) || ~((t <= 3.4e+133))) 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, -3.6e+34], N[Not[LessEqual[t, 3.4e+133]], $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 -3.6 \cdot 10^{+34} \lor \neg \left(t \leq 3.4 \cdot 10^{+133}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -3.6e34 or 3.39999999999999987e133 < t Initial program 69.4%
Taylor expanded in i around inf 46.8%
distribute-lft-out--46.8%
Simplified46.8%
Taylor expanded in j around 0 32.0%
if -3.6e34 < t < 3.39999999999999987e133Initial program 80.6%
Taylor expanded in a around inf 38.9%
+-commutative38.9%
mul-1-neg38.9%
unsub-neg38.9%
*-commutative38.9%
Simplified38.9%
Taylor expanded in j around inf 30.6%
*-commutative30.6%
Simplified30.6%
Final simplification31.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -8.4e+106) (not (<= b 3.2e+50))) (* 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 ((b <= -8.4e+106) || !(b <= 3.2e+50)) {
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 ((b <= (-8.4d+106)) .or. (.not. (b <= 3.2d+50))) 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 ((b <= -8.4e+106) || !(b <= 3.2e+50)) {
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 (b <= -8.4e+106) or not (b <= 3.2e+50): 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 ((b <= -8.4e+106) || !(b <= 3.2e+50)) 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 ((b <= -8.4e+106) || ~((b <= 3.2e+50))) 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[b, -8.4e+106], N[Not[LessEqual[b, 3.2e+50]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.4 \cdot 10^{+106} \lor \neg \left(b \leq 3.2 \cdot 10^{+50}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\end{array}
\end{array}
if b < -8.40000000000000019e106 or 3.19999999999999983e50 < b Initial program 79.1%
Taylor expanded in i around inf 49.8%
distribute-lft-out--49.8%
Simplified49.8%
Taylor expanded in j around 0 37.0%
if -8.40000000000000019e106 < b < 3.19999999999999983e50Initial program 75.5%
Taylor expanded in c around inf 39.3%
*-commutative39.3%
Simplified39.3%
Taylor expanded in j around inf 29.2%
*-commutative29.2%
Simplified29.2%
Final simplification31.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -6.6e+49) (not (<= j 3.3e-55))) (* c (* a j)) (* x (* y z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.6e+49) || !(j <= 3.3e-55)) {
tmp = c * (a * j);
} else {
tmp = x * (y * 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 ((j <= (-6.6d+49)) .or. (.not. (j <= 3.3d-55))) then
tmp = c * (a * j)
else
tmp = x * (y * 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 ((j <= -6.6e+49) || !(j <= 3.3e-55)) {
tmp = c * (a * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -6.6e+49) or not (j <= 3.3e-55): tmp = c * (a * j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -6.6e+49) || !(j <= 3.3e-55)) tmp = Float64(c * Float64(a * j)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -6.6e+49) || ~((j <= 3.3e-55))) tmp = c * (a * j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -6.6e+49], N[Not[LessEqual[j, 3.3e-55]], $MachinePrecision]], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -6.6 \cdot 10^{+49} \lor \neg \left(j \leq 3.3 \cdot 10^{-55}\right):\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if j < -6.5999999999999997e49 or 3.2999999999999999e-55 < j Initial program 77.8%
Taylor expanded in c around inf 48.5%
*-commutative48.5%
Simplified48.5%
Taylor expanded in j around inf 42.9%
*-commutative42.9%
Simplified42.9%
if -6.5999999999999997e49 < j < 3.2999999999999999e-55Initial program 75.7%
Taylor expanded in y around inf 39.9%
+-commutative39.9%
mul-1-neg39.9%
unsub-neg39.9%
*-commutative39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in z around inf 26.0%
Final simplification34.1%
(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 76.7%
Taylor expanded in a around inf 42.2%
+-commutative42.2%
mul-1-neg42.2%
unsub-neg42.2%
*-commutative42.2%
Simplified42.2%
Taylor expanded in j around inf 24.4%
*-commutative24.4%
Simplified24.4%
Final simplification24.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 2024054
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(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)))))