
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 25 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))) (t_2 (- (* t c) (* y i))))
(if (<= (+ (+ (* x (- (* y z) (* t a))) t_1) (* j t_2)) INFINITY)
(fma j t_2 (+ (* x (fma y z (* t (- a)))) t_1))
(- (* t (- (* c j) (* x a))) (* z (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (t * c) - (y * i);
double tmp;
if ((((x * ((y * z) - (t * a))) + t_1) + (j * t_2)) <= ((double) INFINITY)) {
tmp = fma(j, t_2, ((x * fma(y, z, (t * -a))) + t_1));
} else {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + t_1) + Float64(j * t_2)) <= Inf) tmp = fma(j, t_2, Float64(Float64(x * fma(y, z, Float64(t * Float64(-a)))) + t_1)); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(z * Float64(b * c))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision] + N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], Infinity], N[(j * t$95$2 + N[(N[(x * N[(y * z + N[(t * (-a)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := t \cdot c - y \cdot i\\
\mathbf{if}\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + t\_1\right) + j \cdot t\_2 \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(j, t\_2, x \cdot \mathsf{fma}\left(y, z, t \cdot \left(-a\right)\right) + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.8%
+-commutative93.8%
fma-define93.8%
*-commutative93.8%
*-commutative93.8%
cancel-sign-sub-inv93.8%
cancel-sign-sub93.8%
fmm-def93.8%
distribute-rgt-neg-out93.8%
remove-double-neg93.8%
*-commutative93.8%
*-commutative93.8%
Simplified93.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
+-commutative0.0%
fma-define6.3%
*-commutative6.3%
*-commutative6.3%
cancel-sign-sub-inv6.3%
cancel-sign-sub6.3%
fmm-def6.3%
distribute-rgt-neg-out6.3%
remove-double-neg6.3%
*-commutative6.3%
*-commutative6.3%
Simplified6.3%
Taylor expanded in y around 0 35.9%
mul-1-neg35.9%
*-commutative35.9%
associate-*r*40.0%
*-commutative40.0%
distribute-rgt-neg-out40.0%
mul-1-neg40.0%
*-commutative40.0%
associate-*r*35.9%
*-commutative35.9%
associate-*r*38.0%
distribute-lft-in42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in z around inf 52.5%
associate-*r*50.8%
*-commutative50.8%
Simplified50.8%
Final simplification85.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(+ (* x (- (* y z) (* t a))) (* b (- (* a i) (* z c))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (- (* t (- (* c j) (* x a))) (* z (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (t * ((c * j) - (x * a))) - (z * (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(z * Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) + (b * ((a * i) - (z * c)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (t * ((c * j) - (x * a))) - (z * (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 93.8%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
+-commutative0.0%
fma-define6.3%
*-commutative6.3%
*-commutative6.3%
cancel-sign-sub-inv6.3%
cancel-sign-sub6.3%
fmm-def6.3%
distribute-rgt-neg-out6.3%
remove-double-neg6.3%
*-commutative6.3%
*-commutative6.3%
Simplified6.3%
Taylor expanded in y around 0 35.9%
mul-1-neg35.9%
*-commutative35.9%
associate-*r*40.0%
*-commutative40.0%
distribute-rgt-neg-out40.0%
mul-1-neg40.0%
*-commutative40.0%
associate-*r*35.9%
*-commutative35.9%
associate-*r*38.0%
distribute-lft-in42.1%
+-commutative42.1%
mul-1-neg42.1%
unsub-neg42.1%
*-commutative42.1%
*-commutative42.1%
Simplified42.1%
Taylor expanded in z around inf 52.5%
associate-*r*50.8%
*-commutative50.8%
Simplified50.8%
Final simplification85.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- c) (* z b))) (t_2 (* a (* t (- x)))) (t_3 (* b (* a i))))
(if (<= b -4.3e+220)
t_3
(if (<= b -1.45e+70)
t_1
(if (<= b -2.3e-128)
t_2
(if (<= b -3.5e-299)
(* (* y i) (- j))
(if (<= b 1.75e+60) t_2 (if (<= b 2.3e+246) t_1 t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -c * (z * b);
double t_2 = a * (t * -x);
double t_3 = b * (a * i);
double tmp;
if (b <= -4.3e+220) {
tmp = t_3;
} else if (b <= -1.45e+70) {
tmp = t_1;
} else if (b <= -2.3e-128) {
tmp = t_2;
} else if (b <= -3.5e-299) {
tmp = (y * i) * -j;
} else if (b <= 1.75e+60) {
tmp = t_2;
} else if (b <= 2.3e+246) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: t_3
real(8) :: tmp
t_1 = -c * (z * b)
t_2 = a * (t * -x)
t_3 = b * (a * i)
if (b <= (-4.3d+220)) then
tmp = t_3
else if (b <= (-1.45d+70)) then
tmp = t_1
else if (b <= (-2.3d-128)) then
tmp = t_2
else if (b <= (-3.5d-299)) then
tmp = (y * i) * -j
else if (b <= 1.75d+60) then
tmp = t_2
else if (b <= 2.3d+246) then
tmp = t_1
else
tmp = t_3
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -c * (z * b);
double t_2 = a * (t * -x);
double t_3 = b * (a * i);
double tmp;
if (b <= -4.3e+220) {
tmp = t_3;
} else if (b <= -1.45e+70) {
tmp = t_1;
} else if (b <= -2.3e-128) {
tmp = t_2;
} else if (b <= -3.5e-299) {
tmp = (y * i) * -j;
} else if (b <= 1.75e+60) {
tmp = t_2;
} else if (b <= 2.3e+246) {
tmp = t_1;
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -c * (z * b) t_2 = a * (t * -x) t_3 = b * (a * i) tmp = 0 if b <= -4.3e+220: tmp = t_3 elif b <= -1.45e+70: tmp = t_1 elif b <= -2.3e-128: tmp = t_2 elif b <= -3.5e-299: tmp = (y * i) * -j elif b <= 1.75e+60: tmp = t_2 elif b <= 2.3e+246: tmp = t_1 else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-c) * Float64(z * b)) t_2 = Float64(a * Float64(t * Float64(-x))) t_3 = Float64(b * Float64(a * i)) tmp = 0.0 if (b <= -4.3e+220) tmp = t_3; elseif (b <= -1.45e+70) tmp = t_1; elseif (b <= -2.3e-128) tmp = t_2; elseif (b <= -3.5e-299) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (b <= 1.75e+60) tmp = t_2; elseif (b <= 2.3e+246) tmp = t_1; else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -c * (z * b); t_2 = a * (t * -x); t_3 = b * (a * i); tmp = 0.0; if (b <= -4.3e+220) tmp = t_3; elseif (b <= -1.45e+70) tmp = t_1; elseif (b <= -2.3e-128) tmp = t_2; elseif (b <= -3.5e-299) tmp = (y * i) * -j; elseif (b <= 1.75e+60) tmp = t_2; elseif (b <= 2.3e+246) tmp = t_1; else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-c) * N[(z * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.3e+220], t$95$3, If[LessEqual[b, -1.45e+70], t$95$1, If[LessEqual[b, -2.3e-128], t$95$2, If[LessEqual[b, -3.5e-299], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[b, 1.75e+60], t$95$2, If[LessEqual[b, 2.3e+246], t$95$1, t$95$3]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-c\right) \cdot \left(z \cdot b\right)\\
t_2 := a \cdot \left(t \cdot \left(-x\right)\right)\\
t_3 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;b \leq -4.3 \cdot 10^{+220}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -1.45 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-128}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-299}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{+60}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{+246}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -4.3e220 or 2.30000000000000014e246 < b Initial program 68.5%
+-commutative68.5%
fma-define74.2%
*-commutative74.2%
*-commutative74.2%
cancel-sign-sub-inv74.2%
cancel-sign-sub74.2%
fmm-def74.2%
distribute-rgt-neg-out74.2%
remove-double-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in y around 0 82.8%
mul-1-neg82.8%
*-commutative82.8%
associate-*r*80.0%
*-commutative80.0%
distribute-rgt-neg-out80.0%
mul-1-neg80.0%
*-commutative80.0%
associate-*r*80.0%
*-commutative80.0%
associate-*r*77.1%
distribute-lft-in80.0%
+-commutative80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in c around 0 72.0%
sub-neg72.0%
associate-*r*72.0%
neg-mul-172.0%
associate-*r*72.0%
neg-mul-172.0%
distribute-rgt-neg-in72.0%
distribute-lft-in72.0%
sub-neg72.0%
distribute-lft-neg-in72.0%
distribute-rgt-neg-in72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
remove-double-neg72.0%
sub-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around inf 62.1%
*-commutative62.1%
*-commutative62.1%
*-commutative62.1%
associate-*r*67.4%
Simplified67.4%
if -4.3e220 < b < -1.4499999999999999e70 or 1.7500000000000001e60 < b < 2.30000000000000014e246Initial program 74.6%
+-commutative74.6%
fma-define74.7%
*-commutative74.7%
*-commutative74.7%
cancel-sign-sub-inv74.7%
cancel-sign-sub74.7%
fmm-def74.7%
distribute-rgt-neg-out74.7%
remove-double-neg74.7%
*-commutative74.7%
*-commutative74.7%
Simplified74.7%
Taylor expanded in c around inf 58.3%
*-commutative58.3%
*-commutative58.3%
Simplified58.3%
Taylor expanded in t around 0 49.5%
mul-1-neg49.5%
*-commutative49.5%
distribute-lft-neg-in49.5%
*-commutative49.5%
Simplified49.5%
if -1.4499999999999999e70 < b < -2.3000000000000001e-128 or -3.49999999999999991e-299 < b < 1.7500000000000001e60Initial program 79.5%
+-commutative79.5%
fma-define79.5%
*-commutative79.5%
*-commutative79.5%
cancel-sign-sub-inv79.5%
cancel-sign-sub79.5%
fmm-def79.5%
distribute-rgt-neg-out79.5%
remove-double-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in y around 0 66.2%
mul-1-neg66.2%
*-commutative66.2%
associate-*r*65.4%
*-commutative65.4%
distribute-rgt-neg-out65.4%
mul-1-neg65.4%
*-commutative65.4%
associate-*r*63.7%
*-commutative63.7%
associate-*r*63.9%
distribute-lft-in63.9%
+-commutative63.9%
mul-1-neg63.9%
unsub-neg63.9%
*-commutative63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in c around 0 42.4%
sub-neg42.4%
associate-*r*42.4%
neg-mul-142.4%
associate-*r*42.4%
neg-mul-142.4%
distribute-rgt-neg-in42.4%
distribute-lft-in43.3%
sub-neg43.3%
distribute-lft-neg-in43.3%
distribute-rgt-neg-in43.3%
sub-neg43.3%
+-commutative43.3%
distribute-neg-in43.3%
remove-double-neg43.3%
sub-neg43.3%
*-commutative43.3%
Simplified43.3%
Taylor expanded in i around 0 33.0%
associate-*r*33.0%
neg-mul-133.0%
Simplified33.0%
if -2.3000000000000001e-128 < b < -3.49999999999999991e-299Initial program 76.9%
+-commutative76.9%
fma-define79.5%
*-commutative79.5%
*-commutative79.5%
cancel-sign-sub-inv79.5%
cancel-sign-sub79.5%
fmm-def79.5%
distribute-rgt-neg-out79.5%
remove-double-neg79.5%
*-commutative79.5%
*-commutative79.5%
Simplified79.5%
Taylor expanded in j around inf 57.0%
*-commutative57.0%
*-commutative57.0%
Simplified57.0%
Taylor expanded in t around 0 49.7%
neg-mul-149.7%
distribute-rgt-neg-in49.7%
Simplified49.7%
Final simplification44.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* (- c) (* z b))) (t_2 (* b (* a i))))
(if (<= b -9.5e+219)
t_2
(if (<= b -6.4e+50)
t_1
(if (<= b -7.5e-144)
(* a (* b i))
(if (<= b -4e-302)
(* (* y i) (- j))
(if (<= b 5.4e-8) (* c (* t j)) (if (<= b 2.9e+245) t_1 t_2))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -c * (z * b);
double t_2 = b * (a * i);
double tmp;
if (b <= -9.5e+219) {
tmp = t_2;
} else if (b <= -6.4e+50) {
tmp = t_1;
} else if (b <= -7.5e-144) {
tmp = a * (b * i);
} else if (b <= -4e-302) {
tmp = (y * i) * -j;
} else if (b <= 5.4e-8) {
tmp = c * (t * j);
} else if (b <= 2.9e+245) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = -c * (z * b)
t_2 = b * (a * i)
if (b <= (-9.5d+219)) then
tmp = t_2
else if (b <= (-6.4d+50)) then
tmp = t_1
else if (b <= (-7.5d-144)) then
tmp = a * (b * i)
else if (b <= (-4d-302)) then
tmp = (y * i) * -j
else if (b <= 5.4d-8) then
tmp = c * (t * j)
else if (b <= 2.9d+245) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = -c * (z * b);
double t_2 = b * (a * i);
double tmp;
if (b <= -9.5e+219) {
tmp = t_2;
} else if (b <= -6.4e+50) {
tmp = t_1;
} else if (b <= -7.5e-144) {
tmp = a * (b * i);
} else if (b <= -4e-302) {
tmp = (y * i) * -j;
} else if (b <= 5.4e-8) {
tmp = c * (t * j);
} else if (b <= 2.9e+245) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = -c * (z * b) t_2 = b * (a * i) tmp = 0 if b <= -9.5e+219: tmp = t_2 elif b <= -6.4e+50: tmp = t_1 elif b <= -7.5e-144: tmp = a * (b * i) elif b <= -4e-302: tmp = (y * i) * -j elif b <= 5.4e-8: tmp = c * (t * j) elif b <= 2.9e+245: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(-c) * Float64(z * b)) t_2 = Float64(b * Float64(a * i)) tmp = 0.0 if (b <= -9.5e+219) tmp = t_2; elseif (b <= -6.4e+50) tmp = t_1; elseif (b <= -7.5e-144) tmp = Float64(a * Float64(b * i)); elseif (b <= -4e-302) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (b <= 5.4e-8) tmp = Float64(c * Float64(t * j)); elseif (b <= 2.9e+245) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = -c * (z * b); t_2 = b * (a * i); tmp = 0.0; if (b <= -9.5e+219) tmp = t_2; elseif (b <= -6.4e+50) tmp = t_1; elseif (b <= -7.5e-144) tmp = a * (b * i); elseif (b <= -4e-302) tmp = (y * i) * -j; elseif (b <= 5.4e-8) tmp = c * (t * j); elseif (b <= 2.9e+245) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[((-c) * N[(z * b), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.5e+219], t$95$2, If[LessEqual[b, -6.4e+50], t$95$1, If[LessEqual[b, -7.5e-144], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4e-302], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[b, 5.4e-8], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e+245], t$95$1, t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(-c\right) \cdot \left(z \cdot b\right)\\
t_2 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;b \leq -9.5 \cdot 10^{+219}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -6.4 \cdot 10^{+50}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-144}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;b \leq -4 \cdot 10^{-302}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;b \leq 5.4 \cdot 10^{-8}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{+245}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -9.49999999999999959e219 or 2.9000000000000001e245 < b Initial program 68.5%
+-commutative68.5%
fma-define74.2%
*-commutative74.2%
*-commutative74.2%
cancel-sign-sub-inv74.2%
cancel-sign-sub74.2%
fmm-def74.2%
distribute-rgt-neg-out74.2%
remove-double-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in y around 0 82.8%
mul-1-neg82.8%
*-commutative82.8%
associate-*r*80.0%
*-commutative80.0%
distribute-rgt-neg-out80.0%
mul-1-neg80.0%
*-commutative80.0%
associate-*r*80.0%
*-commutative80.0%
associate-*r*77.1%
distribute-lft-in80.0%
+-commutative80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in c around 0 72.0%
sub-neg72.0%
associate-*r*72.0%
neg-mul-172.0%
associate-*r*72.0%
neg-mul-172.0%
distribute-rgt-neg-in72.0%
distribute-lft-in72.0%
sub-neg72.0%
distribute-lft-neg-in72.0%
distribute-rgt-neg-in72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
remove-double-neg72.0%
sub-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around inf 62.1%
*-commutative62.1%
*-commutative62.1%
*-commutative62.1%
associate-*r*67.4%
Simplified67.4%
if -9.49999999999999959e219 < b < -6.39999999999999966e50 or 5.40000000000000005e-8 < b < 2.9000000000000001e245Initial program 76.5%
+-commutative76.5%
fma-define76.5%
*-commutative76.5%
*-commutative76.5%
cancel-sign-sub-inv76.5%
cancel-sign-sub76.5%
fmm-def76.5%
distribute-rgt-neg-out76.5%
remove-double-neg76.5%
*-commutative76.5%
*-commutative76.5%
Simplified76.5%
Taylor expanded in c around inf 51.4%
*-commutative51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in t around 0 44.1%
mul-1-neg44.1%
*-commutative44.1%
distribute-lft-neg-in44.1%
*-commutative44.1%
Simplified44.1%
if -6.39999999999999966e50 < b < -7.49999999999999963e-144Initial program 82.7%
+-commutative82.7%
fma-define85.1%
*-commutative85.1%
*-commutative85.1%
cancel-sign-sub-inv85.1%
cancel-sign-sub85.1%
fmm-def85.1%
distribute-rgt-neg-out85.1%
remove-double-neg85.1%
*-commutative85.1%
*-commutative85.1%
Simplified85.1%
Taylor expanded in i around inf 28.7%
distribute-lft-out--28.7%
*-commutative28.7%
Simplified28.7%
Taylor expanded in y around 0 26.2%
if -7.49999999999999963e-144 < b < -3.9999999999999999e-302Initial program 75.8%
+-commutative75.8%
fma-define75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
cancel-sign-sub75.8%
fmm-def75.8%
distribute-rgt-neg-out75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in j around inf 61.1%
*-commutative61.1%
*-commutative61.1%
Simplified61.1%
Taylor expanded in t around 0 55.4%
neg-mul-155.4%
distribute-rgt-neg-in55.4%
Simplified55.4%
if -3.9999999999999999e-302 < b < 5.40000000000000005e-8Initial program 76.2%
+-commutative76.2%
fma-define76.2%
*-commutative76.2%
*-commutative76.2%
cancel-sign-sub-inv76.2%
cancel-sign-sub76.2%
fmm-def76.2%
distribute-rgt-neg-out76.2%
remove-double-neg76.2%
*-commutative76.2%
*-commutative76.2%
Simplified76.2%
Taylor expanded in c around inf 43.5%
*-commutative43.5%
*-commutative43.5%
Simplified43.5%
Taylor expanded in t around inf 35.9%
*-commutative35.9%
Simplified35.9%
Final simplification43.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* b c))))
(if (<= i -2.25e+125)
(* j (* i (- (* a (/ b j)) y)))
(if (<= i -7.4e-44)
(- (* j (- (* t c) (* y i))) t_1)
(if (<= i 2.8e-268)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(if (<= i 3.3e+112)
(- (* t (- (* c j) (* x a))) t_1)
(* i (- (* a b) (* y j)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * c);
double tmp;
if (i <= -2.25e+125) {
tmp = j * (i * ((a * (b / j)) - y));
} else if (i <= -7.4e-44) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (i <= 2.8e-268) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 3.3e+112) {
tmp = (t * ((c * j) - (x * a))) - t_1;
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = z * (b * c)
if (i <= (-2.25d+125)) then
tmp = j * (i * ((a * (b / j)) - y))
else if (i <= (-7.4d-44)) then
tmp = (j * ((t * c) - (y * i))) - t_1
else if (i <= 2.8d-268) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else if (i <= 3.3d+112) then
tmp = (t * ((c * j) - (x * a))) - t_1
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * (b * c);
double tmp;
if (i <= -2.25e+125) {
tmp = j * (i * ((a * (b / j)) - y));
} else if (i <= -7.4e-44) {
tmp = (j * ((t * c) - (y * i))) - t_1;
} else if (i <= 2.8e-268) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 3.3e+112) {
tmp = (t * ((c * j) - (x * a))) - t_1;
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (b * c) tmp = 0 if i <= -2.25e+125: tmp = j * (i * ((a * (b / j)) - y)) elif i <= -7.4e-44: tmp = (j * ((t * c) - (y * i))) - t_1 elif i <= 2.8e-268: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) elif i <= 3.3e+112: tmp = (t * ((c * j) - (x * a))) - t_1 else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(b * c)) tmp = 0.0 if (i <= -2.25e+125) tmp = Float64(j * Float64(i * Float64(Float64(a * Float64(b / j)) - y))); elseif (i <= -7.4e-44) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) - t_1); elseif (i <= 2.8e-268) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); elseif (i <= 3.3e+112) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - t_1); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (b * c); tmp = 0.0; if (i <= -2.25e+125) tmp = j * (i * ((a * (b / j)) - y)); elseif (i <= -7.4e-44) tmp = (j * ((t * c) - (y * i))) - t_1; elseif (i <= 2.8e-268) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); elseif (i <= 3.3e+112) tmp = (t * ((c * j) - (x * a))) - t_1; else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -2.25e+125], N[(j * N[(i * N[(N[(a * N[(b / j), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.4e-44], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], If[LessEqual[i, 2.8e-268], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.3e+112], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot c\right)\\
\mathbf{if}\;i \leq -2.25 \cdot 10^{+125}:\\
\;\;\;\;j \cdot \left(i \cdot \left(a \cdot \frac{b}{j} - y\right)\right)\\
\mathbf{elif}\;i \leq -7.4 \cdot 10^{-44}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) - t\_1\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{-268}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 3.3 \cdot 10^{+112}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - t\_1\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -2.25e125Initial program 60.1%
+-commutative60.1%
fma-define60.1%
*-commutative60.1%
*-commutative60.1%
cancel-sign-sub-inv60.1%
cancel-sign-sub60.1%
fmm-def60.1%
distribute-rgt-neg-out60.1%
remove-double-neg60.1%
*-commutative60.1%
*-commutative60.1%
Simplified60.1%
Taylor expanded in j around inf 60.1%
Simplified70.2%
Taylor expanded in i around -inf 67.5%
neg-mul-167.5%
+-commutative67.5%
unsub-neg67.5%
associate-/l*67.5%
Simplified67.5%
if -2.25e125 < i < -7.4e-44Initial program 71.0%
cancel-sign-sub-inv71.0%
cancel-sign-sub71.0%
*-commutative71.0%
fmm-def71.0%
distribute-rgt-neg-in71.0%
remove-double-neg71.0%
*-commutative71.0%
*-commutative71.0%
*-commutative71.0%
*-commutative71.0%
Simplified71.0%
Taylor expanded in c around inf 67.7%
mul-1-neg67.7%
*-commutative67.7%
*-commutative67.7%
associate-*r*70.4%
*-commutative70.4%
distribute-rgt-neg-out70.4%
distribute-rgt-neg-in70.4%
Simplified70.4%
if -7.4e-44 < i < 2.80000000000000015e-268Initial program 86.6%
+-commutative86.6%
fma-define89.5%
*-commutative89.5%
*-commutative89.5%
cancel-sign-sub-inv89.5%
cancel-sign-sub89.5%
fmm-def89.5%
distribute-rgt-neg-out89.5%
remove-double-neg89.5%
*-commutative89.5%
*-commutative89.5%
Simplified89.5%
Taylor expanded in j around inf 76.8%
Simplified75.2%
Taylor expanded in j around 0 75.4%
+-commutative75.4%
mul-1-neg75.4%
*-commutative75.4%
sub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in i around 0 68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
if 2.80000000000000015e-268 < i < 3.2999999999999999e112Initial program 80.6%
+-commutative80.6%
fma-define80.6%
*-commutative80.6%
*-commutative80.6%
cancel-sign-sub-inv80.6%
cancel-sign-sub80.6%
fmm-def80.6%
distribute-rgt-neg-out80.6%
remove-double-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y around 0 73.1%
mul-1-neg73.1%
*-commutative73.1%
associate-*r*76.1%
*-commutative76.1%
distribute-rgt-neg-out76.1%
mul-1-neg76.1%
*-commutative76.1%
associate-*r*74.7%
*-commutative74.7%
associate-*r*77.2%
distribute-lft-in78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around inf 75.1%
associate-*r*72.4%
*-commutative72.4%
Simplified72.4%
if 3.2999999999999999e112 < i Initial program 68.3%
+-commutative68.3%
fma-define70.5%
*-commutative70.5%
*-commutative70.5%
cancel-sign-sub-inv70.5%
cancel-sign-sub70.5%
fmm-def70.5%
distribute-rgt-neg-out70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in i around inf 77.6%
distribute-lft-out--77.6%
*-commutative77.6%
Simplified77.6%
Final simplification71.3%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -8e+118)
(* j (* i (- (* a (/ b j)) y)))
(if (<= i -9e-45)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (<= i 1.85e-269)
(- (* x (- (* y z) (* t a))) (* b (* z c)))
(if (<= i 1.8e+118)
(- (* t (- (* c j) (* x a))) (* z (* b c)))
(* i (- (* a b) (* y j))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -8e+118) {
tmp = j * (i * ((a * (b / j)) - y));
} else if (i <= -9e-45) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (i <= 1.85e-269) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 1.8e+118) {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-8d+118)) then
tmp = j * (i * ((a * (b / j)) - y))
else if (i <= (-9d-45)) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if (i <= 1.85d-269) then
tmp = (x * ((y * z) - (t * a))) - (b * (z * c))
else if (i <= 1.8d+118) then
tmp = (t * ((c * j) - (x * a))) - (z * (b * c))
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -8e+118) {
tmp = j * (i * ((a * (b / j)) - y));
} else if (i <= -9e-45) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (i <= 1.85e-269) {
tmp = (x * ((y * z) - (t * a))) - (b * (z * c));
} else if (i <= 1.8e+118) {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -8e+118: tmp = j * (i * ((a * (b / j)) - y)) elif i <= -9e-45: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif i <= 1.85e-269: tmp = (x * ((y * z) - (t * a))) - (b * (z * c)) elif i <= 1.8e+118: tmp = (t * ((c * j) - (x * a))) - (z * (b * c)) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -8e+118) tmp = Float64(j * Float64(i * Float64(Float64(a * Float64(b / j)) - y))); elseif (i <= -9e-45) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif (i <= 1.85e-269) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(z * c))); elseif (i <= 1.8e+118) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(z * Float64(b * c))); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -8e+118) tmp = j * (i * ((a * (b / j)) - y)); elseif (i <= -9e-45) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif (i <= 1.85e-269) tmp = (x * ((y * z) - (t * a))) - (b * (z * c)); elseif (i <= 1.8e+118) tmp = (t * ((c * j) - (x * a))) - (z * (b * c)); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -8e+118], N[(j * N[(i * N[(N[(a * N[(b / j), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -9e-45], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.85e-269], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.8e+118], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -8 \cdot 10^{+118}:\\
\;\;\;\;j \cdot \left(i \cdot \left(a \cdot \frac{b}{j} - y\right)\right)\\
\mathbf{elif}\;i \leq -9 \cdot 10^{-45}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 1.85 \cdot 10^{-269}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{elif}\;i \leq 1.8 \cdot 10^{+118}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -7.99999999999999973e118Initial program 57.6%
+-commutative57.6%
fma-define57.6%
*-commutative57.6%
*-commutative57.6%
cancel-sign-sub-inv57.6%
cancel-sign-sub57.6%
fmm-def57.6%
distribute-rgt-neg-out57.6%
remove-double-neg57.6%
*-commutative57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in j around inf 57.6%
Simplified69.8%
Taylor expanded in i around -inf 67.4%
neg-mul-167.4%
+-commutative67.4%
unsub-neg67.4%
associate-/l*67.4%
Simplified67.4%
if -7.99999999999999973e118 < i < -8.9999999999999997e-45Initial program 74.3%
cancel-sign-sub-inv74.3%
cancel-sign-sub74.3%
*-commutative74.3%
fmm-def74.3%
distribute-rgt-neg-in74.3%
remove-double-neg74.3%
*-commutative74.3%
*-commutative74.3%
*-commutative74.3%
*-commutative74.3%
Simplified74.3%
Taylor expanded in i around inf 64.3%
if -8.9999999999999997e-45 < i < 1.84999999999999989e-269Initial program 86.6%
+-commutative86.6%
fma-define89.5%
*-commutative89.5%
*-commutative89.5%
cancel-sign-sub-inv89.5%
cancel-sign-sub89.5%
fmm-def89.5%
distribute-rgt-neg-out89.5%
remove-double-neg89.5%
*-commutative89.5%
*-commutative89.5%
Simplified89.5%
Taylor expanded in j around inf 76.8%
Simplified75.2%
Taylor expanded in j around 0 75.4%
+-commutative75.4%
mul-1-neg75.4%
*-commutative75.4%
sub-neg75.4%
*-commutative75.4%
*-commutative75.4%
Simplified75.4%
Taylor expanded in i around 0 68.3%
*-commutative68.3%
*-commutative68.3%
Simplified68.3%
if 1.84999999999999989e-269 < i < 1.8e118Initial program 80.6%
+-commutative80.6%
fma-define80.6%
*-commutative80.6%
*-commutative80.6%
cancel-sign-sub-inv80.6%
cancel-sign-sub80.6%
fmm-def80.6%
distribute-rgt-neg-out80.6%
remove-double-neg80.6%
*-commutative80.6%
*-commutative80.6%
Simplified80.6%
Taylor expanded in y around 0 73.1%
mul-1-neg73.1%
*-commutative73.1%
associate-*r*76.1%
*-commutative76.1%
distribute-rgt-neg-out76.1%
mul-1-neg76.1%
*-commutative76.1%
associate-*r*74.7%
*-commutative74.7%
associate-*r*77.2%
distribute-lft-in78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in z around inf 75.1%
associate-*r*72.4%
*-commutative72.4%
Simplified72.4%
if 1.8e118 < i Initial program 68.3%
+-commutative68.3%
fma-define70.5%
*-commutative70.5%
*-commutative70.5%
cancel-sign-sub-inv70.5%
cancel-sign-sub70.5%
fmm-def70.5%
distribute-rgt-neg-out70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in i around inf 77.6%
distribute-lft-out--77.6%
*-commutative77.6%
Simplified77.6%
Final simplification70.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c))))
(t_2 (+ (* c (* t j)) (* a (- (* b i) (* x t))))))
(if (<= b -1.9e+68)
(+ (* t (* c j)) t_1)
(if (<= b -7.4e-143)
t_2
(if (<= b -2.05e-290)
(* y (- (* x z) (* i j)))
(if (<= b 3.2e+64) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (c * (t * j)) + (a * ((b * i) - (x * t)));
double tmp;
if (b <= -1.9e+68) {
tmp = (t * (c * j)) + t_1;
} else if (b <= -7.4e-143) {
tmp = t_2;
} else if (b <= -2.05e-290) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 3.2e+64) {
tmp = t_2;
} 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) :: t_2
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
t_2 = (c * (t * j)) + (a * ((b * i) - (x * t)))
if (b <= (-1.9d+68)) then
tmp = (t * (c * j)) + t_1
else if (b <= (-7.4d-143)) then
tmp = t_2
else if (b <= (-2.05d-290)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 3.2d+64) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double t_2 = (c * (t * j)) + (a * ((b * i) - (x * t)));
double tmp;
if (b <= -1.9e+68) {
tmp = (t * (c * j)) + t_1;
} else if (b <= -7.4e-143) {
tmp = t_2;
} else if (b <= -2.05e-290) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 3.2e+64) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) t_2 = (c * (t * j)) + (a * ((b * i) - (x * t))) tmp = 0 if b <= -1.9e+68: tmp = (t * (c * j)) + t_1 elif b <= -7.4e-143: tmp = t_2 elif b <= -2.05e-290: tmp = y * ((x * z) - (i * j)) elif b <= 3.2e+64: tmp = t_2 else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) t_2 = Float64(Float64(c * Float64(t * j)) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))) tmp = 0.0 if (b <= -1.9e+68) tmp = Float64(Float64(t * Float64(c * j)) + t_1); elseif (b <= -7.4e-143) tmp = t_2; elseif (b <= -2.05e-290) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 3.2e+64) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); t_2 = (c * (t * j)) + (a * ((b * i) - (x * t))); tmp = 0.0; if (b <= -1.9e+68) tmp = (t * (c * j)) + t_1; elseif (b <= -7.4e-143) tmp = t_2; elseif (b <= -2.05e-290) tmp = y * ((x * z) - (i * j)); elseif (b <= 3.2e+64) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.9e+68], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -7.4e-143], t$95$2, If[LessEqual[b, -2.05e-290], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.2e+64], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
t_2 := c \cdot \left(t \cdot j\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;b \leq -1.9 \cdot 10^{+68}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + t\_1\\
\mathbf{elif}\;b \leq -7.4 \cdot 10^{-143}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -2.05 \cdot 10^{-290}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 3.2 \cdot 10^{+64}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1.9e68Initial program 80.2%
+-commutative80.2%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
fmm-def83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in y around 0 80.8%
mul-1-neg80.8%
*-commutative80.8%
associate-*r*76.1%
*-commutative76.1%
distribute-rgt-neg-out76.1%
mul-1-neg76.1%
*-commutative76.1%
associate-*r*76.8%
*-commutative76.8%
associate-*r*76.8%
distribute-lft-in78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in c around inf 78.4%
if -1.9e68 < b < -7.4000000000000001e-143 or -2.0500000000000001e-290 < b < 3.20000000000000019e64Initial program 80.5%
cancel-sign-sub-inv80.5%
cancel-sign-sub80.5%
*-commutative80.5%
fmm-def80.5%
distribute-rgt-neg-in80.5%
remove-double-neg80.5%
*-commutative80.5%
*-commutative80.5%
*-commutative80.5%
*-commutative80.5%
Simplified80.5%
Taylor expanded in a around -inf 67.9%
Taylor expanded in y around 0 62.9%
+-commutative62.9%
mul-1-neg62.9%
*-commutative62.9%
unsub-neg62.9%
*-commutative62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
if -7.4000000000000001e-143 < b < -2.0500000000000001e-290Initial program 72.8%
+-commutative72.8%
fma-define75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
cancel-sign-sub75.8%
fmm-def75.8%
distribute-rgt-neg-out75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in y around inf 67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
Simplified67.3%
if 3.20000000000000019e64 < b Initial program 62.3%
+-commutative62.3%
fma-define62.3%
*-commutative62.3%
*-commutative62.3%
cancel-sign-sub-inv62.3%
cancel-sign-sub62.3%
fmm-def62.3%
distribute-rgt-neg-out62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around 0 67.1%
mul-1-neg67.1%
*-commutative67.1%
associate-*r*71.1%
*-commutative71.1%
distribute-rgt-neg-out71.1%
mul-1-neg71.1%
*-commutative71.1%
associate-*r*66.8%
*-commutative66.8%
associate-*r*68.9%
distribute-lft-in71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in b around inf 72.2%
Final simplification68.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -8.2e+238)
t_1
(if (<= z -2.9e-44)
(* b (- (* a i) (* z c)))
(if (<= z -2.3e-164)
(* a (- (* b i) (* x t)))
(if (<= z 1.9e+34)
(+ (* 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 <= -8.2e+238) {
tmp = t_1;
} else if (z <= -2.9e-44) {
tmp = b * ((a * i) - (z * c));
} else if (z <= -2.3e-164) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.9e+34) {
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 <= (-8.2d+238)) then
tmp = t_1
else if (z <= (-2.9d-44)) then
tmp = b * ((a * i) - (z * c))
else if (z <= (-2.3d-164)) then
tmp = a * ((b * i) - (x * t))
else if (z <= 1.9d+34) 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 <= -8.2e+238) {
tmp = t_1;
} else if (z <= -2.9e-44) {
tmp = b * ((a * i) - (z * c));
} else if (z <= -2.3e-164) {
tmp = a * ((b * i) - (x * t));
} else if (z <= 1.9e+34) {
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 <= -8.2e+238: tmp = t_1 elif z <= -2.9e-44: tmp = b * ((a * i) - (z * c)) elif z <= -2.3e-164: tmp = a * ((b * i) - (x * t)) elif z <= 1.9e+34: 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 <= -8.2e+238) tmp = t_1; elseif (z <= -2.9e-44) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (z <= -2.3e-164) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); elseif (z <= 1.9e+34) 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 <= -8.2e+238) tmp = t_1; elseif (z <= -2.9e-44) tmp = b * ((a * i) - (z * c)); elseif (z <= -2.3e-164) tmp = a * ((b * i) - (x * t)); elseif (z <= 1.9e+34) 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, -8.2e+238], t$95$1, If[LessEqual[z, -2.9e-44], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.3e-164], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+34], 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 -8.2 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.9 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq -2.3 \cdot 10^{-164}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+34}:\\
\;\;\;\;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 < -8.1999999999999998e238 or 1.9000000000000001e34 < z Initial program 67.3%
+-commutative67.3%
fma-define69.8%
*-commutative69.8%
*-commutative69.8%
cancel-sign-sub-inv69.8%
cancel-sign-sub69.8%
fmm-def69.8%
distribute-rgt-neg-out69.8%
remove-double-neg69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in j around inf 59.3%
Simplified58.0%
Taylor expanded in j around 0 70.0%
+-commutative70.0%
mul-1-neg70.0%
*-commutative70.0%
sub-neg70.0%
*-commutative70.0%
*-commutative70.0%
Simplified70.0%
Taylor expanded in z around inf 70.1%
if -8.1999999999999998e238 < z < -2.9000000000000001e-44Initial program 68.5%
+-commutative68.5%
fma-define68.5%
*-commutative68.5%
*-commutative68.5%
cancel-sign-sub-inv68.5%
cancel-sign-sub68.5%
fmm-def68.5%
distribute-rgt-neg-out68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in y around 0 60.6%
mul-1-neg60.6%
*-commutative60.6%
associate-*r*67.5%
*-commutative67.5%
distribute-rgt-neg-out67.5%
mul-1-neg67.5%
*-commutative67.5%
associate-*r*64.1%
*-commutative64.1%
associate-*r*65.8%
distribute-lft-in65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in b around inf 57.5%
if -2.9000000000000001e-44 < z < -2.29999999999999985e-164Initial program 94.5%
+-commutative94.5%
fma-define94.5%
*-commutative94.5%
*-commutative94.5%
cancel-sign-sub-inv94.5%
cancel-sign-sub94.5%
fmm-def94.5%
distribute-rgt-neg-out94.5%
remove-double-neg94.5%
*-commutative94.5%
*-commutative94.5%
Simplified94.5%
Taylor expanded in y around 0 89.5%
mul-1-neg89.5%
*-commutative89.5%
associate-*r*79.3%
*-commutative79.3%
distribute-rgt-neg-out79.3%
mul-1-neg79.3%
*-commutative79.3%
associate-*r*79.1%
*-commutative79.1%
associate-*r*79.2%
distribute-lft-in84.4%
+-commutative84.4%
mul-1-neg84.4%
unsub-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in c around 0 76.9%
sub-neg76.9%
associate-*r*76.9%
neg-mul-176.9%
associate-*r*76.9%
neg-mul-176.9%
distribute-rgt-neg-in76.9%
distribute-lft-in77.0%
sub-neg77.0%
distribute-lft-neg-in77.0%
distribute-rgt-neg-in77.0%
sub-neg77.0%
+-commutative77.0%
distribute-neg-in77.0%
remove-double-neg77.0%
sub-neg77.0%
*-commutative77.0%
Simplified77.0%
if -2.29999999999999985e-164 < z < 1.9000000000000001e34Initial program 84.6%
cancel-sign-sub-inv84.6%
cancel-sign-sub84.6%
*-commutative84.6%
fmm-def84.6%
distribute-rgt-neg-in84.6%
remove-double-neg84.6%
*-commutative84.6%
*-commutative84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in i around inf 60.4%
Final simplification64.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))) (t_2 (* z (- (* x y) (* b c)))))
(if (<= z -7.8e+238)
t_2
(if (<= z -3.4e-44)
(* b (- (* a i) (* z c)))
(if (<= z -7.5e-184)
t_1
(if (<= z 3.9e-99)
(* j (- (* t c) (* y i)))
(if (<= z 5.6e+48) t_1 t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.8e+238) {
tmp = t_2;
} else if (z <= -3.4e-44) {
tmp = b * ((a * i) - (z * c));
} else if (z <= -7.5e-184) {
tmp = t_1;
} else if (z <= 3.9e-99) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 5.6e+48) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * ((b * i) - (x * t))
t_2 = z * ((x * y) - (b * c))
if (z <= (-7.8d+238)) then
tmp = t_2
else if (z <= (-3.4d-44)) then
tmp = b * ((a * i) - (z * c))
else if (z <= (-7.5d-184)) then
tmp = t_1
else if (z <= 3.9d-99) then
tmp = j * ((t * c) - (y * i))
else if (z <= 5.6d+48) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((b * i) - (x * t));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.8e+238) {
tmp = t_2;
} else if (z <= -3.4e-44) {
tmp = b * ((a * i) - (z * c));
} else if (z <= -7.5e-184) {
tmp = t_1;
} else if (z <= 3.9e-99) {
tmp = j * ((t * c) - (y * i));
} else if (z <= 5.6e+48) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -7.8e+238: tmp = t_2 elif z <= -3.4e-44: tmp = b * ((a * i) - (z * c)) elif z <= -7.5e-184: tmp = t_1 elif z <= 3.9e-99: tmp = j * ((t * c) - (y * i)) elif z <= 5.6e+48: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -7.8e+238) tmp = t_2; elseif (z <= -3.4e-44) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (z <= -7.5e-184) tmp = t_1; elseif (z <= 3.9e-99) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (z <= 5.6e+48) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -7.8e+238) tmp = t_2; elseif (z <= -3.4e-44) tmp = b * ((a * i) - (z * c)); elseif (z <= -7.5e-184) tmp = t_1; elseif (z <= 3.9e-99) tmp = j * ((t * c) - (y * i)); elseif (z <= 5.6e+48) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -7.8e+238], t$95$2, If[LessEqual[z, -3.4e-44], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -7.5e-184], t$95$1, If[LessEqual[z, 3.9e-99], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e+48], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+238}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq -7.5 \cdot 10^{-184}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-99}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{+48}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if z < -7.79999999999999986e238 or 5.60000000000000025e48 < z Initial program 67.3%
+-commutative67.3%
fma-define69.8%
*-commutative69.8%
*-commutative69.8%
cancel-sign-sub-inv69.8%
cancel-sign-sub69.8%
fmm-def69.8%
distribute-rgt-neg-out69.8%
remove-double-neg69.8%
*-commutative69.8%
*-commutative69.8%
Simplified69.8%
Taylor expanded in j around inf 59.0%
Simplified57.7%
Taylor expanded in j around 0 70.1%
+-commutative70.1%
mul-1-neg70.1%
*-commutative70.1%
sub-neg70.1%
*-commutative70.1%
*-commutative70.1%
Simplified70.1%
Taylor expanded in z around inf 71.4%
if -7.79999999999999986e238 < z < -3.40000000000000016e-44Initial program 68.5%
+-commutative68.5%
fma-define68.5%
*-commutative68.5%
*-commutative68.5%
cancel-sign-sub-inv68.5%
cancel-sign-sub68.5%
fmm-def68.5%
distribute-rgt-neg-out68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in y around 0 60.6%
mul-1-neg60.6%
*-commutative60.6%
associate-*r*67.5%
*-commutative67.5%
distribute-rgt-neg-out67.5%
mul-1-neg67.5%
*-commutative67.5%
associate-*r*64.1%
*-commutative64.1%
associate-*r*65.8%
distribute-lft-in65.8%
+-commutative65.8%
mul-1-neg65.8%
unsub-neg65.8%
*-commutative65.8%
*-commutative65.8%
Simplified65.8%
Taylor expanded in b around inf 57.5%
if -3.40000000000000016e-44 < z < -7.4999999999999995e-184 or 3.89999999999999987e-99 < z < 5.60000000000000025e48Initial program 87.2%
+-commutative87.2%
fma-define87.2%
*-commutative87.2%
*-commutative87.2%
cancel-sign-sub-inv87.2%
cancel-sign-sub87.2%
fmm-def87.2%
distribute-rgt-neg-out87.2%
remove-double-neg87.2%
*-commutative87.2%
*-commutative87.2%
Simplified87.2%
Taylor expanded in y around 0 83.0%
mul-1-neg83.0%
*-commutative83.0%
associate-*r*77.5%
*-commutative77.5%
distribute-rgt-neg-out77.5%
mul-1-neg77.5%
*-commutative77.5%
associate-*r*77.6%
*-commutative77.6%
associate-*r*77.7%
distribute-lft-in81.9%
+-commutative81.9%
mul-1-neg81.9%
unsub-neg81.9%
*-commutative81.9%
*-commutative81.9%
Simplified81.9%
Taylor expanded in c around 0 72.0%
sub-neg72.0%
associate-*r*72.0%
neg-mul-172.0%
associate-*r*72.0%
neg-mul-172.0%
distribute-rgt-neg-in72.0%
distribute-lft-in72.0%
sub-neg72.0%
distribute-lft-neg-in72.0%
distribute-rgt-neg-in72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
remove-double-neg72.0%
sub-neg72.0%
*-commutative72.0%
Simplified72.0%
if -7.4999999999999995e-184 < z < 3.89999999999999987e-99Initial program 84.9%
+-commutative84.9%
fma-define86.3%
*-commutative86.3%
*-commutative86.3%
cancel-sign-sub-inv86.3%
cancel-sign-sub86.3%
fmm-def86.3%
distribute-rgt-neg-out86.3%
remove-double-neg86.3%
*-commutative86.3%
*-commutative86.3%
Simplified86.3%
Taylor expanded in j around inf 57.2%
*-commutative57.2%
*-commutative57.2%
Simplified57.2%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* a i))))
(if (<= b -7.5e+220)
t_1
(if (<= b -1.95e-143)
(* b (* z (- c)))
(if (<= b -9.2e-299)
(* (* y i) (- j))
(if (<= b 2.7e+58)
(* a (* t (- x)))
(if (<= b 2.6e+244) (* (- 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 = b * (a * i);
double tmp;
if (b <= -7.5e+220) {
tmp = t_1;
} else if (b <= -1.95e-143) {
tmp = b * (z * -c);
} else if (b <= -9.2e-299) {
tmp = (y * i) * -j;
} else if (b <= 2.7e+58) {
tmp = a * (t * -x);
} else if (b <= 2.6e+244) {
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 = b * (a * i)
if (b <= (-7.5d+220)) then
tmp = t_1
else if (b <= (-1.95d-143)) then
tmp = b * (z * -c)
else if (b <= (-9.2d-299)) then
tmp = (y * i) * -j
else if (b <= 2.7d+58) then
tmp = a * (t * -x)
else if (b <= 2.6d+244) 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 = b * (a * i);
double tmp;
if (b <= -7.5e+220) {
tmp = t_1;
} else if (b <= -1.95e-143) {
tmp = b * (z * -c);
} else if (b <= -9.2e-299) {
tmp = (y * i) * -j;
} else if (b <= 2.7e+58) {
tmp = a * (t * -x);
} else if (b <= 2.6e+244) {
tmp = -c * (z * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (a * i) tmp = 0 if b <= -7.5e+220: tmp = t_1 elif b <= -1.95e-143: tmp = b * (z * -c) elif b <= -9.2e-299: tmp = (y * i) * -j elif b <= 2.7e+58: tmp = a * (t * -x) elif b <= 2.6e+244: tmp = -c * (z * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(a * i)) tmp = 0.0 if (b <= -7.5e+220) tmp = t_1; elseif (b <= -1.95e-143) tmp = Float64(b * Float64(z * Float64(-c))); elseif (b <= -9.2e-299) tmp = Float64(Float64(y * i) * Float64(-j)); elseif (b <= 2.7e+58) tmp = Float64(a * Float64(t * Float64(-x))); elseif (b <= 2.6e+244) tmp = Float64(Float64(-c) * Float64(z * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (a * i); tmp = 0.0; if (b <= -7.5e+220) tmp = t_1; elseif (b <= -1.95e-143) tmp = b * (z * -c); elseif (b <= -9.2e-299) tmp = (y * i) * -j; elseif (b <= 2.7e+58) tmp = a * (t * -x); elseif (b <= 2.6e+244) 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[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -7.5e+220], t$95$1, If[LessEqual[b, -1.95e-143], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -9.2e-299], N[(N[(y * i), $MachinePrecision] * (-j)), $MachinePrecision], If[LessEqual[b, 2.7e+58], N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+244], N[((-c) * N[(z * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i\right)\\
\mathbf{if}\;b \leq -7.5 \cdot 10^{+220}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{-143}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;b \leq -9.2 \cdot 10^{-299}:\\
\;\;\;\;\left(y \cdot i\right) \cdot \left(-j\right)\\
\mathbf{elif}\;b \leq 2.7 \cdot 10^{+58}:\\
\;\;\;\;a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+244}:\\
\;\;\;\;\left(-c\right) \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -7.5000000000000003e220 or 2.6e244 < b Initial program 68.5%
+-commutative68.5%
fma-define74.2%
*-commutative74.2%
*-commutative74.2%
cancel-sign-sub-inv74.2%
cancel-sign-sub74.2%
fmm-def74.2%
distribute-rgt-neg-out74.2%
remove-double-neg74.2%
*-commutative74.2%
*-commutative74.2%
Simplified74.2%
Taylor expanded in y around 0 82.8%
mul-1-neg82.8%
*-commutative82.8%
associate-*r*80.0%
*-commutative80.0%
distribute-rgt-neg-out80.0%
mul-1-neg80.0%
*-commutative80.0%
associate-*r*80.0%
*-commutative80.0%
associate-*r*77.1%
distribute-lft-in80.0%
+-commutative80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
*-commutative80.0%
Simplified80.0%
Taylor expanded in c around 0 72.0%
sub-neg72.0%
associate-*r*72.0%
neg-mul-172.0%
associate-*r*72.0%
neg-mul-172.0%
distribute-rgt-neg-in72.0%
distribute-lft-in72.0%
sub-neg72.0%
distribute-lft-neg-in72.0%
distribute-rgt-neg-in72.0%
sub-neg72.0%
+-commutative72.0%
distribute-neg-in72.0%
remove-double-neg72.0%
sub-neg72.0%
*-commutative72.0%
Simplified72.0%
Taylor expanded in i around inf 62.1%
*-commutative62.1%
*-commutative62.1%
*-commutative62.1%
associate-*r*67.4%
Simplified67.4%
if -7.5000000000000003e220 < b < -1.95000000000000002e-143Initial program 84.8%
+-commutative84.8%
fma-define86.0%
*-commutative86.0%
*-commutative86.0%
cancel-sign-sub-inv86.0%
cancel-sign-sub86.0%
fmm-def86.0%
distribute-rgt-neg-out86.0%
remove-double-neg86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in c around inf 45.6%
*-commutative45.6%
*-commutative45.6%
Simplified45.6%
Taylor expanded in t around 0 34.1%
associate-*r*34.1%
neg-mul-134.1%
*-commutative34.1%
Simplified34.1%
if -1.95000000000000002e-143 < b < -9.2000000000000003e-299Initial program 75.1%
+-commutative75.1%
fma-define75.1%
*-commutative75.1%
*-commutative75.1%
cancel-sign-sub-inv75.1%
cancel-sign-sub75.1%
fmm-def75.1%
distribute-rgt-neg-out75.1%
remove-double-neg75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in j around inf 62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
Taylor expanded in t around 0 57.0%
neg-mul-157.0%
distribute-rgt-neg-in57.0%
Simplified57.0%
if -9.2000000000000003e-299 < b < 2.7000000000000001e58Initial program 77.7%
+-commutative77.7%
fma-define77.7%
*-commutative77.7%
*-commutative77.7%
cancel-sign-sub-inv77.7%
cancel-sign-sub77.7%
fmm-def77.7%
distribute-rgt-neg-out77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in y around 0 64.5%
mul-1-neg64.5%
*-commutative64.5%
associate-*r*63.3%
*-commutative63.3%
distribute-rgt-neg-out63.3%
mul-1-neg63.3%
*-commutative63.3%
associate-*r*60.8%
*-commutative60.8%
associate-*r*60.9%
distribute-lft-in60.9%
+-commutative60.9%
mul-1-neg60.9%
unsub-neg60.9%
*-commutative60.9%
*-commutative60.9%
Simplified60.9%
Taylor expanded in c around 0 39.7%
sub-neg39.7%
associate-*r*39.7%
neg-mul-139.7%
associate-*r*39.7%
neg-mul-139.7%
distribute-rgt-neg-in39.7%
distribute-lft-in39.7%
sub-neg39.7%
distribute-lft-neg-in39.7%
distribute-rgt-neg-in39.7%
sub-neg39.7%
+-commutative39.7%
distribute-neg-in39.7%
remove-double-neg39.7%
sub-neg39.7%
*-commutative39.7%
Simplified39.7%
Taylor expanded in i around 0 34.6%
associate-*r*34.6%
neg-mul-134.6%
Simplified34.6%
if 2.7000000000000001e58 < b < 2.6e244Initial program 62.0%
+-commutative62.0%
fma-define62.0%
*-commutative62.0%
*-commutative62.0%
cancel-sign-sub-inv62.0%
cancel-sign-sub62.0%
fmm-def62.0%
distribute-rgt-neg-out62.0%
remove-double-neg62.0%
*-commutative62.0%
*-commutative62.0%
Simplified62.0%
Taylor expanded in c around inf 54.0%
*-commutative54.0%
*-commutative54.0%
Simplified54.0%
Taylor expanded in t around 0 51.2%
mul-1-neg51.2%
*-commutative51.2%
distribute-lft-neg-in51.2%
*-commutative51.2%
Simplified51.2%
Final simplification43.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -4.8e+117)
(* j (* i (- (* a (/ b j)) y)))
(if (<= i -4.1e-100)
(+ (* j (- (* t c) (* y i))) (* a (* b i)))
(if (<= i 1.6e+113)
(- (* t (- (* c j) (* x a))) (* z (* b c)))
(* i (- (* a b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -4.8e+117) {
tmp = j * (i * ((a * (b / j)) - y));
} else if (i <= -4.1e-100) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (i <= 1.6e+113) {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-4.8d+117)) then
tmp = j * (i * ((a * (b / j)) - y))
else if (i <= (-4.1d-100)) then
tmp = (j * ((t * c) - (y * i))) + (a * (b * i))
else if (i <= 1.6d+113) then
tmp = (t * ((c * j) - (x * a))) - (z * (b * c))
else
tmp = i * ((a * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -4.8e+117) {
tmp = j * (i * ((a * (b / j)) - y));
} else if (i <= -4.1e-100) {
tmp = (j * ((t * c) - (y * i))) + (a * (b * i));
} else if (i <= 1.6e+113) {
tmp = (t * ((c * j) - (x * a))) - (z * (b * c));
} else {
tmp = i * ((a * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -4.8e+117: tmp = j * (i * ((a * (b / j)) - y)) elif i <= -4.1e-100: tmp = (j * ((t * c) - (y * i))) + (a * (b * i)) elif i <= 1.6e+113: tmp = (t * ((c * j) - (x * a))) - (z * (b * c)) else: tmp = i * ((a * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -4.8e+117) tmp = Float64(j * Float64(i * Float64(Float64(a * Float64(b / j)) - y))); elseif (i <= -4.1e-100) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(a * Float64(b * i))); elseif (i <= 1.6e+113) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(z * Float64(b * c))); else tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -4.8e+117) tmp = j * (i * ((a * (b / j)) - y)); elseif (i <= -4.1e-100) tmp = (j * ((t * c) - (y * i))) + (a * (b * i)); elseif (i <= 1.6e+113) tmp = (t * ((c * j) - (x * a))) - (z * (b * c)); else tmp = i * ((a * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -4.8e+117], N[(j * N[(i * N[(N[(a * N[(b / j), $MachinePrecision]), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -4.1e-100], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.6e+113], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -4.8 \cdot 10^{+117}:\\
\;\;\;\;j \cdot \left(i \cdot \left(a \cdot \frac{b}{j} - y\right)\right)\\
\mathbf{elif}\;i \leq -4.1 \cdot 10^{-100}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + a \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{+113}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -4.7999999999999998e117Initial program 57.6%
+-commutative57.6%
fma-define57.6%
*-commutative57.6%
*-commutative57.6%
cancel-sign-sub-inv57.6%
cancel-sign-sub57.6%
fmm-def57.6%
distribute-rgt-neg-out57.6%
remove-double-neg57.6%
*-commutative57.6%
*-commutative57.6%
Simplified57.6%
Taylor expanded in j around inf 57.6%
Simplified69.8%
Taylor expanded in i around -inf 67.4%
neg-mul-167.4%
+-commutative67.4%
unsub-neg67.4%
associate-/l*67.4%
Simplified67.4%
if -4.7999999999999998e117 < i < -4.0999999999999999e-100Initial program 78.7%
cancel-sign-sub-inv78.7%
cancel-sign-sub78.7%
*-commutative78.7%
fmm-def78.7%
distribute-rgt-neg-in78.7%
remove-double-neg78.7%
*-commutative78.7%
*-commutative78.7%
*-commutative78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in i around inf 60.8%
if -4.0999999999999999e-100 < i < 1.5999999999999999e113Initial program 82.7%
+-commutative82.7%
fma-define83.4%
*-commutative83.4%
*-commutative83.4%
cancel-sign-sub-inv83.4%
cancel-sign-sub83.4%
fmm-def83.4%
distribute-rgt-neg-out83.4%
remove-double-neg83.4%
*-commutative83.4%
*-commutative83.4%
Simplified83.4%
Taylor expanded in y around 0 73.9%
mul-1-neg73.9%
*-commutative73.9%
associate-*r*73.3%
*-commutative73.3%
distribute-rgt-neg-out73.3%
mul-1-neg73.3%
*-commutative73.3%
associate-*r*71.7%
*-commutative71.7%
associate-*r*71.9%
distribute-lft-in73.4%
+-commutative73.4%
mul-1-neg73.4%
unsub-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in z around inf 70.0%
associate-*r*68.6%
*-commutative68.6%
Simplified68.6%
if 1.5999999999999999e113 < i Initial program 68.3%
+-commutative68.3%
fma-define70.5%
*-commutative70.5%
*-commutative70.5%
cancel-sign-sub-inv70.5%
cancel-sign-sub70.5%
fmm-def70.5%
distribute-rgt-neg-out70.5%
remove-double-neg70.5%
*-commutative70.5%
*-commutative70.5%
Simplified70.5%
Taylor expanded in i around inf 77.6%
distribute-lft-out--77.6%
*-commutative77.6%
Simplified77.6%
Final simplification68.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -7.8e+238)
t_1
(if (<= z -8.5e-16)
(* b (- (* a i) (* z c)))
(if (<= z 4.6e+109) (+ (* c (* t j)) (* a (- (* b i) (* x t)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = z * ((x * y) - (b * c));
double tmp;
if (z <= -7.8e+238) {
tmp = t_1;
} else if (z <= -8.5e-16) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 4.6e+109) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} 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 <= (-7.8d+238)) then
tmp = t_1
else if (z <= (-8.5d-16)) then
tmp = b * ((a * i) - (z * c))
else if (z <= 4.6d+109) then
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)))
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 <= -7.8e+238) {
tmp = t_1;
} else if (z <= -8.5e-16) {
tmp = b * ((a * i) - (z * c));
} else if (z <= 4.6e+109) {
tmp = (c * (t * j)) + (a * ((b * i) - (x * t)));
} 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 <= -7.8e+238: tmp = t_1 elif z <= -8.5e-16: tmp = b * ((a * i) - (z * c)) elif z <= 4.6e+109: tmp = (c * (t * j)) + (a * ((b * i) - (x * t))) 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 <= -7.8e+238) tmp = t_1; elseif (z <= -8.5e-16) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (z <= 4.6e+109) tmp = Float64(Float64(c * Float64(t * j)) + Float64(a * Float64(Float64(b * i) - Float64(x * t)))); 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 <= -7.8e+238) tmp = t_1; elseif (z <= -8.5e-16) tmp = b * ((a * i) - (z * c)); elseif (z <= 4.6e+109) tmp = (c * (t * j)) + (a * ((b * i) - (x * t))); 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, -7.8e+238], t$95$1, If[LessEqual[z, -8.5e-16], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.6e+109], N[(N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision] + N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -7.8 \cdot 10^{+238}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -8.5 \cdot 10^{-16}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;z \leq 4.6 \cdot 10^{+109}:\\
\;\;\;\;c \cdot \left(t \cdot j\right) + a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.79999999999999986e238 or 4.60000000000000021e109 < z Initial program 65.1%
+-commutative65.1%
fma-define68.5%
*-commutative68.5%
*-commutative68.5%
cancel-sign-sub-inv68.5%
cancel-sign-sub68.5%
fmm-def68.5%
distribute-rgt-neg-out68.5%
remove-double-neg68.5%
*-commutative68.5%
*-commutative68.5%
Simplified68.5%
Taylor expanded in j around inf 57.4%
Simplified55.9%
Taylor expanded in j around 0 71.9%
+-commutative71.9%
mul-1-neg71.9%
*-commutative71.9%
sub-neg71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in z around inf 78.8%
if -7.79999999999999986e238 < z < -8.5000000000000001e-16Initial program 66.2%
+-commutative66.2%
fma-define66.2%
*-commutative66.2%
*-commutative66.2%
cancel-sign-sub-inv66.2%
cancel-sign-sub66.2%
fmm-def66.2%
distribute-rgt-neg-out66.2%
remove-double-neg66.2%
*-commutative66.2%
*-commutative66.2%
Simplified66.2%
Taylor expanded in y around 0 57.6%
mul-1-neg57.6%
*-commutative57.6%
associate-*r*65.1%
*-commutative65.1%
distribute-rgt-neg-out65.1%
mul-1-neg65.1%
*-commutative65.1%
associate-*r*61.4%
*-commutative61.4%
associate-*r*65.1%
distribute-lft-in65.1%
+-commutative65.1%
mul-1-neg65.1%
unsub-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in b around inf 56.2%
if -8.5000000000000001e-16 < z < 4.60000000000000021e109Initial program 84.6%
cancel-sign-sub-inv84.6%
cancel-sign-sub84.6%
*-commutative84.6%
fmm-def84.6%
distribute-rgt-neg-in84.6%
remove-double-neg84.6%
*-commutative84.6%
*-commutative84.6%
*-commutative84.6%
*-commutative84.6%
Simplified84.6%
Taylor expanded in a around -inf 74.0%
Taylor expanded in y around 0 61.8%
+-commutative61.8%
mul-1-neg61.8%
*-commutative61.8%
unsub-neg61.8%
*-commutative61.8%
*-commutative61.8%
*-commutative61.8%
Simplified61.8%
Final simplification64.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.5e-143) (not (<= b 26000000.0))) (+ (* t (- (* c j) (* x a))) (* b (- (* a i) (* z c)))) (+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.5e-143) || !(b <= 26000000.0)) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-2.5d-143)) .or. (.not. (b <= 26000000.0d0))) then
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)))
else
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -2.5e-143) || !(b <= 26000000.0)) {
tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c)));
} else {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -2.5e-143) or not (b <= 26000000.0): tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))) else: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -2.5e-143) || !(b <= 26000000.0)) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) + Float64(b * Float64(Float64(a * i) - Float64(z * c)))); else tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -2.5e-143) || ~((b <= 26000000.0))) tmp = (t * ((c * j) - (x * a))) + (b * ((a * i) - (z * c))); else tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -2.5e-143], N[Not[LessEqual[b, 26000000.0]], $MachinePrecision]], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.5 \cdot 10^{-143} \lor \neg \left(b \leq 26000000\right):\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) + b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -2.5000000000000001e-143 or 2.6e7 < b Initial program 75.7%
+-commutative75.7%
fma-define77.7%
*-commutative77.7%
*-commutative77.7%
cancel-sign-sub-inv77.7%
cancel-sign-sub77.7%
fmm-def77.7%
distribute-rgt-neg-out77.7%
remove-double-neg77.7%
*-commutative77.7%
*-commutative77.7%
Simplified77.7%
Taylor expanded in y around 0 74.0%
mul-1-neg74.0%
*-commutative74.0%
associate-*r*73.4%
*-commutative73.4%
distribute-rgt-neg-out73.4%
mul-1-neg73.4%
*-commutative73.4%
associate-*r*72.5%
*-commutative72.5%
associate-*r*73.2%
distribute-lft-in74.4%
+-commutative74.4%
mul-1-neg74.4%
unsub-neg74.4%
*-commutative74.4%
*-commutative74.4%
Simplified74.4%
if -2.5000000000000001e-143 < b < 2.6e7Initial program 77.0%
Taylor expanded in b around 0 77.9%
Final simplification75.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -5.2e-144)
(- (* b (- (* a i) (* z c))) (- (* a (* x t)) (* c (* t j))))
(if (<= b 12000000.0)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
(- (* t (- (* c j) (* x a))) (* b (- (* z c) (* a i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.2e-144) {
tmp = (b * ((a * i) - (z * c))) - ((a * (x * t)) - (c * (t * j)));
} else if (b <= 12000000.0) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-5.2d-144)) then
tmp = (b * ((a * i) - (z * c))) - ((a * (x * t)) - (c * (t * j)))
else if (b <= 12000000.0d0) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -5.2e-144) {
tmp = (b * ((a * i) - (z * c))) - ((a * (x * t)) - (c * (t * j)));
} else if (b <= 12000000.0) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -5.2e-144: tmp = (b * ((a * i) - (z * c))) - ((a * (x * t)) - (c * (t * j))) elif b <= 12000000.0: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -5.2e-144) tmp = Float64(Float64(b * Float64(Float64(a * i) - Float64(z * c))) - Float64(Float64(a * Float64(x * t)) - Float64(c * Float64(t * j)))); elseif (b <= 12000000.0) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -5.2e-144) tmp = (b * ((a * i) - (z * c))) - ((a * (x * t)) - (c * (t * j))); elseif (b <= 12000000.0) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -5.2e-144], N[(N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(a * N[(x * t), $MachinePrecision]), $MachinePrecision] - N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 12000000.0], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.2 \cdot 10^{-144}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right) - \left(a \cdot \left(x \cdot t\right) - c \cdot \left(t \cdot j\right)\right)\\
\mathbf{elif}\;b \leq 12000000:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\end{array}
\end{array}
if b < -5.2000000000000002e-144Initial program 81.5%
+-commutative81.5%
fma-define84.4%
*-commutative84.4%
*-commutative84.4%
cancel-sign-sub-inv84.4%
cancel-sign-sub84.4%
fmm-def84.4%
distribute-rgt-neg-out84.4%
remove-double-neg84.4%
*-commutative84.4%
*-commutative84.4%
Simplified84.4%
Taylor expanded in y around 0 76.0%
if -5.2000000000000002e-144 < b < 1.2e7Initial program 77.0%
Taylor expanded in b around 0 77.9%
if 1.2e7 < b Initial program 64.3%
+-commutative64.3%
fma-define64.3%
*-commutative64.3%
*-commutative64.3%
cancel-sign-sub-inv64.3%
cancel-sign-sub64.3%
fmm-def64.3%
distribute-rgt-neg-out64.3%
remove-double-neg64.3%
*-commutative64.3%
*-commutative64.3%
Simplified64.3%
Taylor expanded in y around 0 70.1%
mul-1-neg70.1%
*-commutative70.1%
associate-*r*71.7%
*-commutative71.7%
distribute-rgt-neg-out71.7%
mul-1-neg71.7%
*-commutative71.7%
associate-*r*68.0%
*-commutative68.0%
associate-*r*69.8%
distribute-lft-in71.7%
+-commutative71.7%
mul-1-neg71.7%
unsub-neg71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Final simplification75.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -3.4e+65)
(+ (* t (* c j)) t_1)
(if (<= b 1e+54)
(+ (* j (- (* t c) (* y i))) (* x (- (* y z) (* t a))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.4e+65) {
tmp = (t * (c * j)) + t_1;
} else if (b <= 1e+54) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-3.4d+65)) then
tmp = (t * (c * j)) + t_1
else if (b <= 1d+54) then
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -3.4e+65) {
tmp = (t * (c * j)) + t_1;
} else if (b <= 1e+54) {
tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -3.4e+65: tmp = (t * (c * j)) + t_1 elif b <= 1e+54: tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -3.4e+65) tmp = Float64(Float64(t * Float64(c * j)) + t_1); elseif (b <= 1e+54) tmp = Float64(Float64(j * Float64(Float64(t * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -3.4e+65) tmp = (t * (c * j)) + t_1; elseif (b <= 1e+54) tmp = (j * ((t * c) - (y * i))) + (x * ((y * z) - (t * a))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.4e+65], N[(N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 1e+54], N[(N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -3.4 \cdot 10^{+65}:\\
\;\;\;\;t \cdot \left(c \cdot j\right) + t\_1\\
\mathbf{elif}\;b \leq 10^{+54}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.3999999999999999e65Initial program 80.2%
+-commutative80.2%
fma-define83.5%
*-commutative83.5%
*-commutative83.5%
cancel-sign-sub-inv83.5%
cancel-sign-sub83.5%
fmm-def83.5%
distribute-rgt-neg-out83.5%
remove-double-neg83.5%
*-commutative83.5%
*-commutative83.5%
Simplified83.5%
Taylor expanded in y around 0 80.8%
mul-1-neg80.8%
*-commutative80.8%
associate-*r*76.1%
*-commutative76.1%
distribute-rgt-neg-out76.1%
mul-1-neg76.1%
*-commutative76.1%
associate-*r*76.8%
*-commutative76.8%
associate-*r*76.8%
distribute-lft-in78.5%
+-commutative78.5%
mul-1-neg78.5%
unsub-neg78.5%
*-commutative78.5%
*-commutative78.5%
Simplified78.5%
Taylor expanded in c around inf 78.4%
if -3.3999999999999999e65 < b < 1.0000000000000001e54Initial program 78.8%
Taylor expanded in b around 0 72.3%
if 1.0000000000000001e54 < b Initial program 62.3%
+-commutative62.3%
fma-define62.3%
*-commutative62.3%
*-commutative62.3%
cancel-sign-sub-inv62.3%
cancel-sign-sub62.3%
fmm-def62.3%
distribute-rgt-neg-out62.3%
remove-double-neg62.3%
*-commutative62.3%
*-commutative62.3%
Simplified62.3%
Taylor expanded in y around 0 67.1%
mul-1-neg67.1%
*-commutative67.1%
associate-*r*71.1%
*-commutative71.1%
distribute-rgt-neg-out71.1%
mul-1-neg71.1%
*-commutative71.1%
associate-*r*66.8%
*-commutative66.8%
associate-*r*68.9%
distribute-lft-in71.1%
+-commutative71.1%
mul-1-neg71.1%
unsub-neg71.1%
*-commutative71.1%
*-commutative71.1%
Simplified71.1%
Taylor expanded in b around inf 72.2%
Final simplification73.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -9.5e-143)
t_1
(if (<= b -2.55e-295)
(* y (- (* x z) (* i j)))
(if (<= b 2.9e-8) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.5e-143) {
tmp = t_1;
} else if (b <= -2.55e-295) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.9e-8) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-9.5d-143)) then
tmp = t_1
else if (b <= (-2.55d-295)) then
tmp = y * ((x * z) - (i * j))
else if (b <= 2.9d-8) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -9.5e-143) {
tmp = t_1;
} else if (b <= -2.55e-295) {
tmp = y * ((x * z) - (i * j));
} else if (b <= 2.9e-8) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -9.5e-143: tmp = t_1 elif b <= -2.55e-295: tmp = y * ((x * z) - (i * j)) elif b <= 2.9e-8: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -9.5e-143) tmp = t_1; elseif (b <= -2.55e-295) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); elseif (b <= 2.9e-8) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -9.5e-143) tmp = t_1; elseif (b <= -2.55e-295) tmp = y * ((x * z) - (i * j)); elseif (b <= 2.9e-8) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.5e-143], t$95$1, If[LessEqual[b, -2.55e-295], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.9e-8], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -9.5 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.55 \cdot 10^{-295}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{elif}\;b \leq 2.9 \cdot 10^{-8}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -9.4999999999999993e-143 or 2.9000000000000002e-8 < b Initial program 76.3%
+-commutative76.3%
fma-define77.6%
*-commutative77.6%
*-commutative77.6%
cancel-sign-sub-inv77.6%
cancel-sign-sub77.6%
fmm-def77.6%
distribute-rgt-neg-out77.6%
remove-double-neg77.6%
*-commutative77.6%
*-commutative77.6%
Simplified77.6%
Taylor expanded in y around 0 72.9%
mul-1-neg72.9%
*-commutative72.9%
associate-*r*71.7%
*-commutative71.7%
distribute-rgt-neg-out71.7%
mul-1-neg71.7%
*-commutative71.7%
associate-*r*70.8%
*-commutative70.8%
associate-*r*71.4%
distribute-lft-in72.7%
+-commutative72.7%
mul-1-neg72.7%
unsub-neg72.7%
*-commutative72.7%
*-commutative72.7%
Simplified72.7%
Taylor expanded in b around inf 57.7%
if -9.4999999999999993e-143 < b < -2.54999999999999995e-295Initial program 72.8%
+-commutative72.8%
fma-define75.8%
*-commutative75.8%
*-commutative75.8%
cancel-sign-sub-inv75.8%
cancel-sign-sub75.8%
fmm-def75.8%
distribute-rgt-neg-out75.8%
remove-double-neg75.8%
*-commutative75.8%
*-commutative75.8%
Simplified75.8%
Taylor expanded in y around inf 67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
Simplified67.3%
if -2.54999999999999995e-295 < b < 2.9000000000000002e-8Initial program 77.8%
+-commutative77.8%
fma-define77.8%
*-commutative77.8%
*-commutative77.8%
cancel-sign-sub-inv77.8%
cancel-sign-sub77.8%
fmm-def77.8%
distribute-rgt-neg-out77.8%
remove-double-neg77.8%
*-commutative77.8%
*-commutative77.8%
Simplified77.8%
Taylor expanded in t around inf 62.0%
+-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
*-commutative62.0%
Simplified62.0%
Final simplification60.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* a i) (* z c)))))
(if (<= b -2.1e-143)
t_1
(if (<= b -2.9e-290)
(* j (- (* t c) (* y i)))
(if (<= b 9.5e-8) (* t (- (* c j) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.1e-143) {
tmp = t_1;
} else if (b <= -2.9e-290) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 9.5e-8) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((a * i) - (z * c))
if (b <= (-2.1d-143)) then
tmp = t_1
else if (b <= (-2.9d-290)) then
tmp = j * ((t * c) - (y * i))
else if (b <= 9.5d-8) then
tmp = t * ((c * j) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((a * i) - (z * c));
double tmp;
if (b <= -2.1e-143) {
tmp = t_1;
} else if (b <= -2.9e-290) {
tmp = j * ((t * c) - (y * i));
} else if (b <= 9.5e-8) {
tmp = t * ((c * j) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((a * i) - (z * c)) tmp = 0 if b <= -2.1e-143: tmp = t_1 elif b <= -2.9e-290: tmp = j * ((t * c) - (y * i)) elif b <= 9.5e-8: tmp = t * ((c * j) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(a * i) - Float64(z * c))) tmp = 0.0 if (b <= -2.1e-143) tmp = t_1; elseif (b <= -2.9e-290) tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); elseif (b <= 9.5e-8) tmp = Float64(t * Float64(Float64(c * j) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((a * i) - (z * c)); tmp = 0.0; if (b <= -2.1e-143) tmp = t_1; elseif (b <= -2.9e-290) tmp = j * ((t * c) - (y * i)); elseif (b <= 9.5e-8) tmp = t * ((c * j) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.1e-143], t$95$1, If[LessEqual[b, -2.9e-290], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.5e-8], N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -2.1 \cdot 10^{-143}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.9 \cdot 10^{-290}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{-8}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.1000000000000001e-143 or 9.50000000000000036e-8 < b Initial program 76.3%
+-commutative76.3%
fma-define78.2%
*-commutative78.2%
*-commutative78.2%
cancel-sign-sub-inv78.2%
cancel-sign-sub78.2%
fmm-def78.2%
distribute-rgt-neg-out78.2%
remove-double-neg78.2%
*-commutative78.2%
*-commutative78.2%
Simplified78.2%
Taylor expanded in y around 0 73.5%
mul-1-neg73.5%
*-commutative73.5%
associate-*r*72.3%
*-commutative72.3%
distribute-rgt-neg-out72.3%
mul-1-neg72.3%
*-commutative72.3%
associate-*r*71.4%
*-commutative71.4%
associate-*r*72.0%
distribute-lft-in73.3%
+-commutative73.3%
mul-1-neg73.3%
unsub-neg73.3%
*-commutative73.3%
*-commutative73.3%
Simplified73.3%
Taylor expanded in b around inf 58.3%
if -2.1000000000000001e-143 < b < -2.89999999999999994e-290Initial program 75.1%
+-commutative75.1%
fma-define75.1%
*-commutative75.1%
*-commutative75.1%
cancel-sign-sub-inv75.1%
cancel-sign-sub75.1%
fmm-def75.1%
distribute-rgt-neg-out75.1%
remove-double-neg75.1%
*-commutative75.1%
*-commutative75.1%
Simplified75.1%
Taylor expanded in j around inf 62.9%
*-commutative62.9%
*-commutative62.9%
Simplified62.9%
if -2.89999999999999994e-290 < b < 9.50000000000000036e-8Initial program 76.6%
+-commutative76.6%
fma-define76.6%
*-commutative76.6%
*-commutative76.6%
cancel-sign-sub-inv76.6%
cancel-sign-sub76.6%
fmm-def76.6%
distribute-rgt-neg-out76.6%
remove-double-neg76.6%
*-commutative76.6%
*-commutative76.6%
Simplified76.6%
Taylor expanded in t around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
*-commutative61.0%
Simplified61.0%
Final simplification59.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* t j))))
(if (<= t -8.8e+185)
t_1
(if (<= t -1.16e-240)
(* b (* a i))
(if (<= t 2.5e-47) (* (- c) (* z b)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -8.8e+185) {
tmp = t_1;
} else if (t <= -1.16e-240) {
tmp = b * (a * i);
} else if (t <= 2.5e-47) {
tmp = -c * (z * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * (t * j)
if (t <= (-8.8d+185)) then
tmp = t_1
else if (t <= (-1.16d-240)) then
tmp = b * (a * i)
else if (t <= 2.5d-47) then
tmp = -c * (z * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * (t * j);
double tmp;
if (t <= -8.8e+185) {
tmp = t_1;
} else if (t <= -1.16e-240) {
tmp = b * (a * i);
} else if (t <= 2.5e-47) {
tmp = -c * (z * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (t * j) tmp = 0 if t <= -8.8e+185: tmp = t_1 elif t <= -1.16e-240: tmp = b * (a * i) elif t <= 2.5e-47: tmp = -c * (z * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(t * j)) tmp = 0.0 if (t <= -8.8e+185) tmp = t_1; elseif (t <= -1.16e-240) tmp = Float64(b * Float64(a * i)); elseif (t <= 2.5e-47) tmp = Float64(Float64(-c) * Float64(z * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * (t * j); tmp = 0.0; if (t <= -8.8e+185) tmp = t_1; elseif (t <= -1.16e-240) tmp = b * (a * i); elseif (t <= 2.5e-47) tmp = -c * (z * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -8.8e+185], t$95$1, If[LessEqual[t, -1.16e-240], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.5e-47], N[((-c) * N[(z * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(t \cdot j\right)\\
\mathbf{if}\;t \leq -8.8 \cdot 10^{+185}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1.16 \cdot 10^{-240}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-47}:\\
\;\;\;\;\left(-c\right) \cdot \left(z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -8.8000000000000003e185 or 2.50000000000000006e-47 < t Initial program 63.9%
+-commutative63.9%
fma-define63.9%
*-commutative63.9%
*-commutative63.9%
cancel-sign-sub-inv63.9%
cancel-sign-sub63.9%
fmm-def63.9%
distribute-rgt-neg-out63.9%
remove-double-neg63.9%
*-commutative63.9%
*-commutative63.9%
Simplified63.9%
Taylor expanded in c around inf 48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in t around inf 41.5%
*-commutative41.5%
Simplified41.5%
if -8.8000000000000003e185 < t < -1.16e-240Initial program 80.3%
+-commutative80.3%
fma-define81.4%
*-commutative81.4%
*-commutative81.4%
cancel-sign-sub-inv81.4%
cancel-sign-sub81.4%
fmm-def81.4%
distribute-rgt-neg-out81.4%
remove-double-neg81.4%
*-commutative81.4%
*-commutative81.4%
Simplified81.4%
Taylor expanded in y around 0 63.7%
mul-1-neg63.7%
*-commutative63.7%
associate-*r*60.9%
*-commutative60.9%
distribute-rgt-neg-out60.9%
mul-1-neg60.9%
*-commutative60.9%
associate-*r*59.8%
*-commutative59.8%
associate-*r*60.0%
distribute-lft-in62.1%
+-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
*-commutative62.1%
*-commutative62.1%
Simplified62.1%
Taylor expanded in c around 0 49.4%
sub-neg49.4%
associate-*r*49.4%
neg-mul-149.4%
associate-*r*49.4%
neg-mul-149.4%
distribute-rgt-neg-in49.4%
distribute-lft-in50.5%
sub-neg50.5%
distribute-lft-neg-in50.5%
distribute-rgt-neg-in50.5%
sub-neg50.5%
+-commutative50.5%
distribute-neg-in50.5%
remove-double-neg50.5%
sub-neg50.5%
*-commutative50.5%
Simplified50.5%
Taylor expanded in i around inf 28.7%
*-commutative28.7%
*-commutative28.7%
*-commutative28.7%
associate-*r*29.8%
Simplified29.8%
if -1.16e-240 < t < 2.50000000000000006e-47Initial program 87.2%
+-commutative87.2%
fma-define90.0%
*-commutative90.0%
*-commutative90.0%
cancel-sign-sub-inv90.0%
cancel-sign-sub90.0%
fmm-def90.0%
distribute-rgt-neg-out90.0%
remove-double-neg90.0%
*-commutative90.0%
*-commutative90.0%
Simplified90.0%
Taylor expanded in c around inf 48.6%
*-commutative48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in t around 0 45.0%
mul-1-neg45.0%
*-commutative45.0%
distribute-lft-neg-in45.0%
*-commutative45.0%
Simplified45.0%
Final simplification38.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -3.05e+25) (not (<= a 9e+69))) (* a (- (* b i) (* x t))) (* c (- (* t j) (* z b)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3.05e+25) || !(a <= 9e+69)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-3.05d+25)) .or. (.not. (a <= 9d+69))) then
tmp = a * ((b * i) - (x * t))
else
tmp = c * ((t * j) - (z * b))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3.05e+25) || !(a <= 9e+69)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = c * ((t * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -3.05e+25) or not (a <= 9e+69): tmp = a * ((b * i) - (x * t)) else: tmp = c * ((t * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -3.05e+25) || !(a <= 9e+69)) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -3.05e+25) || ~((a <= 9e+69))) tmp = a * ((b * i) - (x * t)); else tmp = c * ((t * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -3.05e+25], N[Not[LessEqual[a, 9e+69]], $MachinePrecision]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.05 \cdot 10^{+25} \lor \neg \left(a \leq 9 \cdot 10^{+69}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -3.0500000000000001e25 or 8.9999999999999999e69 < a Initial program 64.8%
+-commutative64.8%
fma-define67.4%
*-commutative67.4%
*-commutative67.4%
cancel-sign-sub-inv67.4%
cancel-sign-sub67.4%
fmm-def67.4%
distribute-rgt-neg-out67.4%
remove-double-neg67.4%
*-commutative67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in y around 0 69.4%
mul-1-neg69.4%
*-commutative69.4%
associate-*r*66.8%
*-commutative66.8%
distribute-rgt-neg-out66.8%
mul-1-neg66.8%
*-commutative66.8%
associate-*r*65.9%
*-commutative65.9%
associate-*r*66.8%
distribute-lft-in69.4%
+-commutative69.4%
mul-1-neg69.4%
unsub-neg69.4%
*-commutative69.4%
*-commutative69.4%
Simplified69.4%
Taylor expanded in c around 0 63.7%
sub-neg63.7%
associate-*r*63.7%
neg-mul-163.7%
associate-*r*63.7%
neg-mul-163.7%
distribute-rgt-neg-in63.7%
distribute-lft-in64.6%
sub-neg64.6%
distribute-lft-neg-in64.6%
distribute-rgt-neg-in64.6%
sub-neg64.6%
+-commutative64.6%
distribute-neg-in64.6%
remove-double-neg64.6%
sub-neg64.6%
*-commutative64.6%
Simplified64.6%
if -3.0500000000000001e25 < a < 8.9999999999999999e69Initial program 85.3%
+-commutative85.3%
fma-define85.3%
*-commutative85.3%
*-commutative85.3%
cancel-sign-sub-inv85.3%
cancel-sign-sub85.3%
fmm-def85.3%
distribute-rgt-neg-out85.3%
remove-double-neg85.3%
*-commutative85.3%
*-commutative85.3%
Simplified85.3%
Taylor expanded in c around inf 49.5%
*-commutative49.5%
*-commutative49.5%
Simplified49.5%
Final simplification56.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -2.4e-44) (not (<= z 6.5e+86))) (* b (- (* a i) (* z c))) (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2.4e-44) || !(z <= 6.5e+86)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-2.4d-44)) .or. (.not. (z <= 6.5d+86))) then
tmp = b * ((a * i) - (z * c))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2.4e-44) || !(z <= 6.5e+86)) {
tmp = b * ((a * i) - (z * c));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -2.4e-44) or not (z <= 6.5e+86): tmp = b * ((a * i) - (z * c)) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -2.4e-44) || !(z <= 6.5e+86)) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -2.4e-44) || ~((z <= 6.5e+86))) tmp = b * ((a * i) - (z * c)); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -2.4e-44], N[Not[LessEqual[z, 6.5e+86]], $MachinePrecision]], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.4 \cdot 10^{-44} \lor \neg \left(z \leq 6.5 \cdot 10^{+86}\right):\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if z < -2.40000000000000009e-44 or 6.49999999999999996e86 < z Initial program 67.3%
+-commutative67.3%
fma-define68.9%
*-commutative68.9%
*-commutative68.9%
cancel-sign-sub-inv68.9%
cancel-sign-sub68.9%
fmm-def68.9%
distribute-rgt-neg-out68.9%
remove-double-neg68.9%
*-commutative68.9%
*-commutative68.9%
Simplified68.9%
Taylor expanded in y around 0 61.4%
mul-1-neg61.4%
*-commutative61.4%
associate-*r*61.4%
*-commutative61.4%
distribute-rgt-neg-out61.4%
mul-1-neg61.4%
*-commutative61.4%
associate-*r*59.8%
*-commutative59.8%
associate-*r*60.5%
distribute-lft-in60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
*-commutative60.5%
*-commutative60.5%
Simplified60.5%
Taylor expanded in b around inf 56.1%
if -2.40000000000000009e-44 < z < 6.49999999999999996e86Initial program 85.2%
+-commutative85.2%
fma-define86.0%
*-commutative86.0%
*-commutative86.0%
cancel-sign-sub-inv86.0%
cancel-sign-sub86.0%
fmm-def86.0%
distribute-rgt-neg-out86.0%
remove-double-neg86.0%
*-commutative86.0%
*-commutative86.0%
Simplified86.0%
Taylor expanded in y around 0 67.7%
mul-1-neg67.7%
*-commutative67.7%
associate-*r*67.9%
*-commutative67.9%
distribute-rgt-neg-out67.9%
mul-1-neg67.9%
*-commutative67.9%
associate-*r*67.0%
*-commutative67.0%
associate-*r*67.1%
distribute-lft-in69.5%
+-commutative69.5%
mul-1-neg69.5%
unsub-neg69.5%
*-commutative69.5%
*-commutative69.5%
Simplified69.5%
Taylor expanded in c around 0 48.9%
sub-neg48.9%
associate-*r*48.9%
neg-mul-148.9%
associate-*r*48.9%
neg-mul-148.9%
distribute-rgt-neg-in48.9%
distribute-lft-in49.0%
sub-neg49.0%
distribute-lft-neg-in49.0%
distribute-rgt-neg-in49.0%
sub-neg49.0%
+-commutative49.0%
distribute-neg-in49.0%
remove-double-neg49.0%
sub-neg49.0%
*-commutative49.0%
Simplified49.0%
Final simplification52.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -2e+197) (not (<= z 5.8e+108))) (* b (* z (- c))) (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2e+197) || !(z <= 5.8e+108)) {
tmp = b * (z * -c);
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-2d+197)) .or. (.not. (z <= 5.8d+108))) then
tmp = b * (z * -c)
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -2e+197) || !(z <= 5.8e+108)) {
tmp = b * (z * -c);
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -2e+197) or not (z <= 5.8e+108): tmp = b * (z * -c) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -2e+197) || !(z <= 5.8e+108)) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -2e+197) || ~((z <= 5.8e+108))) tmp = b * (z * -c); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -2e+197], N[Not[LessEqual[z, 5.8e+108]], $MachinePrecision]], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2 \cdot 10^{+197} \lor \neg \left(z \leq 5.8 \cdot 10^{+108}\right):\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if z < -1.9999999999999999e197 or 5.80000000000000015e108 < z Initial program 61.9%
+-commutative61.9%
fma-define64.8%
*-commutative64.8%
*-commutative64.8%
cancel-sign-sub-inv64.8%
cancel-sign-sub64.8%
fmm-def64.8%
distribute-rgt-neg-out64.8%
remove-double-neg64.8%
*-commutative64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in c around inf 52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in t around 0 59.0%
associate-*r*59.0%
neg-mul-159.0%
*-commutative59.0%
Simplified59.0%
if -1.9999999999999999e197 < z < 5.80000000000000015e108Initial program 81.4%
+-commutative81.4%
fma-define82.0%
*-commutative82.0%
*-commutative82.0%
cancel-sign-sub-inv82.0%
cancel-sign-sub82.0%
fmm-def82.0%
distribute-rgt-neg-out82.0%
remove-double-neg82.0%
*-commutative82.0%
*-commutative82.0%
Simplified82.0%
Taylor expanded in y around 0 66.1%
mul-1-neg66.1%
*-commutative66.1%
associate-*r*66.8%
*-commutative66.8%
distribute-rgt-neg-out66.8%
mul-1-neg66.8%
*-commutative66.8%
associate-*r*65.6%
*-commutative65.6%
associate-*r*65.7%
distribute-lft-in67.3%
+-commutative67.3%
mul-1-neg67.3%
unsub-neg67.3%
*-commutative67.3%
*-commutative67.3%
Simplified67.3%
Taylor expanded in c around 0 46.1%
sub-neg46.1%
associate-*r*46.1%
neg-mul-146.1%
associate-*r*46.1%
neg-mul-146.1%
distribute-rgt-neg-in46.1%
distribute-lft-in46.1%
sub-neg46.1%
distribute-lft-neg-in46.1%
distribute-rgt-neg-in46.1%
sub-neg46.1%
+-commutative46.1%
distribute-neg-in46.1%
remove-double-neg46.1%
sub-neg46.1%
*-commutative46.1%
Simplified46.1%
Final simplification49.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -6.1e+22) (* i (* a b)) (if (<= a 520.0) (* c (* t j)) (* a (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.1e+22) {
tmp = i * (a * b);
} else if (a <= 520.0) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-6.1d+22)) then
tmp = i * (a * b)
else if (a <= 520.0d0) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.1e+22) {
tmp = i * (a * b);
} else if (a <= 520.0) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -6.1e+22: tmp = i * (a * b) elif a <= 520.0: tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -6.1e+22) tmp = Float64(i * Float64(a * b)); elseif (a <= 520.0) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -6.1e+22) tmp = i * (a * b); elseif (a <= 520.0) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.1e+22], N[(i * N[(a * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 520.0], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.1 \cdot 10^{+22}:\\
\;\;\;\;i \cdot \left(a \cdot b\right)\\
\mathbf{elif}\;a \leq 520:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if a < -6.0999999999999998e22Initial program 69.1%
+-commutative69.1%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
cancel-sign-sub-inv73.4%
cancel-sign-sub73.4%
fmm-def73.4%
distribute-rgt-neg-out73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in i around inf 45.0%
distribute-lft-out--45.0%
*-commutative45.0%
Simplified45.0%
Taylor expanded in y around 0 38.1%
if -6.0999999999999998e22 < a < 520Initial program 84.7%
+-commutative84.7%
fma-define84.7%
*-commutative84.7%
*-commutative84.7%
cancel-sign-sub-inv84.7%
cancel-sign-sub84.7%
fmm-def84.7%
distribute-rgt-neg-out84.7%
remove-double-neg84.7%
*-commutative84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in c around inf 49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in t around inf 30.6%
*-commutative30.6%
Simplified30.6%
if 520 < a Initial program 65.1%
+-commutative65.1%
fma-define65.1%
*-commutative65.1%
*-commutative65.1%
cancel-sign-sub-inv65.1%
cancel-sign-sub65.1%
fmm-def65.1%
distribute-rgt-neg-out65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in i around inf 52.0%
distribute-lft-out--52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in y around 0 42.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= a -6.6e+22) (* b (* a i)) (if (<= a 0.28) (* c (* t j)) (* a (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.6e+22) {
tmp = b * (a * i);
} else if (a <= 0.28) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (a <= (-6.6d+22)) then
tmp = b * (a * i)
else if (a <= 0.28d0) then
tmp = c * (t * j)
else
tmp = a * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -6.6e+22) {
tmp = b * (a * i);
} else if (a <= 0.28) {
tmp = c * (t * j);
} else {
tmp = a * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -6.6e+22: tmp = b * (a * i) elif a <= 0.28: tmp = c * (t * j) else: tmp = a * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -6.6e+22) tmp = Float64(b * Float64(a * i)); elseif (a <= 0.28) tmp = Float64(c * Float64(t * j)); else tmp = Float64(a * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -6.6e+22) tmp = b * (a * i); elseif (a <= 0.28) tmp = c * (t * j); else tmp = a * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -6.6e+22], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.28], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -6.6 \cdot 10^{+22}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{elif}\;a \leq 0.28:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if a < -6.5999999999999996e22Initial program 69.1%
+-commutative69.1%
fma-define73.4%
*-commutative73.4%
*-commutative73.4%
cancel-sign-sub-inv73.4%
cancel-sign-sub73.4%
fmm-def73.4%
distribute-rgt-neg-out73.4%
remove-double-neg73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Taylor expanded in y around 0 74.7%
mul-1-neg74.7%
*-commutative74.7%
associate-*r*73.4%
*-commutative73.4%
distribute-rgt-neg-out73.4%
mul-1-neg73.4%
*-commutative73.4%
associate-*r*72.0%
*-commutative72.0%
associate-*r*73.4%
distribute-lft-in74.8%
+-commutative74.8%
mul-1-neg74.8%
unsub-neg74.8%
*-commutative74.8%
*-commutative74.8%
Simplified74.8%
Taylor expanded in c around 0 56.1%
sub-neg56.1%
associate-*r*56.1%
neg-mul-156.1%
associate-*r*56.1%
neg-mul-156.1%
distribute-rgt-neg-in56.1%
distribute-lft-in57.5%
sub-neg57.5%
distribute-lft-neg-in57.5%
distribute-rgt-neg-in57.5%
sub-neg57.5%
+-commutative57.5%
distribute-neg-in57.5%
remove-double-neg57.5%
sub-neg57.5%
*-commutative57.5%
Simplified57.5%
Taylor expanded in i around inf 33.2%
*-commutative33.2%
*-commutative33.2%
*-commutative33.2%
associate-*r*34.6%
Simplified34.6%
if -6.5999999999999996e22 < a < 0.28000000000000003Initial program 84.7%
+-commutative84.7%
fma-define84.7%
*-commutative84.7%
*-commutative84.7%
cancel-sign-sub-inv84.7%
cancel-sign-sub84.7%
fmm-def84.7%
distribute-rgt-neg-out84.7%
remove-double-neg84.7%
*-commutative84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in c around inf 49.3%
*-commutative49.3%
*-commutative49.3%
Simplified49.3%
Taylor expanded in t around inf 30.6%
*-commutative30.6%
Simplified30.6%
if 0.28000000000000003 < a Initial program 65.1%
+-commutative65.1%
fma-define65.1%
*-commutative65.1%
*-commutative65.1%
cancel-sign-sub-inv65.1%
cancel-sign-sub65.1%
fmm-def65.1%
distribute-rgt-neg-out65.1%
remove-double-neg65.1%
*-commutative65.1%
*-commutative65.1%
Simplified65.1%
Taylor expanded in i around inf 52.0%
distribute-lft-out--52.0%
*-commutative52.0%
Simplified52.0%
Taylor expanded in y around 0 42.7%
Final simplification34.3%
(FPCore (x y z t a b c i j) :precision binary64 (* b (* a i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = b * (a * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return b * (a * i);
}
def code(x, y, z, t, a, b, c, i, j): return b * (a * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(b * Float64(a * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = b * (a * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
b \cdot \left(a \cdot i\right)
\end{array}
Initial program 76.2%
+-commutative76.2%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
fmm-def77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in y around 0 64.5%
mul-1-neg64.5%
*-commutative64.5%
associate-*r*64.7%
*-commutative64.7%
distribute-rgt-neg-out64.7%
mul-1-neg64.7%
*-commutative64.7%
associate-*r*63.4%
*-commutative63.4%
associate-*r*63.8%
distribute-lft-in65.0%
+-commutative65.0%
mul-1-neg65.0%
unsub-neg65.0%
*-commutative65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in c around 0 39.5%
sub-neg39.5%
associate-*r*39.5%
neg-mul-139.5%
associate-*r*39.5%
neg-mul-139.5%
distribute-rgt-neg-in39.5%
distribute-lft-in39.9%
sub-neg39.9%
distribute-lft-neg-in39.9%
distribute-rgt-neg-in39.9%
sub-neg39.9%
+-commutative39.9%
distribute-neg-in39.9%
remove-double-neg39.9%
sub-neg39.9%
*-commutative39.9%
Simplified39.9%
Taylor expanded in i around inf 22.1%
*-commutative22.1%
*-commutative22.1%
*-commutative22.1%
associate-*r*22.8%
Simplified22.8%
Final simplification22.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 76.2%
+-commutative76.2%
fma-define77.4%
*-commutative77.4%
*-commutative77.4%
cancel-sign-sub-inv77.4%
cancel-sign-sub77.4%
fmm-def77.4%
distribute-rgt-neg-out77.4%
remove-double-neg77.4%
*-commutative77.4%
*-commutative77.4%
Simplified77.4%
Taylor expanded in i around inf 38.0%
distribute-lft-out--38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in y around 0 22.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024157
(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)))))