
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 21 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
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) - (i * a)))) + (j * ((c * t) - (i * y)))
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) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
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(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); 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[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z)))))
(t_2 (- (* t c) (* y i))))
(if (<= (+ (* j t_2) t_1) INFINITY)
(fma j t_2 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 = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)));
double t_2 = (t * c) - (y * i);
double tmp;
if (((j * t_2) + t_1) <= ((double) INFINITY)) {
tmp = fma(j, t_2, 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(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(j * t_2) + t_1) <= Inf) tmp = fma(j, t_2, t_1); else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(j * t$95$2), $MachinePrecision] + t$95$1), $MachinePrecision], Infinity], N[(j * t$95$2 + t$95$1), $MachinePrecision], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \cdot t_2 + t_1 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t_2, t_1\right)\\
\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 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.1%
+-commutative91.1%
fma-def91.1%
*-commutative91.1%
*-commutative91.1%
cancel-sign-sub-inv91.1%
cancel-sign-sub91.1%
remove-double-neg91.1%
*-commutative91.1%
*-commutative91.1%
Simplified91.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 63.0%
*-commutative63.0%
Simplified63.0%
Final simplification85.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* t c) (* y i)))
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z)))))))
(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 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))));
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 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))));
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 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) 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(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z))))) 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 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))); 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $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 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\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 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.1%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 63.0%
*-commutative63.0%
Simplified63.0%
Final simplification85.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (- t_1 (* x (- (* t a) (* y z))))))
(if (<= b -5.2e+147)
t_1
(if (<= b -2.35e-20)
t_2
(if (<= b -6e-156)
(* j (- (* t c) (* y i)))
(if (<= b 4.6e+30)
(- (+ (* x (- (* y z) (* t a))) (* c (* t j))) (* b (* z c)))
t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t_1 - (x * ((t * a) - (y * z)));
double tmp;
if (b <= -5.2e+147) {
tmp = t_1;
} else if (b <= -2.35e-20) {
tmp = t_2;
} else if (b <= -6e-156) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.6e+30) {
tmp = ((x * ((y * z) - (t * a))) + (c * (t * j))) - (b * (z * c));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = t_1 - (x * ((t * a) - (y * z)))
if (b <= (-5.2d+147)) then
tmp = t_1
else if (b <= (-2.35d-20)) then
tmp = t_2
else if (b <= (-6d-156)) then
tmp = j * ((t * c) - (y * i))
else if (b <= 4.6d+30) then
tmp = ((x * ((y * z) - (t * a))) + (c * (t * j))) - (b * (z * c))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = t_1 - (x * ((t * a) - (y * z)));
double tmp;
if (b <= -5.2e+147) {
tmp = t_1;
} else if (b <= -2.35e-20) {
tmp = t_2;
} else if (b <= -6e-156) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 4.6e+30) {
tmp = ((x * ((y * z) - (t * a))) + (c * (t * j))) - (b * (z * c));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = t_1 - (x * ((t * a) - (y * z))) tmp = 0 if b <= -5.2e+147: tmp = t_1 elif b <= -2.35e-20: tmp = t_2 elif b <= -6e-156: tmp = j * ((t * c) - (y * i)) elif b <= 4.6e+30: tmp = ((x * ((y * z) - (t * a))) + (c * (t * j))) - (b * (z * c)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) tmp = 0.0 if (b <= -5.2e+147) tmp = t_1; elseif (b <= -2.35e-20) tmp = t_2; elseif (b <= -6e-156) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 4.6e+30) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(c * Float64(t * j))) - Float64(b * Float64(z * c))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = t_1 - (x * ((t * a) - (y * z))); tmp = 0.0; if (b <= -5.2e+147) tmp = t_1; elseif (b <= -2.35e-20) tmp = t_2; elseif (b <= -6e-156) tmp = j * ((t * c) - (y * i)); elseif (b <= 4.6e+30) tmp = ((x * ((y * z) - (t * a))) + (c * (t * j))) - (b * (z * c)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5.2e+147], t$95$1, If[LessEqual[b, -2.35e-20], t$95$2, If[LessEqual[b, -6e-156], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.6e+30], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{if}\;b \leq -5.2 \cdot 10^{+147}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.35 \cdot 10^{-20}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -6 \cdot 10^{-156}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 4.6 \cdot 10^{+30}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + c \cdot \left(t \cdot j\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if b < -5.1999999999999997e147Initial program 47.9%
Taylor expanded in b around inf 77.5%
*-commutative77.5%
Simplified77.5%
if -5.1999999999999997e147 < b < -2.35000000000000007e-20 or 4.6e30 < b Initial program 80.3%
Taylor expanded in j around 0 73.9%
if -2.35000000000000007e-20 < b < -6e-156Initial program 74.3%
Taylor expanded in j around inf 63.1%
if -6e-156 < b < 4.6e30Initial program 74.9%
Taylor expanded in i around 0 64.9%
Final simplification70.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (or (<= j -2.25e+73)
(and (not (<= j 1.05e+20))
(or (<= j 3.1e+141) (not (<= j 2.8e+166)))))
(* j (- (* t c) (* y i)))
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.25e+73) || (!(j <= 1.05e+20) && ((j <= 3.1e+141) || !(j <= 2.8e+166)))) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-2.25d+73)) .or. (.not. (j <= 1.05d+20)) .and. (j <= 3.1d+141) .or. (.not. (j <= 2.8d+166))) then
tmp = j * ((t * c) - (y * i))
else
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -2.25e+73) || (!(j <= 1.05e+20) && ((j <= 3.1e+141) || !(j <= 2.8e+166)))) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -2.25e+73) or (not (j <= 1.05e+20) and ((j <= 3.1e+141) or not (j <= 2.8e+166))): tmp = j * ((t * c) - (y * i)) else: tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -2.25e+73) || (!(j <= 1.05e+20) && ((j <= 3.1e+141) || !(j <= 2.8e+166)))) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -2.25e+73) || (~((j <= 1.05e+20)) && ((j <= 3.1e+141) || ~((j <= 2.8e+166))))) tmp = j * ((t * c) - (y * i)); else tmp = (b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -2.25e+73], And[N[Not[LessEqual[j, 1.05e+20]], $MachinePrecision], Or[LessEqual[j, 3.1e+141], N[Not[LessEqual[j, 2.8e+166]], $MachinePrecision]]]], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.25 \cdot 10^{+73} \lor \neg \left(j \leq 1.05 \cdot 10^{+20}\right) \land \left(j \leq 3.1 \cdot 10^{+141} \lor \neg \left(j \leq 2.8 \cdot 10^{+166}\right)\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if j < -2.24999999999999992e73 or 1.05e20 < j < 3.10000000000000004e141 or 2.79999999999999996e166 < j Initial program 73.9%
Taylor expanded in j around inf 64.5%
if -2.24999999999999992e73 < j < 1.05e20 or 3.10000000000000004e141 < j < 2.79999999999999996e166Initial program 72.4%
Taylor expanded in j around 0 73.1%
Final simplification69.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -7e+78)
t_2
(if (<= y -5.4e+32)
t_1
(if (<= y -0.00042)
t_2
(if (<= y 9e-269)
(* c (- (* t j) (* z b)))
(if (<= y 3.7e-176)
(* t (- (* c j) (* x a)))
(if (<= y 1.3e+141) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7e+78) {
tmp = t_2;
} else if (y <= -5.4e+32) {
tmp = t_1;
} else if (y <= -0.00042) {
tmp = t_2;
} else if (y <= 9e-269) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3.7e-176) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.3e+141) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-7d+78)) then
tmp = t_2
else if (y <= (-5.4d+32)) then
tmp = t_1
else if (y <= (-0.00042d0)) then
tmp = t_2
else if (y <= 9d-269) then
tmp = c * ((t * j) - (z * b))
else if (y <= 3.7d-176) then
tmp = t * ((c * j) - (x * a))
else if (y <= 1.3d+141) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7e+78) {
tmp = t_2;
} else if (y <= -5.4e+32) {
tmp = t_1;
} else if (y <= -0.00042) {
tmp = t_2;
} else if (y <= 9e-269) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3.7e-176) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.3e+141) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -7e+78: tmp = t_2 elif y <= -5.4e+32: tmp = t_1 elif y <= -0.00042: tmp = t_2 elif y <= 9e-269: tmp = c * ((t * j) - (z * b)) elif y <= 3.7e-176: tmp = t * ((c * j) - (x * a)) elif y <= 1.3e+141: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -7e+78) tmp = t_2; elseif (y <= -5.4e+32) tmp = t_1; elseif (y <= -0.00042) tmp = t_2; elseif (y <= 9e-269) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 3.7e-176) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 1.3e+141) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -7e+78) tmp = t_2; elseif (y <= -5.4e+32) tmp = t_1; elseif (y <= -0.00042) tmp = t_2; elseif (y <= 9e-269) tmp = c * ((t * j) - (z * b)); elseif (y <= 3.7e-176) tmp = t * ((c * j) - (x * a)); elseif (y <= 1.3e+141) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e+78], t$95$2, If[LessEqual[y, -5.4e+32], t$95$1, If[LessEqual[y, -0.00042], t$95$2, If[LessEqual[y, 9e-269], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e-176], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+141], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -7 \cdot 10^{+78}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq -5.4 \cdot 10^{+32}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -0.00042:\\
\;\;\;\;t_2\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-269}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{-176}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+141}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if y < -7.0000000000000003e78 or -5.40000000000000025e32 < y < -4.2000000000000002e-4 or 1.3e141 < y Initial program 64.2%
Taylor expanded in y around inf 73.5%
+-commutative73.5%
mul-1-neg73.5%
unsub-neg73.5%
Simplified73.5%
if -7.0000000000000003e78 < y < -5.40000000000000025e32 or 3.69999999999999984e-176 < y < 1.3e141Initial program 71.7%
Taylor expanded in b around inf 57.7%
*-commutative57.7%
Simplified57.7%
if -4.2000000000000002e-4 < y < 9.0000000000000003e-269Initial program 79.2%
Taylor expanded in c around inf 60.2%
*-commutative60.2%
*-commutative60.2%
Simplified60.2%
if 9.0000000000000003e-269 < y < 3.69999999999999984e-176Initial program 91.0%
Taylor expanded in t around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -2.8e+140)
t_1
(if (<= y -1.35e+32)
(* z (- (* x y) (* b c)))
(if (<= y -0.00035)
t_1
(if (<= y 7.5e-270)
(* c (- (* t j) (* z b)))
(if (<= y 4.2e-176)
(* t (- (* c j) (* x a)))
(if (<= y 1.7e+139) (* b (- (* a i) (* z c))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.8e+140) {
tmp = t_1;
} else if (y <= -1.35e+32) {
tmp = z * ((x * y) - (b * c));
} else if (y <= -0.00035) {
tmp = t_1;
} else if (y <= 7.5e-270) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 4.2e-176) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.7e+139) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-2.8d+140)) then
tmp = t_1
else if (y <= (-1.35d+32)) then
tmp = z * ((x * y) - (b * c))
else if (y <= (-0.00035d0)) then
tmp = t_1
else if (y <= 7.5d-270) then
tmp = c * ((t * j) - (z * b))
else if (y <= 4.2d-176) then
tmp = t * ((c * j) - (x * a))
else if (y <= 1.7d+139) then
tmp = b * ((a * i) - (z * c))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.8e+140) {
tmp = t_1;
} else if (y <= -1.35e+32) {
tmp = z * ((x * y) - (b * c));
} else if (y <= -0.00035) {
tmp = t_1;
} else if (y <= 7.5e-270) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 4.2e-176) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 1.7e+139) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.8e+140: tmp = t_1 elif y <= -1.35e+32: tmp = z * ((x * y) - (b * c)) elif y <= -0.00035: tmp = t_1 elif y <= 7.5e-270: tmp = c * ((t * j) - (z * b)) elif y <= 4.2e-176: tmp = t * ((c * j) - (x * a)) elif y <= 1.7e+139: tmp = b * ((a * i) - (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.8e+140) tmp = t_1; elseif (y <= -1.35e+32) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (y <= -0.00035) tmp = t_1; elseif (y <= 7.5e-270) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 4.2e-176) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 1.7e+139) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.8e+140) tmp = t_1; elseif (y <= -1.35e+32) tmp = z * ((x * y) - (b * c)); elseif (y <= -0.00035) tmp = t_1; elseif (y <= 7.5e-270) tmp = c * ((t * j) - (z * b)); elseif (y <= 4.2e-176) tmp = t * ((c * j) - (x * a)); elseif (y <= 1.7e+139) tmp = b * ((a * i) - (z * c)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.8e+140], t$95$1, If[LessEqual[y, -1.35e+32], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -0.00035], t$95$1, If[LessEqual[y, 7.5e-270], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.2e-176], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e+139], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.8 \cdot 10^{+140}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq -1.35 \cdot 10^{+32}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;y \leq -0.00035:\\
\;\;\;\;t_1\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-270}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 4.2 \cdot 10^{-176}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+139}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if y < -2.79999999999999983e140 or -1.35000000000000006e32 < y < -3.49999999999999996e-4 or 1.7000000000000001e139 < y Initial program 65.2%
Taylor expanded in y around inf 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
if -2.79999999999999983e140 < y < -1.35000000000000006e32Initial program 59.6%
Taylor expanded in z around inf 68.4%
*-commutative68.4%
Simplified68.4%
if -3.49999999999999996e-4 < y < 7.4999999999999997e-270Initial program 79.2%
Taylor expanded in c around inf 60.2%
*-commutative60.2%
*-commutative60.2%
Simplified60.2%
if 7.4999999999999997e-270 < y < 4.19999999999999984e-176Initial program 91.0%
Taylor expanded in t around inf 70.4%
+-commutative70.4%
mul-1-neg70.4%
unsub-neg70.4%
*-commutative70.4%
*-commutative70.4%
Simplified70.4%
if 4.19999999999999984e-176 < y < 1.7000000000000001e139Initial program 73.6%
Taylor expanded in b around inf 55.3%
*-commutative55.3%
Simplified55.3%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* a b) (* y j)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -1.06e+41)
t_2
(if (<= z -1.95e-63)
(* a (- (* b i) (* x t)))
(if (<= z -1.62e-158)
(* j (- (* t c) (* y i)))
(if (<= z -1.8e-199)
t_1
(if (<= z 1.25e-171)
(* t (- (* c j) (* x a)))
(if (<= z 6.6e-53) 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 = i * ((a * b) - (y * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.06e+41) {
tmp = t_2;
} else if (z <= -1.95e-63) {
tmp = a * ((b * i) - (x * t));
} else if (z <= -1.62e-158) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -1.8e-199) {
tmp = t_1;
} else if (z <= 1.25e-171) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 6.6e-53) {
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 = i * ((a * b) - (y * j))
t_2 = z * ((x * y) - (b * c))
if (z <= (-1.06d+41)) then
tmp = t_2
else if (z <= (-1.95d-63)) then
tmp = a * ((b * i) - (x * t))
else if (z <= (-1.62d-158)) then
tmp = j * ((t * c) - (y * i))
else if (z <= (-1.8d-199)) then
tmp = t_1
else if (z <= 1.25d-171) then
tmp = t * ((c * j) - (x * a))
else if (z <= 6.6d-53) 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 = i * ((a * b) - (y * j));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.06e+41) {
tmp = t_2;
} else if (z <= -1.95e-63) {
tmp = a * ((b * i) - (x * t));
} else if (z <= -1.62e-158) {
tmp = j * ((t * c) - (y * i));
} else if (z <= -1.8e-199) {
tmp = t_1;
} else if (z <= 1.25e-171) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 6.6e-53) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((a * b) - (y * j)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.06e+41: tmp = t_2 elif z <= -1.95e-63: tmp = a * ((b * i) - (x * t)) elif z <= -1.62e-158: tmp = j * ((t * c) - (y * i)) elif z <= -1.8e-199: tmp = t_1 elif z <= 1.25e-171: tmp = t * ((c * j) - (x * a)) elif z <= 6.6e-53: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.06e+41) tmp = t_2; elseif (z <= -1.95e-63) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= -1.62e-158) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= -1.8e-199) tmp = t_1; elseif (z <= 1.25e-171) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 6.6e-53) 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 = i * ((a * b) - (y * j)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.06e+41) tmp = t_2; elseif (z <= -1.95e-63) tmp = a * ((b * i) - (x * t)); elseif (z <= -1.62e-158) tmp = j * ((t * c) - (y * i)); elseif (z <= -1.8e-199) tmp = t_1; elseif (z <= 1.25e-171) tmp = t * ((c * j) - (x * a)); elseif (z <= 6.6e-53) 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[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.06e+41], t$95$2, If[LessEqual[z, -1.95e-63], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.62e-158], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.8e-199], t$95$1, If[LessEqual[z, 1.25e-171], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.6e-53], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b - y \cdot j\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.06 \cdot 10^{+41}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -1.95 \cdot 10^{-63}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq -1.62 \cdot 10^{-158}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq -1.8 \cdot 10^{-199}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.25 \cdot 10^{-171}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 6.6 \cdot 10^{-53}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -1.06e41 or 6.60000000000000009e-53 < z Initial program 64.5%
Taylor expanded in z around inf 72.8%
*-commutative72.8%
Simplified72.8%
if -1.06e41 < z < -1.95000000000000011e-63Initial program 91.4%
Taylor expanded in a around -inf 59.1%
if -1.95000000000000011e-63 < z < -1.62000000000000002e-158Initial program 91.8%
Taylor expanded in j around inf 70.2%
if -1.62000000000000002e-158 < z < -1.8000000000000001e-199 or 1.24999999999999998e-171 < z < 6.60000000000000009e-53Initial program 76.4%
Taylor expanded in i around inf 69.8%
distribute-lft-out--69.8%
*-commutative69.8%
Simplified69.8%
if -1.8000000000000001e-199 < z < 1.24999999999999998e-171Initial program 75.1%
Taylor expanded in t around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
*-commutative60.0%
*-commutative60.0%
Simplified60.0%
Final simplification68.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (* x (- (* y z) (* t a))))
(t_3 (* b (- (* a i) (* z c)))))
(if (<= b -7.8e+73)
t_3
(if (<= b -2.8e-17)
t_2
(if (<= b -8e-177)
t_1
(if (<= b -2.4e-234) t_2 (if (<= b 8.5e+21) 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 * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.8e+73) {
tmp = t_3;
} else if (b <= -2.8e-17) {
tmp = t_2;
} else if (b <= -8e-177) {
tmp = t_1;
} else if (b <= -2.4e-234) {
tmp = t_2;
} else if (b <= 8.5e+21) {
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 * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
t_3 = b * ((a * i) - (z * c))
if (b <= (-7.8d+73)) then
tmp = t_3
else if (b <= (-2.8d-17)) then
tmp = t_2
else if (b <= (-8d-177)) then
tmp = t_1
else if (b <= (-2.4d-234)) then
tmp = t_2
else if (b <= 8.5d+21) 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 * ((t * c) - (y * i));
double t_2 = x * ((y * z) - (t * a));
double t_3 = b * ((a * i) - (z * c));
double tmp;
if (b <= -7.8e+73) {
tmp = t_3;
} else if (b <= -2.8e-17) {
tmp = t_2;
} else if (b <= -8e-177) {
tmp = t_1;
} else if (b <= -2.4e-234) {
tmp = t_2;
} else if (b <= 8.5e+21) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = x * ((y * z) - (t * a)) t_3 = b * ((a * i) - (z * c)) tmp = 0 if b <= -7.8e+73: tmp = t_3 elif b <= -2.8e-17: tmp = t_2 elif b <= -8e-177: tmp = t_1 elif b <= -2.4e-234: tmp = t_2 elif b <= 8.5e+21: 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(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_3 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -7.8e+73) tmp = t_3; elseif (b <= -2.8e-17) tmp = t_2; elseif (b <= -8e-177) tmp = t_1; elseif (b <= -2.4e-234) tmp = t_2; elseif (b <= 8.5e+21) 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 * ((t * c) - (y * i)); t_2 = x * ((y * z) - (t * a)); t_3 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -7.8e+73) tmp = t_3; elseif (b <= -2.8e-17) tmp = t_2; elseif (b <= -8e-177) tmp = t_1; elseif (b <= -2.4e-234) tmp = t_2; elseif (b <= 8.5e+21) 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[(t * c), $MachinePrecision] - N[(y * i), $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[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.8e+73], t$95$3, If[LessEqual[b, -2.8e-17], t$95$2, If[LessEqual[b, -8e-177], t$95$1, If[LessEqual[b, -2.4e-234], t$95$2, If[LessEqual[b, 8.5e+21], t$95$1, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_3 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -7.8 \cdot 10^{+73}:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -2.8 \cdot 10^{-17}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -8 \cdot 10^{-177}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -2.4 \cdot 10^{-234}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+21}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -7.8000000000000002e73 or 8.5e21 < b Initial program 69.6%
Taylor expanded in b around inf 69.5%
*-commutative69.5%
Simplified69.5%
if -7.8000000000000002e73 < b < -2.7999999999999999e-17 or -7.99999999999999962e-177 < b < -2.3999999999999999e-234Initial program 81.5%
Taylor expanded in j around 0 85.1%
Taylor expanded in x around inf 69.6%
if -2.7999999999999999e-17 < b < -7.99999999999999962e-177 or -2.3999999999999999e-234 < b < 8.5e21Initial program 74.1%
Taylor expanded in j around inf 55.8%
Final simplification63.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c))) (t_2 (* z (* x y))))
(if (<= x -9.5e+38)
t_2
(if (<= x -1.65e-77)
t_1
(if (<= x -3.4e-124)
(* b (* a i))
(if (<= x -1.2e-300)
t_1
(if (<= x 1.8e-70) (* c (* t j)) (if (<= x 28500.0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -9.5e+38) {
tmp = t_2;
} else if (x <= -1.65e-77) {
tmp = t_1;
} else if (x <= -3.4e-124) {
tmp = b * (a * i);
} else if (x <= -1.2e-300) {
tmp = t_1;
} else if (x <= 1.8e-70) {
tmp = c * (t * j);
} else if (x <= 28500.0) {
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 = (z * b) * -c
t_2 = z * (x * y)
if (x <= (-9.5d+38)) then
tmp = t_2
else if (x <= (-1.65d-77)) then
tmp = t_1
else if (x <= (-3.4d-124)) then
tmp = b * (a * i)
else if (x <= (-1.2d-300)) then
tmp = t_1
else if (x <= 1.8d-70) then
tmp = c * (t * j)
else if (x <= 28500.0d0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -9.5e+38) {
tmp = t_2;
} else if (x <= -1.65e-77) {
tmp = t_1;
} else if (x <= -3.4e-124) {
tmp = b * (a * i);
} else if (x <= -1.2e-300) {
tmp = t_1;
} else if (x <= 1.8e-70) {
tmp = c * (t * j);
} else if (x <= 28500.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = z * (x * y) tmp = 0 if x <= -9.5e+38: tmp = t_2 elif x <= -1.65e-77: tmp = t_1 elif x <= -3.4e-124: tmp = b * (a * i) elif x <= -1.2e-300: tmp = t_1 elif x <= 1.8e-70: tmp = c * (t * j) elif x <= 28500.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -9.5e+38) tmp = t_2; elseif (x <= -1.65e-77) tmp = t_1; elseif (x <= -3.4e-124) tmp = Float64(b * Float64(a * i)); elseif (x <= -1.2e-300) tmp = t_1; elseif (x <= 1.8e-70) tmp = Float64(c * Float64(t * j)); elseif (x <= 28500.0) 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 = (z * b) * -c; t_2 = z * (x * y); tmp = 0.0; if (x <= -9.5e+38) tmp = t_2; elseif (x <= -1.65e-77) tmp = t_1; elseif (x <= -3.4e-124) tmp = b * (a * i); elseif (x <= -1.2e-300) tmp = t_1; elseif (x <= 1.8e-70) tmp = c * (t * j); elseif (x <= 28500.0) 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[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.5e+38], t$95$2, If[LessEqual[x, -1.65e-77], t$95$1, If[LessEqual[x, -3.4e-124], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.2e-300], t$95$1, If[LessEqual[x, 1.8e-70], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 28500.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -9.5 \cdot 10^{+38}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.65 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -3.4 \cdot 10^{-124}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq -1.2 \cdot 10^{-300}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-70}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;x \leq 28500:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -9.4999999999999995e38 or 28500 < x Initial program 78.2%
Taylor expanded in a around 0 60.9%
associate--l+60.9%
associate-*r*60.8%
associate-*r*59.8%
distribute-rgt-out--62.6%
fma-def65.5%
*-commutative65.5%
*-commutative65.5%
fma-def62.6%
+-commutative62.6%
fma-def62.6%
fma-neg62.6%
*-commutative62.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in x around inf 42.3%
*-commutative42.3%
associate-*r*40.3%
Simplified40.3%
Taylor expanded in y around 0 42.3%
Simplified45.7%
if -9.4999999999999995e38 < x < -1.64999999999999996e-77 or -3.4000000000000001e-124 < x < -1.2e-300 or 1.8000000000000001e-70 < x < 28500Initial program 68.4%
Taylor expanded in a around 0 57.4%
associate--l+57.4%
associate-*r*59.4%
associate-*r*62.1%
distribute-rgt-out--64.2%
fma-def66.3%
*-commutative66.3%
*-commutative66.3%
fma-def64.2%
+-commutative64.2%
fma-def66.3%
fma-neg66.3%
*-commutative66.3%
distribute-rgt-neg-in66.3%
Simplified66.3%
Taylor expanded in b around inf 43.2%
*-commutative43.2%
associate-*r*46.1%
associate-*l*46.1%
*-commutative46.1%
mul-1-neg46.1%
*-commutative46.1%
distribute-rgt-neg-in46.1%
Simplified46.1%
if -1.64999999999999996e-77 < x < -3.4000000000000001e-124Initial program 66.7%
Taylor expanded in b around inf 78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around inf 67.1%
*-commutative67.1%
Simplified67.1%
if -1.2e-300 < x < 1.8000000000000001e-70Initial program 71.6%
Taylor expanded in a around 0 63.1%
associate--l+63.1%
associate-*r*73.9%
associate-*r*76.1%
distribute-rgt-out--76.1%
fma-def78.3%
*-commutative78.3%
*-commutative78.3%
fma-def76.1%
+-commutative76.1%
fma-def76.1%
fma-neg76.1%
*-commutative76.1%
distribute-rgt-neg-in76.1%
Simplified76.1%
Taylor expanded in t around inf 35.0%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c))) (t_2 (* z (* x y))))
(if (<= x -1e+39)
t_2
(if (<= x -1.52e-77)
t_1
(if (<= x -2.2e-119)
(* b (* a i))
(if (<= x 1e-149)
t_1
(if (<= x 1.42e-70)
(* (* y i) (- j))
(if (<= x 60000.0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -1e+39) {
tmp = t_2;
} else if (x <= -1.52e-77) {
tmp = t_1;
} else if (x <= -2.2e-119) {
tmp = b * (a * i);
} else if (x <= 1e-149) {
tmp = t_1;
} else if (x <= 1.42e-70) {
tmp = (y * i) * -j;
} else if (x <= 60000.0) {
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 = (z * b) * -c
t_2 = z * (x * y)
if (x <= (-1d+39)) then
tmp = t_2
else if (x <= (-1.52d-77)) then
tmp = t_1
else if (x <= (-2.2d-119)) then
tmp = b * (a * i)
else if (x <= 1d-149) then
tmp = t_1
else if (x <= 1.42d-70) then
tmp = (y * i) * -j
else if (x <= 60000.0d0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -1e+39) {
tmp = t_2;
} else if (x <= -1.52e-77) {
tmp = t_1;
} else if (x <= -2.2e-119) {
tmp = b * (a * i);
} else if (x <= 1e-149) {
tmp = t_1;
} else if (x <= 1.42e-70) {
tmp = (y * i) * -j;
} else if (x <= 60000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = z * (x * y) tmp = 0 if x <= -1e+39: tmp = t_2 elif x <= -1.52e-77: tmp = t_1 elif x <= -2.2e-119: tmp = b * (a * i) elif x <= 1e-149: tmp = t_1 elif x <= 1.42e-70: tmp = (y * i) * -j elif x <= 60000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -1e+39) tmp = t_2; elseif (x <= -1.52e-77) tmp = t_1; elseif (x <= -2.2e-119) tmp = Float64(b * Float64(a * i)); elseif (x <= 1e-149) tmp = t_1; elseif (x <= 1.42e-70) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (x <= 60000.0) 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 = (z * b) * -c; t_2 = z * (x * y); tmp = 0.0; if (x <= -1e+39) tmp = t_2; elseif (x <= -1.52e-77) tmp = t_1; elseif (x <= -2.2e-119) tmp = b * (a * i); elseif (x <= 1e-149) tmp = t_1; elseif (x <= 1.42e-70) tmp = (y * i) * -j; elseif (x <= 60000.0) 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[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1e+39], t$95$2, If[LessEqual[x, -1.52e-77], t$95$1, If[LessEqual[x, -2.2e-119], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1e-149], t$95$1, If[LessEqual[x, 1.42e-70], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[x, 60000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -1 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -1.52 \cdot 10^{-77}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -2.2 \cdot 10^{-119}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 10^{-149}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.42 \cdot 10^{-70}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;x \leq 60000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -9.9999999999999994e38 or 6e4 < x Initial program 78.2%
Taylor expanded in a around 0 60.9%
associate--l+60.9%
associate-*r*60.8%
associate-*r*59.8%
distribute-rgt-out--62.6%
fma-def65.5%
*-commutative65.5%
*-commutative65.5%
fma-def62.6%
+-commutative62.6%
fma-def62.6%
fma-neg62.6%
*-commutative62.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in x around inf 42.3%
*-commutative42.3%
associate-*r*40.3%
Simplified40.3%
Taylor expanded in y around 0 42.3%
Simplified45.7%
if -9.9999999999999994e38 < x < -1.52e-77 or -2.2000000000000001e-119 < x < 9.99999999999999979e-150 or 1.42000000000000002e-70 < x < 6e4Initial program 68.1%
Taylor expanded in a around 0 57.6%
associate--l+57.6%
associate-*r*62.9%
associate-*r*65.7%
distribute-rgt-out--67.3%
fma-def69.6%
*-commutative69.6%
*-commutative69.6%
fma-def67.3%
+-commutative67.3%
fma-def68.8%
fma-neg68.8%
*-commutative68.8%
distribute-rgt-neg-in68.8%
Simplified68.8%
Taylor expanded in b around inf 42.4%
*-commutative42.4%
associate-*r*43.2%
associate-*l*43.2%
*-commutative43.2%
mul-1-neg43.2%
*-commutative43.2%
distribute-rgt-neg-in43.2%
Simplified43.2%
if -1.52e-77 < x < -2.2000000000000001e-119Initial program 66.7%
Taylor expanded in b around inf 78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around inf 67.1%
*-commutative67.1%
Simplified67.1%
if 9.99999999999999979e-150 < x < 1.42000000000000002e-70Initial program 83.9%
Taylor expanded in j around inf 75.9%
Taylor expanded in c around 0 51.6%
associate-*r*51.6%
neg-mul-151.6%
*-commutative51.6%
Simplified51.6%
Final simplification45.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c))) (t_2 (* z (* x y))))
(if (<= x -7.8e+39)
t_2
(if (<= x -5e-78)
t_1
(if (<= x -1.4e-115)
(* b (* a i))
(if (<= x 2.5e-150)
t_1
(if (<= x 1.1e-70)
(* y (- (* i j)))
(if (<= x 60000.0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -7.8e+39) {
tmp = t_2;
} else if (x <= -5e-78) {
tmp = t_1;
} else if (x <= -1.4e-115) {
tmp = b * (a * i);
} else if (x <= 2.5e-150) {
tmp = t_1;
} else if (x <= 1.1e-70) {
tmp = y * -(i * j);
} else if (x <= 60000.0) {
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 = (z * b) * -c
t_2 = z * (x * y)
if (x <= (-7.8d+39)) then
tmp = t_2
else if (x <= (-5d-78)) then
tmp = t_1
else if (x <= (-1.4d-115)) then
tmp = b * (a * i)
else if (x <= 2.5d-150) then
tmp = t_1
else if (x <= 1.1d-70) then
tmp = y * -(i * j)
else if (x <= 60000.0d0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -7.8e+39) {
tmp = t_2;
} else if (x <= -5e-78) {
tmp = t_1;
} else if (x <= -1.4e-115) {
tmp = b * (a * i);
} else if (x <= 2.5e-150) {
tmp = t_1;
} else if (x <= 1.1e-70) {
tmp = y * -(i * j);
} else if (x <= 60000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = z * (x * y) tmp = 0 if x <= -7.8e+39: tmp = t_2 elif x <= -5e-78: tmp = t_1 elif x <= -1.4e-115: tmp = b * (a * i) elif x <= 2.5e-150: tmp = t_1 elif x <= 1.1e-70: tmp = y * -(i * j) elif x <= 60000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -7.8e+39) tmp = t_2; elseif (x <= -5e-78) tmp = t_1; elseif (x <= -1.4e-115) tmp = Float64(b * Float64(a * i)); elseif (x <= 2.5e-150) tmp = t_1; elseif (x <= 1.1e-70) tmp = Float64(y * Float64(-Float64(i * j))); elseif (x <= 60000.0) 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 = (z * b) * -c; t_2 = z * (x * y); tmp = 0.0; if (x <= -7.8e+39) tmp = t_2; elseif (x <= -5e-78) tmp = t_1; elseif (x <= -1.4e-115) tmp = b * (a * i); elseif (x <= 2.5e-150) tmp = t_1; elseif (x <= 1.1e-70) tmp = y * -(i * j); elseif (x <= 60000.0) 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[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -7.8e+39], t$95$2, If[LessEqual[x, -5e-78], t$95$1, If[LessEqual[x, -1.4e-115], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.5e-150], t$95$1, If[LessEqual[x, 1.1e-70], N[(y * (-N[(i * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, 60000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -7.8 \cdot 10^{+39}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -5 \cdot 10^{-78}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -1.4 \cdot 10^{-115}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 2.5 \cdot 10^{-150}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq 1.1 \cdot 10^{-70}:\\
\;\;\;\;y \cdot \left(-i \cdot j\right)\\
\mathbf{elif}\;x \leq 60000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -7.8000000000000002e39 or 6e4 < x Initial program 78.2%
Taylor expanded in a around 0 60.9%
associate--l+60.9%
associate-*r*60.8%
associate-*r*59.8%
distribute-rgt-out--62.6%
fma-def65.5%
*-commutative65.5%
*-commutative65.5%
fma-def62.6%
+-commutative62.6%
fma-def62.6%
fma-neg62.6%
*-commutative62.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in x around inf 42.3%
*-commutative42.3%
associate-*r*40.3%
Simplified40.3%
Taylor expanded in y around 0 42.3%
Simplified45.7%
if -7.8000000000000002e39 < x < -4.9999999999999996e-78 or -1.39999999999999994e-115 < x < 2.49999999999999995e-150 or 1.0999999999999999e-70 < x < 6e4Initial program 68.1%
Taylor expanded in a around 0 57.6%
associate--l+57.6%
associate-*r*62.9%
associate-*r*65.7%
distribute-rgt-out--67.3%
fma-def69.6%
*-commutative69.6%
*-commutative69.6%
fma-def67.3%
+-commutative67.3%
fma-def68.8%
fma-neg68.8%
*-commutative68.8%
distribute-rgt-neg-in68.8%
Simplified68.8%
Taylor expanded in b around inf 42.4%
*-commutative42.4%
associate-*r*43.2%
associate-*l*43.2%
*-commutative43.2%
mul-1-neg43.2%
*-commutative43.2%
distribute-rgt-neg-in43.2%
Simplified43.2%
if -4.9999999999999996e-78 < x < -1.39999999999999994e-115Initial program 66.7%
Taylor expanded in b around inf 78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around inf 67.1%
*-commutative67.1%
Simplified67.1%
if 2.49999999999999995e-150 < x < 1.0999999999999999e-70Initial program 83.9%
Taylor expanded in j around inf 75.9%
Taylor expanded in c around 0 43.9%
associate-*r*51.6%
associate-*r*51.6%
*-commutative51.6%
mul-1-neg51.6%
distribute-rgt-neg-in51.6%
Simplified51.6%
Final simplification45.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (* z b) (- c))) (t_2 (* z (* x y))))
(if (<= x -2.2e+37)
t_2
(if (<= x -8.2e-78)
t_1
(if (<= x -6.4e-122)
(* b (* a i))
(if (<= x 9.5e-150)
(* (* z c) (- b))
(if (<= x 1.15e-70)
(* y (- (* i j)))
(if (<= x 33000.0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -2.2e+37) {
tmp = t_2;
} else if (x <= -8.2e-78) {
tmp = t_1;
} else if (x <= -6.4e-122) {
tmp = b * (a * i);
} else if (x <= 9.5e-150) {
tmp = (z * c) * -b;
} else if (x <= 1.15e-70) {
tmp = y * -(i * j);
} else if (x <= 33000.0) {
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 = (z * b) * -c
t_2 = z * (x * y)
if (x <= (-2.2d+37)) then
tmp = t_2
else if (x <= (-8.2d-78)) then
tmp = t_1
else if (x <= (-6.4d-122)) then
tmp = b * (a * i)
else if (x <= 9.5d-150) then
tmp = (z * c) * -b
else if (x <= 1.15d-70) then
tmp = y * -(i * j)
else if (x <= 33000.0d0) 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 = (z * b) * -c;
double t_2 = z * (x * y);
double tmp;
if (x <= -2.2e+37) {
tmp = t_2;
} else if (x <= -8.2e-78) {
tmp = t_1;
} else if (x <= -6.4e-122) {
tmp = b * (a * i);
} else if (x <= 9.5e-150) {
tmp = (z * c) * -b;
} else if (x <= 1.15e-70) {
tmp = y * -(i * j);
} else if (x <= 33000.0) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (z * b) * -c t_2 = z * (x * y) tmp = 0 if x <= -2.2e+37: tmp = t_2 elif x <= -8.2e-78: tmp = t_1 elif x <= -6.4e-122: tmp = b * (a * i) elif x <= 9.5e-150: tmp = (z * c) * -b elif x <= 1.15e-70: tmp = y * -(i * j) elif x <= 33000.0: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(z * b) * Float64(-c)) t_2 = Float64(z * Float64(x * y)) tmp = 0.0 if (x <= -2.2e+37) tmp = t_2; elseif (x <= -8.2e-78) tmp = t_1; elseif (x <= -6.4e-122) tmp = Float64(b * Float64(a * i)); elseif (x <= 9.5e-150) tmp = Float64(Float64(z * c) * Float64(-b)); elseif (x <= 1.15e-70) tmp = Float64(y * Float64(-Float64(i * j))); elseif (x <= 33000.0) 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 = (z * b) * -c; t_2 = z * (x * y); tmp = 0.0; if (x <= -2.2e+37) tmp = t_2; elseif (x <= -8.2e-78) tmp = t_1; elseif (x <= -6.4e-122) tmp = b * (a * i); elseif (x <= 9.5e-150) tmp = (z * c) * -b; elseif (x <= 1.15e-70) tmp = y * -(i * j); elseif (x <= 33000.0) 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[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.2e+37], t$95$2, If[LessEqual[x, -8.2e-78], t$95$1, If[LessEqual[x, -6.4e-122], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 9.5e-150], N[(N[(z * c), $MachinePrecision] * (-b)), $MachinePrecision], If[LessEqual[x, 1.15e-70], N[(y * (-N[(i * j), $MachinePrecision])), $MachinePrecision], If[LessEqual[x, 33000.0], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(z \cdot b\right) \cdot \left(-c\right)\\
t_2 := z \cdot \left(x \cdot y\right)\\
\mathbf{if}\;x \leq -2.2 \cdot 10^{+37}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq -8.2 \cdot 10^{-78}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;x \leq -6.4 \cdot 10^{-122}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;x \leq 9.5 \cdot 10^{-150}:\\
\;\;\;\;\left(z \cdot c\right) \cdot \left(-b\right)\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-70}:\\
\;\;\;\;y \cdot \left(-i \cdot j\right)\\
\mathbf{elif}\;x \leq 33000:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if x < -2.2000000000000001e37 or 33000 < x Initial program 78.2%
Taylor expanded in a around 0 60.9%
associate--l+60.9%
associate-*r*60.8%
associate-*r*59.8%
distribute-rgt-out--62.6%
fma-def65.5%
*-commutative65.5%
*-commutative65.5%
fma-def62.6%
+-commutative62.6%
fma-def62.6%
fma-neg62.6%
*-commutative62.6%
distribute-rgt-neg-in62.6%
Simplified62.6%
Taylor expanded in x around inf 42.3%
*-commutative42.3%
associate-*r*40.3%
Simplified40.3%
Taylor expanded in y around 0 42.3%
Simplified45.7%
if -2.2000000000000001e37 < x < -8.1999999999999996e-78 or 1.15e-70 < x < 33000Initial program 64.9%
Taylor expanded in a around 0 54.9%
associate--l+54.9%
associate-*r*54.9%
associate-*r*60.3%
distribute-rgt-out--60.3%
fma-def64.3%
*-commutative64.3%
*-commutative64.3%
fma-def60.3%
+-commutative60.3%
fma-def64.4%
fma-neg64.4%
*-commutative64.4%
distribute-rgt-neg-in64.4%
Simplified64.4%
Taylor expanded in b around inf 41.8%
*-commutative41.8%
associate-*r*47.4%
associate-*l*47.4%
*-commutative47.4%
mul-1-neg47.4%
*-commutative47.4%
distribute-rgt-neg-in47.4%
Simplified47.4%
if -8.1999999999999996e-78 < x < -6.4000000000000004e-122Initial program 66.7%
Taylor expanded in b around inf 78.3%
*-commutative78.3%
Simplified78.3%
Taylor expanded in a around inf 67.1%
*-commutative67.1%
Simplified67.1%
if -6.4000000000000004e-122 < x < 9.50000000000000013e-150Initial program 70.1%
Taylor expanded in a around 0 59.3%
associate--l+59.3%
associate-*r*67.9%
associate-*r*69.1%
distribute-rgt-out--71.7%
fma-def72.9%
*-commutative72.9%
*-commutative72.9%
fma-def71.7%
+-commutative71.7%
fma-def71.7%
fma-neg71.7%
*-commutative71.7%
distribute-rgt-neg-in71.7%
Simplified71.7%
Taylor expanded in b around inf 42.8%
associate-*r*42.8%
neg-mul-142.8%
Simplified42.8%
if 9.50000000000000013e-150 < x < 1.15e-70Initial program 83.9%
Taylor expanded in j around inf 75.9%
Taylor expanded in c around 0 43.9%
associate-*r*51.6%
associate-*r*51.6%
*-commutative51.6%
mul-1-neg51.6%
distribute-rgt-neg-in51.6%
Simplified51.6%
Final simplification46.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -8.8e-83)
t_1
(if (<= b -1.9e-153)
(* (* y i) (- j))
(if (<= b 6.4e-248)
(* z (* x y))
(if (<= b 1.25e-175) (* c (* t j)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8.8e-83) {
tmp = t_1;
} else if (b <= -1.9e-153) {
tmp = (y * i) * -j;
} else if (b <= 6.4e-248) {
tmp = z * (x * y);
} else if (b <= 1.25e-175) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-8.8d-83)) then
tmp = t_1
else if (b <= (-1.9d-153)) then
tmp = (y * i) * -j
else if (b <= 6.4d-248) then
tmp = z * (x * y)
else if (b <= 1.25d-175) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -8.8e-83) {
tmp = t_1;
} else if (b <= -1.9e-153) {
tmp = (y * i) * -j;
} else if (b <= 6.4e-248) {
tmp = z * (x * y);
} else if (b <= 1.25e-175) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -8.8e-83: tmp = t_1 elif b <= -1.9e-153: tmp = (y * i) * -j elif b <= 6.4e-248: tmp = z * (x * y) elif b <= 1.25e-175: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -8.8e-83) tmp = t_1; elseif (b <= -1.9e-153) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (b <= 6.4e-248) tmp = Float64(z * Float64(x * y)); elseif (b <= 1.25e-175) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -8.8e-83) tmp = t_1; elseif (b <= -1.9e-153) tmp = (y * i) * -j; elseif (b <= 6.4e-248) tmp = z * (x * y); elseif (b <= 1.25e-175) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -8.8e-83], t$95$1, If[LessEqual[b, -1.9e-153], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[b, 6.4e-248], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.25e-175], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -8.8 \cdot 10^{-83}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -1.9 \cdot 10^{-153}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{-248}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 1.25 \cdot 10^{-175}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -8.8000000000000003e-83 or 1.25e-175 < b Initial program 72.9%
Taylor expanded in b around inf 54.5%
*-commutative54.5%
Simplified54.5%
if -8.8000000000000003e-83 < b < -1.90000000000000011e-153Initial program 76.1%
Taylor expanded in j around inf 76.2%
Taylor expanded in c around 0 59.4%
associate-*r*59.4%
neg-mul-159.4%
*-commutative59.4%
Simplified59.4%
if -1.90000000000000011e-153 < b < 6.40000000000000035e-248Initial program 74.2%
Taylor expanded in a around 0 65.7%
associate--l+65.7%
associate-*r*68.6%
associate-*r*74.0%
distribute-rgt-out--74.0%
fma-def76.9%
*-commutative76.9%
*-commutative76.9%
fma-def74.0%
+-commutative74.0%
fma-def74.0%
fma-neg74.0%
*-commutative74.0%
distribute-rgt-neg-in74.0%
Simplified74.0%
Taylor expanded in x around inf 38.6%
*-commutative38.6%
associate-*r*35.9%
Simplified35.9%
Taylor expanded in y around 0 38.6%
Simplified44.1%
if 6.40000000000000035e-248 < b < 1.25e-175Initial program 67.7%
Taylor expanded in a around 0 67.7%
associate--l+67.7%
associate-*r*67.7%
associate-*r*76.1%
distribute-rgt-out--76.1%
fma-def76.1%
*-commutative76.1%
*-commutative76.1%
fma-def76.1%
+-commutative76.1%
fma-def76.1%
fma-neg76.1%
*-commutative76.1%
distribute-rgt-neg-in76.1%
Simplified76.1%
Taylor expanded in t around inf 67.1%
Final simplification53.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -9.8e-80)
t_1
(if (<= b -5.6e-152)
(* (* y i) (- j))
(if (<= b 4.5e-250)
(* z (* x y))
(if (<= b 5.6e+43) (* c (- (* t j) (* z b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.8e-80) {
tmp = t_1;
} else if (b <= -5.6e-152) {
tmp = (y * i) * -j;
} else if (b <= 4.5e-250) {
tmp = z * (x * y);
} else if (b <= 5.6e+43) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-9.8d-80)) then
tmp = t_1
else if (b <= (-5.6d-152)) then
tmp = (y * i) * -j
else if (b <= 4.5d-250) then
tmp = z * (x * y)
else if (b <= 5.6d+43) then
tmp = c * ((t * j) - (z * b))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.8e-80) {
tmp = t_1;
} else if (b <= -5.6e-152) {
tmp = (y * i) * -j;
} else if (b <= 4.5e-250) {
tmp = z * (x * y);
} else if (b <= 5.6e+43) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -9.8e-80: tmp = t_1 elif b <= -5.6e-152: tmp = (y * i) * -j elif b <= 4.5e-250: tmp = z * (x * y) elif b <= 5.6e+43: tmp = c * ((t * j) - (z * b)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -9.8e-80) tmp = t_1; elseif (b <= -5.6e-152) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (b <= 4.5e-250) tmp = Float64(z * Float64(x * y)); elseif (b <= 5.6e+43) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -9.8e-80) tmp = t_1; elseif (b <= -5.6e-152) tmp = (y * i) * -j; elseif (b <= 4.5e-250) tmp = z * (x * y); elseif (b <= 5.6e+43) tmp = c * ((t * j) - (z * b)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.8e-80], t$95$1, If[LessEqual[b, -5.6e-152], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[b, 4.5e-250], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e+43], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.8 \cdot 10^{-80}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-152}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;b \leq 4.5 \cdot 10^{-250}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{+43}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if b < -9.79999999999999981e-80 or 5.60000000000000038e43 < b Initial program 71.6%
Taylor expanded in b around inf 63.0%
*-commutative63.0%
Simplified63.0%
if -9.79999999999999981e-80 < b < -5.59999999999999969e-152Initial program 76.1%
Taylor expanded in j around inf 76.2%
Taylor expanded in c around 0 59.4%
associate-*r*59.4%
neg-mul-159.4%
*-commutative59.4%
Simplified59.4%
if -5.59999999999999969e-152 < b < 4.49999999999999993e-250Initial program 74.2%
Taylor expanded in a around 0 65.7%
associate--l+65.7%
associate-*r*68.6%
associate-*r*74.0%
distribute-rgt-out--74.0%
fma-def76.9%
*-commutative76.9%
*-commutative76.9%
fma-def74.0%
+-commutative74.0%
fma-def74.0%
fma-neg74.0%
*-commutative74.0%
distribute-rgt-neg-in74.0%
Simplified74.0%
Taylor expanded in x around inf 38.6%
*-commutative38.6%
associate-*r*35.9%
Simplified35.9%
Taylor expanded in y around 0 38.6%
Simplified44.1%
if 4.49999999999999993e-250 < b < 5.60000000000000038e43Initial program 74.9%
Taylor expanded in c around inf 48.0%
*-commutative48.0%
*-commutative48.0%
Simplified48.0%
Final simplification56.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -5e+44)
t_2
(if (<= z -5.5e-63)
t_1
(if (<= z -2.65e-158)
(* j (- (* t c) (* y i)))
(if (<= z 1.2e-72) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5e+44) {
tmp = t_2;
} else if (z <= -5.5e-63) {
tmp = t_1;
} else if (z <= -2.65e-158) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 1.2e-72) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = z * ((x * y) - (b * c))
if (z <= (-5d+44)) then
tmp = t_2
else if (z <= (-5.5d-63)) then
tmp = t_1
else if (z <= (-2.65d-158)) then
tmp = j * ((t * c) - (y * i))
else if (z <= 1.2d-72) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -5e+44) {
tmp = t_2;
} else if (z <= -5.5e-63) {
tmp = t_1;
} else if (z <= -2.65e-158) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 1.2e-72) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -5e+44: tmp = t_2 elif z <= -5.5e-63: tmp = t_1 elif z <= -2.65e-158: tmp = j * ((t * c) - (y * i)) elif z <= 1.2e-72: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -5e+44) tmp = t_2; elseif (z <= -5.5e-63) tmp = t_1; elseif (z <= -2.65e-158) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= 1.2e-72) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -5e+44) tmp = t_2; elseif (z <= -5.5e-63) tmp = t_1; elseif (z <= -2.65e-158) tmp = j * ((t * c) - (y * i)); elseif (z <= 1.2e-72) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5e+44], t$95$2, If[LessEqual[z, -5.5e-63], t$95$1, If[LessEqual[z, -2.65e-158], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e-72], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -5 \cdot 10^{+44}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq -5.5 \cdot 10^{-63}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -2.65 \cdot 10^{-158}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-72}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -4.9999999999999996e44 or 1.2e-72 < z Initial program 65.3%
Taylor expanded in z around inf 71.3%
*-commutative71.3%
Simplified71.3%
if -4.9999999999999996e44 < z < -5.50000000000000043e-63 or -2.6499999999999999e-158 < z < 1.2e-72Initial program 78.9%
Taylor expanded in a around -inf 54.5%
if -5.50000000000000043e-63 < z < -2.6499999999999999e-158Initial program 91.8%
Taylor expanded in j around inf 70.2%
Final simplification65.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.1e-22) (not (<= b 6e+21))) (* b (- (* a i) (* z c))) (* j (- (* t c) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.1e-22) || !(b <= 6e+21)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.1d-22)) .or. (.not. (b <= 6d+21))) then
tmp = b * ((a * i) - (z * c))
else
tmp = j * ((t * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.1e-22) || !(b <= 6e+21)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.1e-22) or not (b <= 6e+21): tmp = b * ((a * i) - (z * c)) else: tmp = j * ((t * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.1e-22) || !(b <= 6e+21)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.1e-22) || ~((b <= 6e+21))) tmp = b * ((a * i) - (z * c)); else tmp = j * ((t * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.1e-22], N[Not[LessEqual[b, 6e+21]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{-22} \lor \neg \left(b \leq 6 \cdot 10^{+21}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -1.1e-22 or 6e21 < b Initial program 70.6%
Taylor expanded in b around inf 63.7%
*-commutative63.7%
Simplified63.7%
if -1.1e-22 < b < 6e21Initial program 75.9%
Taylor expanded in j around inf 53.8%
Final simplification59.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* b i))))
(if (<= a -1.9e-24)
t_1
(if (<= a 3e-226) (* t (* c j)) (if (<= a 3.8e+63) (* 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 * (b * i);
double tmp;
if (a <= -1.9e-24) {
tmp = t_1;
} else if (a <= 3e-226) {
tmp = t * (c * j);
} else if (a <= 3.8e+63) {
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 * (b * i)
if (a <= (-1.9d-24)) then
tmp = t_1
else if (a <= 3d-226) then
tmp = t * (c * j)
else if (a <= 3.8d+63) 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 * (b * i);
double tmp;
if (a <= -1.9e-24) {
tmp = t_1;
} else if (a <= 3e-226) {
tmp = t * (c * j);
} else if (a <= 3.8e+63) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (b * i) tmp = 0 if a <= -1.9e-24: tmp = t_1 elif a <= 3e-226: tmp = t * (c * j) elif a <= 3.8e+63: 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(b * i)) tmp = 0.0 if (a <= -1.9e-24) tmp = t_1; elseif (a <= 3e-226) tmp = Float64(t * Float64(c * j)); elseif (a <= 3.8e+63) 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 * (b * i); tmp = 0.0; if (a <= -1.9e-24) tmp = t_1; elseif (a <= 3e-226) tmp = t * (c * j); elseif (a <= 3.8e+63) 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[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e-24], t$95$1, If[LessEqual[a, 3e-226], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.8e+63], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{-24}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-226}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 3.8 \cdot 10^{+63}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.90000000000000013e-24 or 3.8000000000000001e63 < a Initial program 66.5%
Taylor expanded in b around inf 57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in a around inf 40.2%
if -1.90000000000000013e-24 < a < 2.99999999999999995e-226Initial program 80.7%
Taylor expanded in j around inf 48.7%
Taylor expanded in c around inf 25.7%
*-commutative25.7%
*-commutative25.7%
associate-*r*26.9%
Simplified26.9%
if 2.99999999999999995e-226 < a < 3.8000000000000001e63Initial program 75.9%
Taylor expanded in a around 0 68.2%
associate--l+68.2%
associate-*r*68.2%
associate-*r*74.5%
distribute-rgt-out--79.3%
fma-def82.5%
*-commutative82.5%
*-commutative82.5%
fma-def79.3%
+-commutative79.3%
fma-def79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-in79.3%
Simplified79.3%
Taylor expanded in x around inf 40.5%
Final simplification36.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* a b))))
(if (<= a -3e-25)
t_1
(if (<= a 3.2e-226)
(* t (* c j))
(if (<= a 8.8e+63) (* 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 = i * (a * b);
double tmp;
if (a <= -3e-25) {
tmp = t_1;
} else if (a <= 3.2e-226) {
tmp = t * (c * j);
} else if (a <= 8.8e+63) {
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 = i * (a * b)
if (a <= (-3d-25)) then
tmp = t_1
else if (a <= 3.2d-226) then
tmp = t * (c * j)
else if (a <= 8.8d+63) 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 = i * (a * b);
double tmp;
if (a <= -3e-25) {
tmp = t_1;
} else if (a <= 3.2e-226) {
tmp = t * (c * j);
} else if (a <= 8.8e+63) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if a <= -3e-25: tmp = t_1 elif a <= 3.2e-226: tmp = t * (c * j) elif a <= 8.8e+63: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (a <= -3e-25) tmp = t_1; elseif (a <= 3.2e-226) tmp = Float64(t * Float64(c * j)); elseif (a <= 8.8e+63) 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 = i * (a * b); tmp = 0.0; if (a <= -3e-25) tmp = t_1; elseif (a <= 3.2e-226) tmp = t * (c * j); elseif (a <= 8.8e+63) 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[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3e-25], t$95$1, If[LessEqual[a, 3.2e-226], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 8.8e+63], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;a \leq -3 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{-226}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 8.8 \cdot 10^{+63}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -2.9999999999999998e-25 or 8.7999999999999995e63 < a Initial program 66.5%
Taylor expanded in b around inf 57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in a around inf 40.2%
associate-*r*41.8%
Simplified41.8%
if -2.9999999999999998e-25 < a < 3.19999999999999982e-226Initial program 80.7%
Taylor expanded in j around inf 48.7%
Taylor expanded in c around inf 25.7%
*-commutative25.7%
*-commutative25.7%
associate-*r*26.9%
Simplified26.9%
if 3.19999999999999982e-226 < a < 8.7999999999999995e63Initial program 75.9%
Taylor expanded in a around 0 68.2%
associate--l+68.2%
associate-*r*68.2%
associate-*r*74.5%
distribute-rgt-out--79.3%
fma-def82.5%
*-commutative82.5%
*-commutative82.5%
fma-def79.3%
+-commutative79.3%
fma-def79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-in79.3%
Simplified79.3%
Taylor expanded in x around inf 40.5%
Final simplification37.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* a b))))
(if (<= a -1.9e-25)
t_1
(if (<= a 3.15e-226)
(* t (* c j))
(if (<= a 2.9e+63) (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (a <= -1.9e-25) {
tmp = t_1;
} else if (a <= 3.15e-226) {
tmp = t * (c * j);
} else if (a <= 2.9e+63) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (a * b)
if (a <= (-1.9d-25)) then
tmp = t_1
else if (a <= 3.15d-226) then
tmp = t * (c * j)
else if (a <= 2.9d+63) then
tmp = z * (x * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (a * b);
double tmp;
if (a <= -1.9e-25) {
tmp = t_1;
} else if (a <= 3.15e-226) {
tmp = t * (c * j);
} else if (a <= 2.9e+63) {
tmp = z * (x * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (a * b) tmp = 0 if a <= -1.9e-25: tmp = t_1 elif a <= 3.15e-226: tmp = t * (c * j) elif a <= 2.9e+63: tmp = z * (x * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(a * b)) tmp = 0.0 if (a <= -1.9e-25) tmp = t_1; elseif (a <= 3.15e-226) tmp = Float64(t * Float64(c * j)); elseif (a <= 2.9e+63) tmp = Float64(z * Float64(x * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (a * b); tmp = 0.0; if (a <= -1.9e-25) tmp = t_1; elseif (a <= 3.15e-226) tmp = t * (c * j); elseif (a <= 2.9e+63) tmp = z * (x * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.9e-25], t$95$1, If[LessEqual[a, 3.15e-226], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e+63], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(a \cdot b\right)\\
\mathbf{if}\;a \leq -1.9 \cdot 10^{-25}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 3.15 \cdot 10^{-226}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{+63}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if a < -1.8999999999999999e-25 or 2.8999999999999999e63 < a Initial program 66.5%
Taylor expanded in b around inf 57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in a around inf 40.2%
associate-*r*41.8%
Simplified41.8%
if -1.8999999999999999e-25 < a < 3.1499999999999999e-226Initial program 80.7%
Taylor expanded in j around inf 48.7%
Taylor expanded in c around inf 25.7%
*-commutative25.7%
*-commutative25.7%
associate-*r*26.9%
Simplified26.9%
if 3.1499999999999999e-226 < a < 2.8999999999999999e63Initial program 75.9%
Taylor expanded in a around 0 68.2%
associate--l+68.2%
associate-*r*68.2%
associate-*r*74.5%
distribute-rgt-out--79.3%
fma-def82.5%
*-commutative82.5%
*-commutative82.5%
fma-def79.3%
+-commutative79.3%
fma-def79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-in79.3%
Simplified79.3%
Taylor expanded in x around inf 40.5%
*-commutative40.5%
associate-*r*35.7%
Simplified35.7%
Taylor expanded in y around 0 40.5%
Simplified42.0%
Final simplification37.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -5.6e+34) (not (<= i 0.0062))) (* a (* b i)) (* c (* t j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -5.6e+34) || !(i <= 0.0062)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-5.6d+34)) .or. (.not. (i <= 0.0062d0))) then
tmp = a * (b * i)
else
tmp = c * (t * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -5.6e+34) || !(i <= 0.0062)) {
tmp = a * (b * i);
} else {
tmp = c * (t * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -5.6e+34) or not (i <= 0.0062): tmp = a * (b * i) else: tmp = c * (t * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -5.6e+34) || !(i <= 0.0062)) tmp = Float64(a * Float64(b * i)); else tmp = Float64(c * Float64(t * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -5.6e+34) || ~((i <= 0.0062))) tmp = a * (b * i); else tmp = c * (t * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -5.6e+34], N[Not[LessEqual[i, 0.0062]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.6 \cdot 10^{+34} \lor \neg \left(i \leq 0.0062\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if i < -5.60000000000000016e34 or 0.00619999999999999978 < i Initial program 68.4%
Taylor expanded in b around inf 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in a around inf 39.2%
if -5.60000000000000016e34 < i < 0.00619999999999999978Initial program 76.4%
Taylor expanded in a around 0 65.4%
associate--l+65.4%
associate-*r*68.0%
associate-*r*70.5%
distribute-rgt-out--73.2%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
fma-def73.2%
+-commutative73.2%
fma-def73.9%
fma-neg73.9%
*-commutative73.9%
distribute-rgt-neg-in73.9%
Simplified73.9%
Taylor expanded in t around inf 26.5%
Final simplification32.0%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * 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 = a * (b * 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 a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 73.0%
Taylor expanded in b around inf 43.5%
*-commutative43.5%
Simplified43.5%
Taylor expanded in a around inf 22.4%
Final simplification22.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 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(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) 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[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023310
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:herbie-target
(if (< t -8.120978919195912e-33) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -4.712553818218485e-169) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (if (< t -7.633533346031584e-308) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 1.0535888557455487e-139) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2.0) (pow (* i y) 2.0))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))