
(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 24 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
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(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(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(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}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.6%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
Taylor expanded in z around inf 1.8%
mul-1-neg1.8%
unsub-neg1.8%
associate-/l*5.3%
Simplified5.3%
Taylor expanded in z around inf 56.8%
*-commutative56.8%
*-commutative56.8%
Simplified56.8%
Final simplification83.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -6.5e+89)
t_2
(if (<= x -1.6e+59)
t_1
(if (<= x 6.2e-183)
(* b (- (* a i) (* z c)))
(if (<= x 7.2e-35)
t_1
(if (<= x 7.2e+58)
(* z (- (* x y) (* b c)))
(if (<= x 3.3e+130) (* i (* y (- (* a (/ b y)) j))) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -6.5e+89) {
tmp = t_2;
} else if (x <= -1.6e+59) {
tmp = t_1;
} else if (x <= 6.2e-183) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 7.2e-35) {
tmp = t_1;
} else if (x <= 7.2e+58) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 3.3e+130) {
tmp = i * (y * ((a * (b / y)) - j));
} 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 = x * ((y * z) - (t * a))
if (x <= (-6.5d+89)) then
tmp = t_2
else if (x <= (-1.6d+59)) then
tmp = t_1
else if (x <= 6.2d-183) then
tmp = b * ((a * i) - (z * c))
else if (x <= 7.2d-35) then
tmp = t_1
else if (x <= 7.2d+58) then
tmp = z * ((x * y) - (b * c))
else if (x <= 3.3d+130) then
tmp = i * (y * ((a * (b / y)) - j))
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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -6.5e+89) {
tmp = t_2;
} else if (x <= -1.6e+59) {
tmp = t_1;
} else if (x <= 6.2e-183) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 7.2e-35) {
tmp = t_1;
} else if (x <= 7.2e+58) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 3.3e+130) {
tmp = i * (y * ((a * (b / y)) - j));
} 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 = x * ((y * z) - (t * a)) tmp = 0 if x <= -6.5e+89: tmp = t_2 elif x <= -1.6e+59: tmp = t_1 elif x <= 6.2e-183: tmp = b * ((a * i) - (z * c)) elif x <= 7.2e-35: tmp = t_1 elif x <= 7.2e+58: tmp = z * ((x * y) - (b * c)) elif x <= 3.3e+130: tmp = i * (y * ((a * (b / y)) - j)) 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -6.5e+89) tmp = t_2; elseif (x <= -1.6e+59) tmp = t_1; elseif (x <= 6.2e-183) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 7.2e-35) tmp = t_1; elseif (x <= 7.2e+58) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (x <= 3.3e+130) tmp = Float64(i * Float64(y * Float64(Float64(a * Float64(b / y)) - j))); 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 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -6.5e+89) tmp = t_2; elseif (x <= -1.6e+59) tmp = t_1; elseif (x <= 6.2e-183) tmp = b * ((a * i) - (z * c)); elseif (x <= 7.2e-35) tmp = t_1; elseif (x <= 7.2e+58) tmp = z * ((x * y) - (b * c)); elseif (x <= 3.3e+130) tmp = i * (y * ((a * (b / y)) - j)); 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -6.5e+89], t$95$2, If[LessEqual[x, -1.6e+59], t$95$1, If[LessEqual[x, 6.2e-183], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.2e-35], t$95$1, If[LessEqual[x, 7.2e+58], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.3e+130], N[(i * N[(y * N[(N[(a * N[(b / y), $MachinePrecision]), $MachinePrecision] - j), $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 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -6.5 \cdot 10^{+89}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -1.6 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6.2 \cdot 10^{-183}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 7.2 \cdot 10^{+58}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{+130}:\\
\;\;\;\;i \cdot \left(y \cdot \left(a \cdot \frac{b}{y} - j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -6.4999999999999996e89 or 3.3e130 < x Initial program 74.2%
Taylor expanded in b around 0 74.5%
Taylor expanded in j around 0 71.7%
*-commutative71.7%
Simplified71.7%
if -6.4999999999999996e89 < x < -1.59999999999999991e59 or 6.19999999999999999e-183 < x < 7.20000000000000038e-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 j around inf 75.6%
sub-neg75.6%
*-commutative75.6%
*-commutative75.6%
sub-neg75.6%
Simplified75.6%
if -1.59999999999999991e59 < x < 6.19999999999999999e-183Initial program 70.8%
Taylor expanded in z around inf 67.5%
mul-1-neg67.5%
unsub-neg67.5%
associate-/l*63.1%
Simplified63.1%
Taylor expanded in b around inf 54.0%
*-commutative54.0%
Simplified54.0%
if 7.20000000000000038e-35 < x < 7.19999999999999993e58Initial program 89.2%
Taylor expanded in z around inf 89.1%
mul-1-neg89.1%
unsub-neg89.1%
associate-/l*89.2%
Simplified89.2%
Taylor expanded in z around inf 75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if 7.19999999999999993e58 < x < 3.3e130Initial program 41.6%
+-commutative41.6%
fma-define41.6%
*-commutative41.6%
*-commutative41.6%
cancel-sign-sub-inv41.6%
cancel-sign-sub41.6%
sub-neg41.6%
sub-neg41.6%
*-commutative41.6%
fma-neg41.6%
*-commutative41.6%
distribute-rgt-neg-out41.6%
remove-double-neg41.6%
*-commutative41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in i around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Taylor expanded in y around inf 71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
associate-/l*67.1%
Simplified67.1%
Final simplification65.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -9.8e+91)
t_2
(if (<= x -3.95e+59)
t_1
(if (<= x 1.8e-180)
(* b (- (* a i) (* z c)))
(if (<= x 4.3e-35)
t_1
(if (<= x 9.8e+58)
(* z (- (* x y) (* b c)))
(if (<= x 3.95e+130) (* i (- (* a b) (* y j))) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.8e+91) {
tmp = t_2;
} else if (x <= -3.95e+59) {
tmp = t_1;
} else if (x <= 1.8e-180) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 4.3e-35) {
tmp = t_1;
} else if (x <= 9.8e+58) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 3.95e+130) {
tmp = i * ((a * b) - (y * j));
} 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 = x * ((y * z) - (t * a))
if (x <= (-9.8d+91)) then
tmp = t_2
else if (x <= (-3.95d+59)) then
tmp = t_1
else if (x <= 1.8d-180) then
tmp = b * ((a * i) - (z * c))
else if (x <= 4.3d-35) then
tmp = t_1
else if (x <= 9.8d+58) then
tmp = z * ((x * y) - (b * c))
else if (x <= 3.95d+130) then
tmp = i * ((a * b) - (y * j))
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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -9.8e+91) {
tmp = t_2;
} else if (x <= -3.95e+59) {
tmp = t_1;
} else if (x <= 1.8e-180) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 4.3e-35) {
tmp = t_1;
} else if (x <= 9.8e+58) {
tmp = z * ((x * y) - (b * c));
} else if (x <= 3.95e+130) {
tmp = i * ((a * b) - (y * j));
} 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 = x * ((y * z) - (t * a)) tmp = 0 if x <= -9.8e+91: tmp = t_2 elif x <= -3.95e+59: tmp = t_1 elif x <= 1.8e-180: tmp = b * ((a * i) - (z * c)) elif x <= 4.3e-35: tmp = t_1 elif x <= 9.8e+58: tmp = z * ((x * y) - (b * c)) elif x <= 3.95e+130: tmp = i * ((a * b) - (y * j)) 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(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -9.8e+91) tmp = t_2; elseif (x <= -3.95e+59) tmp = t_1; elseif (x <= 1.8e-180) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 4.3e-35) tmp = t_1; elseif (x <= 9.8e+58) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (x <= 3.95e+130) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); 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 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -9.8e+91) tmp = t_2; elseif (x <= -3.95e+59) tmp = t_1; elseif (x <= 1.8e-180) tmp = b * ((a * i) - (z * c)); elseif (x <= 4.3e-35) tmp = t_1; elseif (x <= 9.8e+58) tmp = z * ((x * y) - (b * c)); elseif (x <= 3.95e+130) tmp = i * ((a * b) - (y * j)); 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[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -9.8e+91], t$95$2, If[LessEqual[x, -3.95e+59], t$95$1, If[LessEqual[x, 1.8e-180], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.3e-35], t$95$1, If[LessEqual[x, 9.8e+58], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.95e+130], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $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 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -9.8 \cdot 10^{+91}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -3.95 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.8 \cdot 10^{-180}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 4.3 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 9.8 \cdot 10^{+58}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;x \leq 3.95 \cdot 10^{+130}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -9.8000000000000006e91 or 3.9500000000000002e130 < x Initial program 74.2%
Taylor expanded in b around 0 74.5%
Taylor expanded in j around 0 71.7%
*-commutative71.7%
Simplified71.7%
if -9.8000000000000006e91 < x < -3.95e59 or 1.8e-180 < x < 4.3000000000000002e-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 j around inf 75.6%
sub-neg75.6%
*-commutative75.6%
*-commutative75.6%
sub-neg75.6%
Simplified75.6%
if -3.95e59 < x < 1.8e-180Initial program 70.8%
Taylor expanded in z around inf 67.5%
mul-1-neg67.5%
unsub-neg67.5%
associate-/l*63.1%
Simplified63.1%
Taylor expanded in b around inf 54.0%
*-commutative54.0%
Simplified54.0%
if 4.3000000000000002e-35 < x < 9.80000000000000037e58Initial program 89.2%
Taylor expanded in z around inf 89.1%
mul-1-neg89.1%
unsub-neg89.1%
associate-/l*89.2%
Simplified89.2%
Taylor expanded in z around inf 75.0%
*-commutative75.0%
*-commutative75.0%
Simplified75.0%
if 9.80000000000000037e58 < x < 3.9500000000000002e130Initial program 41.6%
+-commutative41.6%
fma-define41.6%
*-commutative41.6%
*-commutative41.6%
cancel-sign-sub-inv41.6%
cancel-sign-sub41.6%
sub-neg41.6%
sub-neg41.6%
*-commutative41.6%
fma-neg41.6%
*-commutative41.6%
distribute-rgt-neg-out41.6%
remove-double-neg41.6%
*-commutative41.6%
*-commutative41.6%
Simplified41.6%
Taylor expanded in i around inf 67.1%
distribute-lft-out--67.1%
*-commutative67.1%
Simplified67.1%
Final simplification65.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= x -1.65e+90)
(* x (- (* y z) (* t a)))
(if (<= x -5.5e+58)
t_1
(if (<= x 9.4e-184)
(* b (- (* a i) (* z c)))
(if (<= x 6e-36) t_1 (* (* x z) (- y (* a (/ t z))))))))))
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 tmp;
if (x <= -1.65e+90) {
tmp = x * ((y * z) - (t * a));
} else if (x <= -5.5e+58) {
tmp = t_1;
} else if (x <= 9.4e-184) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 6e-36) {
tmp = t_1;
} else {
tmp = (x * z) * (y - (a * (t / 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) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (x <= (-1.65d+90)) then
tmp = x * ((y * z) - (t * a))
else if (x <= (-5.5d+58)) then
tmp = t_1
else if (x <= 9.4d-184) then
tmp = b * ((a * i) - (z * c))
else if (x <= 6d-36) then
tmp = t_1
else
tmp = (x * z) * (y - (a * (t / 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 t_1 = j * ((t * c) - (y * i));
double tmp;
if (x <= -1.65e+90) {
tmp = x * ((y * z) - (t * a));
} else if (x <= -5.5e+58) {
tmp = t_1;
} else if (x <= 9.4e-184) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 6e-36) {
tmp = t_1;
} else {
tmp = (x * z) * (y - (a * (t / z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if x <= -1.65e+90: tmp = x * ((y * z) - (t * a)) elif x <= -5.5e+58: tmp = t_1 elif x <= 9.4e-184: tmp = b * ((a * i) - (z * c)) elif x <= 6e-36: tmp = t_1 else: tmp = (x * z) * (y - (a * (t / z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (x <= -1.65e+90) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (x <= -5.5e+58) tmp = t_1; elseif (x <= 9.4e-184) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 6e-36) tmp = t_1; else tmp = Float64(Float64(x * z) * Float64(y - Float64(a * Float64(t / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (x <= -1.65e+90) tmp = x * ((y * z) - (t * a)); elseif (x <= -5.5e+58) tmp = t_1; elseif (x <= 9.4e-184) tmp = b * ((a * i) - (z * c)); elseif (x <= 6e-36) tmp = t_1; else tmp = (x * z) * (y - (a * (t / z))); 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]}, If[LessEqual[x, -1.65e+90], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -5.5e+58], t$95$1, If[LessEqual[x, 9.4e-184], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6e-36], t$95$1, N[(N[(x * z), $MachinePrecision] * N[(y - N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;x \leq -1.65 \cdot 10^{+90}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;x \leq -5.5 \cdot 10^{+58}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 9.4 \cdot 10^{-184}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 6 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot z\right) \cdot \left(y - a \cdot \frac{t}{z}\right)\\
\end{array}
\end{array}
if x < -1.65000000000000004e90Initial program 76.7%
Taylor expanded in b around 0 72.2%
Taylor expanded in j around 0 67.5%
*-commutative67.5%
Simplified67.5%
if -1.65000000000000004e90 < x < -5.4999999999999999e58 or 9.40000000000000039e-184 < x < 6.0000000000000003e-36Initial 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 j around inf 75.6%
sub-neg75.6%
*-commutative75.6%
*-commutative75.6%
sub-neg75.6%
Simplified75.6%
if -5.4999999999999999e58 < x < 9.40000000000000039e-184Initial program 70.8%
Taylor expanded in z around inf 67.5%
mul-1-neg67.5%
unsub-neg67.5%
associate-/l*63.1%
Simplified63.1%
Taylor expanded in b around inf 54.0%
*-commutative54.0%
Simplified54.0%
if 6.0000000000000003e-36 < x Initial program 65.7%
Taylor expanded in z around inf 65.7%
mul-1-neg65.7%
unsub-neg65.7%
associate-/l*64.5%
Simplified64.5%
Taylor expanded in x around inf 63.1%
associate-*r*65.7%
*-commutative65.7%
associate-*r/65.7%
Simplified65.7%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.75e+93)
t_1
(if (<= x 6.1e-50)
(- (* j (- (* t c) (* y i))) (* c (* z b)))
(if (<= x 4.7e+101)
(+ (* z (* x y)) (* b (- (* a i) (* z c))))
(if (<= x 7.4e+130) (* i (- (* a b) (* y 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) - (t * a));
double tmp;
if (x <= -1.75e+93) {
tmp = t_1;
} else if (x <= 6.1e-50) {
tmp = (j * ((t * c) - (y * i))) - (c * (z * b));
} else if (x <= 4.7e+101) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 7.4e+130) {
tmp = i * ((a * b) - (y * 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) - (t * a))
if (x <= (-1.75d+93)) then
tmp = t_1
else if (x <= 6.1d-50) then
tmp = (j * ((t * c) - (y * i))) - (c * (z * b))
else if (x <= 4.7d+101) then
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)))
else if (x <= 7.4d+130) then
tmp = i * ((a * b) - (y * 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) - (t * a));
double tmp;
if (x <= -1.75e+93) {
tmp = t_1;
} else if (x <= 6.1e-50) {
tmp = (j * ((t * c) - (y * i))) - (c * (z * b));
} else if (x <= 4.7e+101) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 7.4e+130) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.75e+93: tmp = t_1 elif x <= 6.1e-50: tmp = (j * ((t * c) - (y * i))) - (c * (z * b)) elif x <= 4.7e+101: tmp = (z * (x * y)) + (b * ((a * i) - (z * c))) elif x <= 7.4e+130: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.75e+93) tmp = t_1; elseif (x <= 6.1e-50) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(c * Float64(z * b))); elseif (x <= 4.7e+101) tmp = Float64(Float64(z * Float64(x * y)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 7.4e+130) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * 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) - (t * a)); tmp = 0.0; if (x <= -1.75e+93) tmp = t_1; elseif (x <= 6.1e-50) tmp = (j * ((t * c) - (y * i))) - (c * (z * b)); elseif (x <= 4.7e+101) tmp = (z * (x * y)) + (b * ((a * i) - (z * c))); elseif (x <= 7.4e+130) tmp = i * ((a * b) - (y * 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.75e+93], t$95$1, If[LessEqual[x, 6.1e-50], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.7e+101], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e+130], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.75 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 6.1 \cdot 10^{-50}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - c \cdot \left(z \cdot b\right)\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{+101}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{+130}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.74999999999999999e93 or 7.4000000000000003e130 < x Initial program 74.2%
Taylor expanded in b around 0 74.5%
Taylor expanded in j around 0 71.7%
*-commutative71.7%
Simplified71.7%
if -1.74999999999999999e93 < x < 6.0999999999999996e-50Initial program 72.1%
cancel-sign-sub-inv72.1%
cancel-sign-sub72.1%
fma-neg73.0%
distribute-lft-neg-out73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
*-commutative73.0%
sub-neg73.0%
*-commutative73.0%
sub-neg73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in b around inf 70.3%
cancel-sign-sub-inv70.3%
+-commutative70.3%
mul-1-neg70.3%
sub-neg70.3%
cancel-sign-sub-inv70.3%
fma-define70.3%
associate-/l*65.3%
*-commutative65.3%
Simplified65.3%
Taylor expanded in c around inf 64.5%
mul-1-neg64.5%
*-commutative64.5%
associate-*l*66.1%
distribute-rgt-neg-in66.1%
*-commutative66.1%
Simplified66.1%
if 6.0999999999999996e-50 < x < 4.69999999999999971e101Initial program 75.6%
Taylor expanded in j around 0 75.6%
Taylor expanded in t around 0 72.9%
*-commutative72.9%
*-commutative72.9%
associate-*l*73.0%
Simplified73.0%
if 4.69999999999999971e101 < x < 7.4000000000000003e130Initial program 30.8%
+-commutative30.8%
fma-define30.8%
*-commutative30.8%
*-commutative30.8%
cancel-sign-sub-inv30.8%
cancel-sign-sub30.8%
sub-neg30.8%
sub-neg30.8%
*-commutative30.8%
fma-neg30.8%
*-commutative30.8%
distribute-rgt-neg-out30.8%
remove-double-neg30.8%
*-commutative30.8%
*-commutative30.8%
Simplified30.8%
Taylor expanded in i around inf 84.5%
distribute-lft-out--84.5%
*-commutative84.5%
Simplified84.5%
Final simplification70.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.85e+105)
t_1
(if (<= x 1.9e-54)
(- (* j (- (* t c) (* y i))) (* b (* z c)))
(if (<= x 7.8e+100)
(+ (* z (* x y)) (* b (- (* a i) (* z c))))
(if (<= x 3.3e+130) (* i (- (* a b) (* y 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) - (t * a));
double tmp;
if (x <= -1.85e+105) {
tmp = t_1;
} else if (x <= 1.9e-54) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 7.8e+100) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 3.3e+130) {
tmp = i * ((a * b) - (y * 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) - (t * a))
if (x <= (-1.85d+105)) then
tmp = t_1
else if (x <= 1.9d-54) then
tmp = (j * ((t * c) - (y * i))) - (b * (z * c))
else if (x <= 7.8d+100) then
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)))
else if (x <= 3.3d+130) then
tmp = i * ((a * b) - (y * 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) - (t * a));
double tmp;
if (x <= -1.85e+105) {
tmp = t_1;
} else if (x <= 1.9e-54) {
tmp = (j * ((t * c) - (y * i))) - (b * (z * c));
} else if (x <= 7.8e+100) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 3.3e+130) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.85e+105: tmp = t_1 elif x <= 1.9e-54: tmp = (j * ((t * c) - (y * i))) - (b * (z * c)) elif x <= 7.8e+100: tmp = (z * (x * y)) + (b * ((a * i) - (z * c))) elif x <= 3.3e+130: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.85e+105) tmp = t_1; elseif (x <= 1.9e-54) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(b * Float64(z * c))); elseif (x <= 7.8e+100) tmp = Float64(Float64(z * Float64(x * y)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 3.3e+130) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * 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) - (t * a)); tmp = 0.0; if (x <= -1.85e+105) tmp = t_1; elseif (x <= 1.9e-54) tmp = (j * ((t * c) - (y * i))) - (b * (z * c)); elseif (x <= 7.8e+100) tmp = (z * (x * y)) + (b * ((a * i) - (z * c))); elseif (x <= 3.3e+130) tmp = i * ((a * b) - (y * 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.85e+105], t$95$1, If[LessEqual[x, 1.9e-54], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e+100], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.3e+130], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.85 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.9 \cdot 10^{-54}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+100}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{+130}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.84999999999999992e105 or 3.3e130 < x Initial program 74.5%
Taylor expanded in b around 0 77.1%
Taylor expanded in j around 0 74.0%
*-commutative74.0%
Simplified74.0%
if -1.84999999999999992e105 < x < 1.9000000000000001e-54Initial program 72.1%
cancel-sign-sub-inv72.1%
cancel-sign-sub72.1%
fma-neg72.9%
distribute-lft-neg-out72.9%
*-commutative72.9%
remove-double-neg72.9%
*-commutative72.9%
*-commutative72.9%
sub-neg72.9%
*-commutative72.9%
sub-neg72.9%
*-commutative72.9%
Simplified72.9%
Taylor expanded in c around inf 63.4%
associate-*r*63.4%
neg-mul-163.4%
*-commutative63.4%
Simplified63.4%
if 1.9000000000000001e-54 < x < 7.8e100Initial program 75.6%
Taylor expanded in j around 0 75.6%
Taylor expanded in t around 0 72.9%
*-commutative72.9%
*-commutative72.9%
associate-*l*73.0%
Simplified73.0%
if 7.8e100 < x < 3.3e130Initial program 30.8%
+-commutative30.8%
fma-define30.8%
*-commutative30.8%
*-commutative30.8%
cancel-sign-sub-inv30.8%
cancel-sign-sub30.8%
sub-neg30.8%
sub-neg30.8%
*-commutative30.8%
fma-neg30.8%
*-commutative30.8%
distribute-rgt-neg-out30.8%
remove-double-neg30.8%
*-commutative30.8%
*-commutative30.8%
Simplified30.8%
Taylor expanded in i around inf 84.5%
distribute-lft-out--84.5%
*-commutative84.5%
Simplified84.5%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -1.5e+94)
t_1
(if (<= x 9.6e-49)
(- (* j (- (* t c) (* y i))) (* z (* b c)))
(if (<= x 4.5e+101)
(+ (* z (* x y)) (* b (- (* a i) (* z c))))
(if (<= x 4.7e+130) (* i (- (* a b) (* y 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) - (t * a));
double tmp;
if (x <= -1.5e+94) {
tmp = t_1;
} else if (x <= 9.6e-49) {
tmp = (j * ((t * c) - (y * i))) - (z * (b * c));
} else if (x <= 4.5e+101) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 4.7e+130) {
tmp = i * ((a * b) - (y * 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) - (t * a))
if (x <= (-1.5d+94)) then
tmp = t_1
else if (x <= 9.6d-49) then
tmp = (j * ((t * c) - (y * i))) - (z * (b * c))
else if (x <= 4.5d+101) then
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)))
else if (x <= 4.7d+130) then
tmp = i * ((a * b) - (y * 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) - (t * a));
double tmp;
if (x <= -1.5e+94) {
tmp = t_1;
} else if (x <= 9.6e-49) {
tmp = (j * ((t * c) - (y * i))) - (z * (b * c));
} else if (x <= 4.5e+101) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 4.7e+130) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.5e+94: tmp = t_1 elif x <= 9.6e-49: tmp = (j * ((t * c) - (y * i))) - (z * (b * c)) elif x <= 4.5e+101: tmp = (z * (x * y)) + (b * ((a * i) - (z * c))) elif x <= 4.7e+130: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.5e+94) tmp = t_1; elseif (x <= 9.6e-49) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(z * Float64(b * c))); elseif (x <= 4.5e+101) tmp = Float64(Float64(z * Float64(x * y)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 4.7e+130) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * 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) - (t * a)); tmp = 0.0; if (x <= -1.5e+94) tmp = t_1; elseif (x <= 9.6e-49) tmp = (j * ((t * c) - (y * i))) - (z * (b * c)); elseif (x <= 4.5e+101) tmp = (z * (x * y)) + (b * ((a * i) - (z * c))); elseif (x <= 4.7e+130) tmp = i * ((a * b) - (y * 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+94], t$95$1, If[LessEqual[x, 9.6e-49], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.5e+101], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.7e+130], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+94}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 9.6 \cdot 10^{-49}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;x \leq 4.5 \cdot 10^{+101}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{+130}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.5e94 or 4.70000000000000045e130 < x Initial program 74.2%
Taylor expanded in b around 0 74.5%
Taylor expanded in j around 0 71.7%
*-commutative71.7%
Simplified71.7%
if -1.5e94 < x < 9.59999999999999969e-49Initial program 72.1%
cancel-sign-sub-inv72.1%
cancel-sign-sub72.1%
fma-neg73.0%
distribute-lft-neg-out73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
*-commutative73.0%
sub-neg73.0%
*-commutative73.0%
sub-neg73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in c around inf 64.5%
mul-1-neg64.5%
*-commutative64.5%
*-commutative64.5%
associate-*r*64.4%
*-commutative64.4%
distribute-rgt-neg-out64.4%
distribute-rgt-neg-in64.4%
Simplified64.4%
if 9.59999999999999969e-49 < x < 4.5000000000000002e101Initial program 75.6%
Taylor expanded in j around 0 75.6%
Taylor expanded in t around 0 72.9%
*-commutative72.9%
*-commutative72.9%
associate-*l*73.0%
Simplified73.0%
if 4.5000000000000002e101 < x < 4.70000000000000045e130Initial program 30.8%
+-commutative30.8%
fma-define30.8%
*-commutative30.8%
*-commutative30.8%
cancel-sign-sub-inv30.8%
cancel-sign-sub30.8%
sub-neg30.8%
sub-neg30.8%
*-commutative30.8%
fma-neg30.8%
*-commutative30.8%
distribute-rgt-neg-out30.8%
remove-double-neg30.8%
*-commutative30.8%
*-commutative30.8%
Simplified30.8%
Taylor expanded in i around inf 84.5%
distribute-lft-out--84.5%
*-commutative84.5%
Simplified84.5%
Final simplification69.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= x -2.8e+92)
t_1
(if (<= x 3.4e-58)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (<= x 4.7e+101)
(+ (* z (* x y)) (* b (- (* a i) (* z c))))
(if (<= x 3.3e+130) (* i (- (* a b) (* y 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) - (t * a));
double tmp;
if (x <= -2.8e+92) {
tmp = t_1;
} else if (x <= 3.4e-58) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (x <= 4.7e+101) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 3.3e+130) {
tmp = i * ((a * b) - (y * 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) - (t * a))
if (x <= (-2.8d+92)) then
tmp = t_1
else if (x <= 3.4d-58) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if (x <= 4.7d+101) then
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)))
else if (x <= 3.3d+130) then
tmp = i * ((a * b) - (y * 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) - (t * a));
double tmp;
if (x <= -2.8e+92) {
tmp = t_1;
} else if (x <= 3.4e-58) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (x <= 4.7e+101) {
tmp = (z * (x * y)) + (b * ((a * i) - (z * c)));
} else if (x <= 3.3e+130) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if x <= -2.8e+92: tmp = t_1 elif x <= 3.4e-58: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif x <= 4.7e+101: tmp = (z * (x * y)) + (b * ((a * i) - (z * c))) elif x <= 3.3e+130: tmp = i * ((a * b) - (y * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -2.8e+92) tmp = t_1; elseif (x <= 3.4e-58) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif (x <= 4.7e+101) tmp = Float64(Float64(z * Float64(x * y)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (x <= 3.3e+130) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * 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) - (t * a)); tmp = 0.0; if (x <= -2.8e+92) tmp = t_1; elseif (x <= 3.4e-58) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif (x <= 4.7e+101) tmp = (z * (x * y)) + (b * ((a * i) - (z * c))); elseif (x <= 3.3e+130) tmp = i * ((a * b) - (y * 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[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.8e+92], t$95$1, If[LessEqual[x, 3.4e-58], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 4.7e+101], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.3e+130], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -2.8 \cdot 10^{+92}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 3.4 \cdot 10^{-58}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;x \leq 4.7 \cdot 10^{+101}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 3.3 \cdot 10^{+130}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.80000000000000001e92 or 3.3e130 < x Initial program 74.2%
Taylor expanded in b around 0 74.5%
Taylor expanded in j around 0 71.7%
*-commutative71.7%
Simplified71.7%
if -2.80000000000000001e92 < x < 3.39999999999999973e-58Initial program 72.1%
cancel-sign-sub-inv72.1%
cancel-sign-sub72.1%
fma-neg73.0%
distribute-lft-neg-out73.0%
*-commutative73.0%
remove-double-neg73.0%
*-commutative73.0%
*-commutative73.0%
sub-neg73.0%
*-commutative73.0%
sub-neg73.0%
*-commutative73.0%
Simplified73.0%
Taylor expanded in i around inf 62.0%
if 3.39999999999999973e-58 < x < 4.69999999999999971e101Initial program 75.6%
Taylor expanded in j around 0 75.6%
Taylor expanded in t around 0 72.9%
*-commutative72.9%
*-commutative72.9%
associate-*l*73.0%
Simplified73.0%
if 4.69999999999999971e101 < x < 3.3e130Initial program 30.8%
+-commutative30.8%
fma-define30.8%
*-commutative30.8%
*-commutative30.8%
cancel-sign-sub-inv30.8%
cancel-sign-sub30.8%
sub-neg30.8%
sub-neg30.8%
*-commutative30.8%
fma-neg30.8%
*-commutative30.8%
distribute-rgt-neg-out30.8%
remove-double-neg30.8%
*-commutative30.8%
*-commutative30.8%
Simplified30.8%
Taylor expanded in i around inf 84.5%
distribute-lft-out--84.5%
*-commutative84.5%
Simplified84.5%
Final simplification68.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* x (- (* y z) (* t a)))))
(if (<= x -1.02e+90)
t_2
(if (<= x -4e+59)
t_1
(if (<= x 1.15e-180)
(* b (- (* a i) (* z c)))
(if (<= x 7.5e-36) 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 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.02e+90) {
tmp = t_2;
} else if (x <= -4e+59) {
tmp = t_1;
} else if (x <= 1.15e-180) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 7.5e-36) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = x * ((y * z) - (t * a))
if (x <= (-1.02d+90)) then
tmp = t_2
else if (x <= (-4d+59)) then
tmp = t_1
else if (x <= 1.15d-180) then
tmp = b * ((a * i) - (z * c))
else if (x <= 7.5d-36) 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));
double t_2 = x * ((y * z) - (t * a));
double tmp;
if (x <= -1.02e+90) {
tmp = t_2;
} else if (x <= -4e+59) {
tmp = t_1;
} else if (x <= 1.15e-180) {
tmp = b * ((a * i) - (z * c));
} else if (x <= 7.5e-36) {
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)) t_2 = x * ((y * z) - (t * a)) tmp = 0 if x <= -1.02e+90: tmp = t_2 elif x <= -4e+59: tmp = t_1 elif x <= 1.15e-180: tmp = b * ((a * i) - (z * c)) elif x <= 7.5e-36: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if (x <= -1.02e+90) tmp = t_2; elseif (x <= -4e+59) tmp = t_1; elseif (x <= 1.15e-180) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (x <= 7.5e-36) 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)); t_2 = x * ((y * z) - (t * a)); tmp = 0.0; if (x <= -1.02e+90) tmp = t_2; elseif (x <= -4e+59) tmp = t_1; elseif (x <= 1.15e-180) tmp = b * ((a * i) - (z * c)); elseif (x <= 7.5e-36) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.02e+90], t$95$2, If[LessEqual[x, -4e+59], t$95$1, If[LessEqual[x, 1.15e-180], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.5e-36], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;x \leq -1.02 \cdot 10^{+90}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;x \leq -4 \cdot 10^{+59}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.15 \cdot 10^{-180}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;x \leq 7.5 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if x < -1.02000000000000005e90 or 7.49999999999999972e-36 < x Initial program 70.6%
Taylor expanded in b around 0 70.5%
Taylor expanded in j around 0 65.1%
*-commutative65.1%
Simplified65.1%
if -1.02000000000000005e90 < x < -3.99999999999999989e59 or 1.14999999999999998e-180 < x < 7.49999999999999972e-36Initial 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 j around inf 75.6%
sub-neg75.6%
*-commutative75.6%
*-commutative75.6%
sub-neg75.6%
Simplified75.6%
if -3.99999999999999989e59 < x < 1.14999999999999998e-180Initial program 70.8%
Taylor expanded in z around inf 67.5%
mul-1-neg67.5%
unsub-neg67.5%
associate-/l*63.1%
Simplified63.1%
Taylor expanded in b around inf 54.0%
*-commutative54.0%
Simplified54.0%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= i -1.6e+179)
(* j (* y (- i)))
(if (<= i -1.5e-77)
t_1
(if (<= i 4.7e-155)
(* c (- (* t j) (* z b)))
(if (<= i 1.4e-73) (* x (* y z)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (i <= -1.6e+179) {
tmp = j * (y * -i);
} else if (i <= -1.5e-77) {
tmp = t_1;
} else if (i <= 4.7e-155) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 1.4e-73) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (i <= (-1.6d+179)) then
tmp = j * (y * -i)
else if (i <= (-1.5d-77)) then
tmp = t_1
else if (i <= 4.7d-155) then
tmp = c * ((t * j) - (z * b))
else if (i <= 1.4d-73) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (i <= -1.6e+179) {
tmp = j * (y * -i);
} else if (i <= -1.5e-77) {
tmp = t_1;
} else if (i <= 4.7e-155) {
tmp = c * ((t * j) - (z * b));
} else if (i <= 1.4e-73) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if i <= -1.6e+179: tmp = j * (y * -i) elif i <= -1.5e-77: tmp = t_1 elif i <= 4.7e-155: tmp = c * ((t * j) - (z * b)) elif i <= 1.4e-73: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (i <= -1.6e+179) tmp = Float64(j * Float64(y * Float64(-i))); elseif (i <= -1.5e-77) tmp = t_1; elseif (i <= 4.7e-155) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (i <= 1.4e-73) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (i <= -1.6e+179) tmp = j * (y * -i); elseif (i <= -1.5e-77) tmp = t_1; elseif (i <= 4.7e-155) tmp = c * ((t * j) - (z * b)); elseif (i <= 1.4e-73) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.6e+179], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.5e-77], t$95$1, If[LessEqual[i, 4.7e-155], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e-73], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;i \leq -1.6 \cdot 10^{+179}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -1.5 \cdot 10^{-77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 4.7 \cdot 10^{-155}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{-73}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.6000000000000001e179Initial program 76.9%
Taylor expanded in z around inf 76.9%
mul-1-neg76.9%
unsub-neg76.9%
associate-/l*76.9%
Simplified76.9%
Taylor expanded in y around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in z around 0 62.9%
associate-*r*62.9%
neg-mul-162.9%
*-commutative62.9%
Simplified62.9%
distribute-lft-neg-out62.9%
associate-*r*73.6%
Applied egg-rr73.6%
if -1.6000000000000001e179 < i < -1.50000000000000008e-77 or 1.40000000000000006e-73 < i Initial program 63.9%
Taylor expanded in z around inf 61.0%
mul-1-neg61.0%
unsub-neg61.0%
associate-/l*57.4%
Simplified57.4%
Taylor expanded in b around inf 50.5%
*-commutative50.5%
Simplified50.5%
if -1.50000000000000008e-77 < i < 4.6999999999999998e-155Initial 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 53.5%
*-commutative53.5%
*-commutative53.5%
Simplified53.5%
if 4.6999999999999998e-155 < i < 1.40000000000000006e-73Initial program 83.5%
Taylor expanded in b around 0 89.4%
Taylor expanded in j around 0 80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in z around inf 59.2%
*-commutative59.2%
Simplified59.2%
Final simplification54.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -3e-20)
(- t_1 (* a (* x t)))
(if (<= b 2.1e+30)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(+ (* z (* x y)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3e-20) {
tmp = t_1 - (a * (x * t));
} else if (b <= 2.1e+30) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = (z * (x * y)) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-3d-20)) then
tmp = t_1 - (a * (x * t))
else if (b <= 2.1d+30) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else
tmp = (z * (x * y)) + t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3e-20) {
tmp = t_1 - (a * (x * t));
} else if (b <= 2.1e+30) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = (z * (x * y)) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3e-20: tmp = t_1 - (a * (x * t)) elif b <= 2.1e+30: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) else: tmp = (z * (x * y)) + t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3e-20) tmp = Float64(t_1 - Float64(a * Float64(x * t))); elseif (b <= 2.1e+30) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(Float64(z * Float64(x * y)) + t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3e-20) tmp = t_1 - (a * (x * t)); elseif (b <= 2.1e+30) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); else tmp = (z * (x * y)) + t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3e-20], N[(t$95$1 - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e+30], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3 \cdot 10^{-20}:\\
\;\;\;\;t\_1 - a \cdot \left(x \cdot t\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{+30}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right) + t\_1\\
\end{array}
\end{array}
if b < -3.00000000000000029e-20Initial program 57.3%
Taylor expanded in j around 0 68.1%
Taylor expanded in y around 0 73.2%
mul-1-neg73.2%
distribute-rgt-neg-in73.2%
*-commutative73.2%
distribute-rgt-neg-in73.2%
Simplified73.2%
if -3.00000000000000029e-20 < b < 2.1e30Initial program 81.1%
Taylor expanded in b around 0 82.1%
if 2.1e30 < b Initial program 65.5%
Taylor expanded in j around 0 69.3%
Taylor expanded in t around 0 69.8%
*-commutative69.8%
*-commutative69.8%
associate-*l*76.8%
Simplified76.8%
Final simplification78.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -2e+59)
(* y (* x z))
(if (<= z -4.8e-220)
(* a (* t (- x)))
(if (<= z 12500.0)
(* a (* b i))
(if (<= z 4.8e+94) (* x (* t (- a))) (* b (* z (- c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2e+59) {
tmp = y * (x * z);
} else if (z <= -4.8e-220) {
tmp = a * (t * -x);
} else if (z <= 12500.0) {
tmp = a * (b * i);
} else if (z <= 4.8e+94) {
tmp = x * (t * -a);
} else {
tmp = b * (z * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2d+59)) then
tmp = y * (x * z)
else if (z <= (-4.8d-220)) then
tmp = a * (t * -x)
else if (z <= 12500.0d0) then
tmp = a * (b * i)
else if (z <= 4.8d+94) then
tmp = x * (t * -a)
else
tmp = b * (z * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2e+59) {
tmp = y * (x * z);
} else if (z <= -4.8e-220) {
tmp = a * (t * -x);
} else if (z <= 12500.0) {
tmp = a * (b * i);
} else if (z <= 4.8e+94) {
tmp = x * (t * -a);
} else {
tmp = b * (z * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2e+59: tmp = y * (x * z) elif z <= -4.8e-220: tmp = a * (t * -x) elif z <= 12500.0: tmp = a * (b * i) elif z <= 4.8e+94: tmp = x * (t * -a) else: tmp = b * (z * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2e+59) tmp = Float64(y * Float64(x * z)); elseif (z <= -4.8e-220) tmp = Float64(a * Float64(t * Float64(-x))); elseif (z <= 12500.0) tmp = Float64(a * Float64(b * i)); elseif (z <= 4.8e+94) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = Float64(b * Float64(z * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2e+59) tmp = y * (x * z); elseif (z <= -4.8e-220) tmp = a * (t * -x); elseif (z <= 12500.0) tmp = a * (b * i); elseif (z <= 4.8e+94) tmp = x * (t * -a); else tmp = b * (z * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2e+59], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.8e-220], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 12500.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e+94], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+59}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -4.8 \cdot 10^{-220}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;z \leq 12500:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+94}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if z < -1.99999999999999994e59Initial program 70.7%
Taylor expanded in z around inf 70.7%
mul-1-neg70.7%
unsub-neg70.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in y around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in i around inf 55.5%
Taylor expanded in i around 0 56.4%
*-commutative56.4%
Simplified56.4%
if -1.99999999999999994e59 < z < -4.8000000000000003e-220Initial program 78.7%
Taylor expanded in b around 0 69.1%
Taylor expanded in j around 0 44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in z around 0 39.0%
mul-1-neg39.0%
distribute-rgt-neg-in39.0%
*-commutative39.0%
distribute-rgt-neg-in39.0%
Simplified39.0%
if -4.8000000000000003e-220 < z < 12500Initial program 78.9%
+-commutative78.9%
fma-define78.9%
*-commutative78.9%
*-commutative78.9%
cancel-sign-sub-inv78.9%
cancel-sign-sub78.9%
sub-neg78.9%
sub-neg78.9%
*-commutative78.9%
fma-neg78.9%
*-commutative78.9%
distribute-rgt-neg-out78.9%
remove-double-neg78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in i around inf 53.5%
distribute-lft-out--53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in y around 0 35.2%
*-commutative35.2%
Simplified35.2%
if 12500 < z < 4.79999999999999965e94Initial program 72.8%
Taylor expanded in b around 0 68.6%
Taylor expanded in j around 0 56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in z around 0 35.1%
mul-1-neg35.1%
*-commutative35.1%
distribute-rgt-neg-in35.1%
Simplified35.1%
if 4.79999999999999965e94 < z Initial program 43.9%
+-commutative43.9%
fma-define46.3%
*-commutative46.3%
*-commutative46.3%
cancel-sign-sub-inv46.3%
cancel-sign-sub46.3%
sub-neg46.3%
sub-neg46.3%
*-commutative46.3%
fma-neg48.8%
*-commutative48.8%
distribute-rgt-neg-out48.8%
remove-double-neg48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in c around inf 57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in t around 0 54.9%
mul-1-neg54.9%
*-commutative54.9%
distribute-rgt-neg-in54.9%
*-commutative54.9%
Simplified54.9%
Final simplification43.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -4.2e+66)
(* y (* x z))
(if (<= z -3.1e-220)
(* a (* t (- x)))
(if (<= z 3400.0)
(* a (* b i))
(if (<= z 2.3e+94) (* x (* t (- a))) (* (* z b) (- c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -4.2e+66) {
tmp = y * (x * z);
} else if (z <= -3.1e-220) {
tmp = a * (t * -x);
} else if (z <= 3400.0) {
tmp = a * (b * i);
} else if (z <= 2.3e+94) {
tmp = x * (t * -a);
} else {
tmp = (z * b) * -c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-4.2d+66)) then
tmp = y * (x * z)
else if (z <= (-3.1d-220)) then
tmp = a * (t * -x)
else if (z <= 3400.0d0) then
tmp = a * (b * i)
else if (z <= 2.3d+94) then
tmp = x * (t * -a)
else
tmp = (z * b) * -c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -4.2e+66) {
tmp = y * (x * z);
} else if (z <= -3.1e-220) {
tmp = a * (t * -x);
} else if (z <= 3400.0) {
tmp = a * (b * i);
} else if (z <= 2.3e+94) {
tmp = x * (t * -a);
} else {
tmp = (z * b) * -c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -4.2e+66: tmp = y * (x * z) elif z <= -3.1e-220: tmp = a * (t * -x) elif z <= 3400.0: tmp = a * (b * i) elif z <= 2.3e+94: tmp = x * (t * -a) else: tmp = (z * b) * -c return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -4.2e+66) tmp = Float64(y * Float64(x * z)); elseif (z <= -3.1e-220) tmp = Float64(a * Float64(t * Float64(-x))); elseif (z <= 3400.0) tmp = Float64(a * Float64(b * i)); elseif (z <= 2.3e+94) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = Float64(Float64(z * b) * Float64(-c)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -4.2e+66) tmp = y * (x * z); elseif (z <= -3.1e-220) tmp = a * (t * -x); elseif (z <= 3400.0) tmp = a * (b * i); elseif (z <= 2.3e+94) tmp = x * (t * -a); else tmp = (z * b) * -c; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4.2e+66], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.1e-220], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3400.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.3e+94], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+66}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -3.1 \cdot 10^{-220}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;z \leq 3400:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 2.3 \cdot 10^{+94}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\end{array}
\end{array}
if z < -4.20000000000000011e66Initial program 70.7%
Taylor expanded in z around inf 70.7%
mul-1-neg70.7%
unsub-neg70.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in y around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in i around inf 55.5%
Taylor expanded in i around 0 56.4%
*-commutative56.4%
Simplified56.4%
if -4.20000000000000011e66 < z < -3.10000000000000011e-220Initial program 78.7%
Taylor expanded in b around 0 69.1%
Taylor expanded in j around 0 44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in z around 0 39.0%
mul-1-neg39.0%
distribute-rgt-neg-in39.0%
*-commutative39.0%
distribute-rgt-neg-in39.0%
Simplified39.0%
if -3.10000000000000011e-220 < z < 3400Initial program 78.9%
+-commutative78.9%
fma-define78.9%
*-commutative78.9%
*-commutative78.9%
cancel-sign-sub-inv78.9%
cancel-sign-sub78.9%
sub-neg78.9%
sub-neg78.9%
*-commutative78.9%
fma-neg78.9%
*-commutative78.9%
distribute-rgt-neg-out78.9%
remove-double-neg78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in i around inf 53.5%
distribute-lft-out--53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in y around 0 35.2%
*-commutative35.2%
Simplified35.2%
if 3400 < z < 2.3e94Initial program 72.8%
Taylor expanded in b around 0 68.6%
Taylor expanded in j around 0 56.2%
*-commutative56.2%
Simplified56.2%
Taylor expanded in z around 0 35.1%
mul-1-neg35.1%
*-commutative35.1%
distribute-rgt-neg-in35.1%
Simplified35.1%
if 2.3e94 < z Initial program 43.9%
+-commutative43.9%
fma-define46.3%
*-commutative46.3%
*-commutative46.3%
cancel-sign-sub-inv46.3%
cancel-sign-sub46.3%
sub-neg46.3%
sub-neg46.3%
*-commutative46.3%
fma-neg48.8%
*-commutative48.8%
distribute-rgt-neg-out48.8%
remove-double-neg48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in c around inf 57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Taylor expanded in t around 0 52.5%
mul-1-neg52.5%
*-commutative52.5%
distribute-rgt-neg-in52.5%
Simplified52.5%
Final simplification42.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= z -8.2e+64)
t_1
(if (<= z -2.6e-220)
(* a (* t (- x)))
(if (<= z 31000000.0)
(* a (* b i))
(if (<= z 1.2e+90) t_1 (* (* z b) (- c))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (z <= -8.2e+64) {
tmp = t_1;
} else if (z <= -2.6e-220) {
tmp = a * (t * -x);
} else if (z <= 31000000.0) {
tmp = a * (b * i);
} else if (z <= 1.2e+90) {
tmp = t_1;
} else {
tmp = (z * b) * -c;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (z <= (-8.2d+64)) then
tmp = t_1
else if (z <= (-2.6d-220)) then
tmp = a * (t * -x)
else if (z <= 31000000.0d0) then
tmp = a * (b * i)
else if (z <= 1.2d+90) then
tmp = t_1
else
tmp = (z * b) * -c
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (z <= -8.2e+64) {
tmp = t_1;
} else if (z <= -2.6e-220) {
tmp = a * (t * -x);
} else if (z <= 31000000.0) {
tmp = a * (b * i);
} else if (z <= 1.2e+90) {
tmp = t_1;
} else {
tmp = (z * b) * -c;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if z <= -8.2e+64: tmp = t_1 elif z <= -2.6e-220: tmp = a * (t * -x) elif z <= 31000000.0: tmp = a * (b * i) elif z <= 1.2e+90: tmp = t_1 else: tmp = (z * b) * -c return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (z <= -8.2e+64) tmp = t_1; elseif (z <= -2.6e-220) tmp = Float64(a * Float64(t * Float64(-x))); elseif (z <= 31000000.0) tmp = Float64(a * Float64(b * i)); elseif (z <= 1.2e+90) tmp = t_1; else tmp = Float64(Float64(z * b) * Float64(-c)); 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 (z <= -8.2e+64) tmp = t_1; elseif (z <= -2.6e-220) tmp = a * (t * -x); elseif (z <= 31000000.0) tmp = a * (b * i); elseif (z <= 1.2e+90) tmp = t_1; else tmp = (z * b) * -c; 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[z, -8.2e+64], t$95$1, If[LessEqual[z, -2.6e-220], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 31000000.0], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.2e+90], t$95$1, N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -8.2 \cdot 10^{+64}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-220}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;z \leq 31000000:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\end{array}
\end{array}
if z < -8.19999999999999956e64 or 3.1e7 < z < 1.20000000000000005e90Initial program 70.1%
Taylor expanded in z around inf 70.1%
mul-1-neg70.1%
unsub-neg70.1%
associate-/l*71.6%
Simplified71.6%
Taylor expanded in y around inf 58.5%
+-commutative58.5%
mul-1-neg58.5%
unsub-neg58.5%
*-commutative58.5%
Simplified58.5%
Taylor expanded in i around inf 53.7%
Taylor expanded in i around 0 49.9%
*-commutative49.9%
Simplified49.9%
if -8.19999999999999956e64 < z < -2.6e-220Initial program 78.7%
Taylor expanded in b around 0 69.1%
Taylor expanded in j around 0 44.1%
*-commutative44.1%
Simplified44.1%
Taylor expanded in z around 0 39.0%
mul-1-neg39.0%
distribute-rgt-neg-in39.0%
*-commutative39.0%
distribute-rgt-neg-in39.0%
Simplified39.0%
if -2.6e-220 < z < 3.1e7Initial program 79.1%
+-commutative79.1%
fma-define79.1%
*-commutative79.1%
*-commutative79.1%
cancel-sign-sub-inv79.1%
cancel-sign-sub79.1%
sub-neg79.1%
sub-neg79.1%
*-commutative79.1%
fma-neg79.1%
*-commutative79.1%
distribute-rgt-neg-out79.1%
remove-double-neg79.1%
*-commutative79.1%
*-commutative79.1%
Simplified79.1%
Taylor expanded in i around inf 53.0%
distribute-lft-out--53.0%
*-commutative53.0%
Simplified53.0%
Taylor expanded in y around 0 34.8%
*-commutative34.8%
Simplified34.8%
if 1.20000000000000005e90 < z Initial program 46.5%
+-commutative46.5%
fma-define48.8%
*-commutative48.8%
*-commutative48.8%
cancel-sign-sub-inv48.8%
cancel-sign-sub48.8%
sub-neg48.8%
sub-neg48.8%
*-commutative48.8%
fma-neg51.1%
*-commutative51.1%
distribute-rgt-neg-out51.1%
remove-double-neg51.1%
*-commutative51.1%
*-commutative51.1%
Simplified51.1%
Taylor expanded in c around inf 54.6%
*-commutative54.6%
*-commutative54.6%
Simplified54.6%
Taylor expanded in t around 0 50.2%
mul-1-neg50.2%
*-commutative50.2%
distribute-rgt-neg-in50.2%
Simplified50.2%
Final simplification42.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -9e+66)
(* j (* y (- i)))
(if (<= i -1.12e-175)
(* a (* t (- x)))
(if (<= i 3.5e-156)
(* c (* t j))
(if (<= i 1.3e-72) (* x (* y z)) (* a (* b i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -9e+66) {
tmp = j * (y * -i);
} else if (i <= -1.12e-175) {
tmp = a * (t * -x);
} else if (i <= 3.5e-156) {
tmp = c * (t * j);
} else if (i <= 1.3e-72) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-9d+66)) then
tmp = j * (y * -i)
else if (i <= (-1.12d-175)) then
tmp = a * (t * -x)
else if (i <= 3.5d-156) then
tmp = c * (t * j)
else if (i <= 1.3d-72) then
tmp = x * (y * z)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -9e+66) {
tmp = j * (y * -i);
} else if (i <= -1.12e-175) {
tmp = a * (t * -x);
} else if (i <= 3.5e-156) {
tmp = c * (t * j);
} else if (i <= 1.3e-72) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -9e+66: tmp = j * (y * -i) elif i <= -1.12e-175: tmp = a * (t * -x) elif i <= 3.5e-156: tmp = c * (t * j) elif i <= 1.3e-72: tmp = x * (y * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -9e+66) tmp = Float64(j * Float64(y * Float64(-i))); elseif (i <= -1.12e-175) tmp = Float64(a * Float64(t * Float64(-x))); elseif (i <= 3.5e-156) tmp = Float64(c * Float64(t * j)); elseif (i <= 1.3e-72) tmp = Float64(x * Float64(y * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -9e+66) tmp = j * (y * -i); elseif (i <= -1.12e-175) tmp = a * (t * -x); elseif (i <= 3.5e-156) tmp = c * (t * j); elseif (i <= 1.3e-72) tmp = x * (y * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -9e+66], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.12e-175], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.5e-156], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.3e-72], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9 \cdot 10^{+66}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq -1.12 \cdot 10^{-175}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{-156}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{-72}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -8.9999999999999997e66Initial program 66.0%
Taylor expanded in z around inf 66.0%
mul-1-neg66.0%
unsub-neg66.0%
associate-/l*63.8%
Simplified63.8%
Taylor expanded in y around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in z around 0 50.3%
associate-*r*50.3%
neg-mul-150.3%
*-commutative50.3%
Simplified50.3%
distribute-lft-neg-out50.3%
associate-*r*56.3%
Applied egg-rr56.3%
if -8.9999999999999997e66 < i < -1.1200000000000001e-175Initial program 70.1%
Taylor expanded in b around 0 48.7%
Taylor expanded in j around 0 43.4%
*-commutative43.4%
Simplified43.4%
Taylor expanded in z around 0 31.6%
mul-1-neg31.6%
distribute-rgt-neg-in31.6%
*-commutative31.6%
distribute-rgt-neg-in31.6%
Simplified31.6%
if -1.1200000000000001e-175 < i < 3.4999999999999999e-156Initial program 79.9%
+-commutative79.9%
fma-define79.9%
*-commutative79.9%
*-commutative79.9%
cancel-sign-sub-inv79.9%
cancel-sign-sub79.9%
sub-neg79.9%
sub-neg79.9%
*-commutative79.9%
fma-neg79.9%
*-commutative79.9%
distribute-rgt-neg-out79.9%
remove-double-neg79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in c around inf 56.8%
*-commutative56.8%
*-commutative56.8%
Simplified56.8%
Taylor expanded in t around inf 40.6%
*-commutative40.6%
Simplified40.6%
if 3.4999999999999999e-156 < i < 1.29999999999999998e-72Initial program 83.5%
Taylor expanded in b around 0 89.4%
Taylor expanded in j around 0 80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in z around inf 59.2%
*-commutative59.2%
Simplified59.2%
if 1.29999999999999998e-72 < i Initial program 65.6%
+-commutative65.6%
fma-define66.9%
*-commutative66.9%
*-commutative66.9%
cancel-sign-sub-inv66.9%
cancel-sign-sub66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
fma-neg68.2%
*-commutative68.2%
distribute-rgt-neg-out68.2%
remove-double-neg68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in i around inf 56.3%
distribute-lft-out--56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in y around 0 36.2%
*-commutative36.2%
Simplified36.2%
Final simplification41.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -1e+92)
(* x (- (* y z) (* t a)))
(if (<= x 6.5e-35)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(* (* x z) (- y (* a (/ t z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -1e+92) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 6.5e-35) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = (x * z) * (y - (a * (t / 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 (x <= (-1d+92)) then
tmp = x * ((y * z) - (t * a))
else if (x <= 6.5d-35) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else
tmp = (x * z) * (y - (a * (t / 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 (x <= -1e+92) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 6.5e-35) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else {
tmp = (x * z) * (y - (a * (t / z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -1e+92: tmp = x * ((y * z) - (t * a)) elif x <= 6.5e-35: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) else: tmp = (x * z) * (y - (a * (t / z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -1e+92) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (x <= 6.5e-35) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); else tmp = Float64(Float64(x * z) * Float64(y - Float64(a * Float64(t / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -1e+92) tmp = x * ((y * z) - (t * a)); elseif (x <= 6.5e-35) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); else tmp = (x * z) * (y - (a * (t / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -1e+92], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 6.5e-35], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * z), $MachinePrecision] * N[(y - N[(a * N[(t / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \cdot 10^{+92}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;x \leq 6.5 \cdot 10^{-35}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot z\right) \cdot \left(y - a \cdot \frac{t}{z}\right)\\
\end{array}
\end{array}
if x < -1e92Initial program 76.7%
Taylor expanded in b around 0 72.2%
Taylor expanded in j around 0 67.5%
*-commutative67.5%
Simplified67.5%
if -1e92 < x < 6.4999999999999999e-35Initial program 72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
fma-neg72.8%
distribute-lft-neg-out72.8%
*-commutative72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
sub-neg72.8%
*-commutative72.8%
sub-neg72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in i around inf 62.1%
if 6.4999999999999999e-35 < x Initial program 65.7%
Taylor expanded in z around inf 65.7%
mul-1-neg65.7%
unsub-neg65.7%
associate-/l*64.5%
Simplified64.5%
Taylor expanded in x around inf 63.1%
associate-*r*65.7%
*-commutative65.7%
associate-*r/65.7%
Simplified65.7%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -2.4e-36)
t_1
(if (<= b 2.35e-191)
(* j (- (* t c) (* y i)))
(if (<= b 1.2e+71) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.4e-36) {
tmp = t_1;
} else if (b <= 2.35e-191) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 1.2e+71) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-2.4d-36)) then
tmp = t_1
else if (b <= 2.35d-191) then
tmp = j * ((t * c) - (y * i))
else if (b <= 1.2d+71) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.4e-36) {
tmp = t_1;
} else if (b <= 2.35e-191) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 1.2e+71) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.4e-36: tmp = t_1 elif b <= 2.35e-191: tmp = j * ((t * c) - (y * i)) elif b <= 1.2e+71: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.4e-36) tmp = t_1; elseif (b <= 2.35e-191) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 1.2e+71) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.4e-36) tmp = t_1; elseif (b <= 2.35e-191) tmp = j * ((t * c) - (y * i)); elseif (b <= 1.2e+71) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.4e-36], t$95$1, If[LessEqual[b, 2.35e-191], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.2e+71], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.4 \cdot 10^{-36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.35 \cdot 10^{-191}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 1.2 \cdot 10^{+71}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.4e-36 or 1.1999999999999999e71 < b Initial program 62.1%
Taylor expanded in z around inf 60.5%
mul-1-neg60.5%
unsub-neg60.5%
associate-/l*58.8%
Simplified58.8%
Taylor expanded in b around inf 65.8%
*-commutative65.8%
Simplified65.8%
if -2.4e-36 < b < 2.3499999999999999e-191Initial 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 j around inf 54.3%
sub-neg54.3%
*-commutative54.3%
*-commutative54.3%
sub-neg54.3%
Simplified54.3%
if 2.3499999999999999e-191 < b < 1.1999999999999999e71Initial program 81.8%
+-commutative81.8%
fma-define81.8%
*-commutative81.8%
*-commutative81.8%
cancel-sign-sub-inv81.8%
cancel-sign-sub81.8%
sub-neg81.8%
sub-neg81.8%
*-commutative81.8%
fma-neg81.8%
*-commutative81.8%
distribute-rgt-neg-out81.8%
remove-double-neg81.8%
*-commutative81.8%
*-commutative81.8%
Simplified81.8%
Taylor expanded in t around inf 55.5%
+-commutative55.5%
mul-1-neg55.5%
unsub-neg55.5%
*-commutative55.5%
Simplified55.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -3.9e-22)
t_1
(if (<= b -7.5e-214)
(* x (* y z))
(if (<= b 8.2e+71) (* c (* t j)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.9e-22) {
tmp = t_1;
} else if (b <= -7.5e-214) {
tmp = x * (y * z);
} else if (b <= 8.2e+71) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-3.9d-22)) then
tmp = t_1
else if (b <= (-7.5d-214)) then
tmp = x * (y * z)
else if (b <= 8.2d+71) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.9e-22) {
tmp = t_1;
} else if (b <= -7.5e-214) {
tmp = x * (y * z);
} else if (b <= 8.2e+71) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.9e-22: tmp = t_1 elif b <= -7.5e-214: tmp = x * (y * z) elif b <= 8.2e+71: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.9e-22) tmp = t_1; elseif (b <= -7.5e-214) tmp = Float64(x * Float64(y * z)); elseif (b <= 8.2e+71) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.9e-22) tmp = t_1; elseif (b <= -7.5e-214) tmp = x * (y * z); elseif (b <= 8.2e+71) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.9e-22], t$95$1, If[LessEqual[b, -7.5e-214], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+71], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.9 \cdot 10^{-22}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-214}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+71}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.89999999999999998e-22 or 8.2000000000000004e71 < b Initial program 61.4%
Taylor expanded in z around inf 59.8%
mul-1-neg59.8%
unsub-neg59.8%
associate-/l*58.1%
Simplified58.1%
Taylor expanded in b around inf 66.1%
*-commutative66.1%
Simplified66.1%
if -3.89999999999999998e-22 < b < -7.49999999999999966e-214Initial program 81.7%
Taylor expanded in b around 0 82.2%
Taylor expanded in j around 0 59.4%
*-commutative59.4%
Simplified59.4%
Taylor expanded in z around inf 46.5%
*-commutative46.5%
Simplified46.5%
if -7.49999999999999966e-214 < b < 8.2000000000000004e71Initial program 79.0%
+-commutative79.0%
fma-define79.0%
*-commutative79.0%
*-commutative79.0%
cancel-sign-sub-inv79.0%
cancel-sign-sub79.0%
sub-neg79.0%
sub-neg79.0%
*-commutative79.0%
fma-neg79.0%
*-commutative79.0%
distribute-rgt-neg-out79.0%
remove-double-neg79.0%
*-commutative79.0%
*-commutative79.0%
Simplified79.0%
Taylor expanded in c around inf 37.7%
*-commutative37.7%
*-commutative37.7%
Simplified37.7%
Taylor expanded in t around inf 33.9%
*-commutative33.9%
Simplified33.9%
Final simplification50.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -5.3e-42)
(* j (* y (- i)))
(if (<= i 2.1e-156)
(* c (* t j))
(if (<= i 8.5e-73) (* x (* y z)) (* a (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -5.3e-42) {
tmp = j * (y * -i);
} else if (i <= 2.1e-156) {
tmp = c * (t * j);
} else if (i <= 8.5e-73) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-5.3d-42)) then
tmp = j * (y * -i)
else if (i <= 2.1d-156) then
tmp = c * (t * j)
else if (i <= 8.5d-73) then
tmp = x * (y * z)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -5.3e-42) {
tmp = j * (y * -i);
} else if (i <= 2.1e-156) {
tmp = c * (t * j);
} else if (i <= 8.5e-73) {
tmp = x * (y * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -5.3e-42: tmp = j * (y * -i) elif i <= 2.1e-156: tmp = c * (t * j) elif i <= 8.5e-73: tmp = x * (y * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -5.3e-42) tmp = Float64(j * Float64(y * Float64(-i))); elseif (i <= 2.1e-156) tmp = Float64(c * Float64(t * j)); elseif (i <= 8.5e-73) tmp = Float64(x * Float64(y * z)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -5.3e-42) tmp = j * (y * -i); elseif (i <= 2.1e-156) tmp = c * (t * j); elseif (i <= 8.5e-73) tmp = x * (y * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -5.3e-42], N[(j * N[(y * (-i)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.1e-156], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 8.5e-73], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -5.3 \cdot 10^{-42}:\\
\;\;\;\;j \cdot \left(y \cdot \left(-i\right)\right)\\
\mathbf{elif}\;i \leq 2.1 \cdot 10^{-156}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;i \leq 8.5 \cdot 10^{-73}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -5.3e-42Initial program 66.3%
Taylor expanded in z around inf 64.9%
mul-1-neg64.9%
unsub-neg64.9%
associate-/l*62.2%
Simplified62.2%
Taylor expanded in y around inf 46.5%
+-commutative46.5%
mul-1-neg46.5%
unsub-neg46.5%
*-commutative46.5%
Simplified46.5%
Taylor expanded in z around 0 40.7%
associate-*r*40.7%
neg-mul-140.7%
*-commutative40.7%
Simplified40.7%
distribute-lft-neg-out40.7%
associate-*r*43.3%
Applied egg-rr43.3%
if -5.3e-42 < i < 2.10000000000000012e-156Initial program 78.0%
+-commutative78.0%
fma-define78.0%
*-commutative78.0%
*-commutative78.0%
cancel-sign-sub-inv78.0%
cancel-sign-sub78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
fma-neg78.0%
*-commutative78.0%
distribute-rgt-neg-out78.0%
remove-double-neg78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in c around inf 52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in t around inf 34.8%
*-commutative34.8%
Simplified34.8%
if 2.10000000000000012e-156 < i < 8.4999999999999996e-73Initial program 83.5%
Taylor expanded in b around 0 89.4%
Taylor expanded in j around 0 80.9%
*-commutative80.9%
Simplified80.9%
Taylor expanded in z around inf 59.2%
*-commutative59.2%
Simplified59.2%
if 8.4999999999999996e-73 < i Initial program 65.6%
+-commutative65.6%
fma-define66.9%
*-commutative66.9%
*-commutative66.9%
cancel-sign-sub-inv66.9%
cancel-sign-sub66.9%
sub-neg66.9%
sub-neg66.9%
*-commutative66.9%
fma-neg68.2%
*-commutative68.2%
distribute-rgt-neg-out68.2%
remove-double-neg68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in i around inf 56.3%
distribute-lft-out--56.3%
*-commutative56.3%
Simplified56.3%
Taylor expanded in y around 0 36.2%
*-commutative36.2%
Simplified36.2%
Final simplification39.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -3.5e+57)
(* y (* x z))
(if (<= z -7.8e-138)
(* c (* t j))
(if (<= z 1650000000.0) (* i (* a b)) (* x (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.5e+57) {
tmp = y * (x * z);
} else if (z <= -7.8e-138) {
tmp = c * (t * j);
} else if (z <= 1650000000.0) {
tmp = i * (a * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-3.5d+57)) then
tmp = y * (x * z)
else if (z <= (-7.8d-138)) then
tmp = c * (t * j)
else if (z <= 1650000000.0d0) then
tmp = i * (a * b)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -3.5e+57) {
tmp = y * (x * z);
} else if (z <= -7.8e-138) {
tmp = c * (t * j);
} else if (z <= 1650000000.0) {
tmp = i * (a * b);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -3.5e+57: tmp = y * (x * z) elif z <= -7.8e-138: tmp = c * (t * j) elif z <= 1650000000.0: tmp = i * (a * b) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -3.5e+57) tmp = Float64(y * Float64(x * z)); elseif (z <= -7.8e-138) tmp = Float64(c * Float64(t * j)); elseif (z <= 1650000000.0) tmp = Float64(i * Float64(a * b)); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -3.5e+57) tmp = y * (x * z); elseif (z <= -7.8e-138) tmp = c * (t * j); elseif (z <= 1650000000.0) tmp = i * (a * b); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -3.5e+57], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.8e-138], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1650000000.0], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3.5 \cdot 10^{+57}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -7.8 \cdot 10^{-138}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 1650000000:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -3.4999999999999997e57Initial program 70.7%
Taylor expanded in z around inf 70.7%
mul-1-neg70.7%
unsub-neg70.7%
associate-/l*72.8%
Simplified72.8%
Taylor expanded in y around inf 62.5%
+-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
*-commutative62.5%
Simplified62.5%
Taylor expanded in i around inf 55.5%
Taylor expanded in i around 0 56.4%
*-commutative56.4%
Simplified56.4%
if -3.4999999999999997e57 < z < -7.7999999999999999e-138Initial program 79.6%
+-commutative79.6%
fma-define79.6%
*-commutative79.6%
*-commutative79.6%
cancel-sign-sub-inv79.6%
cancel-sign-sub79.6%
sub-neg79.6%
sub-neg79.6%
*-commutative79.6%
fma-neg79.6%
*-commutative79.6%
distribute-rgt-neg-out79.6%
remove-double-neg79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in c around inf 48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in t around inf 37.7%
*-commutative37.7%
Simplified37.7%
if -7.7999999999999999e-138 < z < 1.65e9Initial program 78.7%
+-commutative78.7%
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 i around inf 51.3%
distribute-lft-out--51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in y around 0 34.2%
if 1.65e9 < z Initial program 53.3%
Taylor expanded in b around 0 49.1%
Taylor expanded in j around 0 44.9%
*-commutative44.9%
Simplified44.9%
Taylor expanded in z around inf 32.5%
*-commutative32.5%
Simplified32.5%
Final simplification38.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -2.5e+55)
t_1
(if (<= z -2.1e-137)
(* c (* t j))
(if (<= z 5800000000.0) (* i (* a 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 = x * (y * z);
double tmp;
if (z <= -2.5e+55) {
tmp = t_1;
} else if (z <= -2.1e-137) {
tmp = c * (t * j);
} else if (z <= 5800000000.0) {
tmp = i * (a * 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 = x * (y * z)
if (z <= (-2.5d+55)) then
tmp = t_1
else if (z <= (-2.1d-137)) then
tmp = c * (t * j)
else if (z <= 5800000000.0d0) then
tmp = i * (a * 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 = x * (y * z);
double tmp;
if (z <= -2.5e+55) {
tmp = t_1;
} else if (z <= -2.1e-137) {
tmp = c * (t * j);
} else if (z <= 5800000000.0) {
tmp = i * (a * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -2.5e+55: tmp = t_1 elif z <= -2.1e-137: tmp = c * (t * j) elif z <= 5800000000.0: tmp = i * (a * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -2.5e+55) tmp = t_1; elseif (z <= -2.1e-137) tmp = Float64(c * Float64(t * j)); elseif (z <= 5800000000.0) tmp = Float64(i * Float64(a * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (z <= -2.5e+55) tmp = t_1; elseif (z <= -2.1e-137) tmp = c * (t * j); elseif (z <= 5800000000.0) tmp = i * (a * 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.5e+55], t$95$1, If[LessEqual[z, -2.1e-137], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5800000000.0], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -2.5 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.1 \cdot 10^{-137}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;z \leq 5800000000:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.50000000000000023e55 or 5.8e9 < z Initial program 60.8%
Taylor expanded in b around 0 57.1%
Taylor expanded in j around 0 48.3%
*-commutative48.3%
Simplified48.3%
Taylor expanded in z around inf 41.3%
*-commutative41.3%
Simplified41.3%
if -2.50000000000000023e55 < z < -2.09999999999999992e-137Initial program 79.6%
+-commutative79.6%
fma-define79.6%
*-commutative79.6%
*-commutative79.6%
cancel-sign-sub-inv79.6%
cancel-sign-sub79.6%
sub-neg79.6%
sub-neg79.6%
*-commutative79.6%
fma-neg79.6%
*-commutative79.6%
distribute-rgt-neg-out79.6%
remove-double-neg79.6%
*-commutative79.6%
*-commutative79.6%
Simplified79.6%
Taylor expanded in c around inf 48.8%
*-commutative48.8%
*-commutative48.8%
Simplified48.8%
Taylor expanded in t around inf 37.7%
*-commutative37.7%
Simplified37.7%
if -2.09999999999999992e-137 < z < 5.8e9Initial program 78.7%
+-commutative78.7%
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 i around inf 51.3%
distribute-lft-out--51.3%
*-commutative51.3%
Simplified51.3%
Taylor expanded in y around 0 34.2%
Final simplification37.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.65e-36) (not (<= b 1.6e+61))) (* b (- (* a i) (* z c))) (* j (- (* t c) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.65e-36) || !(b <= 1.6e+61)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.65d-36)) .or. (.not. (b <= 1.6d+61))) then
tmp = b * ((a * i) - (z * c))
else
tmp = j * ((t * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.65e-36) || !(b <= 1.6e+61)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.65e-36) or not (b <= 1.6e+61): tmp = b * ((a * i) - (z * c)) else: tmp = j * ((t * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.65e-36) || !(b <= 1.6e+61)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.65e-36) || ~((b <= 1.6e+61))) tmp = b * ((a * i) - (z * c)); else tmp = j * ((t * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.65e-36], N[Not[LessEqual[b, 1.6e+61]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.65 \cdot 10^{-36} \lor \neg \left(b \leq 1.6 \cdot 10^{+61}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if b < -2.6499999999999999e-36 or 1.5999999999999999e61 < b Initial program 61.9%
Taylor expanded in z around inf 60.3%
mul-1-neg60.3%
unsub-neg60.3%
associate-/l*58.7%
Simplified58.7%
Taylor expanded in b around inf 64.7%
*-commutative64.7%
Simplified64.7%
if -2.6499999999999999e-36 < b < 1.5999999999999999e61Initial program 79.9%
+-commutative79.9%
fma-define79.9%
*-commutative79.9%
*-commutative79.9%
cancel-sign-sub-inv79.9%
cancel-sign-sub79.9%
sub-neg79.9%
sub-neg79.9%
*-commutative79.9%
fma-neg79.9%
*-commutative79.9%
distribute-rgt-neg-out79.9%
remove-double-neg79.9%
*-commutative79.9%
*-commutative79.9%
Simplified79.9%
Taylor expanded in j around inf 51.4%
sub-neg51.4%
*-commutative51.4%
*-commutative51.4%
sub-neg51.4%
Simplified51.4%
Final simplification57.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.1e+39) (not (<= b 6e+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 <= -2.1e+39) || !(b <= 6e+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 <= (-2.1d+39)) .or. (.not. (b <= 6d+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 <= -2.1e+39) || !(b <= 6e+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 <= -2.1e+39) or not (b <= 6e+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 <= -2.1e+39) || !(b <= 6e+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 <= -2.1e+39) || ~((b <= 6e+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, -2.1e+39], N[Not[LessEqual[b, 6e+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 -2.1 \cdot 10^{+39} \lor \neg \left(b \leq 6 \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 < -2.0999999999999999e39 or 6.00000000000000021e73 < b Initial program 62.4%
+-commutative62.4%
fma-define65.2%
*-commutative65.2%
*-commutative65.2%
cancel-sign-sub-inv65.2%
cancel-sign-sub65.2%
sub-neg65.2%
sub-neg65.2%
*-commutative65.2%
fma-neg66.1%
*-commutative66.1%
distribute-rgt-neg-out66.1%
remove-double-neg66.1%
*-commutative66.1%
*-commutative66.1%
Simplified66.1%
Taylor expanded in i around inf 49.7%
distribute-lft-out--49.7%
*-commutative49.7%
Simplified49.7%
Taylor expanded in y around 0 39.2%
*-commutative39.2%
Simplified39.2%
if -2.0999999999999999e39 < b < 6.00000000000000021e73Initial program 77.7%
+-commutative77.7%
fma-define77.7%
*-commutative77.7%
*-commutative77.7%
cancel-sign-sub-inv77.7%
cancel-sign-sub77.7%
sub-neg77.7%
sub-neg77.7%
*-commutative77.7%
fma-neg77.7%
*-commutative77.7%
distribute-rgt-neg-out77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in c around inf 35.7%
*-commutative35.7%
*-commutative35.7%
Simplified35.7%
Taylor expanded in t around inf 29.2%
*-commutative29.2%
Simplified29.2%
Final simplification33.4%
(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 71.2%
+-commutative71.2%
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.8%
*-commutative72.8%
distribute-rgt-neg-out72.8%
remove-double-neg72.8%
*-commutative72.8%
*-commutative72.8%
Simplified72.8%
Taylor expanded in i around inf 41.8%
distribute-lft-out--41.8%
*-commutative41.8%
Simplified41.8%
Taylor expanded in y around 0 21.1%
*-commutative21.1%
Simplified21.1%
Final simplification21.1%
(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 2024143
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* 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)))))