
(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 25 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 (* i (* j (- (/ (* t c) i) y))))))
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 = i * (j * (((t * c) / i) - y));
}
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 = i * (j * (((t * c) / i) - y));
}
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 = i * (j * (((t * c) / i) - y)) 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(i * Float64(j * Float64(Float64(Float64(t * c) / i) - y))); 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 = i * (j * (((t * c) / i) - y)); 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[(i * N[(j * N[(N[(N[(t * c), $MachinePrecision] / i), $MachinePrecision] - y), $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}:\\
\;\;\;\;i \cdot \left(j \cdot \left(\frac{t \cdot c}{i} - y\right)\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 92.2%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
+-commutative0.0%
fma-define6.4%
*-commutative6.4%
*-commutative6.4%
cancel-sign-sub-inv6.4%
cancel-sign-sub6.4%
sub-neg6.4%
sub-neg6.4%
*-commutative6.4%
fmm-def6.4%
*-commutative6.4%
distribute-rgt-neg-out6.4%
remove-double-neg6.4%
*-commutative6.4%
*-commutative6.4%
Simplified6.4%
Taylor expanded in i around inf 6.4%
*-commutative6.4%
Simplified6.4%
Taylor expanded in j around inf 50.5%
Final simplification84.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ (* j (- (* t c) (* y i))) t_1))
(t_3
(*
y
(+
(- (- (* x z) (/ (* x (* t a)) y)) (* i j))
(* a (/ (* b i) y))))))
(if (<= y -1.5e+25)
t_3
(if (<= y -3.5e-210)
t_2
(if (<= y 4.6e-143)
(+ (- (* c (* t j)) (* a (* x t))) t_1)
(if (<= y 2.5e-44) t_2 t_3))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (j * ((t * c) - (y * i))) + t_1;
double t_3 = y * ((((x * z) - ((x * (t * a)) / y)) - (i * j)) + (a * ((b * i) / y)));
double tmp;
if (y <= -1.5e+25) {
tmp = t_3;
} else if (y <= -3.5e-210) {
tmp = t_2;
} else if (y <= 4.6e-143) {
tmp = ((c * (t * j)) - (a * (x * t))) + t_1;
} else if (y <= 2.5e-44) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = (j * ((t * c) - (y * i))) + t_1
t_3 = y * ((((x * z) - ((x * (t * a)) / y)) - (i * j)) + (a * ((b * i) / y)))
if (y <= (-1.5d+25)) then
tmp = t_3
else if (y <= (-3.5d-210)) then
tmp = t_2
else if (y <= 4.6d-143) then
tmp = ((c * (t * j)) - (a * (x * t))) + t_1
else if (y <= 2.5d-44) then
tmp = t_2
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (j * ((t * c) - (y * i))) + t_1;
double t_3 = y * ((((x * z) - ((x * (t * a)) / y)) - (i * j)) + (a * ((b * i) / y)));
double tmp;
if (y <= -1.5e+25) {
tmp = t_3;
} else if (y <= -3.5e-210) {
tmp = t_2;
} else if (y <= 4.6e-143) {
tmp = ((c * (t * j)) - (a * (x * t))) + t_1;
} else if (y <= 2.5e-44) {
tmp = t_2;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = (j * ((t * c) - (y * i))) + t_1 t_3 = y * ((((x * z) - ((x * (t * a)) / y)) - (i * j)) + (a * ((b * i) / y))) tmp = 0 if y <= -1.5e+25: tmp = t_3 elif y <= -3.5e-210: tmp = t_2 elif y <= 4.6e-143: tmp = ((c * (t * j)) - (a * (x * t))) + t_1 elif y <= 2.5e-44: tmp = t_2 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + t_1) t_3 = Float64(y * Float64(Float64(Float64(Float64(x * z) - Float64(Float64(x * Float64(t * a)) / y)) - Float64(i * j)) + Float64(a * Float64(Float64(b * i) / y)))) tmp = 0.0 if (y <= -1.5e+25) tmp = t_3; elseif (y <= -3.5e-210) tmp = t_2; elseif (y <= 4.6e-143) tmp = Float64(Float64(Float64(c * Float64(t * j)) - Float64(a * Float64(x * t))) + t_1); elseif (y <= 2.5e-44) tmp = t_2; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = (j * ((t * c) - (y * i))) + t_1; t_3 = y * ((((x * z) - ((x * (t * a)) / y)) - (i * j)) + (a * ((b * i) / y))); tmp = 0.0; if (y <= -1.5e+25) tmp = t_3; elseif (y <= -3.5e-210) tmp = t_2; elseif (y <= 4.6e-143) tmp = ((c * (t * j)) - (a * (x * t))) + t_1; elseif (y <= 2.5e-44) tmp = t_2; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(y * N[(N[(N[(N[(x * z), $MachinePrecision] - N[(N[(x * N[(t * a), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.5e+25], t$95$3, If[LessEqual[y, -3.5e-210], t$95$2, If[LessEqual[y, 4.6e-143], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[y, 2.5e-44], t$95$2, t$95$3]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right) + t\_1\\
t_3 := y \cdot \left(\left(\left(x \cdot z - \frac{x \cdot \left(t \cdot a\right)}{y}\right) - i \cdot j\right) + a \cdot \frac{b \cdot i}{y}\right)\\
\mathbf{if}\;y \leq -1.5 \cdot 10^{+25}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y \leq -3.5 \cdot 10^{-210}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-143}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + t\_1\\
\mathbf{elif}\;y \leq 2.5 \cdot 10^{-44}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if y < -1.50000000000000003e25 or 2.50000000000000019e-44 < y Initial program 69.5%
Taylor expanded in c around 0 67.8%
Taylor expanded in y around inf 76.0%
sub-neg76.0%
neg-mul-176.0%
+-commutative76.0%
unsub-neg76.0%
+-commutative76.0%
mul-1-neg76.0%
unsub-neg76.0%
*-commutative76.0%
associate-*r*78.9%
*-commutative78.9%
mul-1-neg78.9%
remove-double-neg78.9%
associate-/l*80.4%
Simplified80.4%
if -1.50000000000000003e25 < y < -3.50000000000000015e-210 or 4.60000000000000023e-143 < y < 2.50000000000000019e-44Initial program 81.3%
Taylor expanded in x around 0 73.9%
if -3.50000000000000015e-210 < y < 4.60000000000000023e-143Initial program 81.8%
Taylor expanded in y around 0 79.7%
Final simplification78.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -4.2e+128)
t_1
(if (<= z 1e-230)
(+ (* x (- (* y z) (* t a))) (* a (* b i)))
(if (<= z 3.4e-156)
(* t (- (* c j) (* x a)))
(if (<= z 1.95e+186)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.2e+128) {
tmp = t_1;
} else if (z <= 1e-230) {
tmp = (x * ((y * z) - (t * a))) + (a * (b * i));
} else if (z <= 3.4e-156) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.95e+186) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * ((x * y) - (b * c))
if (z <= (-4.2d+128)) then
tmp = t_1
else if (z <= 1d-230) then
tmp = (x * ((y * z) - (t * a))) + (a * (b * i))
else if (z <= 3.4d-156) then
tmp = t * ((c * j) - (x * a))
else if (z <= 1.95d+186) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -4.2e+128) {
tmp = t_1;
} else if (z <= 1e-230) {
tmp = (x * ((y * z) - (t * a))) + (a * (b * i));
} else if (z <= 3.4e-156) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.95e+186) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * ((x * y) - (b * c)) tmp = 0 if z <= -4.2e+128: tmp = t_1 elif z <= 1e-230: tmp = (x * ((y * z) - (t * a))) + (a * (b * i)) elif z <= 3.4e-156: tmp = t * ((c * j) - (x * a)) elif z <= 1.95e+186: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -4.2e+128) tmp = t_1; elseif (z <= 1e-230) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(a * Float64(b * i))); elseif (z <= 3.4e-156) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 1.95e+186) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -4.2e+128) tmp = t_1; elseif (z <= 1e-230) tmp = (x * ((y * z) - (t * a))) + (a * (b * i)); elseif (z <= 3.4e-156) tmp = t * ((c * j) - (x * a)); elseif (z <= 1.95e+186) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+128], t$95$1, If[LessEqual[z, 1e-230], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.4e-156], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.95e+186], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+128}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 10^{-230}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;z \leq 3.4 \cdot 10^{-156}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 1.95 \cdot 10^{+186}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.1999999999999999e128 or 1.95000000000000005e186 < z Initial program 61.3%
Taylor expanded in z around inf 70.0%
*-commutative70.0%
Simplified70.0%
if -4.1999999999999999e128 < z < 1.00000000000000005e-230Initial program 80.6%
Taylor expanded in j around 0 66.9%
Taylor expanded in c around 0 66.1%
cancel-sign-sub-inv66.1%
cancel-sign-sub-inv66.1%
*-commutative66.1%
associate-*r*66.1%
neg-mul-166.1%
*-commutative66.1%
Simplified66.1%
if 1.00000000000000005e-230 < z < 3.3999999999999999e-156Initial program 74.6%
Taylor expanded in t around inf 69.9%
+-commutative69.9%
mul-1-neg69.9%
unsub-neg69.9%
*-commutative69.9%
Simplified69.9%
if 3.3999999999999999e-156 < z < 1.95000000000000005e186Initial program 79.9%
Taylor expanded in j around 0 69.7%
Taylor expanded in y around inf 69.1%
Final simplification68.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* i (- j)))))
(if (<= i -1.18e+155)
t_1
(if (<= i -2.85e-109)
(* x (* t (- a)))
(if (<= i -8.2e-273)
(* z (* x y))
(if (<= i 2.3e-171)
(* (* z b) (- c))
(if (<= i 1.8e-78) (* a (* t (- x))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double tmp;
if (i <= -1.18e+155) {
tmp = t_1;
} else if (i <= -2.85e-109) {
tmp = x * (t * -a);
} else if (i <= -8.2e-273) {
tmp = z * (x * y);
} else if (i <= 2.3e-171) {
tmp = (z * b) * -c;
} else if (i <= 1.8e-78) {
tmp = a * (t * -x);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (i * -j)
if (i <= (-1.18d+155)) then
tmp = t_1
else if (i <= (-2.85d-109)) then
tmp = x * (t * -a)
else if (i <= (-8.2d-273)) then
tmp = z * (x * y)
else if (i <= 2.3d-171) then
tmp = (z * b) * -c
else if (i <= 1.8d-78) then
tmp = a * (t * -x)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (i * -j);
double tmp;
if (i <= -1.18e+155) {
tmp = t_1;
} else if (i <= -2.85e-109) {
tmp = x * (t * -a);
} else if (i <= -8.2e-273) {
tmp = z * (x * y);
} else if (i <= 2.3e-171) {
tmp = (z * b) * -c;
} else if (i <= 1.8e-78) {
tmp = a * (t * -x);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (i * -j) tmp = 0 if i <= -1.18e+155: tmp = t_1 elif i <= -2.85e-109: tmp = x * (t * -a) elif i <= -8.2e-273: tmp = z * (x * y) elif i <= 2.3e-171: tmp = (z * b) * -c elif i <= 1.8e-78: tmp = a * (t * -x) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (i <= -1.18e+155) tmp = t_1; elseif (i <= -2.85e-109) tmp = Float64(x * Float64(t * Float64(-a))); elseif (i <= -8.2e-273) tmp = Float64(z * Float64(x * y)); elseif (i <= 2.3e-171) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (i <= 1.8e-78) tmp = Float64(a * Float64(t * Float64(-x))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (i * -j); tmp = 0.0; if (i <= -1.18e+155) tmp = t_1; elseif (i <= -2.85e-109) tmp = x * (t * -a); elseif (i <= -8.2e-273) tmp = z * (x * y); elseif (i <= 2.3e-171) tmp = (z * b) * -c; elseif (i <= 1.8e-78) tmp = a * (t * -x); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.18e+155], t$95$1, If[LessEqual[i, -2.85e-109], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -8.2e-273], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e-171], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[i, 1.8e-78], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -1.18 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2.85 \cdot 10^{-109}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;i \leq -8.2 \cdot 10^{-273}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{-171}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.18e155 or 1.8000000000000001e-78 < i Initial program 69.0%
Taylor expanded in c around 0 62.1%
Taylor expanded in a around 0 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
associate-*r*48.2%
Simplified48.2%
Taylor expanded in x around 0 40.5%
neg-mul-140.5%
associate-*r*41.1%
*-commutative41.1%
distribute-lft-neg-out41.1%
*-commutative41.1%
distribute-rgt-neg-in41.1%
Simplified41.1%
if -1.18e155 < i < -2.84999999999999989e-109Initial program 82.7%
Taylor expanded in c around 0 69.0%
Taylor expanded in i around 0 61.6%
Taylor expanded in y around 0 45.7%
mul-1-neg45.7%
distribute-lft-neg-out45.7%
*-commutative45.7%
Simplified45.7%
if -2.84999999999999989e-109 < i < -8.2000000000000008e-273Initial program 81.9%
Taylor expanded in b around inf 72.1%
Taylor expanded in y around inf 31.4%
associate-*r*34.1%
*-commutative34.1%
+-commutative34.1%
mul-1-neg34.1%
unsub-neg34.1%
associate-/l*31.0%
associate-/l*31.0%
Simplified31.0%
Taylor expanded in x around inf 34.8%
*-commutative34.8%
*-commutative34.8%
associate-*r*45.0%
Simplified45.0%
if -8.2000000000000008e-273 < i < 2.29999999999999978e-171Initial program 75.0%
Taylor expanded in c around inf 58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in t around 0 49.2%
mul-1-neg49.2%
*-commutative49.2%
distribute-rgt-neg-in49.2%
Simplified49.2%
if 2.29999999999999978e-171 < i < 1.8000000000000001e-78Initial program 77.8%
Taylor expanded in a around inf 56.5%
distribute-lft-out--56.5%
*-commutative56.5%
*-commutative56.5%
Simplified56.5%
Taylor expanded in x around inf 51.9%
associate-*r*51.9%
neg-mul-151.9%
Simplified51.9%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))) (t_2 (* y (* i (- j)))))
(if (<= i -2e+155)
t_2
(if (<= i -4.5e-106)
t_1
(if (<= i -1.8e-276)
(* z (* x y))
(if (<= i 2e-171) (* (* z b) (- c)) (if (<= i 3.7e-82) 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 * (t * -a);
double t_2 = y * (i * -j);
double tmp;
if (i <= -2e+155) {
tmp = t_2;
} else if (i <= -4.5e-106) {
tmp = t_1;
} else if (i <= -1.8e-276) {
tmp = z * (x * y);
} else if (i <= 2e-171) {
tmp = (z * b) * -c;
} else if (i <= 3.7e-82) {
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 * (t * -a)
t_2 = y * (i * -j)
if (i <= (-2d+155)) then
tmp = t_2
else if (i <= (-4.5d-106)) then
tmp = t_1
else if (i <= (-1.8d-276)) then
tmp = z * (x * y)
else if (i <= 2d-171) then
tmp = (z * b) * -c
else if (i <= 3.7d-82) 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 * (t * -a);
double t_2 = y * (i * -j);
double tmp;
if (i <= -2e+155) {
tmp = t_2;
} else if (i <= -4.5e-106) {
tmp = t_1;
} else if (i <= -1.8e-276) {
tmp = z * (x * y);
} else if (i <= 2e-171) {
tmp = (z * b) * -c;
} else if (i <= 3.7e-82) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) t_2 = y * (i * -j) tmp = 0 if i <= -2e+155: tmp = t_2 elif i <= -4.5e-106: tmp = t_1 elif i <= -1.8e-276: tmp = z * (x * y) elif i <= 2e-171: tmp = (z * b) * -c elif i <= 3.7e-82: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) t_2 = Float64(y * Float64(i * Float64(-j))) tmp = 0.0 if (i <= -2e+155) tmp = t_2; elseif (i <= -4.5e-106) tmp = t_1; elseif (i <= -1.8e-276) tmp = Float64(z * Float64(x * y)); elseif (i <= 2e-171) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (i <= 3.7e-82) 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 * (t * -a); t_2 = y * (i * -j); tmp = 0.0; if (i <= -2e+155) tmp = t_2; elseif (i <= -4.5e-106) tmp = t_1; elseif (i <= -1.8e-276) tmp = z * (x * y); elseif (i <= 2e-171) tmp = (z * b) * -c; elseif (i <= 3.7e-82) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2e+155], t$95$2, If[LessEqual[i, -4.5e-106], t$95$1, If[LessEqual[i, -1.8e-276], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e-171], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[i, 3.7e-82], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
t_2 := y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -2 \cdot 10^{+155}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.8 \cdot 10^{-276}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{-171}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;i \leq 3.7 \cdot 10^{-82}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -2.00000000000000001e155 or 3.7000000000000001e-82 < i Initial program 69.0%
Taylor expanded in c around 0 62.1%
Taylor expanded in a around 0 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
associate-*r*48.2%
Simplified48.2%
Taylor expanded in x around 0 40.5%
neg-mul-140.5%
associate-*r*41.1%
*-commutative41.1%
distribute-lft-neg-out41.1%
*-commutative41.1%
distribute-rgt-neg-in41.1%
Simplified41.1%
if -2.00000000000000001e155 < i < -4.49999999999999955e-106 or 2e-171 < i < 3.7000000000000001e-82Initial program 81.3%
Taylor expanded in c around 0 67.7%
Taylor expanded in i around 0 62.5%
Taylor expanded in y around 0 46.3%
mul-1-neg46.3%
distribute-lft-neg-out46.3%
*-commutative46.3%
Simplified46.3%
if -4.49999999999999955e-106 < i < -1.79999999999999997e-276Initial program 81.9%
Taylor expanded in b around inf 72.1%
Taylor expanded in y around inf 31.4%
associate-*r*34.1%
*-commutative34.1%
+-commutative34.1%
mul-1-neg34.1%
unsub-neg34.1%
associate-/l*31.0%
associate-/l*31.0%
Simplified31.0%
Taylor expanded in x around inf 34.8%
*-commutative34.8%
*-commutative34.8%
associate-*r*45.0%
Simplified45.0%
if -1.79999999999999997e-276 < i < 2e-171Initial program 75.0%
Taylor expanded in c around inf 58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in t around 0 49.2%
mul-1-neg49.2%
*-commutative49.2%
distribute-rgt-neg-in49.2%
Simplified49.2%
Final simplification44.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* t (- a)))) (t_2 (* i (* y (- j)))))
(if (<= i -1.5e+155)
t_2
(if (<= i -6.2e-106)
t_1
(if (<= i -3e-263)
(* z (* x y))
(if (<= i 3.35e-171)
(* (* z b) (- c))
(if (<= i 2.15e-79) 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 * (t * -a);
double t_2 = i * (y * -j);
double tmp;
if (i <= -1.5e+155) {
tmp = t_2;
} else if (i <= -6.2e-106) {
tmp = t_1;
} else if (i <= -3e-263) {
tmp = z * (x * y);
} else if (i <= 3.35e-171) {
tmp = (z * b) * -c;
} else if (i <= 2.15e-79) {
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 * (t * -a)
t_2 = i * (y * -j)
if (i <= (-1.5d+155)) then
tmp = t_2
else if (i <= (-6.2d-106)) then
tmp = t_1
else if (i <= (-3d-263)) then
tmp = z * (x * y)
else if (i <= 3.35d-171) then
tmp = (z * b) * -c
else if (i <= 2.15d-79) 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 * (t * -a);
double t_2 = i * (y * -j);
double tmp;
if (i <= -1.5e+155) {
tmp = t_2;
} else if (i <= -6.2e-106) {
tmp = t_1;
} else if (i <= -3e-263) {
tmp = z * (x * y);
} else if (i <= 3.35e-171) {
tmp = (z * b) * -c;
} else if (i <= 2.15e-79) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (t * -a) t_2 = i * (y * -j) tmp = 0 if i <= -1.5e+155: tmp = t_2 elif i <= -6.2e-106: tmp = t_1 elif i <= -3e-263: tmp = z * (x * y) elif i <= 3.35e-171: tmp = (z * b) * -c elif i <= 2.15e-79: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(t * Float64(-a))) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (i <= -1.5e+155) tmp = t_2; elseif (i <= -6.2e-106) tmp = t_1; elseif (i <= -3e-263) tmp = Float64(z * Float64(x * y)); elseif (i <= 3.35e-171) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (i <= 2.15e-79) 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 * (t * -a); t_2 = i * (y * -j); tmp = 0.0; if (i <= -1.5e+155) tmp = t_2; elseif (i <= -6.2e-106) tmp = t_1; elseif (i <= -3e-263) tmp = z * (x * y); elseif (i <= 3.35e-171) tmp = (z * b) * -c; elseif (i <= 2.15e-79) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.5e+155], t$95$2, If[LessEqual[i, -6.2e-106], t$95$1, If[LessEqual[i, -3e-263], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.35e-171], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[i, 2.15e-79], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot \left(-a\right)\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -1.5 \cdot 10^{+155}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -6.2 \cdot 10^{-106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -3 \cdot 10^{-263}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;i \leq 3.35 \cdot 10^{-171}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;i \leq 2.15 \cdot 10^{-79}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -1.5000000000000001e155 or 2.14999999999999991e-79 < i Initial program 69.0%
Taylor expanded in c around 0 62.1%
Taylor expanded in a around 0 47.6%
+-commutative47.6%
mul-1-neg47.6%
unsub-neg47.6%
associate-*r*48.2%
Simplified48.2%
Taylor expanded in x around 0 40.5%
neg-mul-140.5%
distribute-rgt-neg-in40.5%
distribute-lft-neg-in40.5%
Simplified40.5%
if -1.5000000000000001e155 < i < -6.19999999999999971e-106 or 3.34999999999999981e-171 < i < 2.14999999999999991e-79Initial program 81.3%
Taylor expanded in c around 0 67.7%
Taylor expanded in i around 0 62.5%
Taylor expanded in y around 0 46.3%
mul-1-neg46.3%
distribute-lft-neg-out46.3%
*-commutative46.3%
Simplified46.3%
if -6.19999999999999971e-106 < i < -3e-263Initial program 81.9%
Taylor expanded in b around inf 72.1%
Taylor expanded in y around inf 31.4%
associate-*r*34.1%
*-commutative34.1%
+-commutative34.1%
mul-1-neg34.1%
unsub-neg34.1%
associate-/l*31.0%
associate-/l*31.0%
Simplified31.0%
Taylor expanded in x around inf 34.8%
*-commutative34.8%
*-commutative34.8%
associate-*r*45.0%
Simplified45.0%
if -3e-263 < i < 3.34999999999999981e-171Initial program 75.0%
Taylor expanded in c around inf 58.9%
*-commutative58.9%
*-commutative58.9%
Simplified58.9%
Taylor expanded in t around 0 49.2%
mul-1-neg49.2%
*-commutative49.2%
distribute-rgt-neg-in49.2%
Simplified49.2%
Final simplification44.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* x y))) (t_2 (* i (* y (- j)))))
(if (<= i -4e+164)
t_2
(if (<= i -2.65e-80)
(* b (* a i))
(if (<= i -4.5e-273)
t_1
(if (<= i 1.7e-165)
(* (* z b) (- c))
(if (<= i 2.3e-27) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = i * (y * -j);
double tmp;
if (i <= -4e+164) {
tmp = t_2;
} else if (i <= -2.65e-80) {
tmp = b * (a * i);
} else if (i <= -4.5e-273) {
tmp = t_1;
} else if (i <= 1.7e-165) {
tmp = (z * b) * -c;
} else if (i <= 2.3e-27) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = z * (x * y)
t_2 = i * (y * -j)
if (i <= (-4d+164)) then
tmp = t_2
else if (i <= (-2.65d-80)) then
tmp = b * (a * i)
else if (i <= (-4.5d-273)) then
tmp = t_1
else if (i <= 1.7d-165) then
tmp = (z * b) * -c
else if (i <= 2.3d-27) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (x * y);
double t_2 = i * (y * -j);
double tmp;
if (i <= -4e+164) {
tmp = t_2;
} else if (i <= -2.65e-80) {
tmp = b * (a * i);
} else if (i <= -4.5e-273) {
tmp = t_1;
} else if (i <= 1.7e-165) {
tmp = (z * b) * -c;
} else if (i <= 2.3e-27) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (x * y) t_2 = i * (y * -j) tmp = 0 if i <= -4e+164: tmp = t_2 elif i <= -2.65e-80: tmp = b * (a * i) elif i <= -4.5e-273: tmp = t_1 elif i <= 1.7e-165: tmp = (z * b) * -c elif i <= 2.3e-27: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(x * y)) t_2 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (i <= -4e+164) tmp = t_2; elseif (i <= -2.65e-80) tmp = Float64(b * Float64(a * i)); elseif (i <= -4.5e-273) tmp = t_1; elseif (i <= 1.7e-165) tmp = Float64(Float64(z * b) * Float64(-c)); elseif (i <= 2.3e-27) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (x * y); t_2 = i * (y * -j); tmp = 0.0; if (i <= -4e+164) tmp = t_2; elseif (i <= -2.65e-80) tmp = b * (a * i); elseif (i <= -4.5e-273) tmp = t_1; elseif (i <= 1.7e-165) tmp = (z * b) * -c; elseif (i <= 2.3e-27) 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[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4e+164], t$95$2, If[LessEqual[i, -2.65e-80], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.5e-273], t$95$1, If[LessEqual[i, 1.7e-165], N[(N[(z * b), $MachinePrecision] * (-c)), $MachinePrecision], If[LessEqual[i, 2.3e-27], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y\right)\\
t_2 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;i \leq -4 \cdot 10^{+164}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -2.65 \cdot 10^{-80}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;i \leq -4.5 \cdot 10^{-273}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.7 \cdot 10^{-165}:\\
\;\;\;\;\left(z \cdot b\right) \cdot \left(-c\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{-27}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -4e164 or 2.2999999999999999e-27 < i Initial program 68.2%
Taylor expanded in c around 0 64.2%
Taylor expanded in a around 0 50.2%
+-commutative50.2%
mul-1-neg50.2%
unsub-neg50.2%
associate-*r*50.8%
Simplified50.8%
Taylor expanded in x around 0 43.3%
neg-mul-143.3%
distribute-rgt-neg-in43.3%
distribute-lft-neg-in43.3%
Simplified43.3%
if -4e164 < i < -2.65000000000000013e-80Initial program 84.3%
Taylor expanded in b around inf 46.8%
*-commutative46.8%
Simplified46.8%
Taylor expanded in a around inf 28.2%
*-commutative28.2%
Simplified28.2%
if -2.65000000000000013e-80 < i < -4.4999999999999996e-273 or 1.7e-165 < i < 2.2999999999999999e-27Initial program 79.7%
Taylor expanded in b around inf 71.1%
Taylor expanded in y around inf 32.1%
associate-*r*33.2%
*-commutative33.2%
+-commutative33.2%
mul-1-neg33.2%
unsub-neg33.2%
associate-/l*31.7%
associate-/l*31.7%
Simplified31.7%
Taylor expanded in x around inf 32.2%
*-commutative32.2%
*-commutative32.2%
associate-*r*38.5%
Simplified38.5%
if -4.4999999999999996e-273 < i < 1.7e-165Initial program 73.7%
Taylor expanded in c around inf 55.8%
*-commutative55.8%
*-commutative55.8%
Simplified55.8%
Taylor expanded in t around 0 46.6%
mul-1-neg46.6%
*-commutative46.6%
distribute-rgt-neg-in46.6%
Simplified46.6%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -6e+155)
(* i (- (* a b) (* y j)))
(if (<= i -3.1e+69)
(* b (* a (- i (/ (* z c) a))))
(if (<= i 3.2e-82)
(* x (- (* y z) (* t a)))
(if (<= i 2e-23)
(* z (- (* x y) (* b c)))
(* (* b i) (- a (* j (/ y b)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -6e+155) {
tmp = i * ((a * b) - (y * j));
} else if (i <= -3.1e+69) {
tmp = b * (a * (i - ((z * c) / a)));
} else if (i <= 3.2e-82) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 2e-23) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (b * i) * (a - (j * (y / b)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-6d+155)) then
tmp = i * ((a * b) - (y * j))
else if (i <= (-3.1d+69)) then
tmp = b * (a * (i - ((z * c) / a)))
else if (i <= 3.2d-82) then
tmp = x * ((y * z) - (t * a))
else if (i <= 2d-23) then
tmp = z * ((x * y) - (b * c))
else
tmp = (b * i) * (a - (j * (y / b)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -6e+155) {
tmp = i * ((a * b) - (y * j));
} else if (i <= -3.1e+69) {
tmp = b * (a * (i - ((z * c) / a)));
} else if (i <= 3.2e-82) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 2e-23) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (b * i) * (a - (j * (y / b)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -6e+155: tmp = i * ((a * b) - (y * j)) elif i <= -3.1e+69: tmp = b * (a * (i - ((z * c) / a))) elif i <= 3.2e-82: tmp = x * ((y * z) - (t * a)) elif i <= 2e-23: tmp = z * ((x * y) - (b * c)) else: tmp = (b * i) * (a - (j * (y / b))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -6e+155) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); elseif (i <= -3.1e+69) tmp = Float64(b * Float64(a * Float64(i - Float64(Float64(z * c) / a)))); elseif (i <= 3.2e-82) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 2e-23) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(Float64(b * i) * Float64(a - Float64(j * Float64(y / b)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -6e+155) tmp = i * ((a * b) - (y * j)); elseif (i <= -3.1e+69) tmp = b * (a * (i - ((z * c) / a))); elseif (i <= 3.2e-82) tmp = x * ((y * z) - (t * a)); elseif (i <= 2e-23) tmp = z * ((x * y) - (b * c)); else tmp = (b * i) * (a - (j * (y / b))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -6e+155], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.1e+69], N[(b * N[(a * N[(i - N[(N[(z * c), $MachinePrecision] / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.2e-82], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2e-23], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * i), $MachinePrecision] * N[(a - N[(j * N[(y / b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{elif}\;i \leq -3.1 \cdot 10^{+69}:\\
\;\;\;\;b \cdot \left(a \cdot \left(i - \frac{z \cdot c}{a}\right)\right)\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{-82}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 2 \cdot 10^{-23}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot i\right) \cdot \left(a - j \cdot \frac{y}{b}\right)\\
\end{array}
\end{array}
if i < -6.0000000000000003e155Initial program 63.3%
Taylor expanded in i around inf 63.4%
distribute-lft-out--63.4%
*-commutative63.4%
Simplified63.4%
if -6.0000000000000003e155 < i < -3.0999999999999998e69Initial program 83.1%
Taylor expanded in b around inf 58.8%
*-commutative58.8%
Simplified58.8%
Taylor expanded in a around inf 74.6%
associate-*r/74.6%
neg-mul-174.6%
distribute-rgt-neg-in74.6%
Simplified74.6%
if -3.0999999999999998e69 < i < 3.2000000000000001e-82Initial program 79.6%
Taylor expanded in c around 0 59.9%
Taylor expanded in i around 0 60.0%
if 3.2000000000000001e-82 < i < 1.99999999999999992e-23Initial program 75.4%
Taylor expanded in z around inf 66.9%
*-commutative66.9%
Simplified66.9%
if 1.99999999999999992e-23 < i Initial program 70.5%
Taylor expanded in b around inf 64.6%
Taylor expanded in i around inf 59.7%
associate-*r*62.5%
*-commutative62.5%
mul-1-neg62.5%
unsub-neg62.5%
associate-/l*67.1%
Simplified67.1%
Final simplification63.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= b -9.4e+52)
(+ t_2 t_1)
(if (<= b 1.8e-22)
(+ (* x (- (* y z) (* t a))) t_2)
(+ (- (* c (* t j)) (* a (* x t))) 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 t_2 = j * ((t * c) - (y * i));
double tmp;
if (b <= -9.4e+52) {
tmp = t_2 + t_1;
} else if (b <= 1.8e-22) {
tmp = (x * ((y * z) - (t * a))) + t_2;
} else {
tmp = ((c * (t * j)) - (a * (x * t))) + t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = j * ((t * c) - (y * i))
if (b <= (-9.4d+52)) then
tmp = t_2 + t_1
else if (b <= 1.8d-22) then
tmp = (x * ((y * z) - (t * a))) + t_2
else
tmp = ((c * (t * j)) - (a * (x * t))) + 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 t_2 = j * ((t * c) - (y * i));
double tmp;
if (b <= -9.4e+52) {
tmp = t_2 + t_1;
} else if (b <= 1.8e-22) {
tmp = (x * ((y * z) - (t * a))) + t_2;
} else {
tmp = ((c * (t * j)) - (a * (x * t))) + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = j * ((t * c) - (y * i)) tmp = 0 if b <= -9.4e+52: tmp = t_2 + t_1 elif b <= 1.8e-22: tmp = (x * ((y * z) - (t * a))) + t_2 else: tmp = ((c * (t * j)) - (a * (x * t))) + 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))) t_2 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (b <= -9.4e+52) tmp = Float64(t_2 + t_1); elseif (b <= 1.8e-22) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_2); else tmp = Float64(Float64(Float64(c * Float64(t * j)) - Float64(a * Float64(x * t))) + 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)); t_2 = j * ((t * c) - (y * i)); tmp = 0.0; if (b <= -9.4e+52) tmp = t_2 + t_1; elseif (b <= 1.8e-22) tmp = (x * ((y * z) - (t * a))) + t_2; else tmp = ((c * (t * j)) - (a * (x * t))) + 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]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.4e+52], N[(t$95$2 + t$95$1), $MachinePrecision], If[LessEqual[b, 1.8e-22], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] - N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -9.4 \cdot 10^{+52}:\\
\;\;\;\;t\_2 + t\_1\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-22}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot \left(t \cdot j\right) - a \cdot \left(x \cdot t\right)\right) + t\_1\\
\end{array}
\end{array}
if b < -9.3999999999999999e52Initial program 76.4%
Taylor expanded in x around 0 80.9%
if -9.3999999999999999e52 < b < 1.7999999999999999e-22Initial program 75.7%
Taylor expanded in b around 0 75.5%
if 1.7999999999999999e-22 < b Initial program 73.6%
Taylor expanded in y around 0 68.7%
Final simplification74.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -9.5e-38)
(* (* i j) (- (* c (/ t i)) y))
(if (<= j 5e-164)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(if (<= j 2.9e+174)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(* i (* j (- (/ (* t c) i) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e-38) {
tmp = (i * j) * ((c * (t / i)) - y);
} else if (j <= 5e-164) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (j <= 2.9e+174) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = i * (j * (((t * c) / i) - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-9.5d-38)) then
tmp = (i * j) * ((c * (t / i)) - y)
else if (j <= 5d-164) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else if (j <= 2.9d+174) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else
tmp = i * (j * (((t * c) / i) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -9.5e-38) {
tmp = (i * j) * ((c * (t / i)) - y);
} else if (j <= 5e-164) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (j <= 2.9e+174) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = i * (j * (((t * c) / i) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -9.5e-38: tmp = (i * j) * ((c * (t / i)) - y) elif j <= 5e-164: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) elif j <= 2.9e+174: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) else: tmp = i * (j * (((t * c) / i) - y)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -9.5e-38) tmp = Float64(Float64(i * j) * Float64(Float64(c * Float64(t / i)) - y)); elseif (j <= 5e-164) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); elseif (j <= 2.9e+174) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(i * Float64(j * Float64(Float64(Float64(t * c) / i) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -9.5e-38) tmp = (i * j) * ((c * (t / i)) - y); elseif (j <= 5e-164) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); elseif (j <= 2.9e+174) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); else tmp = i * (j * (((t * c) / i) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -9.5e-38], N[(N[(i * j), $MachinePrecision] * N[(N[(c * N[(t / i), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e-164], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.9e+174], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * N[(N[(N[(t * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -9.5 \cdot 10^{-38}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(c \cdot \frac{t}{i} - y\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{-164}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;j \leq 2.9 \cdot 10^{+174}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(j \cdot \left(\frac{t \cdot c}{i} - y\right)\right)\\
\end{array}
\end{array}
if j < -9.5000000000000009e-38Initial program 70.2%
+-commutative70.2%
fma-define70.2%
*-commutative70.2%
*-commutative70.2%
cancel-sign-sub-inv70.2%
cancel-sign-sub70.2%
sub-neg70.2%
sub-neg70.2%
*-commutative70.2%
fmm-def70.2%
*-commutative70.2%
distribute-rgt-neg-out70.2%
remove-double-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in i around inf 69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in j around inf 61.8%
associate-*r*59.3%
associate-/l*61.9%
Simplified61.9%
if -9.5000000000000009e-38 < j < 4.99999999999999962e-164Initial program 77.3%
Taylor expanded in j around 0 74.5%
Taylor expanded in i around 0 69.4%
cancel-sign-sub-inv69.4%
cancel-sign-sub-inv69.4%
*-commutative69.4%
Simplified69.4%
if 4.99999999999999962e-164 < j < 2.9e174Initial program 75.6%
Taylor expanded in j around 0 67.7%
Taylor expanded in y around inf 62.2%
if 2.9e174 < j Initial program 84.8%
+-commutative84.8%
fma-define89.8%
*-commutative89.8%
*-commutative89.8%
cancel-sign-sub-inv89.8%
cancel-sign-sub89.8%
sub-neg89.8%
sub-neg89.8%
*-commutative89.8%
fmm-def89.8%
*-commutative89.8%
distribute-rgt-neg-out89.8%
remove-double-neg89.8%
*-commutative89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in i around inf 89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in j around inf 85.6%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= j -1.4e-37)
(* (* i j) (- (* c (/ t i)) y))
(if (<= j -3.05e-266)
(* x (- (* y z) (* t a)))
(if (<= j 7.5e+186)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(* i (* j (- (/ (* t c) i) y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.4e-37) {
tmp = (i * j) * ((c * (t / i)) - y);
} else if (j <= -3.05e-266) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 7.5e+186) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = i * (j * (((t * c) / i) - y));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (j <= (-1.4d-37)) then
tmp = (i * j) * ((c * (t / i)) - y)
else if (j <= (-3.05d-266)) then
tmp = x * ((y * z) - (t * a))
else if (j <= 7.5d+186) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else
tmp = i * (j * (((t * c) / i) - y))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (j <= -1.4e-37) {
tmp = (i * j) * ((c * (t / i)) - y);
} else if (j <= -3.05e-266) {
tmp = x * ((y * z) - (t * a));
} else if (j <= 7.5e+186) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else {
tmp = i * (j * (((t * c) / i) - y));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -1.4e-37: tmp = (i * j) * ((c * (t / i)) - y) elif j <= -3.05e-266: tmp = x * ((y * z) - (t * a)) elif j <= 7.5e+186: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) else: tmp = i * (j * (((t * c) / i) - y)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -1.4e-37) tmp = Float64(Float64(i * j) * Float64(Float64(c * Float64(t / i)) - y)); elseif (j <= -3.05e-266) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (j <= 7.5e+186) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(i * Float64(j * Float64(Float64(Float64(t * c) / i) - y))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (j <= -1.4e-37) tmp = (i * j) * ((c * (t / i)) - y); elseif (j <= -3.05e-266) tmp = x * ((y * z) - (t * a)); elseif (j <= 7.5e+186) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); else tmp = i * (j * (((t * c) / i) - y)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -1.4e-37], N[(N[(i * j), $MachinePrecision] * N[(N[(c * N[(t / i), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.05e-266], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.5e+186], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(j * N[(N[(N[(t * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.4 \cdot 10^{-37}:\\
\;\;\;\;\left(i \cdot j\right) \cdot \left(c \cdot \frac{t}{i} - y\right)\\
\mathbf{elif}\;j \leq -3.05 \cdot 10^{-266}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;j \leq 7.5 \cdot 10^{+186}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(j \cdot \left(\frac{t \cdot c}{i} - y\right)\right)\\
\end{array}
\end{array}
if j < -1.4000000000000001e-37Initial program 70.2%
+-commutative70.2%
fma-define70.2%
*-commutative70.2%
*-commutative70.2%
cancel-sign-sub-inv70.2%
cancel-sign-sub70.2%
sub-neg70.2%
sub-neg70.2%
*-commutative70.2%
fmm-def70.2%
*-commutative70.2%
distribute-rgt-neg-out70.2%
remove-double-neg70.2%
*-commutative70.2%
*-commutative70.2%
Simplified70.2%
Taylor expanded in i around inf 69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in j around inf 61.8%
associate-*r*59.3%
associate-/l*61.9%
Simplified61.9%
if -1.4000000000000001e-37 < j < -3.05e-266Initial program 82.5%
Taylor expanded in c around 0 74.8%
Taylor expanded in i around 0 65.0%
if -3.05e-266 < j < 7.4999999999999998e186Initial program 74.2%
Taylor expanded in j around 0 68.6%
Taylor expanded in y around inf 61.0%
if 7.4999999999999998e186 < j Initial program 84.8%
+-commutative84.8%
fma-define89.8%
*-commutative89.8%
*-commutative89.8%
cancel-sign-sub-inv89.8%
cancel-sign-sub89.8%
sub-neg89.8%
sub-neg89.8%
*-commutative89.8%
fmm-def89.8%
*-commutative89.8%
distribute-rgt-neg-out89.8%
remove-double-neg89.8%
*-commutative89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in i around inf 89.8%
*-commutative89.8%
Simplified89.8%
Taylor expanded in j around inf 85.6%
Final simplification63.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* b (- (* a i) (* z c)))))
(if (<= b -4.3e+117)
t_2
(if (<= b -3.2e-302)
t_1
(if (<= b 4.8e-122)
(* i (* j (- (/ (* t c) i) y)))
(if (<= b 2.85e+60) 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));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.3e+117) {
tmp = t_2;
} else if (b <= -3.2e-302) {
tmp = t_1;
} else if (b <= 4.8e-122) {
tmp = i * (j * (((t * c) / i) - y));
} else if (b <= 2.85e+60) {
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))
t_2 = b * ((a * i) - (z * c))
if (b <= (-4.3d+117)) then
tmp = t_2
else if (b <= (-3.2d-302)) then
tmp = t_1
else if (b <= 4.8d-122) then
tmp = i * (j * (((t * c) / i) - y))
else if (b <= 2.85d+60) 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));
double t_2 = b * ((a * i) - (z * c));
double tmp;
if (b <= -4.3e+117) {
tmp = t_2;
} else if (b <= -3.2e-302) {
tmp = t_1;
} else if (b <= 4.8e-122) {
tmp = i * (j * (((t * c) / i) - y));
} else if (b <= 2.85e+60) {
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)) t_2 = b * ((a * i) - (z * c)) tmp = 0 if b <= -4.3e+117: tmp = t_2 elif b <= -3.2e-302: tmp = t_1 elif b <= 4.8e-122: tmp = i * (j * (((t * c) / i) - y)) elif b <= 2.85e+60: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) t_2 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.3e+117) tmp = t_2; elseif (b <= -3.2e-302) tmp = t_1; elseif (b <= 4.8e-122) tmp = Float64(i * Float64(j * Float64(Float64(Float64(t * c) / i) - y))); elseif (b <= 2.85e+60) 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)); t_2 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -4.3e+117) tmp = t_2; elseif (b <= -3.2e-302) tmp = t_1; elseif (b <= 4.8e-122) tmp = i * (j * (((t * c) / i) - y)); elseif (b <= 2.85e+60) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.3e+117], t$95$2, If[LessEqual[b, -3.2e-302], t$95$1, If[LessEqual[b, 4.8e-122], N[(i * N[(j * N[(N[(N[(t * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.85e+60], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
t_2 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.3 \cdot 10^{+117}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.2 \cdot 10^{-302}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-122}:\\
\;\;\;\;i \cdot \left(j \cdot \left(\frac{t \cdot c}{i} - y\right)\right)\\
\mathbf{elif}\;b \leq 2.85 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -4.29999999999999998e117 or 2.84999999999999989e60 < b Initial program 73.9%
Taylor expanded in b around inf 69.9%
*-commutative69.9%
Simplified69.9%
if -4.29999999999999998e117 < b < -3.19999999999999978e-302 or 4.79999999999999975e-122 < b < 2.84999999999999989e60Initial program 77.1%
Taylor expanded in c around 0 66.2%
Taylor expanded in i around 0 60.0%
if -3.19999999999999978e-302 < b < 4.79999999999999975e-122Initial program 72.6%
+-commutative72.6%
fma-define74.9%
*-commutative74.9%
*-commutative74.9%
cancel-sign-sub-inv74.9%
cancel-sign-sub74.9%
sub-neg74.9%
sub-neg74.9%
*-commutative74.9%
fmm-def74.9%
*-commutative74.9%
distribute-rgt-neg-out74.9%
remove-double-neg74.9%
*-commutative74.9%
*-commutative74.9%
Simplified74.9%
Taylor expanded in i around inf 70.3%
*-commutative70.3%
Simplified70.3%
Taylor expanded in j around inf 60.5%
Final simplification63.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= b -4.5e+52)
(+ t_1 (* b (- (* a i) (* z c))))
(if (<= b 1.8e-21)
(+ (* x (- (* y z) (* t a))) t_1)
(* b (- (- (* a i) (/ (* a (* x t)) b)) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double tmp;
if (b <= -4.5e+52) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (b <= 1.8e-21) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = b * (((a * i) - ((a * (x * t)) / 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) :: t_1
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
if (b <= (-4.5d+52)) then
tmp = t_1 + (b * ((a * i) - (z * c)))
else if (b <= 1.8d-21) then
tmp = (x * ((y * z) - (t * a))) + t_1
else
tmp = b * (((a * i) - ((a * (x * t)) / 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 t_1 = j * ((t * c) - (y * i));
double tmp;
if (b <= -4.5e+52) {
tmp = t_1 + (b * ((a * i) - (z * c)));
} else if (b <= 1.8e-21) {
tmp = (x * ((y * z) - (t * a))) + t_1;
} else {
tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) tmp = 0 if b <= -4.5e+52: tmp = t_1 + (b * ((a * i) - (z * c))) elif b <= 1.8e-21: tmp = (x * ((y * z) - (t * a))) + t_1 else: tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c)) 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 (b <= -4.5e+52) tmp = Float64(t_1 + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (b <= 1.8e-21) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1); else tmp = Float64(b * Float64(Float64(Float64(a * i) - Float64(Float64(a * Float64(x * t)) / b)) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); tmp = 0.0; if (b <= -4.5e+52) tmp = t_1 + (b * ((a * i) - (z * c))); elseif (b <= 1.8e-21) tmp = (x * ((y * z) - (t * a))) + t_1; else tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e+52], N[(t$95$1 + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.8e-21], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(b * N[(N[(N[(a * i), $MachinePrecision] - N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{+52}:\\
\;\;\;\;t\_1 + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq 1.8 \cdot 10^{-21}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(a \cdot i - \frac{a \cdot \left(x \cdot t\right)}{b}\right) - z \cdot c\right)\\
\end{array}
\end{array}
if b < -4.5e52Initial program 76.4%
Taylor expanded in x around 0 80.9%
if -4.5e52 < b < 1.79999999999999995e-21Initial program 75.7%
Taylor expanded in b around 0 75.5%
if 1.79999999999999995e-21 < b Initial program 73.6%
Taylor expanded in b around inf 76.7%
Taylor expanded in a around inf 67.2%
associate-*r/67.2%
associate-*r*67.2%
neg-mul-167.2%
Simplified67.2%
Final simplification74.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -1.1e+36)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(if (<= b 1e-21)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(* b (- (- (* a i) (/ (* a (* x t)) 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 (b <= -1.1e+36) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (b <= 1e-21) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * (((a * i) - ((a * (x * t)) / 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 (b <= (-1.1d+36)) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else if (b <= 1d-21) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else
tmp = b * (((a * i) - ((a * (x * t)) / 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 (b <= -1.1e+36) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (b <= 1e-21) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else {
tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -1.1e+36: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) elif b <= 1e-21: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) else: tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -1.1e+36) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (b <= 1e-21) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); else tmp = Float64(b * Float64(Float64(Float64(a * i) - Float64(Float64(a * Float64(x * t)) / b)) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -1.1e+36) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); elseif (b <= 1e-21) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); else tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -1.1e+36], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e-21], 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[(b * N[(N[(N[(a * i), $MachinePrecision] - N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.1 \cdot 10^{+36}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq 10^{-21}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(a \cdot i - \frac{a \cdot \left(x \cdot t\right)}{b}\right) - z \cdot c\right)\\
\end{array}
\end{array}
if b < -1.1e36Initial program 76.3%
Taylor expanded in j around 0 70.4%
Taylor expanded in y around inf 78.5%
if -1.1e36 < b < 9.99999999999999908e-22Initial program 75.7%
Taylor expanded in b around 0 75.5%
if 9.99999999999999908e-22 < b Initial program 73.6%
Taylor expanded in b around inf 76.7%
Taylor expanded in a around inf 67.2%
associate-*r/67.2%
associate-*r*67.2%
neg-mul-167.2%
Simplified67.2%
Final simplification73.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -8.8e+39)
(+ (* x (* y z)) (* b (- (* a i) (* z c))))
(if (<= b 3.7e-22)
(+ (* x (- (* y z) (* t a))) (* a (* b i)))
(* b (- (- (* a i) (/ (* a (* x t)) 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 (b <= -8.8e+39) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (b <= 3.7e-22) {
tmp = (x * ((y * z) - (t * a))) + (a * (b * i));
} else {
tmp = b * (((a * i) - ((a * (x * t)) / 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 (b <= (-8.8d+39)) then
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)))
else if (b <= 3.7d-22) then
tmp = (x * ((y * z) - (t * a))) + (a * (b * i))
else
tmp = b * (((a * i) - ((a * (x * t)) / 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 (b <= -8.8e+39) {
tmp = (x * (y * z)) + (b * ((a * i) - (z * c)));
} else if (b <= 3.7e-22) {
tmp = (x * ((y * z) - (t * a))) + (a * (b * i));
} else {
tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -8.8e+39: tmp = (x * (y * z)) + (b * ((a * i) - (z * c))) elif b <= 3.7e-22: tmp = (x * ((y * z) - (t * a))) + (a * (b * i)) else: tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -8.8e+39) tmp = Float64(Float64(x * Float64(y * z)) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); elseif (b <= 3.7e-22) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(a * Float64(b * i))); else tmp = Float64(b * Float64(Float64(Float64(a * i) - Float64(Float64(a * Float64(x * t)) / b)) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -8.8e+39) tmp = (x * (y * z)) + (b * ((a * i) - (z * c))); elseif (b <= 3.7e-22) tmp = (x * ((y * z) - (t * a))) + (a * (b * i)); else tmp = b * (((a * i) - ((a * (x * t)) / b)) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -8.8e+39], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.7e-22], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(N[(a * i), $MachinePrecision] - N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -8.8 \cdot 10^{+39}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;b \leq 3.7 \cdot 10^{-22}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(\left(a \cdot i - \frac{a \cdot \left(x \cdot t\right)}{b}\right) - z \cdot c\right)\\
\end{array}
\end{array}
if b < -8.8000000000000006e39Initial program 76.3%
Taylor expanded in j around 0 70.4%
Taylor expanded in y around inf 78.5%
if -8.8000000000000006e39 < b < 3.7e-22Initial program 75.7%
Taylor expanded in j around 0 57.3%
Taylor expanded in c around 0 59.9%
cancel-sign-sub-inv59.9%
cancel-sign-sub-inv59.9%
*-commutative59.9%
associate-*r*59.9%
neg-mul-159.9%
*-commutative59.9%
Simplified59.9%
if 3.7e-22 < b Initial program 73.6%
Taylor expanded in b around inf 76.7%
Taylor expanded in a around inf 67.2%
associate-*r/67.2%
associate-*r*67.2%
neg-mul-167.2%
Simplified67.2%
Final simplification65.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -15.2)
t_1
(if (<= b -5.6e-301)
(* t (- (* c j) (* x a)))
(if (<= b 9.2e+95) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -15.2) {
tmp = t_1;
} else if (b <= -5.6e-301) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 9.2e+95) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-15.2d0)) then
tmp = t_1
else if (b <= (-5.6d-301)) then
tmp = t * ((c * j) - (x * a))
else if (b <= 9.2d+95) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -15.2) {
tmp = t_1;
} else if (b <= -5.6e-301) {
tmp = t * ((c * j) - (x * a));
} else if (b <= 9.2e+95) {
tmp = j * ((t * c) - (y * i));
} 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 <= -15.2: tmp = t_1 elif b <= -5.6e-301: tmp = t * ((c * j) - (x * a)) elif b <= 9.2e+95: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -15.2) tmp = t_1; elseif (b <= -5.6e-301) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (b <= 9.2e+95) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -15.2) tmp = t_1; elseif (b <= -5.6e-301) tmp = t * ((c * j) - (x * a)); elseif (b <= 9.2e+95) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -15.2], t$95$1, If[LessEqual[b, -5.6e-301], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.2e+95], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $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 -15.2:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -5.6 \cdot 10^{-301}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;b \leq 9.2 \cdot 10^{+95}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -15.199999999999999 or 9.19999999999999989e95 < b Initial program 75.5%
Taylor expanded in b around inf 65.2%
*-commutative65.2%
Simplified65.2%
if -15.199999999999999 < b < -5.6000000000000002e-301Initial program 80.6%
Taylor expanded in t around inf 47.8%
+-commutative47.8%
mul-1-neg47.8%
unsub-neg47.8%
*-commutative47.8%
Simplified47.8%
if -5.6000000000000002e-301 < b < 9.19999999999999989e95Initial program 70.4%
Taylor expanded in j around inf 51.9%
Final simplification56.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -20.0)
t_1
(if (<= b -2.7e-102)
(* a (* t (- x)))
(if (<= b 1.75e+96) (* j (- (* t c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -20.0) {
tmp = t_1;
} else if (b <= -2.7e-102) {
tmp = a * (t * -x);
} else if (b <= 1.75e+96) {
tmp = j * ((t * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-20.0d0)) then
tmp = t_1
else if (b <= (-2.7d-102)) then
tmp = a * (t * -x)
else if (b <= 1.75d+96) then
tmp = j * ((t * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -20.0) {
tmp = t_1;
} else if (b <= -2.7e-102) {
tmp = a * (t * -x);
} else if (b <= 1.75e+96) {
tmp = j * ((t * c) - (y * i));
} 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 <= -20.0: tmp = t_1 elif b <= -2.7e-102: tmp = a * (t * -x) elif b <= 1.75e+96: tmp = j * ((t * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -20.0) tmp = t_1; elseif (b <= -2.7e-102) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 1.75e+96) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -20.0) tmp = t_1; elseif (b <= -2.7e-102) tmp = a * (t * -x); elseif (b <= 1.75e+96) tmp = j * ((t * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -20.0], t$95$1, If[LessEqual[b, -2.7e-102], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.75e+96], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $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 -20:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.7 \cdot 10^{-102}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+96}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -20 or 1.7499999999999999e96 < b Initial program 75.2%
Taylor expanded in b around inf 65.8%
*-commutative65.8%
Simplified65.8%
if -20 < b < -2.7e-102Initial program 89.2%
Taylor expanded in a around inf 57.3%
distribute-lft-out--57.3%
*-commutative57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in x around inf 46.1%
associate-*r*46.1%
neg-mul-146.1%
Simplified46.1%
if -2.7e-102 < b < 1.7499999999999999e96Initial program 72.4%
Taylor expanded in j around inf 46.0%
Final simplification53.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -4.4e+85)
(* x (* t (- a)))
(if (<= a 2.16e-184)
(* c (- (* t j) (* z b)))
(if (<= a 6.1e-109) (* x (* y z)) (* b (- (* a i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -4.4e+85) {
tmp = x * (t * -a);
} else if (a <= 2.16e-184) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 6.1e-109) {
tmp = x * (y * z);
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-4.4d+85)) then
tmp = x * (t * -a)
else if (a <= 2.16d-184) then
tmp = c * ((t * j) - (z * b))
else if (a <= 6.1d-109) then
tmp = x * (y * z)
else
tmp = b * ((a * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -4.4e+85) {
tmp = x * (t * -a);
} else if (a <= 2.16e-184) {
tmp = c * ((t * j) - (z * b));
} else if (a <= 6.1e-109) {
tmp = x * (y * z);
} else {
tmp = b * ((a * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -4.4e+85: tmp = x * (t * -a) elif a <= 2.16e-184: tmp = c * ((t * j) - (z * b)) elif a <= 6.1e-109: tmp = x * (y * z) else: tmp = b * ((a * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -4.4e+85) tmp = Float64(x * Float64(t * Float64(-a))); elseif (a <= 2.16e-184) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (a <= 6.1e-109) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -4.4e+85) tmp = x * (t * -a); elseif (a <= 2.16e-184) tmp = c * ((t * j) - (z * b)); elseif (a <= 6.1e-109) tmp = x * (y * z); else tmp = b * ((a * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -4.4e+85], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.16e-184], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.1e-109], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.4 \cdot 10^{+85}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;a \leq 2.16 \cdot 10^{-184}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;a \leq 6.1 \cdot 10^{-109}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -4.4000000000000003e85Initial program 67.1%
Taylor expanded in c around 0 69.0%
Taylor expanded in i around 0 54.8%
Taylor expanded in y around 0 47.7%
mul-1-neg47.7%
distribute-lft-neg-out47.7%
*-commutative47.7%
Simplified47.7%
if -4.4000000000000003e85 < a < 2.15999999999999991e-184Initial program 83.8%
Taylor expanded in c around inf 47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
if 2.15999999999999991e-184 < a < 6.0999999999999997e-109Initial program 75.1%
Taylor expanded in c around 0 75.6%
Taylor expanded in i around 0 61.3%
Taylor expanded in y around inf 55.9%
if 6.0999999999999997e-109 < a Initial program 70.9%
Taylor expanded in b around inf 53.5%
*-commutative53.5%
Simplified53.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -1.15e+17)
t_1
(if (<= b -3e-168)
(* a (* t (- x)))
(if (<= b 2.2e-11) (* y (* x 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 (b <= -1.15e+17) {
tmp = t_1;
} else if (b <= -3e-168) {
tmp = a * (t * -x);
} else if (b <= 2.2e-11) {
tmp = y * (x * 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 (b <= (-1.15d+17)) then
tmp = t_1
else if (b <= (-3d-168)) then
tmp = a * (t * -x)
else if (b <= 2.2d-11) then
tmp = y * (x * 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 (b <= -1.15e+17) {
tmp = t_1;
} else if (b <= -3e-168) {
tmp = a * (t * -x);
} else if (b <= 2.2e-11) {
tmp = y * (x * 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 b <= -1.15e+17: tmp = t_1 elif b <= -3e-168: tmp = a * (t * -x) elif b <= 2.2e-11: tmp = y * (x * 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 (b <= -1.15e+17) tmp = t_1; elseif (b <= -3e-168) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 2.2e-11) tmp = Float64(y * Float64(x * 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 (b <= -1.15e+17) tmp = t_1; elseif (b <= -3e-168) tmp = a * (t * -x); elseif (b <= 2.2e-11) tmp = y * (x * 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[b, -1.15e+17], t$95$1, If[LessEqual[b, -3e-168], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e-11], N[(y * N[(x * 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}\;b \leq -1.15 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-168}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{-11}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.15e17 or 2.2000000000000002e-11 < b Initial program 75.0%
Taylor expanded in b around inf 60.9%
*-commutative60.9%
Simplified60.9%
if -1.15e17 < b < -2.99999999999999991e-168Initial program 83.6%
Taylor expanded in a around inf 47.4%
distribute-lft-out--47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in x around inf 40.1%
associate-*r*40.1%
neg-mul-140.1%
Simplified40.1%
if -2.99999999999999991e-168 < b < 2.2000000000000002e-11Initial program 71.9%
Taylor expanded in c around 0 66.0%
Taylor expanded in a around 0 44.1%
+-commutative44.1%
mul-1-neg44.1%
unsub-neg44.1%
associate-*r*45.6%
Simplified45.6%
Taylor expanded in x around inf 33.0%
*-commutative33.0%
associate-*l*34.1%
Simplified34.1%
Final simplification47.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -1.96e+118) (not (<= b 1.75e+65))) (* b (- (* a i) (* z c))) (* x (- (* y z) (* t a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.96e+118) || !(b <= 1.75e+65)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-1.96d+118)) .or. (.not. (b <= 1.75d+65))) then
tmp = b * ((a * i) - (z * c))
else
tmp = x * ((y * z) - (t * a))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -1.96e+118) || !(b <= 1.75e+65)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = x * ((y * z) - (t * a));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -1.96e+118) or not (b <= 1.75e+65): tmp = b * ((a * i) - (z * c)) else: tmp = x * ((y * z) - (t * a)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -1.96e+118) || !(b <= 1.75e+65)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -1.96e+118) || ~((b <= 1.75e+65))) tmp = b * ((a * i) - (z * c)); else tmp = x * ((y * z) - (t * a)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -1.96e+118], N[Not[LessEqual[b, 1.75e+65]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -1.96 \cdot 10^{+118} \lor \neg \left(b \leq 1.75 \cdot 10^{+65}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -1.96e118 or 1.75e65 < b Initial program 73.9%
Taylor expanded in b around inf 69.9%
*-commutative69.9%
Simplified69.9%
if -1.96e118 < b < 1.75e65Initial program 75.9%
Taylor expanded in c around 0 65.5%
Taylor expanded in i around 0 55.2%
Final simplification60.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -4.5e-106) (not (<= z 1.85e+93))) (* y (* x 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 ((z <= -4.5e-106) || !(z <= 1.85e+93)) {
tmp = y * (x * 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 ((z <= (-4.5d-106)) .or. (.not. (z <= 1.85d+93))) then
tmp = y * (x * 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 ((z <= -4.5e-106) || !(z <= 1.85e+93)) {
tmp = y * (x * z);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -4.5e-106) or not (z <= 1.85e+93): tmp = y * (x * z) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -4.5e-106) || !(z <= 1.85e+93)) tmp = Float64(y * Float64(x * 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 ((z <= -4.5e-106) || ~((z <= 1.85e+93))) tmp = y * (x * z); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -4.5e-106], N[Not[LessEqual[z, 1.85e+93]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.5 \cdot 10^{-106} \lor \neg \left(z \leq 1.85 \cdot 10^{+93}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if z < -4.49999999999999955e-106 or 1.84999999999999994e93 < z Initial program 70.6%
Taylor expanded in c around 0 53.5%
Taylor expanded in a around 0 39.5%
+-commutative39.5%
mul-1-neg39.5%
unsub-neg39.5%
associate-*r*41.9%
Simplified41.9%
Taylor expanded in x around inf 36.1%
*-commutative36.1%
associate-*l*39.0%
Simplified39.0%
if -4.49999999999999955e-106 < z < 1.84999999999999994e93Initial program 80.1%
Taylor expanded in b around inf 36.7%
*-commutative36.7%
Simplified36.7%
Taylor expanded in a around inf 30.7%
*-commutative30.7%
Simplified30.7%
Final simplification34.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -2.9e-106) (* z (* x y)) (if (<= z 2.4e+92) (* a (* b i)) (* y (* x z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.9e-106) {
tmp = z * (x * y);
} else if (z <= 2.4e+92) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-2.9d-106)) then
tmp = z * (x * y)
else if (z <= 2.4d+92) then
tmp = a * (b * i)
else
tmp = y * (x * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -2.9e-106) {
tmp = z * (x * y);
} else if (z <= 2.4e+92) {
tmp = a * (b * i);
} else {
tmp = y * (x * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -2.9e-106: tmp = z * (x * y) elif z <= 2.4e+92: tmp = a * (b * i) else: tmp = y * (x * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -2.9e-106) tmp = Float64(z * Float64(x * y)); elseif (z <= 2.4e+92) tmp = Float64(a * Float64(b * i)); else tmp = Float64(y * Float64(x * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -2.9e-106) tmp = z * (x * y); elseif (z <= 2.4e+92) tmp = a * (b * i); else tmp = y * (x * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -2.9e-106], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+92], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{-106}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+92}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\end{array}
\end{array}
if z < -2.9e-106Initial program 66.7%
Taylor expanded in b around inf 58.3%
Taylor expanded in y around inf 41.1%
associate-*r*41.8%
*-commutative41.8%
+-commutative41.8%
mul-1-neg41.8%
unsub-neg41.8%
associate-/l*39.2%
associate-/l*38.0%
Simplified38.0%
Taylor expanded in x around inf 31.8%
*-commutative31.8%
*-commutative31.8%
associate-*r*34.2%
Simplified34.2%
if -2.9e-106 < z < 2.40000000000000005e92Initial program 80.1%
Taylor expanded in b around inf 36.7%
*-commutative36.7%
Simplified36.7%
Taylor expanded in a around inf 30.7%
*-commutative30.7%
Simplified30.7%
if 2.40000000000000005e92 < z Initial program 76.2%
Taylor expanded in c around 0 43.0%
Taylor expanded in a around 0 36.8%
+-commutative36.8%
mul-1-neg36.8%
unsub-neg36.8%
associate-*r*40.5%
Simplified40.5%
Taylor expanded in x around inf 42.2%
*-commutative42.2%
associate-*l*46.0%
Simplified46.0%
Final simplification35.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -2.2e-28) (* a (* b i)) (if (<= a 2.95e-104) (* x (* y z)) (* b (* a i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -2.2e-28) {
tmp = a * (b * i);
} else if (a <= 2.95e-104) {
tmp = x * (y * z);
} else {
tmp = b * (a * 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 (a <= (-2.2d-28)) then
tmp = a * (b * i)
else if (a <= 2.95d-104) then
tmp = x * (y * z)
else
tmp = b * (a * 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 (a <= -2.2e-28) {
tmp = a * (b * i);
} else if (a <= 2.95e-104) {
tmp = x * (y * z);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -2.2e-28: tmp = a * (b * i) elif a <= 2.95e-104: tmp = x * (y * z) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -2.2e-28) tmp = Float64(a * Float64(b * i)); elseif (a <= 2.95e-104) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -2.2e-28) tmp = a * (b * i); elseif (a <= 2.95e-104) tmp = x * (y * z); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -2.2e-28], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.95e-104], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -2.2 \cdot 10^{-28}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 2.95 \cdot 10^{-104}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if a < -2.19999999999999996e-28Initial program 74.7%
Taylor expanded in b around inf 39.0%
*-commutative39.0%
Simplified39.0%
Taylor expanded in a around inf 31.5%
*-commutative31.5%
Simplified31.5%
if -2.19999999999999996e-28 < a < 2.9500000000000002e-104Initial program 80.1%
Taylor expanded in c around 0 51.6%
Taylor expanded in i around 0 43.9%
Taylor expanded in y around inf 37.1%
if 2.9500000000000002e-104 < a Initial program 70.9%
Taylor expanded in b around inf 53.5%
*-commutative53.5%
Simplified53.5%
Taylor expanded in a around inf 33.2%
*-commutative33.2%
Simplified33.2%
Final simplification34.0%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * 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 = b * (a * 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 b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 75.3%
Taylor expanded in b around inf 37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in a around inf 21.5%
*-commutative21.5%
Simplified21.5%
Final simplification21.5%
(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 75.3%
Taylor expanded in b around inf 37.5%
*-commutative37.5%
Simplified37.5%
Taylor expanded in a around inf 20.5%
*-commutative20.5%
Simplified20.5%
Final simplification20.5%
(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 2024170
(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)))))