
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 24 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
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) - (t * i)))) + (j * ((c * a) - (y * 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 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * 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 ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
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(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); 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[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* a c) (* y i)))
(- (* x (- (* t a) (* y z))) (* b (- (* t i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* z (- (* x y) (* b c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = z * ((x * y) - (b * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = z * ((x * y) - (b * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - Float64(b * Float64(Float64(t * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = z * ((x * y) - (b * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - \left(x \cdot \left(t \cdot a - y \cdot z\right) - b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t_1 \leq \infty:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) Initial program 0.0%
cancel-sign-sub0.0%
cancel-sign-sub-inv0.0%
*-commutative0.0%
remove-double-neg0.0%
*-commutative0.0%
Simplified0.0%
Taylor expanded in z around inf 49.9%
Final simplification82.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -1.35e-35)
(+ (- t_1 (* j (* y i))) (* i (* t b)))
(if (<= c 1.02e+157)
(+
(+ (* x (- (* y z) (* t a))) (* t (* b i)))
(* j (- (* a c) (* y i))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e-35) {
tmp = (t_1 - (j * (y * i))) + (i * (t * b));
} else if (c <= 1.02e+157) {
tmp = ((x * ((y * z) - (t * a))) + (t * (b * i))) + (j * ((a * c) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (c <= (-1.35d-35)) then
tmp = (t_1 - (j * (y * i))) + (i * (t * b))
else if (c <= 1.02d+157) then
tmp = ((x * ((y * z) - (t * a))) + (t * (b * i))) + (j * ((a * c) - (y * i)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.35e-35) {
tmp = (t_1 - (j * (y * i))) + (i * (t * b));
} else if (c <= 1.02e+157) {
tmp = ((x * ((y * z) - (t * a))) + (t * (b * i))) + (j * ((a * c) - (y * i)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.35e-35: tmp = (t_1 - (j * (y * i))) + (i * (t * b)) elif c <= 1.02e+157: tmp = ((x * ((y * z) - (t * a))) + (t * (b * i))) + (j * ((a * c) - (y * i))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.35e-35) tmp = Float64(Float64(t_1 - Float64(j * Float64(y * i))) + Float64(i * Float64(t * b))); elseif (c <= 1.02e+157) tmp = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(t * Float64(b * i))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.35e-35) tmp = (t_1 - (j * (y * i))) + (i * (t * b)); elseif (c <= 1.02e+157) tmp = ((x * ((y * z) - (t * a))) + (t * (b * i))) + (j * ((a * c) - (y * i))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.35e-35], N[(N[(t$95$1 - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.02e+157], N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.35 \cdot 10^{-35}:\\
\;\;\;\;\left(t_1 - j \cdot \left(y \cdot i\right)\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;c \leq 1.02 \cdot 10^{+157}:\\
\;\;\;\;\left(x \cdot \left(y \cdot z - t \cdot a\right) + t \cdot \left(b \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.3499999999999999e-35Initial program 65.2%
cancel-sign-sub65.2%
cancel-sign-sub-inv65.2%
*-commutative65.2%
remove-double-neg65.2%
*-commutative65.2%
Simplified65.2%
Taylor expanded in c around 0 75.8%
Taylor expanded in x around 0 72.1%
+-commutative72.1%
mul-1-neg72.1%
*-commutative72.1%
associate-*r*77.4%
unsub-neg77.4%
sub-neg77.4%
*-commutative77.4%
sub-neg77.4%
associate-*r*72.1%
*-commutative72.1%
associate-*r*78.6%
Simplified78.6%
if -1.3499999999999999e-35 < c < 1.02000000000000003e157Initial program 79.4%
cancel-sign-sub79.4%
cancel-sign-sub-inv79.4%
*-commutative79.4%
remove-double-neg79.4%
*-commutative79.4%
Simplified79.4%
Taylor expanded in z around 0 76.8%
associate-*r*76.8%
neg-mul-176.8%
*-commutative76.8%
associate-*r*75.4%
neg-mul-175.4%
associate-*r*75.4%
mul-1-neg75.4%
Simplified75.4%
if 1.02000000000000003e157 < c Initial program 49.1%
sub-neg49.1%
+-commutative49.1%
associate-+l+49.1%
distribute-rgt-neg-in49.1%
+-commutative49.1%
fma-def49.1%
sub-neg49.1%
+-commutative49.1%
distribute-neg-in49.1%
unsub-neg49.1%
remove-double-neg49.1%
*-commutative49.1%
Simplified51.9%
Taylor expanded in c around inf 69.3%
distribute-rgt-in66.4%
*-commutative66.4%
mul-1-neg66.4%
cancel-sign-sub-inv66.4%
*-commutative66.4%
distribute-lft-out--69.3%
Simplified69.3%
Final simplification75.5%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -3.2e+146)
(* a (- (* c j) (* x t)))
(if (<= a 1.46e+23)
(+ (- (* c (- (* a j) (* z b))) (* j (* y i))) (* i (* t b)))
(+ (* j (- (* a 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 (a <= -3.2e+146) {
tmp = a * ((c * j) - (x * t));
} else if (a <= 1.46e+23) {
tmp = ((c * ((a * j) - (z * b))) - (j * (y * i))) + (i * (t * b));
} else {
tmp = (j * ((a * 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 (a <= (-3.2d+146)) then
tmp = a * ((c * j) - (x * t))
else if (a <= 1.46d+23) then
tmp = ((c * ((a * j) - (z * b))) - (j * (y * i))) + (i * (t * b))
else
tmp = (j * ((a * 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 (a <= -3.2e+146) {
tmp = a * ((c * j) - (x * t));
} else if (a <= 1.46e+23) {
tmp = ((c * ((a * j) - (z * b))) - (j * (y * i))) + (i * (t * b));
} else {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -3.2e+146: tmp = a * ((c * j) - (x * t)) elif a <= 1.46e+23: tmp = ((c * ((a * j) - (z * b))) - (j * (y * i))) + (i * (t * b)) else: tmp = (j * ((a * 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 (a <= -3.2e+146) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (a <= 1.46e+23) tmp = Float64(Float64(Float64(c * Float64(Float64(a * j) - Float64(z * b))) - Float64(j * Float64(y * i))) + Float64(i * Float64(t * b))); else tmp = Float64(Float64(j * Float64(Float64(a * 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 (a <= -3.2e+146) tmp = a * ((c * j) - (x * t)); elseif (a <= 1.46e+23) tmp = ((c * ((a * j) - (z * b))) - (j * (y * i))) + (i * (t * b)); else tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -3.2e+146], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.46e+23], N[(N[(N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * 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}\;a \leq -3.2 \cdot 10^{+146}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;a \leq 1.46 \cdot 10^{+23}:\\
\;\;\;\;\left(c \cdot \left(a \cdot j - z \cdot b\right) - j \cdot \left(y \cdot i\right)\right) + i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if a < -3.2e146Initial program 60.1%
sub-neg60.1%
+-commutative60.1%
associate-+l+60.1%
distribute-rgt-neg-in60.1%
+-commutative60.1%
fma-def63.4%
sub-neg63.4%
+-commutative63.4%
distribute-neg-in63.4%
unsub-neg63.4%
remove-double-neg63.4%
*-commutative63.4%
Simplified70.1%
Taylor expanded in a around inf 86.9%
+-commutative86.9%
mul-1-neg86.9%
unsub-neg86.9%
Simplified86.9%
if -3.2e146 < a < 1.45999999999999996e23Initial program 77.5%
cancel-sign-sub77.5%
cancel-sign-sub-inv77.5%
*-commutative77.5%
remove-double-neg77.5%
*-commutative77.5%
Simplified77.5%
Taylor expanded in c around 0 82.1%
Taylor expanded in x around 0 68.6%
+-commutative68.6%
mul-1-neg68.6%
*-commutative68.6%
associate-*r*69.7%
unsub-neg69.7%
sub-neg69.7%
*-commutative69.7%
sub-neg69.7%
associate-*r*68.6%
*-commutative68.6%
associate-*r*69.7%
Simplified69.7%
if 1.45999999999999996e23 < a Initial program 59.6%
+-commutative59.6%
fma-def61.3%
*-commutative61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in b around 0 69.2%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t))))
(t_2 (* y (- (* x z) (* i j))))
(t_3 (* b (- (* t i) (* z c)))))
(if (<= b -5600000000000.0)
t_3
(if (<= b -1.68e-192)
t_2
(if (<= b -3.5e-228)
t_1
(if (<= b -3e-301)
(* i (- (* t b) (* y j)))
(if (<= b 6.8e-156)
t_1
(if (<= b 1e-25)
t_2
(if (<= b 1e+89) (* c (- (* a j) (* z b))) 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 = a * ((c * j) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5600000000000.0) {
tmp = t_3;
} else if (b <= -1.68e-192) {
tmp = t_2;
} else if (b <= -3.5e-228) {
tmp = t_1;
} else if (b <= -3e-301) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 6.8e-156) {
tmp = t_1;
} else if (b <= 1e-25) {
tmp = t_2;
} else if (b <= 1e+89) {
tmp = c * ((a * j) - (z * b));
} 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 = a * ((c * j) - (x * t))
t_2 = y * ((x * z) - (i * j))
t_3 = b * ((t * i) - (z * c))
if (b <= (-5600000000000.0d0)) then
tmp = t_3
else if (b <= (-1.68d-192)) then
tmp = t_2
else if (b <= (-3.5d-228)) then
tmp = t_1
else if (b <= (-3d-301)) then
tmp = i * ((t * b) - (y * j))
else if (b <= 6.8d-156) then
tmp = t_1
else if (b <= 1d-25) then
tmp = t_2
else if (b <= 1d+89) then
tmp = c * ((a * j) - (z * b))
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 = a * ((c * j) - (x * t));
double t_2 = y * ((x * z) - (i * j));
double t_3 = b * ((t * i) - (z * c));
double tmp;
if (b <= -5600000000000.0) {
tmp = t_3;
} else if (b <= -1.68e-192) {
tmp = t_2;
} else if (b <= -3.5e-228) {
tmp = t_1;
} else if (b <= -3e-301) {
tmp = i * ((t * b) - (y * j));
} else if (b <= 6.8e-156) {
tmp = t_1;
} else if (b <= 1e-25) {
tmp = t_2;
} else if (b <= 1e+89) {
tmp = c * ((a * j) - (z * b));
} else {
tmp = t_3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) t_2 = y * ((x * z) - (i * j)) t_3 = b * ((t * i) - (z * c)) tmp = 0 if b <= -5600000000000.0: tmp = t_3 elif b <= -1.68e-192: tmp = t_2 elif b <= -3.5e-228: tmp = t_1 elif b <= -3e-301: tmp = i * ((t * b) - (y * j)) elif b <= 6.8e-156: tmp = t_1 elif b <= 1e-25: tmp = t_2 elif b <= 1e+89: tmp = c * ((a * j) - (z * b)) else: tmp = t_3 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) t_3 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -5600000000000.0) tmp = t_3; elseif (b <= -1.68e-192) tmp = t_2; elseif (b <= -3.5e-228) tmp = t_1; elseif (b <= -3e-301) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (b <= 6.8e-156) tmp = t_1; elseif (b <= 1e-25) tmp = t_2; elseif (b <= 1e+89) tmp = Float64(c * Float64(Float64(a * j) - Float64(z * b))); else tmp = t_3; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); t_2 = y * ((x * z) - (i * j)); t_3 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -5600000000000.0) tmp = t_3; elseif (b <= -1.68e-192) tmp = t_2; elseif (b <= -3.5e-228) tmp = t_1; elseif (b <= -3e-301) tmp = i * ((t * b) - (y * j)); elseif (b <= 6.8e-156) tmp = t_1; elseif (b <= 1e-25) tmp = t_2; elseif (b <= 1e+89) tmp = c * ((a * j) - (z * b)); else tmp = t_3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -5600000000000.0], t$95$3, If[LessEqual[b, -1.68e-192], t$95$2, If[LessEqual[b, -3.5e-228], t$95$1, If[LessEqual[b, -3e-301], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-156], t$95$1, If[LessEqual[b, 1e-25], t$95$2, If[LessEqual[b, 1e+89], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
t_3 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -5600000000000:\\
\;\;\;\;t_3\\
\mathbf{elif}\;b \leq -1.68 \cdot 10^{-192}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq -3.5 \cdot 10^{-228}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq -3 \cdot 10^{-301}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-156}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;b \leq 10^{-25}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;b \leq 10^{+89}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t_3\\
\end{array}
\end{array}
if b < -5.6e12 or 9.99999999999999995e88 < b Initial program 71.6%
sub-neg71.6%
+-commutative71.6%
associate-+l+71.6%
distribute-rgt-neg-in71.6%
+-commutative71.6%
fma-def74.3%
sub-neg74.3%
+-commutative74.3%
distribute-neg-in74.3%
unsub-neg74.3%
remove-double-neg74.3%
*-commutative74.3%
Simplified76.2%
Taylor expanded in b around inf 68.0%
if -5.6e12 < b < -1.6799999999999999e-192 or 6.79999999999999981e-156 < b < 1.00000000000000004e-25Initial program 70.2%
sub-neg70.2%
+-commutative70.2%
associate-+l+70.2%
distribute-rgt-neg-in70.2%
+-commutative70.2%
fma-def70.2%
sub-neg70.2%
+-commutative70.2%
distribute-neg-in70.2%
unsub-neg70.2%
remove-double-neg70.2%
*-commutative70.2%
Simplified71.6%
Taylor expanded in y around inf 57.4%
*-commutative57.4%
mul-1-neg57.4%
unsub-neg57.4%
Simplified57.4%
if -1.6799999999999999e-192 < b < -3.49999999999999975e-228 or -2.99999999999999999e-301 < b < 6.79999999999999981e-156Initial program 64.6%
sub-neg64.6%
+-commutative64.6%
associate-+l+64.6%
distribute-rgt-neg-in64.6%
+-commutative64.6%
fma-def64.6%
sub-neg64.6%
+-commutative64.6%
distribute-neg-in64.6%
unsub-neg64.6%
remove-double-neg64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in a around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
Simplified65.3%
if -3.49999999999999975e-228 < b < -2.99999999999999999e-301Initial program 58.5%
cancel-sign-sub58.5%
cancel-sign-sub-inv58.5%
*-commutative58.5%
remove-double-neg58.5%
*-commutative58.5%
Simplified58.5%
add-cube-cbrt58.5%
*-commutative58.5%
*-commutative58.5%
Applied egg-rr58.5%
Taylor expanded in i around inf 83.9%
mul-1-neg83.9%
unsub-neg83.9%
Simplified83.9%
if 1.00000000000000004e-25 < b < 9.99999999999999995e88Initial program 85.6%
sub-neg85.6%
+-commutative85.6%
associate-+l+85.6%
distribute-rgt-neg-in85.6%
+-commutative85.6%
fma-def85.6%
sub-neg85.6%
+-commutative85.6%
distribute-neg-in85.6%
unsub-neg85.6%
remove-double-neg85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in c around inf 61.3%
distribute-rgt-in61.3%
*-commutative61.3%
mul-1-neg61.3%
cancel-sign-sub-inv61.3%
*-commutative61.3%
distribute-lft-out--61.3%
Simplified61.3%
Final simplification64.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (+ (* i (* t b)) (* j (- (* a c) (* y i)))))
(t_2 (* z (- (* x y) (* b c)))))
(if (<= z -0.95)
t_2
(if (<= z 2.9e-257)
t_1
(if (<= z 1.55e-106)
(* i (- (* t b) (* y j)))
(if (<= z 4100000000.0)
t_1
(if (<= z 1.7e+105) (* x (- (* y z) (* t a))) 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 = (i * (t * b)) + (j * ((a * c) - (y * i)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -0.95) {
tmp = t_2;
} else if (z <= 2.9e-257) {
tmp = t_1;
} else if (z <= 1.55e-106) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 4100000000.0) {
tmp = t_1;
} else if (z <= 1.7e+105) {
tmp = x * ((y * z) - (t * a));
} 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 = (i * (t * b)) + (j * ((a * c) - (y * i)))
t_2 = z * ((x * y) - (b * c))
if (z <= (-0.95d0)) then
tmp = t_2
else if (z <= 2.9d-257) then
tmp = t_1
else if (z <= 1.55d-106) then
tmp = i * ((t * b) - (y * j))
else if (z <= 4100000000.0d0) then
tmp = t_1
else if (z <= 1.7d+105) then
tmp = x * ((y * z) - (t * a))
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 = (i * (t * b)) + (j * ((a * c) - (y * i)));
double t_2 = z * ((x * y) - (b * c));
double tmp;
if (z <= -0.95) {
tmp = t_2;
} else if (z <= 2.9e-257) {
tmp = t_1;
} else if (z <= 1.55e-106) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 4100000000.0) {
tmp = t_1;
} else if (z <= 1.7e+105) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (i * (t * b)) + (j * ((a * c) - (y * i))) t_2 = z * ((x * y) - (b * c)) tmp = 0 if z <= -0.95: tmp = t_2 elif z <= 2.9e-257: tmp = t_1 elif z <= 1.55e-106: tmp = i * ((t * b) - (y * j)) elif z <= 4100000000.0: tmp = t_1 elif z <= 1.7e+105: tmp = x * ((y * z) - (t * a)) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(i * Float64(t * b)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) t_2 = Float64(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -0.95) tmp = t_2; elseif (z <= 2.9e-257) tmp = t_1; elseif (z <= 1.55e-106) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 4100000000.0) tmp = t_1; elseif (z <= 1.7e+105) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (i * (t * b)) + (j * ((a * c) - (y * i))); t_2 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -0.95) tmp = t_2; elseif (z <= 2.9e-257) tmp = t_1; elseif (z <= 1.55e-106) tmp = i * ((t * b) - (y * j)); elseif (z <= 4100000000.0) tmp = t_1; elseif (z <= 1.7e+105) tmp = x * ((y * z) - (t * a)); 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[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.95], t$95$2, If[LessEqual[z, 2.9e-257], t$95$1, If[LessEqual[z, 1.55e-106], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4100000000.0], t$95$1, If[LessEqual[z, 1.7e+105], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{if}\;z \leq -0.95:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-257}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{-106}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 4100000000:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+105}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
if z < -0.94999999999999996 or 1.7e105 < z Initial program 64.1%
cancel-sign-sub64.1%
cancel-sign-sub-inv64.1%
*-commutative64.1%
remove-double-neg64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in z around inf 72.3%
if -0.94999999999999996 < z < 2.9000000000000002e-257 or 1.54999999999999993e-106 < z < 4.1e9Initial program 85.6%
cancel-sign-sub85.6%
cancel-sign-sub-inv85.6%
*-commutative85.6%
remove-double-neg85.6%
*-commutative85.6%
Simplified85.6%
Taylor expanded in i around inf 71.1%
if 2.9000000000000002e-257 < z < 1.54999999999999993e-106Initial program 60.5%
cancel-sign-sub60.5%
cancel-sign-sub-inv60.5%
*-commutative60.5%
remove-double-neg60.5%
*-commutative60.5%
Simplified60.5%
add-cube-cbrt60.2%
*-commutative60.2%
*-commutative60.2%
Applied egg-rr60.2%
Taylor expanded in i around inf 64.8%
mul-1-neg64.8%
unsub-neg64.8%
Simplified64.8%
if 4.1e9 < z < 1.7e105Initial program 61.4%
sub-neg61.4%
+-commutative61.4%
associate-+l+61.4%
distribute-rgt-neg-in61.4%
+-commutative61.4%
fma-def61.4%
sub-neg61.4%
+-commutative61.4%
distribute-neg-in61.4%
unsub-neg61.4%
remove-double-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in x around inf 69.9%
Final simplification70.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -0.85)
t_1
(if (<= z 2.9e-257)
(+ (* i (* t b)) (* j (- (* a c) (* y i))))
(if (<= z 5e-103)
(* i (- (* t b) (* y j)))
(if (<= z 4250000000.0)
(- (* j (* a c)) (* x (- (* t a) (* y z))))
(if (<= z 6.2e+104) (* 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -0.85) {
tmp = t_1;
} else if (z <= 2.9e-257) {
tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
} else if (z <= 5e-103) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 4250000000.0) {
tmp = (j * (a * c)) - (x * ((t * a) - (y * z)));
} else if (z <= 6.2e+104) {
tmp = 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 = z * ((x * y) - (b * c))
if (z <= (-0.85d0)) then
tmp = t_1
else if (z <= 2.9d-257) then
tmp = (i * (t * b)) + (j * ((a * c) - (y * i)))
else if (z <= 5d-103) then
tmp = i * ((t * b) - (y * j))
else if (z <= 4250000000.0d0) then
tmp = (j * (a * c)) - (x * ((t * a) - (y * z)))
else if (z <= 6.2d+104) then
tmp = 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 = z * ((x * y) - (b * c));
double tmp;
if (z <= -0.85) {
tmp = t_1;
} else if (z <= 2.9e-257) {
tmp = (i * (t * b)) + (j * ((a * c) - (y * i)));
} else if (z <= 5e-103) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 4250000000.0) {
tmp = (j * (a * c)) - (x * ((t * a) - (y * z)));
} else if (z <= 6.2e+104) {
tmp = x * ((y * z) - (t * a));
} 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 <= -0.85: tmp = t_1 elif z <= 2.9e-257: tmp = (i * (t * b)) + (j * ((a * c) - (y * i))) elif z <= 5e-103: tmp = i * ((t * b) - (y * j)) elif z <= 4250000000.0: tmp = (j * (a * c)) - (x * ((t * a) - (y * z))) elif z <= 6.2e+104: tmp = 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(z * Float64(Float64(x * y) - Float64(b * c))) tmp = 0.0 if (z <= -0.85) tmp = t_1; elseif (z <= 2.9e-257) tmp = Float64(Float64(i * Float64(t * b)) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (z <= 5e-103) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 4250000000.0) tmp = Float64(Float64(j * Float64(a * c)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); elseif (z <= 6.2e+104) tmp = 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 = z * ((x * y) - (b * c)); tmp = 0.0; if (z <= -0.85) tmp = t_1; elseif (z <= 2.9e-257) tmp = (i * (t * b)) + (j * ((a * c) - (y * i))); elseif (z <= 5e-103) tmp = i * ((t * b) - (y * j)); elseif (z <= 4250000000.0) tmp = (j * (a * c)) - (x * ((t * a) - (y * z))); elseif (z <= 6.2e+104) tmp = 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[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -0.85], t$95$1, If[LessEqual[z, 2.9e-257], N[(N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-103], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4250000000.0], N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+104], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $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 -0.85:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{-257}:\\
\;\;\;\;i \cdot \left(t \cdot b\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-103}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 4250000000:\\
\;\;\;\;j \cdot \left(a \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+104}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -0.849999999999999978 or 6.20000000000000033e104 < z Initial program 64.1%
cancel-sign-sub64.1%
cancel-sign-sub-inv64.1%
*-commutative64.1%
remove-double-neg64.1%
*-commutative64.1%
Simplified64.1%
Taylor expanded in z around inf 72.3%
if -0.849999999999999978 < z < 2.9000000000000002e-257Initial program 84.9%
cancel-sign-sub84.9%
cancel-sign-sub-inv84.9%
*-commutative84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in i around inf 70.7%
if 2.9000000000000002e-257 < z < 4.99999999999999966e-103Initial program 60.5%
cancel-sign-sub60.5%
cancel-sign-sub-inv60.5%
*-commutative60.5%
remove-double-neg60.5%
*-commutative60.5%
Simplified60.5%
add-cube-cbrt60.2%
*-commutative60.2%
*-commutative60.2%
Applied egg-rr60.2%
Taylor expanded in i around inf 64.8%
mul-1-neg64.8%
unsub-neg64.8%
Simplified64.8%
if 4.99999999999999966e-103 < z < 4.25e9Initial program 88.6%
+-commutative88.6%
fma-def88.6%
*-commutative88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in b around 0 82.8%
Taylor expanded in c around inf 77.2%
if 4.25e9 < z < 6.20000000000000033e104Initial program 61.4%
sub-neg61.4%
+-commutative61.4%
associate-+l+61.4%
distribute-rgt-neg-in61.4%
+-commutative61.4%
fma-def61.4%
sub-neg61.4%
+-commutative61.4%
distribute-neg-in61.4%
unsub-neg61.4%
remove-double-neg61.4%
*-commutative61.4%
Simplified61.4%
Taylor expanded in x around inf 69.9%
Final simplification70.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -4.5e+21) (not (<= b 5.5e+66))) (* b (- (* t i) (* z c))) (+ (* j (- (* a 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 <= -4.5e+21) || !(b <= 5.5e+66)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * 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 <= (-4.5d+21)) .or. (.not. (b <= 5.5d+66))) then
tmp = b * ((t * i) - (z * c))
else
tmp = (j * ((a * 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 <= -4.5e+21) || !(b <= 5.5e+66)) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = (j * ((a * 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 <= -4.5e+21) or not (b <= 5.5e+66): tmp = b * ((t * i) - (z * c)) else: tmp = (j * ((a * 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 <= -4.5e+21) || !(b <= 5.5e+66)) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(Float64(j * Float64(Float64(a * 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 <= -4.5e+21) || ~((b <= 5.5e+66))) tmp = b * ((t * i) - (z * c)); else tmp = (j * ((a * 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, -4.5e+21], N[Not[LessEqual[b, 5.5e+66]], $MachinePrecision]], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * 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 -4.5 \cdot 10^{+21} \lor \neg \left(b \leq 5.5 \cdot 10^{+66}\right):\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\end{array}
\end{array}
if b < -4.5e21 or 5.5e66 < b Initial program 70.9%
sub-neg70.9%
+-commutative70.9%
associate-+l+70.9%
distribute-rgt-neg-in70.9%
+-commutative70.9%
fma-def73.7%
sub-neg73.7%
+-commutative73.7%
distribute-neg-in73.7%
unsub-neg73.7%
remove-double-neg73.7%
*-commutative73.7%
Simplified75.5%
Taylor expanded in b around inf 69.2%
if -4.5e21 < b < 5.5e66Initial program 71.3%
+-commutative71.3%
fma-def72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 67.6%
Final simplification68.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= a -5.5e+226)
(* x (* a (- t)))
(if (<= a -4.7e+129)
(* a (* c j))
(if (<= a -380000000.0)
(* i (* t b))
(if (<= a -8e-286)
t_1
(if (<= a 1.05e-305)
(* t (* b i))
(if (<= a 6.8e+22)
t_1
(if (<= a 2.7e+147)
(* z (* x y))
(if (<= a 1.55e+156) t_1 (* t (- (* x a)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (a <= -5.5e+226) {
tmp = x * (a * -t);
} else if (a <= -4.7e+129) {
tmp = a * (c * j);
} else if (a <= -380000000.0) {
tmp = i * (t * b);
} else if (a <= -8e-286) {
tmp = t_1;
} else if (a <= 1.05e-305) {
tmp = t * (b * i);
} else if (a <= 6.8e+22) {
tmp = t_1;
} else if (a <= 2.7e+147) {
tmp = z * (x * y);
} else if (a <= 1.55e+156) {
tmp = t_1;
} else {
tmp = t * -(x * 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) :: t_1
real(8) :: tmp
t_1 = i * (y * -j)
if (a <= (-5.5d+226)) then
tmp = x * (a * -t)
else if (a <= (-4.7d+129)) then
tmp = a * (c * j)
else if (a <= (-380000000.0d0)) then
tmp = i * (t * b)
else if (a <= (-8d-286)) then
tmp = t_1
else if (a <= 1.05d-305) then
tmp = t * (b * i)
else if (a <= 6.8d+22) then
tmp = t_1
else if (a <= 2.7d+147) then
tmp = z * (x * y)
else if (a <= 1.55d+156) then
tmp = t_1
else
tmp = t * -(x * 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 t_1 = i * (y * -j);
double tmp;
if (a <= -5.5e+226) {
tmp = x * (a * -t);
} else if (a <= -4.7e+129) {
tmp = a * (c * j);
} else if (a <= -380000000.0) {
tmp = i * (t * b);
} else if (a <= -8e-286) {
tmp = t_1;
} else if (a <= 1.05e-305) {
tmp = t * (b * i);
} else if (a <= 6.8e+22) {
tmp = t_1;
} else if (a <= 2.7e+147) {
tmp = z * (x * y);
} else if (a <= 1.55e+156) {
tmp = t_1;
} else {
tmp = t * -(x * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if a <= -5.5e+226: tmp = x * (a * -t) elif a <= -4.7e+129: tmp = a * (c * j) elif a <= -380000000.0: tmp = i * (t * b) elif a <= -8e-286: tmp = t_1 elif a <= 1.05e-305: tmp = t * (b * i) elif a <= 6.8e+22: tmp = t_1 elif a <= 2.7e+147: tmp = z * (x * y) elif a <= 1.55e+156: tmp = t_1 else: tmp = t * -(x * a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (a <= -5.5e+226) tmp = Float64(x * Float64(a * Float64(-t))); elseif (a <= -4.7e+129) tmp = Float64(a * Float64(c * j)); elseif (a <= -380000000.0) tmp = Float64(i * Float64(t * b)); elseif (a <= -8e-286) tmp = t_1; elseif (a <= 1.05e-305) tmp = Float64(t * Float64(b * i)); elseif (a <= 6.8e+22) tmp = t_1; elseif (a <= 2.7e+147) tmp = Float64(z * Float64(x * y)); elseif (a <= 1.55e+156) tmp = t_1; else tmp = Float64(t * Float64(-Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (a <= -5.5e+226) tmp = x * (a * -t); elseif (a <= -4.7e+129) tmp = a * (c * j); elseif (a <= -380000000.0) tmp = i * (t * b); elseif (a <= -8e-286) tmp = t_1; elseif (a <= 1.05e-305) tmp = t * (b * i); elseif (a <= 6.8e+22) tmp = t_1; elseif (a <= 2.7e+147) tmp = z * (x * y); elseif (a <= 1.55e+156) tmp = t_1; else tmp = t * -(x * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.5e+226], N[(x * N[(a * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.7e+129], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -380000000.0], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8e-286], t$95$1, If[LessEqual[a, 1.05e-305], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6.8e+22], t$95$1, If[LessEqual[a, 2.7e+147], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.55e+156], t$95$1, N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;a \leq -5.5 \cdot 10^{+226}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-t\right)\right)\\
\mathbf{elif}\;a \leq -4.7 \cdot 10^{+129}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -380000000:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq -8 \cdot 10^{-286}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{-305}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 6.8 \cdot 10^{+22}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;a \leq 2.7 \cdot 10^{+147}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;a \leq 1.55 \cdot 10^{+156}:\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\end{array}
\end{array}
if a < -5.5000000000000005e226Initial program 52.8%
+-commutative52.8%
fma-def64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in b around 0 58.7%
Taylor expanded in t around inf 76.9%
mul-1-neg76.9%
associate-*r*82.4%
Simplified82.4%
if -5.5000000000000005e226 < a < -4.70000000000000008e129Initial program 70.8%
sub-neg70.8%
+-commutative70.8%
associate-+l+70.8%
distribute-rgt-neg-in70.8%
+-commutative70.8%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
distribute-neg-in70.8%
unsub-neg70.8%
remove-double-neg70.8%
*-commutative70.8%
Simplified76.7%
Taylor expanded in a around inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
Simplified82.4%
Taylor expanded in c around inf 70.3%
if -4.70000000000000008e129 < a < -3.8e8Initial program 70.7%
sub-neg70.7%
+-commutative70.7%
associate-+l+70.7%
distribute-rgt-neg-in70.7%
+-commutative70.7%
fma-def70.7%
sub-neg70.7%
+-commutative70.7%
distribute-neg-in70.7%
unsub-neg70.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in b around inf 43.3%
Taylor expanded in i around inf 42.4%
if -3.8e8 < a < -8.0000000000000004e-286 or 1.05e-305 < a < 6.8e22 or 2.69999999999999998e147 < a < 1.5500000000000001e156Initial program 76.9%
cancel-sign-sub76.9%
cancel-sign-sub-inv76.9%
*-commutative76.9%
remove-double-neg76.9%
*-commutative76.9%
Simplified76.9%
add-cube-cbrt76.5%
*-commutative76.5%
*-commutative76.5%
Applied egg-rr76.5%
Taylor expanded in i around inf 42.7%
mul-1-neg42.7%
unsub-neg42.7%
Simplified42.7%
Taylor expanded in t around 0 33.9%
neg-mul-133.9%
distribute-rgt-neg-in33.9%
Simplified33.9%
if -8.0000000000000004e-286 < a < 1.05e-305Initial program 89.2%
sub-neg89.2%
+-commutative89.2%
associate-+l+89.2%
distribute-rgt-neg-in89.2%
+-commutative89.2%
fma-def89.2%
sub-neg89.2%
+-commutative89.2%
distribute-neg-in89.2%
unsub-neg89.2%
remove-double-neg89.2%
*-commutative89.2%
Simplified89.2%
Taylor expanded in t around inf 67.4%
Taylor expanded in i around inf 67.4%
if 6.8e22 < a < 2.69999999999999998e147Initial program 68.0%
cancel-sign-sub68.0%
cancel-sign-sub-inv68.0%
*-commutative68.0%
remove-double-neg68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in z around inf 58.6%
Taylor expanded in y around inf 40.8%
if 1.5500000000000001e156 < a Initial program 54.6%
sub-neg54.6%
+-commutative54.6%
associate-+l+54.6%
distribute-rgt-neg-in54.6%
+-commutative54.6%
fma-def57.9%
sub-neg57.9%
+-commutative57.9%
distribute-neg-in57.9%
unsub-neg57.9%
remove-double-neg57.9%
*-commutative57.9%
Simplified57.9%
Taylor expanded in t around inf 46.6%
Taylor expanded in i around 0 46.5%
neg-mul-146.5%
distribute-rgt-neg-in46.5%
Simplified46.5%
Final simplification43.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))))
(if (<= j -1.4e+157)
t_1
(if (<= j -4e-250)
(* c (* b (- z)))
(if (<= j -1.75e-292)
(* t (- (* x a)))
(if (<= j 5.2e-149)
(* z (* b (- c)))
(if (<= j 2.1e+20)
(* t (* b i))
(if (or (<= j 6.5e+227) (not (<= j 6.2e+298)))
t_1
(* a (* c j))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double tmp;
if (j <= -1.4e+157) {
tmp = t_1;
} else if (j <= -4e-250) {
tmp = c * (b * -z);
} else if (j <= -1.75e-292) {
tmp = t * -(x * a);
} else if (j <= 5.2e-149) {
tmp = z * (b * -c);
} else if (j <= 2.1e+20) {
tmp = t * (b * i);
} else if ((j <= 6.5e+227) || !(j <= 6.2e+298)) {
tmp = t_1;
} else {
tmp = a * (c * 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 = i * (y * -j)
if (j <= (-1.4d+157)) then
tmp = t_1
else if (j <= (-4d-250)) then
tmp = c * (b * -z)
else if (j <= (-1.75d-292)) then
tmp = t * -(x * a)
else if (j <= 5.2d-149) then
tmp = z * (b * -c)
else if (j <= 2.1d+20) then
tmp = t * (b * i)
else if ((j <= 6.5d+227) .or. (.not. (j <= 6.2d+298))) then
tmp = t_1
else
tmp = a * (c * 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 = i * (y * -j);
double tmp;
if (j <= -1.4e+157) {
tmp = t_1;
} else if (j <= -4e-250) {
tmp = c * (b * -z);
} else if (j <= -1.75e-292) {
tmp = t * -(x * a);
} else if (j <= 5.2e-149) {
tmp = z * (b * -c);
} else if (j <= 2.1e+20) {
tmp = t * (b * i);
} else if ((j <= 6.5e+227) || !(j <= 6.2e+298)) {
tmp = t_1;
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) tmp = 0 if j <= -1.4e+157: tmp = t_1 elif j <= -4e-250: tmp = c * (b * -z) elif j <= -1.75e-292: tmp = t * -(x * a) elif j <= 5.2e-149: tmp = z * (b * -c) elif j <= 2.1e+20: tmp = t * (b * i) elif (j <= 6.5e+227) or not (j <= 6.2e+298): tmp = t_1 else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) tmp = 0.0 if (j <= -1.4e+157) tmp = t_1; elseif (j <= -4e-250) tmp = Float64(c * Float64(b * Float64(-z))); elseif (j <= -1.75e-292) tmp = Float64(t * Float64(-Float64(x * a))); elseif (j <= 5.2e-149) tmp = Float64(z * Float64(b * Float64(-c))); elseif (j <= 2.1e+20) tmp = Float64(t * Float64(b * i)); elseif ((j <= 6.5e+227) || !(j <= 6.2e+298)) tmp = t_1; else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); tmp = 0.0; if (j <= -1.4e+157) tmp = t_1; elseif (j <= -4e-250) tmp = c * (b * -z); elseif (j <= -1.75e-292) tmp = t * -(x * a); elseif (j <= 5.2e-149) tmp = z * (b * -c); elseif (j <= 2.1e+20) tmp = t * (b * i); elseif ((j <= 6.5e+227) || ~((j <= 6.2e+298))) tmp = t_1; else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.4e+157], t$95$1, If[LessEqual[j, -4e-250], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.75e-292], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision], If[LessEqual[j, 5.2e-149], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.1e+20], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[j, 6.5e+227], N[Not[LessEqual[j, 6.2e+298]], $MachinePrecision]], t$95$1, N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{if}\;j \leq -1.4 \cdot 10^{+157}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;j \leq -4 \cdot 10^{-250}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;j \leq -1.75 \cdot 10^{-292}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{-149}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;j \leq 2.1 \cdot 10^{+20}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;j \leq 6.5 \cdot 10^{+227} \lor \neg \left(j \leq 6.2 \cdot 10^{+298}\right):\\
\;\;\;\;t_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.4000000000000001e157 or 2.1e20 < j < 6.50000000000000018e227 or 6.2000000000000004e298 < j Initial program 69.1%
cancel-sign-sub69.1%
cancel-sign-sub-inv69.1%
*-commutative69.1%
remove-double-neg69.1%
*-commutative69.1%
Simplified69.1%
add-cube-cbrt69.0%
*-commutative69.0%
*-commutative69.0%
Applied egg-rr69.0%
Taylor expanded in i around inf 56.6%
mul-1-neg56.6%
unsub-neg56.6%
Simplified56.6%
Taylor expanded in t around 0 52.5%
neg-mul-152.5%
distribute-rgt-neg-in52.5%
Simplified52.5%
if -1.4000000000000001e157 < j < -4.0000000000000002e-250Initial program 76.0%
cancel-sign-sub76.0%
cancel-sign-sub-inv76.0%
*-commutative76.0%
remove-double-neg76.0%
*-commutative76.0%
Simplified76.0%
Taylor expanded in z around inf 55.4%
Taylor expanded in y around 0 37.3%
associate-*r*37.3%
neg-mul-137.3%
Simplified37.3%
if -4.0000000000000002e-250 < j < -1.75e-292Initial program 66.7%
sub-neg66.7%
+-commutative66.7%
associate-+l+66.7%
distribute-rgt-neg-in66.7%
+-commutative66.7%
fma-def66.7%
sub-neg66.7%
+-commutative66.7%
distribute-neg-in66.7%
unsub-neg66.7%
remove-double-neg66.7%
*-commutative66.7%
Simplified66.7%
Taylor expanded in t around inf 68.6%
Taylor expanded in i around 0 58.8%
neg-mul-158.8%
distribute-rgt-neg-in58.8%
Simplified58.8%
if -1.75e-292 < j < 5.19999999999999998e-149Initial program 68.1%
cancel-sign-sub68.1%
cancel-sign-sub-inv68.1%
*-commutative68.1%
remove-double-neg68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in z around inf 64.7%
Taylor expanded in y around 0 42.3%
mul-1-neg42.3%
distribute-rgt-neg-in42.3%
Simplified42.3%
if 5.19999999999999998e-149 < j < 2.1e20Initial program 67.6%
sub-neg67.6%
+-commutative67.6%
associate-+l+67.6%
distribute-rgt-neg-in67.6%
+-commutative67.6%
fma-def71.8%
sub-neg71.8%
+-commutative71.8%
distribute-neg-in71.8%
unsub-neg71.8%
remove-double-neg71.8%
*-commutative71.8%
Simplified71.8%
Taylor expanded in t around inf 55.7%
Taylor expanded in i around inf 51.1%
if 6.50000000000000018e227 < j < 6.2000000000000004e298Initial program 68.3%
sub-neg68.3%
+-commutative68.3%
associate-+l+68.3%
distribute-rgt-neg-in68.3%
+-commutative68.3%
fma-def73.6%
sub-neg73.6%
+-commutative73.6%
distribute-neg-in73.6%
unsub-neg73.6%
remove-double-neg73.6%
*-commutative73.6%
Simplified73.6%
Taylor expanded in a around inf 64.4%
+-commutative64.4%
mul-1-neg64.4%
unsub-neg64.4%
Simplified64.4%
Taylor expanded in c around inf 59.5%
Final simplification46.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -2.25e+57)
(* x (- (* y z) (* t a)))
(if (<= x 2.95e-56)
(- (* j (- (* a c) (* y i))) (* z (* b c)))
(- (* j (* a c)) (* x (- (* t a) (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.25e+57) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 2.95e-56) {
tmp = (j * ((a * c) - (y * i))) - (z * (b * c));
} else {
tmp = (j * (a * c)) - (x * ((t * a) - (y * z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (x <= (-2.25d+57)) then
tmp = x * ((y * z) - (t * a))
else if (x <= 2.95d-56) then
tmp = (j * ((a * c) - (y * i))) - (z * (b * c))
else
tmp = (j * (a * c)) - (x * ((t * a) - (y * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (x <= -2.25e+57) {
tmp = x * ((y * z) - (t * a));
} else if (x <= 2.95e-56) {
tmp = (j * ((a * c) - (y * i))) - (z * (b * c));
} else {
tmp = (j * (a * c)) - (x * ((t * a) - (y * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -2.25e+57: tmp = x * ((y * z) - (t * a)) elif x <= 2.95e-56: tmp = (j * ((a * c) - (y * i))) - (z * (b * c)) else: tmp = (j * (a * c)) - (x * ((t * a) - (y * z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -2.25e+57) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (x <= 2.95e-56) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(z * Float64(b * c))); else tmp = Float64(Float64(j * Float64(a * c)) - Float64(x * Float64(Float64(t * a) - Float64(y * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -2.25e+57) tmp = x * ((y * z) - (t * a)); elseif (x <= 2.95e-56) tmp = (j * ((a * c) - (y * i))) - (z * (b * c)); else tmp = (j * (a * c)) - (x * ((t * a) - (y * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -2.25e+57], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.95e-56], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(a * c), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -2.25 \cdot 10^{+57}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;x \leq 2.95 \cdot 10^{-56}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) - z \cdot \left(b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c\right) - x \cdot \left(t \cdot a - y \cdot z\right)\\
\end{array}
\end{array}
if x < -2.24999999999999998e57Initial program 66.5%
sub-neg66.5%
+-commutative66.5%
associate-+l+66.5%
distribute-rgt-neg-in66.5%
+-commutative66.5%
fma-def69.0%
sub-neg69.0%
+-commutative69.0%
distribute-neg-in69.0%
unsub-neg69.0%
remove-double-neg69.0%
*-commutative69.0%
Simplified69.0%
Taylor expanded in x around inf 62.8%
if -2.24999999999999998e57 < x < 2.9499999999999999e-56Initial program 72.4%
cancel-sign-sub72.4%
cancel-sign-sub-inv72.4%
*-commutative72.4%
remove-double-neg72.4%
*-commutative72.4%
Simplified72.4%
Taylor expanded in c around inf 68.7%
mul-1-neg68.7%
associate-*r*70.2%
distribute-rgt-neg-in70.2%
Simplified70.2%
if 2.9499999999999999e-56 < x Initial program 71.2%
+-commutative71.2%
fma-def72.5%
*-commutative72.5%
*-commutative72.5%
Simplified72.5%
Taylor expanded in b around 0 66.6%
Taylor expanded in c around inf 64.2%
Final simplification67.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (* y (- j)))) (t_2 (* c (* a j))))
(if (<= z -46000000.0)
(* y (* x z))
(if (<= z -8e-94)
t_1
(if (<= z 3.9e-274)
t_2
(if (<= z 9.5e-101)
t_1
(if (<= z 1860.0)
t_2
(if (<= z 1.55e+114) (* a (* x (- t))) (* z (* x y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = c * (a * j);
double tmp;
if (z <= -46000000.0) {
tmp = y * (x * z);
} else if (z <= -8e-94) {
tmp = t_1;
} else if (z <= 3.9e-274) {
tmp = t_2;
} else if (z <= 9.5e-101) {
tmp = t_1;
} else if (z <= 1860.0) {
tmp = t_2;
} else if (z <= 1.55e+114) {
tmp = a * (x * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = i * (y * -j)
t_2 = c * (a * j)
if (z <= (-46000000.0d0)) then
tmp = y * (x * z)
else if (z <= (-8d-94)) then
tmp = t_1
else if (z <= 3.9d-274) then
tmp = t_2
else if (z <= 9.5d-101) then
tmp = t_1
else if (z <= 1860.0d0) then
tmp = t_2
else if (z <= 1.55d+114) then
tmp = a * (x * -t)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * (y * -j);
double t_2 = c * (a * j);
double tmp;
if (z <= -46000000.0) {
tmp = y * (x * z);
} else if (z <= -8e-94) {
tmp = t_1;
} else if (z <= 3.9e-274) {
tmp = t_2;
} else if (z <= 9.5e-101) {
tmp = t_1;
} else if (z <= 1860.0) {
tmp = t_2;
} else if (z <= 1.55e+114) {
tmp = a * (x * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * (y * -j) t_2 = c * (a * j) tmp = 0 if z <= -46000000.0: tmp = y * (x * z) elif z <= -8e-94: tmp = t_1 elif z <= 3.9e-274: tmp = t_2 elif z <= 9.5e-101: tmp = t_1 elif z <= 1860.0: tmp = t_2 elif z <= 1.55e+114: tmp = a * (x * -t) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(y * Float64(-j))) t_2 = Float64(c * Float64(a * j)) tmp = 0.0 if (z <= -46000000.0) tmp = Float64(y * Float64(x * z)); elseif (z <= -8e-94) tmp = t_1; elseif (z <= 3.9e-274) tmp = t_2; elseif (z <= 9.5e-101) tmp = t_1; elseif (z <= 1860.0) tmp = t_2; elseif (z <= 1.55e+114) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * (y * -j); t_2 = c * (a * j); tmp = 0.0; if (z <= -46000000.0) tmp = y * (x * z); elseif (z <= -8e-94) tmp = t_1; elseif (z <= 3.9e-274) tmp = t_2; elseif (z <= 9.5e-101) tmp = t_1; elseif (z <= 1860.0) tmp = t_2; elseif (z <= 1.55e+114) tmp = a * (x * -t); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -46000000.0], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8e-94], t$95$1, If[LessEqual[z, 3.9e-274], t$95$2, If[LessEqual[z, 9.5e-101], t$95$1, If[LessEqual[z, 1860.0], t$95$2, If[LessEqual[z, 1.55e+114], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(y \cdot \left(-j\right)\right)\\
t_2 := c \cdot \left(a \cdot j\right)\\
\mathbf{if}\;z \leq -46000000:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -8 \cdot 10^{-94}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-274}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{-101}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq 1860:\\
\;\;\;\;t_2\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+114}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -4.6e7Initial program 70.9%
+-commutative70.9%
fma-def72.6%
*-commutative72.6%
*-commutative72.6%
Simplified72.6%
Taylor expanded in b around 0 49.2%
Taylor expanded in z around inf 31.2%
if -4.6e7 < z < -7.9999999999999996e-94 or 3.89999999999999985e-274 < z < 9.49999999999999994e-101Initial program 71.2%
cancel-sign-sub71.2%
cancel-sign-sub-inv71.2%
*-commutative71.2%
remove-double-neg71.2%
*-commutative71.2%
Simplified71.2%
add-cube-cbrt70.9%
*-commutative70.9%
*-commutative70.9%
Applied egg-rr70.9%
Taylor expanded in i around inf 61.5%
mul-1-neg61.5%
unsub-neg61.5%
Simplified61.5%
Taylor expanded in t around 0 41.4%
neg-mul-141.4%
distribute-rgt-neg-in41.4%
Simplified41.4%
if -7.9999999999999996e-94 < z < 3.89999999999999985e-274 or 9.49999999999999994e-101 < z < 1860Initial program 83.9%
sub-neg83.9%
+-commutative83.9%
associate-+l+83.9%
distribute-rgt-neg-in83.9%
+-commutative83.9%
fma-def85.4%
sub-neg85.4%
+-commutative85.4%
distribute-neg-in85.4%
unsub-neg85.4%
remove-double-neg85.4%
*-commutative85.4%
Simplified87.0%
Taylor expanded in a around inf 51.3%
+-commutative51.3%
mul-1-neg51.3%
unsub-neg51.3%
Simplified51.3%
Taylor expanded in c around inf 36.2%
Taylor expanded in a around 0 40.5%
if 1860 < z < 1.55e114Initial program 61.9%
sub-neg61.9%
+-commutative61.9%
associate-+l+61.9%
distribute-rgt-neg-in61.9%
+-commutative61.9%
fma-def61.9%
sub-neg61.9%
+-commutative61.9%
distribute-neg-in61.9%
unsub-neg61.9%
remove-double-neg61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in a around inf 59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
Simplified59.8%
Taylor expanded in c around 0 49.3%
neg-mul-149.3%
distribute-rgt-neg-in49.3%
Simplified49.3%
if 1.55e114 < z Initial program 56.9%
cancel-sign-sub56.9%
cancel-sign-sub-inv56.9%
*-commutative56.9%
remove-double-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in z around inf 87.7%
Taylor expanded in y around inf 47.5%
Final simplification40.7%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -9.4e+225)
(* x (* a (- t)))
(if (<= a -6.3e+128)
(* a (* c j))
(if (<= a -540000000.0)
(* i (* t b))
(if (<= a -4.1e-286)
(* i (* y (- j)))
(if (<= a 1.12e-269)
(* t (* b i))
(if (<= a 1.85e+31) (* c (* b (- z))) (* t (- (* x a))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (a <= -9.4e+225) {
tmp = x * (a * -t);
} else if (a <= -6.3e+128) {
tmp = a * (c * j);
} else if (a <= -540000000.0) {
tmp = i * (t * b);
} else if (a <= -4.1e-286) {
tmp = i * (y * -j);
} else if (a <= 1.12e-269) {
tmp = t * (b * i);
} else if (a <= 1.85e+31) {
tmp = c * (b * -z);
} else {
tmp = t * -(x * 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 (a <= (-9.4d+225)) then
tmp = x * (a * -t)
else if (a <= (-6.3d+128)) then
tmp = a * (c * j)
else if (a <= (-540000000.0d0)) then
tmp = i * (t * b)
else if (a <= (-4.1d-286)) then
tmp = i * (y * -j)
else if (a <= 1.12d-269) then
tmp = t * (b * i)
else if (a <= 1.85d+31) then
tmp = c * (b * -z)
else
tmp = t * -(x * 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 (a <= -9.4e+225) {
tmp = x * (a * -t);
} else if (a <= -6.3e+128) {
tmp = a * (c * j);
} else if (a <= -540000000.0) {
tmp = i * (t * b);
} else if (a <= -4.1e-286) {
tmp = i * (y * -j);
} else if (a <= 1.12e-269) {
tmp = t * (b * i);
} else if (a <= 1.85e+31) {
tmp = c * (b * -z);
} else {
tmp = t * -(x * a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -9.4e+225: tmp = x * (a * -t) elif a <= -6.3e+128: tmp = a * (c * j) elif a <= -540000000.0: tmp = i * (t * b) elif a <= -4.1e-286: tmp = i * (y * -j) elif a <= 1.12e-269: tmp = t * (b * i) elif a <= 1.85e+31: tmp = c * (b * -z) else: tmp = t * -(x * a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -9.4e+225) tmp = Float64(x * Float64(a * Float64(-t))); elseif (a <= -6.3e+128) tmp = Float64(a * Float64(c * j)); elseif (a <= -540000000.0) tmp = Float64(i * Float64(t * b)); elseif (a <= -4.1e-286) tmp = Float64(i * Float64(y * Float64(-j))); elseif (a <= 1.12e-269) tmp = Float64(t * Float64(b * i)); elseif (a <= 1.85e+31) tmp = Float64(c * Float64(b * Float64(-z))); else tmp = Float64(t * Float64(-Float64(x * a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -9.4e+225) tmp = x * (a * -t); elseif (a <= -6.3e+128) tmp = a * (c * j); elseif (a <= -540000000.0) tmp = i * (t * b); elseif (a <= -4.1e-286) tmp = i * (y * -j); elseif (a <= 1.12e-269) tmp = t * (b * i); elseif (a <= 1.85e+31) tmp = c * (b * -z); else tmp = t * -(x * a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -9.4e+225], N[(x * N[(a * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -6.3e+128], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -540000000.0], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.1e-286], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.12e-269], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e+31], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], N[(t * (-N[(x * a), $MachinePrecision])), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -9.4 \cdot 10^{+225}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-t\right)\right)\\
\mathbf{elif}\;a \leq -6.3 \cdot 10^{+128}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;a \leq -540000000:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;a \leq -4.1 \cdot 10^{-286}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;a \leq 1.12 \cdot 10^{-269}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+31}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(-x \cdot a\right)\\
\end{array}
\end{array}
if a < -9.40000000000000008e225Initial program 52.8%
+-commutative52.8%
fma-def64.6%
*-commutative64.6%
*-commutative64.6%
Simplified64.6%
Taylor expanded in b around 0 58.7%
Taylor expanded in t around inf 76.9%
mul-1-neg76.9%
associate-*r*82.4%
Simplified82.4%
if -9.40000000000000008e225 < a < -6.2999999999999999e128Initial program 70.8%
sub-neg70.8%
+-commutative70.8%
associate-+l+70.8%
distribute-rgt-neg-in70.8%
+-commutative70.8%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
distribute-neg-in70.8%
unsub-neg70.8%
remove-double-neg70.8%
*-commutative70.8%
Simplified76.7%
Taylor expanded in a around inf 82.4%
+-commutative82.4%
mul-1-neg82.4%
unsub-neg82.4%
Simplified82.4%
Taylor expanded in c around inf 70.3%
if -6.2999999999999999e128 < a < -5.4e8Initial program 70.7%
sub-neg70.7%
+-commutative70.7%
associate-+l+70.7%
distribute-rgt-neg-in70.7%
+-commutative70.7%
fma-def70.7%
sub-neg70.7%
+-commutative70.7%
distribute-neg-in70.7%
unsub-neg70.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified70.7%
Taylor expanded in b around inf 43.3%
Taylor expanded in i around inf 42.4%
if -5.4e8 < a < -4.1e-286Initial program 78.4%
cancel-sign-sub78.4%
cancel-sign-sub-inv78.4%
*-commutative78.4%
remove-double-neg78.4%
*-commutative78.4%
Simplified78.4%
add-cube-cbrt77.9%
*-commutative77.9%
*-commutative77.9%
Applied egg-rr77.9%
Taylor expanded in i around inf 40.9%
mul-1-neg40.9%
unsub-neg40.9%
Simplified40.9%
Taylor expanded in t around 0 33.6%
neg-mul-133.6%
distribute-rgt-neg-in33.6%
Simplified33.6%
if -4.1e-286 < a < 1.12e-269Initial program 84.1%
sub-neg84.1%
+-commutative84.1%
associate-+l+84.1%
distribute-rgt-neg-in84.1%
+-commutative84.1%
fma-def84.1%
sub-neg84.1%
+-commutative84.1%
distribute-neg-in84.1%
unsub-neg84.1%
remove-double-neg84.1%
*-commutative84.1%
Simplified84.1%
Taylor expanded in t around inf 59.4%
Taylor expanded in i around inf 59.4%
if 1.12e-269 < a < 1.8499999999999999e31Initial program 78.7%
cancel-sign-sub78.7%
cancel-sign-sub-inv78.7%
*-commutative78.7%
remove-double-neg78.7%
*-commutative78.7%
Simplified78.7%
Taylor expanded in z around inf 59.1%
Taylor expanded in y around 0 40.0%
associate-*r*40.0%
neg-mul-140.0%
Simplified40.0%
if 1.8499999999999999e31 < a Initial program 58.3%
sub-neg58.3%
+-commutative58.3%
associate-+l+58.3%
distribute-rgt-neg-in58.3%
+-commutative58.3%
fma-def61.6%
sub-neg61.6%
+-commutative61.6%
distribute-neg-in61.6%
unsub-neg61.6%
remove-double-neg61.6%
*-commutative61.6%
Simplified61.6%
Taylor expanded in t around inf 42.9%
Taylor expanded in i around 0 41.2%
neg-mul-141.2%
distribute-rgt-neg-in41.2%
Simplified41.2%
Final simplification44.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))))
(if (<= c -9e+221)
t_1
(if (<= c -5.5e+189)
(* c (* a j))
(if (<= c -1.85e-22)
(* z (* b (- c)))
(if (<= c 5.8e-259)
(* i (* y (- j)))
(if (<= c 1.8e+45)
(* y (* x z))
(if (<= c 3.4e+124) (* b (* t i)) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (c <= -9e+221) {
tmp = t_1;
} else if (c <= -5.5e+189) {
tmp = c * (a * j);
} else if (c <= -1.85e-22) {
tmp = z * (b * -c);
} else if (c <= 5.8e-259) {
tmp = i * (y * -j);
} else if (c <= 1.8e+45) {
tmp = y * (x * z);
} else if (c <= 3.4e+124) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * (z * -c)
if (c <= (-9d+221)) then
tmp = t_1
else if (c <= (-5.5d+189)) then
tmp = c * (a * j)
else if (c <= (-1.85d-22)) then
tmp = z * (b * -c)
else if (c <= 5.8d-259) then
tmp = i * (y * -j)
else if (c <= 1.8d+45) then
tmp = y * (x * z)
else if (c <= 3.4d+124) then
tmp = b * (t * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * (z * -c);
double tmp;
if (c <= -9e+221) {
tmp = t_1;
} else if (c <= -5.5e+189) {
tmp = c * (a * j);
} else if (c <= -1.85e-22) {
tmp = z * (b * -c);
} else if (c <= 5.8e-259) {
tmp = i * (y * -j);
} else if (c <= 1.8e+45) {
tmp = y * (x * z);
} else if (c <= 3.4e+124) {
tmp = b * (t * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) tmp = 0 if c <= -9e+221: tmp = t_1 elif c <= -5.5e+189: tmp = c * (a * j) elif c <= -1.85e-22: tmp = z * (b * -c) elif c <= 5.8e-259: tmp = i * (y * -j) elif c <= 1.8e+45: tmp = y * (x * z) elif c <= 3.4e+124: tmp = b * (t * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * Float64(-c))) tmp = 0.0 if (c <= -9e+221) tmp = t_1; elseif (c <= -5.5e+189) tmp = Float64(c * Float64(a * j)); elseif (c <= -1.85e-22) tmp = Float64(z * Float64(b * Float64(-c))); elseif (c <= 5.8e-259) tmp = Float64(i * Float64(y * Float64(-j))); elseif (c <= 1.8e+45) tmp = Float64(y * Float64(x * z)); elseif (c <= 3.4e+124) tmp = Float64(b * Float64(t * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * -c); tmp = 0.0; if (c <= -9e+221) tmp = t_1; elseif (c <= -5.5e+189) tmp = c * (a * j); elseif (c <= -1.85e-22) tmp = z * (b * -c); elseif (c <= 5.8e-259) tmp = i * (y * -j); elseif (c <= 1.8e+45) tmp = y * (x * z); elseif (c <= 3.4e+124) tmp = b * (t * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -9e+221], t$95$1, If[LessEqual[c, -5.5e+189], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.85e-22], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.8e-259], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e+45], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.4e+124], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{if}\;c \leq -9 \cdot 10^{+221}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{+189}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;c \leq -1.85 \cdot 10^{-22}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\mathbf{elif}\;c \leq 5.8 \cdot 10^{-259}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{+45}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;c \leq 3.4 \cdot 10^{+124}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -9.0000000000000004e221 or 3.4e124 < c Initial program 53.4%
sub-neg53.4%
+-commutative53.4%
associate-+l+53.4%
distribute-rgt-neg-in53.4%
+-commutative53.4%
fma-def55.0%
sub-neg55.0%
+-commutative55.0%
distribute-neg-in55.0%
unsub-neg55.0%
remove-double-neg55.0%
*-commutative55.0%
Simplified56.5%
Taylor expanded in b around inf 51.7%
Taylor expanded in i around 0 52.0%
neg-mul-152.0%
distribute-lft-neg-in52.0%
*-commutative52.0%
Simplified52.0%
if -9.0000000000000004e221 < c < -5.5e189Initial program 69.8%
sub-neg69.8%
+-commutative69.8%
associate-+l+69.8%
distribute-rgt-neg-in69.8%
+-commutative69.8%
fma-def79.8%
sub-neg79.8%
+-commutative79.8%
distribute-neg-in79.8%
unsub-neg79.8%
remove-double-neg79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in a around inf 81.1%
+-commutative81.1%
mul-1-neg81.1%
unsub-neg81.1%
Simplified81.1%
Taylor expanded in c around inf 81.1%
Taylor expanded in a around 0 82.7%
if -5.5e189 < c < -1.85e-22Initial program 67.4%
cancel-sign-sub67.4%
cancel-sign-sub-inv67.4%
*-commutative67.4%
remove-double-neg67.4%
*-commutative67.4%
Simplified67.4%
Taylor expanded in z around inf 65.5%
Taylor expanded in y around 0 49.5%
mul-1-neg49.5%
distribute-rgt-neg-in49.5%
Simplified49.5%
if -1.85e-22 < c < 5.80000000000000017e-259Initial program 80.9%
cancel-sign-sub80.9%
cancel-sign-sub-inv80.9%
*-commutative80.9%
remove-double-neg80.9%
*-commutative80.9%
Simplified80.9%
add-cube-cbrt80.4%
*-commutative80.4%
*-commutative80.4%
Applied egg-rr80.4%
Taylor expanded in i around inf 57.7%
mul-1-neg57.7%
unsub-neg57.7%
Simplified57.7%
Taylor expanded in t around 0 38.4%
neg-mul-138.4%
distribute-rgt-neg-in38.4%
Simplified38.4%
if 5.80000000000000017e-259 < c < 1.8e45Initial program 80.3%
+-commutative80.3%
fma-def84.3%
*-commutative84.3%
*-commutative84.3%
Simplified84.3%
Taylor expanded in b around 0 74.4%
Taylor expanded in z around inf 32.1%
if 1.8e45 < c < 3.4e124Initial program 73.1%
sub-neg73.1%
+-commutative73.1%
associate-+l+73.1%
distribute-rgt-neg-in73.1%
+-commutative73.1%
fma-def73.1%
sub-neg73.1%
+-commutative73.1%
distribute-neg-in73.1%
unsub-neg73.1%
remove-double-neg73.1%
*-commutative73.1%
Simplified73.1%
Taylor expanded in b around inf 64.8%
Taylor expanded in i around inf 55.7%
*-commutative55.7%
Simplified55.7%
Final simplification44.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (- (* x y) (* b c)))))
(if (<= z -0.42)
t_1
(if (<= z -1.1e-150)
(* j (- (* a c) (* y i)))
(if (<= z 1.85e-104)
(* i (- (* t b) (* y j)))
(if (<= z 8.3e+46) (* a (- (* c j) (* 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 <= -0.42) {
tmp = t_1;
} else if (z <= -1.1e-150) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.85e-104) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 8.3e+46) {
tmp = a * ((c * j) - (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 <= (-0.42d0)) then
tmp = t_1
else if (z <= (-1.1d-150)) then
tmp = j * ((a * c) - (y * i))
else if (z <= 1.85d-104) then
tmp = i * ((t * b) - (y * j))
else if (z <= 8.3d+46) then
tmp = a * ((c * j) - (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 <= -0.42) {
tmp = t_1;
} else if (z <= -1.1e-150) {
tmp = j * ((a * c) - (y * i));
} else if (z <= 1.85e-104) {
tmp = i * ((t * b) - (y * j));
} else if (z <= 8.3e+46) {
tmp = a * ((c * j) - (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 <= -0.42: tmp = t_1 elif z <= -1.1e-150: tmp = j * ((a * c) - (y * i)) elif z <= 1.85e-104: tmp = i * ((t * b) - (y * j)) elif z <= 8.3e+46: tmp = a * ((c * j) - (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 <= -0.42) tmp = t_1; elseif (z <= -1.1e-150) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (z <= 1.85e-104) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (z <= 8.3e+46) tmp = Float64(a * Float64(Float64(c * j) - 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 <= -0.42) tmp = t_1; elseif (z <= -1.1e-150) tmp = j * ((a * c) - (y * i)); elseif (z <= 1.85e-104) tmp = i * ((t * b) - (y * j)); elseif (z <= 8.3e+46) tmp = a * ((c * j) - (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, -0.42], t$95$1, If[LessEqual[z, -1.1e-150], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.85e-104], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.3e+46], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $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 -0.42:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.1 \cdot 10^{-150}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;z \leq 1.85 \cdot 10^{-104}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;z \leq 8.3 \cdot 10^{+46}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -0.419999999999999984 or 8.29999999999999951e46 < z Initial program 65.0%
cancel-sign-sub65.0%
cancel-sign-sub-inv65.0%
*-commutative65.0%
remove-double-neg65.0%
*-commutative65.0%
Simplified65.0%
Taylor expanded in z around inf 69.1%
if -0.419999999999999984 < z < -1.1e-150Initial program 88.6%
sub-neg88.6%
+-commutative88.6%
associate-+l+88.6%
distribute-rgt-neg-in88.6%
+-commutative88.6%
fma-def88.6%
sub-neg88.6%
+-commutative88.6%
distribute-neg-in88.6%
unsub-neg88.6%
remove-double-neg88.6%
*-commutative88.6%
Simplified88.6%
Taylor expanded in j around inf 61.7%
mul-1-neg61.7%
sub-neg61.7%
Simplified61.7%
if -1.1e-150 < z < 1.85e-104Initial program 72.0%
cancel-sign-sub72.0%
cancel-sign-sub-inv72.0%
*-commutative72.0%
remove-double-neg72.0%
*-commutative72.0%
Simplified72.0%
add-cube-cbrt71.6%
*-commutative71.6%
*-commutative71.6%
Applied egg-rr71.6%
Taylor expanded in i around inf 58.3%
mul-1-neg58.3%
unsub-neg58.3%
Simplified58.3%
if 1.85e-104 < z < 8.29999999999999951e46Initial program 73.2%
sub-neg73.2%
+-commutative73.2%
associate-+l+73.2%
distribute-rgt-neg-in73.2%
+-commutative73.2%
fma-def73.2%
sub-neg73.2%
+-commutative73.2%
distribute-neg-in73.2%
unsub-neg73.2%
remove-double-neg73.2%
*-commutative73.2%
Simplified77.0%
Taylor expanded in a around inf 70.5%
+-commutative70.5%
mul-1-neg70.5%
unsub-neg70.5%
Simplified70.5%
Final simplification65.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -4.2e+27)
(* y (* x z))
(if (<= z -6.8e-149)
(* a (* c j))
(if (<= z 6e-89)
(* i (* t b))
(if (<= z 4700000.0)
(* c (* a j))
(if (<= z 8.5e+113) (* a (* x (- t))) (* z (* x y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -4.2e+27) {
tmp = y * (x * z);
} else if (z <= -6.8e-149) {
tmp = a * (c * j);
} else if (z <= 6e-89) {
tmp = i * (t * b);
} else if (z <= 4700000.0) {
tmp = c * (a * j);
} else if (z <= 8.5e+113) {
tmp = a * (x * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-4.2d+27)) then
tmp = y * (x * z)
else if (z <= (-6.8d-149)) then
tmp = a * (c * j)
else if (z <= 6d-89) then
tmp = i * (t * b)
else if (z <= 4700000.0d0) then
tmp = c * (a * j)
else if (z <= 8.5d+113) then
tmp = a * (x * -t)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -4.2e+27) {
tmp = y * (x * z);
} else if (z <= -6.8e-149) {
tmp = a * (c * j);
} else if (z <= 6e-89) {
tmp = i * (t * b);
} else if (z <= 4700000.0) {
tmp = c * (a * j);
} else if (z <= 8.5e+113) {
tmp = a * (x * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -4.2e+27: tmp = y * (x * z) elif z <= -6.8e-149: tmp = a * (c * j) elif z <= 6e-89: tmp = i * (t * b) elif z <= 4700000.0: tmp = c * (a * j) elif z <= 8.5e+113: tmp = a * (x * -t) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -4.2e+27) tmp = Float64(y * Float64(x * z)); elseif (z <= -6.8e-149) tmp = Float64(a * Float64(c * j)); elseif (z <= 6e-89) tmp = Float64(i * Float64(t * b)); elseif (z <= 4700000.0) tmp = Float64(c * Float64(a * j)); elseif (z <= 8.5e+113) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -4.2e+27) tmp = y * (x * z); elseif (z <= -6.8e-149) tmp = a * (c * j); elseif (z <= 6e-89) tmp = i * (t * b); elseif (z <= 4700000.0) tmp = c * (a * j); elseif (z <= 8.5e+113) tmp = a * (x * -t); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -4.2e+27], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.8e-149], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6e-89], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4700000.0], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.5e+113], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -4.2 \cdot 10^{+27}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{-149}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 6 \cdot 10^{-89}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 4700000:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 8.5 \cdot 10^{+113}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -4.19999999999999989e27Initial program 69.9%
+-commutative69.9%
fma-def71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in b around 0 49.1%
Taylor expanded in z around inf 32.2%
if -4.19999999999999989e27 < z < -6.7999999999999998e-149Initial program 84.8%
sub-neg84.8%
+-commutative84.8%
associate-+l+84.8%
distribute-rgt-neg-in84.8%
+-commutative84.8%
fma-def84.7%
sub-neg84.7%
+-commutative84.7%
distribute-neg-in84.7%
unsub-neg84.7%
remove-double-neg84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in a around inf 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
Simplified38.3%
Taylor expanded in c around inf 34.8%
if -6.7999999999999998e-149 < z < 5.9999999999999999e-89Initial program 73.3%
sub-neg73.3%
+-commutative73.3%
associate-+l+73.3%
distribute-rgt-neg-in73.3%
+-commutative73.3%
fma-def75.9%
sub-neg75.9%
+-commutative75.9%
distribute-neg-in75.9%
unsub-neg75.9%
remove-double-neg75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in b around inf 36.2%
Taylor expanded in i around inf 29.8%
if 5.9999999999999999e-89 < z < 4.7e6Initial program 85.2%
sub-neg85.2%
+-commutative85.2%
associate-+l+85.2%
distribute-rgt-neg-in85.2%
+-commutative85.2%
fma-def85.2%
sub-neg85.2%
+-commutative85.2%
distribute-neg-in85.2%
unsub-neg85.2%
remove-double-neg85.2%
*-commutative85.2%
Simplified92.8%
Taylor expanded in a around inf 70.3%
+-commutative70.3%
mul-1-neg70.3%
unsub-neg70.3%
Simplified70.3%
Taylor expanded in c around inf 64.2%
Taylor expanded in a around 0 64.2%
if 4.7e6 < z < 8.5000000000000001e113Initial program 61.9%
sub-neg61.9%
+-commutative61.9%
associate-+l+61.9%
distribute-rgt-neg-in61.9%
+-commutative61.9%
fma-def61.9%
sub-neg61.9%
+-commutative61.9%
distribute-neg-in61.9%
unsub-neg61.9%
remove-double-neg61.9%
*-commutative61.9%
Simplified61.9%
Taylor expanded in a around inf 59.8%
+-commutative59.8%
mul-1-neg59.8%
unsub-neg59.8%
Simplified59.8%
Taylor expanded in c around 0 49.3%
neg-mul-149.3%
distribute-rgt-neg-in49.3%
Simplified49.3%
if 8.5000000000000001e113 < z Initial program 56.9%
cancel-sign-sub56.9%
cancel-sign-sub-inv56.9%
*-commutative56.9%
remove-double-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in z around inf 87.7%
Taylor expanded in y around inf 47.5%
Final simplification37.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -1.75e-35)
t_1
(if (<= c 1.4e-256)
(* i (- (* t b) (* y j)))
(if (<= c 3.35e-12) (* a (- (* c j) (* 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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.75e-35) {
tmp = t_1;
} else if (c <= 1.4e-256) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 3.35e-12) {
tmp = a * ((c * j) - (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 = c * ((a * j) - (z * b))
if (c <= (-1.75d-35)) then
tmp = t_1
else if (c <= 1.4d-256) then
tmp = i * ((t * b) - (y * j))
else if (c <= 3.35d-12) then
tmp = a * ((c * j) - (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 = c * ((a * j) - (z * b));
double tmp;
if (c <= -1.75e-35) {
tmp = t_1;
} else if (c <= 1.4e-256) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 3.35e-12) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -1.75e-35: tmp = t_1 elif c <= 1.4e-256: tmp = i * ((t * b) - (y * j)) elif c <= 3.35e-12: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -1.75e-35) tmp = t_1; elseif (c <= 1.4e-256) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 3.35e-12) tmp = Float64(a * Float64(Float64(c * j) - 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 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -1.75e-35) tmp = t_1; elseif (c <= 1.4e-256) tmp = i * ((t * b) - (y * j)); elseif (c <= 3.35e-12) tmp = a * ((c * j) - (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[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.75e-35], t$95$1, If[LessEqual[c, 1.4e-256], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.35e-12], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -1.75 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 1.4 \cdot 10^{-256}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 3.35 \cdot 10^{-12}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -1.74999999999999998e-35 or 3.3500000000000001e-12 < c Initial program 62.8%
sub-neg62.8%
+-commutative62.8%
associate-+l+62.8%
distribute-rgt-neg-in62.8%
+-commutative62.8%
fma-def64.3%
sub-neg64.3%
+-commutative64.3%
distribute-neg-in64.3%
unsub-neg64.3%
remove-double-neg64.3%
*-commutative64.3%
Simplified65.0%
Taylor expanded in c around inf 65.6%
distribute-rgt-in60.4%
*-commutative60.4%
mul-1-neg60.4%
cancel-sign-sub-inv60.4%
*-commutative60.4%
distribute-lft-out--65.6%
Simplified65.6%
if -1.74999999999999998e-35 < c < 1.40000000000000012e-256Initial program 79.3%
cancel-sign-sub79.3%
cancel-sign-sub-inv79.3%
*-commutative79.3%
remove-double-neg79.3%
*-commutative79.3%
Simplified79.3%
add-cube-cbrt78.9%
*-commutative78.9%
*-commutative78.9%
Applied egg-rr78.9%
Taylor expanded in i around inf 57.9%
mul-1-neg57.9%
unsub-neg57.9%
Simplified57.9%
if 1.40000000000000012e-256 < c < 3.3500000000000001e-12Initial program 82.4%
sub-neg82.4%
+-commutative82.4%
associate-+l+82.4%
distribute-rgt-neg-in82.4%
+-commutative82.4%
fma-def84.9%
sub-neg84.9%
+-commutative84.9%
distribute-neg-in84.9%
unsub-neg84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified84.9%
Taylor expanded in a around inf 48.1%
+-commutative48.1%
mul-1-neg48.1%
unsub-neg48.1%
Simplified48.1%
Final simplification60.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (- (* a j) (* z b)))))
(if (<= c -3.9e-35)
t_1
(if (<= c 7e-293)
(* i (- (* t b) (* y j)))
(if (<= c 7.6e+23) (* y (- (* x z) (* i j))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.9e-35) {
tmp = t_1;
} else if (c <= 7e-293) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 7.6e+23) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = c * ((a * j) - (z * b))
if (c <= (-3.9d-35)) then
tmp = t_1
else if (c <= 7d-293) then
tmp = i * ((t * b) - (y * j))
else if (c <= 7.6d+23) then
tmp = y * ((x * z) - (i * j))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = c * ((a * j) - (z * b));
double tmp;
if (c <= -3.9e-35) {
tmp = t_1;
} else if (c <= 7e-293) {
tmp = i * ((t * b) - (y * j));
} else if (c <= 7.6e+23) {
tmp = y * ((x * z) - (i * j));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * ((a * j) - (z * b)) tmp = 0 if c <= -3.9e-35: tmp = t_1 elif c <= 7e-293: tmp = i * ((t * b) - (y * j)) elif c <= 7.6e+23: tmp = y * ((x * z) - (i * j)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(Float64(a * j) - Float64(z * b))) tmp = 0.0 if (c <= -3.9e-35) tmp = t_1; elseif (c <= 7e-293) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (c <= 7.6e+23) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = c * ((a * j) - (z * b)); tmp = 0.0; if (c <= -3.9e-35) tmp = t_1; elseif (c <= 7e-293) tmp = i * ((t * b) - (y * j)); elseif (c <= 7.6e+23) tmp = y * ((x * z) - (i * j)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.9e-35], t$95$1, If[LessEqual[c, 7e-293], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.6e+23], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(a \cdot j - z \cdot b\right)\\
\mathbf{if}\;c \leq -3.9 \cdot 10^{-35}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;c \leq 7 \cdot 10^{-293}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{+23}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if c < -3.8999999999999998e-35 or 7.5999999999999995e23 < c Initial program 61.9%
sub-neg61.9%
+-commutative61.9%
associate-+l+61.9%
distribute-rgt-neg-in61.9%
+-commutative61.9%
fma-def63.5%
sub-neg63.5%
+-commutative63.5%
distribute-neg-in63.5%
unsub-neg63.5%
remove-double-neg63.5%
*-commutative63.5%
Simplified64.2%
Taylor expanded in c around inf 66.4%
distribute-rgt-in61.0%
*-commutative61.0%
mul-1-neg61.0%
cancel-sign-sub-inv61.0%
*-commutative61.0%
distribute-lft-out--66.4%
Simplified66.4%
if -3.8999999999999998e-35 < c < 7.0000000000000004e-293Initial program 81.8%
cancel-sign-sub81.8%
cancel-sign-sub-inv81.8%
*-commutative81.8%
remove-double-neg81.8%
*-commutative81.8%
Simplified81.8%
add-cube-cbrt81.4%
*-commutative81.4%
*-commutative81.4%
Applied egg-rr81.4%
Taylor expanded in i around inf 57.4%
mul-1-neg57.4%
unsub-neg57.4%
Simplified57.4%
if 7.0000000000000004e-293 < c < 7.5999999999999995e23Initial program 79.4%
sub-neg79.4%
+-commutative79.4%
associate-+l+79.4%
distribute-rgt-neg-in79.4%
+-commutative79.4%
fma-def81.3%
sub-neg81.3%
+-commutative81.3%
distribute-neg-in81.3%
unsub-neg81.3%
remove-double-neg81.3%
*-commutative81.3%
Simplified81.3%
Taylor expanded in y around inf 52.5%
*-commutative52.5%
mul-1-neg52.5%
unsub-neg52.5%
Simplified52.5%
Final simplification61.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -9.2e+26)
(* y (* x z))
(if (<= z -8.8e-151)
(* a (* c j))
(if (<= z 3.1e-159)
(* i (* t b))
(if (<= z 2.9e+112) (* x (* a (- t))) (* z (* x y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -9.2e+26) {
tmp = y * (x * z);
} else if (z <= -8.8e-151) {
tmp = a * (c * j);
} else if (z <= 3.1e-159) {
tmp = i * (t * b);
} else if (z <= 2.9e+112) {
tmp = x * (a * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-9.2d+26)) then
tmp = y * (x * z)
else if (z <= (-8.8d-151)) then
tmp = a * (c * j)
else if (z <= 3.1d-159) then
tmp = i * (t * b)
else if (z <= 2.9d+112) then
tmp = x * (a * -t)
else
tmp = z * (x * y)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -9.2e+26) {
tmp = y * (x * z);
} else if (z <= -8.8e-151) {
tmp = a * (c * j);
} else if (z <= 3.1e-159) {
tmp = i * (t * b);
} else if (z <= 2.9e+112) {
tmp = x * (a * -t);
} else {
tmp = z * (x * y);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -9.2e+26: tmp = y * (x * z) elif z <= -8.8e-151: tmp = a * (c * j) elif z <= 3.1e-159: tmp = i * (t * b) elif z <= 2.9e+112: tmp = x * (a * -t) else: tmp = z * (x * y) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -9.2e+26) tmp = Float64(y * Float64(x * z)); elseif (z <= -8.8e-151) tmp = Float64(a * Float64(c * j)); elseif (z <= 3.1e-159) tmp = Float64(i * Float64(t * b)); elseif (z <= 2.9e+112) tmp = Float64(x * Float64(a * Float64(-t))); else tmp = Float64(z * Float64(x * y)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -9.2e+26) tmp = y * (x * z); elseif (z <= -8.8e-151) tmp = a * (c * j); elseif (z <= 3.1e-159) tmp = i * (t * b); elseif (z <= 2.9e+112) tmp = x * (a * -t); else tmp = z * (x * y); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -9.2e+26], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -8.8e-151], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.1e-159], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.9e+112], N[(x * N[(a * (-t)), $MachinePrecision]), $MachinePrecision], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.2 \cdot 10^{+26}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -8.8 \cdot 10^{-151}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 3.1 \cdot 10^{-159}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 2.9 \cdot 10^{+112}:\\
\;\;\;\;x \cdot \left(a \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\end{array}
\end{array}
if z < -9.2000000000000002e26Initial program 69.9%
+-commutative69.9%
fma-def71.7%
*-commutative71.7%
*-commutative71.7%
Simplified71.7%
Taylor expanded in b around 0 49.1%
Taylor expanded in z around inf 32.2%
if -9.2000000000000002e26 < z < -8.7999999999999997e-151Initial program 84.8%
sub-neg84.8%
+-commutative84.8%
associate-+l+84.8%
distribute-rgt-neg-in84.8%
+-commutative84.8%
fma-def84.7%
sub-neg84.7%
+-commutative84.7%
distribute-neg-in84.7%
unsub-neg84.7%
remove-double-neg84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in a around inf 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
Simplified38.3%
Taylor expanded in c around inf 34.8%
if -8.7999999999999997e-151 < z < 3.1e-159Initial program 74.1%
sub-neg74.1%
+-commutative74.1%
associate-+l+74.1%
distribute-rgt-neg-in74.1%
+-commutative74.1%
fma-def75.6%
sub-neg75.6%
+-commutative75.6%
distribute-neg-in75.6%
unsub-neg75.6%
remove-double-neg75.6%
*-commutative75.6%
Simplified75.6%
Taylor expanded in b around inf 36.9%
Taylor expanded in i around inf 30.7%
if 3.1e-159 < z < 2.9000000000000002e112Initial program 69.2%
+-commutative69.2%
fma-def74.6%
*-commutative74.6%
*-commutative74.6%
Simplified74.6%
Taylor expanded in b around 0 62.3%
Taylor expanded in t around inf 36.3%
mul-1-neg36.3%
associate-*r*38.1%
Simplified38.1%
if 2.9000000000000002e112 < z Initial program 56.9%
cancel-sign-sub56.9%
cancel-sign-sub-inv56.9%
*-commutative56.9%
remove-double-neg56.9%
*-commutative56.9%
Simplified56.9%
Taylor expanded in z around inf 87.7%
Taylor expanded in y around inf 47.5%
Final simplification35.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (* x z))))
(if (<= z -2e+23)
t_1
(if (<= z -1.05e-150)
(* a (* c j))
(if (<= z 3e-91)
(* i (* t b))
(if (<= z 8.6e+46) (* c (* a j)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (z <= -2e+23) {
tmp = t_1;
} else if (z <= -1.05e-150) {
tmp = a * (c * j);
} else if (z <= 3e-91) {
tmp = i * (t * b);
} else if (z <= 8.6e+46) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = y * (x * z)
if (z <= (-2d+23)) then
tmp = t_1
else if (z <= (-1.05d-150)) then
tmp = a * (c * j)
else if (z <= 3d-91) then
tmp = i * (t * b)
else if (z <= 8.6d+46) then
tmp = c * (a * j)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = y * (x * z);
double tmp;
if (z <= -2e+23) {
tmp = t_1;
} else if (z <= -1.05e-150) {
tmp = a * (c * j);
} else if (z <= 3e-91) {
tmp = i * (t * b);
} else if (z <= 8.6e+46) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = y * (x * z) tmp = 0 if z <= -2e+23: tmp = t_1 elif z <= -1.05e-150: tmp = a * (c * j) elif z <= 3e-91: tmp = i * (t * b) elif z <= 8.6e+46: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(y * Float64(x * z)) tmp = 0.0 if (z <= -2e+23) tmp = t_1; elseif (z <= -1.05e-150) tmp = Float64(a * Float64(c * j)); elseif (z <= 3e-91) tmp = Float64(i * Float64(t * b)); elseif (z <= 8.6e+46) tmp = Float64(c * Float64(a * j)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = y * (x * z); tmp = 0.0; if (z <= -2e+23) tmp = t_1; elseif (z <= -1.05e-150) tmp = a * (c * j); elseif (z <= 3e-91) tmp = i * (t * b); elseif (z <= 8.6e+46) tmp = c * (a * j); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2e+23], t$95$1, If[LessEqual[z, -1.05e-150], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3e-91], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.6e+46], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z\right)\\
\mathbf{if}\;z \leq -2 \cdot 10^{+23}:\\
\;\;\;\;t_1\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{-150}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-91}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;z \leq 8.6 \cdot 10^{+46}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t_1\\
\end{array}
\end{array}
if z < -1.9999999999999998e23 or 8.60000000000000009e46 < z Initial program 65.5%
+-commutative65.5%
fma-def68.1%
*-commutative68.1%
*-commutative68.1%
Simplified68.1%
Taylor expanded in b around 0 49.5%
Taylor expanded in z around inf 37.3%
if -1.9999999999999998e23 < z < -1.0500000000000001e-150Initial program 84.8%
sub-neg84.8%
+-commutative84.8%
associate-+l+84.8%
distribute-rgt-neg-in84.8%
+-commutative84.8%
fma-def84.7%
sub-neg84.7%
+-commutative84.7%
distribute-neg-in84.7%
unsub-neg84.7%
remove-double-neg84.7%
*-commutative84.7%
Simplified84.7%
Taylor expanded in a around inf 38.3%
+-commutative38.3%
mul-1-neg38.3%
unsub-neg38.3%
Simplified38.3%
Taylor expanded in c around inf 34.8%
if -1.0500000000000001e-150 < z < 3.0000000000000002e-91Initial program 73.3%
sub-neg73.3%
+-commutative73.3%
associate-+l+73.3%
distribute-rgt-neg-in73.3%
+-commutative73.3%
fma-def75.9%
sub-neg75.9%
+-commutative75.9%
distribute-neg-in75.9%
unsub-neg75.9%
remove-double-neg75.9%
*-commutative75.9%
Simplified75.9%
Taylor expanded in b around inf 36.2%
Taylor expanded in i around inf 29.8%
if 3.0000000000000002e-91 < z < 8.60000000000000009e46Initial program 68.4%
sub-neg68.4%
+-commutative68.4%
associate-+l+68.4%
distribute-rgt-neg-in68.4%
+-commutative68.4%
fma-def68.4%
sub-neg68.4%
+-commutative68.4%
distribute-neg-in68.4%
unsub-neg68.4%
remove-double-neg68.4%
*-commutative68.4%
Simplified72.9%
Taylor expanded in a around inf 73.8%
+-commutative73.8%
mul-1-neg73.8%
unsub-neg73.8%
Simplified73.8%
Taylor expanded in c around inf 43.4%
Taylor expanded in a around 0 48.4%
Final simplification35.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -5.2e+77) (not (<= a 2.4e+29))) (* a (- (* c j) (* x t))) (* c (- (* a 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 <= -5.2e+77) || !(a <= 2.4e+29)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = c * ((a * 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 <= (-5.2d+77)) .or. (.not. (a <= 2.4d+29))) then
tmp = a * ((c * j) - (x * t))
else
tmp = c * ((a * 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 <= -5.2e+77) || !(a <= 2.4e+29)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = c * ((a * j) - (z * b));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -5.2e+77) or not (a <= 2.4e+29): tmp = a * ((c * j) - (x * t)) else: tmp = c * ((a * j) - (z * b)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -5.2e+77) || !(a <= 2.4e+29)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(c * Float64(Float64(a * 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 <= -5.2e+77) || ~((a <= 2.4e+29))) tmp = a * ((c * j) - (x * t)); else tmp = c * ((a * j) - (z * b)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -5.2e+77], N[Not[LessEqual[a, 2.4e+29]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -5.2 \cdot 10^{+77} \lor \neg \left(a \leq 2.4 \cdot 10^{+29}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(a \cdot j - z \cdot b\right)\\
\end{array}
\end{array}
if a < -5.2000000000000004e77 or 2.4000000000000001e29 < a Initial program 60.2%
sub-neg60.2%
+-commutative60.2%
associate-+l+60.2%
distribute-rgt-neg-in60.2%
+-commutative60.2%
fma-def63.0%
sub-neg63.0%
+-commutative63.0%
distribute-neg-in63.0%
unsub-neg63.0%
remove-double-neg63.0%
*-commutative63.0%
Simplified65.0%
Taylor expanded in a around inf 65.4%
+-commutative65.4%
mul-1-neg65.4%
unsub-neg65.4%
Simplified65.4%
if -5.2000000000000004e77 < a < 2.4000000000000001e29Initial program 78.7%
sub-neg78.7%
+-commutative78.7%
associate-+l+78.7%
distribute-rgt-neg-in78.7%
+-commutative78.7%
fma-def78.7%
sub-neg78.7%
+-commutative78.7%
distribute-neg-in78.7%
unsub-neg78.7%
remove-double-neg78.7%
*-commutative78.7%
Simplified79.4%
Taylor expanded in c around inf 44.9%
distribute-rgt-in43.6%
*-commutative43.6%
mul-1-neg43.6%
cancel-sign-sub-inv43.6%
*-commutative43.6%
distribute-lft-out--44.9%
Simplified44.9%
Final simplification53.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -2.05e+48) (* c (* b (- z))) (if (<= b 1.65e+153) (* a (- (* c j) (* x t))) (* z (* b (- c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.05e+48) {
tmp = c * (b * -z);
} else if (b <= 1.65e+153) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = z * (b * -c);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-2.05d+48)) then
tmp = c * (b * -z)
else if (b <= 1.65d+153) then
tmp = a * ((c * j) - (x * t))
else
tmp = z * (b * -c)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -2.05e+48) {
tmp = c * (b * -z);
} else if (b <= 1.65e+153) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -2.05e+48: tmp = c * (b * -z) elif b <= 1.65e+153: tmp = a * ((c * j) - (x * t)) else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -2.05e+48) tmp = Float64(c * Float64(b * Float64(-z))); elseif (b <= 1.65e+153) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(z * Float64(b * Float64(-c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -2.05e+48) tmp = c * (b * -z); elseif (b <= 1.65e+153) tmp = a * ((c * j) - (x * t)); else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -2.05e+48], N[(c * N[(b * (-z)), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.65e+153], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.05 \cdot 10^{+48}:\\
\;\;\;\;c \cdot \left(b \cdot \left(-z\right)\right)\\
\mathbf{elif}\;b \leq 1.65 \cdot 10^{+153}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if b < -2.0500000000000001e48Initial program 66.8%
cancel-sign-sub66.8%
cancel-sign-sub-inv66.8%
*-commutative66.8%
remove-double-neg66.8%
*-commutative66.8%
Simplified66.8%
Taylor expanded in z around inf 64.4%
Taylor expanded in y around 0 54.9%
associate-*r*54.9%
neg-mul-154.9%
Simplified54.9%
if -2.0500000000000001e48 < b < 1.64999999999999997e153Initial program 71.1%
sub-neg71.1%
+-commutative71.1%
associate-+l+71.1%
distribute-rgt-neg-in71.1%
+-commutative71.1%
fma-def71.1%
sub-neg71.1%
+-commutative71.1%
distribute-neg-in71.1%
unsub-neg71.1%
remove-double-neg71.1%
*-commutative71.1%
Simplified72.9%
Taylor expanded in a around inf 44.9%
+-commutative44.9%
mul-1-neg44.9%
unsub-neg44.9%
Simplified44.9%
if 1.64999999999999997e153 < b Initial program 79.8%
cancel-sign-sub79.8%
cancel-sign-sub-inv79.8%
*-commutative79.8%
remove-double-neg79.8%
*-commutative79.8%
Simplified79.8%
Taylor expanded in z around inf 57.9%
Taylor expanded in y around 0 48.0%
mul-1-neg48.0%
distribute-rgt-neg-in48.0%
Simplified48.0%
Final simplification47.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -5.5e+27) (not (<= b 6.6e+65))) (* i (* t b)) (* a (* c j))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5.5e+27) || !(b <= 6.6e+65)) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((b <= (-5.5d+27)) .or. (.not. (b <= 6.6d+65))) then
tmp = i * (t * b)
else
tmp = a * (c * j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((b <= -5.5e+27) || !(b <= 6.6e+65)) {
tmp = i * (t * b);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -5.5e+27) or not (b <= 6.6e+65): tmp = i * (t * b) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -5.5e+27) || !(b <= 6.6e+65)) tmp = Float64(i * Float64(t * b)); else tmp = Float64(a * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((b <= -5.5e+27) || ~((b <= 6.6e+65))) tmp = i * (t * b); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -5.5e+27], N[Not[LessEqual[b, 6.6e+65]], $MachinePrecision]], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -5.5 \cdot 10^{+27} \lor \neg \left(b \leq 6.6 \cdot 10^{+65}\right):\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -5.49999999999999966e27 or 6.60000000000000046e65 < b Initial program 71.6%
sub-neg71.6%
+-commutative71.6%
associate-+l+71.6%
distribute-rgt-neg-in71.6%
+-commutative71.6%
fma-def74.3%
sub-neg74.3%
+-commutative74.3%
distribute-neg-in74.3%
unsub-neg74.3%
remove-double-neg74.3%
*-commutative74.3%
Simplified75.3%
Taylor expanded in b around inf 68.9%
Taylor expanded in i around inf 34.6%
if -5.49999999999999966e27 < b < 6.60000000000000046e65Initial program 70.8%
sub-neg70.8%
+-commutative70.8%
associate-+l+70.8%
distribute-rgt-neg-in70.8%
+-commutative70.8%
fma-def70.8%
sub-neg70.8%
+-commutative70.8%
distribute-neg-in70.8%
unsub-neg70.8%
remove-double-neg70.8%
*-commutative70.8%
Simplified72.1%
Taylor expanded in a around inf 47.0%
+-commutative47.0%
mul-1-neg47.0%
unsub-neg47.0%
Simplified47.0%
Taylor expanded in c around inf 28.9%
Final simplification31.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= b -9.5e+23) (* i (* t b)) (if (<= b 2.65e+85) (* a (* c j)) (* t (* 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 (b <= -9.5e+23) {
tmp = i * (t * b);
} else if (b <= 2.65e+85) {
tmp = a * (c * j);
} else {
tmp = t * (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 (b <= (-9.5d+23)) then
tmp = i * (t * b)
else if (b <= 2.65d+85) then
tmp = a * (c * j)
else
tmp = t * (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 (b <= -9.5e+23) {
tmp = i * (t * b);
} else if (b <= 2.65e+85) {
tmp = a * (c * j);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -9.5e+23: tmp = i * (t * b) elif b <= 2.65e+85: tmp = a * (c * j) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -9.5e+23) tmp = Float64(i * Float64(t * b)); elseif (b <= 2.65e+85) tmp = Float64(a * Float64(c * j)); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -9.5e+23) tmp = i * (t * b); elseif (b <= 2.65e+85) tmp = a * (c * j); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -9.5e+23], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.65e+85], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+23}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;b \leq 2.65 \cdot 10^{+85}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if b < -9.50000000000000038e23Initial program 65.3%
sub-neg65.3%
+-commutative65.3%
associate-+l+65.3%
distribute-rgt-neg-in65.3%
+-commutative65.3%
fma-def68.3%
sub-neg68.3%
+-commutative68.3%
distribute-neg-in68.3%
unsub-neg68.3%
remove-double-neg68.3%
*-commutative68.3%
Simplified68.3%
Taylor expanded in b around inf 66.4%
Taylor expanded in i around inf 31.8%
if -9.50000000000000038e23 < b < 2.65e85Initial program 70.7%
sub-neg70.7%
+-commutative70.7%
associate-+l+70.7%
distribute-rgt-neg-in70.7%
+-commutative70.7%
fma-def70.7%
sub-neg70.7%
+-commutative70.7%
distribute-neg-in70.7%
unsub-neg70.7%
remove-double-neg70.7%
*-commutative70.7%
Simplified72.0%
Taylor expanded in a around inf 46.8%
+-commutative46.8%
mul-1-neg46.8%
unsub-neg46.8%
Simplified46.8%
Taylor expanded in c around inf 29.0%
if 2.65e85 < b Initial program 82.4%
sub-neg82.4%
+-commutative82.4%
associate-+l+82.4%
distribute-rgt-neg-in82.4%
+-commutative82.4%
fma-def84.9%
sub-neg84.9%
+-commutative84.9%
distribute-neg-in84.9%
unsub-neg84.9%
remove-double-neg84.9%
*-commutative84.9%
Simplified87.4%
Taylor expanded in t around inf 43.4%
Taylor expanded in i around inf 41.1%
Final simplification31.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
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 * (c * j)
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 * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 71.1%
sub-neg71.1%
+-commutative71.1%
associate-+l+71.1%
distribute-rgt-neg-in71.1%
+-commutative71.1%
fma-def72.3%
sub-neg72.3%
+-commutative72.3%
distribute-neg-in72.3%
unsub-neg72.3%
remove-double-neg72.3%
*-commutative72.3%
Simplified73.5%
Taylor expanded in a around inf 36.7%
+-commutative36.7%
mul-1-neg36.7%
unsub-neg36.7%
Simplified36.7%
Taylor expanded in c around inf 22.0%
Final simplification22.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* c a) (* y i))))
(t_2
(+
(-
(* x (- (* y z) (* t a)))
(/
(* b (- (pow (* c z) 2.0) (pow (* t i) 2.0)))
(+ (* c z) (* t i))))
t_1)))
(if (< x -1.469694296777705e-64)
t_2
(if (< x 3.2113527362226803e-147)
(- (* (- (* b i) (* x a)) t) (- (* z (* c b)) t_1))
t_2))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (pow((c * z), 2.0) - pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = j * ((c * a) - (y * i))
t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ** 2.0d0) - ((t * i) ** 2.0d0))) / ((c * z) + (t * i)))) + t_1
if (x < (-1.469694296777705d-64)) then
tmp = t_2
else if (x < 3.2113527362226803d-147) then
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1)
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((c * a) - (y * i));
double t_2 = ((x * ((y * z) - (t * a))) - ((b * (Math.pow((c * z), 2.0) - Math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1;
double tmp;
if (x < -1.469694296777705e-64) {
tmp = t_2;
} else if (x < 3.2113527362226803e-147) {
tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1);
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((c * a) - (y * i)) t_2 = ((x * ((y * z) - (t * a))) - ((b * (math.pow((c * z), 2.0) - math.pow((t * i), 2.0))) / ((c * z) + (t * i)))) + t_1 tmp = 0 if x < -1.469694296777705e-64: tmp = t_2 elif x < 3.2113527362226803e-147: tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1) else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(c * a) - Float64(y * i))) t_2 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(Float64(b * Float64((Float64(c * z) ^ 2.0) - (Float64(t * i) ^ 2.0))) / Float64(Float64(c * z) + Float64(t * i)))) + t_1) tmp = 0.0 if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = Float64(Float64(Float64(Float64(b * i) - Float64(x * a)) * t) - Float64(Float64(z * Float64(c * b)) - t_1)); else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((c * a) - (y * i)); t_2 = ((x * ((y * z) - (t * a))) - ((b * (((c * z) ^ 2.0) - ((t * i) ^ 2.0))) / ((c * z) + (t * i)))) + t_1; tmp = 0.0; if (x < -1.469694296777705e-64) tmp = t_2; elseif (x < 3.2113527362226803e-147) tmp = (((b * i) - (x * a)) * t) - ((z * (c * b)) - t_1); else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[Power[N[(c * z), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(t * i), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * z), $MachinePrecision] + N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision]}, If[Less[x, -1.469694296777705e-64], t$95$2, If[Less[x, 3.2113527362226803e-147], N[(N[(N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision] - N[(N[(z * N[(c * b), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(c \cdot a - y \cdot i\right)\\
t_2 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - \frac{b \cdot \left({\left(c \cdot z\right)}^{2} - {\left(t \cdot i\right)}^{2}\right)}{c \cdot z + t \cdot i}\right) + t_1\\
\mathbf{if}\;x < -1.469694296777705 \cdot 10^{-64}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x < 3.2113527362226803 \cdot 10^{-147}:\\
\;\;\;\;\left(b \cdot i - x \cdot a\right) \cdot t - \left(z \cdot \left(c \cdot b\right) - t_1\right)\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
\end{array}
herbie shell --seed 2023174
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:herbie-target
(if (< x -1.469694296777705e-64) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 3.2113527362226803e-147) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2.0) (pow (* t i) 2.0))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))