
(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 23 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (* j (- (* t c) (* y i)))))
(if (<= (+ t_2 (- t_1 (* x (- (* t a) (* y z))))) INFINITY)
(+ (+ (* x (fma y z (* t (- a)))) t_1) t_2)
(* (* x t) (- (* 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 t_1 = b * ((a * i) - (z * c));
double t_2 = j * ((t * c) - (y * i));
double tmp;
if ((t_2 + (t_1 - (x * ((t * a) - (y * z))))) <= ((double) INFINITY)) {
tmp = ((x * fma(y, z, (t * -a))) + t_1) + t_2;
} else {
tmp = (x * t) * ((y * (z / t)) - a);
}
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 (Float64(t_2 + Float64(t_1 - Float64(x * Float64(Float64(t * a) - Float64(y * z))))) <= Inf) tmp = Float64(Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1) + t_2); else tmp = Float64(Float64(x * t) * Float64(Float64(y * Float64(z / t)) - a)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(t$95$2 + N[(t$95$1 - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + t$95$2), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $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}\;t\_2 + \left(t\_1 - x \cdot \left(t \cdot a - y \cdot z\right)\right) \leq \infty:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(y \cdot \frac{z}{t} - a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.4%
cancel-sign-sub-inv91.4%
cancel-sign-sub91.4%
fmm-def91.4%
distribute-lft-neg-out91.4%
*-commutative91.4%
remove-double-neg91.4%
*-commutative91.4%
*-commutative91.4%
*-commutative91.4%
*-commutative91.4%
Simplified91.4%
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-define20.0%
*-commutative20.0%
*-commutative20.0%
cancel-sign-sub-inv20.0%
cancel-sign-sub20.0%
sub-neg20.0%
sub-neg20.0%
*-commutative20.0%
fmm-def20.0%
*-commutative20.0%
distribute-rgt-neg-out20.0%
remove-double-neg20.0%
*-commutative20.0%
*-commutative20.0%
Simplified20.0%
Taylor expanded in t around -inf 36.4%
Simplified45.5%
Taylor expanded in x around -inf 58.5%
associate-*r*58.5%
distribute-lft-out--58.5%
associate-/l*62.1%
Simplified62.1%
Final simplification85.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(* j (- (* t c) (* y i)))
(- (* b (- (* a i) (* z c))) (* x (- (* t a) (* y z)))))))
(if (<= t_1 INFINITY) t_1 (* (* x t) (- (* 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 t_1 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (x * t) * ((y * (z / t)) - a);
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (x * t) * ((y * (z / t)) - a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (x * t) * ((y * (z / t)) - a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(x * Float64(Float64(t * a) - Float64(y * z))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(x * t) * Float64(Float64(y * Float64(z / t)) - a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + ((b * ((a * i) - (z * c))) - (x * ((t * a) - (y * z)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (x * t) * ((y * (z / t)) - a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(x * t), $MachinePrecision] * N[(N[(y * N[(z / t), $MachinePrecision]), $MachinePrecision] - a), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + \left(b \cdot \left(a \cdot i - z \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(y \cdot \frac{z}{t} - a\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 91.4%
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-define20.0%
*-commutative20.0%
*-commutative20.0%
cancel-sign-sub-inv20.0%
cancel-sign-sub20.0%
sub-neg20.0%
sub-neg20.0%
*-commutative20.0%
fmm-def20.0%
*-commutative20.0%
distribute-rgt-neg-out20.0%
remove-double-neg20.0%
*-commutative20.0%
*-commutative20.0%
Simplified20.0%
Taylor expanded in t around -inf 36.4%
Simplified45.5%
Taylor expanded in x around -inf 58.5%
associate-*r*58.5%
distribute-lft-out--58.5%
associate-/l*62.1%
Simplified62.1%
Final simplification85.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* j (- (* t c) (* y i))) (* a (* b i))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= z -1.15e+129)
t_2
(if (<= z -205.0)
t_1
(if (<= z -3.5e-142)
(* x (- (* y z) (* t a)))
(if (<= z -4.05e-286)
t_1
(if (<= z 1.9e-254)
(* t (- (* c j) (* x a)))
(if (<= z 7e+50) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.15e+129) {
tmp = t_2;
} else if (z <= -205.0) {
tmp = t_1;
} else if (z <= -3.5e-142) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -4.05e-286) {
tmp = t_1;
} else if (z <= 1.9e-254) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 7e+50) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = (j * ((t * c) - (y * i))) + (a * (b * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-1.15d+129)) then
tmp = t_2
else if (z <= (-205.0d0)) then
tmp = t_1
else if (z <= (-3.5d-142)) then
tmp = x * ((y * z) - (t * a))
else if (z <= (-4.05d-286)) then
tmp = t_1
else if (z <= 1.9d-254) then
tmp = t * ((c * j) - (x * a))
else if (z <= 7d+50) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((t * c) - (y * i))) + (a * (b * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.15e+129) {
tmp = t_2;
} else if (z <= -205.0) {
tmp = t_1;
} else if (z <= -3.5e-142) {
tmp = x * ((y * z) - (t * a));
} else if (z <= -4.05e-286) {
tmp = t_1;
} else if (z <= 1.9e-254) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 7e+50) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((t * c) - (y * i))) + (a * (b * i)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.15e+129: tmp = t_2 elif z <= -205.0: tmp = t_1 elif z <= -3.5e-142: tmp = x * ((y * z) - (t * a)) elif z <= -4.05e-286: tmp = t_1 elif z <= 1.9e-254: tmp = t * ((c * j) - (x * a)) elif z <= 7e+50: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.15e+129) tmp = t_2; elseif (z <= -205.0) tmp = t_1; elseif (z <= -3.5e-142) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (z <= -4.05e-286) tmp = t_1; elseif (z <= 1.9e-254) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 7e+50) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((t * c) - (y * i))) + (a * (b * i)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.15e+129) tmp = t_2; elseif (z <= -205.0) tmp = t_1; elseif (z <= -3.5e-142) tmp = x * ((y * z) - (t * a)); elseif (z <= -4.05e-286) tmp = t_1; elseif (z <= 1.9e-254) tmp = t * ((c * j) - (x * a)); elseif (z <= 7e+50) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.15e+129], t$95$2, If[LessEqual[z, -205.0], t$95$1, If[LessEqual[z, -3.5e-142], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.05e-286], t$95$1, If[LessEqual[z, 1.9e-254], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7e+50], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.15 \cdot 10^{+129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -205:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -3.5 \cdot 10^{-142}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;z \leq -4.05 \cdot 10^{-286}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{-254}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 7 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.14999999999999995e129 or 7.00000000000000012e50 < z Initial program 59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
fmm-def59.7%
distribute-lft-neg-out59.7%
*-commutative59.7%
remove-double-neg59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in z around inf 65.8%
Taylor expanded in z around inf 70.8%
if -1.14999999999999995e129 < z < -205 or -3.50000000000000015e-142 < z < -4.04999999999999986e-286 or 1.9000000000000001e-254 < z < 7.00000000000000012e50Initial program 83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
fmm-def83.5%
distribute-lft-neg-out83.5%
*-commutative83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in i around inf 68.2%
if -205 < z < -3.50000000000000015e-142Initial program 61.5%
+-commutative61.5%
fma-define67.9%
*-commutative67.9%
*-commutative67.9%
cancel-sign-sub-inv67.9%
cancel-sign-sub67.9%
sub-neg67.9%
sub-neg67.9%
*-commutative67.9%
fmm-def67.9%
*-commutative67.9%
distribute-rgt-neg-out67.9%
remove-double-neg67.9%
*-commutative67.9%
*-commutative67.9%
Simplified67.9%
Taylor expanded in y around -inf 58.8%
Simplified68.5%
Taylor expanded in x around inf 55.4%
Taylor expanded in y around 0 55.4%
+-commutative55.4%
mul-1-neg55.4%
unsub-neg55.4%
Simplified55.4%
if -4.04999999999999986e-286 < z < 1.9000000000000001e-254Initial program 75.4%
+-commutative75.4%
fma-define80.4%
*-commutative80.4%
*-commutative80.4%
cancel-sign-sub-inv80.4%
cancel-sign-sub80.4%
sub-neg80.4%
sub-neg80.4%
*-commutative80.4%
fmm-def80.4%
*-commutative80.4%
distribute-rgt-neg-out80.4%
remove-double-neg80.4%
*-commutative80.4%
*-commutative80.4%
Simplified80.4%
Taylor expanded in t around inf 85.5%
+-commutative85.5%
mul-1-neg85.5%
unsub-neg85.5%
*-commutative85.5%
Simplified85.5%
Final simplification68.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -1.8e+129)
t_2
(if (<= z -1.25e-32)
(- t_1 (* z (* b c)))
(if (<= z 1.7e-253)
(* t (- (* c j) (* x a)))
(if (<= z 1.7e+51) (+ t_1 (* a (* b i))) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.8e+129) {
tmp = t_2;
} else if (z <= -1.25e-32) {
tmp = t_1 - (z * (b * c));
} else if (z <= 1.7e-253) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.7e+51) {
tmp = t_1 + (a * (b * i));
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((t * c) - (y * i))
t_2 = z * ((x * y) - (b * c))
if (z <= (-1.8d+129)) then
tmp = t_2
else if (z <= (-1.25d-32)) then
tmp = t_1 - (z * (b * c))
else if (z <= 1.7d-253) then
tmp = t * ((c * j) - (x * a))
else if (z <= 1.7d+51) then
tmp = t_1 + (a * (b * i))
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((t * c) - (y * i));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -1.8e+129) {
tmp = t_2;
} else if (z <= -1.25e-32) {
tmp = t_1 - (z * (b * c));
} else if (z <= 1.7e-253) {
tmp = t * ((c * j) - (x * a));
} else if (z <= 1.7e+51) {
tmp = t_1 + (a * (b * i));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((t * c) - (y * i)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -1.8e+129: tmp = t_2 elif z <= -1.25e-32: tmp = t_1 - (z * (b * c)) elif z <= 1.7e-253: tmp = t * ((c * j) - (x * a)) elif z <= 1.7e+51: tmp = t_1 + (a * (b * i)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(t * c) - Float64(y * i))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -1.8e+129) tmp = t_2; elseif (z <= -1.25e-32) tmp = Float64(t_1 - Float64(z * Float64(b * c))); elseif (z <= 1.7e-253) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (z <= 1.7e+51) tmp = Float64(t_1 + Float64(a * Float64(b * i))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((t * c) - (y * i)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -1.8e+129) tmp = t_2; elseif (z <= -1.25e-32) tmp = t_1 - (z * (b * c)); elseif (z <= 1.7e-253) tmp = t * ((c * j) - (x * a)); elseif (z <= 1.7e+51) tmp = t_1 + (a * (b * i)); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.8e+129], t$95$2, If[LessEqual[z, -1.25e-32], N[(t$95$1 - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e-253], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+51], N[(t$95$1 + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -1.8 \cdot 10^{+129}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.25 \cdot 10^{-32}:\\
\;\;\;\;t\_1 - z \cdot \left(b \cdot c\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{-253}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+51}:\\
\;\;\;\;t\_1 + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -1.8000000000000001e129 or 1.69999999999999992e51 < z Initial program 59.7%
cancel-sign-sub-inv59.7%
cancel-sign-sub59.7%
fmm-def59.7%
distribute-lft-neg-out59.7%
*-commutative59.7%
remove-double-neg59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
*-commutative59.7%
Simplified59.7%
Taylor expanded in z around inf 65.8%
Taylor expanded in z around inf 70.8%
if -1.8000000000000001e129 < z < -1.25e-32Initial program 73.2%
cancel-sign-sub-inv73.2%
cancel-sign-sub73.2%
fmm-def73.2%
distribute-lft-neg-out73.2%
*-commutative73.2%
remove-double-neg73.2%
*-commutative73.2%
*-commutative73.2%
*-commutative73.2%
*-commutative73.2%
Simplified73.2%
Taylor expanded in c around inf 53.0%
mul-1-neg53.0%
*-commutative53.0%
*-commutative53.0%
associate-*r*58.1%
*-commutative58.1%
distribute-rgt-neg-out58.1%
distribute-rgt-neg-in58.1%
Simplified58.1%
if -1.25e-32 < z < 1.69999999999999993e-253Initial program 73.1%
+-commutative73.1%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
sub-neg77.4%
sub-neg77.4%
*-commutative77.4%
fmm-def77.4%
*-commutative77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in t around inf 63.2%
+-commutative63.2%
mul-1-neg63.2%
unsub-neg63.2%
*-commutative63.2%
Simplified63.2%
if 1.69999999999999993e-253 < z < 1.69999999999999992e51Initial program 88.0%
cancel-sign-sub-inv88.0%
cancel-sign-sub88.0%
fmm-def88.1%
distribute-lft-neg-out88.1%
*-commutative88.1%
remove-double-neg88.1%
*-commutative88.1%
*-commutative88.1%
*-commutative88.1%
*-commutative88.1%
Simplified88.1%
Taylor expanded in i around inf 69.1%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* t j) (* z b)))))
(if (<= y -5e+111)
(* j (- (* t c) (* y i)))
(if (<= y 1.7e-172)
t_1
(if (<= y 4e+20)
(* t (- (* c j) (* x a)))
(if (<= y 4.4e+145)
t_1
(if (<= y 7e+208) (* i (* y (- j))) (* x (* y z)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (y <= -5e+111) {
tmp = j * ((t * c) - (y * i));
} else if (y <= 1.7e-172) {
tmp = t_1;
} else if (y <= 4e+20) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 4.4e+145) {
tmp = t_1;
} else if (y <= 7e+208) {
tmp = i * (y * -j);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((t * j) - (z * b))
if (y <= (-5d+111)) then
tmp = j * ((t * c) - (y * i))
else if (y <= 1.7d-172) then
tmp = t_1
else if (y <= 4d+20) then
tmp = t * ((c * j) - (x * a))
else if (y <= 4.4d+145) then
tmp = t_1
else if (y <= 7d+208) then
tmp = i * (y * -j)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((t * j) - (z * b));
double tmp;
if (y <= -5e+111) {
tmp = j * ((t * c) - (y * i));
} else if (y <= 1.7e-172) {
tmp = t_1;
} else if (y <= 4e+20) {
tmp = t * ((c * j) - (x * a));
} else if (y <= 4.4e+145) {
tmp = t_1;
} else if (y <= 7e+208) {
tmp = i * (y * -j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((t * j) - (z * b)) tmp = 0 if y <= -5e+111: tmp = j * ((t * c) - (y * i)) elif y <= 1.7e-172: tmp = t_1 elif y <= 4e+20: tmp = t * ((c * j) - (x * a)) elif y <= 4.4e+145: tmp = t_1 elif y <= 7e+208: tmp = i * (y * -j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (y <= -5e+111) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (y <= 1.7e-172) tmp = t_1; elseif (y <= 4e+20) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); elseif (y <= 4.4e+145) tmp = t_1; elseif (y <= 7e+208) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((t * j) - (z * b)); tmp = 0.0; if (y <= -5e+111) tmp = j * ((t * c) - (y * i)); elseif (y <= 1.7e-172) tmp = t_1; elseif (y <= 4e+20) tmp = t * ((c * j) - (x * a)); elseif (y <= 4.4e+145) tmp = t_1; elseif (y <= 7e+208) tmp = i * (y * -j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5e+111], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-172], t$95$1, If[LessEqual[y, 4e+20], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4.4e+145], t$95$1, If[LessEqual[y, 7e+208], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;y \leq -5 \cdot 10^{+111}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-172}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+20}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{elif}\;y \leq 4.4 \cdot 10^{+145}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{+208}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -4.9999999999999997e111Initial program 70.2%
+-commutative70.2%
fma-define72.7%
*-commutative72.7%
*-commutative72.7%
cancel-sign-sub-inv72.7%
cancel-sign-sub72.7%
sub-neg72.7%
sub-neg72.7%
*-commutative72.7%
fmm-def72.7%
*-commutative72.7%
distribute-rgt-neg-out72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around inf 59.2%
sub-neg59.2%
*-commutative59.2%
*-commutative59.2%
sub-neg59.2%
Simplified59.2%
if -4.9999999999999997e111 < y < 1.6999999999999999e-172 or 4e20 < y < 4.40000000000000017e145Initial program 75.7%
+-commutative75.7%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
cancel-sign-sub-inv81.4%
cancel-sign-sub81.4%
sub-neg81.4%
sub-neg81.4%
*-commutative81.4%
fmm-def81.4%
*-commutative81.4%
distribute-rgt-neg-out81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in c around inf 50.7%
*-commutative50.7%
*-commutative50.7%
Simplified50.7%
if 1.6999999999999999e-172 < y < 4e20Initial program 76.8%
+-commutative76.8%
fma-define81.9%
*-commutative81.9%
*-commutative81.9%
cancel-sign-sub-inv81.9%
cancel-sign-sub81.9%
sub-neg81.9%
sub-neg81.9%
*-commutative81.9%
fmm-def81.9%
*-commutative81.9%
distribute-rgt-neg-out81.9%
remove-double-neg81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in t around inf 69.4%
+-commutative69.4%
mul-1-neg69.4%
unsub-neg69.4%
*-commutative69.4%
Simplified69.4%
if 4.40000000000000017e145 < y < 7.00000000000000033e208Initial program 55.3%
+-commutative55.3%
fma-define55.3%
*-commutative55.3%
*-commutative55.3%
cancel-sign-sub-inv55.3%
cancel-sign-sub55.3%
sub-neg55.3%
sub-neg55.3%
*-commutative55.3%
fmm-def55.3%
*-commutative55.3%
distribute-rgt-neg-out55.3%
remove-double-neg55.3%
*-commutative55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in i around inf 73.8%
distribute-lft-out--73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in y around inf 67.3%
associate-*r*67.3%
neg-mul-167.3%
Simplified67.3%
if 7.00000000000000033e208 < y Initial program 52.8%
+-commutative52.8%
fma-define52.8%
*-commutative52.8%
*-commutative52.8%
cancel-sign-sub-inv52.8%
cancel-sign-sub52.8%
sub-neg52.8%
sub-neg52.8%
*-commutative52.8%
fmm-def52.8%
*-commutative52.8%
distribute-rgt-neg-out52.8%
remove-double-neg52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in y around -inf 52.5%
Simplified61.5%
Taylor expanded in x around inf 70.2%
Taylor expanded in y around inf 62.2%
Final simplification56.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -2.2e+139)
t_1
(if (<= z 1.2e-224)
(* t (- (* c j) (+ (* x a) (/ (* i (* y j)) t))))
(if (<= z 3.8e+50) (+ (* j (- (* t c) (* y i))) (* a (* b 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.2e+139) {
tmp = t_1;
} else if (z <= 1.2e-224) {
tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t)));
} else if (z <= 3.8e+50) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * 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 = z * ((x * y) - (b * c))
if (z <= (-2.2d+139)) then
tmp = t_1
else if (z <= 1.2d-224) then
tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t)))
else if (z <= 3.8d+50) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -2.2e+139) {
tmp = t_1;
} else if (z <= 1.2e-224) {
tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t)));
} else if (z <= 3.8e+50) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} 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 <= -2.2e+139: tmp = t_1 elif z <= 1.2e-224: tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t))) elif z <= 3.8e+50: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) 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 <= -2.2e+139) tmp = t_1; elseif (z <= 1.2e-224) tmp = Float64(t * Float64(Float64(c * j) - Float64(Float64(x * a) + Float64(Float64(i * Float64(y * j)) / t)))); elseif (z <= 3.8e+50) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); 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 <= -2.2e+139) tmp = t_1; elseif (z <= 1.2e-224) tmp = t * ((c * j) - ((x * a) + ((i * (y * j)) / t))); elseif (z <= 3.8e+50) tmp = (j * ((t * c) - (y * i))) + (a * (b * 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.2e+139], t$95$1, If[LessEqual[z, 1.2e-224], N[(t * N[(N[(c * j), $MachinePrecision] - N[(N[(x * a), $MachinePrecision] + N[(N[(i * N[(y * j), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.8e+50], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $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 -2.2 \cdot 10^{+139}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.2 \cdot 10^{-224}:\\
\;\;\;\;t \cdot \left(c \cdot j - \left(x \cdot a + \frac{i \cdot \left(y \cdot j\right)}{t}\right)\right)\\
\mathbf{elif}\;z \leq 3.8 \cdot 10^{+50}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.1999999999999999e139 or 3.79999999999999987e50 < z Initial program 59.3%
cancel-sign-sub-inv59.3%
cancel-sign-sub59.3%
fmm-def59.3%
distribute-lft-neg-out59.3%
*-commutative59.3%
remove-double-neg59.3%
*-commutative59.3%
*-commutative59.3%
*-commutative59.3%
*-commutative59.3%
Simplified59.3%
Taylor expanded in z around inf 65.5%
Taylor expanded in z around inf 70.4%
if -2.1999999999999999e139 < z < 1.20000000000000007e-224Initial program 72.8%
+-commutative72.8%
fma-define76.3%
*-commutative76.3%
*-commutative76.3%
cancel-sign-sub-inv76.3%
cancel-sign-sub76.3%
sub-neg76.3%
sub-neg76.3%
*-commutative76.3%
fmm-def76.3%
*-commutative76.3%
distribute-rgt-neg-out76.3%
remove-double-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Taylor expanded in t around -inf 76.6%
Simplified78.3%
Taylor expanded in j around inf 61.0%
associate-*r/61.0%
associate-*r*61.0%
neg-mul-161.0%
Simplified61.0%
if 1.20000000000000007e-224 < z < 3.79999999999999987e50Initial program 90.6%
cancel-sign-sub-inv90.6%
cancel-sign-sub90.6%
fmm-def90.7%
distribute-lft-neg-out90.7%
*-commutative90.7%
remove-double-neg90.7%
*-commutative90.7%
*-commutative90.7%
*-commutative90.7%
*-commutative90.7%
Simplified90.7%
Taylor expanded in i around inf 71.7%
Final simplification66.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))) (t_2 (* c (- (* t j) (* z b)))))
(if (<= c -6.5e+149)
t_2
(if (<= c -5e+17)
t_1
(if (<= c -3.55e-99)
(* j (- (* t c) (* y i)))
(if (<= c 1.3e+84) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -6.5e+149) {
tmp = t_2;
} else if (c <= -5e+17) {
tmp = t_1;
} else if (c <= -3.55e-99) {
tmp = j * ((t * c) - (y * i));
} else if (c <= 1.3e+84) {
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 = c * ((t * j) - (z * b))
if (c <= (-6.5d+149)) then
tmp = t_2
else if (c <= (-5d+17)) then
tmp = t_1
else if (c <= (-3.55d-99)) then
tmp = j * ((t * c) - (y * i))
else if (c <= 1.3d+84) 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 = c * ((t * j) - (z * b));
double tmp;
if (c <= -6.5e+149) {
tmp = t_2;
} else if (c <= -5e+17) {
tmp = t_1;
} else if (c <= -3.55e-99) {
tmp = j * ((t * c) - (y * i));
} else if (c <= 1.3e+84) {
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 = c * ((t * j) - (z * b)) tmp = 0 if c <= -6.5e+149: tmp = t_2 elif c <= -5e+17: tmp = t_1 elif c <= -3.55e-99: tmp = j * ((t * c) - (y * i)) elif c <= 1.3e+84: 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(c * Float64(Float64(t * j) - Float64(z * b))) tmp = 0.0 if (c <= -6.5e+149) tmp = t_2; elseif (c <= -5e+17) tmp = t_1; elseif (c <= -3.55e-99) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (c <= 1.3e+84) 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 = c * ((t * j) - (z * b)); tmp = 0.0; if (c <= -6.5e+149) tmp = t_2; elseif (c <= -5e+17) tmp = t_1; elseif (c <= -3.55e-99) tmp = j * ((t * c) - (y * i)); elseif (c <= 1.3e+84) 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[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -6.5e+149], t$95$2, If[LessEqual[c, -5e+17], t$95$1, If[LessEqual[c, -3.55e-99], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.3e+84], 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 := c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -6.5 \cdot 10^{+149}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq -5 \cdot 10^{+17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -3.55 \cdot 10^{-99}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;c \leq 1.3 \cdot 10^{+84}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if c < -6.50000000000000015e149 or 1.3000000000000001e84 < c Initial program 60.2%
+-commutative60.2%
fma-define61.3%
*-commutative61.3%
*-commutative61.3%
cancel-sign-sub-inv61.3%
cancel-sign-sub61.3%
sub-neg61.3%
sub-neg61.3%
*-commutative61.3%
fmm-def61.3%
*-commutative61.3%
distribute-rgt-neg-out61.3%
remove-double-neg61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in c around inf 72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
if -6.50000000000000015e149 < c < -5e17 or -3.54999999999999997e-99 < c < 1.3000000000000001e84Initial program 75.9%
+-commutative75.9%
fma-define82.8%
*-commutative82.8%
*-commutative82.8%
cancel-sign-sub-inv82.8%
cancel-sign-sub82.8%
sub-neg82.8%
sub-neg82.8%
*-commutative82.8%
fmm-def82.8%
*-commutative82.8%
distribute-rgt-neg-out82.8%
remove-double-neg82.8%
*-commutative82.8%
*-commutative82.8%
Simplified82.8%
Taylor expanded in y around -inf 67.2%
Simplified68.6%
Taylor expanded in x around inf 51.9%
Taylor expanded in y around 0 53.2%
+-commutative53.2%
mul-1-neg53.2%
unsub-neg53.2%
Simplified53.2%
if -5e17 < c < -3.54999999999999997e-99Initial program 88.0%
+-commutative88.0%
fma-define88.0%
*-commutative88.0%
*-commutative88.0%
cancel-sign-sub-inv88.0%
cancel-sign-sub88.0%
sub-neg88.0%
sub-neg88.0%
*-commutative88.0%
fmm-def88.0%
*-commutative88.0%
distribute-rgt-neg-out88.0%
remove-double-neg88.0%
*-commutative88.0%
*-commutative88.0%
Simplified88.0%
Taylor expanded in j around inf 71.4%
sub-neg71.4%
*-commutative71.4%
*-commutative71.4%
sub-neg71.4%
Simplified71.4%
Final simplification61.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* t a) (* y z)))))
(if (or (<= j -1.65e-50) (not (<= j 5.5e+150)))
(- (* j (- (* t c) (* y i))) t_1)
(- (* 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 = x * ((t * a) - (y * z));
double tmp;
if ((j <= -1.65e-50) || !(j <= 5.5e+150)) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else {
tmp = (b * ((a * i) - (z * c))) - t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((t * a) - (y * z))
if ((j <= (-1.65d-50)) .or. (.not. (j <= 5.5d+150))) then
tmp = (j * ((t * c) - (y * i))) - t_1
else
tmp = (b * ((a * i) - (z * c))) - t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((t * a) - (y * z));
double tmp;
if ((j <= -1.65e-50) || !(j <= 5.5e+150)) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else {
tmp = (b * ((a * i) - (z * c))) - t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((t * a) - (y * z)) tmp = 0 if (j <= -1.65e-50) or not (j <= 5.5e+150): tmp = (j * ((t * c) - (y * i))) - t_1 else: tmp = (b * ((a * i) - (z * c))) - t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(t * a) - Float64(y * z))) tmp = 0.0 if ((j <= -1.65e-50) || !(j <= 5.5e+150)) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - t_1); else tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - t_1); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((t * a) - (y * z)); tmp = 0.0; if ((j <= -1.65e-50) || ~((j <= 5.5e+150))) tmp = (j * ((t * c) - (y * i))) - t_1; else tmp = (b * ((a * i) - (z * c))) - t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[j, -1.65e-50], N[Not[LessEqual[j, 5.5e+150]], $MachinePrecision]], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{if}\;j \leq -1.65 \cdot 10^{-50} \lor \neg \left(j \leq 5.5 \cdot 10^{+150}\right):\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - t\_1\\
\end{array}
\end{array}
if j < -1.6499999999999999e-50 or 5.50000000000000017e150 < j Initial program 76.0%
Taylor expanded in b around 0 77.7%
if -1.6499999999999999e-50 < j < 5.50000000000000017e150Initial program 68.4%
Taylor expanded in j around 0 75.4%
Final simplification76.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.2e+124) (not (<= c 8.6e+173))) (* c (- (* t j) (* z b))) (- (* j (- (* t c) (* y i))) (* x (- (* t a) (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.2e+124) || !(c <= 8.6e+173)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.2d+124)) .or. (.not. (c <= 8.6d+173))) then
tmp = c * ((t * j) - (z * b))
else
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.2e+124) || !(c <= 8.6e+173)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.2e+124) or not (c <= 8.6e+173): tmp = c * ((t * j) - (z * b)) else: tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.2e+124) || !(c <= 8.6e+173)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.2e+124) || ~((c <= 8.6e+173))) tmp = c * ((t * j) - (z * b)); else tmp = (j * ((t * c) - (y * i))) - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.2e+124], N[Not[LessEqual[c, 8.6e+173]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.2 \cdot 10^{+124} \lor \neg \left(c \leq 8.6 \cdot 10^{+173}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if c < -2.2000000000000001e124 or 8.60000000000000051e173 < c Initial program 48.9%
+-commutative48.9%
fma-define55.1%
*-commutative55.1%
*-commutative55.1%
cancel-sign-sub-inv55.1%
cancel-sign-sub55.1%
sub-neg55.1%
sub-neg55.1%
*-commutative55.1%
fmm-def55.1%
*-commutative55.1%
distribute-rgt-neg-out55.1%
remove-double-neg55.1%
*-commutative55.1%
*-commutative55.1%
Simplified55.1%
Taylor expanded in c around inf 75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
if -2.2000000000000001e124 < c < 8.60000000000000051e173Initial program 79.4%
Taylor expanded in b around 0 68.4%
Final simplification70.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= j -1.1e+179)
(* c (* t j))
(if (<= j -2800000000000.0)
t_1
(if (<= j 3.2e-236)
(* x (* t (- a)))
(if (<= j 2100000000.0) (* c (* z (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (j <= -1.1e+179) {
tmp = c * (t * j);
} else if (j <= -2800000000000.0) {
tmp = t_1;
} else if (j <= 3.2e-236) {
tmp = x * (t * -a);
} else if (j <= 2100000000.0) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (j <= (-1.1d+179)) then
tmp = c * (t * j)
else if (j <= (-2800000000000.0d0)) then
tmp = t_1
else if (j <= 3.2d-236) then
tmp = x * (t * -a)
else if (j <= 2100000000.0d0) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (j <= -1.1e+179) {
tmp = c * (t * j);
} else if (j <= -2800000000000.0) {
tmp = t_1;
} else if (j <= 3.2e-236) {
tmp = x * (t * -a);
} else if (j <= 2100000000.0) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if j <= -1.1e+179: tmp = c * (t * j) elif j <= -2800000000000.0: tmp = t_1 elif j <= 3.2e-236: tmp = x * (t * -a) elif j <= 2100000000.0: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (j <= -1.1e+179) tmp = Float64(c * Float64(t * j)); elseif (j <= -2800000000000.0) tmp = t_1; elseif (j <= 3.2e-236) tmp = Float64(x * Float64(t * Float64(-a))); elseif (j <= 2100000000.0) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (j <= -1.1e+179) tmp = c * (t * j); elseif (j <= -2800000000000.0) tmp = t_1; elseif (j <= 3.2e-236) tmp = x * (t * -a); elseif (j <= 2100000000.0) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.1e+179], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2800000000000.0], t$95$1, If[LessEqual[j, 3.2e-236], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2100000000.0], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1.1 \cdot 10^{+179}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;j \leq -2800000000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{-236}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{elif}\;j \leq 2100000000:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.1e179Initial program 57.9%
+-commutative57.9%
fma-define73.3%
*-commutative73.3%
*-commutative73.3%
cancel-sign-sub-inv73.3%
cancel-sign-sub73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
fmm-def73.3%
*-commutative73.3%
distribute-rgt-neg-out73.3%
remove-double-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in c around inf 60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in t around inf 49.6%
*-commutative49.6%
*-commutative49.6%
Simplified49.6%
if -1.1e179 < j < -2.8e12 or 2.1e9 < j Initial program 78.5%
+-commutative78.5%
fma-define85.6%
*-commutative85.6%
*-commutative85.6%
cancel-sign-sub-inv85.6%
cancel-sign-sub85.6%
sub-neg85.6%
sub-neg85.6%
*-commutative85.6%
fmm-def85.7%
*-commutative85.7%
distribute-rgt-neg-out85.7%
remove-double-neg85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in i around inf 53.4%
distribute-lft-out--53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in y around inf 47.3%
associate-*r*47.3%
neg-mul-147.3%
Simplified47.3%
if -2.8e12 < j < 3.2e-236Initial program 72.0%
+-commutative72.0%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
sub-neg72.0%
sub-neg72.0%
*-commutative72.0%
fmm-def72.0%
*-commutative72.0%
distribute-rgt-neg-out72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in y around -inf 72.3%
Simplified74.6%
Taylor expanded in x around inf 48.4%
Taylor expanded in y around 0 37.7%
associate-*r*37.7%
mul-1-neg37.7%
Simplified37.7%
if 3.2e-236 < j < 2.1e9Initial program 64.7%
+-commutative64.7%
fma-define64.7%
*-commutative64.7%
*-commutative64.7%
cancel-sign-sub-inv64.7%
cancel-sign-sub64.7%
sub-neg64.7%
sub-neg64.7%
*-commutative64.7%
fmm-def64.7%
*-commutative64.7%
distribute-rgt-neg-out64.7%
remove-double-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in c around inf 39.8%
*-commutative39.8%
*-commutative39.8%
Simplified39.8%
Taylor expanded in t around 0 35.6%
mul-1-neg35.6%
*-commutative35.6%
distribute-rgt-neg-in35.6%
Simplified35.6%
Final simplification42.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= j -1.5e+185)
(* c (* t j))
(if (<= j -3.8e+14)
t_1
(if (<= j 2.2e-236)
(* (- t) (* x a))
(if (<= j 2550000000.0) (* c (* z (- b))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (j <= -1.5e+185) {
tmp = c * (t * j);
} else if (j <= -3.8e+14) {
tmp = t_1;
} else if (j <= 2.2e-236) {
tmp = -t * (x * a);
} else if (j <= 2550000000.0) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (j <= (-1.5d+185)) then
tmp = c * (t * j)
else if (j <= (-3.8d+14)) then
tmp = t_1
else if (j <= 2.2d-236) then
tmp = -t * (x * a)
else if (j <= 2550000000.0d0) then
tmp = c * (z * -b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (j <= -1.5e+185) {
tmp = c * (t * j);
} else if (j <= -3.8e+14) {
tmp = t_1;
} else if (j <= 2.2e-236) {
tmp = -t * (x * a);
} else if (j <= 2550000000.0) {
tmp = c * (z * -b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if j <= -1.5e+185: tmp = c * (t * j) elif j <= -3.8e+14: tmp = t_1 elif j <= 2.2e-236: tmp = -t * (x * a) elif j <= 2550000000.0: tmp = c * (z * -b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (j <= -1.5e+185) tmp = Float64(c * Float64(t * j)); elseif (j <= -3.8e+14) tmp = t_1; elseif (j <= 2.2e-236) tmp = Float64(Float64(-t) * Float64(x * a)); elseif (j <= 2550000000.0) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (j <= -1.5e+185) tmp = c * (t * j); elseif (j <= -3.8e+14) tmp = t_1; elseif (j <= 2.2e-236) tmp = -t * (x * a); elseif (j <= 2550000000.0) tmp = c * (z * -b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.5e+185], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -3.8e+14], t$95$1, If[LessEqual[j, 2.2e-236], N[((-t) * N[(x * a), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2550000000.0], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1.5 \cdot 10^{+185}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;j \leq -3.8 \cdot 10^{+14}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.2 \cdot 10^{-236}:\\
\;\;\;\;\left(-t\right) \cdot \left(x \cdot a\right)\\
\mathbf{elif}\;j \leq 2550000000:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.49999999999999997e185Initial program 57.9%
+-commutative57.9%
fma-define73.3%
*-commutative73.3%
*-commutative73.3%
cancel-sign-sub-inv73.3%
cancel-sign-sub73.3%
sub-neg73.3%
sub-neg73.3%
*-commutative73.3%
fmm-def73.3%
*-commutative73.3%
distribute-rgt-neg-out73.3%
remove-double-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in c around inf 60.8%
*-commutative60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in t around inf 49.6%
*-commutative49.6%
*-commutative49.6%
Simplified49.6%
if -1.49999999999999997e185 < j < -3.8e14 or 2.55e9 < j Initial program 78.5%
+-commutative78.5%
fma-define85.6%
*-commutative85.6%
*-commutative85.6%
cancel-sign-sub-inv85.6%
cancel-sign-sub85.6%
sub-neg85.6%
sub-neg85.6%
*-commutative85.6%
fmm-def85.7%
*-commutative85.7%
distribute-rgt-neg-out85.7%
remove-double-neg85.7%
*-commutative85.7%
*-commutative85.7%
Simplified85.7%
Taylor expanded in i around inf 53.4%
distribute-lft-out--53.4%
*-commutative53.4%
Simplified53.4%
Taylor expanded in y around inf 47.3%
associate-*r*47.3%
neg-mul-147.3%
Simplified47.3%
if -3.8e14 < j < 2.19999999999999992e-236Initial program 72.0%
+-commutative72.0%
fma-define72.0%
*-commutative72.0%
*-commutative72.0%
cancel-sign-sub-inv72.0%
cancel-sign-sub72.0%
sub-neg72.0%
sub-neg72.0%
*-commutative72.0%
fmm-def72.0%
*-commutative72.0%
distribute-rgt-neg-out72.0%
remove-double-neg72.0%
*-commutative72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in y around -inf 72.3%
Simplified74.6%
Taylor expanded in t around -inf 45.6%
*-commutative45.6%
*-commutative45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in j around 0 37.7%
mul-1-neg37.7%
*-commutative37.7%
distribute-lft-neg-in37.7%
Simplified37.7%
if 2.19999999999999992e-236 < j < 2.55e9Initial program 64.7%
+-commutative64.7%
fma-define64.7%
*-commutative64.7%
*-commutative64.7%
cancel-sign-sub-inv64.7%
cancel-sign-sub64.7%
sub-neg64.7%
sub-neg64.7%
*-commutative64.7%
fmm-def64.7%
*-commutative64.7%
distribute-rgt-neg-out64.7%
remove-double-neg64.7%
*-commutative64.7%
*-commutative64.7%
Simplified64.7%
Taylor expanded in c around inf 39.8%
*-commutative39.8%
*-commutative39.8%
Simplified39.8%
Taylor expanded in t around 0 35.6%
mul-1-neg35.6%
*-commutative35.6%
distribute-rgt-neg-in35.6%
Simplified35.6%
Final simplification42.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -9e+116)
(* c (* z (- b)))
(if (<= c -6.4e-189)
(* i (* y (- j)))
(if (<= c 3e+118)
(* z (* x y))
(if (<= c 1.9e+230) (* c (* t j)) (* z (* c (- b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -9e+116) {
tmp = c * (z * -b);
} else if (c <= -6.4e-189) {
tmp = i * (y * -j);
} else if (c <= 3e+118) {
tmp = z * (x * y);
} else if (c <= 1.9e+230) {
tmp = c * (t * j);
} else {
tmp = z * (c * -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 (c <= (-9d+116)) then
tmp = c * (z * -b)
else if (c <= (-6.4d-189)) then
tmp = i * (y * -j)
else if (c <= 3d+118) then
tmp = z * (x * y)
else if (c <= 1.9d+230) then
tmp = c * (t * j)
else
tmp = z * (c * -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 (c <= -9e+116) {
tmp = c * (z * -b);
} else if (c <= -6.4e-189) {
tmp = i * (y * -j);
} else if (c <= 3e+118) {
tmp = z * (x * y);
} else if (c <= 1.9e+230) {
tmp = c * (t * j);
} else {
tmp = z * (c * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -9e+116: tmp = c * (z * -b) elif c <= -6.4e-189: tmp = i * (y * -j) elif c <= 3e+118: tmp = z * (x * y) elif c <= 1.9e+230: tmp = c * (t * j) else: tmp = z * (c * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -9e+116) tmp = Float64(c * Float64(z * Float64(-b))); elseif (c <= -6.4e-189) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= 3e+118) tmp = Float64(z * Float64(x * y)); elseif (c <= 1.9e+230) tmp = Float64(c * Float64(t * j)); else tmp = Float64(z * Float64(c * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -9e+116) tmp = c * (z * -b); elseif (c <= -6.4e-189) tmp = i * (y * -j); elseif (c <= 3e+118) tmp = z * (x * y); elseif (c <= 1.9e+230) tmp = c * (t * j); else tmp = z * (c * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -9e+116], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6.4e-189], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3e+118], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.9e+230], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -9 \cdot 10^{+116}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -6.4 \cdot 10^{-189}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 3 \cdot 10^{+118}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{+230}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if c < -9.00000000000000032e116Initial program 54.4%
+-commutative54.4%
fma-define65.8%
*-commutative65.8%
*-commutative65.8%
cancel-sign-sub-inv65.8%
cancel-sign-sub65.8%
sub-neg65.8%
sub-neg65.8%
*-commutative65.8%
fmm-def65.8%
*-commutative65.8%
distribute-rgt-neg-out65.8%
remove-double-neg65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in c around inf 72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in t around 0 49.5%
mul-1-neg49.5%
*-commutative49.5%
distribute-rgt-neg-in49.5%
Simplified49.5%
if -9.00000000000000032e116 < c < -6.4000000000000001e-189Initial program 78.8%
+-commutative78.8%
fma-define83.3%
*-commutative83.3%
*-commutative83.3%
cancel-sign-sub-inv83.3%
cancel-sign-sub83.3%
sub-neg83.3%
sub-neg83.3%
*-commutative83.3%
fmm-def83.3%
*-commutative83.3%
distribute-rgt-neg-out83.3%
remove-double-neg83.3%
*-commutative83.3%
*-commutative83.3%
Simplified83.3%
Taylor expanded in i around inf 47.9%
distribute-lft-out--47.9%
*-commutative47.9%
Simplified47.9%
Taylor expanded in y around inf 34.4%
associate-*r*34.4%
neg-mul-134.4%
Simplified34.4%
if -6.4000000000000001e-189 < c < 3e118Initial program 78.0%
cancel-sign-sub-inv78.0%
cancel-sign-sub78.0%
fmm-def78.0%
distribute-lft-neg-out78.0%
*-commutative78.0%
remove-double-neg78.0%
*-commutative78.0%
*-commutative78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in z around inf 59.8%
Taylor expanded in z around inf 44.0%
Taylor expanded in x around inf 36.1%
if 3e118 < c < 1.9e230Initial program 76.7%
+-commutative76.7%
fma-define76.7%
*-commutative76.7%
*-commutative76.7%
cancel-sign-sub-inv76.7%
cancel-sign-sub76.7%
sub-neg76.7%
sub-neg76.7%
*-commutative76.7%
fmm-def76.7%
*-commutative76.7%
distribute-rgt-neg-out76.7%
remove-double-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in c around inf 62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in t around inf 42.5%
*-commutative42.5%
*-commutative42.5%
Simplified42.5%
if 1.9e230 < c Initial program 34.4%
+-commutative34.4%
fma-define34.4%
*-commutative34.4%
*-commutative34.4%
cancel-sign-sub-inv34.4%
cancel-sign-sub34.4%
sub-neg34.4%
sub-neg34.4%
*-commutative34.4%
fmm-def34.4%
*-commutative34.4%
distribute-rgt-neg-out34.4%
remove-double-neg34.4%
*-commutative34.4%
*-commutative34.4%
Simplified34.4%
Taylor expanded in c around inf 83.7%
*-commutative83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in t around 0 62.2%
mul-1-neg62.2%
associate-*r*78.0%
Simplified78.0%
Final simplification41.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -6.4e+31)
(* c (* z (- b)))
(if (<= c -6e-146)
(* i (* a b))
(if (<= c 5.4e+118)
(* z (* x y))
(if (<= c 5.7e+234) (* c (* t j)) (* z (* c (- b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (c <= -6.4e+31) {
tmp = c * (z * -b);
} else if (c <= -6e-146) {
tmp = i * (a * b);
} else if (c <= 5.4e+118) {
tmp = z * (x * y);
} else if (c <= 5.7e+234) {
tmp = c * (t * j);
} else {
tmp = z * (c * -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 (c <= (-6.4d+31)) then
tmp = c * (z * -b)
else if (c <= (-6d-146)) then
tmp = i * (a * b)
else if (c <= 5.4d+118) then
tmp = z * (x * y)
else if (c <= 5.7d+234) then
tmp = c * (t * j)
else
tmp = z * (c * -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 (c <= -6.4e+31) {
tmp = c * (z * -b);
} else if (c <= -6e-146) {
tmp = i * (a * b);
} else if (c <= 5.4e+118) {
tmp = z * (x * y);
} else if (c <= 5.7e+234) {
tmp = c * (t * j);
} else {
tmp = z * (c * -b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -6.4e+31: tmp = c * (z * -b) elif c <= -6e-146: tmp = i * (a * b) elif c <= 5.4e+118: tmp = z * (x * y) elif c <= 5.7e+234: tmp = c * (t * j) else: tmp = z * (c * -b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -6.4e+31) tmp = Float64(c * Float64(z * Float64(-b))); elseif (c <= -6e-146) tmp = Float64(i * Float64(a * b)); elseif (c <= 5.4e+118) tmp = Float64(z * Float64(x * y)); elseif (c <= 5.7e+234) tmp = Float64(c * Float64(t * j)); else tmp = Float64(z * Float64(c * Float64(-b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -6.4e+31) tmp = c * (z * -b); elseif (c <= -6e-146) tmp = i * (a * b); elseif (c <= 5.4e+118) tmp = z * (x * y); elseif (c <= 5.7e+234) tmp = c * (t * j); else tmp = z * (c * -b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -6.4e+31], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -6e-146], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.4e+118], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.7e+234], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -6.4 \cdot 10^{+31}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;c \leq -6 \cdot 10^{-146}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 5.4 \cdot 10^{+118}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 5.7 \cdot 10^{+234}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(c \cdot \left(-b\right)\right)\\
\end{array}
\end{array}
if c < -6.4000000000000001e31Initial program 60.4%
+-commutative60.4%
fma-define71.7%
*-commutative71.7%
*-commutative71.7%
cancel-sign-sub-inv71.7%
cancel-sign-sub71.7%
sub-neg71.7%
sub-neg71.7%
*-commutative71.7%
fmm-def71.7%
*-commutative71.7%
distribute-rgt-neg-out71.7%
remove-double-neg71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in c around inf 61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in t around 0 40.9%
mul-1-neg40.9%
*-commutative40.9%
distribute-rgt-neg-in40.9%
Simplified40.9%
if -6.4000000000000001e31 < c < -6.00000000000000038e-146Initial program 81.9%
+-commutative81.9%
fma-define84.4%
*-commutative84.4%
*-commutative84.4%
cancel-sign-sub-inv84.4%
cancel-sign-sub84.4%
sub-neg84.4%
sub-neg84.4%
*-commutative84.4%
fmm-def84.4%
*-commutative84.4%
distribute-rgt-neg-out84.4%
remove-double-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in i around inf 54.4%
distribute-lft-out--54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in y around 0 27.6%
if -6.00000000000000038e-146 < c < 5.4e118Initial program 78.1%
cancel-sign-sub-inv78.1%
cancel-sign-sub78.1%
fmm-def78.1%
distribute-lft-neg-out78.1%
*-commutative78.1%
remove-double-neg78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in z around inf 60.4%
Taylor expanded in z around inf 44.2%
Taylor expanded in x around inf 35.2%
if 5.4e118 < c < 5.70000000000000005e234Initial program 76.7%
+-commutative76.7%
fma-define76.7%
*-commutative76.7%
*-commutative76.7%
cancel-sign-sub-inv76.7%
cancel-sign-sub76.7%
sub-neg76.7%
sub-neg76.7%
*-commutative76.7%
fmm-def76.7%
*-commutative76.7%
distribute-rgt-neg-out76.7%
remove-double-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in c around inf 62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in t around inf 42.5%
*-commutative42.5%
*-commutative42.5%
Simplified42.5%
if 5.70000000000000005e234 < c Initial program 34.4%
+-commutative34.4%
fma-define34.4%
*-commutative34.4%
*-commutative34.4%
cancel-sign-sub-inv34.4%
cancel-sign-sub34.4%
sub-neg34.4%
sub-neg34.4%
*-commutative34.4%
fmm-def34.4%
*-commutative34.4%
distribute-rgt-neg-out34.4%
remove-double-neg34.4%
*-commutative34.4%
*-commutative34.4%
Simplified34.4%
Taylor expanded in c around inf 83.7%
*-commutative83.7%
*-commutative83.7%
Simplified83.7%
Taylor expanded in t around 0 62.2%
mul-1-neg62.2%
associate-*r*78.0%
Simplified78.0%
Final simplification39.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* c (- b)))))
(if (<= c -4.2e+32)
t_1
(if (<= c -5.8e-146)
(* i (* a b))
(if (<= c 5.5e+118)
(* z (* x y))
(if (<= c 2.8e+233) (* c (* t j)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (c * -b);
double tmp;
if (c <= -4.2e+32) {
tmp = t_1;
} else if (c <= -5.8e-146) {
tmp = i * (a * b);
} else if (c <= 5.5e+118) {
tmp = z * (x * y);
} else if (c <= 2.8e+233) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (c * -b)
if (c <= (-4.2d+32)) then
tmp = t_1
else if (c <= (-5.8d-146)) then
tmp = i * (a * b)
else if (c <= 5.5d+118) then
tmp = z * (x * y)
else if (c <= 2.8d+233) then
tmp = c * (t * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (c * -b);
double tmp;
if (c <= -4.2e+32) {
tmp = t_1;
} else if (c <= -5.8e-146) {
tmp = i * (a * b);
} else if (c <= 5.5e+118) {
tmp = z * (x * y);
} else if (c <= 2.8e+233) {
tmp = c * (t * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (c * -b) tmp = 0 if c <= -4.2e+32: tmp = t_1 elif c <= -5.8e-146: tmp = i * (a * b) elif c <= 5.5e+118: tmp = z * (x * y) elif c <= 2.8e+233: tmp = c * (t * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(c * Float64(-b))) tmp = 0.0 if (c <= -4.2e+32) tmp = t_1; elseif (c <= -5.8e-146) tmp = Float64(i * Float64(a * b)); elseif (c <= 5.5e+118) tmp = Float64(z * Float64(x * y)); elseif (c <= 2.8e+233) tmp = Float64(c * Float64(t * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (c * -b); tmp = 0.0; if (c <= -4.2e+32) tmp = t_1; elseif (c <= -5.8e-146) tmp = i * (a * b); elseif (c <= 5.5e+118) tmp = z * (x * y); elseif (c <= 2.8e+233) tmp = c * (t * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(c * (-b)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -4.2e+32], t$95$1, If[LessEqual[c, -5.8e-146], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.5e+118], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.8e+233], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(c \cdot \left(-b\right)\right)\\
\mathbf{if}\;c \leq -4.2 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -5.8 \cdot 10^{-146}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;c \leq 5.5 \cdot 10^{+118}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;c \leq 2.8 \cdot 10^{+233}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -4.2000000000000001e32 or 2.8000000000000001e233 < c Initial program 53.8%
+-commutative53.8%
fma-define62.3%
*-commutative62.3%
*-commutative62.3%
cancel-sign-sub-inv62.3%
cancel-sign-sub62.3%
sub-neg62.3%
sub-neg62.3%
*-commutative62.3%
fmm-def62.3%
*-commutative62.3%
distribute-rgt-neg-out62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in c around inf 67.0%
*-commutative67.0%
*-commutative67.0%
Simplified67.0%
Taylor expanded in t around 0 46.3%
mul-1-neg46.3%
associate-*r*49.0%
Simplified49.0%
if -4.2000000000000001e32 < c < -5.80000000000000022e-146Initial program 81.9%
+-commutative81.9%
fma-define84.4%
*-commutative84.4%
*-commutative84.4%
cancel-sign-sub-inv84.4%
cancel-sign-sub84.4%
sub-neg84.4%
sub-neg84.4%
*-commutative84.4%
fmm-def84.4%
*-commutative84.4%
distribute-rgt-neg-out84.4%
remove-double-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in i around inf 54.4%
distribute-lft-out--54.4%
*-commutative54.4%
Simplified54.4%
Taylor expanded in y around 0 27.6%
if -5.80000000000000022e-146 < c < 5.5000000000000003e118Initial program 78.1%
cancel-sign-sub-inv78.1%
cancel-sign-sub78.1%
fmm-def78.1%
distribute-lft-neg-out78.1%
*-commutative78.1%
remove-double-neg78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
*-commutative78.1%
Simplified78.1%
Taylor expanded in z around inf 60.4%
Taylor expanded in z around inf 44.2%
Taylor expanded in x around inf 35.2%
if 5.5000000000000003e118 < c < 2.8000000000000001e233Initial program 76.7%
+-commutative76.7%
fma-define76.7%
*-commutative76.7%
*-commutative76.7%
cancel-sign-sub-inv76.7%
cancel-sign-sub76.7%
sub-neg76.7%
sub-neg76.7%
*-commutative76.7%
fmm-def76.7%
*-commutative76.7%
distribute-rgt-neg-out76.7%
remove-double-neg76.7%
*-commutative76.7%
*-commutative76.7%
Simplified76.7%
Taylor expanded in c around inf 62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in t around inf 42.5%
*-commutative42.5%
*-commutative42.5%
Simplified42.5%
Final simplification38.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -3.4e+97)
t_1
(if (<= y 9.5e-171)
(* c (- (* t j) (* z b)))
(if (<= y 3.8e+29) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.4e+97) {
tmp = t_1;
} else if (y <= 9.5e-171) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3.8e+29) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * ((x * z) - (i * j))
if (y <= (-3.4d+97)) then
tmp = t_1
else if (y <= 9.5d-171) then
tmp = c * ((t * j) - (z * b))
else if (y <= 3.8d+29) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * ((x * z) - (i * j));
double tmp;
if (y <= -3.4e+97) {
tmp = t_1;
} else if (y <= 9.5e-171) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 3.8e+29) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * ((x * z) - (i * j)) tmp = 0 if y <= -3.4e+97: tmp = t_1 elif y <= 9.5e-171: tmp = c * ((t * j) - (z * b)) elif y <= 3.8e+29: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -3.4e+97) tmp = t_1; elseif (y <= 9.5e-171) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 3.8e+29) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -3.4e+97) tmp = t_1; elseif (y <= 9.5e-171) tmp = c * ((t * j) - (z * b)); elseif (y <= 3.8e+29) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -3.4e+97], t$95$1, If[LessEqual[y, 9.5e-171], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.8e+29], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -3.4 \cdot 10^{+97}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9.5 \cdot 10^{-171}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{+29}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -3.4000000000000001e97 or 3.79999999999999971e29 < y Initial program 65.3%
+-commutative65.3%
fma-define68.2%
*-commutative68.2%
*-commutative68.2%
cancel-sign-sub-inv68.2%
cancel-sign-sub68.2%
sub-neg68.2%
sub-neg68.2%
*-commutative68.2%
fmm-def68.2%
*-commutative68.2%
distribute-rgt-neg-out68.2%
remove-double-neg68.2%
*-commutative68.2%
*-commutative68.2%
Simplified68.2%
Taylor expanded in y around inf 70.1%
+-commutative70.1%
mul-1-neg70.1%
unsub-neg70.1%
Simplified70.1%
if -3.4000000000000001e97 < y < 9.4999999999999994e-171Initial program 77.0%
+-commutative77.0%
fma-define82.5%
*-commutative82.5%
*-commutative82.5%
cancel-sign-sub-inv82.5%
cancel-sign-sub82.5%
sub-neg82.5%
sub-neg82.5%
*-commutative82.5%
fmm-def82.5%
*-commutative82.5%
distribute-rgt-neg-out82.5%
remove-double-neg82.5%
*-commutative82.5%
*-commutative82.5%
Simplified82.5%
Taylor expanded in c around inf 51.2%
*-commutative51.2%
*-commutative51.2%
Simplified51.2%
if 9.4999999999999994e-171 < y < 3.79999999999999971e29Initial program 74.3%
+-commutative74.3%
fma-define78.9%
*-commutative78.9%
*-commutative78.9%
cancel-sign-sub-inv78.9%
cancel-sign-sub78.9%
sub-neg78.9%
sub-neg78.9%
*-commutative78.9%
fmm-def78.9%
*-commutative78.9%
distribute-rgt-neg-out78.9%
remove-double-neg78.9%
*-commutative78.9%
*-commutative78.9%
Simplified78.9%
Taylor expanded in t around inf 67.7%
+-commutative67.7%
mul-1-neg67.7%
unsub-neg67.7%
*-commutative67.7%
Simplified67.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= y -1.15e+111)
(* j (- (* t c) (* y i)))
(if (<= y 4e+144)
(* c (- (* t j) (* z b)))
(if (<= y 1.75e+209) (* i (* y (- j))) (* x (* y z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.15e+111) {
tmp = j * ((t * c) - (y * i));
} else if (y <= 4e+144) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1.75e+209) {
tmp = i * (y * -j);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (y <= (-1.15d+111)) then
tmp = j * ((t * c) - (y * i))
else if (y <= 4d+144) then
tmp = c * ((t * j) - (z * b))
else if (y <= 1.75d+209) then
tmp = i * (y * -j)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (y <= -1.15e+111) {
tmp = j * ((t * c) - (y * i));
} else if (y <= 4e+144) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1.75e+209) {
tmp = i * (y * -j);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if y <= -1.15e+111: tmp = j * ((t * c) - (y * i)) elif y <= 4e+144: tmp = c * ((t * j) - (z * b)) elif y <= 1.75e+209: tmp = i * (y * -j) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (y <= -1.15e+111) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (y <= 4e+144) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 1.75e+209) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (y <= -1.15e+111) tmp = j * ((t * c) - (y * i)); elseif (y <= 4e+144) tmp = c * ((t * j) - (z * b)); elseif (y <= 1.75e+209) tmp = i * (y * -j); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[y, -1.15e+111], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 4e+144], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.75e+209], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -1.15 \cdot 10^{+111}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+144}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 1.75 \cdot 10^{+209}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -1.15000000000000001e111Initial program 70.2%
+-commutative70.2%
fma-define72.7%
*-commutative72.7%
*-commutative72.7%
cancel-sign-sub-inv72.7%
cancel-sign-sub72.7%
sub-neg72.7%
sub-neg72.7%
*-commutative72.7%
fmm-def72.7%
*-commutative72.7%
distribute-rgt-neg-out72.7%
remove-double-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in j around inf 59.2%
sub-neg59.2%
*-commutative59.2%
*-commutative59.2%
sub-neg59.2%
Simplified59.2%
if -1.15000000000000001e111 < y < 4.00000000000000009e144Initial program 75.9%
+-commutative75.9%
fma-define81.5%
*-commutative81.5%
*-commutative81.5%
cancel-sign-sub-inv81.5%
cancel-sign-sub81.5%
sub-neg81.5%
sub-neg81.5%
*-commutative81.5%
fmm-def81.5%
*-commutative81.5%
distribute-rgt-neg-out81.5%
remove-double-neg81.5%
*-commutative81.5%
*-commutative81.5%
Simplified81.5%
Taylor expanded in c around inf 49.4%
*-commutative49.4%
*-commutative49.4%
Simplified49.4%
if 4.00000000000000009e144 < y < 1.7500000000000001e209Initial program 55.3%
+-commutative55.3%
fma-define55.3%
*-commutative55.3%
*-commutative55.3%
cancel-sign-sub-inv55.3%
cancel-sign-sub55.3%
sub-neg55.3%
sub-neg55.3%
*-commutative55.3%
fmm-def55.3%
*-commutative55.3%
distribute-rgt-neg-out55.3%
remove-double-neg55.3%
*-commutative55.3%
*-commutative55.3%
Simplified55.3%
Taylor expanded in i around inf 73.8%
distribute-lft-out--73.8%
*-commutative73.8%
Simplified73.8%
Taylor expanded in y around inf 67.3%
associate-*r*67.3%
neg-mul-167.3%
Simplified67.3%
if 1.7500000000000001e209 < y Initial program 52.8%
+-commutative52.8%
fma-define52.8%
*-commutative52.8%
*-commutative52.8%
cancel-sign-sub-inv52.8%
cancel-sign-sub52.8%
sub-neg52.8%
sub-neg52.8%
*-commutative52.8%
fmm-def52.8%
*-commutative52.8%
distribute-rgt-neg-out52.8%
remove-double-neg52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in y around -inf 52.5%
Simplified61.5%
Taylor expanded in x around inf 70.2%
Taylor expanded in y around inf 62.2%
Final simplification53.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= y -6e+99)
t_1
(if (<= y 1.7e+144)
(* c (- (* t j) (* z b)))
(if (<= y 1e+210) t_1 (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -6e+99) {
tmp = t_1;
} else if (y <= 1.7e+144) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1e+210) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (y <= (-6d+99)) then
tmp = t_1
else if (y <= 1.7d+144) then
tmp = c * ((t * j) - (z * b))
else if (y <= 1d+210) then
tmp = t_1
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (y <= -6e+99) {
tmp = t_1;
} else if (y <= 1.7e+144) {
tmp = c * ((t * j) - (z * b));
} else if (y <= 1e+210) {
tmp = t_1;
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if y <= -6e+99: tmp = t_1 elif y <= 1.7e+144: tmp = c * ((t * j) - (z * b)) elif y <= 1e+210: tmp = t_1 else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (y <= -6e+99) tmp = t_1; elseif (y <= 1.7e+144) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); elseif (y <= 1e+210) tmp = t_1; else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (y <= -6e+99) tmp = t_1; elseif (y <= 1.7e+144) tmp = c * ((t * j) - (z * b)); elseif (y <= 1e+210) tmp = t_1; else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -6e+99], t$95$1, If[LessEqual[y, 1.7e+144], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+210], t$95$1, N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;y \leq -6 \cdot 10^{+99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{+144}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{elif}\;y \leq 10^{+210}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if y < -6.00000000000000029e99 or 1.7e144 < y < 9.99999999999999927e209Initial program 66.2%
+-commutative66.2%
fma-define69.6%
*-commutative69.6%
*-commutative69.6%
cancel-sign-sub-inv69.6%
cancel-sign-sub69.6%
sub-neg69.6%
sub-neg69.6%
*-commutative69.6%
fmm-def69.6%
*-commutative69.6%
distribute-rgt-neg-out69.6%
remove-double-neg69.6%
*-commutative69.6%
*-commutative69.6%
Simplified69.6%
Taylor expanded in i around inf 59.1%
distribute-lft-out--59.1%
*-commutative59.1%
Simplified59.1%
Taylor expanded in y around inf 49.5%
associate-*r*49.5%
neg-mul-149.5%
Simplified49.5%
if -6.00000000000000029e99 < y < 1.7e144Initial program 76.1%
+-commutative76.1%
fma-define81.2%
*-commutative81.2%
*-commutative81.2%
cancel-sign-sub-inv81.2%
cancel-sign-sub81.2%
sub-neg81.2%
sub-neg81.2%
*-commutative81.2%
fmm-def81.2%
*-commutative81.2%
distribute-rgt-neg-out81.2%
remove-double-neg81.2%
*-commutative81.2%
*-commutative81.2%
Simplified81.2%
Taylor expanded in c around inf 49.7%
*-commutative49.7%
*-commutative49.7%
Simplified49.7%
if 9.99999999999999927e209 < y Initial program 52.8%
+-commutative52.8%
fma-define52.8%
*-commutative52.8%
*-commutative52.8%
cancel-sign-sub-inv52.8%
cancel-sign-sub52.8%
sub-neg52.8%
sub-neg52.8%
*-commutative52.8%
fmm-def52.8%
*-commutative52.8%
distribute-rgt-neg-out52.8%
remove-double-neg52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in y around -inf 52.5%
Simplified61.5%
Taylor expanded in x around inf 70.2%
Taylor expanded in y around inf 62.2%
Final simplification50.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -0.013)
(* x (* y z))
(if (<= z 4.8e-222)
(* a (* x (- t)))
(if (<= z 1.9e+51) (* i (* y (- j))) (* z (* x y))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -0.013) {
tmp = x * (y * z);
} else if (z <= 4.8e-222) {
tmp = a * (x * -t);
} else if (z <= 1.9e+51) {
tmp = i * (y * -j);
} else {
tmp = z * (x * 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 (z <= (-0.013d0)) then
tmp = x * (y * z)
else if (z <= 4.8d-222) then
tmp = a * (x * -t)
else if (z <= 1.9d+51) then
tmp = i * (y * -j)
else
tmp = z * (x * 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 (z <= -0.013) {
tmp = x * (y * z);
} else if (z <= 4.8e-222) {
tmp = a * (x * -t);
} else if (z <= 1.9e+51) {
tmp = i * (y * -j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -0.013: tmp = x * (y * z) elif z <= 4.8e-222: tmp = a * (x * -t) elif z <= 1.9e+51: tmp = i * (y * -j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -0.013) tmp = Float64(x * Float64(y * z)); elseif (z <= 4.8e-222) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 1.9e+51) tmp = Float64(i * Float64(y * Float64(-j))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -0.013) tmp = x * (y * z); elseif (z <= 4.8e-222) tmp = a * (x * -t); elseif (z <= 1.9e+51) tmp = i * (y * -j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -0.013], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e-222], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+51], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.013:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{-222}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+51}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -0.0129999999999999994Initial program 72.9%
+-commutative72.9%
fma-define74.5%
*-commutative74.5%
*-commutative74.5%
cancel-sign-sub-inv74.5%
cancel-sign-sub74.5%
sub-neg74.5%
sub-neg74.5%
*-commutative74.5%
fmm-def74.5%
*-commutative74.5%
distribute-rgt-neg-out74.5%
remove-double-neg74.5%
*-commutative74.5%
*-commutative74.5%
Simplified74.5%
Taylor expanded in y around -inf 60.4%
Simplified60.3%
Taylor expanded in x around inf 46.7%
Taylor expanded in y around inf 38.5%
if -0.0129999999999999994 < z < 4.79999999999999986e-222Initial program 73.0%
+-commutative73.0%
fma-define78.0%
*-commutative78.0%
*-commutative78.0%
cancel-sign-sub-inv78.0%
cancel-sign-sub78.0%
sub-neg78.0%
sub-neg78.0%
*-commutative78.0%
fmm-def78.0%
*-commutative78.0%
distribute-rgt-neg-out78.0%
remove-double-neg78.0%
*-commutative78.0%
*-commutative78.0%
Simplified78.0%
Taylor expanded in y around -inf 72.0%
Simplified74.6%
Taylor expanded in x around inf 42.0%
Taylor expanded in y around 0 41.2%
associate-*r*41.2%
mul-1-neg41.2%
*-commutative41.2%
Simplified41.2%
if 4.79999999999999986e-222 < z < 1.8999999999999999e51Initial program 90.5%
+-commutative90.5%
fma-define92.4%
*-commutative92.4%
*-commutative92.4%
cancel-sign-sub-inv92.4%
cancel-sign-sub92.4%
sub-neg92.4%
sub-neg92.4%
*-commutative92.4%
fmm-def92.4%
*-commutative92.4%
distribute-rgt-neg-out92.4%
remove-double-neg92.4%
*-commutative92.4%
*-commutative92.4%
Simplified92.4%
Taylor expanded in i around inf 57.1%
distribute-lft-out--57.1%
*-commutative57.1%
Simplified57.1%
Taylor expanded in y around inf 42.3%
associate-*r*42.3%
neg-mul-142.3%
Simplified42.3%
if 1.8999999999999999e51 < z Initial program 52.8%
cancel-sign-sub-inv52.8%
cancel-sign-sub52.8%
fmm-def52.8%
distribute-lft-neg-out52.8%
*-commutative52.8%
remove-double-neg52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in z around inf 59.4%
Taylor expanded in z around inf 66.5%
Taylor expanded in x around inf 41.0%
Final simplification40.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -0.0016) (not (<= z 5.6e+50))) (* x (* y z)) (* i (* a b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -0.0016) || !(z <= 5.6e+50)) {
tmp = x * (y * z);
} else {
tmp = i * (a * 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 ((z <= (-0.0016d0)) .or. (.not. (z <= 5.6d+50))) then
tmp = x * (y * z)
else
tmp = i * (a * 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 ((z <= -0.0016) || !(z <= 5.6e+50)) {
tmp = x * (y * z);
} else {
tmp = i * (a * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -0.0016) or not (z <= 5.6e+50): tmp = x * (y * z) else: tmp = i * (a * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -0.0016) || !(z <= 5.6e+50)) tmp = Float64(x * Float64(y * z)); else tmp = Float64(i * Float64(a * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -0.0016) || ~((z <= 5.6e+50))) tmp = x * (y * z); else tmp = i * (a * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -0.0016], N[Not[LessEqual[z, 5.6e+50]], $MachinePrecision]], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.0016 \lor \neg \left(z \leq 5.6 \cdot 10^{+50}\right):\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\end{array}
\end{array}
if z < -0.00160000000000000008 or 5.5999999999999996e50 < z Initial program 62.5%
+-commutative62.5%
fma-define67.3%
*-commutative67.3%
*-commutative67.3%
cancel-sign-sub-inv67.3%
cancel-sign-sub67.3%
sub-neg67.3%
sub-neg67.3%
*-commutative67.3%
fmm-def67.3%
*-commutative67.3%
distribute-rgt-neg-out67.3%
remove-double-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in y around -inf 59.4%
Simplified61.0%
Taylor expanded in x around inf 52.9%
Taylor expanded in y around inf 38.7%
if -0.00160000000000000008 < z < 5.5999999999999996e50Initial program 80.4%
+-commutative80.4%
fma-define84.2%
*-commutative84.2%
*-commutative84.2%
cancel-sign-sub-inv84.2%
cancel-sign-sub84.2%
sub-neg84.2%
sub-neg84.2%
*-commutative84.2%
fmm-def84.2%
*-commutative84.2%
distribute-rgt-neg-out84.2%
remove-double-neg84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in i around inf 47.2%
distribute-lft-out--47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in y around 0 22.8%
Final simplification30.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -7e-81) (* x (* y z)) (if (<= z 8e+50) (* c (* t j)) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7e-81) {
tmp = x * (y * z);
} else if (z <= 8e+50) {
tmp = c * (t * j);
} else {
tmp = z * (x * 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 (z <= (-7d-81)) then
tmp = x * (y * z)
else if (z <= 8d+50) then
tmp = c * (t * j)
else
tmp = z * (x * 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 (z <= -7e-81) {
tmp = x * (y * z);
} else if (z <= 8e+50) {
tmp = c * (t * j);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -7e-81: tmp = x * (y * z) elif z <= 8e+50: tmp = c * (t * j) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -7e-81) tmp = Float64(x * Float64(y * z)); elseif (z <= 8e+50) tmp = Float64(c * Float64(t * j)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -7e-81) tmp = x * (y * z); elseif (z <= 8e+50) tmp = c * (t * j); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7e-81], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8e+50], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7 \cdot 10^{-81}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 8 \cdot 10^{+50}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -6.99999999999999973e-81Initial program 70.2%
+-commutative70.2%
fma-define73.9%
*-commutative73.9%
*-commutative73.9%
cancel-sign-sub-inv73.9%
cancel-sign-sub73.9%
sub-neg73.9%
sub-neg73.9%
*-commutative73.9%
fmm-def73.9%
*-commutative73.9%
distribute-rgt-neg-out73.9%
remove-double-neg73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
Taylor expanded in y around -inf 59.4%
Simplified63.1%
Taylor expanded in x around inf 46.5%
Taylor expanded in y around inf 33.9%
if -6.99999999999999973e-81 < z < 8.0000000000000006e50Initial program 82.8%
+-commutative82.8%
fma-define85.4%
*-commutative85.4%
*-commutative85.4%
cancel-sign-sub-inv85.4%
cancel-sign-sub85.4%
sub-neg85.4%
sub-neg85.4%
*-commutative85.4%
fmm-def85.4%
*-commutative85.4%
distribute-rgt-neg-out85.4%
remove-double-neg85.4%
*-commutative85.4%
*-commutative85.4%
Simplified85.4%
Taylor expanded in c around inf 38.7%
*-commutative38.7%
*-commutative38.7%
Simplified38.7%
Taylor expanded in t around inf 31.8%
*-commutative31.8%
*-commutative31.8%
Simplified31.8%
if 8.0000000000000006e50 < z Initial program 52.8%
cancel-sign-sub-inv52.8%
cancel-sign-sub52.8%
fmm-def52.8%
distribute-lft-neg-out52.8%
*-commutative52.8%
remove-double-neg52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in z around inf 59.4%
Taylor expanded in z around inf 66.5%
Taylor expanded in x around inf 41.0%
Final simplification34.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= z -0.00315) (* x (* y z)) (if (<= z 2.2e+51) (* i (* a b)) (* z (* x y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -0.00315) {
tmp = x * (y * z);
} else if (z <= 2.2e+51) {
tmp = i * (a * b);
} else {
tmp = z * (x * 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 (z <= (-0.00315d0)) then
tmp = x * (y * z)
else if (z <= 2.2d+51) then
tmp = i * (a * b)
else
tmp = z * (x * 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 (z <= -0.00315) {
tmp = x * (y * z);
} else if (z <= 2.2e+51) {
tmp = i * (a * b);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -0.00315: tmp = x * (y * z) elif z <= 2.2e+51: tmp = i * (a * b) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -0.00315) tmp = Float64(x * Float64(y * z)); elseif (z <= 2.2e+51) tmp = Float64(i * Float64(a * b)); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -0.00315) tmp = x * (y * z); elseif (z <= 2.2e+51) tmp = i * (a * b); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -0.00315], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e+51], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.00315:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{+51}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -0.00315Initial program 71.8%
+-commutative71.8%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
cancel-sign-sub-inv73.4%
cancel-sign-sub73.4%
sub-neg73.4%
sub-neg73.4%
*-commutative73.4%
fmm-def73.4%
*-commutative73.4%
distribute-rgt-neg-out73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in y around -inf 59.5%
Simplified59.4%
Taylor expanded in x around inf 47.5%
Taylor expanded in y around inf 37.9%
if -0.00315 < z < 2.19999999999999992e51Initial program 80.4%
+-commutative80.4%
fma-define84.2%
*-commutative84.2%
*-commutative84.2%
cancel-sign-sub-inv84.2%
cancel-sign-sub84.2%
sub-neg84.2%
sub-neg84.2%
*-commutative84.2%
fmm-def84.2%
*-commutative84.2%
distribute-rgt-neg-out84.2%
remove-double-neg84.2%
*-commutative84.2%
*-commutative84.2%
Simplified84.2%
Taylor expanded in i around inf 47.2%
distribute-lft-out--47.2%
*-commutative47.2%
Simplified47.2%
Taylor expanded in y around 0 22.8%
if 2.19999999999999992e51 < z Initial program 52.8%
cancel-sign-sub-inv52.8%
cancel-sign-sub52.8%
fmm-def52.8%
distribute-lft-neg-out52.8%
*-commutative52.8%
remove-double-neg52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in z around inf 59.4%
Taylor expanded in z around inf 66.5%
Taylor expanded in x around inf 41.0%
(FPCore (x y z t a b c i j) :precision binary64 (* i (* a b)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return i * (a * b);
}
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 = i * (a * b)
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 i * (a * b);
}
def code(x, y, z, t, a, b, c, i, j): return i * (a * b)
function code(x, y, z, t, a, b, c, i, j) return Float64(i * Float64(a * b)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = i * (a * b); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(a \cdot b\right)
\end{array}
Initial program 71.7%
+-commutative71.7%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
cancel-sign-sub-inv76.0%
cancel-sign-sub76.0%
sub-neg76.0%
sub-neg76.0%
*-commutative76.0%
fmm-def76.0%
*-commutative76.0%
distribute-rgt-neg-out76.0%
remove-double-neg76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in i around inf 37.8%
distribute-lft-out--37.8%
*-commutative37.8%
Simplified37.8%
Taylor expanded in y around 0 18.8%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 71.7%
+-commutative71.7%
fma-define76.0%
*-commutative76.0%
*-commutative76.0%
cancel-sign-sub-inv76.0%
cancel-sign-sub76.0%
sub-neg76.0%
sub-neg76.0%
*-commutative76.0%
fmm-def76.0%
*-commutative76.0%
distribute-rgt-neg-out76.0%
remove-double-neg76.0%
*-commutative76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in i around inf 37.8%
distribute-lft-out--37.8%
*-commutative37.8%
Simplified37.8%
Taylor expanded in y around 0 17.3%
*-commutative17.3%
Simplified17.3%
Final simplification17.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024180
(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)))))