
(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 23 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 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double 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 = z * ((x * y) - (b * c));
}
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 = z * ((x * y) - (b * c));
}
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 = z * ((x * y) - (b * c)) 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(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) 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 = z * ((x * y) - (b * c)); 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $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}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\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 89.7%
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 z around inf 57.1%
Final simplification83.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a)))))
(t_2 (* b (- (* t i) (* z c)))))
(if (<= b -6.5e+145)
t_2
(if (<= b -4.5)
t_1
(if (<= b -8.5e-83)
(+ (* y (- (* x z) (* i j))) (* b (* t i)))
(if (or (<= b 195.0) (and (not (<= b 3.1e+119)) (<= b 3.1e+158)))
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 * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6.5e+145) {
tmp = t_2;
} else if (b <= -4.5) {
tmp = t_1;
} else if (b <= -8.5e-83) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else if ((b <= 195.0) || (!(b <= 3.1e+119) && (b <= 3.1e+158))) {
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 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
t_2 = b * ((t * i) - (z * c))
if (b <= (-6.5d+145)) then
tmp = t_2
else if (b <= (-4.5d0)) then
tmp = t_1
else if (b <= (-8.5d-83)) then
tmp = (y * ((x * z) - (i * j))) + (b * (t * i))
else if ((b <= 195.0d0) .or. (.not. (b <= 3.1d+119)) .and. (b <= 3.1d+158)) 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 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -6.5e+145) {
tmp = t_2;
} else if (b <= -4.5) {
tmp = t_1;
} else if (b <= -8.5e-83) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else if ((b <= 195.0) || (!(b <= 3.1e+119) && (b <= 3.1e+158))) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -6.5e+145: tmp = t_2 elif b <= -4.5: tmp = t_1 elif b <= -8.5e-83: tmp = (y * ((x * z) - (i * j))) + (b * (t * i)) elif (b <= 195.0) or (not (b <= 3.1e+119) and (b <= 3.1e+158)): tmp = t_1 else: tmp = t_2 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(x * Float64(Float64(y * z) - Float64(t * a)))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -6.5e+145) tmp = t_2; elseif (b <= -4.5) tmp = t_1; elseif (b <= -8.5e-83) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(t * i))); elseif ((b <= 195.0) || (!(b <= 3.1e+119) && (b <= 3.1e+158))) 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 = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -6.5e+145) tmp = t_2; elseif (b <= -4.5) tmp = t_1; elseif (b <= -8.5e-83) tmp = (y * ((x * z) - (i * j))) + (b * (t * i)); elseif ((b <= 195.0) || (~((b <= 3.1e+119)) && (b <= 3.1e+158))) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(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]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -6.5e+145], t$95$2, If[LessEqual[b, -4.5], t$95$1, If[LessEqual[b, -8.5e-83], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 195.0], And[N[Not[LessEqual[b, 3.1e+119]], $MachinePrecision], LessEqual[b, 3.1e+158]]], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -6.5 \cdot 10^{+145}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.5:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-83}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq 195 \lor \neg \left(b \leq 3.1 \cdot 10^{+119}\right) \land b \leq 3.1 \cdot 10^{+158}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -6.50000000000000034e145 or 195 < b < 3.09999999999999995e119 or 3.1000000000000002e158 < b Initial program 63.4%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if -6.50000000000000034e145 < b < -4.5 or -8.49999999999999938e-83 < b < 195 or 3.09999999999999995e119 < b < 3.1000000000000002e158Initial program 76.3%
Taylor expanded in b around 0 73.9%
if -4.5 < b < -8.49999999999999938e-83Initial program 82.0%
Taylor expanded in a around 0 86.5%
*-commutative86.5%
*-commutative86.5%
sub-neg86.5%
associate-*r*86.3%
associate-*r*86.3%
*-commutative86.3%
associate-*r*86.3%
distribute-rgt-in86.3%
+-commutative86.3%
mul-1-neg86.3%
unsub-neg86.3%
*-commutative86.3%
distribute-rgt-neg-in86.3%
neg-sub086.3%
*-commutative86.3%
associate--r-86.3%
Simplified86.3%
Taylor expanded in t around inf 74.4%
Final simplification74.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* j (- (* a c) (* y i)))))
(if (<= x -280.0)
(+ t_3 t_2)
(if (<= x 9e-102) (+ t_3 t_1) (- (+ t_2 t_1) (* y (* i j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (x <= -280.0) {
tmp = t_3 + t_2;
} else if (x <= 9e-102) {
tmp = t_3 + t_1;
} else {
tmp = (t_2 + t_1) - (y * (i * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
t_2 = x * ((y * z) - (t * a))
t_3 = j * ((a * c) - (y * i))
if (x <= (-280.0d0)) then
tmp = t_3 + t_2
else if (x <= 9d-102) then
tmp = t_3 + t_1
else
tmp = (t_2 + t_1) - (y * (i * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double t_2 = x * ((y * z) - (t * a));
double t_3 = j * ((a * c) - (y * i));
double tmp;
if (x <= -280.0) {
tmp = t_3 + t_2;
} else if (x <= 9e-102) {
tmp = t_3 + t_1;
} else {
tmp = (t_2 + t_1) - (y * (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = x * ((y * z) - (t * a)) t_3 = j * ((a * c) - (y * i)) tmp = 0 if x <= -280.0: tmp = t_3 + t_2 elif x <= 9e-102: tmp = t_3 + t_1 else: tmp = (t_2 + t_1) - (y * (i * j)) 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(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (x <= -280.0) tmp = Float64(t_3 + t_2); elseif (x <= 9e-102) tmp = Float64(t_3 + t_1); else tmp = Float64(Float64(t_2 + t_1) - Float64(y * Float64(i * j))); 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 = x * ((y * z) - (t * a)); t_3 = j * ((a * c) - (y * i)); tmp = 0.0; if (x <= -280.0) tmp = t_3 + t_2; elseif (x <= 9e-102) tmp = t_3 + t_1; else tmp = (t_2 + t_1) - (y * (i * j)); 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -280.0], N[(t$95$3 + t$95$2), $MachinePrecision], If[LessEqual[x, 9e-102], N[(t$95$3 + t$95$1), $MachinePrecision], N[(N[(t$95$2 + t$95$1), $MachinePrecision] - N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -280:\\
\;\;\;\;t_3 + t_2\\
\mathbf{elif}\;x \leq 9 \cdot 10^{-102}:\\
\;\;\;\;t_3 + t_1\\
\mathbf{else}:\\
\;\;\;\;\left(t_2 + t_1\right) - y \cdot \left(i \cdot j\right)\\
\end{array}
\end{array}
if x < -280Initial program 83.9%
Taylor expanded in b around 0 80.4%
if -280 < x < 8.99999999999999999e-102Initial program 64.5%
Taylor expanded in x around 0 75.2%
if 8.99999999999999999e-102 < x Initial program 74.3%
Taylor expanded in c around 0 71.9%
associate-*r*73.1%
associate-*r*73.1%
*-commutative73.1%
mul-1-neg73.1%
*-commutative73.1%
distribute-rgt-neg-in73.1%
Simplified73.1%
Final simplification75.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z)))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* a (- (* c j) (* x t)))))
(if (<= b -4.6e+76)
t_2
(if (<= b -4.4e+15)
t_1
(if (<= b -80000.0)
t_3
(if (<= b -2.4e-51)
(* i (* j (- y)))
(if (<= b -1.45e-101)
t_2
(if (<= b -4.2e-150)
(- (* j (* y i)))
(if (<= b -6.2e-234)
t_3
(if (<= b 7e-253) t_1 (if (<= b 1.05e-45) t_3 t_2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * ((t * i) - (z * c));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (b <= -4.6e+76) {
tmp = t_2;
} else if (b <= -4.4e+15) {
tmp = t_1;
} else if (b <= -80000.0) {
tmp = t_3;
} else if (b <= -2.4e-51) {
tmp = i * (j * -y);
} else if (b <= -1.45e-101) {
tmp = t_2;
} else if (b <= -4.2e-150) {
tmp = -(j * (y * i));
} else if (b <= -6.2e-234) {
tmp = t_3;
} else if (b <= 7e-253) {
tmp = t_1;
} else if (b <= 1.05e-45) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = b * ((t * i) - (z * c))
t_3 = a * ((c * j) - (x * t))
if (b <= (-4.6d+76)) then
tmp = t_2
else if (b <= (-4.4d+15)) then
tmp = t_1
else if (b <= (-80000.0d0)) then
tmp = t_3
else if (b <= (-2.4d-51)) then
tmp = i * (j * -y)
else if (b <= (-1.45d-101)) then
tmp = t_2
else if (b <= (-4.2d-150)) then
tmp = -(j * (y * i))
else if (b <= (-6.2d-234)) then
tmp = t_3
else if (b <= 7d-253) then
tmp = t_1
else if (b <= 1.05d-45) then
tmp = t_3
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double t_2 = b * ((t * i) - (z * c));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (b <= -4.6e+76) {
tmp = t_2;
} else if (b <= -4.4e+15) {
tmp = t_1;
} else if (b <= -80000.0) {
tmp = t_3;
} else if (b <= -2.4e-51) {
tmp = i * (j * -y);
} else if (b <= -1.45e-101) {
tmp = t_2;
} else if (b <= -4.2e-150) {
tmp = -(j * (y * i));
} else if (b <= -6.2e-234) {
tmp = t_3;
} else if (b <= 7e-253) {
tmp = t_1;
} else if (b <= 1.05e-45) {
tmp = t_3;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) t_2 = b * ((t * i) - (z * c)) t_3 = a * ((c * j) - (x * t)) tmp = 0 if b <= -4.6e+76: tmp = t_2 elif b <= -4.4e+15: tmp = t_1 elif b <= -80000.0: tmp = t_3 elif b <= -2.4e-51: tmp = i * (j * -y) elif b <= -1.45e-101: tmp = t_2 elif b <= -4.2e-150: tmp = -(j * (y * i)) elif b <= -6.2e-234: tmp = t_3 elif b <= 7e-253: tmp = t_1 elif b <= 1.05e-45: tmp = t_3 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (b <= -4.6e+76) tmp = t_2; elseif (b <= -4.4e+15) tmp = t_1; elseif (b <= -80000.0) tmp = t_3; elseif (b <= -2.4e-51) tmp = Float64(i * Float64(j * Float64(-y))); elseif (b <= -1.45e-101) tmp = t_2; elseif (b <= -4.2e-150) tmp = Float64(-Float64(j * Float64(y * i))); elseif (b <= -6.2e-234) tmp = t_3; elseif (b <= 7e-253) tmp = t_1; elseif (b <= 1.05e-45) tmp = t_3; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); t_2 = b * ((t * i) - (z * c)); t_3 = a * ((c * j) - (x * t)); tmp = 0.0; if (b <= -4.6e+76) tmp = t_2; elseif (b <= -4.4e+15) tmp = t_1; elseif (b <= -80000.0) tmp = t_3; elseif (b <= -2.4e-51) tmp = i * (j * -y); elseif (b <= -1.45e-101) tmp = t_2; elseif (b <= -4.2e-150) tmp = -(j * (y * i)); elseif (b <= -6.2e-234) tmp = t_3; elseif (b <= 7e-253) tmp = t_1; elseif (b <= 1.05e-45) tmp = t_3; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.6e+76], t$95$2, If[LessEqual[b, -4.4e+15], t$95$1, If[LessEqual[b, -80000.0], t$95$3, If[LessEqual[b, -2.4e-51], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.45e-101], t$95$2, If[LessEqual[b, -4.2e-150], (-N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), If[LessEqual[b, -6.2e-234], t$95$3, If[LessEqual[b, 7e-253], t$95$1, If[LessEqual[b, 1.05e-45], t$95$3, t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -4.6 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{+15}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -80000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-51}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-101}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-150}:\\
\;\;\;\;-j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-234}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 7 \cdot 10^{-253}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 1.05 \cdot 10^{-45}:\\
\;\;\;\;t_3\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.60000000000000002e76 or -2.4e-51 < b < -1.45e-101 or 1.04999999999999998e-45 < b Initial program 69.7%
Taylor expanded in b around inf 64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
if -4.60000000000000002e76 < b < -4.4e15 or -6.2000000000000003e-234 < b < 7.00000000000000045e-253Initial program 68.0%
Taylor expanded in a around 0 47.9%
*-commutative47.9%
*-commutative47.9%
sub-neg47.9%
associate-*r*48.0%
associate-*r*48.0%
*-commutative48.0%
associate-*r*47.8%
distribute-rgt-in53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
*-commutative53.7%
distribute-rgt-neg-in53.7%
neg-sub053.7%
*-commutative53.7%
associate--r-53.7%
Simplified53.7%
Taylor expanded in x around inf 53.8%
if -4.4e15 < b < -8e4 or -4.2000000000000002e-150 < b < -6.2000000000000003e-234 or 7.00000000000000045e-253 < b < 1.04999999999999998e-45Initial program 77.3%
Taylor expanded in a around inf 54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
if -8e4 < b < -2.4e-51Initial program 73.9%
Taylor expanded in y around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in x around 0 44.5%
neg-mul-144.5%
distribute-rgt-neg-in44.5%
Simplified44.5%
Taylor expanded in y around 0 53.0%
associate-*r*53.0%
neg-mul-153.0%
Simplified53.0%
if -1.45e-101 < b < -4.2000000000000002e-150Initial program 80.6%
prod-diff80.6%
*-commutative80.6%
fma-neg80.6%
distribute-rgt-in80.6%
*-commutative80.6%
*-commutative80.6%
*-commutative80.6%
Applied egg-rr80.6%
Taylor expanded in j around inf 80.6%
Taylor expanded in a around 0 70.9%
associate-*r*70.9%
neg-mul-170.9%
*-commutative70.9%
Simplified70.9%
Final simplification60.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z)))
(t_2 (* b (- (* t i) (* z c))))
(t_3 (* a (- (* c j) (* x t)))))
(if (<= b -2.75e+76)
t_2
(if (<= b -1.9e+17)
t_1
(if (<= b -90000.0)
t_3
(if (<= b -1.45e-50)
(* i (* j (- y)))
(if (<= b -1.2e-101)
t_2
(if (<= b -4.2e-150)
(- (* j (* y i)))
(if (<= b -7e-234)
t_3
(if (<= b 1.2e-235)
t_1
(if (<= b 180.0) (* 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 = x * (y * z);
double t_2 = b * ((t * i) - (z * c));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (b <= -2.75e+76) {
tmp = t_2;
} else if (b <= -1.9e+17) {
tmp = t_1;
} else if (b <= -90000.0) {
tmp = t_3;
} else if (b <= -1.45e-50) {
tmp = i * (j * -y);
} else if (b <= -1.2e-101) {
tmp = t_2;
} else if (b <= -4.2e-150) {
tmp = -(j * (y * i));
} else if (b <= -7e-234) {
tmp = t_3;
} else if (b <= 1.2e-235) {
tmp = t_1;
} else if (b <= 180.0) {
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) :: t_3
real(8) :: tmp
t_1 = x * (y * z)
t_2 = b * ((t * i) - (z * c))
t_3 = a * ((c * j) - (x * t))
if (b <= (-2.75d+76)) then
tmp = t_2
else if (b <= (-1.9d+17)) then
tmp = t_1
else if (b <= (-90000.0d0)) then
tmp = t_3
else if (b <= (-1.45d-50)) then
tmp = i * (j * -y)
else if (b <= (-1.2d-101)) then
tmp = t_2
else if (b <= (-4.2d-150)) then
tmp = -(j * (y * i))
else if (b <= (-7d-234)) then
tmp = t_3
else if (b <= 1.2d-235) then
tmp = t_1
else if (b <= 180.0d0) 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 = x * (y * z);
double t_2 = b * ((t * i) - (z * c));
double t_3 = a * ((c * j) - (x * t));
double tmp;
if (b <= -2.75e+76) {
tmp = t_2;
} else if (b <= -1.9e+17) {
tmp = t_1;
} else if (b <= -90000.0) {
tmp = t_3;
} else if (b <= -1.45e-50) {
tmp = i * (j * -y);
} else if (b <= -1.2e-101) {
tmp = t_2;
} else if (b <= -4.2e-150) {
tmp = -(j * (y * i));
} else if (b <= -7e-234) {
tmp = t_3;
} else if (b <= 1.2e-235) {
tmp = t_1;
} else if (b <= 180.0) {
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 = x * (y * z) t_2 = b * ((t * i) - (z * c)) t_3 = a * ((c * j) - (x * t)) tmp = 0 if b <= -2.75e+76: tmp = t_2 elif b <= -1.9e+17: tmp = t_1 elif b <= -90000.0: tmp = t_3 elif b <= -1.45e-50: tmp = i * (j * -y) elif b <= -1.2e-101: tmp = t_2 elif b <= -4.2e-150: tmp = -(j * (y * i)) elif b <= -7e-234: tmp = t_3 elif b <= 1.2e-235: tmp = t_1 elif b <= 180.0: 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(x * Float64(y * z)) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) t_3 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (b <= -2.75e+76) tmp = t_2; elseif (b <= -1.9e+17) tmp = t_1; elseif (b <= -90000.0) tmp = t_3; elseif (b <= -1.45e-50) tmp = Float64(i * Float64(j * Float64(-y))); elseif (b <= -1.2e-101) tmp = t_2; elseif (b <= -4.2e-150) tmp = Float64(-Float64(j * Float64(y * i))); elseif (b <= -7e-234) tmp = t_3; elseif (b <= 1.2e-235) tmp = t_1; elseif (b <= 180.0) 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 = x * (y * z); t_2 = b * ((t * i) - (z * c)); t_3 = a * ((c * j) - (x * t)); tmp = 0.0; if (b <= -2.75e+76) tmp = t_2; elseif (b <= -1.9e+17) tmp = t_1; elseif (b <= -90000.0) tmp = t_3; elseif (b <= -1.45e-50) tmp = i * (j * -y); elseif (b <= -1.2e-101) tmp = t_2; elseif (b <= -4.2e-150) tmp = -(j * (y * i)); elseif (b <= -7e-234) tmp = t_3; elseif (b <= 1.2e-235) tmp = t_1; elseif (b <= 180.0) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.75e+76], t$95$2, If[LessEqual[b, -1.9e+17], t$95$1, If[LessEqual[b, -90000.0], t$95$3, If[LessEqual[b, -1.45e-50], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.2e-101], t$95$2, If[LessEqual[b, -4.2e-150], (-N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), If[LessEqual[b, -7e-234], t$95$3, If[LessEqual[b, 1.2e-235], t$95$1, If[LessEqual[b, 180.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_3 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;b \leq -2.75 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{+17}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -90000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{-50}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq -1.2 \cdot 10^{-101}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-150}:\\
\;\;\;\;-j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-234}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-235}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 180:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.75e76 or -1.45000000000000004e-50 < b < -1.2e-101 or 180 < b Initial program 69.2%
Taylor expanded in b around inf 67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
if -2.75e76 < b < -1.9e17 or -7.0000000000000003e-234 < b < 1.20000000000000005e-235Initial program 68.9%
Taylor expanded in a around 0 45.8%
*-commutative45.8%
*-commutative45.8%
sub-neg45.8%
associate-*r*45.9%
associate-*r*45.9%
*-commutative45.9%
associate-*r*45.7%
distribute-rgt-in51.0%
+-commutative51.0%
mul-1-neg51.0%
unsub-neg51.0%
*-commutative51.0%
distribute-rgt-neg-in51.0%
neg-sub051.0%
*-commutative51.0%
associate--r-51.0%
Simplified51.0%
Taylor expanded in x around inf 50.9%
if -1.9e17 < b < -9e4 or -4.2000000000000002e-150 < b < -7.0000000000000003e-234Initial program 78.7%
Taylor expanded in a around inf 62.2%
+-commutative62.2%
mul-1-neg62.2%
unsub-neg62.2%
*-commutative62.2%
*-commutative62.2%
Simplified62.2%
if -9e4 < b < -1.45000000000000004e-50Initial program 73.9%
Taylor expanded in y around inf 70.8%
+-commutative70.8%
mul-1-neg70.8%
unsub-neg70.8%
*-commutative70.8%
Simplified70.8%
Taylor expanded in x around 0 44.5%
neg-mul-144.5%
distribute-rgt-neg-in44.5%
Simplified44.5%
Taylor expanded in y around 0 53.0%
associate-*r*53.0%
neg-mul-153.0%
Simplified53.0%
if -1.2e-101 < b < -4.2000000000000002e-150Initial program 80.6%
prod-diff80.6%
*-commutative80.6%
fma-neg80.6%
distribute-rgt-in80.6%
*-commutative80.6%
*-commutative80.6%
*-commutative80.6%
Applied egg-rr80.6%
Taylor expanded in j around inf 80.6%
Taylor expanded in a around 0 70.9%
associate-*r*70.9%
neg-mul-170.9%
*-commutative70.9%
Simplified70.9%
if 1.20000000000000005e-235 < b < 180Initial program 75.9%
Taylor expanded in c around inf 51.7%
*-commutative51.7%
Simplified51.7%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* a c) (* y i))) (* x (* y z))))
(t_2 (* b (- (* t i) (* z c)))))
(if (<= b -2e+146)
t_2
(if (<= b -8.2e-14)
t_1
(if (<= b -8.5e-83)
(- (* b (* t i)) (* i (* y j)))
(if (or (<= b 125.0) (and (not (<= b 2.1e+119)) (<= b 1.15e+157)))
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 * ((a * c) - (y * i))) + (x * (y * z));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2e+146) {
tmp = t_2;
} else if (b <= -8.2e-14) {
tmp = t_1;
} else if (b <= -8.5e-83) {
tmp = (b * (t * i)) - (i * (y * j));
} else if ((b <= 125.0) || (!(b <= 2.1e+119) && (b <= 1.15e+157))) {
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 = (j * ((a * c) - (y * i))) + (x * (y * z))
t_2 = b * ((t * i) - (z * c))
if (b <= (-2d+146)) then
tmp = t_2
else if (b <= (-8.2d-14)) then
tmp = t_1
else if (b <= (-8.5d-83)) then
tmp = (b * (t * i)) - (i * (y * j))
else if ((b <= 125.0d0) .or. (.not. (b <= 2.1d+119)) .and. (b <= 1.15d+157)) 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 = (j * ((a * c) - (y * i))) + (x * (y * z));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2e+146) {
tmp = t_2;
} else if (b <= -8.2e-14) {
tmp = t_1;
} else if (b <= -8.5e-83) {
tmp = (b * (t * i)) - (i * (y * j));
} else if ((b <= 125.0) || (!(b <= 2.1e+119) && (b <= 1.15e+157))) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) + (x * (y * z)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2e+146: tmp = t_2 elif b <= -8.2e-14: tmp = t_1 elif b <= -8.5e-83: tmp = (b * (t * i)) - (i * (y * j)) elif (b <= 125.0) or (not (b <= 2.1e+119) and (b <= 1.15e+157)): tmp = t_1 else: tmp = t_2 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(x * Float64(y * z))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -2e+146) tmp = t_2; elseif (b <= -8.2e-14) tmp = t_1; elseif (b <= -8.5e-83) tmp = Float64(Float64(b * Float64(t * i)) - Float64(i * Float64(y * j))); elseif ((b <= 125.0) || (!(b <= 2.1e+119) && (b <= 1.15e+157))) 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 = (j * ((a * c) - (y * i))) + (x * (y * z)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -2e+146) tmp = t_2; elseif (b <= -8.2e-14) tmp = t_1; elseif (b <= -8.5e-83) tmp = (b * (t * i)) - (i * (y * j)); elseif ((b <= 125.0) || (~((b <= 2.1e+119)) && (b <= 1.15e+157))) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2e+146], t$95$2, If[LessEqual[b, -8.2e-14], t$95$1, If[LessEqual[b, -8.5e-83], N[(N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, 125.0], And[N[Not[LessEqual[b, 2.1e+119]], $MachinePrecision], LessEqual[b, 1.15e+157]]], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2 \cdot 10^{+146}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -8.2 \cdot 10^{-14}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-83}:\\
\;\;\;\;b \cdot \left(t \cdot i\right) - i \cdot \left(y \cdot j\right)\\
\mathbf{elif}\;b \leq 125 \lor \neg \left(b \leq 2.1 \cdot 10^{+119}\right) \land b \leq 1.15 \cdot 10^{+157}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -1.99999999999999987e146 or 125 < b < 2.09999999999999983e119 or 1.15000000000000002e157 < b Initial program 63.4%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if -1.99999999999999987e146 < b < -8.2000000000000004e-14 or -8.49999999999999938e-83 < b < 125 or 2.09999999999999983e119 < b < 1.15000000000000002e157Initial program 76.3%
Taylor expanded in b around 0 73.9%
Taylor expanded in y around inf 64.8%
if -8.2000000000000004e-14 < b < -8.49999999999999938e-83Initial program 83.8%
Taylor expanded in x around 0 84.0%
Taylor expanded in c around 0 68.6%
distribute-lft-out--68.6%
Simplified68.6%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -4.4e+145)
t_2
(if (<= b -2.9e-99)
(+ (* y (- (* x z) (* i j))) (* b (* t i)))
(if (<= b -2e-179)
t_1
(if (or (<= b 165.0) (and (not (<= b 3.15e+119)) (<= b 5.4e+157)))
(+ t_1 (* x (* y z)))
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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.4e+145) {
tmp = t_2;
} else if (b <= -2.9e-99) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else if (b <= -2e-179) {
tmp = t_1;
} else if ((b <= 165.0) || (!(b <= 3.15e+119) && (b <= 5.4e+157))) {
tmp = t_1 + (x * (y * z));
} 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 = b * ((t * i) - (z * c))
if (b <= (-4.4d+145)) then
tmp = t_2
else if (b <= (-2.9d-99)) then
tmp = (y * ((x * z) - (i * j))) + (b * (t * i))
else if (b <= (-2d-179)) then
tmp = t_1
else if ((b <= 165.0d0) .or. (.not. (b <= 3.15d+119)) .and. (b <= 5.4d+157)) then
tmp = t_1 + (x * (y * z))
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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.4e+145) {
tmp = t_2;
} else if (b <= -2.9e-99) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else if (b <= -2e-179) {
tmp = t_1;
} else if ((b <= 165.0) || (!(b <= 3.15e+119) && (b <= 5.4e+157))) {
tmp = t_1 + (x * (y * z));
} 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 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4.4e+145: tmp = t_2 elif b <= -2.9e-99: tmp = (y * ((x * z) - (i * j))) + (b * (t * i)) elif b <= -2e-179: tmp = t_1 elif (b <= 165.0) or (not (b <= 3.15e+119) and (b <= 5.4e+157)): tmp = t_1 + (x * (y * z)) 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(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.4e+145) tmp = t_2; elseif (b <= -2.9e-99) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(t * i))); elseif (b <= -2e-179) tmp = t_1; elseif ((b <= 165.0) || (!(b <= 3.15e+119) && (b <= 5.4e+157))) tmp = Float64(t_1 + Float64(x * Float64(y * z))); 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 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4.4e+145) tmp = t_2; elseif (b <= -2.9e-99) tmp = (y * ((x * z) - (i * j))) + (b * (t * i)); elseif (b <= -2e-179) tmp = t_1; elseif ((b <= 165.0) || (~((b <= 3.15e+119)) && (b <= 5.4e+157))) tmp = t_1 + (x * (y * z)); 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.4e+145], t$95$2, If[LessEqual[b, -2.9e-99], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e-179], t$95$1, If[Or[LessEqual[b, 165.0], And[N[Not[LessEqual[b, 3.15e+119]], $MachinePrecision], LessEqual[b, 5.4e+157]]], N[(t$95$1 + N[(x * N[(y * z), $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 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.4 \cdot 10^{+145}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-99}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-179}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 165 \lor \neg \left(b \leq 3.15 \cdot 10^{+119}\right) \land b \leq 5.4 \cdot 10^{+157}:\\
\;\;\;\;t_1 + x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -4.40000000000000017e145 or 165 < b < 3.1499999999999999e119 or 5.4000000000000001e157 < b Initial program 63.4%
Taylor expanded in b around inf 75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if -4.40000000000000017e145 < b < -2.89999999999999985e-99Initial program 80.0%
Taylor expanded in a around 0 67.3%
*-commutative67.3%
*-commutative67.3%
sub-neg67.3%
associate-*r*67.2%
associate-*r*67.2%
*-commutative67.2%
associate-*r*65.3%
distribute-rgt-in67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
distribute-rgt-neg-in67.3%
neg-sub067.3%
*-commutative67.3%
associate--r-67.3%
Simplified67.3%
Taylor expanded in t around inf 59.6%
if -2.89999999999999985e-99 < b < -2e-179Initial program 78.3%
prod-diff78.0%
*-commutative78.0%
fma-neg78.0%
distribute-rgt-in78.0%
*-commutative78.0%
*-commutative78.0%
*-commutative78.0%
Applied egg-rr78.0%
Taylor expanded in j around inf 73.0%
if -2e-179 < b < 165 or 3.1499999999999999e119 < b < 5.4000000000000001e157Initial program 74.9%
Taylor expanded in b around 0 75.9%
Taylor expanded in y around inf 66.5%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -3.2e+145)
t_1
(if (or (<= b -2.7e+75) (and (not (<= b -3.9e-85)) (<= b 140.0)))
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(+ t_1 (* y (- (* x z) (* i j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+145) {
tmp = t_1;
} else if ((b <= -2.7e+75) || (!(b <= -3.9e-85) && (b <= 140.0))) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = t_1 + (y * ((x * z) - (i * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-3.2d+145)) then
tmp = t_1
else if ((b <= (-2.7d+75)) .or. (.not. (b <= (-3.9d-85))) .and. (b <= 140.0d0)) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = t_1 + (y * ((x * z) - (i * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -3.2e+145) {
tmp = t_1;
} else if ((b <= -2.7e+75) || (!(b <= -3.9e-85) && (b <= 140.0))) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = t_1 + (y * ((x * z) - (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -3.2e+145: tmp = t_1 elif (b <= -2.7e+75) or (not (b <= -3.9e-85) and (b <= 140.0)): tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = t_1 + (y * ((x * z) - (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.2e+145) tmp = t_1; elseif ((b <= -2.7e+75) || (!(b <= -3.9e-85) && (b <= 140.0))) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(t_1 + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -3.2e+145) tmp = t_1; elseif ((b <= -2.7e+75) || (~((b <= -3.9e-85)) && (b <= 140.0))) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = t_1 + (y * ((x * z) - (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.2e+145], t$95$1, If[Or[LessEqual[b, -2.7e+75], And[N[Not[LessEqual[b, -3.9e-85]], $MachinePrecision], LessEqual[b, 140.0]]], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.2 \cdot 10^{+145}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{+75} \lor \neg \left(b \leq -3.9 \cdot 10^{-85}\right) \land b \leq 140:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if b < -3.20000000000000008e145Initial program 48.8%
Taylor expanded in b around inf 72.1%
*-commutative72.1%
*-commutative72.1%
Simplified72.1%
if -3.20000000000000008e145 < b < -2.69999999999999998e75 or -3.89999999999999988e-85 < b < 140Initial program 75.6%
Taylor expanded in b around 0 74.3%
if -2.69999999999999998e75 < b < -3.89999999999999988e-85 or 140 < b Initial program 76.4%
Taylor expanded in a around 0 71.2%
*-commutative71.2%
*-commutative71.2%
sub-neg71.2%
associate-*r*71.1%
associate-*r*71.1%
*-commutative71.1%
associate-*r*73.9%
distribute-rgt-in74.9%
+-commutative74.9%
mul-1-neg74.9%
unsub-neg74.9%
*-commutative74.9%
distribute-rgt-neg-in74.9%
neg-sub074.9%
*-commutative74.9%
associate--r-74.9%
Simplified74.9%
Final simplification74.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* x (- (* y z) (* t a))) (* i (* y j))))
(t_2 (* c (- (* a j) (* z b)))))
(if (<= c -2.75e+91)
t_2
(if (<= c -5.2e+47)
t_1
(if (<= c -4.4e-5)
(- (* j (- (* a c) (* y i))) (* b (* z c)))
(if (<= c -7.4e-194)
t_1
(if (<= c 1.5e-27)
(+ (* y (- (* x z) (* i j))) (* b (* t i)))
t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (i * (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.75e+91) {
tmp = t_2;
} else if (c <= -5.2e+47) {
tmp = t_1;
} else if (c <= -4.4e-5) {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
} else if (c <= -7.4e-194) {
tmp = t_1;
} else if (c <= 1.5e-27) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (x * ((y * z) - (t * a))) - (i * (y * j))
t_2 = c * ((a * j) - (z * b))
if (c <= (-2.75d+91)) then
tmp = t_2
else if (c <= (-5.2d+47)) then
tmp = t_1
else if (c <= (-4.4d-5)) then
tmp = (j * ((a * c) - (y * i))) - (b * (z * c))
else if (c <= (-7.4d-194)) then
tmp = t_1
else if (c <= 1.5d-27) then
tmp = (y * ((x * z) - (i * j))) + (b * (t * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (x * ((y * z) - (t * a))) - (i * (y * j));
double t_2 = c * ((a * j) - (z * b));
double tmp;
if (c <= -2.75e+91) {
tmp = t_2;
} else if (c <= -5.2e+47) {
tmp = t_1;
} else if (c <= -4.4e-5) {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
} else if (c <= -7.4e-194) {
tmp = t_1;
} else if (c <= 1.5e-27) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (x * ((y * z) - (t * a))) - (i * (y * j)) t_2 = c * ((a * j) - (z * b)) tmp = 0 if c <= -2.75e+91: tmp = t_2 elif c <= -5.2e+47: tmp = t_1 elif c <= -4.4e-5: tmp = (j * ((a * c) - (y * i))) - (b * (z * c)) elif c <= -7.4e-194: tmp = t_1 elif c <= 1.5e-27: tmp = (y * ((x * z) - (i * j))) + (b * (t * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(i * Float64(y * j))) t_2 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -2.75e+91) tmp = t_2; elseif (c <= -5.2e+47) tmp = t_1; elseif (c <= -4.4e-5) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (c <= -7.4e-194) tmp = t_1; elseif (c <= 1.5e-27) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(t * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (x * ((y * z) - (t * a))) - (i * (y * j)); t_2 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -2.75e+91) tmp = t_2; elseif (c <= -5.2e+47) tmp = t_1; elseif (c <= -4.4e-5) tmp = (j * ((a * c) - (y * i))) - (b * (z * c)); elseif (c <= -7.4e-194) tmp = t_1; elseif (c <= 1.5e-27) tmp = (y * ((x * z) - (i * j))) + (b * (t * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -2.75e+91], t$95$2, If[LessEqual[c, -5.2e+47], t$95$1, If[LessEqual[c, -4.4e-5], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -7.4e-194], t$95$1, If[LessEqual[c, 1.5e-27], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right) - i \cdot \left(y \cdot j\right)\\
t_2 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -2.75 \cdot 10^{+91}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;c \leq -5.2 \cdot 10^{+47}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -4.4 \cdot 10^{-5}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;c \leq -7.4 \cdot 10^{-194}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.5 \cdot 10^{-27}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if c < -2.7499999999999999e91 or 1.5000000000000001e-27 < c Initial program 58.3%
Taylor expanded in c around inf 69.0%
*-commutative69.0%
Simplified69.0%
if -2.7499999999999999e91 < c < -5.20000000000000007e47 or -4.3999999999999999e-5 < c < -7.40000000000000016e-194Initial program 83.1%
Taylor expanded in b around 0 74.0%
Taylor expanded in c around 0 66.7%
+-commutative66.7%
mul-1-neg66.7%
unsub-neg66.7%
*-commutative66.7%
Simplified66.7%
if -5.20000000000000007e47 < c < -4.3999999999999999e-5Initial program 77.8%
Taylor expanded in x around 0 76.6%
Taylor expanded in t around 0 68.9%
if -7.40000000000000016e-194 < c < 1.5000000000000001e-27Initial program 83.2%
Taylor expanded in a around 0 73.1%
*-commutative73.1%
*-commutative73.1%
sub-neg73.1%
associate-*r*73.0%
associate-*r*73.0%
*-commutative73.0%
associate-*r*73.0%
distribute-rgt-in75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
*-commutative75.6%
distribute-rgt-neg-in75.6%
neg-sub075.6%
*-commutative75.6%
associate--r-75.6%
Simplified75.6%
Taylor expanded in t around inf 68.0%
Final simplification68.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -1.95e+115)
t_1
(if (<= c -3.9e+45)
(* a (- (* c j) (* x t)))
(if (<= c -1.7e-5)
(- (* j (- (* a c) (* y i))) (* b (* z c)))
(if (<= c 9e-30) (+ (* y (- (* x z) (* i j))) (* 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) - (z * b));
double tmp;
if (c <= -1.95e+115) {
tmp = t_1;
} else if (c <= -3.9e+45) {
tmp = a * ((c * j) - (x * t));
} else if (c <= -1.7e-5) {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
} else if (c <= 9e-30) {
tmp = (y * ((x * z) - (i * j))) + (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) - (z * b))
if (c <= (-1.95d+115)) then
tmp = t_1
else if (c <= (-3.9d+45)) then
tmp = a * ((c * j) - (x * t))
else if (c <= (-1.7d-5)) then
tmp = (j * ((a * c) - (y * i))) - (b * (z * c))
else if (c <= 9d-30) then
tmp = (y * ((x * z) - (i * j))) + (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) - (z * b));
double tmp;
if (c <= -1.95e+115) {
tmp = t_1;
} else if (c <= -3.9e+45) {
tmp = a * ((c * j) - (x * t));
} else if (c <= -1.7e-5) {
tmp = (j * ((a * c) - (y * i))) - (b * (z * c));
} else if (c <= 9e-30) {
tmp = (y * ((x * z) - (i * j))) + (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) - (z * b)) tmp = 0 if c <= -1.95e+115: tmp = t_1 elif c <= -3.9e+45: tmp = a * ((c * j) - (x * t)) elif c <= -1.7e-5: tmp = (j * ((a * c) - (y * i))) - (b * (z * c)) elif c <= 9e-30: tmp = (y * ((x * z) - (i * j))) + (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(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.95e+115) tmp = t_1; elseif (c <= -3.9e+45) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (c <= -1.7e-5) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (c <= 9e-30) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + 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) - (z * b)); tmp = 0.0; if (c <= -1.95e+115) tmp = t_1; elseif (c <= -3.9e+45) tmp = a * ((c * j) - (x * t)); elseif (c <= -1.7e-5) tmp = (j * ((a * c) - (y * i))) - (b * (z * c)); elseif (c <= 9e-30) tmp = (y * ((x * z) - (i * j))) + (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[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.95e+115], t$95$1, If[LessEqual[c, -3.9e+45], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.7e-5], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 9e-30], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.95 \cdot 10^{+115}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -3.9 \cdot 10^{+45}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;c \leq -1.7 \cdot 10^{-5}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;c \leq 9 \cdot 10^{-30}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.95000000000000003e115 or 8.99999999999999935e-30 < c Initial program 59.5%
Taylor expanded in c around inf 68.7%
*-commutative68.7%
Simplified68.7%
if -1.95000000000000003e115 < c < -3.8999999999999999e45Initial program 74.2%
Taylor expanded in a around inf 73.9%
+-commutative73.9%
mul-1-neg73.9%
unsub-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
if -3.8999999999999999e45 < c < -1.7e-5Initial program 77.8%
Taylor expanded in x around 0 76.6%
Taylor expanded in t around 0 68.9%
if -1.7e-5 < c < 8.99999999999999935e-30Initial program 82.4%
Taylor expanded in a around 0 67.6%
*-commutative67.6%
*-commutative67.6%
sub-neg67.6%
associate-*r*66.0%
associate-*r*66.0%
*-commutative66.0%
associate-*r*66.0%
distribute-rgt-in68.5%
+-commutative68.5%
mul-1-neg68.5%
unsub-neg68.5%
*-commutative68.5%
distribute-rgt-neg-in68.5%
neg-sub068.5%
*-commutative68.5%
associate--r-68.5%
Simplified68.5%
Taylor expanded in t around inf 62.8%
Final simplification66.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (or (<= x -3500.0) (not (<= x 2800.0)))
(+ t_1 (* x (- (* y z) (* t a))))
(+ 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 = j * ((a * c) - (y * i));
double tmp;
if ((x <= -3500.0) || !(x <= 2800.0)) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else {
tmp = t_1 + (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 = j * ((a * c) - (y * i))
if ((x <= (-3500.0d0)) .or. (.not. (x <= 2800.0d0))) then
tmp = t_1 + (x * ((y * z) - (t * a)))
else
tmp = t_1 + (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 = j * ((a * c) - (y * i));
double tmp;
if ((x <= -3500.0) || !(x <= 2800.0)) {
tmp = t_1 + (x * ((y * z) - (t * a)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if (x <= -3500.0) or not (x <= 2800.0): tmp = t_1 + (x * ((y * z) - (t * a))) else: tmp = t_1 + (b * ((t * i) - (z * c))) 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 ((x <= -3500.0) || !(x <= 2800.0)) tmp = Float64(t_1 + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(t_1 + 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 = j * ((a * c) - (y * i)); tmp = 0.0; if ((x <= -3500.0) || ~((x <= 2800.0))) tmp = t_1 + (x * ((y * z) - (t * a))); else tmp = t_1 + (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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[x, -3500.0], N[Not[LessEqual[x, 2800.0]], $MachinePrecision]], N[(t$95$1 + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -3500 \lor \neg \left(x \leq 2800\right):\\
\;\;\;\;t_1 + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if x < -3500 or 2800 < x Initial program 79.1%
Taylor expanded in b around 0 76.7%
if -3500 < x < 2800Initial program 66.0%
Taylor expanded in x around 0 73.6%
Final simplification75.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -2.7e+76)
t_2
(if (<= b -2300000000000.0)
t_1
(if (<= b -4.2e-150)
(* i (- (* t b) (* y j)))
(if (<= b -7e-234)
(* a (- (* c j) (* x t)))
(if (<= b 2.4e-236)
t_1
(if (<= b 190.0) (* 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 = x * (y * z);
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.7e+76) {
tmp = t_2;
} else if (b <= -2300000000000.0) {
tmp = t_1;
} else if (b <= -4.2e-150) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -7e-234) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 2.4e-236) {
tmp = t_1;
} else if (b <= 190.0) {
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 = x * (y * z)
t_2 = b * ((t * i) - (z * c))
if (b <= (-2.7d+76)) then
tmp = t_2
else if (b <= (-2300000000000.0d0)) then
tmp = t_1
else if (b <= (-4.2d-150)) then
tmp = i * ((t * b) - (y * j))
else if (b <= (-7d-234)) then
tmp = a * ((c * j) - (x * t))
else if (b <= 2.4d-236) then
tmp = t_1
else if (b <= 190.0d0) 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 = x * (y * z);
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.7e+76) {
tmp = t_2;
} else if (b <= -2300000000000.0) {
tmp = t_1;
} else if (b <= -4.2e-150) {
tmp = i * ((t * b) - (y * j));
} else if (b <= -7e-234) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 2.4e-236) {
tmp = t_1;
} else if (b <= 190.0) {
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 = x * (y * z) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2.7e+76: tmp = t_2 elif b <= -2300000000000.0: tmp = t_1 elif b <= -4.2e-150: tmp = i * ((t * b) - (y * j)) elif b <= -7e-234: tmp = a * ((c * j) - (x * t)) elif b <= 2.4e-236: tmp = t_1 elif b <= 190.0: 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(x * Float64(y * z)) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.7e+76) tmp = t_2; elseif (b <= -2300000000000.0) tmp = t_1; elseif (b <= -4.2e-150) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= -7e-234) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 2.4e-236) tmp = t_1; elseif (b <= 190.0) 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 = x * (y * z); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -2.7e+76) tmp = t_2; elseif (b <= -2300000000000.0) tmp = t_1; elseif (b <= -4.2e-150) tmp = i * ((t * b) - (y * j)); elseif (b <= -7e-234) tmp = a * ((c * j) - (x * t)); elseif (b <= 2.4e-236) tmp = t_1; elseif (b <= 190.0) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.7e+76], t$95$2, If[LessEqual[b, -2300000000000.0], t$95$1, If[LessEqual[b, -4.2e-150], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7e-234], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e-236], t$95$1, If[LessEqual[b, 190.0], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.7 \cdot 10^{+76}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -2300000000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-150}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-234}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{-236}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 190:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -2.6999999999999999e76 or 190 < b Initial program 67.1%
Taylor expanded in b around inf 67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
if -2.6999999999999999e76 < b < -2.3e12 or -7.0000000000000003e-234 < b < 2.4000000000000002e-236Initial program 68.2%
Taylor expanded in a around 0 43.5%
*-commutative43.5%
*-commutative43.5%
sub-neg43.5%
associate-*r*43.6%
associate-*r*43.6%
*-commutative43.6%
associate-*r*43.5%
distribute-rgt-in48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
*-commutative48.4%
distribute-rgt-neg-in48.4%
neg-sub048.4%
*-commutative48.4%
associate--r-48.4%
Simplified48.4%
Taylor expanded in x around inf 48.4%
if -2.3e12 < b < -4.2000000000000002e-150Initial program 84.4%
prod-diff78.0%
*-commutative78.0%
fma-neg78.0%
distribute-rgt-in78.0%
*-commutative78.0%
*-commutative78.0%
*-commutative78.0%
Applied egg-rr78.0%
Taylor expanded in i around inf 58.9%
Simplified58.9%
if -4.2000000000000002e-150 < b < -7.0000000000000003e-234Initial program 79.3%
Taylor expanded in a around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
*-commutative58.5%
Simplified58.5%
if 2.4000000000000002e-236 < b < 190Initial program 75.9%
Taylor expanded in c around inf 51.7%
*-commutative51.7%
Simplified51.7%
Final simplification59.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -4e+102)
t_3
(if (<= b -2.3e-66)
t_2
(if (<= b -6.5e-234)
t_1
(if (<= b 3.2e-237)
t_2
(if (<= b 3.8e-105)
(* c (- (* a j) (* z b)))
(if (<= b 6.5e-43) t_1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4e+102) {
tmp = t_3;
} else if (b <= -2.3e-66) {
tmp = t_2;
} else if (b <= -6.5e-234) {
tmp = t_1;
} else if (b <= 3.2e-237) {
tmp = t_2;
} else if (b <= 3.8e-105) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 6.5e-43) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
t_2 = y * ((x * z) - (i * j))
t_3 = b * ((t * i) - (z * c))
if (b <= (-4d+102)) then
tmp = t_3
else if (b <= (-2.3d-66)) then
tmp = t_2
else if (b <= (-6.5d-234)) then
tmp = t_1
else if (b <= 3.2d-237) then
tmp = t_2
else if (b <= 3.8d-105) then
tmp = c * ((a * j) - (z * b))
else if (b <= 6.5d-43) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4e+102) {
tmp = t_3;
} else if (b <= -2.3e-66) {
tmp = t_2;
} else if (b <= -6.5e-234) {
tmp = t_1;
} else if (b <= 3.2e-237) {
tmp = t_2;
} else if (b <= 3.8e-105) {
tmp = c * ((a * j) - (z * b));
} else if (b <= 6.5e-43) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = y * ((x * z) - (i * j)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4e+102: tmp = t_3 elif b <= -2.3e-66: tmp = t_2 elif b <= -6.5e-234: tmp = t_1 elif b <= 3.2e-237: tmp = t_2 elif b <= 3.8e-105: tmp = c * ((a * j) - (z * b)) elif b <= 6.5e-43: tmp = t_1 else: tmp = t_3 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(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4e+102) tmp = t_3; elseif (b <= -2.3e-66) tmp = t_2; elseif (b <= -6.5e-234) tmp = t_1; elseif (b <= 3.2e-237) tmp = t_2; elseif (b <= 3.8e-105) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); elseif (b <= 6.5e-43) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); t_2 = y * ((x * z) - (i * j)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4e+102) tmp = t_3; elseif (b <= -2.3e-66) tmp = t_2; elseif (b <= -6.5e-234) tmp = t_1; elseif (b <= 3.2e-237) tmp = t_2; elseif (b <= 3.8e-105) tmp = c * ((a * j) - (z * b)); elseif (b <= 6.5e-43) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4e+102], t$95$3, If[LessEqual[b, -2.3e-66], t$95$2, If[LessEqual[b, -6.5e-234], t$95$1, If[LessEqual[b, 3.2e-237], t$95$2, If[LessEqual[b, 3.8e-105], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.5e-43], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4 \cdot 10^{+102}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-66}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-234}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{-237}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 3.8 \cdot 10^{-105}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{elif}\;b \leq 6.5 \cdot 10^{-43}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -3.99999999999999991e102 or 6.50000000000000001e-43 < b Initial program 67.1%
Taylor expanded in b around inf 65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
if -3.99999999999999991e102 < b < -2.29999999999999992e-66 or -6.4999999999999994e-234 < b < 3.2e-237Initial program 73.2%
Taylor expanded in y around inf 57.5%
+-commutative57.5%
mul-1-neg57.5%
unsub-neg57.5%
*-commutative57.5%
Simplified57.5%
if -2.29999999999999992e-66 < b < -6.4999999999999994e-234 or 3.7999999999999998e-105 < b < 6.50000000000000001e-43Initial program 84.9%
prod-diff82.1%
*-commutative82.1%
fma-neg82.1%
distribute-rgt-in82.1%
*-commutative82.1%
*-commutative82.1%
*-commutative82.1%
Applied egg-rr82.1%
Taylor expanded in j around inf 57.5%
if 3.2e-237 < b < 3.7999999999999998e-105Initial program 72.0%
Taylor expanded in c around inf 61.4%
*-commutative61.4%
Simplified61.4%
Final simplification61.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -1.55e-70)
t_1
(if (<= a 4.4e-298)
(* t (* b i))
(if (<= a 1.08e-225)
(* y (* i (- j)))
(if (<= a 0.029) (* x (* y z)) 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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.55e-70) {
tmp = t_1;
} else if (a <= 4.4e-298) {
tmp = t * (b * i);
} else if (a <= 1.08e-225) {
tmp = y * (i * -j);
} else if (a <= 0.029) {
tmp = x * (y * z);
} 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 = a * ((c * j) - (x * t))
if (a <= (-1.55d-70)) then
tmp = t_1
else if (a <= 4.4d-298) then
tmp = t * (b * i)
else if (a <= 1.08d-225) then
tmp = y * (i * -j)
else if (a <= 0.029d0) then
tmp = x * (y * z)
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 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.55e-70) {
tmp = t_1;
} else if (a <= 4.4e-298) {
tmp = t * (b * i);
} else if (a <= 1.08e-225) {
tmp = y * (i * -j);
} else if (a <= 0.029) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -1.55e-70: tmp = t_1 elif a <= 4.4e-298: tmp = t * (b * i) elif a <= 1.08e-225: tmp = y * (i * -j) elif a <= 0.029: tmp = x * (y * z) else: tmp = t_1 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 <= -1.55e-70) tmp = t_1; elseif (a <= 4.4e-298) tmp = Float64(t * Float64(b * i)); elseif (a <= 1.08e-225) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 0.029) tmp = Float64(x * Float64(y * z)); else tmp = t_1; 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 <= -1.55e-70) tmp = t_1; elseif (a <= 4.4e-298) tmp = t * (b * i); elseif (a <= 1.08e-225) tmp = y * (i * -j); elseif (a <= 0.029) tmp = x * (y * z); else tmp = t_1; 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, -1.55e-70], t$95$1, If[LessEqual[a, 4.4e-298], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.08e-225], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.029], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.55 \cdot 10^{-70}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{-298}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 1.08 \cdot 10^{-225}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 0.029:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.55e-70 or 0.0290000000000000015 < a Initial program 66.0%
Taylor expanded in a around inf 50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
*-commutative50.1%
*-commutative50.1%
Simplified50.1%
if -1.55e-70 < a < 4.4e-298Initial program 76.1%
Taylor expanded in t around inf 40.3%
distribute-lft-out--40.3%
*-commutative40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in x around 0 34.5%
*-commutative34.5%
*-commutative34.5%
associate-*l*38.3%
Simplified38.3%
if 4.4e-298 < a < 1.08000000000000006e-225Initial program 73.8%
Taylor expanded in y around inf 63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in x around 0 56.5%
neg-mul-156.5%
distribute-rgt-neg-in56.5%
Simplified56.5%
if 1.08000000000000006e-225 < a < 0.0290000000000000015Initial program 82.9%
Taylor expanded in a around 0 67.9%
*-commutative67.9%
*-commutative67.9%
sub-neg67.9%
associate-*r*67.9%
associate-*r*67.9%
*-commutative67.9%
associate-*r*60.6%
distribute-rgt-in60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
distribute-rgt-neg-in60.6%
neg-sub060.6%
*-commutative60.6%
associate--r-60.6%
Simplified60.6%
Taylor expanded in x around inf 43.6%
Final simplification46.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -2.7e+76)
t_1
(if (<= b -2600000000000.0)
(* x (* y z))
(if (<= b -2e-85)
(* i (- (* t b) (* y j)))
(if (<= b 1.2e-41) (* j (- (* a c) (* y 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.7e+76) {
tmp = t_1;
} else if (b <= -2600000000000.0) {
tmp = x * (y * z);
} else if (b <= -2e-85) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 1.2e-41) {
tmp = j * ((a * c) - (y * 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 = b * ((t * i) - (z * c))
if (b <= (-2.7d+76)) then
tmp = t_1
else if (b <= (-2600000000000.0d0)) then
tmp = x * (y * z)
else if (b <= (-2d-85)) then
tmp = i * ((t * b) - (y * j))
else if (b <= 1.2d-41) then
tmp = j * ((a * c) - (y * 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 = b * ((t * i) - (z * c));
double tmp;
if (b <= -2.7e+76) {
tmp = t_1;
} else if (b <= -2600000000000.0) {
tmp = x * (y * z);
} else if (b <= -2e-85) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 1.2e-41) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -2.7e+76: tmp = t_1 elif b <= -2600000000000.0: tmp = x * (y * z) elif b <= -2e-85: tmp = i * ((t * b) - (y * j)) elif b <= 1.2e-41: tmp = j * ((a * c) - (y * i)) else: tmp = 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))) tmp = 0.0 if (b <= -2.7e+76) tmp = t_1; elseif (b <= -2600000000000.0) tmp = Float64(x * Float64(y * z)); elseif (b <= -2e-85) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= 1.2e-41) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = 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)); tmp = 0.0; if (b <= -2.7e+76) tmp = t_1; elseif (b <= -2600000000000.0) tmp = x * (y * z); elseif (b <= -2e-85) tmp = i * ((t * b) - (y * j)); elseif (b <= 1.2e-41) tmp = j * ((a * c) - (y * 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[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.7e+76], t$95$1, If[LessEqual[b, -2600000000000.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2e-85], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e-41], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.7 \cdot 10^{+76}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2600000000000:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq -2 \cdot 10^{-85}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{-41}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -2.6999999999999999e76 or 1.20000000000000011e-41 < b Initial program 67.9%
Taylor expanded in b around inf 64.5%
*-commutative64.5%
*-commutative64.5%
Simplified64.5%
if -2.6999999999999999e76 < b < -2.6e12Initial program 69.5%
Taylor expanded in a around 0 44.2%
*-commutative44.2%
*-commutative44.2%
sub-neg44.2%
associate-*r*44.2%
associate-*r*44.2%
*-commutative44.2%
associate-*r*49.8%
distribute-rgt-in56.0%
+-commutative56.0%
mul-1-neg56.0%
unsub-neg56.0%
*-commutative56.0%
distribute-rgt-neg-in56.0%
neg-sub056.0%
*-commutative56.0%
associate--r-56.0%
Simplified56.0%
Taylor expanded in x around inf 44.0%
if -2.6e12 < b < -2e-85Initial program 85.6%
prod-diff75.6%
*-commutative75.6%
fma-neg75.6%
distribute-rgt-in75.6%
*-commutative75.6%
*-commutative75.6%
*-commutative75.6%
Applied egg-rr75.6%
Taylor expanded in i around inf 60.5%
Simplified60.5%
if -2e-85 < b < 1.20000000000000011e-41Initial program 75.2%
prod-diff74.9%
*-commutative74.9%
fma-neg74.9%
distribute-rgt-in74.9%
*-commutative74.9%
*-commutative74.9%
*-commutative74.9%
Applied egg-rr74.9%
Taylor expanded in j around inf 56.1%
Final simplification60.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -2.4e+168)
(* t (* x (- a)))
(if (<= a -0.031)
(* a (* c j))
(if (<= a 7e-298)
(* i (* t b))
(if (<= a 6.5e-225)
(* y (* i (- j)))
(if (<= a 3.6e+42) (* x (* y z)) (* j (* a c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.4e+168) {
tmp = t * (x * -a);
} else if (a <= -0.031) {
tmp = a * (c * j);
} else if (a <= 7e-298) {
tmp = i * (t * b);
} else if (a <= 6.5e-225) {
tmp = y * (i * -j);
} else if (a <= 3.6e+42) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-2.4d+168)) then
tmp = t * (x * -a)
else if (a <= (-0.031d0)) then
tmp = a * (c * j)
else if (a <= 7d-298) then
tmp = i * (t * b)
else if (a <= 6.5d-225) then
tmp = y * (i * -j)
else if (a <= 3.6d+42) then
tmp = x * (y * z)
else
tmp = j * (a * c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.4e+168) {
tmp = t * (x * -a);
} else if (a <= -0.031) {
tmp = a * (c * j);
} else if (a <= 7e-298) {
tmp = i * (t * b);
} else if (a <= 6.5e-225) {
tmp = y * (i * -j);
} else if (a <= 3.6e+42) {
tmp = x * (y * z);
} else {
tmp = j * (a * c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.4e+168: tmp = t * (x * -a) elif a <= -0.031: tmp = a * (c * j) elif a <= 7e-298: tmp = i * (t * b) elif a <= 6.5e-225: tmp = y * (i * -j) elif a <= 3.6e+42: tmp = x * (y * z) else: tmp = j * (a * c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.4e+168) tmp = Float64(t * Float64(x * Float64(-a))); elseif (a <= -0.031) tmp = Float64(a * Float64(c * j)); elseif (a <= 7e-298) tmp = Float64(i * Float64(t * b)); elseif (a <= 6.5e-225) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 3.6e+42) tmp = Float64(x * Float64(y * z)); else tmp = Float64(j * Float64(a * c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.4e+168) tmp = t * (x * -a); elseif (a <= -0.031) tmp = a * (c * j); elseif (a <= 7e-298) tmp = i * (t * b); elseif (a <= 6.5e-225) tmp = y * (i * -j); elseif (a <= 3.6e+42) tmp = x * (y * z); else tmp = j * (a * c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.4e+168], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -0.031], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e-298], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.5e-225], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.6e+42], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.4 \cdot 10^{+168}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq -0.031:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{-298}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 6.5 \cdot 10^{-225}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 3.6 \cdot 10^{+42}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\end{array}
\end{array}
if a < -2.40000000000000009e168Initial program 61.0%
Taylor expanded in a around inf 58.4%
+-commutative58.4%
mul-1-neg58.4%
unsub-neg58.4%
*-commutative58.4%
*-commutative58.4%
Simplified58.4%
Taylor expanded in j around 0 43.6%
associate-*r*43.6%
*-commutative43.6%
associate-*r*46.4%
mul-1-neg46.4%
Simplified46.4%
if -2.40000000000000009e168 < a < -0.031Initial program 56.7%
Taylor expanded in a around inf 43.3%
+-commutative43.3%
mul-1-neg43.3%
unsub-neg43.3%
*-commutative43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in j around inf 31.3%
*-commutative31.3%
Simplified31.3%
if -0.031 < a < 6.9999999999999996e-298Initial program 78.3%
Taylor expanded in i around inf 46.9%
distribute-lft-out--46.9%
*-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in y around 0 34.1%
*-commutative34.1%
associate-*r*36.8%
Simplified36.8%
if 6.9999999999999996e-298 < a < 6.5000000000000005e-225Initial program 73.8%
Taylor expanded in y around inf 63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in x around 0 56.5%
neg-mul-156.5%
distribute-rgt-neg-in56.5%
Simplified56.5%
if 6.5000000000000005e-225 < a < 3.6000000000000001e42Initial program 81.2%
Taylor expanded in a around 0 66.2%
*-commutative66.2%
*-commutative66.2%
sub-neg66.2%
associate-*r*66.2%
associate-*r*66.2%
*-commutative66.2%
associate-*r*59.6%
distribute-rgt-in59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
*-commutative59.6%
distribute-rgt-neg-in59.6%
neg-sub059.6%
*-commutative59.6%
associate--r-59.6%
Simplified59.6%
Taylor expanded in x around inf 42.1%
if 3.6000000000000001e42 < a Initial program 68.9%
prod-diff64.8%
*-commutative64.8%
fma-neg64.8%
distribute-rgt-in64.8%
*-commutative64.8%
*-commutative64.8%
*-commutative64.8%
Applied egg-rr64.8%
Taylor expanded in j around inf 52.7%
Taylor expanded in a around inf 46.4%
Final simplification41.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= a -1.5)
t_1
(if (<= a 1.65e-297)
(* i (* t b))
(if (<= a 5e-225)
(- (* j (* y i)))
(if (<= a 1.32e+39) (* x (* y z)) 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);
double tmp;
if (a <= -1.5) {
tmp = t_1;
} else if (a <= 1.65e-297) {
tmp = i * (t * b);
} else if (a <= 5e-225) {
tmp = -(j * (y * i));
} else if (a <= 1.32e+39) {
tmp = x * (y * z);
} 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)
if (a <= (-1.5d0)) then
tmp = t_1
else if (a <= 1.65d-297) then
tmp = i * (t * b)
else if (a <= 5d-225) then
tmp = -(j * (y * i))
else if (a <= 1.32d+39) then
tmp = x * (y * z)
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);
double tmp;
if (a <= -1.5) {
tmp = t_1;
} else if (a <= 1.65e-297) {
tmp = i * (t * b);
} else if (a <= 5e-225) {
tmp = -(j * (y * i));
} else if (a <= 1.32e+39) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if a <= -1.5: tmp = t_1 elif a <= 1.65e-297: tmp = i * (t * b) elif a <= 5e-225: tmp = -(j * (y * i)) elif a <= 1.32e+39: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (a <= -1.5) tmp = t_1; elseif (a <= 1.65e-297) tmp = Float64(i * Float64(t * b)); elseif (a <= 5e-225) tmp = Float64(-Float64(j * Float64(y * i))); elseif (a <= 1.32e+39) tmp = Float64(x * Float64(y * z)); 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); tmp = 0.0; if (a <= -1.5) tmp = t_1; elseif (a <= 1.65e-297) tmp = i * (t * b); elseif (a <= 5e-225) tmp = -(j * (y * i)); elseif (a <= 1.32e+39) tmp = x * (y * z); 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[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.5], t$95$1, If[LessEqual[a, 1.65e-297], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 5e-225], (-N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), If[LessEqual[a, 1.32e+39], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -1.5:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.65 \cdot 10^{-297}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-225}:\\
\;\;\;\;-j \cdot \left(y \cdot i\right)\\
\mathbf{elif}\;a \leq 1.32 \cdot 10^{+39}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.5 or 1.32e39 < a Initial program 63.0%
prod-diff61.3%
*-commutative61.3%
fma-neg61.3%
distribute-rgt-in59.6%
*-commutative59.6%
*-commutative59.6%
*-commutative59.6%
Applied egg-rr59.6%
Taylor expanded in j around inf 48.4%
Taylor expanded in a around inf 37.7%
if -1.5 < a < 1.6499999999999999e-297Initial program 78.3%
Taylor expanded in i around inf 46.9%
distribute-lft-out--46.9%
*-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in y around 0 34.1%
*-commutative34.1%
associate-*r*36.8%
Simplified36.8%
if 1.6499999999999999e-297 < a < 5.0000000000000001e-225Initial program 73.8%
prod-diff66.7%
*-commutative66.7%
fma-neg66.7%
distribute-rgt-in66.7%
*-commutative66.7%
*-commutative66.7%
*-commutative66.7%
Applied egg-rr66.7%
Taylor expanded in j around inf 57.0%
Taylor expanded in a around 0 50.5%
associate-*r*50.5%
neg-mul-150.5%
*-commutative50.5%
Simplified50.5%
if 5.0000000000000001e-225 < a < 1.32e39Initial program 81.2%
Taylor expanded in a around 0 66.2%
*-commutative66.2%
*-commutative66.2%
sub-neg66.2%
associate-*r*66.2%
associate-*r*66.2%
*-commutative66.2%
associate-*r*59.6%
distribute-rgt-in59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
*-commutative59.6%
distribute-rgt-neg-in59.6%
neg-sub059.6%
*-commutative59.6%
associate--r-59.6%
Simplified59.6%
Taylor expanded in x around inf 42.1%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= a -1.6)
t_1
(if (<= a 4e-297)
(* i (* t b))
(if (<= a 3.4e-226)
(* y (* i (- j)))
(if (<= a 1.02e+41) (* x (* y z)) 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);
double tmp;
if (a <= -1.6) {
tmp = t_1;
} else if (a <= 4e-297) {
tmp = i * (t * b);
} else if (a <= 3.4e-226) {
tmp = y * (i * -j);
} else if (a <= 1.02e+41) {
tmp = x * (y * z);
} 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)
if (a <= (-1.6d0)) then
tmp = t_1
else if (a <= 4d-297) then
tmp = i * (t * b)
else if (a <= 3.4d-226) then
tmp = y * (i * -j)
else if (a <= 1.02d+41) then
tmp = x * (y * z)
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);
double tmp;
if (a <= -1.6) {
tmp = t_1;
} else if (a <= 4e-297) {
tmp = i * (t * b);
} else if (a <= 3.4e-226) {
tmp = y * (i * -j);
} else if (a <= 1.02e+41) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if a <= -1.6: tmp = t_1 elif a <= 4e-297: tmp = i * (t * b) elif a <= 3.4e-226: tmp = y * (i * -j) elif a <= 1.02e+41: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (a <= -1.6) tmp = t_1; elseif (a <= 4e-297) tmp = Float64(i * Float64(t * b)); elseif (a <= 3.4e-226) tmp = Float64(y * Float64(i * Float64(-j))); elseif (a <= 1.02e+41) tmp = Float64(x * Float64(y * z)); 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); tmp = 0.0; if (a <= -1.6) tmp = t_1; elseif (a <= 4e-297) tmp = i * (t * b); elseif (a <= 3.4e-226) tmp = y * (i * -j); elseif (a <= 1.02e+41) tmp = x * (y * z); 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[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.6], t$95$1, If[LessEqual[a, 4e-297], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.4e-226], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.02e+41], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -1.6:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 4 \cdot 10^{-297}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq 3.4 \cdot 10^{-226}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 1.02 \cdot 10^{+41}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.6000000000000001 or 1.01999999999999992e41 < a Initial program 63.0%
prod-diff61.3%
*-commutative61.3%
fma-neg61.3%
distribute-rgt-in59.6%
*-commutative59.6%
*-commutative59.6%
*-commutative59.6%
Applied egg-rr59.6%
Taylor expanded in j around inf 48.4%
Taylor expanded in a around inf 37.7%
if -1.6000000000000001 < a < 4.00000000000000016e-297Initial program 78.3%
Taylor expanded in i around inf 46.9%
distribute-lft-out--46.9%
*-commutative46.9%
*-commutative46.9%
Simplified46.9%
Taylor expanded in y around 0 34.1%
*-commutative34.1%
associate-*r*36.8%
Simplified36.8%
if 4.00000000000000016e-297 < a < 3.40000000000000007e-226Initial program 73.8%
Taylor expanded in y around inf 63.1%
+-commutative63.1%
mul-1-neg63.1%
unsub-neg63.1%
*-commutative63.1%
Simplified63.1%
Taylor expanded in x around 0 56.5%
neg-mul-156.5%
distribute-rgt-neg-in56.5%
Simplified56.5%
if 3.40000000000000007e-226 < a < 1.01999999999999992e41Initial program 81.2%
Taylor expanded in a around 0 66.2%
*-commutative66.2%
*-commutative66.2%
sub-neg66.2%
associate-*r*66.2%
associate-*r*66.2%
*-commutative66.2%
associate-*r*59.6%
distribute-rgt-in59.6%
+-commutative59.6%
mul-1-neg59.6%
unsub-neg59.6%
*-commutative59.6%
distribute-rgt-neg-in59.6%
neg-sub059.6%
*-commutative59.6%
associate--r-59.6%
Simplified59.6%
Taylor expanded in x around inf 42.1%
Final simplification39.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (* a c))))
(if (<= a -7.2e-7)
t_1
(if (<= a 2.85e-245)
(* t (* b i))
(if (<= a 3.7e+44) (* x (* y z)) 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);
double tmp;
if (a <= -7.2e-7) {
tmp = t_1;
} else if (a <= 2.85e-245) {
tmp = t * (b * i);
} else if (a <= 3.7e+44) {
tmp = x * (y * z);
} 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)
if (a <= (-7.2d-7)) then
tmp = t_1
else if (a <= 2.85d-245) then
tmp = t * (b * i)
else if (a <= 3.7d+44) then
tmp = x * (y * z)
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);
double tmp;
if (a <= -7.2e-7) {
tmp = t_1;
} else if (a <= 2.85e-245) {
tmp = t * (b * i);
} else if (a <= 3.7e+44) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * (a * c) tmp = 0 if a <= -7.2e-7: tmp = t_1 elif a <= 2.85e-245: tmp = t * (b * i) elif a <= 3.7e+44: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(a * c)) tmp = 0.0 if (a <= -7.2e-7) tmp = t_1; elseif (a <= 2.85e-245) tmp = Float64(t * Float64(b * i)); elseif (a <= 3.7e+44) tmp = Float64(x * Float64(y * z)); 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); tmp = 0.0; if (a <= -7.2e-7) tmp = t_1; elseif (a <= 2.85e-245) tmp = t * (b * i); elseif (a <= 3.7e+44) tmp = x * (y * z); 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[(a * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -7.2e-7], t$95$1, If[LessEqual[a, 2.85e-245], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.7e+44], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c\right)\\
\mathbf{if}\;a \leq -7.2 \cdot 10^{-7}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.85 \cdot 10^{-245}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 3.7 \cdot 10^{+44}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -7.19999999999999989e-7 or 3.7000000000000001e44 < a Initial program 63.0%
prod-diff61.3%
*-commutative61.3%
fma-neg61.3%
distribute-rgt-in59.6%
*-commutative59.6%
*-commutative59.6%
*-commutative59.6%
Applied egg-rr59.6%
Taylor expanded in j around inf 48.4%
Taylor expanded in a around inf 37.7%
if -7.19999999999999989e-7 < a < 2.85e-245Initial program 77.0%
Taylor expanded in t around inf 41.8%
distribute-lft-out--41.8%
*-commutative41.8%
*-commutative41.8%
Simplified41.8%
Taylor expanded in x around 0 31.6%
*-commutative31.6%
*-commutative31.6%
associate-*l*35.3%
Simplified35.3%
if 2.85e-245 < a < 3.7000000000000001e44Initial program 81.4%
Taylor expanded in a around 0 69.3%
*-commutative69.3%
*-commutative69.3%
sub-neg69.3%
associate-*r*69.3%
associate-*r*69.3%
*-commutative69.3%
associate-*r*63.4%
distribute-rgt-in63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
*-commutative63.4%
distribute-rgt-neg-in63.4%
neg-sub063.4%
*-commutative63.4%
associate--r-63.4%
Simplified63.4%
Taylor expanded in x around inf 39.9%
Final simplification37.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -0.00016) (not (<= c 1.3e-31))) (* 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 <= -0.00016) || !(c <= 1.3e-31)) {
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 <= (-0.00016d0)) .or. (.not. (c <= 1.3d-31))) 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 <= -0.00016) || !(c <= 1.3e-31)) {
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 <= -0.00016) or not (c <= 1.3e-31): 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 <= -0.00016) || !(c <= 1.3e-31)) 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 <= -0.00016) || ~((c <= 1.3e-31))) 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, -0.00016], N[Not[LessEqual[c, 1.3e-31]], $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 -0.00016 \lor \neg \left(c \leq 1.3 \cdot 10^{-31}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -1.60000000000000013e-4 or 1.29999999999999998e-31 < c Initial program 63.1%
Taylor expanded in a around inf 40.0%
+-commutative40.0%
mul-1-neg40.0%
unsub-neg40.0%
*-commutative40.0%
*-commutative40.0%
Simplified40.0%
Taylor expanded in j around inf 31.0%
*-commutative31.0%
Simplified31.0%
if -1.60000000000000013e-4 < c < 1.29999999999999998e-31Initial program 82.2%
Taylor expanded in t around inf 40.1%
distribute-lft-out--40.1%
*-commutative40.1%
*-commutative40.1%
Simplified40.1%
Taylor expanded in x around 0 29.1%
Final simplification30.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -5.5e-10) (* b (* t i)) (if (<= i 8.0) (* 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 (i <= -5.5e-10) {
tmp = b * (t * i);
} else if (i <= 8.0) {
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 (i <= (-5.5d-10)) then
tmp = b * (t * i)
else if (i <= 8.0d0) 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 (i <= -5.5e-10) {
tmp = b * (t * i);
} else if (i <= 8.0) {
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 i <= -5.5e-10: tmp = b * (t * i) elif i <= 8.0: 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 (i <= -5.5e-10) tmp = Float64(b * Float64(t * i)); elseif (i <= 8.0) 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 (i <= -5.5e-10) tmp = b * (t * i); elseif (i <= 8.0) 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[LessEqual[i, -5.5e-10], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.0], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.5 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;i \leq 8:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if i < -5.4999999999999996e-10Initial program 71.6%
Taylor expanded in t around inf 43.7%
distribute-lft-out--43.7%
*-commutative43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in x around 0 40.6%
if -5.4999999999999996e-10 < i < 8Initial program 74.5%
prod-diff74.5%
*-commutative74.5%
fma-neg74.5%
distribute-rgt-in73.1%
*-commutative73.1%
*-commutative73.1%
*-commutative73.1%
Applied egg-rr73.1%
Taylor expanded in j around inf 35.1%
Taylor expanded in a around inf 29.9%
if 8 < i Initial program 65.1%
Taylor expanded in i around inf 50.2%
distribute-lft-out--50.2%
*-commutative50.2%
*-commutative50.2%
Simplified50.2%
Taylor expanded in y around 0 25.6%
*-commutative25.6%
associate-*r*27.3%
Simplified27.3%
Final simplification31.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -4.4e-10) (* b (* t i)) (if (<= i 1.75) (* j (* a c)) (* t (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -4.4e-10) {
tmp = b * (t * i);
} else if (i <= 1.75) {
tmp = j * (a * c);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-4.4d-10)) then
tmp = b * (t * i)
else if (i <= 1.75d0) then
tmp = j * (a * c)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -4.4e-10) {
tmp = b * (t * i);
} else if (i <= 1.75) {
tmp = j * (a * c);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -4.4e-10: tmp = b * (t * i) elif i <= 1.75: tmp = j * (a * c) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -4.4e-10) tmp = Float64(b * Float64(t * i)); elseif (i <= 1.75) tmp = Float64(j * Float64(a * c)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -4.4e-10) tmp = b * (t * i); elseif (i <= 1.75) tmp = j * (a * c); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -4.4e-10], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.75], N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.4 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;i \leq 1.75:\\
\;\;\;\;j \cdot \left(a \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -4.3999999999999998e-10Initial program 71.6%
Taylor expanded in t around inf 43.7%
distribute-lft-out--43.7%
*-commutative43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in x around 0 40.6%
if -4.3999999999999998e-10 < i < 1.75Initial program 74.5%
prod-diff74.5%
*-commutative74.5%
fma-neg74.5%
distribute-rgt-in73.1%
*-commutative73.1%
*-commutative73.1%
*-commutative73.1%
Applied egg-rr73.1%
Taylor expanded in j around inf 35.1%
Taylor expanded in a around inf 29.9%
if 1.75 < i Initial program 65.1%
Taylor expanded in t around inf 36.7%
distribute-lft-out--36.7%
*-commutative36.7%
*-commutative36.7%
Simplified36.7%
Taylor expanded in x around 0 25.6%
*-commutative25.6%
*-commutative25.6%
associate-*l*29.1%
Simplified29.1%
Final simplification32.2%
(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 71.8%
Taylor expanded in a around inf 34.0%
+-commutative34.0%
mul-1-neg34.0%
unsub-neg34.0%
*-commutative34.0%
*-commutative34.0%
Simplified34.0%
Taylor expanded in j around inf 21.2%
*-commutative21.2%
Simplified21.2%
Final simplification21.2%
(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 2023310
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))