
(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 29 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)))) (t_2 (- (* t c) (* y i))))
(if (<= (+ (+ (* x (- (* y z) (* t a))) t_1) (* j t_2)) INFINITY)
(fma j t_2 (+ (* x (fma y z (* t (- a)))) t_1))
(* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (t * c) - (y * i);
double tmp;
if ((((x * ((y * z) - (t * a))) + t_1) + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, ((x * fma(y, z, (t * -a))) + t_1));
} else {
tmp = y * ((x * z) - (i * j));
}
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(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1)); else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return 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[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) + j \cdot t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.3%
+-commutative90.3%
fma-define90.3%
*-commutative90.3%
*-commutative90.3%
cancel-sign-sub-inv90.3%
cancel-sign-sub90.3%
sub-neg90.3%
sub-neg90.3%
*-commutative90.3%
fma-neg90.3%
*-commutative90.3%
distribute-rgt-neg-out90.3%
remove-double-neg90.3%
*-commutative90.3%
*-commutative90.3%
Simplified90.3%
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%
+-commutative0.0%
fma-define4.3%
*-commutative4.3%
*-commutative4.3%
cancel-sign-sub-inv4.3%
cancel-sign-sub4.3%
sub-neg4.3%
sub-neg4.3%
*-commutative4.3%
fma-neg6.5%
*-commutative6.5%
distribute-rgt-neg-out6.5%
remove-double-neg6.5%
*-commutative6.5%
*-commutative6.5%
Simplified6.5%
Taylor expanded in y around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
Simplified53.6%
Final simplification83.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* y (- (* x z) (* i j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = y * ((x * z) - (i * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = y * ((x * z) - (i * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = y * ((x * z) - (i * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 90.3%
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%
+-commutative0.0%
fma-define4.3%
*-commutative4.3%
*-commutative4.3%
cancel-sign-sub-inv4.3%
cancel-sign-sub4.3%
sub-neg4.3%
sub-neg4.3%
*-commutative4.3%
fma-neg6.5%
*-commutative6.5%
distribute-rgt-neg-out6.5%
remove-double-neg6.5%
*-commutative6.5%
*-commutative6.5%
Simplified6.5%
Taylor expanded in y around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
*-commutative53.6%
Simplified53.6%
Final simplification83.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* y (- (* x z) (* i j))) (* c (* z b))))
(t_2 (* y (- (* x z) (+ (* i j) (/ (* a (* x t)) y))))))
(if (<= z -6e+140)
(* z (- (* x y) (* b c)))
(if (<= z -4.1e+54)
(* (* x y) (- z (* a (/ t y))))
(if (<= z -1.35e-83)
t_1
(if (<= z -2.8e-109)
(+ (* b (* a i)) (* t (* c j)))
(if (<= z -3.5e-184)
t_2
(if (<= z 2.5e-137)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (<= z 1.02e-15)
t_2
(if (<= z 4.6e+167)
t_1
(* (* y z) (- x (* b (/ c y))))))))))))))
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))) - (c * (z * b));
double t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
double tmp;
if (z <= -6e+140) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -4.1e+54) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= -1.35e-83) {
tmp = t_1;
} else if (z <= -2.8e-109) {
tmp = (b * (a * i)) + (t * (c * j));
} else if (z <= -3.5e-184) {
tmp = t_2;
} else if (z <= 2.5e-137) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (z <= 1.02e-15) {
tmp = t_2;
} else if (z <= 4.6e+167) {
tmp = t_1;
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (y * ((x * z) - (i * j))) - (c * (z * b))
t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)))
if (z <= (-6d+140)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-4.1d+54)) then
tmp = (x * y) * (z - (a * (t / y)))
else if (z <= (-1.35d-83)) then
tmp = t_1
else if (z <= (-2.8d-109)) then
tmp = (b * (a * i)) + (t * (c * j))
else if (z <= (-3.5d-184)) then
tmp = t_2
else if (z <= 2.5d-137) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if (z <= 1.02d-15) then
tmp = t_2
else if (z <= 4.6d+167) then
tmp = t_1
else
tmp = (y * z) * (x - (b * (c / y)))
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))) - (c * (z * b));
double t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
double tmp;
if (z <= -6e+140) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -4.1e+54) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= -1.35e-83) {
tmp = t_1;
} else if (z <= -2.8e-109) {
tmp = (b * (a * i)) + (t * (c * j));
} else if (z <= -3.5e-184) {
tmp = t_2;
} else if (z <= 2.5e-137) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (z <= 1.02e-15) {
tmp = t_2;
} else if (z <= 4.6e+167) {
tmp = t_1;
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (y * ((x * z) - (i * j))) - (c * (z * b)) t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))) tmp = 0 if z <= -6e+140: tmp = z * ((x * y) - (b * c)) elif z <= -4.1e+54: tmp = (x * y) * (z - (a * (t / y))) elif z <= -1.35e-83: tmp = t_1 elif z <= -2.8e-109: tmp = (b * (a * i)) + (t * (c * j)) elif z <= -3.5e-184: tmp = t_2 elif z <= 2.5e-137: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif z <= 1.02e-15: tmp = t_2 elif z <= 4.6e+167: tmp = t_1 else: tmp = (y * z) * (x - (b * (c / y))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(Float64(i * j) + Float64(Float64(a * Float64(x * t)) / y)))) tmp = 0.0 if (z <= -6e+140) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -4.1e+54) tmp = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))); elseif (z <= -1.35e-83) tmp = t_1; elseif (z <= -2.8e-109) tmp = Float64(Float64(b * Float64(a * i)) + Float64(t * Float64(c * j))); elseif (z <= -3.5e-184) tmp = t_2; elseif (z <= 2.5e-137) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif (z <= 1.02e-15) tmp = t_2; elseif (z <= 4.6e+167) tmp = t_1; else tmp = Float64(Float64(y * z) * Float64(x - Float64(b * Float64(c / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (y * ((x * z) - (i * j))) - (c * (z * b)); t_2 = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))); tmp = 0.0; if (z <= -6e+140) tmp = z * ((x * y) - (b * c)); elseif (z <= -4.1e+54) tmp = (x * y) * (z - (a * (t / y))); elseif (z <= -1.35e-83) tmp = t_1; elseif (z <= -2.8e-109) tmp = (b * (a * i)) + (t * (c * j)); elseif (z <= -3.5e-184) tmp = t_2; elseif (z <= 2.5e-137) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif (z <= 1.02e-15) tmp = t_2; elseif (z <= 4.6e+167) tmp = t_1; else tmp = (y * z) * (x - (b * (c / y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(N[(i * j), $MachinePrecision] + N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6e+140], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.1e+54], N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.35e-83], t$95$1, If[LessEqual[z, -2.8e-109], N[(N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision] + N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.5e-184], t$95$2, If[LessEqual[z, 2.5e-137], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.02e-15], t$95$2, If[LessEqual[z, 4.6e+167], t$95$1, N[(N[(y * z), $MachinePrecision] * N[(x - N[(b * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
t_2 := y \cdot \left(x \cdot z - \left(i \cdot j + \frac{a \cdot \left(x \cdot t\right)}{y}\right)\right)\\
\mathbf{if}\;z \leq -6 \cdot 10^{+140}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -4.1 \cdot 10^{+54}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{elif}\;z \leq -1.35 \cdot 10^{-83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.8 \cdot 10^{-109}:\\
\;\;\;\;b \cdot \left(a \cdot i\right) + t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-184}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.5 \cdot 10^{-137}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 1.02 \cdot 10^{-15}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+167}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - b \cdot \frac{c}{y}\right)\\
\end{array}
\end{array}
if z < -5.99999999999999993e140Initial program 61.3%
+-commutative61.3%
fma-define61.3%
*-commutative61.3%
*-commutative61.3%
cancel-sign-sub-inv61.3%
cancel-sign-sub61.3%
sub-neg61.3%
sub-neg61.3%
*-commutative61.3%
fma-neg64.9%
*-commutative64.9%
distribute-rgt-neg-out64.9%
remove-double-neg64.9%
*-commutative64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in t around 0 65.0%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*54.6%
distribute-rgt-in54.6%
+-commutative54.6%
mul-1-neg54.6%
unsub-neg54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in z around inf 78.4%
*-commutative78.4%
Simplified78.4%
if -5.99999999999999993e140 < z < -4.09999999999999967e54Initial program 74.1%
+-commutative74.1%
fma-define74.1%
*-commutative74.1%
*-commutative74.1%
cancel-sign-sub-inv74.1%
cancel-sign-sub74.1%
sub-neg74.1%
sub-neg74.1%
*-commutative74.1%
fma-neg74.1%
*-commutative74.1%
distribute-rgt-neg-out74.1%
remove-double-neg74.1%
*-commutative74.1%
*-commutative74.1%
Simplified74.1%
Taylor expanded in y around -inf 56.6%
Simplified65.2%
Taylor expanded in x around inf 74.9%
associate-*r*74.8%
*-commutative74.8%
mul-1-neg74.8%
unsub-neg74.8%
associate-/l*78.8%
Simplified78.8%
if -4.09999999999999967e54 < z < -1.34999999999999996e-83 or 1.02e-15 < z < 4.59999999999999976e167Initial program 75.0%
+-commutative75.0%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
cancel-sign-sub-inv76.5%
cancel-sign-sub76.5%
sub-neg76.5%
sub-neg76.5%
*-commutative76.5%
fma-neg76.5%
*-commutative76.5%
distribute-rgt-neg-out76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in t around 0 63.4%
associate-*r*63.4%
associate-*r*63.4%
*-commutative63.4%
associate-*r*63.4%
distribute-rgt-in66.2%
+-commutative66.2%
mul-1-neg66.2%
unsub-neg66.2%
*-commutative66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in c around inf 65.6%
*-commutative65.6%
associate-*l*66.8%
*-commutative66.8%
Simplified66.8%
if -1.34999999999999996e-83 < z < -2.79999999999999979e-109Initial program 67.9%
Taylor expanded in i around inf 67.9%
*-commutative67.9%
associate-*r*67.9%
Simplified67.9%
Taylor expanded in c around inf 67.3%
*-commutative67.3%
*-commutative67.3%
associate-*r*99.7%
Simplified99.7%
if -2.79999999999999979e-109 < z < -3.49999999999999981e-184 or 2.5e-137 < z < 1.02e-15Initial program 73.8%
+-commutative73.8%
fma-define73.8%
*-commutative73.8%
*-commutative73.8%
cancel-sign-sub-inv73.8%
cancel-sign-sub73.8%
sub-neg73.8%
sub-neg73.8%
*-commutative73.8%
fma-neg73.8%
*-commutative73.8%
distribute-rgt-neg-out73.8%
remove-double-neg73.8%
*-commutative73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in y around -inf 71.2%
Simplified73.6%
Taylor expanded in x around inf 69.5%
associate-*r/69.5%
associate-*r*69.5%
mul-1-neg69.5%
Simplified69.5%
if -3.49999999999999981e-184 < z < 2.5e-137Initial program 82.9%
Taylor expanded in i around inf 73.9%
if 4.59999999999999976e167 < z Initial program 66.6%
+-commutative66.6%
fma-define66.6%
*-commutative66.6%
*-commutative66.6%
cancel-sign-sub-inv66.6%
cancel-sign-sub66.6%
sub-neg66.6%
sub-neg66.6%
*-commutative66.6%
fma-neg66.6%
*-commutative66.6%
distribute-rgt-neg-out66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around -inf 63.7%
Simplified60.0%
Taylor expanded in z around inf 74.8%
associate-*r*78.2%
*-commutative78.2%
associate-/l*85.6%
Simplified85.6%
Final simplification74.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* a (* b i))))
(t_2 (* z (- (* x y) (* b c))))
(t_3 (* t (- (* c j) (* x a)))))
(if (<= z -8e+141)
t_2
(if (<= z -1.66e-17)
(* (* x y) (- z (* a (/ t y))))
(if (<= z 7.9e-147)
t_1
(if (<= z 1.4e-73)
t_3
(if (<= z 5.4e-30)
t_1
(if (<= z 2.2e+34)
(* y (- (* x z) (* i j)))
(if (<= z 4.2e+55) t_3 (if (<= z 4e+93) t_1 t_2))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (z <= -8e+141) {
tmp = t_2;
} else if (z <= -1.66e-17) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 7.9e-147) {
tmp = t_1;
} else if (z <= 1.4e-73) {
tmp = t_3;
} else if (z <= 5.4e-30) {
tmp = t_1;
} else if (z <= 2.2e+34) {
tmp = y * ((x * z) - (i * j));
} else if (z <= 4.2e+55) {
tmp = t_3;
} else if (z <= 4e+93) {
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) :: t_3
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (a * (b * i))
t_2 = z * ((x * y) - (b * c))
t_3 = t * ((c * j) - (x * a))
if (z <= (-8d+141)) then
tmp = t_2
else if (z <= (-1.66d-17)) then
tmp = (x * y) * (z - (a * (t / y)))
else if (z <= 7.9d-147) then
tmp = t_1
else if (z <= 1.4d-73) then
tmp = t_3
else if (z <= 5.4d-30) then
tmp = t_1
else if (z <= 2.2d+34) then
tmp = y * ((x * z) - (i * j))
else if (z <= 4.2d+55) then
tmp = t_3
else if (z <= 4d+93) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = z * ((x * y) - (b * c));
double t_3 = t * ((c * j) - (x * a));
double tmp;
if (z <= -8e+141) {
tmp = t_2;
} else if (z <= -1.66e-17) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 7.9e-147) {
tmp = t_1;
} else if (z <= 1.4e-73) {
tmp = t_3;
} else if (z <= 5.4e-30) {
tmp = t_1;
} else if (z <= 2.2e+34) {
tmp = y * ((x * z) - (i * j));
} else if (z <= 4.2e+55) {
tmp = t_3;
} else if (z <= 4e+93) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (a * (b * i)) t_2 = z * ((x * y) - (b * c)) t_3 = t * ((c * j) - (x * a)) tmp = 0 if z <= -8e+141: tmp = t_2 elif z <= -1.66e-17: tmp = (x * y) * (z - (a * (t / y))) elif z <= 7.9e-147: tmp = t_1 elif z <= 1.4e-73: tmp = t_3 elif z <= 5.4e-30: tmp = t_1 elif z <= 2.2e+34: tmp = y * ((x * z) - (i * j)) elif z <= 4.2e+55: tmp = t_3 elif z <= 4e+93: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) t_3 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) tmp = 0.0 if (z <= -8e+141) tmp = t_2; elseif (z <= -1.66e-17) tmp = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))); elseif (z <= 7.9e-147) tmp = t_1; elseif (z <= 1.4e-73) tmp = t_3; elseif (z <= 5.4e-30) tmp = t_1; elseif (z <= 2.2e+34) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (z <= 4.2e+55) tmp = t_3; elseif (z <= 4e+93) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (a * (b * i)); t_2 = z * ((x * y) - (b * c)); t_3 = t * ((c * j) - (x * a)); tmp = 0.0; if (z <= -8e+141) tmp = t_2; elseif (z <= -1.66e-17) tmp = (x * y) * (z - (a * (t / y))); elseif (z <= 7.9e-147) tmp = t_1; elseif (z <= 1.4e-73) tmp = t_3; elseif (z <= 5.4e-30) tmp = t_1; elseif (z <= 2.2e+34) tmp = y * ((x * z) - (i * j)); elseif (z <= 4.2e+55) tmp = t_3; elseif (z <= 4e+93) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e+141], t$95$2, If[LessEqual[z, -1.66e-17], N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.9e-147], t$95$1, If[LessEqual[z, 1.4e-73], t$95$3, If[LessEqual[z, 5.4e-30], t$95$1, If[LessEqual[z, 2.2e+34], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.2e+55], t$95$3, If[LessEqual[z, 4e+93], t$95$1, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
t_3 := t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{+141}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.66 \cdot 10^{-17}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{elif}\;z \leq 7.9 \cdot 10^{-147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.4 \cdot 10^{-73}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 5.4 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+34}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;z \leq 4.2 \cdot 10^{+55}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq 4 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -8.00000000000000014e141 or 4.00000000000000017e93 < z Initial program 60.4%
+-commutative60.4%
fma-define60.4%
*-commutative60.4%
*-commutative60.4%
cancel-sign-sub-inv60.4%
cancel-sign-sub60.4%
sub-neg60.4%
sub-neg60.4%
*-commutative60.4%
fma-neg61.9%
*-commutative61.9%
distribute-rgt-neg-out61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 62.0%
associate-*r*59.2%
associate-*r*59.2%
*-commutative59.2%
associate-*r*56.6%
distribute-rgt-in56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around inf 78.7%
*-commutative78.7%
Simplified78.7%
if -8.00000000000000014e141 < z < -1.6600000000000001e-17Initial program 77.4%
+-commutative77.4%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
sub-neg77.4%
sub-neg77.4%
*-commutative77.4%
fma-neg77.4%
*-commutative77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in y around -inf 69.4%
Simplified72.1%
Taylor expanded in x around inf 62.6%
associate-*r*62.5%
*-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
associate-/l*67.3%
Simplified67.3%
if -1.6600000000000001e-17 < z < 7.8999999999999997e-147 or 1.40000000000000006e-73 < z < 5.39999999999999975e-30 or 4.2000000000000001e55 < z < 4.00000000000000017e93Initial program 79.9%
Taylor expanded in i around inf 65.9%
if 7.8999999999999997e-147 < z < 1.40000000000000006e-73 or 2.2000000000000002e34 < z < 4.2000000000000001e55Initial program 77.8%
+-commutative77.8%
fma-define77.8%
*-commutative77.8%
*-commutative77.8%
cancel-sign-sub-inv77.8%
cancel-sign-sub77.8%
sub-neg77.8%
sub-neg77.8%
*-commutative77.8%
fma-neg77.8%
*-commutative77.8%
distribute-rgt-neg-out77.8%
remove-double-neg77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in t around inf 67.2%
+-commutative67.2%
mul-1-neg67.2%
unsub-neg67.2%
*-commutative67.2%
Simplified67.2%
if 5.39999999999999975e-30 < z < 2.2000000000000002e34Initial program 79.8%
+-commutative79.8%
fma-define79.8%
*-commutative79.8%
*-commutative79.8%
cancel-sign-sub-inv79.8%
cancel-sign-sub79.8%
sub-neg79.8%
sub-neg79.8%
*-commutative79.8%
fma-neg79.8%
*-commutative79.8%
distribute-rgt-neg-out79.8%
remove-double-neg79.8%
*-commutative79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in y around inf 61.4%
+-commutative61.4%
mul-1-neg61.4%
unsub-neg61.4%
*-commutative61.4%
Simplified61.4%
Final simplification69.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= t -1.3e+163)
(* t (- (* c j) (* x a)))
(if (<= t -1.5e+109)
(+ t_1 (* a (* b i)))
(if (<= t -3200.0)
(- t_1 (* x (* t a)))
(if (<= t -2e-59)
t_2
(if (<= t 2.7e-41)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= t 4.2e-16)
t_2
(if (<= t 3.9e+29)
(* z (- (* x y) (* b c)))
(- t_1 (* a (* x t))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (t <= -1.3e+163) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -1.5e+109) {
tmp = t_1 + (a * (b * i));
} else if (t <= -3200.0) {
tmp = t_1 - (x * (t * a));
} else if (t <= -2e-59) {
tmp = t_2;
} else if (t <= 2.7e-41) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (t <= 4.2e-16) {
tmp = t_2;
} else if (t <= 3.9e+29) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1 - (a * (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = a * ((b * i) - (x * t))
if (t <= (-1.3d+163)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-1.5d+109)) then
tmp = t_1 + (a * (b * i))
else if (t <= (-3200.0d0)) then
tmp = t_1 - (x * (t * a))
else if (t <= (-2d-59)) then
tmp = t_2
else if (t <= 2.7d-41) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (t <= 4.2d-16) then
tmp = t_2
else if (t <= 3.9d+29) then
tmp = z * ((x * y) - (b * c))
else
tmp = t_1 - (a * (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (t <= -1.3e+163) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -1.5e+109) {
tmp = t_1 + (a * (b * i));
} else if (t <= -3200.0) {
tmp = t_1 - (x * (t * a));
} else if (t <= -2e-59) {
tmp = t_2;
} else if (t <= 2.7e-41) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (t <= 4.2e-16) {
tmp = t_2;
} else if (t <= 3.9e+29) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = t_1 - (a * (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if t <= -1.3e+163: tmp = t * ((c * j) - (x * a)) elif t <= -1.5e+109: tmp = t_1 + (a * (b * i)) elif t <= -3200.0: tmp = t_1 - (x * (t * a)) elif t <= -2e-59: tmp = t_2 elif t <= 2.7e-41: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif t <= 4.2e-16: tmp = t_2 elif t <= 3.9e+29: tmp = z * ((x * y) - (b * c)) else: tmp = t_1 - (a * (x * t)) 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(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (t <= -1.3e+163) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -1.5e+109) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (t <= -3200.0) tmp = Float64(t_1 - Float64(x * Float64(t * a))); elseif (t <= -2e-59) tmp = t_2; elseif (t <= 2.7e-41) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (t <= 4.2e-16) tmp = t_2; elseif (t <= 3.9e+29) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(t_1 - Float64(a * Float64(x * t))); 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 = a * ((b * i) - (x * t)); tmp = 0.0; if (t <= -1.3e+163) tmp = t * ((c * j) - (x * a)); elseif (t <= -1.5e+109) tmp = t_1 + (a * (b * i)); elseif (t <= -3200.0) tmp = t_1 - (x * (t * a)); elseif (t <= -2e-59) tmp = t_2; elseif (t <= 2.7e-41) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (t <= 4.2e-16) tmp = t_2; elseif (t <= 3.9e+29) tmp = z * ((x * y) - (b * c)); else tmp = t_1 - (a * (x * t)); 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.3e+163], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.5e+109], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3200.0], N[(t$95$1 - N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2e-59], t$95$2, If[LessEqual[t, 2.7e-41], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e-16], t$95$2, If[LessEqual[t, 3.9e+29], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;t \leq -1.3 \cdot 10^{+163}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -1.5 \cdot 10^{+109}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -3200:\\
\;\;\;\;t\_1 - x \cdot \left(t \cdot a\right)\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-59}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 2.7 \cdot 10^{-41}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{-16}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 3.9 \cdot 10^{+29}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\end{array}
\end{array}
if t < -1.3000000000000001e163Initial program 70.3%
+-commutative70.3%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around inf 76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
Simplified76.9%
if -1.3000000000000001e163 < t < -1.50000000000000008e109Initial program 66.1%
Taylor expanded in i around inf 99.5%
if -1.50000000000000008e109 < t < -3200Initial program 63.1%
Taylor expanded in b around -inf 69.2%
associate-*r*69.2%
neg-mul-169.2%
distribute-lft-out--69.2%
associate-/l*62.6%
*-commutative62.6%
*-commutative62.6%
Simplified62.6%
Taylor expanded in t around inf 64.2%
mul-1-neg64.2%
associate-*r*64.3%
distribute-lft-neg-in64.3%
*-commutative64.3%
distribute-rgt-neg-in64.3%
Simplified64.3%
if -3200 < t < -2.0000000000000001e-59 or 2.7e-41 < t < 4.2000000000000002e-16Initial program 95.9%
Taylor expanded in a around -inf 81.1%
Taylor expanded in a around inf 70.3%
if -2.0000000000000001e-59 < t < 2.7e-41Initial program 76.9%
+-commutative76.9%
fma-define77.9%
*-commutative77.9%
*-commutative77.9%
cancel-sign-sub-inv77.9%
cancel-sign-sub77.9%
sub-neg77.9%
sub-neg77.9%
*-commutative77.9%
fma-neg77.9%
*-commutative77.9%
distribute-rgt-neg-out77.9%
remove-double-neg77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in t around 0 74.7%
associate-*r*73.6%
associate-*r*73.6%
*-commutative73.6%
associate-*r*72.7%
distribute-rgt-in73.7%
+-commutative73.7%
mul-1-neg73.7%
unsub-neg73.7%
*-commutative73.7%
*-commutative73.7%
Simplified73.7%
Taylor expanded in c around inf 70.3%
*-commutative70.3%
associate-*l*72.0%
*-commutative72.0%
Simplified72.0%
if 4.2000000000000002e-16 < t < 3.89999999999999968e29Initial program 70.0%
+-commutative70.0%
fma-define70.0%
*-commutative70.0%
*-commutative70.0%
cancel-sign-sub-inv70.0%
cancel-sign-sub70.0%
sub-neg70.0%
sub-neg70.0%
*-commutative70.0%
fma-neg70.0%
*-commutative70.0%
distribute-rgt-neg-out70.0%
remove-double-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in t around 0 60.4%
associate-*r*60.6%
associate-*r*60.6%
*-commutative60.6%
associate-*r*60.6%
distribute-rgt-in60.6%
+-commutative60.6%
mul-1-neg60.6%
unsub-neg60.6%
*-commutative60.6%
*-commutative60.6%
Simplified60.6%
Taylor expanded in z around inf 71.1%
*-commutative71.1%
Simplified71.1%
if 3.89999999999999968e29 < t Initial program 65.8%
Taylor expanded in a around -inf 66.5%
Taylor expanded in b around 0 61.3%
+-commutative61.3%
*-commutative61.3%
*-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -2.25e+32)
t_2
(if (<= y -4.1e-249)
t_1
(if (<= y 7.6e-277)
(* c (- (* t j) (* z b)))
(if (<= y 1.45e-245)
t_1
(if (<= y 2.6e-167)
(* b (* c (- (* t (/ j b)) z)))
(if (<= y 2.05e-128)
(* a (- (* b i) (* x t)))
(if (<= y 5.6e-27)
(* c (* b (- (/ (* t j) b) z)))
(if (<= y 5.5e+64) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.25e+32) {
tmp = t_2;
} else if (y <= -4.1e-249) {
tmp = t_1;
} else if (y <= 7.6e-277) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1.45e-245) {
tmp = t_1;
} else if (y <= 2.6e-167) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 2.05e-128) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 5.6e-27) {
tmp = c * (b * (((t * j) / b) - z));
} else if (y <= 5.5e+64) {
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 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-2.25d+32)) then
tmp = t_2
else if (y <= (-4.1d-249)) then
tmp = t_1
else if (y <= 7.6d-277) then
tmp = c * ((t * j) - (z * b))
else if (y <= 1.45d-245) then
tmp = t_1
else if (y <= 2.6d-167) then
tmp = b * (c * ((t * (j / b)) - z))
else if (y <= 2.05d-128) then
tmp = a * ((b * i) - (x * t))
else if (y <= 5.6d-27) then
tmp = c * (b * (((t * j) / b) - z))
else if (y <= 5.5d+64) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.25e+32) {
tmp = t_2;
} else if (y <= -4.1e-249) {
tmp = t_1;
} else if (y <= 7.6e-277) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1.45e-245) {
tmp = t_1;
} else if (y <= 2.6e-167) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 2.05e-128) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 5.6e-27) {
tmp = c * (b * (((t * j) / b) - z));
} else if (y <= 5.5e+64) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.25e+32: tmp = t_2 elif y <= -4.1e-249: tmp = t_1 elif y <= 7.6e-277: tmp = c * ((t * j) - (z * b)) elif y <= 1.45e-245: tmp = t_1 elif y <= 2.6e-167: tmp = b * (c * ((t * (j / b)) - z)) elif y <= 2.05e-128: tmp = a * ((b * i) - (x * t)) elif y <= 5.6e-27: tmp = c * (b * (((t * j) / b) - z)) elif y <= 5.5e+64: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.25e+32) tmp = t_2; elseif (y <= -4.1e-249) tmp = t_1; elseif (y <= 7.6e-277) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 1.45e-245) tmp = t_1; elseif (y <= 2.6e-167) tmp = Float64(b * Float64(c * Float64(Float64(t * Float64(j / b)) - z))); elseif (y <= 2.05e-128) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 5.6e-27) tmp = Float64(c * Float64(b * Float64(Float64(Float64(t * j) / b) - z))); elseif (y <= 5.5e+64) 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 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.25e+32) tmp = t_2; elseif (y <= -4.1e-249) tmp = t_1; elseif (y <= 7.6e-277) tmp = c * ((t * j) - (z * b)); elseif (y <= 1.45e-245) tmp = t_1; elseif (y <= 2.6e-167) tmp = b * (c * ((t * (j / b)) - z)); elseif (y <= 2.05e-128) tmp = a * ((b * i) - (x * t)); elseif (y <= 5.6e-27) tmp = c * (b * (((t * j) / b) - z)); elseif (y <= 5.5e+64) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.25e+32], t$95$2, If[LessEqual[y, -4.1e-249], t$95$1, If[LessEqual[y, 7.6e-277], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.45e-245], t$95$1, If[LessEqual[y, 2.6e-167], N[(b * N[(c * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.05e-128], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.6e-27], N[(c * N[(b * N[(N[(N[(t * j), $MachinePrecision] / b), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e+64], t$95$1, t$95$2]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.25 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -4.1 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7.6 \cdot 10^{-277}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 1.45 \cdot 10^{-245}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-167}:\\
\;\;\;\;b \cdot \left(c \cdot \left(t \cdot \frac{j}{b} - z\right)\right)\\
\mathbf{elif}\;y \leq 2.05 \cdot 10^{-128}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 5.6 \cdot 10^{-27}:\\
\;\;\;\;c \cdot \left(b \cdot \left(\frac{t \cdot j}{b} - z\right)\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.2500000000000002e32 or 5.4999999999999996e64 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -2.2500000000000002e32 < y < -4.10000000000000004e-249 or 7.59999999999999972e-277 < y < 1.45e-245 or 5.5999999999999999e-27 < y < 5.4999999999999996e64Initial program 86.1%
+-commutative86.1%
fma-define87.5%
*-commutative87.5%
*-commutative87.5%
cancel-sign-sub-inv87.5%
cancel-sign-sub87.5%
sub-neg87.5%
sub-neg87.5%
*-commutative87.5%
fma-neg87.5%
*-commutative87.5%
distribute-rgt-neg-out87.5%
remove-double-neg87.5%
*-commutative87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in t around inf 63.9%
+-commutative63.9%
mul-1-neg63.9%
unsub-neg63.9%
*-commutative63.9%
Simplified63.9%
if -4.10000000000000004e-249 < y < 7.59999999999999972e-277Initial program 75.4%
+-commutative75.4%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
cancel-sign-sub-inv75.4%
cancel-sign-sub75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
fma-neg75.4%
*-commutative75.4%
distribute-rgt-neg-out75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in c around inf 59.3%
if 1.45e-245 < y < 2.5999999999999999e-167Initial program 97.7%
+-commutative97.7%
fma-define97.7%
*-commutative97.7%
*-commutative97.7%
cancel-sign-sub-inv97.7%
cancel-sign-sub97.7%
sub-neg97.7%
sub-neg97.7%
*-commutative97.7%
fma-neg97.7%
*-commutative97.7%
distribute-rgt-neg-out97.7%
remove-double-neg97.7%
*-commutative97.7%
*-commutative97.7%
Simplified97.7%
Taylor expanded in c around inf 64.0%
Taylor expanded in b around inf 75.9%
mul-1-neg75.9%
+-commutative75.9%
unsub-neg75.9%
associate-/l*75.9%
associate-/l*76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in c around 0 75.9%
*-commutative75.9%
associate-/l*75.9%
Simplified75.9%
if 2.5999999999999999e-167 < y < 2.05e-128Initial program 91.9%
Taylor expanded in a around -inf 91.4%
Taylor expanded in a around inf 60.0%
if 2.05e-128 < y < 5.5999999999999999e-27Initial program 79.3%
+-commutative79.3%
fma-define79.3%
*-commutative79.3%
*-commutative79.3%
cancel-sign-sub-inv79.3%
cancel-sign-sub79.3%
sub-neg79.3%
sub-neg79.3%
*-commutative79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-out79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in c around inf 48.7%
Taylor expanded in b around inf 48.8%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* b (* c (- (* t (/ j b)) z)))))
(if (<= y -3.3e+32)
t_2
(if (<= y -1.25e-248)
t_1
(if (<= y 4.8e-281)
(* c (- (* t j) (* z b)))
(if (<= y 1.75e-249)
t_1
(if (<= y 1.15e-155)
t_3
(if (<= y 1.05e-131)
(* i (- (* a b) (* y j)))
(if (<= y 1.32e-51) t_3 (if (<= y 1.15e+69) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * (c * ((t * (j / b)) - z));
double tmp;
if (y <= -3.3e+32) {
tmp = t_2;
} else if (y <= -1.25e-248) {
tmp = t_1;
} else if (y <= 4.8e-281) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1.75e-249) {
tmp = t_1;
} else if (y <= 1.15e-155) {
tmp = t_3;
} else if (y <= 1.05e-131) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 1.32e-51) {
tmp = t_3;
} else if (y <= 1.15e+69) {
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) :: t_3
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
t_3 = b * (c * ((t * (j / b)) - z))
if (y <= (-3.3d+32)) then
tmp = t_2
else if (y <= (-1.25d-248)) then
tmp = t_1
else if (y <= 4.8d-281) then
tmp = c * ((t * j) - (z * b))
else if (y <= 1.75d-249) then
tmp = t_1
else if (y <= 1.15d-155) then
tmp = t_3
else if (y <= 1.05d-131) then
tmp = i * ((a * b) - (y * j))
else if (y <= 1.32d-51) then
tmp = t_3
else if (y <= 1.15d+69) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * (c * ((t * (j / b)) - z));
double tmp;
if (y <= -3.3e+32) {
tmp = t_2;
} else if (y <= -1.25e-248) {
tmp = t_1;
} else if (y <= 4.8e-281) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1.75e-249) {
tmp = t_1;
} else if (y <= 1.15e-155) {
tmp = t_3;
} else if (y <= 1.05e-131) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 1.32e-51) {
tmp = t_3;
} else if (y <= 1.15e+69) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) t_3 = b * (c * ((t * (j / b)) - z)) tmp = 0 if y <= -3.3e+32: tmp = t_2 elif y <= -1.25e-248: tmp = t_1 elif y <= 4.8e-281: tmp = c * ((t * j) - (z * b)) elif y <= 1.75e-249: tmp = t_1 elif y <= 1.15e-155: tmp = t_3 elif y <= 1.05e-131: tmp = i * ((a * b) - (y * j)) elif y <= 1.32e-51: tmp = t_3 elif y <= 1.15e+69: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(b * Float64(c * Float64(Float64(t * Float64(j / b)) - z))) tmp = 0.0 if (y <= -3.3e+32) tmp = t_2; elseif (y <= -1.25e-248) tmp = t_1; elseif (y <= 4.8e-281) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 1.75e-249) tmp = t_1; elseif (y <= 1.15e-155) tmp = t_3; elseif (y <= 1.05e-131) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (y <= 1.32e-51) tmp = t_3; elseif (y <= 1.15e+69) 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 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); t_3 = b * (c * ((t * (j / b)) - z)); tmp = 0.0; if (y <= -3.3e+32) tmp = t_2; elseif (y <= -1.25e-248) tmp = t_1; elseif (y <= 4.8e-281) tmp = c * ((t * j) - (z * b)); elseif (y <= 1.75e-249) tmp = t_1; elseif (y <= 1.15e-155) tmp = t_3; elseif (y <= 1.05e-131) tmp = i * ((a * b) - (y * j)); elseif (y <= 1.32e-51) tmp = t_3; elseif (y <= 1.15e+69) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(c * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.3e+32], t$95$2, If[LessEqual[y, -1.25e-248], t$95$1, If[LessEqual[y, 4.8e-281], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.75e-249], t$95$1, If[LessEqual[y, 1.15e-155], t$95$3, If[LessEqual[y, 1.05e-131], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.32e-51], t$95$3, If[LessEqual[y, 1.15e+69], t$95$1, t$95$2]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := b \cdot \left(c \cdot \left(t \cdot \frac{j}{b} - z\right)\right)\\
\mathbf{if}\;y \leq -3.3 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.25 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.8 \cdot 10^{-281}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{-249}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{-155}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 1.05 \cdot 10^{-131}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq 1.32 \cdot 10^{-51}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq 1.15 \cdot 10^{+69}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -3.3000000000000002e32 or 1.15000000000000008e69 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -3.3000000000000002e32 < y < -1.25e-248 or 4.8000000000000001e-281 < y < 1.75000000000000006e-249 or 1.31999999999999998e-51 < y < 1.15000000000000008e69Initial program 85.3%
+-commutative85.3%
fma-define86.6%
*-commutative86.6%
*-commutative86.6%
cancel-sign-sub-inv86.6%
cancel-sign-sub86.6%
sub-neg86.6%
sub-neg86.6%
*-commutative86.6%
fma-neg86.6%
*-commutative86.6%
distribute-rgt-neg-out86.6%
remove-double-neg86.6%
*-commutative86.6%
*-commutative86.6%
Simplified86.6%
Taylor expanded in t around inf 64.0%
+-commutative64.0%
mul-1-neg64.0%
unsub-neg64.0%
*-commutative64.0%
Simplified64.0%
if -1.25e-248 < y < 4.8000000000000001e-281Initial program 75.4%
+-commutative75.4%
fma-define75.4%
*-commutative75.4%
*-commutative75.4%
cancel-sign-sub-inv75.4%
cancel-sign-sub75.4%
sub-neg75.4%
sub-neg75.4%
*-commutative75.4%
fma-neg75.4%
*-commutative75.4%
distribute-rgt-neg-out75.4%
remove-double-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in c around inf 59.3%
if 1.75000000000000006e-249 < y < 1.15000000000000003e-155 or 1.04999999999999999e-131 < y < 1.31999999999999998e-51Initial program 88.6%
+-commutative88.6%
fma-define88.6%
*-commutative88.6%
*-commutative88.6%
cancel-sign-sub-inv88.6%
cancel-sign-sub88.6%
sub-neg88.6%
sub-neg88.6%
*-commutative88.6%
fma-neg88.6%
*-commutative88.6%
distribute-rgt-neg-out88.6%
remove-double-neg88.6%
*-commutative88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in c around inf 50.3%
Taylor expanded in b around inf 55.5%
mul-1-neg55.5%
+-commutative55.5%
unsub-neg55.5%
associate-/l*55.6%
associate-/l*58.1%
*-commutative58.1%
Simplified58.1%
Taylor expanded in c around 0 55.6%
*-commutative55.6%
associate-/l*58.2%
Simplified58.2%
if 1.15000000000000003e-155 < y < 1.04999999999999999e-131Initial program 99.8%
Taylor expanded in i around inf 72.2%
*-commutative72.2%
associate-*r*72.2%
Simplified72.2%
Taylor expanded in i around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
Simplified72.2%
Final simplification65.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -6.5e+31)
t_2
(if (<= y -1.25e-240)
t_1
(if (<= y 1.65e-304)
(* c (* j (- t (* b (/ z j)))))
(if (<= y 2e-269)
(* a (- (* b i) (* x t)))
(if (<= y 6.5e-165)
(* (* b c) (- (* t (/ j b)) z))
(if (<= y 2.2e-132)
(* (* b i) (- a (* j (/ y b))))
(if (<= y 3.7e+62) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6.5e+31) {
tmp = t_2;
} else if (y <= -1.25e-240) {
tmp = t_1;
} else if (y <= 1.65e-304) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 2e-269) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 6.5e-165) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 2.2e-132) {
tmp = (b * i) * (a - (j * (y / b)));
} else if (y <= 3.7e+62) {
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 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-6.5d+31)) then
tmp = t_2
else if (y <= (-1.25d-240)) then
tmp = t_1
else if (y <= 1.65d-304) then
tmp = c * (j * (t - (b * (z / j))))
else if (y <= 2d-269) then
tmp = a * ((b * i) - (x * t))
else if (y <= 6.5d-165) then
tmp = (b * c) * ((t * (j / b)) - z)
else if (y <= 2.2d-132) then
tmp = (b * i) * (a - (j * (y / b)))
else if (y <= 3.7d+62) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -6.5e+31) {
tmp = t_2;
} else if (y <= -1.25e-240) {
tmp = t_1;
} else if (y <= 1.65e-304) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 2e-269) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 6.5e-165) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 2.2e-132) {
tmp = (b * i) * (a - (j * (y / b)));
} else if (y <= 3.7e+62) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -6.5e+31: tmp = t_2 elif y <= -1.25e-240: tmp = t_1 elif y <= 1.65e-304: tmp = c * (j * (t - (b * (z / j)))) elif y <= 2e-269: tmp = a * ((b * i) - (x * t)) elif y <= 6.5e-165: tmp = (b * c) * ((t * (j / b)) - z) elif y <= 2.2e-132: tmp = (b * i) * (a - (j * (y / b))) elif y <= 3.7e+62: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -6.5e+31) tmp = t_2; elseif (y <= -1.25e-240) tmp = t_1; elseif (y <= 1.65e-304) tmp = Float64(c * Float64(j * Float64(t - Float64(b * Float64(z / j))))); elseif (y <= 2e-269) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 6.5e-165) tmp = Float64(Float64(b * c) * Float64(Float64(t * Float64(j / b)) - z)); elseif (y <= 2.2e-132) tmp = Float64(Float64(b * i) * Float64(a - Float64(j * Float64(y / b)))); elseif (y <= 3.7e+62) 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 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -6.5e+31) tmp = t_2; elseif (y <= -1.25e-240) tmp = t_1; elseif (y <= 1.65e-304) tmp = c * (j * (t - (b * (z / j)))); elseif (y <= 2e-269) tmp = a * ((b * i) - (x * t)); elseif (y <= 6.5e-165) tmp = (b * c) * ((t * (j / b)) - z); elseif (y <= 2.2e-132) tmp = (b * i) * (a - (j * (y / b))); elseif (y <= 3.7e+62) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6.5e+31], t$95$2, If[LessEqual[y, -1.25e-240], t$95$1, If[LessEqual[y, 1.65e-304], N[(c * N[(j * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e-269], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e-165], N[(N[(b * c), $MachinePrecision] * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.2e-132], N[(N[(b * i), $MachinePrecision] * N[(a - N[(j * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.7e+62], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -6.5 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.25 \cdot 10^{-240}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.65 \cdot 10^{-304}:\\
\;\;\;\;c \cdot \left(j \cdot \left(t - b \cdot \frac{z}{j}\right)\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{-269}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-165}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(t \cdot \frac{j}{b} - z\right)\\
\mathbf{elif}\;y \leq 2.2 \cdot 10^{-132}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(a - j \cdot \frac{y}{b}\right)\\
\mathbf{elif}\;y \leq 3.7 \cdot 10^{+62}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -6.5000000000000004e31 or 3.70000000000000014e62 < y Initial program 60.6%
+-commutative60.6%
fma-define61.4%
*-commutative61.4%
*-commutative61.4%
cancel-sign-sub-inv61.4%
cancel-sign-sub61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
fma-neg62.3%
*-commutative62.3%
distribute-rgt-neg-out62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around inf 68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
Simplified68.7%
if -6.5000000000000004e31 < y < -1.2500000000000001e-240 or 2.19999999999999991e-132 < y < 3.70000000000000014e62Initial program 84.0%
+-commutative84.0%
fma-define85.2%
*-commutative85.2%
*-commutative85.2%
cancel-sign-sub-inv85.2%
cancel-sign-sub85.2%
sub-neg85.2%
sub-neg85.2%
*-commutative85.2%
fma-neg85.2%
*-commutative85.2%
distribute-rgt-neg-out85.2%
remove-double-neg85.2%
*-commutative85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in t around inf 56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
*-commutative56.8%
Simplified56.8%
if -1.2500000000000001e-240 < y < 1.65000000000000006e-304Initial program 77.5%
+-commutative77.5%
fma-define77.5%
*-commutative77.5%
*-commutative77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
sub-neg77.5%
sub-neg77.5%
*-commutative77.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around inf 59.9%
Taylor expanded in j around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-/l*64.3%
Simplified64.3%
if 1.65000000000000006e-304 < y < 1.9999999999999999e-269Initial program 89.4%
Taylor expanded in a around -inf 66.8%
Taylor expanded in a around inf 66.8%
if 1.9999999999999999e-269 < y < 6.5000000000000004e-165Initial program 89.4%
+-commutative89.4%
fma-define89.4%
*-commutative89.4%
*-commutative89.4%
cancel-sign-sub-inv89.4%
cancel-sign-sub89.4%
sub-neg89.4%
sub-neg89.4%
*-commutative89.4%
fma-neg89.4%
*-commutative89.4%
distribute-rgt-neg-out89.4%
remove-double-neg89.4%
*-commutative89.4%
*-commutative89.4%
Simplified89.4%
Taylor expanded in c around inf 60.9%
Taylor expanded in b around inf 65.2%
mul-1-neg65.2%
+-commutative65.2%
unsub-neg65.2%
associate-/l*65.2%
associate-/l*65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in b around inf 65.2%
neg-mul-165.2%
+-commutative65.2%
associate-/l*65.2%
associate-*r/65.2%
distribute-rgt-neg-in65.2%
neg-mul-165.2%
distribute-lft-in65.2%
associate-*r/65.2%
neg-mul-165.2%
sub-neg65.2%
associate-*r*69.3%
*-commutative69.3%
associate-/l*69.3%
Simplified69.3%
if 6.5000000000000004e-165 < y < 2.19999999999999991e-132Initial program 99.8%
Taylor expanded in i around inf 75.7%
*-commutative75.7%
associate-*r*64.0%
Simplified64.0%
Taylor expanded in b around inf 64.3%
Taylor expanded in i around inf 64.3%
associate-*r*87.6%
mul-1-neg87.6%
unsub-neg87.6%
associate-/l*87.6%
Simplified87.6%
Final simplification65.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -4.1e+31)
t_2
(if (<= y -2e-241)
t_1
(if (<= y 1.9e-305)
(* c (* j (- t (* b (/ z j)))))
(if (<= y 1.55e-270)
(* a (- (* b i) (* x t)))
(if (<= y 2.6e-156)
(* (* b c) (- (* t (/ j b)) z))
(if (<= y 9.5e-132)
(* i (- (* a b) (* y j)))
(if (<= y 1.3e+63) t_1 t_2)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.1e+31) {
tmp = t_2;
} else if (y <= -2e-241) {
tmp = t_1;
} else if (y <= 1.9e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 1.55e-270) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 2.6e-156) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 9.5e-132) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 1.3e+63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-4.1d+31)) then
tmp = t_2
else if (y <= (-2d-241)) then
tmp = t_1
else if (y <= 1.9d-305) then
tmp = c * (j * (t - (b * (z / j))))
else if (y <= 1.55d-270) then
tmp = a * ((b * i) - (x * t))
else if (y <= 2.6d-156) then
tmp = (b * c) * ((t * (j / b)) - z)
else if (y <= 9.5d-132) then
tmp = i * ((a * b) - (y * j))
else if (y <= 1.3d+63) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -4.1e+31) {
tmp = t_2;
} else if (y <= -2e-241) {
tmp = t_1;
} else if (y <= 1.9e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 1.55e-270) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 2.6e-156) {
tmp = (b * c) * ((t * (j / b)) - z);
} else if (y <= 9.5e-132) {
tmp = i * ((a * b) - (y * j));
} else if (y <= 1.3e+63) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -4.1e+31: tmp = t_2 elif y <= -2e-241: tmp = t_1 elif y <= 1.9e-305: tmp = c * (j * (t - (b * (z / j)))) elif y <= 1.55e-270: tmp = a * ((b * i) - (x * t)) elif y <= 2.6e-156: tmp = (b * c) * ((t * (j / b)) - z) elif y <= 9.5e-132: tmp = i * ((a * b) - (y * j)) elif y <= 1.3e+63: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -4.1e+31) tmp = t_2; elseif (y <= -2e-241) tmp = t_1; elseif (y <= 1.9e-305) tmp = Float64(c * Float64(j * Float64(t - Float64(b * Float64(z / j))))); elseif (y <= 1.55e-270) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 2.6e-156) tmp = Float64(Float64(b * c) * Float64(Float64(t * Float64(j / b)) - z)); elseif (y <= 9.5e-132) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (y <= 1.3e+63) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -4.1e+31) tmp = t_2; elseif (y <= -2e-241) tmp = t_1; elseif (y <= 1.9e-305) tmp = c * (j * (t - (b * (z / j)))); elseif (y <= 1.55e-270) tmp = a * ((b * i) - (x * t)); elseif (y <= 2.6e-156) tmp = (b * c) * ((t * (j / b)) - z); elseif (y <= 9.5e-132) tmp = i * ((a * b) - (y * j)); elseif (y <= 1.3e+63) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.1e+31], t$95$2, If[LessEqual[y, -2e-241], t$95$1, If[LessEqual[y, 1.9e-305], N[(c * N[(j * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.55e-270], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.6e-156], N[(N[(b * c), $MachinePrecision] * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9.5e-132], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.3e+63], t$95$1, t$95$2]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -4.1 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2 \cdot 10^{-241}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(j \cdot \left(t - b \cdot \frac{z}{j}\right)\right)\\
\mathbf{elif}\;y \leq 1.55 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 2.6 \cdot 10^{-156}:\\
\;\;\;\;\left(b \cdot c\right) \cdot \left(t \cdot \frac{j}{b} - z\right)\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-132}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{+63}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -4.1000000000000002e31 or 1.3000000000000001e63 < y Initial program 60.6%
+-commutative60.6%
fma-define61.4%
*-commutative61.4%
*-commutative61.4%
cancel-sign-sub-inv61.4%
cancel-sign-sub61.4%
sub-neg61.4%
sub-neg61.4%
*-commutative61.4%
fma-neg62.3%
*-commutative62.3%
distribute-rgt-neg-out62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around inf 68.7%
+-commutative68.7%
mul-1-neg68.7%
unsub-neg68.7%
*-commutative68.7%
Simplified68.7%
if -4.1000000000000002e31 < y < -1.9999999999999999e-241 or 9.49999999999999987e-132 < y < 1.3000000000000001e63Initial program 84.0%
+-commutative84.0%
fma-define85.2%
*-commutative85.2%
*-commutative85.2%
cancel-sign-sub-inv85.2%
cancel-sign-sub85.2%
sub-neg85.2%
sub-neg85.2%
*-commutative85.2%
fma-neg85.2%
*-commutative85.2%
distribute-rgt-neg-out85.2%
remove-double-neg85.2%
*-commutative85.2%
*-commutative85.2%
Simplified85.2%
Taylor expanded in t around inf 56.8%
+-commutative56.8%
mul-1-neg56.8%
unsub-neg56.8%
*-commutative56.8%
Simplified56.8%
if -1.9999999999999999e-241 < y < 1.9e-305Initial program 77.5%
+-commutative77.5%
fma-define77.5%
*-commutative77.5%
*-commutative77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
sub-neg77.5%
sub-neg77.5%
*-commutative77.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around inf 59.9%
Taylor expanded in j around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-/l*64.3%
Simplified64.3%
if 1.9e-305 < y < 1.55e-270Initial program 89.4%
Taylor expanded in a around -inf 66.8%
Taylor expanded in a around inf 66.8%
if 1.55e-270 < y < 2.6000000000000001e-156Initial program 89.9%
+-commutative89.9%
fma-define89.9%
*-commutative89.9%
*-commutative89.9%
cancel-sign-sub-inv89.9%
cancel-sign-sub89.9%
sub-neg89.9%
sub-neg89.9%
*-commutative89.9%
fma-neg89.9%
*-commutative89.9%
distribute-rgt-neg-out89.9%
remove-double-neg89.9%
*-commutative89.9%
*-commutative89.9%
Simplified89.9%
Taylor expanded in c around inf 62.6%
Taylor expanded in b around inf 66.7%
mul-1-neg66.7%
+-commutative66.7%
unsub-neg66.7%
associate-/l*66.7%
associate-/l*66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in b around inf 66.7%
neg-mul-166.7%
+-commutative66.7%
associate-/l*66.7%
associate-*r/66.7%
distribute-rgt-neg-in66.7%
neg-mul-166.7%
distribute-lft-in66.7%
associate-*r/66.7%
neg-mul-166.7%
sub-neg66.7%
associate-*r*70.7%
*-commutative70.7%
associate-/l*70.7%
Simplified70.7%
if 2.6000000000000001e-156 < y < 9.49999999999999987e-132Initial program 99.8%
Taylor expanded in i around inf 72.2%
*-commutative72.2%
associate-*r*72.2%
Simplified72.2%
Taylor expanded in i around inf 72.2%
+-commutative72.2%
mul-1-neg72.2%
unsub-neg72.2%
*-commutative72.2%
Simplified72.2%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (- t_1 (* x (- (* t a) (* y z))))))
(if (<= z -1.75e+131)
(* z (- (* x y) (* b c)))
(if (<= z -1.12e-157)
t_2
(if (<= z 2.05e-148)
(+ t_1 (* a (* b i)))
(if (<= z 2.6e+58)
t_2
(if (<= z 1.7e+169)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(* (* y z) (- x (* b (/ c y)))))))))))
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 = t_1 - (x * ((t * a) - (y * z)));
double tmp;
if (z <= -1.75e+131) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.12e-157) {
tmp = t_2;
} else if (z <= 2.05e-148) {
tmp = t_1 + (a * (b * i));
} else if (z <= 2.6e+58) {
tmp = t_2;
} else if (z <= 1.7e+169) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 - (x * ((t * a) - (y * z)))
if (z <= (-1.75d+131)) then
tmp = z * ((x * y) - (b * c))
else if (z <= (-1.12d-157)) then
tmp = t_2
else if (z <= 2.05d-148) then
tmp = t_1 + (a * (b * i))
else if (z <= 2.6d+58) then
tmp = t_2
else if (z <= 1.7d+169) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else
tmp = (y * z) * (x - (b * (c / y)))
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 = t_1 - (x * ((t * a) - (y * z)));
double tmp;
if (z <= -1.75e+131) {
tmp = z * ((x * y) - (b * c));
} else if (z <= -1.12e-157) {
tmp = t_2;
} else if (z <= 2.05e-148) {
tmp = t_1 + (a * (b * i));
} else if (z <= 2.6e+58) {
tmp = t_2;
} else if (z <= 1.7e+169) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = (y * z) * (x - (b * (c / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 - (x * ((t * a) - (y * z))) tmp = 0 if z <= -1.75e+131: tmp = z * ((x * y) - (b * c)) elif z <= -1.12e-157: tmp = t_2 elif z <= 2.05e-148: tmp = t_1 + (a * (b * i)) elif z <= 2.6e+58: tmp = t_2 elif z <= 1.7e+169: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) else: tmp = (y * z) * (x - (b * (c / y))) 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(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z)))) tmp = 0.0 if (z <= -1.75e+131) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (z <= -1.12e-157) tmp = t_2; elseif (z <= 2.05e-148) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (z <= 2.6e+58) tmp = t_2; elseif (z <= 1.7e+169) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); else tmp = Float64(Float64(y * z) * Float64(x - Float64(b * Float64(c / y)))); 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 = t_1 - (x * ((t * a) - (y * z))); tmp = 0.0; if (z <= -1.75e+131) tmp = z * ((x * y) - (b * c)); elseif (z <= -1.12e-157) tmp = t_2; elseif (z <= 2.05e-148) tmp = t_1 + (a * (b * i)); elseif (z <= 2.6e+58) tmp = t_2; elseif (z <= 1.7e+169) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); else tmp = (y * z) * (x - (b * (c / y))); 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[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.75e+131], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.12e-157], t$95$2, If[LessEqual[z, 2.05e-148], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.6e+58], t$95$2, If[LessEqual[z, 1.7e+169], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] * N[(x - N[(b * N[(c / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{if}\;z \leq -1.75 \cdot 10^{+131}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;z \leq -1.12 \cdot 10^{-157}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 2.05 \cdot 10^{-148}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+58}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+169}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - b \cdot \frac{c}{y}\right)\\
\end{array}
\end{array}
if z < -1.7499999999999999e131Initial program 58.6%
+-commutative58.6%
fma-define58.6%
*-commutative58.6%
*-commutative58.6%
cancel-sign-sub-inv58.6%
cancel-sign-sub58.6%
sub-neg58.6%
sub-neg58.6%
*-commutative58.6%
fma-neg61.9%
*-commutative61.9%
distribute-rgt-neg-out61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 65.1%
associate-*r*61.9%
associate-*r*61.9%
*-commutative61.9%
associate-*r*55.8%
distribute-rgt-in55.8%
+-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in z around inf 74.1%
*-commutative74.1%
Simplified74.1%
if -1.7499999999999999e131 < z < -1.12000000000000001e-157 or 2.0500000000000001e-148 < z < 2.59999999999999988e58Initial program 81.2%
Taylor expanded in b around -inf 75.2%
associate-*r*75.2%
neg-mul-175.2%
distribute-lft-out--75.2%
associate-/l*74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in b around 0 64.6%
if -1.12000000000000001e-157 < z < 2.0500000000000001e-148Initial program 80.5%
Taylor expanded in i around inf 73.2%
if 2.59999999999999988e58 < z < 1.70000000000000014e169Initial program 54.8%
+-commutative54.8%
fma-define54.8%
*-commutative54.8%
*-commutative54.8%
cancel-sign-sub-inv54.8%
cancel-sign-sub54.8%
sub-neg54.8%
sub-neg54.8%
*-commutative54.8%
fma-neg54.8%
*-commutative54.8%
distribute-rgt-neg-out54.8%
remove-double-neg54.8%
*-commutative54.8%
*-commutative54.8%
Simplified54.8%
Taylor expanded in t around 0 60.7%
associate-*r*60.8%
associate-*r*60.8%
*-commutative60.8%
associate-*r*64.5%
distribute-rgt-in68.3%
+-commutative68.3%
mul-1-neg68.3%
unsub-neg68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in c around inf 70.5%
*-commutative70.5%
associate-*l*73.9%
*-commutative73.9%
Simplified73.9%
if 1.70000000000000014e169 < z Initial program 66.6%
+-commutative66.6%
fma-define66.6%
*-commutative66.6%
*-commutative66.6%
cancel-sign-sub-inv66.6%
cancel-sign-sub66.6%
sub-neg66.6%
sub-neg66.6%
*-commutative66.6%
fma-neg66.6%
*-commutative66.6%
distribute-rgt-neg-out66.6%
remove-double-neg66.6%
*-commutative66.6%
*-commutative66.6%
Simplified66.6%
Taylor expanded in y around -inf 63.7%
Simplified60.0%
Taylor expanded in z around inf 74.8%
associate-*r*78.2%
*-commutative78.2%
associate-/l*85.6%
Simplified85.6%
Final simplification71.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (- t_1 (* a (* x t)))))
(if (<= t -3.3e+156)
(* t (- (* c j) (* x a)))
(if (<= t -3.8e+108)
(+ t_1 (* a (* b i)))
(if (<= t -0.32)
t_2
(if (<= t -2e-59)
(* a (- (* b i) (* x t)))
(if (<= t 1.75e-40)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - (a * (x * t));
double tmp;
if (t <= -3.3e+156) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -3.8e+108) {
tmp = t_1 + (a * (b * i));
} else if (t <= -0.32) {
tmp = t_2;
} else if (t <= -2e-59) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 1.75e-40) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = t_1 - (a * (x * t))
if (t <= (-3.3d+156)) then
tmp = t * ((c * j) - (x * a))
else if (t <= (-3.8d+108)) then
tmp = t_1 + (a * (b * i))
else if (t <= (-0.32d0)) then
tmp = t_2
else if (t <= (-2d-59)) then
tmp = a * ((b * i) - (x * t))
else if (t <= 1.75d-40) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = t_1 - (a * (x * t));
double tmp;
if (t <= -3.3e+156) {
tmp = t * ((c * j) - (x * a));
} else if (t <= -3.8e+108) {
tmp = t_1 + (a * (b * i));
} else if (t <= -0.32) {
tmp = t_2;
} else if (t <= -2e-59) {
tmp = a * ((b * i) - (x * t));
} else if (t <= 1.75e-40) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = t_1 - (a * (x * t)) tmp = 0 if t <= -3.3e+156: tmp = t * ((c * j) - (x * a)) elif t <= -3.8e+108: tmp = t_1 + (a * (b * i)) elif t <= -0.32: tmp = t_2 elif t <= -2e-59: tmp = a * ((b * i) - (x * t)) elif t <= 1.75e-40: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(t_1 - Float64(a * Float64(x * t))) tmp = 0.0 if (t <= -3.3e+156) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (t <= -3.8e+108) tmp = Float64(t_1 + Float64(a * Float64(b * i))); elseif (t <= -0.32) tmp = t_2; elseif (t <= -2e-59) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (t <= 1.75e-40) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = t_1 - (a * (x * t)); tmp = 0.0; if (t <= -3.3e+156) tmp = t * ((c * j) - (x * a)); elseif (t <= -3.8e+108) tmp = t_1 + (a * (b * i)); elseif (t <= -0.32) tmp = t_2; elseif (t <= -2e-59) tmp = a * ((b * i) - (x * t)); elseif (t <= 1.75e-40) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.3e+156], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e+108], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -0.32], t$95$2, If[LessEqual[t, -2e-59], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.75e-40], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{if}\;t \leq -3.3 \cdot 10^{+156}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{+108}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;t \leq -0.32:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq -2 \cdot 10^{-59}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-40}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -3.2999999999999999e156Initial program 70.3%
+-commutative70.3%
fma-define72.8%
*-commutative72.8%
*-commutative72.8%
cancel-sign-sub-inv72.8%
cancel-sign-sub72.8%
sub-neg72.8%
sub-neg72.8%
*-commutative72.8%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around inf 76.9%
+-commutative76.9%
mul-1-neg76.9%
unsub-neg76.9%
*-commutative76.9%
Simplified76.9%
if -3.2999999999999999e156 < t < -3.80000000000000008e108Initial program 66.1%
Taylor expanded in i around inf 99.5%
if -3.80000000000000008e108 < t < -0.320000000000000007 or 1.7500000000000001e-40 < t Initial program 69.5%
Taylor expanded in a around -inf 65.9%
Taylor expanded in b around 0 58.5%
+-commutative58.5%
*-commutative58.5%
*-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
if -0.320000000000000007 < t < -2.0000000000000001e-59Initial program 93.0%
Taylor expanded in a around -inf 80.1%
Taylor expanded in a around inf 74.5%
if -2.0000000000000001e-59 < t < 1.7500000000000001e-40Initial program 77.2%
+-commutative77.2%
fma-define78.1%
*-commutative78.1%
*-commutative78.1%
cancel-sign-sub-inv78.1%
cancel-sign-sub78.1%
sub-neg78.1%
sub-neg78.1%
*-commutative78.1%
fma-neg78.1%
*-commutative78.1%
distribute-rgt-neg-out78.1%
remove-double-neg78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in t around 0 74.9%
associate-*r*73.8%
associate-*r*73.8%
*-commutative73.8%
associate-*r*73.0%
distribute-rgt-in74.0%
+-commutative74.0%
mul-1-neg74.0%
unsub-neg74.0%
*-commutative74.0%
*-commutative74.0%
Simplified74.0%
Taylor expanded in c around inf 69.7%
*-commutative69.7%
associate-*l*71.3%
*-commutative71.3%
Simplified71.3%
Final simplification68.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i))))
(t_2 (+ t_1 (* a (* b i))))
(t_3 (* z (- (* x y) (* b c)))))
(if (<= z -1.35e+141)
t_3
(if (<= z -2.5e-22)
(* (* x y) (- z (* a (/ t y))))
(if (<= z 9.4e-151)
t_2
(if (<= z 1.7e+39)
(- t_1 (* a (* x t)))
(if (<= z 2.1e+93) t_2 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 = t_1 + (a * (b * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.35e+141) {
tmp = t_3;
} else if (z <= -2.5e-22) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 9.4e-151) {
tmp = t_2;
} else if (z <= 1.7e+39) {
tmp = t_1 - (a * (x * t));
} else if (z <= 2.1e+93) {
tmp = t_2;
} 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 = t_1 + (a * (b * i))
t_3 = z * ((x * y) - (b * c))
if (z <= (-1.35d+141)) then
tmp = t_3
else if (z <= (-2.5d-22)) then
tmp = (x * y) * (z - (a * (t / y)))
else if (z <= 9.4d-151) then
tmp = t_2
else if (z <= 1.7d+39) then
tmp = t_1 - (a * (x * t))
else if (z <= 2.1d+93) then
tmp = t_2
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 = t_1 + (a * (b * i));
double t_3 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.35e+141) {
tmp = t_3;
} else if (z <= -2.5e-22) {
tmp = (x * y) * (z - (a * (t / y)));
} else if (z <= 9.4e-151) {
tmp = t_2;
} else if (z <= 1.7e+39) {
tmp = t_1 - (a * (x * t));
} else if (z <= 2.1e+93) {
tmp = t_2;
} 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 = t_1 + (a * (b * i)) t_3 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.35e+141: tmp = t_3 elif z <= -2.5e-22: tmp = (x * y) * (z - (a * (t / y))) elif z <= 9.4e-151: tmp = t_2 elif z <= 1.7e+39: tmp = t_1 - (a * (x * t)) elif z <= 2.1e+93: tmp = t_2 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(t_1 + Float64(a * Float64(b * i))) t_3 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.35e+141) tmp = t_3; elseif (z <= -2.5e-22) tmp = Float64(Float64(x * y) * Float64(z - Float64(a * Float64(t / y)))); elseif (z <= 9.4e-151) tmp = t_2; elseif (z <= 1.7e+39) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (z <= 2.1e+93) tmp = t_2; 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 = t_1 + (a * (b * i)); t_3 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.35e+141) tmp = t_3; elseif (z <= -2.5e-22) tmp = (x * y) * (z - (a * (t / y))); elseif (z <= 9.4e-151) tmp = t_2; elseif (z <= 1.7e+39) tmp = t_1 - (a * (x * t)); elseif (z <= 2.1e+93) tmp = t_2; 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[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.35e+141], t$95$3, If[LessEqual[z, -2.5e-22], N[(N[(x * y), $MachinePrecision] * N[(z - N[(a * N[(t / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.4e-151], t$95$2, If[LessEqual[z, 1.7e+39], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e+93], t$95$2, t$95$3]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := t\_1 + a \cdot \left(b \cdot i\right)\\
t_3 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.35 \cdot 10^{+141}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-22}:\\
\;\;\;\;\left(x \cdot y\right) \cdot \left(z - a \cdot \frac{t}{y}\right)\\
\mathbf{elif}\;z \leq 9.4 \cdot 10^{-151}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+39}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+93}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if z < -1.35e141 or 2.0999999999999998e93 < z Initial program 60.4%
+-commutative60.4%
fma-define60.4%
*-commutative60.4%
*-commutative60.4%
cancel-sign-sub-inv60.4%
cancel-sign-sub60.4%
sub-neg60.4%
sub-neg60.4%
*-commutative60.4%
fma-neg61.9%
*-commutative61.9%
distribute-rgt-neg-out61.9%
remove-double-neg61.9%
*-commutative61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in t around 0 62.0%
associate-*r*59.2%
associate-*r*59.2%
*-commutative59.2%
associate-*r*56.6%
distribute-rgt-in56.6%
+-commutative56.6%
mul-1-neg56.6%
unsub-neg56.6%
*-commutative56.6%
*-commutative56.6%
Simplified56.6%
Taylor expanded in z around inf 78.7%
*-commutative78.7%
Simplified78.7%
if -1.35e141 < z < -2.49999999999999977e-22Initial program 77.4%
+-commutative77.4%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
sub-neg77.4%
sub-neg77.4%
*-commutative77.4%
fma-neg77.4%
*-commutative77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in y around -inf 69.4%
Simplified72.1%
Taylor expanded in x around inf 62.6%
associate-*r*62.5%
*-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
associate-/l*67.3%
Simplified67.3%
if -2.49999999999999977e-22 < z < 9.40000000000000057e-151 or 1.6999999999999999e39 < z < 2.0999999999999998e93Initial program 79.1%
Taylor expanded in i around inf 65.7%
if 9.40000000000000057e-151 < z < 1.6999999999999999e39Initial program 81.2%
Taylor expanded in a around -inf 58.5%
Taylor expanded in b around 0 55.8%
+-commutative55.8%
*-commutative55.8%
*-commutative55.8%
mul-1-neg55.8%
unsub-neg55.8%
*-commutative55.8%
Simplified55.8%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -2e+32)
t_2
(if (<= y -8.8e-241)
t_1
(if (<= y 8.8e-305)
(* c (* j (- t (* b (/ z j)))))
(if (<= y 7.5e-271)
(* a (- (* b i) (* x t)))
(if (<= y 3.2e-54)
(* b (* c (- (* t (/ j b)) z)))
(if (<= y 3.6e+64) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2e+32) {
tmp = t_2;
} else if (y <= -8.8e-241) {
tmp = t_1;
} else if (y <= 8.8e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 7.5e-271) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 3.2e-54) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 3.6e+64) {
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 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-2d+32)) then
tmp = t_2
else if (y <= (-8.8d-241)) then
tmp = t_1
else if (y <= 8.8d-305) then
tmp = c * (j * (t - (b * (z / j))))
else if (y <= 7.5d-271) then
tmp = a * ((b * i) - (x * t))
else if (y <= 3.2d-54) then
tmp = b * (c * ((t * (j / b)) - z))
else if (y <= 3.6d+64) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2e+32) {
tmp = t_2;
} else if (y <= -8.8e-241) {
tmp = t_1;
} else if (y <= 8.8e-305) {
tmp = c * (j * (t - (b * (z / j))));
} else if (y <= 7.5e-271) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 3.2e-54) {
tmp = b * (c * ((t * (j / b)) - z));
} else if (y <= 3.6e+64) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2e+32: tmp = t_2 elif y <= -8.8e-241: tmp = t_1 elif y <= 8.8e-305: tmp = c * (j * (t - (b * (z / j)))) elif y <= 7.5e-271: tmp = a * ((b * i) - (x * t)) elif y <= 3.2e-54: tmp = b * (c * ((t * (j / b)) - z)) elif y <= 3.6e+64: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2e+32) tmp = t_2; elseif (y <= -8.8e-241) tmp = t_1; elseif (y <= 8.8e-305) tmp = Float64(c * Float64(j * Float64(t - Float64(b * Float64(z / j))))); elseif (y <= 7.5e-271) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 3.2e-54) tmp = Float64(b * Float64(c * Float64(Float64(t * Float64(j / b)) - z))); elseif (y <= 3.6e+64) 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 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2e+32) tmp = t_2; elseif (y <= -8.8e-241) tmp = t_1; elseif (y <= 8.8e-305) tmp = c * (j * (t - (b * (z / j)))); elseif (y <= 7.5e-271) tmp = a * ((b * i) - (x * t)); elseif (y <= 3.2e-54) tmp = b * (c * ((t * (j / b)) - z)); elseif (y <= 3.6e+64) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2e+32], t$95$2, If[LessEqual[y, -8.8e-241], t$95$1, If[LessEqual[y, 8.8e-305], N[(c * N[(j * N[(t - N[(b * N[(z / j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e-271], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.2e-54], N[(b * N[(c * N[(N[(t * N[(j / b), $MachinePrecision]), $MachinePrecision] - z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.6e+64], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -8.8 \cdot 10^{-241}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 8.8 \cdot 10^{-305}:\\
\;\;\;\;c \cdot \left(j \cdot \left(t - b \cdot \frac{z}{j}\right)\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-271}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 3.2 \cdot 10^{-54}:\\
\;\;\;\;b \cdot \left(c \cdot \left(t \cdot \frac{j}{b} - z\right)\right)\\
\mathbf{elif}\;y \leq 3.6 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.00000000000000011e32 or 3.60000000000000014e64 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -2.00000000000000011e32 < y < -8.7999999999999997e-241 or 3.19999999999999998e-54 < y < 3.60000000000000014e64Initial program 84.3%
+-commutative84.3%
fma-define85.9%
*-commutative85.9%
*-commutative85.9%
cancel-sign-sub-inv85.9%
cancel-sign-sub85.9%
sub-neg85.9%
sub-neg85.9%
*-commutative85.9%
fma-neg85.9%
*-commutative85.9%
distribute-rgt-neg-out85.9%
remove-double-neg85.9%
*-commutative85.9%
*-commutative85.9%
Simplified85.9%
Taylor expanded in t around inf 63.8%
+-commutative63.8%
mul-1-neg63.8%
unsub-neg63.8%
*-commutative63.8%
Simplified63.8%
if -8.7999999999999997e-241 < y < 8.79999999999999987e-305Initial program 77.5%
+-commutative77.5%
fma-define77.5%
*-commutative77.5%
*-commutative77.5%
cancel-sign-sub-inv77.5%
cancel-sign-sub77.5%
sub-neg77.5%
sub-neg77.5%
*-commutative77.5%
fma-neg77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
remove-double-neg77.5%
*-commutative77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around inf 59.9%
Taylor expanded in j around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-/l*64.3%
Simplified64.3%
if 8.79999999999999987e-305 < y < 7.50000000000000031e-271Initial program 89.4%
Taylor expanded in a around -inf 66.8%
Taylor expanded in a around inf 66.8%
if 7.50000000000000031e-271 < y < 3.19999999999999998e-54Initial program 89.0%
+-commutative89.0%
fma-define89.0%
*-commutative89.0%
*-commutative89.0%
cancel-sign-sub-inv89.0%
cancel-sign-sub89.0%
sub-neg89.0%
sub-neg89.0%
*-commutative89.0%
fma-neg89.0%
*-commutative89.0%
distribute-rgt-neg-out89.0%
remove-double-neg89.0%
*-commutative89.0%
*-commutative89.0%
Simplified89.0%
Taylor expanded in c around inf 45.5%
Taylor expanded in b around inf 47.4%
mul-1-neg47.4%
+-commutative47.4%
unsub-neg47.4%
associate-/l*47.5%
associate-/l*49.4%
*-commutative49.4%
Simplified49.4%
Taylor expanded in c around 0 47.5%
*-commutative47.5%
associate-/l*49.5%
Simplified49.5%
Final simplification63.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b))))
(t_2 (* t (- (* c j) (* x a))))
(t_3 (* y (- (* x z) (* i j)))))
(if (<= y -2.45e+32)
t_3
(if (<= y -7.8e-249)
t_2
(if (<= y 1.12e-167)
t_1
(if (<= y 1.4e-129)
(* a (- (* b i) (* x t)))
(if (<= y 6.5e-25) t_1 (if (<= y 1.1e+66) t_2 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 = c * ((t * j) - (z * b));
double t_2 = t * ((c * j) - (x * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.45e+32) {
tmp = t_3;
} else if (y <= -7.8e-249) {
tmp = t_2;
} else if (y <= 1.12e-167) {
tmp = t_1;
} else if (y <= 1.4e-129) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 6.5e-25) {
tmp = t_1;
} else if (y <= 1.1e+66) {
tmp = t_2;
} 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 = c * ((t * j) - (z * b))
t_2 = t * ((c * j) - (x * a))
t_3 = y * ((x * z) - (i * j))
if (y <= (-2.45d+32)) then
tmp = t_3
else if (y <= (-7.8d-249)) then
tmp = t_2
else if (y <= 1.12d-167) then
tmp = t_1
else if (y <= 1.4d-129) then
tmp = a * ((b * i) - (x * t))
else if (y <= 6.5d-25) then
tmp = t_1
else if (y <= 1.1d+66) then
tmp = t_2
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 = c * ((t * j) - (z * b));
double t_2 = t * ((c * j) - (x * a));
double t_3 = y * ((x * z) - (i * j));
double tmp;
if (y <= -2.45e+32) {
tmp = t_3;
} else if (y <= -7.8e-249) {
tmp = t_2;
} else if (y <= 1.12e-167) {
tmp = t_1;
} else if (y <= 1.4e-129) {
tmp = a * ((b * i) - (x * t));
} else if (y <= 6.5e-25) {
tmp = t_1;
} else if (y <= 1.1e+66) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = t * ((c * j) - (x * a)) t_3 = y * ((x * z) - (i * j)) tmp = 0 if y <= -2.45e+32: tmp = t_3 elif y <= -7.8e-249: tmp = t_2 elif y <= 1.12e-167: tmp = t_1 elif y <= 1.4e-129: tmp = a * ((b * i) - (x * t)) elif y <= 6.5e-25: tmp = t_1 elif y <= 1.1e+66: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_3 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -2.45e+32) tmp = t_3; elseif (y <= -7.8e-249) tmp = t_2; elseif (y <= 1.12e-167) tmp = t_1; elseif (y <= 1.4e-129) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (y <= 6.5e-25) tmp = t_1; elseif (y <= 1.1e+66) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); t_2 = t * ((c * j) - (x * a)); t_3 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -2.45e+32) tmp = t_3; elseif (y <= -7.8e-249) tmp = t_2; elseif (y <= 1.12e-167) tmp = t_1; elseif (y <= 1.4e-129) tmp = a * ((b * i) - (x * t)); elseif (y <= 6.5e-25) tmp = t_1; elseif (y <= 1.1e+66) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.45e+32], t$95$3, If[LessEqual[y, -7.8e-249], t$95$2, If[LessEqual[y, 1.12e-167], t$95$1, If[LessEqual[y, 1.4e-129], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.5e-25], t$95$1, If[LessEqual[y, 1.1e+66], t$95$2, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_3 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -2.45 \cdot 10^{+32}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -7.8 \cdot 10^{-249}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.12 \cdot 10^{-167}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.4 \cdot 10^{-129}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;y \leq 6.5 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+66}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -2.4500000000000001e32 or 1.0999999999999999e66 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -2.4500000000000001e32 < y < -7.7999999999999998e-249 or 6.5e-25 < y < 1.0999999999999999e66Initial program 85.9%
+-commutative85.9%
fma-define87.5%
*-commutative87.5%
*-commutative87.5%
cancel-sign-sub-inv87.5%
cancel-sign-sub87.5%
sub-neg87.5%
sub-neg87.5%
*-commutative87.5%
fma-neg87.5%
*-commutative87.5%
distribute-rgt-neg-out87.5%
remove-double-neg87.5%
*-commutative87.5%
*-commutative87.5%
Simplified87.5%
Taylor expanded in t around inf 62.3%
+-commutative62.3%
mul-1-neg62.3%
unsub-neg62.3%
*-commutative62.3%
Simplified62.3%
if -7.7999999999999998e-249 < y < 1.1200000000000001e-167 or 1.4e-129 < y < 6.5e-25Initial program 83.3%
+-commutative83.3%
fma-define83.3%
*-commutative83.3%
*-commutative83.3%
cancel-sign-sub-inv83.3%
cancel-sign-sub83.3%
sub-neg83.3%
sub-neg83.3%
*-commutative83.3%
fma-neg83.3%
*-commutative83.3%
distribute-rgt-neg-out83.3%
remove-double-neg83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in c around inf 55.1%
if 1.1200000000000001e-167 < y < 1.4e-129Initial program 91.9%
Taylor expanded in a around -inf 91.4%
Taylor expanded in a around inf 60.0%
Final simplification63.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* a (- (* b i) (* x t)))))
(if (<= a -1.5e+119)
t_2
(if (<= a -1.3e+35)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= a -4.8e+26)
t_2
(if (<= a 0.0068) (+ t_1 (* z (- (* x y) (* b c)))) (+ t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.5e+119) {
tmp = t_2;
} else if (a <= -1.3e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -4.8e+26) {
tmp = t_2;
} else if (a <= 0.0068) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = a * ((b * i) - (x * t))
if (a <= (-1.5d+119)) then
tmp = t_2
else if (a <= (-1.3d+35)) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (a <= (-4.8d+26)) then
tmp = t_2
else if (a <= 0.0068d0) then
tmp = t_1 + (z * ((x * y) - (b * c)))
else
tmp = t_1 + t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = a * ((b * i) - (x * t));
double tmp;
if (a <= -1.5e+119) {
tmp = t_2;
} else if (a <= -1.3e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -4.8e+26) {
tmp = t_2;
} else if (a <= 0.0068) {
tmp = t_1 + (z * ((x * y) - (b * c)));
} else {
tmp = t_1 + t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = a * ((b * i) - (x * t)) tmp = 0 if a <= -1.5e+119: tmp = t_2 elif a <= -1.3e+35: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif a <= -4.8e+26: tmp = t_2 elif a <= 0.0068: tmp = t_1 + (z * ((x * y) - (b * c))) else: tmp = t_1 + t_2 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(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -1.5e+119) tmp = t_2; elseif (a <= -1.3e+35) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (a <= -4.8e+26) tmp = t_2; elseif (a <= 0.0068) tmp = Float64(t_1 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(t_1 + t_2); 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 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -1.5e+119) tmp = t_2; elseif (a <= -1.3e+35) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (a <= -4.8e+26) tmp = t_2; elseif (a <= 0.0068) tmp = t_1 + (z * ((x * y) - (b * c))); else tmp = t_1 + t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -1.5e+119], t$95$2, If[LessEqual[a, -1.3e+35], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e+26], t$95$2, If[LessEqual[a, 0.0068], N[(t$95$1 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + t$95$2), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -1.5 \cdot 10^{+119}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.3 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{+26}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq 0.0068:\\
\;\;\;\;t\_1 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + t\_2\\
\end{array}
\end{array}
if a < -1.50000000000000001e119 or -1.30000000000000003e35 < a < -4.80000000000000009e26Initial program 63.5%
Taylor expanded in a around -inf 64.0%
Taylor expanded in a around inf 74.0%
if -1.50000000000000001e119 < a < -1.30000000000000003e35Initial program 53.5%
+-commutative53.5%
fma-define61.2%
*-commutative61.2%
*-commutative61.2%
cancel-sign-sub-inv61.2%
cancel-sign-sub61.2%
sub-neg61.2%
sub-neg61.2%
*-commutative61.2%
fma-neg61.2%
*-commutative61.2%
distribute-rgt-neg-out61.2%
remove-double-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in t around 0 61.4%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*69.1%
distribute-rgt-in76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 84.5%
*-commutative84.5%
associate-*l*84.5%
*-commutative84.5%
Simplified84.5%
if -4.80000000000000009e26 < a < 0.00679999999999999962Initial program 80.9%
Taylor expanded in z around inf 75.7%
*-commutative75.7%
*-commutative75.7%
Simplified75.7%
if 0.00679999999999999962 < a Initial program 66.8%
Taylor expanded in a around -inf 62.8%
Final simplification72.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -6.6e+119)
t_1
(if (<= a -1.55e+35)
(- (* y (- (* x z) (* i j))) (* c (* z b)))
(if (<= a -1.8e+24)
t_1
(if (<= a 2.65e+32)
(+ (* j (- (* t c) (* y i))) (* z (- (* x y) (* b c))))
(* y (- (* x z) (+ (* i j) (/ (* a (* x t)) y))))))))))
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 tmp;
if (a <= -6.6e+119) {
tmp = t_1;
} else if (a <= -1.55e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -1.8e+24) {
tmp = t_1;
} else if (a <= 2.65e+32) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
}
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) - (x * t))
if (a <= (-6.6d+119)) then
tmp = t_1
else if (a <= (-1.55d+35)) then
tmp = (y * ((x * z) - (i * j))) - (c * (z * b))
else if (a <= (-1.8d+24)) then
tmp = t_1
else if (a <= 2.65d+32) then
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)))
else
tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)))
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 tmp;
if (a <= -6.6e+119) {
tmp = t_1;
} else if (a <= -1.55e+35) {
tmp = (y * ((x * z) - (i * j))) - (c * (z * b));
} else if (a <= -1.8e+24) {
tmp = t_1;
} else if (a <= 2.65e+32) {
tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c)));
} else {
tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -6.6e+119: tmp = t_1 elif a <= -1.55e+35: tmp = (y * ((x * z) - (i * j))) - (c * (z * b)) elif a <= -1.8e+24: tmp = t_1 elif a <= 2.65e+32: tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))) else: tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -6.6e+119) tmp = t_1; elseif (a <= -1.55e+35) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) - Float64(c * Float64(z * b))); elseif (a <= -1.8e+24) tmp = t_1; elseif (a <= 2.65e+32) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); else tmp = Float64(y * Float64(Float64(x * z) - Float64(Float64(i * j) + Float64(Float64(a * Float64(x * t)) / y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -6.6e+119) tmp = t_1; elseif (a <= -1.55e+35) tmp = (y * ((x * z) - (i * j))) - (c * (z * b)); elseif (a <= -1.8e+24) tmp = t_1; elseif (a <= 2.65e+32) tmp = (j * ((t * c) - (y * i))) + (z * ((x * y) - (b * c))); else tmp = y * ((x * z) - ((i * j) + ((a * (x * t)) / y))); 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]}, If[LessEqual[a, -6.6e+119], t$95$1, If[LessEqual[a, -1.55e+35], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.8e+24], t$95$1, If[LessEqual[a, 2.65e+32], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(N[(x * z), $MachinePrecision] - N[(N[(i * j), $MachinePrecision] + N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -6.6 \cdot 10^{+119}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.55 \cdot 10^{+35}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.65 \cdot 10^{+32}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z - \left(i \cdot j + \frac{a \cdot \left(x \cdot t\right)}{y}\right)\right)\\
\end{array}
\end{array}
if a < -6.6000000000000004e119 or -1.54999999999999993e35 < a < -1.79999999999999992e24Initial program 63.5%
Taylor expanded in a around -inf 64.0%
Taylor expanded in a around inf 74.0%
if -6.6000000000000004e119 < a < -1.54999999999999993e35Initial program 53.5%
+-commutative53.5%
fma-define61.2%
*-commutative61.2%
*-commutative61.2%
cancel-sign-sub-inv61.2%
cancel-sign-sub61.2%
sub-neg61.2%
sub-neg61.2%
*-commutative61.2%
fma-neg61.2%
*-commutative61.2%
distribute-rgt-neg-out61.2%
remove-double-neg61.2%
*-commutative61.2%
*-commutative61.2%
Simplified61.2%
Taylor expanded in t around 0 61.4%
associate-*r*61.4%
associate-*r*61.4%
*-commutative61.4%
associate-*r*69.1%
distribute-rgt-in76.8%
+-commutative76.8%
mul-1-neg76.8%
unsub-neg76.8%
*-commutative76.8%
*-commutative76.8%
Simplified76.8%
Taylor expanded in c around inf 84.5%
*-commutative84.5%
associate-*l*84.5%
*-commutative84.5%
Simplified84.5%
if -1.79999999999999992e24 < a < 2.65e32Initial program 81.1%
Taylor expanded in z around inf 74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
if 2.65e32 < a Initial program 64.4%
+-commutative64.4%
fma-define66.3%
*-commutative66.3%
*-commutative66.3%
cancel-sign-sub-inv66.3%
cancel-sign-sub66.3%
sub-neg66.3%
sub-neg66.3%
*-commutative66.3%
fma-neg66.3%
*-commutative66.3%
distribute-rgt-neg-out66.3%
remove-double-neg66.3%
*-commutative66.3%
*-commutative66.3%
Simplified66.3%
Taylor expanded in y around -inf 59.2%
Simplified57.5%
Taylor expanded in x around inf 59.9%
associate-*r/59.9%
associate-*r*59.9%
mul-1-neg59.9%
Simplified59.9%
Final simplification71.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -1.34e+166)
t_1
(if (<= t -3.7e-256)
(* (* y j) (- i))
(if (<= t 1.8e-292)
(* z (* c (- b)))
(if (<= t 1.15e-16)
(* y (* x z))
(if (<= t 6.2e+97) (* c (* 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 = c * (t * j);
double tmp;
if (t <= -1.34e+166) {
tmp = t_1;
} else if (t <= -3.7e-256) {
tmp = (y * j) * -i;
} else if (t <= 1.8e-292) {
tmp = z * (c * -b);
} else if (t <= 1.15e-16) {
tmp = y * (x * z);
} else if (t <= 6.2e+97) {
tmp = c * (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 = c * (t * j)
if (t <= (-1.34d+166)) then
tmp = t_1
else if (t <= (-3.7d-256)) then
tmp = (y * j) * -i
else if (t <= 1.8d-292) then
tmp = z * (c * -b)
else if (t <= 1.15d-16) then
tmp = y * (x * z)
else if (t <= 6.2d+97) then
tmp = c * (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 = c * (t * j);
double tmp;
if (t <= -1.34e+166) {
tmp = t_1;
} else if (t <= -3.7e-256) {
tmp = (y * j) * -i;
} else if (t <= 1.8e-292) {
tmp = z * (c * -b);
} else if (t <= 1.15e-16) {
tmp = y * (x * z);
} else if (t <= 6.2e+97) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -1.34e+166: tmp = t_1 elif t <= -3.7e-256: tmp = (y * j) * -i elif t <= 1.8e-292: tmp = z * (c * -b) elif t <= 1.15e-16: tmp = y * (x * z) elif t <= 6.2e+97: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -1.34e+166) tmp = t_1; elseif (t <= -3.7e-256) tmp = Float64(Float64(y * j) * Float64(-i)); elseif (t <= 1.8e-292) tmp = Float64(z * Float64(c * Float64(-b))); elseif (t <= 1.15e-16) tmp = Float64(y * Float64(x * z)); elseif (t <= 6.2e+97) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -1.34e+166) tmp = t_1; elseif (t <= -3.7e-256) tmp = (y * j) * -i; elseif (t <= 1.8e-292) tmp = z * (c * -b); elseif (t <= 1.15e-16) tmp = y * (x * z); elseif (t <= 6.2e+97) tmp = c * (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[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.34e+166], t$95$1, If[LessEqual[t, -3.7e-256], N[(N[(y * j), $MachinePrecision] * (-i)), $MachinePrecision], If[LessEqual[t, 1.8e-292], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.15e-16], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+97], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -1.34 \cdot 10^{+166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -3.7 \cdot 10^{-256}:\\
\;\;\;\;\left(y \cdot j\right) \cdot \left(-i\right)\\
\mathbf{elif}\;t \leq 1.8 \cdot 10^{-292}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;t \leq 1.15 \cdot 10^{-16}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+97}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -1.34000000000000007e166 or 6.19999999999999962e97 < t Initial program 65.9%
+-commutative65.9%
fma-define67.1%
*-commutative67.1%
*-commutative67.1%
cancel-sign-sub-inv67.1%
cancel-sign-sub67.1%
sub-neg67.1%
sub-neg67.1%
*-commutative67.1%
fma-neg68.4%
*-commutative68.4%
distribute-rgt-neg-out68.4%
remove-double-neg68.4%
*-commutative68.4%
*-commutative68.4%
Simplified68.4%
Taylor expanded in c around inf 48.2%
Taylor expanded in j around inf 40.8%
*-commutative40.8%
Simplified40.8%
if -1.34000000000000007e166 < t < -3.70000000000000029e-256Initial program 77.4%
Taylor expanded in i around inf 45.6%
*-commutative45.6%
associate-*r*47.0%
Simplified47.0%
Taylor expanded in y around inf 32.6%
associate-*r*32.6%
neg-mul-132.6%
*-commutative32.6%
Simplified32.6%
if -3.70000000000000029e-256 < t < 1.8000000000000001e-292Initial program 79.3%
+-commutative79.3%
fma-define79.3%
*-commutative79.3%
*-commutative79.3%
cancel-sign-sub-inv79.3%
cancel-sign-sub79.3%
sub-neg79.3%
sub-neg79.3%
*-commutative79.3%
fma-neg79.3%
*-commutative79.3%
distribute-rgt-neg-out79.3%
remove-double-neg79.3%
*-commutative79.3%
*-commutative79.3%
Simplified79.3%
Taylor expanded in c around inf 51.3%
Taylor expanded in b around inf 51.4%
mul-1-neg51.4%
+-commutative51.4%
unsub-neg51.4%
associate-/l*51.4%
associate-/l*51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in b around inf 51.4%
mul-1-neg51.4%
associate-*r*58.1%
Simplified58.1%
if 1.8000000000000001e-292 < t < 1.15e-16Initial program 79.4%
+-commutative79.4%
fma-define79.4%
*-commutative79.4%
*-commutative79.4%
cancel-sign-sub-inv79.4%
cancel-sign-sub79.4%
sub-neg79.4%
sub-neg79.4%
*-commutative79.4%
fma-neg79.4%
*-commutative79.4%
distribute-rgt-neg-out79.4%
remove-double-neg79.4%
*-commutative79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in y around inf 53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in z around inf 37.8%
*-commutative37.8%
Simplified37.8%
if 1.15e-16 < t < 6.19999999999999962e97Initial program 73.9%
+-commutative73.9%
fma-define73.9%
*-commutative73.9%
*-commutative73.9%
cancel-sign-sub-inv73.9%
cancel-sign-sub73.9%
sub-neg73.9%
sub-neg73.9%
*-commutative73.9%
fma-neg73.9%
*-commutative73.9%
distribute-rgt-neg-out73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in c around inf 43.2%
Taylor expanded in j around 0 36.4%
neg-mul-136.4%
distribute-lft-neg-in36.4%
*-commutative36.4%
Simplified36.4%
Final simplification38.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= i -9.8e+214)
(* a (* b i))
(if (<= i -4.6e-7)
(* b (* c (- z)))
(if (<= i 2.75e-263)
t_1
(if (<= i 1.1e-175)
(* c (* z (- b)))
(if (<= i 2.85e-77) t_1 (* y (* i (- j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (i <= -9.8e+214) {
tmp = a * (b * i);
} else if (i <= -4.6e-7) {
tmp = b * (c * -z);
} else if (i <= 2.75e-263) {
tmp = t_1;
} else if (i <= 1.1e-175) {
tmp = c * (z * -b);
} else if (i <= 2.85e-77) {
tmp = t_1;
} else {
tmp = y * (i * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (i <= (-9.8d+214)) then
tmp = a * (b * i)
else if (i <= (-4.6d-7)) then
tmp = b * (c * -z)
else if (i <= 2.75d-263) then
tmp = t_1
else if (i <= 1.1d-175) then
tmp = c * (z * -b)
else if (i <= 2.85d-77) then
tmp = t_1
else
tmp = y * (i * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (i <= -9.8e+214) {
tmp = a * (b * i);
} else if (i <= -4.6e-7) {
tmp = b * (c * -z);
} else if (i <= 2.75e-263) {
tmp = t_1;
} else if (i <= 1.1e-175) {
tmp = c * (z * -b);
} else if (i <= 2.85e-77) {
tmp = t_1;
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if i <= -9.8e+214: tmp = a * (b * i) elif i <= -4.6e-7: tmp = b * (c * -z) elif i <= 2.75e-263: tmp = t_1 elif i <= 1.1e-175: tmp = c * (z * -b) elif i <= 2.85e-77: tmp = t_1 else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (i <= -9.8e+214) tmp = Float64(a * Float64(b * i)); elseif (i <= -4.6e-7) tmp = Float64(b * Float64(c * Float64(-z))); elseif (i <= 2.75e-263) tmp = t_1; elseif (i <= 1.1e-175) tmp = Float64(c * Float64(z * Float64(-b))); elseif (i <= 2.85e-77) tmp = t_1; else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (i <= -9.8e+214) tmp = a * (b * i); elseif (i <= -4.6e-7) tmp = b * (c * -z); elseif (i <= 2.75e-263) tmp = t_1; elseif (i <= 1.1e-175) tmp = c * (z * -b); elseif (i <= 2.85e-77) tmp = t_1; else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -9.8e+214], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.6e-7], N[(b * N[(c * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.75e-263], t$95$1, If[LessEqual[i, 1.1e-175], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.85e-77], t$95$1, N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;i \leq -9.8 \cdot 10^{+214}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq -4.6 \cdot 10^{-7}:\\
\;\;\;\;b \cdot \left(c \cdot \left(-z\right)\right)\\
\mathbf{elif}\;i \leq 2.75 \cdot 10^{-263}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.1 \cdot 10^{-175}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;i \leq 2.85 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -9.80000000000000065e214Initial program 52.1%
Taylor expanded in i around inf 64.8%
*-commutative64.8%
associate-*r*64.6%
Simplified64.6%
Taylor expanded in b around inf 60.6%
Taylor expanded in b around inf 49.2%
if -9.80000000000000065e214 < i < -4.5999999999999999e-7Initial program 71.3%
+-commutative71.3%
fma-define74.2%
*-commutative74.2%
*-commutative74.2%
cancel-sign-sub-inv74.2%
cancel-sign-sub74.2%
sub-neg74.2%
sub-neg74.2%
*-commutative74.2%
fma-neg74.2%
*-commutative74.2%
distribute-rgt-neg-out74.2%
remove-double-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in c around inf 52.6%
Taylor expanded in b around inf 52.5%
mul-1-neg52.5%
+-commutative52.5%
unsub-neg52.5%
associate-/l*55.3%
associate-/l*55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in j around 0 39.0%
neg-mul-139.0%
distribute-lft-neg-in39.0%
Simplified39.0%
if -4.5999999999999999e-7 < i < 2.74999999999999986e-263 or 1.1e-175 < i < 2.84999999999999991e-77Initial program 80.7%
+-commutative80.7%
fma-define81.7%
*-commutative81.7%
*-commutative81.7%
cancel-sign-sub-inv81.7%
cancel-sign-sub81.7%
sub-neg81.7%
sub-neg81.7%
*-commutative81.7%
fma-neg81.7%
*-commutative81.7%
distribute-rgt-neg-out81.7%
remove-double-neg81.7%
*-commutative81.7%
*-commutative81.7%
Simplified81.7%
Taylor expanded in y around inf 39.9%
+-commutative39.9%
mul-1-neg39.9%
unsub-neg39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in z around inf 36.1%
*-commutative36.1%
Simplified36.1%
if 2.74999999999999986e-263 < i < 1.1e-175Initial program 79.2%
+-commutative79.2%
fma-define79.2%
*-commutative79.2%
*-commutative79.2%
cancel-sign-sub-inv79.2%
cancel-sign-sub79.2%
sub-neg79.2%
sub-neg79.2%
*-commutative79.2%
fma-neg79.2%
*-commutative79.2%
distribute-rgt-neg-out79.2%
remove-double-neg79.2%
*-commutative79.2%
*-commutative79.2%
Simplified79.2%
Taylor expanded in c around inf 63.6%
Taylor expanded in j around 0 48.1%
neg-mul-148.1%
distribute-lft-neg-in48.1%
*-commutative48.1%
Simplified48.1%
if 2.84999999999999991e-77 < i Initial program 72.2%
+-commutative72.2%
fma-define72.2%
*-commutative72.2%
*-commutative72.2%
cancel-sign-sub-inv72.2%
cancel-sign-sub72.2%
sub-neg72.2%
sub-neg72.2%
*-commutative72.2%
fma-neg73.5%
*-commutative73.5%
distribute-rgt-neg-out73.5%
remove-double-neg73.5%
*-commutative73.5%
*-commutative73.5%
Simplified73.5%
Taylor expanded in y around inf 44.8%
+-commutative44.8%
mul-1-neg44.8%
unsub-neg44.8%
*-commutative44.8%
Simplified44.8%
Taylor expanded in z around 0 33.0%
mul-1-neg33.0%
distribute-lft-neg-out33.0%
*-commutative33.0%
Simplified33.0%
Final simplification37.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= y -1.65e-27)
t_1
(if (<= y -7.8e-247)
(* c (* t j))
(if (<= y 3.3e-292)
(* a (* b i))
(if (<= y 0.00033)
(* z (* c (- b)))
(if (<= y 4.3e+133) (* j (* y (- i))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (y <= -1.65e-27) {
tmp = t_1;
} else if (y <= -7.8e-247) {
tmp = c * (t * j);
} else if (y <= 3.3e-292) {
tmp = a * (b * i);
} else if (y <= 0.00033) {
tmp = z * (c * -b);
} else if (y <= 4.3e+133) {
tmp = j * (y * -i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (y <= (-1.65d-27)) then
tmp = t_1
else if (y <= (-7.8d-247)) then
tmp = c * (t * j)
else if (y <= 3.3d-292) then
tmp = a * (b * i)
else if (y <= 0.00033d0) then
tmp = z * (c * -b)
else if (y <= 4.3d+133) then
tmp = j * (y * -i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (y <= -1.65e-27) {
tmp = t_1;
} else if (y <= -7.8e-247) {
tmp = c * (t * j);
} else if (y <= 3.3e-292) {
tmp = a * (b * i);
} else if (y <= 0.00033) {
tmp = z * (c * -b);
} else if (y <= 4.3e+133) {
tmp = j * (y * -i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if y <= -1.65e-27: tmp = t_1 elif y <= -7.8e-247: tmp = c * (t * j) elif y <= 3.3e-292: tmp = a * (b * i) elif y <= 0.00033: tmp = z * (c * -b) elif y <= 4.3e+133: tmp = j * (y * -i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (y <= -1.65e-27) tmp = t_1; elseif (y <= -7.8e-247) tmp = Float64(c * Float64(t * j)); elseif (y <= 3.3e-292) tmp = Float64(a * Float64(b * i)); elseif (y <= 0.00033) tmp = Float64(z * Float64(c * Float64(-b))); elseif (y <= 4.3e+133) tmp = Float64(j * Float64(y * Float64(-i))); 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); tmp = 0.0; if (y <= -1.65e-27) tmp = t_1; elseif (y <= -7.8e-247) tmp = c * (t * j); elseif (y <= 3.3e-292) tmp = a * (b * i); elseif (y <= 0.00033) tmp = z * (c * -b); elseif (y <= 4.3e+133) tmp = j * (y * -i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.65e-27], t$95$1, If[LessEqual[y, -7.8e-247], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e-292], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 0.00033], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.3e+133], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;y \leq -1.65 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -7.8 \cdot 10^{-247}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-292}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 0.00033:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 4.3 \cdot 10^{+133}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.64999999999999999e-27 or 4.29999999999999994e133 < y Initial program 61.5%
+-commutative61.5%
fma-define62.5%
*-commutative62.5%
*-commutative62.5%
cancel-sign-sub-inv62.5%
cancel-sign-sub62.5%
sub-neg62.5%
sub-neg62.5%
*-commutative62.5%
fma-neg63.4%
*-commutative63.4%
distribute-rgt-neg-out63.4%
remove-double-neg63.4%
*-commutative63.4%
*-commutative63.4%
Simplified63.4%
Taylor expanded in y around inf 65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in z around inf 40.7%
*-commutative40.7%
Simplified40.7%
if -1.64999999999999999e-27 < y < -7.8000000000000006e-247Initial program 88.9%
+-commutative88.9%
fma-define88.9%
*-commutative88.9%
*-commutative88.9%
cancel-sign-sub-inv88.9%
cancel-sign-sub88.9%
sub-neg88.9%
sub-neg88.9%
*-commutative88.9%
fma-neg88.9%
*-commutative88.9%
distribute-rgt-neg-out88.9%
remove-double-neg88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in c around inf 46.4%
Taylor expanded in j around inf 30.3%
*-commutative30.3%
Simplified30.3%
if -7.8000000000000006e-247 < y < 3.29999999999999995e-292Initial program 74.4%
Taylor expanded in i around inf 58.3%
*-commutative58.3%
associate-*r*50.2%
Simplified50.2%
Taylor expanded in b around inf 46.0%
Taylor expanded in b around inf 44.9%
if 3.29999999999999995e-292 < y < 3.3e-4Initial program 88.0%
+-commutative88.0%
fma-define88.0%
*-commutative88.0%
*-commutative88.0%
cancel-sign-sub-inv88.0%
cancel-sign-sub88.0%
sub-neg88.0%
sub-neg88.0%
*-commutative88.0%
fma-neg88.0%
*-commutative88.0%
distribute-rgt-neg-out88.0%
remove-double-neg88.0%
*-commutative88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in c around inf 46.2%
Taylor expanded in b around inf 47.7%
mul-1-neg47.7%
+-commutative47.7%
unsub-neg47.7%
associate-/l*47.7%
associate-/l*49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in b around inf 33.8%
mul-1-neg33.8%
associate-*r*35.3%
Simplified35.3%
if 3.3e-4 < y < 4.29999999999999994e133Initial program 72.1%
+-commutative72.1%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
cancel-sign-sub-inv75.3%
cancel-sign-sub75.3%
sub-neg75.3%
sub-neg75.3%
*-commutative75.3%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in t around 0 58.6%
associate-*r*58.5%
associate-*r*58.5%
*-commutative58.5%
associate-*r*61.6%
distribute-rgt-in64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in j around inf 41.7%
mul-1-neg41.7%
associate-*r*41.6%
*-commutative41.6%
associate-*r*47.7%
distribute-rgt-neg-out47.7%
distribute-rgt-neg-in47.7%
Simplified47.7%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= j -3e-72)
(+ t_2 (* z (- (* x y) (* b c))))
(if (<= j 9.5e+18) (- (- (* c (* t j)) t_1) (* b (* z c))) (- t_2 t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3e-72) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else if (j <= 9.5e+18) {
tmp = ((c * (t * j)) - t_1) - (b * (z * c));
} else {
tmp = t_2 - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * ((t * a) - (y * z))
t_2 = j * ((t * c) - (y * i))
if (j <= (-3d-72)) then
tmp = t_2 + (z * ((x * y) - (b * c)))
else if (j <= 9.5d+18) then
tmp = ((c * (t * j)) - t_1) - (b * (z * c))
else
tmp = t_2 - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if (j <= -3e-72) {
tmp = t_2 + (z * ((x * y) - (b * c)));
} else if (j <= 9.5e+18) {
tmp = ((c * (t * j)) - t_1) - (b * (z * c));
} else {
tmp = t_2 - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if j <= -3e-72: tmp = t_2 + (z * ((x * y) - (b * c))) elif j <= 9.5e+18: tmp = ((c * (t * j)) - t_1) - (b * (z * c)) else: tmp = t_2 - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -3e-72) tmp = Float64(t_2 + Float64(z * Float64(Float64(x * y) - Float64(b * c)))); elseif (j <= 9.5e+18) tmp = Float64(Float64(Float64(c * Float64(t * j)) - t_1) - Float64(b * Float64(z * c))); else tmp = Float64(t_2 - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -3e-72) tmp = t_2 + (z * ((x * y) - (b * c))); elseif (j <= 9.5e+18) tmp = ((c * (t * j)) - t_1) - (b * (z * c)); else tmp = t_2 - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -3e-72], N[(t$95$2 + N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.5e+18], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$2 - t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -3 \cdot 10^{-72}:\\
\;\;\;\;t\_2 + z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{+18}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - t\_1\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2 - t\_1\\
\end{array}
\end{array}
if j < -3e-72Initial program 73.1%
Taylor expanded in z around inf 74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
if -3e-72 < j < 9.5e18Initial program 72.4%
+-commutative72.4%
fma-define72.4%
*-commutative72.4%
*-commutative72.4%
cancel-sign-sub-inv72.4%
cancel-sign-sub72.4%
sub-neg72.4%
sub-neg72.4%
*-commutative72.4%
fma-neg72.4%
*-commutative72.4%
distribute-rgt-neg-out72.4%
remove-double-neg72.4%
*-commutative72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in i around 0 72.4%
if 9.5e18 < j Initial program 78.4%
Taylor expanded in b around -inf 71.9%
associate-*r*71.9%
neg-mul-171.9%
distribute-lft-out--71.9%
associate-/l*75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in b around 0 70.8%
Final simplification72.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* c j) (* x a)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -9e+31)
t_2
(if (<= y -1.75e-248)
t_1
(if (<= y 1.85e-203)
(* c (- (* t j) (* z b)))
(if (<= y 3.3e+65) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -9e+31) {
tmp = t_2;
} else if (y <= -1.75e-248) {
tmp = t_1;
} else if (y <= 1.85e-203) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3.3e+65) {
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 = t * ((c * j) - (x * a))
t_2 = y * ((x * z) - (i * j))
if (y <= (-9d+31)) then
tmp = t_2
else if (y <= (-1.75d-248)) then
tmp = t_1
else if (y <= 1.85d-203) then
tmp = c * ((t * j) - (z * b))
else if (y <= 3.3d+65) 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 = t * ((c * j) - (x * a));
double t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -9e+31) {
tmp = t_2;
} else if (y <= -1.75e-248) {
tmp = t_1;
} else if (y <= 1.85e-203) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3.3e+65) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((c * j) - (x * a)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -9e+31: tmp = t_2 elif y <= -1.75e-248: tmp = t_1 elif y <= 1.85e-203: tmp = c * ((t * j) - (z * b)) elif y <= 3.3e+65: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(c * j) - Float64(x * a))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -9e+31) tmp = t_2; elseif (y <= -1.75e-248) tmp = t_1; elseif (y <= 1.85e-203) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 3.3e+65) 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 = t * ((c * j) - (x * a)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -9e+31) tmp = t_2; elseif (y <= -1.75e-248) tmp = t_1; elseif (y <= 1.85e-203) tmp = c * ((t * j) - (z * b)); elseif (y <= 3.3e+65) 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[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -9e+31], t$95$2, If[LessEqual[y, -1.75e-248], t$95$1, If[LessEqual[y, 1.85e-203], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e+65], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j - x \cdot a\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -9 \cdot 10^{+31}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -1.75 \cdot 10^{-248}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.85 \cdot 10^{-203}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -8.9999999999999992e31 or 3.30000000000000023e65 < y Initial program 60.2%
+-commutative60.2%
fma-define61.1%
*-commutative61.1%
*-commutative61.1%
cancel-sign-sub-inv61.1%
cancel-sign-sub61.1%
sub-neg61.1%
sub-neg61.1%
*-commutative61.1%
fma-neg62.0%
*-commutative62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in y around inf 69.2%
+-commutative69.2%
mul-1-neg69.2%
unsub-neg69.2%
*-commutative69.2%
Simplified69.2%
if -8.9999999999999992e31 < y < -1.74999999999999991e-248 or 1.85000000000000001e-203 < y < 3.30000000000000023e65Initial program 85.9%
+-commutative85.9%
fma-define86.9%
*-commutative86.9%
*-commutative86.9%
cancel-sign-sub-inv86.9%
cancel-sign-sub86.9%
sub-neg86.9%
sub-neg86.9%
*-commutative86.9%
fma-neg86.9%
*-commutative86.9%
distribute-rgt-neg-out86.9%
remove-double-neg86.9%
*-commutative86.9%
*-commutative86.9%
Simplified86.9%
Taylor expanded in t around inf 54.8%
+-commutative54.8%
mul-1-neg54.8%
unsub-neg54.8%
*-commutative54.8%
Simplified54.8%
if -1.74999999999999991e-248 < y < 1.85000000000000001e-203Initial program 83.5%
+-commutative83.5%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
sub-neg83.5%
sub-neg83.5%
*-commutative83.5%
fma-neg83.5%
*-commutative83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in c around inf 58.2%
Final simplification61.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))) (t_2 (* i (- (* a b) (* y j)))))
(if (<= i -1.9e+174)
t_2
(if (<= i -1.45e-74)
t_1
(if (<= i 7.6e-249)
(* t (- (* c j) (* x a)))
(if (<= i 9.5e-134) 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 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.9e+174) {
tmp = t_2;
} else if (i <= -1.45e-74) {
tmp = t_1;
} else if (i <= 7.6e-249) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 9.5e-134) {
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 = c * ((t * j) - (z * b))
t_2 = i * ((a * b) - (y * j))
if (i <= (-1.9d+174)) then
tmp = t_2
else if (i <= (-1.45d-74)) then
tmp = t_1
else if (i <= 7.6d-249) then
tmp = t * ((c * j) - (x * a))
else if (i <= 9.5d-134) 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 = c * ((t * j) - (z * b));
double t_2 = i * ((a * b) - (y * j));
double tmp;
if (i <= -1.9e+174) {
tmp = t_2;
} else if (i <= -1.45e-74) {
tmp = t_1;
} else if (i <= 7.6e-249) {
tmp = t * ((c * j) - (x * a));
} else if (i <= 9.5e-134) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) t_2 = i * ((a * b) - (y * j)) tmp = 0 if i <= -1.9e+174: tmp = t_2 elif i <= -1.45e-74: tmp = t_1 elif i <= 7.6e-249: tmp = t * ((c * j) - (x * a)) elif i <= 9.5e-134: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) t_2 = Float64(i * Float64(Float64(a * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.9e+174) tmp = t_2; elseif (i <= -1.45e-74) tmp = t_1; elseif (i <= 7.6e-249) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (i <= 9.5e-134) 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 = c * ((t * j) - (z * b)); t_2 = i * ((a * b) - (y * j)); tmp = 0.0; if (i <= -1.9e+174) tmp = t_2; elseif (i <= -1.45e-74) tmp = t_1; elseif (i <= 7.6e-249) tmp = t * ((c * j) - (x * a)); elseif (i <= 9.5e-134) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.9e+174], t$95$2, If[LessEqual[i, -1.45e-74], t$95$1, If[LessEqual[i, 7.6e-249], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 9.5e-134], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
t_2 := i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.9 \cdot 10^{+174}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.45 \cdot 10^{-74}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 7.6 \cdot 10^{-249}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;i \leq 9.5 \cdot 10^{-134}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.9000000000000001e174 or 9.5000000000000008e-134 < i Initial program 69.8%
Taylor expanded in i around inf 54.0%
*-commutative54.0%
associate-*r*54.1%
Simplified54.1%
Taylor expanded in i around inf 52.6%
+-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
Simplified52.6%
if -1.9000000000000001e174 < i < -1.45e-74 or 7.6000000000000002e-249 < i < 9.5000000000000008e-134Initial program 75.2%
+-commutative75.2%
fma-define75.2%
*-commutative75.2%
*-commutative75.2%
cancel-sign-sub-inv75.2%
cancel-sign-sub75.2%
sub-neg75.2%
sub-neg75.2%
*-commutative75.2%
fma-neg75.2%
*-commutative75.2%
distribute-rgt-neg-out75.2%
remove-double-neg75.2%
*-commutative75.2%
*-commutative75.2%
Simplified75.2%
Taylor expanded in c around inf 51.8%
if -1.45e-74 < i < 7.6000000000000002e-249Initial program 80.8%
+-commutative80.8%
fma-define80.8%
*-commutative80.8%
*-commutative80.8%
cancel-sign-sub-inv80.8%
cancel-sign-sub80.8%
sub-neg80.8%
sub-neg80.8%
*-commutative80.8%
fma-neg80.8%
*-commutative80.8%
distribute-rgt-neg-out80.8%
remove-double-neg80.8%
*-commutative80.8%
*-commutative80.8%
Simplified80.8%
Taylor expanded in t around inf 58.1%
+-commutative58.1%
mul-1-neg58.1%
unsub-neg58.1%
*-commutative58.1%
Simplified58.1%
Final simplification53.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -8.5e-137)
t_2
(if (<= c 8.5e-298)
t_1
(if (<= c 9.2e-225) (* a (* b i)) (if (<= c 5.2e-109) 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);
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e-137) {
tmp = t_2;
} else if (c <= 8.5e-298) {
tmp = t_1;
} else if (c <= 9.2e-225) {
tmp = a * (b * i);
} else if (c <= 5.2e-109) {
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_2 = c * ((t * j) - (z * b))
if (c <= (-8.5d-137)) then
tmp = t_2
else if (c <= 8.5d-298) then
tmp = t_1
else if (c <= 9.2d-225) then
tmp = a * (b * i)
else if (c <= 5.2d-109) 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);
double t_2 = c * ((t * j) - (z * b));
double tmp;
if (c <= -8.5e-137) {
tmp = t_2;
} else if (c <= 8.5e-298) {
tmp = t_1;
} else if (c <= 9.2e-225) {
tmp = a * (b * i);
} else if (c <= 5.2e-109) {
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_2 = c * ((t * j) - (z * b)) tmp = 0 if c <= -8.5e-137: tmp = t_2 elif c <= 8.5e-298: tmp = t_1 elif c <= 9.2e-225: tmp = a * (b * i) elif c <= 5.2e-109: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) t_2 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -8.5e-137) tmp = t_2; elseif (c <= 8.5e-298) tmp = t_1; elseif (c <= 9.2e-225) tmp = Float64(a * Float64(b * i)); elseif (c <= 5.2e-109) 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_2 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -8.5e-137) tmp = t_2; elseif (c <= 8.5e-298) tmp = t_1; elseif (c <= 9.2e-225) tmp = a * (b * i); elseif (c <= 5.2e-109) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -8.5e-137], t$95$2, If[LessEqual[c, 8.5e-298], t$95$1, If[LessEqual[c, 9.2e-225], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.2e-109], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
t_2 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -8.5 \cdot 10^{-137}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 8.5 \cdot 10^{-298}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 9.2 \cdot 10^{-225}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;c \leq 5.2 \cdot 10^{-109}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -8.5000000000000001e-137 or 5.1999999999999997e-109 < c Initial program 72.8%
+-commutative72.8%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
cancel-sign-sub-inv73.4%
cancel-sign-sub73.4%
sub-neg73.4%
sub-neg73.4%
*-commutative73.4%
fma-neg73.4%
*-commutative73.4%
distribute-rgt-neg-out73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in c around inf 50.7%
if -8.5000000000000001e-137 < c < 8.49999999999999957e-298 or 9.1999999999999995e-225 < c < 5.1999999999999997e-109Initial program 77.2%
+-commutative77.2%
fma-define78.7%
*-commutative78.7%
*-commutative78.7%
cancel-sign-sub-inv78.7%
cancel-sign-sub78.7%
sub-neg78.7%
sub-neg78.7%
*-commutative78.7%
fma-neg78.7%
*-commutative78.7%
distribute-rgt-neg-out78.7%
remove-double-neg78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in y around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
*-commutative59.2%
Simplified59.2%
Taylor expanded in z around inf 38.9%
*-commutative38.9%
Simplified38.9%
if 8.49999999999999957e-298 < c < 9.1999999999999995e-225Initial program 73.8%
Taylor expanded in i around inf 68.9%
*-commutative68.9%
associate-*r*64.1%
Simplified64.1%
Taylor expanded in b around inf 49.4%
Taylor expanded in b around inf 40.1%
Final simplification46.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= y -2.75e-30)
t_1
(if (<= y -1.9e-246)
(* c (* t j))
(if (<= y 2.65e-292)
(* a (* b i))
(if (<= y 2.4e-14) (* z (* c (- 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 = y * (x * z);
double tmp;
if (y <= -2.75e-30) {
tmp = t_1;
} else if (y <= -1.9e-246) {
tmp = c * (t * j);
} else if (y <= 2.65e-292) {
tmp = a * (b * i);
} else if (y <= 2.4e-14) {
tmp = z * (c * -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 = y * (x * z)
if (y <= (-2.75d-30)) then
tmp = t_1
else if (y <= (-1.9d-246)) then
tmp = c * (t * j)
else if (y <= 2.65d-292) then
tmp = a * (b * i)
else if (y <= 2.4d-14) then
tmp = z * (c * -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 = y * (x * z);
double tmp;
if (y <= -2.75e-30) {
tmp = t_1;
} else if (y <= -1.9e-246) {
tmp = c * (t * j);
} else if (y <= 2.65e-292) {
tmp = a * (b * i);
} else if (y <= 2.4e-14) {
tmp = z * (c * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if y <= -2.75e-30: tmp = t_1 elif y <= -1.9e-246: tmp = c * (t * j) elif y <= 2.65e-292: tmp = a * (b * i) elif y <= 2.4e-14: tmp = z * (c * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (y <= -2.75e-30) tmp = t_1; elseif (y <= -1.9e-246) tmp = Float64(c * Float64(t * j)); elseif (y <= 2.65e-292) tmp = Float64(a * Float64(b * i)); elseif (y <= 2.4e-14) tmp = Float64(z * Float64(c * Float64(-b))); 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); tmp = 0.0; if (y <= -2.75e-30) tmp = t_1; elseif (y <= -1.9e-246) tmp = c * (t * j); elseif (y <= 2.65e-292) tmp = a * (b * i); elseif (y <= 2.4e-14) tmp = z * (c * -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[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.75e-30], t$95$1, If[LessEqual[y, -1.9e-246], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.65e-292], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.4e-14], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;y \leq -2.75 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.9 \cdot 10^{-246}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;y \leq 2.65 \cdot 10^{-292}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;y \leq 2.4 \cdot 10^{-14}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -2.74999999999999988e-30 or 2.4e-14 < y Initial program 64.8%
+-commutative64.8%
fma-define66.2%
*-commutative66.2%
*-commutative66.2%
cancel-sign-sub-inv66.2%
cancel-sign-sub66.2%
sub-neg66.2%
sub-neg66.2%
*-commutative66.2%
fma-neg66.9%
*-commutative66.9%
distribute-rgt-neg-out66.9%
remove-double-neg66.9%
*-commutative66.9%
*-commutative66.9%
Simplified66.9%
Taylor expanded in y around inf 63.8%
+-commutative63.8%
mul-1-neg63.8%
unsub-neg63.8%
*-commutative63.8%
Simplified63.8%
Taylor expanded in z around inf 36.6%
*-commutative36.6%
Simplified36.6%
if -2.74999999999999988e-30 < y < -1.89999999999999988e-246Initial program 88.9%
+-commutative88.9%
fma-define88.9%
*-commutative88.9%
*-commutative88.9%
cancel-sign-sub-inv88.9%
cancel-sign-sub88.9%
sub-neg88.9%
sub-neg88.9%
*-commutative88.9%
fma-neg88.9%
*-commutative88.9%
distribute-rgt-neg-out88.9%
remove-double-neg88.9%
*-commutative88.9%
*-commutative88.9%
Simplified88.9%
Taylor expanded in c around inf 46.4%
Taylor expanded in j around inf 30.3%
*-commutative30.3%
Simplified30.3%
if -1.89999999999999988e-246 < y < 2.6499999999999998e-292Initial program 74.4%
Taylor expanded in i around inf 58.3%
*-commutative58.3%
associate-*r*50.2%
Simplified50.2%
Taylor expanded in b around inf 46.0%
Taylor expanded in b around inf 44.9%
if 2.6499999999999998e-292 < y < 2.4e-14Initial program 87.4%
+-commutative87.4%
fma-define87.4%
*-commutative87.4%
*-commutative87.4%
cancel-sign-sub-inv87.4%
cancel-sign-sub87.4%
sub-neg87.4%
sub-neg87.4%
*-commutative87.4%
fma-neg87.4%
*-commutative87.4%
distribute-rgt-neg-out87.4%
remove-double-neg87.4%
*-commutative87.4%
*-commutative87.4%
Simplified87.4%
Taylor expanded in c around inf 46.7%
Taylor expanded in b around inf 48.3%
mul-1-neg48.3%
+-commutative48.3%
unsub-neg48.3%
associate-/l*48.3%
associate-/l*49.9%
*-commutative49.9%
Simplified49.9%
Taylor expanded in b around inf 35.5%
mul-1-neg35.5%
associate-*r*37.0%
Simplified37.0%
Final simplification36.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= x -6.3e+50)
t_1
(if (<= x -2.05e-109)
(* a (* b i))
(if (<= x 6.4e-35) (* 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 = x * (y * z);
double tmp;
if (x <= -6.3e+50) {
tmp = t_1;
} else if (x <= -2.05e-109) {
tmp = a * (b * i);
} else if (x <= 6.4e-35) {
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 = x * (y * z)
if (x <= (-6.3d+50)) then
tmp = t_1
else if (x <= (-2.05d-109)) then
tmp = a * (b * i)
else if (x <= 6.4d-35) 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 = x * (y * z);
double tmp;
if (x <= -6.3e+50) {
tmp = t_1;
} else if (x <= -2.05e-109) {
tmp = a * (b * i);
} else if (x <= 6.4e-35) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if x <= -6.3e+50: tmp = t_1 elif x <= -2.05e-109: tmp = a * (b * i) elif x <= 6.4e-35: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (x <= -6.3e+50) tmp = t_1; elseif (x <= -2.05e-109) tmp = Float64(a * Float64(b * i)); elseif (x <= 6.4e-35) 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 = x * (y * z); tmp = 0.0; if (x <= -6.3e+50) tmp = t_1; elseif (x <= -2.05e-109) tmp = a * (b * i); elseif (x <= 6.4e-35) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.3e+50], t$95$1, If[LessEqual[x, -2.05e-109], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.4e-35], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;x \leq -6.3 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.05 \cdot 10^{-109}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 6.4 \cdot 10^{-35}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -6.29999999999999986e50 or 6.3999999999999996e-35 < x Initial program 76.0%
+-commutative76.0%
fma-define77.6%
*-commutative77.6%
*-commutative77.6%
cancel-sign-sub-inv77.6%
cancel-sign-sub77.6%
sub-neg77.6%
sub-neg77.6%
*-commutative77.6%
fma-neg77.6%
*-commutative77.6%
distribute-rgt-neg-out77.6%
remove-double-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in y around inf 50.5%
+-commutative50.5%
mul-1-neg50.5%
unsub-neg50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in z around inf 37.6%
*-commutative37.6%
Simplified37.6%
if -6.29999999999999986e50 < x < -2.0500000000000001e-109Initial program 63.0%
Taylor expanded in i around inf 47.8%
*-commutative47.8%
associate-*r*42.4%
Simplified42.4%
Taylor expanded in b around inf 40.0%
Taylor expanded in b around inf 33.4%
if -2.0500000000000001e-109 < x < 6.3999999999999996e-35Initial program 75.3%
+-commutative75.3%
fma-define75.3%
*-commutative75.3%
*-commutative75.3%
cancel-sign-sub-inv75.3%
cancel-sign-sub75.3%
sub-neg75.3%
sub-neg75.3%
*-commutative75.3%
fma-neg75.3%
*-commutative75.3%
distribute-rgt-neg-out75.3%
remove-double-neg75.3%
*-commutative75.3%
*-commutative75.3%
Simplified75.3%
Taylor expanded in c around inf 51.1%
Taylor expanded in j around inf 27.4%
*-commutative27.4%
Simplified27.4%
Final simplification33.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.85e+174) (not (<= i 2.7e-134))) (* i (- (* a b) (* y j))) (* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.85e+174) || !(i <= 2.7e-134)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-1.85d+174)) .or. (.not. (i <= 2.7d-134))) then
tmp = i * ((a * b) - (y * j))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.85e+174) || !(i <= 2.7e-134)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.85e+174) or not (i <= 2.7e-134): tmp = i * ((a * b) - (y * j)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.85e+174) || !(i <= 2.7e-134)) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -1.85e+174) || ~((i <= 2.7e-134))) tmp = i * ((a * b) - (y * j)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.85e+174], N[Not[LessEqual[i, 2.7e-134]], $MachinePrecision]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.85 \cdot 10^{+174} \lor \neg \left(i \leq 2.7 \cdot 10^{-134}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if i < -1.8500000000000001e174 or 2.6999999999999998e-134 < i Initial program 69.8%
Taylor expanded in i around inf 54.0%
*-commutative54.0%
associate-*r*54.1%
Simplified54.1%
Taylor expanded in i around inf 52.6%
+-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
*-commutative52.6%
Simplified52.6%
if -1.8500000000000001e174 < i < 2.6999999999999998e-134Initial program 77.9%
+-commutative77.9%
fma-define77.9%
*-commutative77.9%
*-commutative77.9%
cancel-sign-sub-inv77.9%
cancel-sign-sub77.9%
sub-neg77.9%
sub-neg77.9%
*-commutative77.9%
fma-neg77.9%
*-commutative77.9%
distribute-rgt-neg-out77.9%
remove-double-neg77.9%
*-commutative77.9%
*-commutative77.9%
Simplified77.9%
Taylor expanded in c around inf 46.9%
Final simplification49.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.05e-11) (not (<= t 1.6e+62))) (* c (* t j)) (* y (* x z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.05e-11) || !(t <= 1.6e+62)) {
tmp = c * (t * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-1.05d-11)) .or. (.not. (t <= 1.6d+62))) then
tmp = c * (t * j)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -1.05e-11) || !(t <= 1.6e+62)) {
tmp = c * (t * j);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -1.05e-11) or not (t <= 1.6e+62): tmp = c * (t * j) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -1.05e-11) || !(t <= 1.6e+62)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -1.05e-11) || ~((t <= 1.6e+62))) tmp = c * (t * j); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -1.05e-11], N[Not[LessEqual[t, 1.6e+62]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.05 \cdot 10^{-11} \lor \neg \left(t \leq 1.6 \cdot 10^{+62}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if t < -1.0499999999999999e-11 or 1.59999999999999992e62 < t Initial program 67.0%
+-commutative67.0%
fma-define67.9%
*-commutative67.9%
*-commutative67.9%
cancel-sign-sub-inv67.9%
cancel-sign-sub67.9%
sub-neg67.9%
sub-neg67.9%
*-commutative67.9%
fma-neg68.8%
*-commutative68.8%
distribute-rgt-neg-out68.8%
remove-double-neg68.8%
*-commutative68.8%
*-commutative68.8%
Simplified68.8%
Taylor expanded in c around inf 44.6%
Taylor expanded in j around inf 34.9%
*-commutative34.9%
Simplified34.9%
if -1.0499999999999999e-11 < t < 1.59999999999999992e62Initial program 79.7%
+-commutative79.7%
fma-define80.4%
*-commutative80.4%
*-commutative80.4%
cancel-sign-sub-inv80.4%
cancel-sign-sub80.4%
sub-neg80.4%
sub-neg80.4%
*-commutative80.4%
fma-neg80.4%
*-commutative80.4%
distribute-rgt-neg-out80.4%
remove-double-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in z around inf 31.3%
*-commutative31.3%
Simplified31.3%
Final simplification32.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -9e+26) (not (<= b 5.2e-73))) (* 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 ((b <= -9e+26) || !(b <= 5.2e-73)) {
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 ((b <= (-9d+26)) .or. (.not. (b <= 5.2d-73))) 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 ((b <= -9e+26) || !(b <= 5.2e-73)) {
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 (b <= -9e+26) or not (b <= 5.2e-73): 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 ((b <= -9e+26) || !(b <= 5.2e-73)) 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 ((b <= -9e+26) || ~((b <= 5.2e-73))) 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[b, -9e+26], N[Not[LessEqual[b, 5.2e-73]], $MachinePrecision]], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9 \cdot 10^{+26} \lor \neg \left(b \leq 5.2 \cdot 10^{-73}\right):\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\end{array}
\end{array}
if b < -8.99999999999999957e26 or 5.2000000000000002e-73 < b Initial program 74.2%
Taylor expanded in i around inf 44.0%
*-commutative44.0%
associate-*r*43.3%
Simplified43.3%
Taylor expanded in b around inf 44.8%
Taylor expanded in b around inf 30.5%
if -8.99999999999999957e26 < b < 5.2000000000000002e-73Initial program 73.9%
+-commutative73.9%
fma-define74.8%
*-commutative74.8%
*-commutative74.8%
cancel-sign-sub-inv74.8%
cancel-sign-sub74.8%
sub-neg74.8%
sub-neg74.8%
*-commutative74.8%
fma-neg74.8%
*-commutative74.8%
distribute-rgt-neg-out74.8%
remove-double-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in c around inf 34.9%
Taylor expanded in j around inf 26.9%
*-commutative26.9%
Simplified26.9%
Final simplification28.8%
(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 74.1%
Taylor expanded in i around inf 43.7%
*-commutative43.7%
associate-*r*42.9%
Simplified42.9%
Taylor expanded in b around inf 40.5%
Taylor expanded in b around inf 18.3%
(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 2024091
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(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)))))