
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 20 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* b (- (* t i) (* z c))) (* x (- (* y z) (* t a))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* t (- (* b i) (* x a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
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 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * ((b * i) - (x * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * ((b * i) - (x * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((b * ((t * i) - (z * c))) + (x * ((y * z) - (t * a)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * ((b * i) - (x * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $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[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(b \cdot \left(t \cdot i - z \cdot c\right) + x \cdot \left(y \cdot z - t \cdot a\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 92.2%
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 y around 0 28.0%
Simplified28.0%
Taylor expanded in t around inf 52.6%
+-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
*-commutative52.6%
Simplified52.6%
Final simplification84.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= j -6.1e+81) (not (<= j 8.8e+154)))
(* j (- (* a c) (* y i)))
(+
(+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j))))
(* b (- (* t i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.1e+81) || !(j <= 8.8e+154)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-6.1d+81)) .or. (.not. (j <= 8.8d+154))) then
tmp = j * ((a * c) - (y * i))
else
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -6.1e+81) || !(j <= 8.8e+154)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -6.1e+81) or not (j <= 8.8e+154): tmp = j * ((a * c) - (y * i)) else: tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -6.1e+81) || !(j <= 8.8e+154)) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = Float64(Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -6.1e+81) || ~((j <= 8.8e+154))) tmp = j * ((a * c) - (y * i)); else tmp = ((a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -6.1e+81], N[Not[LessEqual[j, 8.8e+154]], $MachinePrecision]], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $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}\;j \leq -6.1 \cdot 10^{+81} \lor \neg \left(j \leq 8.8 \cdot 10^{+154}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -6.10000000000000038e81 or 8.8000000000000004e154 < j Initial program 68.6%
Taylor expanded in i around inf 66.0%
associate-/l*63.4%
Simplified63.4%
Taylor expanded in j around inf 79.3%
*-commutative79.3%
Simplified79.3%
if -6.10000000000000038e81 < j < 8.8000000000000004e154Initial program 76.6%
Taylor expanded in y around 0 83.9%
Simplified83.9%
Final simplification82.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -1.85e-38)
t_1
(if (<= z -7e-167)
(* t (- (* b i) (* x a)))
(if (<= z 2e-111)
(* j (- (* a c) (* y i)))
(if (<= z 1.7e+23) (* j (- (* a c) (* b (* c (/ z j))))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.85e-38) {
tmp = t_1;
} else if (z <= -7e-167) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 2e-111) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.7e+23) {
tmp = j * ((a * c) - (b * (c * (z / j))));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-1.85d-38)) then
tmp = t_1
else if (z <= (-7d-167)) then
tmp = t * ((b * i) - (x * a))
else if (z <= 2d-111) then
tmp = j * ((a * c) - (y * i))
else if (z <= 1.7d+23) then
tmp = j * ((a * c) - (b * (c * (z / j))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.85e-38) {
tmp = t_1;
} else if (z <= -7e-167) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 2e-111) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.7e+23) {
tmp = j * ((a * c) - (b * (c * (z / j))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.85e-38: tmp = t_1 elif z <= -7e-167: tmp = t * ((b * i) - (x * a)) elif z <= 2e-111: tmp = j * ((a * c) - (y * i)) elif z <= 1.7e+23: tmp = j * ((a * c) - (b * (c * (z / j)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.85e-38) tmp = t_1; elseif (z <= -7e-167) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= 2e-111) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 1.7e+23) tmp = Float64(j * Float64(Float64(a * c) - Float64(b * Float64(c * Float64(z / j))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.85e-38) tmp = t_1; elseif (z <= -7e-167) tmp = t * ((b * i) - (x * a)); elseif (z <= 2e-111) tmp = j * ((a * c) - (y * i)); elseif (z <= 1.7e+23) tmp = j * ((a * c) - (b * (c * (z / j)))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.85e-38], t$95$1, If[LessEqual[z, -7e-167], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-111], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+23], N[(j * N[(N[(a * c), $MachinePrecision] - N[(b * N[(c * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-167}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-111}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+23}:\\
\;\;\;\;j \cdot \left(a \cdot c - b \cdot \left(c \cdot \frac{z}{j}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.85e-38 or 1.69999999999999996e23 < z Initial program 66.4%
Taylor expanded in z around inf 60.2%
*-commutative60.2%
Simplified60.2%
if -1.85e-38 < z < -6.9999999999999998e-167Initial program 76.3%
Taylor expanded in y around 0 81.4%
Simplified81.4%
Taylor expanded in t around inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
if -6.9999999999999998e-167 < z < 2.00000000000000018e-111Initial program 87.1%
Taylor expanded in i around inf 87.1%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in j around inf 59.9%
*-commutative59.9%
Simplified59.9%
if 2.00000000000000018e-111 < z < 1.69999999999999996e23Initial program 78.3%
Taylor expanded in y around 0 82.7%
Simplified82.7%
Taylor expanded in c around inf 66.6%
+-commutative66.6%
mul-1-neg66.6%
sub-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in b around inf 49.9%
+-commutative49.9%
mul-1-neg49.9%
unsub-neg49.9%
associate-/l*49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in j around inf 65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
*-commutative65.9%
associate-/l*65.8%
associate-/l*70.3%
Simplified70.3%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -1.7e-38)
t_1
(if (<= z -3.7e-168)
(* t (- (* b i) (* x a)))
(if (<= z 1.02e-112)
(* j (- (* a c) (* y i)))
(if (<= z 8.2e+82) (* 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.7e-38) {
tmp = t_1;
} else if (z <= -3.7e-168) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 1.02e-112) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 8.2e+82) {
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 = z * ((x * y) - (b * c))
if (z <= (-1.7d-38)) then
tmp = t_1
else if (z <= (-3.7d-168)) then
tmp = t * ((b * i) - (x * a))
else if (z <= 1.02d-112) then
tmp = j * ((a * c) - (y * i))
else if (z <= 8.2d+82) 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.7e-38) {
tmp = t_1;
} else if (z <= -3.7e-168) {
tmp = t * ((b * i) - (x * a));
} else if (z <= 1.02e-112) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 8.2e+82) {
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 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.7e-38: tmp = t_1 elif z <= -3.7e-168: tmp = t * ((b * i) - (x * a)) elif z <= 1.02e-112: tmp = j * ((a * c) - (y * i)) elif z <= 8.2e+82: 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(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.7e-38) tmp = t_1; elseif (z <= -3.7e-168) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (z <= 1.02e-112) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 8.2e+82) 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 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.7e-38) tmp = t_1; elseif (z <= -3.7e-168) tmp = t * ((b * i) - (x * a)); elseif (z <= 1.02e-112) tmp = j * ((a * c) - (y * i)); elseif (z <= 8.2e+82) 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.7e-38], t$95$1, If[LessEqual[z, -3.7e-168], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.02e-112], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+82], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.7 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.7 \cdot 10^{-168}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-112}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+82}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.7000000000000001e-38 or 8.1999999999999999e82 < z Initial program 65.0%
Taylor expanded in z around inf 60.1%
*-commutative60.1%
Simplified60.1%
if -1.7000000000000001e-38 < z < -3.69999999999999997e-168Initial program 76.3%
Taylor expanded in y around 0 81.4%
Simplified81.4%
Taylor expanded in t around inf 78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
if -3.69999999999999997e-168 < z < 1.01999999999999996e-112Initial program 87.1%
Taylor expanded in i around inf 87.1%
associate-/l*87.1%
Simplified87.1%
Taylor expanded in j around inf 59.9%
*-commutative59.9%
Simplified59.9%
if 1.01999999999999996e-112 < z < 8.1999999999999999e82Initial program 79.3%
Taylor expanded in c around inf 65.8%
Final simplification63.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -9.6e-17) (not (<= b 1.52e+28))) (- (* y (- (* x z) (* i j))) (* b (- (* z c) (* t i)))) (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -9.6e-17) || !(b <= 1.52e+28)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-9.6d-17)) .or. (.not. (b <= 1.52d+28))) then
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)))
else
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -9.6e-17) || !(b <= 1.52e+28)) {
tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i)));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -9.6e-17) or not (b <= 1.52e+28): tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i))) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -9.6e-17) || !(b <= 1.52e+28)) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -9.6e-17) || ~((b <= 1.52e+28))) tmp = (y * ((x * z) - (i * j))) - (b * ((z * c) - (t * i))); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -9.6e-17], N[Not[LessEqual[b, 1.52e+28]], $MachinePrecision]], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.6 \cdot 10^{-17} \lor \neg \left(b \leq 1.52 \cdot 10^{+28}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - b \cdot \left(z \cdot c - t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -9.59999999999999945e-17 or 1.52000000000000009e28 < b Initial program 73.8%
Taylor expanded in a around 0 66.3%
Simplified69.7%
if -9.59999999999999945e-17 < b < 1.52000000000000009e28Initial program 74.5%
Taylor expanded in b around 0 74.2%
Final simplification72.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.02e-15) (not (<= b 2e+94))) (* b (* i (- t (* c (/ z i))))) (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.02e-15) || !(b <= 2e+94)) {
tmp = b * (i * (t - (c * (z / i))));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.02d-15)) .or. (.not. (b <= 2d+94))) then
tmp = b * (i * (t - (c * (z / i))))
else
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.02e-15) || !(b <= 2e+94)) {
tmp = b * (i * (t - (c * (z / i))));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.02e-15) or not (b <= 2e+94): tmp = b * (i * (t - (c * (z / i)))) else: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.02e-15) || !(b <= 2e+94)) tmp = Float64(b * Float64(i * Float64(t - Float64(c * Float64(z / i))))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.02e-15) || ~((b <= 2e+94))) tmp = b * (i * (t - (c * (z / i)))); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.02e-15], N[Not[LessEqual[b, 2e+94]], $MachinePrecision]], N[(b * N[(i * N[(t - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.02 \cdot 10^{-15} \lor \neg \left(b \leq 2 \cdot 10^{+94}\right):\\
\;\;\;\;b \cdot \left(i \cdot \left(t - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -1.02e-15 or 2e94 < b Initial program 73.0%
Taylor expanded in i around inf 72.9%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in b around inf 69.4%
associate-*r*69.4%
neg-mul-169.4%
associate-/l*69.4%
Simplified69.4%
if -1.02e-15 < b < 2e94Initial program 75.0%
Taylor expanded in b around 0 72.7%
Final simplification71.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -5.4e+140) (not (<= t 4.5e+70))) (* t (- (* b i) (* x a))) (+ (* a (- (* c j) (* x t))) (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5.4e+140) || !(t <= 4.5e+70)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-5.4d+140)) .or. (.not. (t <= 4.5d+70))) then
tmp = t * ((b * i) - (x * a))
else
tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -5.4e+140) || !(t <= 4.5e+70)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -5.4e+140) or not (t <= 4.5e+70): tmp = t * ((b * i) - (x * a)) else: tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -5.4e+140) || !(t <= 4.5e+70)) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -5.4e+140) || ~((t <= 4.5e+70))) tmp = t * ((b * i) - (x * a)); else tmp = (a * ((c * j) - (x * t))) + (y * ((x * z) - (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -5.4e+140], N[Not[LessEqual[t, 4.5e+70]], $MachinePrecision]], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.4 \cdot 10^{+140} \lor \neg \left(t \leq 4.5 \cdot 10^{+70}\right):\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if t < -5.40000000000000036e140 or 4.4999999999999999e70 < t Initial program 56.0%
Taylor expanded in y around 0 59.8%
Simplified59.8%
Taylor expanded in t around inf 72.5%
+-commutative72.5%
mul-1-neg72.5%
unsub-neg72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
if -5.40000000000000036e140 < t < 4.4999999999999999e70Initial program 81.3%
Taylor expanded in y around 0 80.6%
Simplified80.6%
Taylor expanded in b around 0 67.5%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -3e-38)
(* y (* x z))
(if (<= z -1.15e-134)
(* t (* b i))
(if (<= z 5.4e+25)
(* a (* c j))
(if (<= z 6.6e+59) (* c (* z (- b))) (* 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 (z <= -3e-38) {
tmp = y * (x * z);
} else if (z <= -1.15e-134) {
tmp = t * (b * i);
} else if (z <= 5.4e+25) {
tmp = a * (c * j);
} else if (z <= 6.6e+59) {
tmp = c * (z * -b);
} 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 (z <= (-3d-38)) then
tmp = y * (x * z)
else if (z <= (-1.15d-134)) then
tmp = t * (b * i)
else if (z <= 5.4d+25) then
tmp = a * (c * j)
else if (z <= 6.6d+59) then
tmp = c * (z * -b)
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 (z <= -3e-38) {
tmp = y * (x * z);
} else if (z <= -1.15e-134) {
tmp = t * (b * i);
} else if (z <= 5.4e+25) {
tmp = a * (c * j);
} else if (z <= 6.6e+59) {
tmp = c * (z * -b);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3e-38: tmp = y * (x * z) elif z <= -1.15e-134: tmp = t * (b * i) elif z <= 5.4e+25: tmp = a * (c * j) elif z <= 6.6e+59: tmp = c * (z * -b) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3e-38) tmp = Float64(y * Float64(x * z)); elseif (z <= -1.15e-134) tmp = Float64(t * Float64(b * i)); elseif (z <= 5.4e+25) tmp = Float64(a * Float64(c * j)); elseif (z <= 6.6e+59) tmp = Float64(c * Float64(z * Float64(-b))); 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 (z <= -3e-38) tmp = y * (x * z); elseif (z <= -1.15e-134) tmp = t * (b * i); elseif (z <= 5.4e+25) tmp = a * (c * j); elseif (z <= 6.6e+59) tmp = c * (z * -b); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3e-38], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.15e-134], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.4e+25], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e+59], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3 \cdot 10^{-38}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -1.15 \cdot 10^{-134}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{+25}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{+59}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -2.99999999999999989e-38Initial program 67.6%
Taylor expanded in y around 0 71.3%
Simplified71.3%
Taylor expanded in z around inf 57.8%
+-commutative57.8%
mul-1-neg57.8%
sub-neg57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in y around inf 42.0%
*-commutative42.0%
associate-*r*45.7%
Simplified45.7%
if -2.99999999999999989e-38 < z < -1.15e-134Initial program 72.6%
Taylor expanded in i around inf 51.7%
distribute-lft-out--51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in j around 0 47.1%
associate-*r*51.0%
*-commutative51.0%
Simplified51.0%
if -1.15e-134 < z < 5.4e25Initial program 85.1%
Taylor expanded in a around inf 49.7%
+-commutative49.7%
mul-1-neg49.7%
unsub-neg49.7%
Simplified49.7%
Taylor expanded in c around inf 36.3%
*-commutative36.3%
Simplified36.3%
if 5.4e25 < z < 6.5999999999999999e59Initial program 99.6%
Taylor expanded in y around 0 86.1%
Simplified86.1%
Taylor expanded in c around inf 85.9%
+-commutative85.9%
mul-1-neg85.9%
sub-neg85.9%
*-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in j around 0 85.9%
mul-1-neg85.9%
*-commutative85.9%
distribute-rgt-neg-in85.9%
Simplified85.9%
if 6.5999999999999999e59 < z Initial program 59.9%
Taylor expanded in i around 0 62.2%
Taylor expanded in a around 0 62.2%
Taylor expanded in y around inf 49.2%
*-commutative49.2%
Simplified49.2%
Final simplification44.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.02e-15) (not (<= b 3e+50))) (* b (* i (- t (* c (/ z i))))) (+ (* x (- (* y z) (* t a))) (* a (* c j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.02e-15) || !(b <= 3e+50)) {
tmp = b * (i * (t - (c * (z / i))));
} else {
tmp = (x * ((y * z) - (t * a))) + (a * (c * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.02d-15)) .or. (.not. (b <= 3d+50))) then
tmp = b * (i * (t - (c * (z / i))))
else
tmp = (x * ((y * z) - (t * a))) + (a * (c * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.02e-15) || !(b <= 3e+50)) {
tmp = b * (i * (t - (c * (z / i))));
} else {
tmp = (x * ((y * z) - (t * a))) + (a * (c * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.02e-15) or not (b <= 3e+50): tmp = b * (i * (t - (c * (z / i)))) else: tmp = (x * ((y * z) - (t * a))) + (a * (c * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.02e-15) || !(b <= 3e+50)) tmp = Float64(b * Float64(i * Float64(t - Float64(c * Float64(z / i))))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(a * Float64(c * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.02e-15) || ~((b <= 3e+50))) tmp = b * (i * (t - (c * (z / i)))); else tmp = (x * ((y * z) - (t * a))) + (a * (c * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.02e-15], N[Not[LessEqual[b, 3e+50]], $MachinePrecision]], N[(b * N[(i * N[(t - N[(c * N[(z / i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.02 \cdot 10^{-15} \lor \neg \left(b \leq 3 \cdot 10^{+50}\right):\\
\;\;\;\;b \cdot \left(i \cdot \left(t - c \cdot \frac{z}{i}\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -1.02e-15 or 2.9999999999999998e50 < b Initial program 73.8%
Taylor expanded in i around inf 72.8%
associate-/l*72.0%
Simplified72.0%
Taylor expanded in b around inf 67.8%
associate-*r*67.8%
neg-mul-167.8%
associate-/l*67.8%
Simplified67.8%
if -1.02e-15 < b < 2.9999999999999998e50Initial program 74.5%
Taylor expanded in i around 0 65.7%
Taylor expanded in b around 0 65.6%
Final simplification66.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -3.8e+87)
t_1
(if (<= j -6e-90)
(* c (- (* a j) (* z b)))
(if (<= j 2.8e+21) (* x (- (* y z) (* t a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+87) {
tmp = t_1;
} else if (j <= -6e-90) {
tmp = c * ((a * j) - (z * b));
} else if (j <= 2.8e+21) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-3.8d+87)) then
tmp = t_1
else if (j <= (-6d-90)) then
tmp = c * ((a * j) - (z * b))
else if (j <= 2.8d+21) then
tmp = x * ((y * z) - (t * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -3.8e+87) {
tmp = t_1;
} else if (j <= -6e-90) {
tmp = c * ((a * j) - (z * b));
} else if (j <= 2.8e+21) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -3.8e+87: tmp = t_1 elif j <= -6e-90: tmp = c * ((a * j) - (z * b)) elif j <= 2.8e+21: tmp = x * ((y * z) - (t * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -3.8e+87) tmp = t_1; elseif (j <= -6e-90) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (j <= 2.8e+21) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -3.8e+87) tmp = t_1; elseif (j <= -6e-90) tmp = c * ((a * j) - (z * b)); elseif (j <= 2.8e+21) tmp = x * ((y * z) - (t * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3.8e+87], t$95$1, If[LessEqual[j, -6e-90], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.8e+21], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3.8 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6 \cdot 10^{-90}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;j \leq 2.8 \cdot 10^{+21}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -3.80000000000000011e87 or 2.8e21 < j Initial program 73.9%
Taylor expanded in i around inf 71.1%
associate-/l*69.2%
Simplified69.2%
Taylor expanded in j around inf 71.4%
*-commutative71.4%
Simplified71.4%
if -3.80000000000000011e87 < j < -6.00000000000000041e-90Initial program 73.4%
Taylor expanded in c around inf 51.0%
if -6.00000000000000041e-90 < j < 2.8e21Initial program 74.7%
Taylor expanded in y around 0 83.2%
Simplified83.2%
Taylor expanded in x around inf 51.4%
+-commutative51.4%
mul-1-neg51.4%
sub-neg51.4%
Simplified51.4%
Final simplification59.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -4.4e+90)
t_1
(if (<= i -2.8e-86)
(* x (* y z))
(if (<= i 6e+40) (* 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.4e+90) {
tmp = t_1;
} else if (i <= -2.8e-86) {
tmp = x * (y * z);
} else if (i <= 6e+40) {
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 = i * ((t * b) - (y * j))
if (i <= (-4.4d+90)) then
tmp = t_1
else if (i <= (-2.8d-86)) then
tmp = x * (y * z)
else if (i <= 6d+40) 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 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4.4e+90) {
tmp = t_1;
} else if (i <= -2.8e-86) {
tmp = x * (y * z);
} else if (i <= 6e+40) {
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 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4.4e+90: tmp = t_1 elif i <= -2.8e-86: tmp = x * (y * z) elif i <= 6e+40: 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(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4.4e+90) tmp = t_1; elseif (i <= -2.8e-86) tmp = Float64(x * Float64(y * z)); elseif (i <= 6e+40) 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 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4.4e+90) tmp = t_1; elseif (i <= -2.8e-86) tmp = x * (y * z); elseif (i <= 6e+40) 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[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4.4e+90], t$95$1, If[LessEqual[i, -2.8e-86], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6e+40], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4.4 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-86}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;i \leq 6 \cdot 10^{+40}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -4.39999999999999981e90 or 6.0000000000000004e40 < i Initial program 61.9%
Taylor expanded in y around 0 67.4%
Simplified67.4%
Taylor expanded in i around inf 66.0%
+-commutative66.0%
*-commutative66.0%
mul-1-neg66.0%
unsub-neg66.0%
*-commutative66.0%
Simplified66.0%
if -4.39999999999999981e90 < i < -2.80000000000000009e-86Initial program 80.3%
Taylor expanded in i around 0 65.0%
Taylor expanded in a around 0 61.7%
Taylor expanded in y around inf 52.2%
*-commutative52.2%
Simplified52.2%
if -2.80000000000000009e-86 < i < 6.0000000000000004e40Initial program 83.0%
Taylor expanded in c around inf 52.9%
Final simplification58.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2e-39)
(* y (* x z))
(if (<= z -6e-135)
(* t (* b i))
(if (<= z 6.8e+43) (* a (* c 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 (z <= -2e-39) {
tmp = y * (x * z);
} else if (z <= -6e-135) {
tmp = t * (b * i);
} else if (z <= 6.8e+43) {
tmp = a * (c * 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 (z <= (-2d-39)) then
tmp = y * (x * z)
else if (z <= (-6d-135)) then
tmp = t * (b * i)
else if (z <= 6.8d+43) then
tmp = a * (c * 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 (z <= -2e-39) {
tmp = y * (x * z);
} else if (z <= -6e-135) {
tmp = t * (b * i);
} else if (z <= 6.8e+43) {
tmp = a * (c * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2e-39: tmp = y * (x * z) elif z <= -6e-135: tmp = t * (b * i) elif z <= 6.8e+43: tmp = a * (c * j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2e-39) tmp = Float64(y * Float64(x * z)); elseif (z <= -6e-135) tmp = Float64(t * Float64(b * i)); elseif (z <= 6.8e+43) tmp = Float64(a * Float64(c * 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 (z <= -2e-39) tmp = y * (x * z); elseif (z <= -6e-135) tmp = t * (b * i); elseif (z <= 6.8e+43) tmp = a * (c * j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2e-39], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6e-135], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.8e+43], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{-39}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -6 \cdot 10^{-135}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 6.8 \cdot 10^{+43}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -1.99999999999999986e-39Initial program 67.6%
Taylor expanded in y around 0 71.3%
Simplified71.3%
Taylor expanded in z around inf 57.8%
+-commutative57.8%
mul-1-neg57.8%
sub-neg57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in y around inf 42.0%
*-commutative42.0%
associate-*r*45.7%
Simplified45.7%
if -1.99999999999999986e-39 < z < -6.00000000000000024e-135Initial program 72.6%
Taylor expanded in i around inf 51.7%
distribute-lft-out--51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in j around 0 47.1%
associate-*r*51.0%
*-commutative51.0%
Simplified51.0%
if -6.00000000000000024e-135 < z < 6.80000000000000024e43Initial program 85.8%
Taylor expanded in a around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
Taylor expanded in c around inf 35.6%
*-commutative35.6%
Simplified35.6%
if 6.80000000000000024e43 < z Initial program 61.4%
Taylor expanded in i around 0 63.6%
Taylor expanded in a around 0 63.6%
Taylor expanded in y around inf 48.6%
*-commutative48.6%
Simplified48.6%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2.3e-38)
(* y (* x z))
(if (<= z -1e-134)
(* b (* t i))
(if (<= z 1.12e+45) (* a (* c 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 (z <= -2.3e-38) {
tmp = y * (x * z);
} else if (z <= -1e-134) {
tmp = b * (t * i);
} else if (z <= 1.12e+45) {
tmp = a * (c * 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 (z <= (-2.3d-38)) then
tmp = y * (x * z)
else if (z <= (-1d-134)) then
tmp = b * (t * i)
else if (z <= 1.12d+45) then
tmp = a * (c * 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 (z <= -2.3e-38) {
tmp = y * (x * z);
} else if (z <= -1e-134) {
tmp = b * (t * i);
} else if (z <= 1.12e+45) {
tmp = a * (c * j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.3e-38: tmp = y * (x * z) elif z <= -1e-134: tmp = b * (t * i) elif z <= 1.12e+45: tmp = a * (c * j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.3e-38) tmp = Float64(y * Float64(x * z)); elseif (z <= -1e-134) tmp = Float64(b * Float64(t * i)); elseif (z <= 1.12e+45) tmp = Float64(a * Float64(c * 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 (z <= -2.3e-38) tmp = y * (x * z); elseif (z <= -1e-134) tmp = b * (t * i); elseif (z <= 1.12e+45) tmp = a * (c * j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.3e-38], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1e-134], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.12e+45], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.3 \cdot 10^{-38}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-134}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{+45}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -2.30000000000000002e-38Initial program 67.6%
Taylor expanded in y around 0 71.3%
Simplified71.3%
Taylor expanded in z around inf 57.8%
+-commutative57.8%
mul-1-neg57.8%
sub-neg57.8%
*-commutative57.8%
*-commutative57.8%
Simplified57.8%
Taylor expanded in y around inf 42.0%
*-commutative42.0%
associate-*r*45.7%
Simplified45.7%
if -2.30000000000000002e-38 < z < -1.00000000000000004e-134Initial program 72.6%
Taylor expanded in i around inf 51.7%
distribute-lft-out--51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in j around 0 47.1%
if -1.00000000000000004e-134 < z < 1.12e45Initial program 85.8%
Taylor expanded in a around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
Taylor expanded in c around inf 35.6%
*-commutative35.6%
Simplified35.6%
if 1.12e45 < z Initial program 61.4%
Taylor expanded in i around 0 63.6%
Taylor expanded in a around 0 63.6%
Taylor expanded in y around inf 48.6%
*-commutative48.6%
Simplified48.6%
Final simplification42.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -3.5e-38)
t_1
(if (<= z -1.05e-134)
(* b (* t i))
(if (<= z 4.2e+43) (* a (* c j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (z <= -3.5e-38) {
tmp = t_1;
} else if (z <= -1.05e-134) {
tmp = b * (t * i);
} else if (z <= 4.2e+43) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (z <= (-3.5d-38)) then
tmp = t_1
else if (z <= (-1.05d-134)) then
tmp = b * (t * i)
else if (z <= 4.2d+43) then
tmp = a * (c * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (z <= -3.5e-38) {
tmp = t_1;
} else if (z <= -1.05e-134) {
tmp = b * (t * i);
} else if (z <= 4.2e+43) {
tmp = a * (c * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -3.5e-38: tmp = t_1 elif z <= -1.05e-134: tmp = b * (t * i) elif z <= 4.2e+43: tmp = a * (c * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -3.5e-38) tmp = t_1; elseif (z <= -1.05e-134) tmp = Float64(b * Float64(t * i)); elseif (z <= 4.2e+43) tmp = Float64(a * Float64(c * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (z <= -3.5e-38) tmp = t_1; elseif (z <= -1.05e-134) tmp = b * (t * i); elseif (z <= 4.2e+43) tmp = a * (c * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -3.5e-38], t$95$1, If[LessEqual[z, -1.05e-134], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+43], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -3.5 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{-134}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+43}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -3.5000000000000001e-38 or 4.20000000000000003e43 < z Initial program 65.1%
Taylor expanded in i around 0 63.9%
Taylor expanded in a around 0 60.7%
Taylor expanded in y around inf 44.7%
*-commutative44.7%
Simplified44.7%
if -3.5000000000000001e-38 < z < -1.05e-134Initial program 72.6%
Taylor expanded in i around inf 51.7%
distribute-lft-out--51.7%
*-commutative51.7%
Simplified51.7%
Taylor expanded in j around 0 47.1%
if -1.05e-134 < z < 4.20000000000000003e43Initial program 85.8%
Taylor expanded in a around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
Taylor expanded in c around inf 35.6%
*-commutative35.6%
Simplified35.6%
Final simplification41.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.6e+80) (not (<= b 3e+50))) (* b (- (* t i) (* z c))) (* a (- (* c j) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.6e+80) || !(b <= 3e+50)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-3.6d+80)) .or. (.not. (b <= 3d+50))) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -3.6e+80) || !(b <= 3e+50)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.6e+80) or not (b <= 3e+50): tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.6e+80) || !(b <= 3e+50)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -3.6e+80) || ~((b <= 3e+50))) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.6e+80], N[Not[LessEqual[b, 3e+50]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+80} \lor \neg \left(b \leq 3 \cdot 10^{+50}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if b < -3.59999999999999995e80 or 2.9999999999999998e50 < b Initial program 73.0%
Taylor expanded in b around inf 67.2%
*-commutative67.2%
Simplified67.2%
if -3.59999999999999995e80 < b < 2.9999999999999998e50Initial program 74.9%
Taylor expanded in a around inf 43.6%
+-commutative43.6%
mul-1-neg43.6%
unsub-neg43.6%
Simplified43.6%
Final simplification52.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -2.2e-40) (* y (* x z)) (if (<= z 2.8e+89) (* a (- (* c j) (* x t))) (* 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 (z <= -2.2e-40) {
tmp = y * (x * z);
} else if (z <= 2.8e+89) {
tmp = a * ((c * j) - (x * t));
} 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 (z <= (-2.2d-40)) then
tmp = y * (x * z)
else if (z <= 2.8d+89) then
tmp = a * ((c * j) - (x * t))
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 (z <= -2.2e-40) {
tmp = y * (x * z);
} else if (z <= 2.8e+89) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.2e-40: tmp = y * (x * z) elif z <= 2.8e+89: tmp = a * ((c * j) - (x * t)) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.2e-40) tmp = Float64(y * Float64(x * z)); elseif (z <= 2.8e+89) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); 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 (z <= -2.2e-40) tmp = y * (x * z); elseif (z <= 2.8e+89) tmp = a * ((c * j) - (x * t)); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.2e-40], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.8e+89], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.2 \cdot 10^{-40}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{+89}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -2.20000000000000009e-40Initial program 68.0%
Taylor expanded in y around 0 71.7%
Simplified71.7%
Taylor expanded in z around inf 57.1%
+-commutative57.1%
mul-1-neg57.1%
sub-neg57.1%
*-commutative57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in y around inf 41.5%
*-commutative41.5%
associate-*r*45.1%
Simplified45.1%
if -2.20000000000000009e-40 < z < 2.7999999999999998e89Initial program 82.6%
Taylor expanded in a around inf 47.4%
+-commutative47.4%
mul-1-neg47.4%
unsub-neg47.4%
Simplified47.4%
if 2.7999999999999998e89 < z Initial program 59.9%
Taylor expanded in i around 0 64.6%
Taylor expanded in a around 0 62.4%
Taylor expanded in y around inf 52.2%
*-commutative52.2%
Simplified52.2%
Final simplification47.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1.15e+109) (not (<= c 1.85e+121))) (* j (* a c)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.15e+109) || !(c <= 1.85e+121)) {
tmp = j * (a * c);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1.15d+109)) .or. (.not. (c <= 1.85d+121))) then
tmp = j * (a * c)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.15e+109) || !(c <= 1.85e+121)) {
tmp = j * (a * c);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.15e+109) or not (c <= 1.85e+121): tmp = j * (a * c) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.15e+109) || !(c <= 1.85e+121)) tmp = Float64(j * Float64(a * c)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.15e+109) || ~((c <= 1.85e+121))) tmp = j * (a * c); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.15e+109], N[Not[LessEqual[c, 1.85e+121]], $MachinePrecision]], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.15 \cdot 10^{+109} \lor \neg \left(c \leq 1.85 \cdot 10^{+121}\right):\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if c < -1.15000000000000005e109 or 1.85000000000000006e121 < c Initial program 66.4%
Taylor expanded in a around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 52.3%
associate-*r*54.4%
*-commutative54.4%
Simplified54.4%
if -1.15000000000000005e109 < c < 1.85000000000000006e121Initial program 77.9%
Taylor expanded in i around inf 43.7%
distribute-lft-out--43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in j around 0 25.2%
pow125.2%
Applied egg-rr25.2%
unpow125.2%
associate-*r*26.8%
*-commutative26.8%
associate-*r*25.8%
Simplified25.8%
Final simplification35.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.8e+108) (not (<= c 2.2e+125))) (* a (* c j)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e+108) || !(c <= 2.2e+125)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.8d+108)) .or. (.not. (c <= 2.2d+125))) then
tmp = a * (c * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e+108) || !(c <= 2.2e+125)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.8e+108) or not (c <= 2.2e+125): tmp = a * (c * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.8e+108) || !(c <= 2.2e+125)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.8e+108) || ~((c <= 2.2e+125))) tmp = a * (c * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.8e+108], N[Not[LessEqual[c, 2.2e+125]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.8 \cdot 10^{+108} \lor \neg \left(c \leq 2.2 \cdot 10^{+125}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if c < -3.80000000000000008e108 or 2.19999999999999991e125 < c Initial program 66.4%
Taylor expanded in a around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 52.3%
*-commutative52.3%
Simplified52.3%
if -3.80000000000000008e108 < c < 2.19999999999999991e125Initial program 77.9%
Taylor expanded in i around inf 43.7%
distribute-lft-out--43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in j around 0 25.2%
pow125.2%
Applied egg-rr25.2%
unpow125.2%
associate-*r*26.8%
*-commutative26.8%
associate-*r*25.8%
Simplified25.8%
Final simplification34.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.85e+110) (not (<= c 1.65e+125))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.85e+110) || !(c <= 1.65e+125)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.85d+110)) .or. (.not. (c <= 1.65d+125))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.85e+110) || !(c <= 1.65e+125)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.85e+110) or not (c <= 1.65e+125): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.85e+110) || !(c <= 1.65e+125)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.85e+110) || ~((c <= 1.65e+125))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.85e+110], N[Not[LessEqual[c, 1.65e+125]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.85 \cdot 10^{+110} \lor \neg \left(c \leq 1.65 \cdot 10^{+125}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -2.8500000000000001e110 or 1.65000000000000003e125 < c Initial program 66.4%
Taylor expanded in a around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
Simplified58.5%
Taylor expanded in c around inf 52.3%
*-commutative52.3%
Simplified52.3%
if -2.8500000000000001e110 < c < 1.65000000000000003e125Initial program 77.9%
Taylor expanded in i around inf 43.7%
distribute-lft-out--43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in j around 0 25.2%
Final simplification33.9%
(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 74.2%
Taylor expanded in a around inf 37.3%
+-commutative37.3%
mul-1-neg37.3%
unsub-neg37.3%
Simplified37.3%
Taylor expanded in c around inf 23.8%
*-commutative23.8%
Simplified23.8%
Final simplification23.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t\_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024172
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))