
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(j * Float64(Float64(c * t) - Float64(i * y)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + (j * ((c * t) - (i * y))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * t), $MachinePrecision] - N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + j \cdot \left(c \cdot t - i \cdot y\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* a i))))
(* j (- (* t c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* a (- (* b i) (* x t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (a * i)))) + (j * ((t * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) < +inf.0Initial program 89.5%
if +inf.0 < (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 i a)))) (*.f64 j (-.f64 (*.f64 c t) (*.f64 i y)))) Initial program 0.0%
add-cube-cbrt0.0%
pow30.0%
*-commutative0.0%
*-commutative0.0%
Applied egg-rr0.0%
Taylor expanded in a around inf 60.7%
associate-*r*60.7%
neg-mul-160.7%
cancel-sign-sub60.7%
+-commutative60.7%
*-commutative60.7%
mul-1-neg60.7%
unsub-neg60.7%
Simplified60.7%
Final simplification84.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (+ (* t (/ (- (* c j) (* x a)) b)) (- (* a i) (* z c))))))
(if (<= a -5.4e+147)
t_1
(if (<= a 1.5e-77)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(if (<= a 1.7e+120) t_1 (* a (- (* b i) (* x t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c)));
double tmp;
if (a <= -5.4e+147) {
tmp = t_1;
} else if (a <= 1.5e-77) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (a <= 1.7e+120) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c)))
if (a <= (-5.4d+147)) then
tmp = t_1
else if (a <= 1.5d-77) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else if (a <= 1.7d+120) then
tmp = t_1
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c)));
double tmp;
if (a <= -5.4e+147) {
tmp = t_1;
} else if (a <= 1.5e-77) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (a <= 1.7e+120) {
tmp = t_1;
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c))) tmp = 0 if a <= -5.4e+147: tmp = t_1 elif a <= 1.5e-77: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) elif a <= 1.7e+120: tmp = t_1 else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * Float64(Float64(Float64(c * j) - Float64(x * a)) / b)) + Float64(Float64(a * i) - Float64(z * c)))) tmp = 0.0 if (a <= -5.4e+147) tmp = t_1; elseif (a <= 1.5e-77) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); elseif (a <= 1.7e+120) tmp = t_1; else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * (((c * j) - (x * a)) / b)) + ((a * i) - (z * c))); tmp = 0.0; if (a <= -5.4e+147) tmp = t_1; elseif (a <= 1.5e-77) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); elseif (a <= 1.7e+120) tmp = t_1; else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * N[(N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision] / b), $MachinePrecision]), $MachinePrecision] + N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -5.4e+147], t$95$1, If[LessEqual[a, 1.5e-77], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.7e+120], t$95$1, N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot \frac{c \cdot j - x \cdot a}{b} + \left(a \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;a \leq -5.4 \cdot 10^{+147}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.5 \cdot 10^{-77}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{+120}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if a < -5.39999999999999995e147 or 1.50000000000000008e-77 < a < 1.69999999999999999e120Initial program 67.8%
Taylor expanded in y around 0 60.1%
mul-1-neg60.1%
associate-*r*61.6%
*-commutative61.6%
associate-*l*62.9%
distribute-rgt-neg-in62.9%
mul-1-neg62.9%
*-commutative62.9%
associate-*r*61.5%
*-commutative61.5%
associate-*l*62.9%
distribute-lft-in67.5%
+-commutative67.5%
mul-1-neg67.5%
unsub-neg67.5%
*-commutative67.5%
*-commutative67.5%
Simplified67.5%
Taylor expanded in b around -inf 69.3%
associate-*r*69.3%
neg-mul-169.3%
distribute-lft-out--69.3%
associate-/l*72.3%
*-commutative72.3%
*-commutative72.3%
Simplified72.3%
if -5.39999999999999995e147 < a < 1.50000000000000008e-77Initial program 81.8%
Taylor expanded in b around 0 72.8%
if 1.69999999999999999e120 < a Initial program 55.0%
add-cube-cbrt54.9%
pow354.9%
*-commutative54.9%
*-commutative54.9%
Applied egg-rr54.9%
Taylor expanded in a around inf 81.6%
associate-*r*81.6%
neg-mul-181.6%
cancel-sign-sub81.6%
+-commutative81.6%
*-commutative81.6%
mul-1-neg81.6%
unsub-neg81.6%
Simplified81.6%
Final simplification74.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* b i) (* x t)))))
(if (<= a -4e+200)
t_1
(if (<= a 5e-80)
(+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))
(if (<= a 1.25e+121)
(- (* t (- (* c j) (* x a))) (* b (- (* z c) (* a 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 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4e+200) {
tmp = t_1;
} else if (a <= 5e-80) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (a <= 1.25e+121) {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * 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 = a * ((b * i) - (x * t))
if (a <= (-4d+200)) then
tmp = t_1
else if (a <= 5d-80) then
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
else if (a <= 1.25d+121) then
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * 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 = a * ((b * i) - (x * t));
double tmp;
if (a <= -4e+200) {
tmp = t_1;
} else if (a <= 5e-80) {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
} else if (a <= 1.25e+121) {
tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((b * i) - (x * t)) tmp = 0 if a <= -4e+200: tmp = t_1 elif a <= 5e-80: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) elif a <= 1.25e+121: tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * i))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(b * i) - Float64(x * t))) tmp = 0.0 if (a <= -4e+200) tmp = t_1; elseif (a <= 5e-80) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); elseif (a <= 1.25e+121) tmp = Float64(Float64(t * Float64(Float64(c * j) - Float64(x * a))) - Float64(b * Float64(Float64(z * c) - Float64(a * i)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((b * i) - (x * t)); tmp = 0.0; if (a <= -4e+200) tmp = t_1; elseif (a <= 5e-80) tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); elseif (a <= 1.25e+121) tmp = (t * ((c * j) - (x * a))) - (b * ((z * c) - (a * 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[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -4e+200], t$95$1, If[LessEqual[a, 5e-80], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.25e+121], N[(N[(t * N[(N[(c * j), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{if}\;a \leq -4 \cdot 10^{+200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 5 \cdot 10^{-80}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 1.25 \cdot 10^{+121}:\\
\;\;\;\;t \cdot \left(c \cdot j - x \cdot a\right) - b \cdot \left(z \cdot c - a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -3.9999999999999999e200 or 1.25000000000000002e121 < a Initial program 50.4%
add-cube-cbrt50.3%
pow350.3%
*-commutative50.3%
*-commutative50.3%
Applied egg-rr50.3%
Taylor expanded in a around inf 76.3%
associate-*r*76.3%
neg-mul-176.3%
cancel-sign-sub76.3%
+-commutative76.3%
*-commutative76.3%
mul-1-neg76.3%
unsub-neg76.3%
Simplified76.3%
if -3.9999999999999999e200 < a < 5e-80Initial program 81.6%
Taylor expanded in b around 0 72.0%
if 5e-80 < a < 1.25000000000000002e121Initial program 82.5%
Taylor expanded in y around 0 67.7%
mul-1-neg67.7%
associate-*r*73.4%
*-commutative73.4%
associate-*l*73.3%
distribute-rgt-neg-in73.3%
mul-1-neg73.3%
*-commutative73.3%
associate-*r*70.5%
*-commutative70.5%
associate-*l*73.3%
distribute-lft-in76.3%
+-commutative76.3%
mul-1-neg76.3%
unsub-neg76.3%
*-commutative76.3%
*-commutative76.3%
Simplified76.3%
Final simplification73.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.8e+69) (not (<= i 1.1e+114))) (* i (- (* a b) (* y j))) (+ (* x (- (* y z) (* t a))) (* j (- (* t c) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.8e+69) || !(i <= 1.1e+114)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((i <= (-1.8d+69)) .or. (.not. (i <= 1.1d+114))) then
tmp = i * ((a * b) - (y * j))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((i <= -1.8e+69) || !(i <= 1.1e+114)) {
tmp = i * ((a * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.8e+69) or not (i <= 1.1e+114): tmp = i * ((a * b) - (y * j)) else: tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.8e+69) || !(i <= 1.1e+114)) tmp = Float64(i * Float64(Float64(a * b) - Float64(y * j))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(t * c) - Float64(y * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((i <= -1.8e+69) || ~((i <= 1.1e+114))) tmp = i * ((a * b) - (y * j)); else tmp = (x * ((y * z) - (t * a))) + (j * ((t * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.8e+69], N[Not[LessEqual[i, 1.1e+114]], $MachinePrecision]], N[(i * N[(N[(a * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.8 \cdot 10^{+69} \lor \neg \left(i \leq 1.1 \cdot 10^{+114}\right):\\
\;\;\;\;i \cdot \left(a \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if i < -1.8000000000000001e69 or 1.1e114 < i Initial program 56.8%
Taylor expanded in i around inf 73.1%
distribute-lft-out--73.1%
*-commutative73.1%
Simplified73.1%
if -1.8000000000000001e69 < i < 1.1e114Initial program 79.4%
Taylor expanded in b around 0 71.0%
Final simplification71.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (- (* t c) (* y i))))
(if (<= j -4.4e+41)
(* j t_1)
(if (<= j -6.5e-102)
(* b (* a (- i (* c (/ z a)))))
(if (<= j 1.65e+38) (* x (- (* y z) (* t a))) (* (* a j) (/ t_1 a)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (t * c) - (y * i);
double tmp;
if (j <= -4.4e+41) {
tmp = j * t_1;
} else if (j <= -6.5e-102) {
tmp = b * (a * (i - (c * (z / a))));
} else if (j <= 1.65e+38) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = (a * j) * (t_1 / 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 = (t * c) - (y * i)
if (j <= (-4.4d+41)) then
tmp = j * t_1
else if (j <= (-6.5d-102)) then
tmp = b * (a * (i - (c * (z / a))))
else if (j <= 1.65d+38) then
tmp = x * ((y * z) - (t * a))
else
tmp = (a * j) * (t_1 / 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 = (t * c) - (y * i);
double tmp;
if (j <= -4.4e+41) {
tmp = j * t_1;
} else if (j <= -6.5e-102) {
tmp = b * (a * (i - (c * (z / a))));
} else if (j <= 1.65e+38) {
tmp = x * ((y * z) - (t * a));
} else {
tmp = (a * j) * (t_1 / a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (t * c) - (y * i) tmp = 0 if j <= -4.4e+41: tmp = j * t_1 elif j <= -6.5e-102: tmp = b * (a * (i - (c * (z / a)))) elif j <= 1.65e+38: tmp = x * ((y * z) - (t * a)) else: tmp = (a * j) * (t_1 / a) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(t * c) - Float64(y * i)) tmp = 0.0 if (j <= -4.4e+41) tmp = Float64(j * t_1); elseif (j <= -6.5e-102) tmp = Float64(b * Float64(a * Float64(i - Float64(c * Float64(z / a))))); elseif (j <= 1.65e+38) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); else tmp = Float64(Float64(a * j) * Float64(t_1 / a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (t * c) - (y * i); tmp = 0.0; if (j <= -4.4e+41) tmp = j * t_1; elseif (j <= -6.5e-102) tmp = b * (a * (i - (c * (z / a)))); elseif (j <= 1.65e+38) tmp = x * ((y * z) - (t * a)); else tmp = (a * j) * (t_1 / a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -4.4e+41], N[(j * t$95$1), $MachinePrecision], If[LessEqual[j, -6.5e-102], N[(b * N[(a * N[(i - N[(c * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.65e+38], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * j), $MachinePrecision] * N[(t$95$1 / a), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot c - y \cdot i\\
\mathbf{if}\;j \leq -4.4 \cdot 10^{+41}:\\
\;\;\;\;j \cdot t\_1\\
\mathbf{elif}\;j \leq -6.5 \cdot 10^{-102}:\\
\;\;\;\;b \cdot \left(a \cdot \left(i - c \cdot \frac{z}{a}\right)\right)\\
\mathbf{elif}\;j \leq 1.65 \cdot 10^{+38}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot j\right) \cdot \frac{t\_1}{a}\\
\end{array}
\end{array}
if j < -4.3999999999999998e41Initial program 79.1%
Taylor expanded in j around inf 83.3%
if -4.3999999999999998e41 < j < -6.5000000000000003e-102Initial program 64.3%
Taylor expanded in b around inf 59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in a around inf 65.1%
mul-1-neg65.1%
unsub-neg65.1%
associate-/l*62.2%
Simplified62.2%
if -6.5000000000000003e-102 < j < 1.65e38Initial program 73.6%
add-cube-cbrt73.5%
pow373.5%
*-commutative73.5%
*-commutative73.5%
Applied egg-rr73.5%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
if 1.65e38 < j Initial program 68.8%
add-cube-cbrt68.4%
pow368.4%
*-commutative68.4%
*-commutative68.4%
Applied egg-rr68.4%
Taylor expanded in a around inf 50.8%
+-commutative50.8%
mul-1-neg50.8%
unsub-neg50.8%
associate-/l*57.0%
associate-/l*59.0%
+-commutative59.0%
mul-1-neg59.0%
*-commutative59.0%
unsub-neg59.0%
associate-/l*59.0%
associate-/l*59.0%
Simplified59.0%
Taylor expanded in j around inf 49.5%
div-sub51.6%
associate-*r*63.4%
*-commutative63.4%
Simplified63.4%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= c -1.45e+86)
t_1
(if (<= c -5.5e+19)
(* t (* x (- a)))
(if (<= c -1.3e-275)
(* x (* y z))
(if (<= c 3.55e+71) (* b (* a 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 = t * (c * j);
double tmp;
if (c <= -1.45e+86) {
tmp = t_1;
} else if (c <= -5.5e+19) {
tmp = t * (x * -a);
} else if (c <= -1.3e-275) {
tmp = x * (y * z);
} else if (c <= 3.55e+71) {
tmp = b * (a * 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 = t * (c * j)
if (c <= (-1.45d+86)) then
tmp = t_1
else if (c <= (-5.5d+19)) then
tmp = t * (x * -a)
else if (c <= (-1.3d-275)) then
tmp = x * (y * z)
else if (c <= 3.55d+71) then
tmp = b * (a * 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 = t * (c * j);
double tmp;
if (c <= -1.45e+86) {
tmp = t_1;
} else if (c <= -5.5e+19) {
tmp = t * (x * -a);
} else if (c <= -1.3e-275) {
tmp = x * (y * z);
} else if (c <= 3.55e+71) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if c <= -1.45e+86: tmp = t_1 elif c <= -5.5e+19: tmp = t * (x * -a) elif c <= -1.3e-275: tmp = x * (y * z) elif c <= 3.55e+71: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -1.45e+86) tmp = t_1; elseif (c <= -5.5e+19) tmp = Float64(t * Float64(x * Float64(-a))); elseif (c <= -1.3e-275) tmp = Float64(x * Float64(y * z)); elseif (c <= 3.55e+71) tmp = Float64(b * Float64(a * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (c <= -1.45e+86) tmp = t_1; elseif (c <= -5.5e+19) tmp = t * (x * -a); elseif (c <= -1.3e-275) tmp = x * (y * z); elseif (c <= 3.55e+71) tmp = b * (a * 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[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -1.45e+86], t$95$1, If[LessEqual[c, -5.5e+19], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.3e-275], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 3.55e+71], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -1.45 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{+19}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;c \leq -1.3 \cdot 10^{-275}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 3.55 \cdot 10^{+71}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -1.44999999999999995e86 or 3.54999999999999993e71 < c Initial program 65.3%
Taylor expanded in t around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in c around inf 44.5%
*-commutative44.5%
Simplified44.5%
if -1.44999999999999995e86 < c < -5.5e19Initial program 54.1%
Taylor expanded in t around inf 48.6%
+-commutative48.6%
mul-1-neg48.6%
unsub-neg48.6%
*-commutative48.6%
Simplified48.6%
Taylor expanded in c around 0 48.6%
mul-1-neg48.6%
distribute-rgt-neg-in48.6%
Simplified48.6%
if -5.5e19 < c < -1.29999999999999996e-275Initial program 80.6%
add-cube-cbrt80.4%
pow380.4%
*-commutative80.4%
*-commutative80.4%
Applied egg-rr80.4%
Taylor expanded in x around inf 51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in y around inf 32.1%
if -1.29999999999999996e-275 < c < 3.54999999999999993e71Initial program 77.6%
Taylor expanded in b around inf 44.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in a around inf 39.4%
*-commutative39.4%
Simplified39.4%
Final simplification39.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -1.85e+45)
t_1
(if (<= j -6.6e-102)
(* b (* a (- i (* c (/ z a)))))
(if (<= j 5e+37) (* 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.85e+45) {
tmp = t_1;
} else if (j <= -6.6e-102) {
tmp = b * (a * (i - (c * (z / a))));
} else if (j <= 5e+37) {
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 = j * ((t * c) - (y * i))
if (j <= (-1.85d+45)) then
tmp = t_1
else if (j <= (-6.6d-102)) then
tmp = b * (a * (i - (c * (z / a))))
else if (j <= 5d+37) 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.85e+45) {
tmp = t_1;
} else if (j <= -6.6e-102) {
tmp = b * (a * (i - (c * (z / a))));
} else if (j <= 5e+37) {
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 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.85e+45: tmp = t_1 elif j <= -6.6e-102: tmp = b * (a * (i - (c * (z / a)))) elif j <= 5e+37: 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(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.85e+45) tmp = t_1; elseif (j <= -6.6e-102) tmp = Float64(b * Float64(a * Float64(i - Float64(c * Float64(z / a))))); elseif (j <= 5e+37) 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 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.85e+45) tmp = t_1; elseif (j <= -6.6e-102) tmp = b * (a * (i - (c * (z / a)))); elseif (j <= 5e+37) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.85e+45], t$95$1, If[LessEqual[j, -6.6e-102], N[(b * N[(a * N[(i - N[(c * N[(z / a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5e+37], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.85 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -6.6 \cdot 10^{-102}:\\
\;\;\;\;b \cdot \left(a \cdot \left(i - c \cdot \frac{z}{a}\right)\right)\\
\mathbf{elif}\;j \leq 5 \cdot 10^{+37}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.84999999999999989e45 or 4.99999999999999989e37 < j Initial program 74.2%
Taylor expanded in j around inf 73.7%
if -1.84999999999999989e45 < j < -6.6e-102Initial program 64.3%
Taylor expanded in b around inf 59.0%
*-commutative59.0%
Simplified59.0%
Taylor expanded in a around inf 65.1%
mul-1-neg65.1%
unsub-neg65.1%
associate-/l*62.2%
Simplified62.2%
if -6.6e-102 < j < 4.99999999999999989e37Initial program 73.6%
add-cube-cbrt73.5%
pow373.5%
*-commutative73.5%
*-commutative73.5%
Applied egg-rr73.5%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
Final simplification62.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* t c) (* y i)))))
(if (<= j -1.7e+41)
t_1
(if (<= j -9.5e-102)
(* b (- (* a i) (* z c)))
(if (<= j 3.2e+37) (* 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.7e+41) {
tmp = t_1;
} else if (j <= -9.5e-102) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 3.2e+37) {
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 = j * ((t * c) - (y * i))
if (j <= (-1.7d+41)) then
tmp = t_1
else if (j <= (-9.5d-102)) then
tmp = b * ((a * i) - (z * c))
else if (j <= 3.2d+37) 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 = j * ((t * c) - (y * i));
double tmp;
if (j <= -1.7e+41) {
tmp = t_1;
} else if (j <= -9.5e-102) {
tmp = b * ((a * i) - (z * c));
} else if (j <= 3.2e+37) {
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 = j * ((t * c) - (y * i)) tmp = 0 if j <= -1.7e+41: tmp = t_1 elif j <= -9.5e-102: tmp = b * ((a * i) - (z * c)) elif j <= 3.2e+37: 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(j * Float64(Float64(t * c) - Float64(y * i))) tmp = 0.0 if (j <= -1.7e+41) tmp = t_1; elseif (j <= -9.5e-102) tmp = Float64(b * Float64(Float64(a * i) - Float64(z * c))); elseif (j <= 3.2e+37) 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 = j * ((t * c) - (y * i)); tmp = 0.0; if (j <= -1.7e+41) tmp = t_1; elseif (j <= -9.5e-102) tmp = b * ((a * i) - (z * c)); elseif (j <= 3.2e+37) 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[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.7e+41], t$95$1, If[LessEqual[j, -9.5e-102], N[(b * N[(N[(a * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 3.2e+37], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(t \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -1.7 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -9.5 \cdot 10^{-102}:\\
\;\;\;\;b \cdot \left(a \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 3.2 \cdot 10^{+37}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.69999999999999999e41 or 3.20000000000000014e37 < j Initial program 74.2%
Taylor expanded in j around inf 73.7%
if -1.69999999999999999e41 < j < -9.50000000000000025e-102Initial program 64.3%
Taylor expanded in b around inf 59.0%
*-commutative59.0%
Simplified59.0%
if -9.50000000000000025e-102 < j < 3.20000000000000014e37Initial program 73.6%
add-cube-cbrt73.5%
pow373.5%
*-commutative73.5%
*-commutative73.5%
Applied egg-rr73.5%
Taylor expanded in x around inf 53.8%
*-commutative53.8%
Simplified53.8%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -1.95e+86)
(* t (* c j))
(if (<= c -1.4e-224)
(* a (* x (- t)))
(if (<= c 2e+119) (* b (* a i)) (* 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 (c <= -1.95e+86) {
tmp = t * (c * j);
} else if (c <= -1.4e-224) {
tmp = a * (x * -t);
} else if (c <= 2e+119) {
tmp = b * (a * i);
} 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 (c <= (-1.95d+86)) then
tmp = t * (c * j)
else if (c <= (-1.4d-224)) then
tmp = a * (x * -t)
else if (c <= 2d+119) then
tmp = b * (a * i)
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 (c <= -1.95e+86) {
tmp = t * (c * j);
} else if (c <= -1.4e-224) {
tmp = a * (x * -t);
} else if (c <= 2e+119) {
tmp = b * (a * i);
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -1.95e+86: tmp = t * (c * j) elif c <= -1.4e-224: tmp = a * (x * -t) elif c <= 2e+119: tmp = b * (a * i) else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -1.95e+86) tmp = Float64(t * Float64(c * j)); elseif (c <= -1.4e-224) tmp = Float64(a * Float64(x * Float64(-t))); elseif (c <= 2e+119) tmp = Float64(b * Float64(a * i)); 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 (c <= -1.95e+86) tmp = t * (c * j); elseif (c <= -1.4e-224) tmp = a * (x * -t); elseif (c <= 2e+119) tmp = b * (a * i); else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -1.95e+86], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.4e-224], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2e+119], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.95 \cdot 10^{+86}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-224}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;c \leq 2 \cdot 10^{+119}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if c < -1.9500000000000001e86Initial program 65.8%
Taylor expanded in t around inf 52.8%
+-commutative52.8%
mul-1-neg52.8%
unsub-neg52.8%
*-commutative52.8%
Simplified52.8%
Taylor expanded in c around inf 50.5%
*-commutative50.5%
Simplified50.5%
if -1.9500000000000001e86 < c < -1.3999999999999999e-224Initial program 75.9%
Taylor expanded in t around inf 32.9%
+-commutative32.9%
mul-1-neg32.9%
unsub-neg32.9%
*-commutative32.9%
Simplified32.9%
Taylor expanded in c around 0 34.6%
associate-*r*34.6%
neg-mul-134.6%
Simplified34.6%
if -1.3999999999999999e-224 < c < 1.99999999999999989e119Initial program 79.0%
Taylor expanded in b around inf 38.0%
*-commutative38.0%
Simplified38.0%
Taylor expanded in a around inf 34.2%
*-commutative34.2%
Simplified34.2%
if 1.99999999999999989e119 < c Initial program 57.4%
Taylor expanded in b around inf 42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in a around 0 42.9%
mul-1-neg42.9%
*-commutative42.9%
distribute-rgt-neg-in42.9%
Simplified42.9%
Taylor expanded in c around 0 42.9%
mul-1-neg42.9%
associate-*r*50.3%
distribute-lft-neg-in50.3%
*-commutative50.3%
distribute-rgt-neg-in50.3%
Simplified50.3%
Final simplification39.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* c j))))
(if (<= c -3.7e+85)
t_1
(if (<= c -1.25e-221)
(* a (* x (- t)))
(if (<= c 2.75e+63) (* b (* a 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 = t * (c * j);
double tmp;
if (c <= -3.7e+85) {
tmp = t_1;
} else if (c <= -1.25e-221) {
tmp = a * (x * -t);
} else if (c <= 2.75e+63) {
tmp = b * (a * 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 = t * (c * j)
if (c <= (-3.7d+85)) then
tmp = t_1
else if (c <= (-1.25d-221)) then
tmp = a * (x * -t)
else if (c <= 2.75d+63) then
tmp = b * (a * 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 = t * (c * j);
double tmp;
if (c <= -3.7e+85) {
tmp = t_1;
} else if (c <= -1.25e-221) {
tmp = a * (x * -t);
} else if (c <= 2.75e+63) {
tmp = b * (a * i);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (c * j) tmp = 0 if c <= -3.7e+85: tmp = t_1 elif c <= -1.25e-221: tmp = a * (x * -t) elif c <= 2.75e+63: tmp = b * (a * i) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(c * j)) tmp = 0.0 if (c <= -3.7e+85) tmp = t_1; elseif (c <= -1.25e-221) tmp = Float64(a * Float64(x * Float64(-t))); elseif (c <= 2.75e+63) tmp = Float64(b * Float64(a * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (c * j); tmp = 0.0; if (c <= -3.7e+85) tmp = t_1; elseif (c <= -1.25e-221) tmp = a * (x * -t); elseif (c <= 2.75e+63) tmp = b * (a * 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[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[c, -3.7e+85], t$95$1, If[LessEqual[c, -1.25e-221], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 2.75e+63], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(c \cdot j\right)\\
\mathbf{if}\;c \leq -3.7 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.25 \cdot 10^{-221}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;c \leq 2.75 \cdot 10^{+63}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if c < -3.7000000000000002e85 or 2.75000000000000002e63 < c Initial program 65.3%
Taylor expanded in t around inf 50.9%
+-commutative50.9%
mul-1-neg50.9%
unsub-neg50.9%
*-commutative50.9%
Simplified50.9%
Taylor expanded in c around inf 44.5%
*-commutative44.5%
Simplified44.5%
if -3.7000000000000002e85 < c < -1.24999999999999999e-221Initial program 75.9%
Taylor expanded in t around inf 32.9%
+-commutative32.9%
mul-1-neg32.9%
unsub-neg32.9%
*-commutative32.9%
Simplified32.9%
Taylor expanded in c around 0 34.6%
associate-*r*34.6%
neg-mul-134.6%
Simplified34.6%
if -1.24999999999999999e-221 < c < 2.75000000000000002e63Initial program 77.5%
Taylor expanded in b around inf 41.1%
*-commutative41.1%
Simplified41.1%
Taylor expanded in a around inf 36.8%
*-commutative36.8%
Simplified36.8%
Final simplification39.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= c -2.45e+51)
(* c (* t j))
(if (<= c -3.6e-273)
(* x (* y z))
(if (<= c 6.8e+78) (* b (* a i)) (* t (* 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 (c <= -2.45e+51) {
tmp = c * (t * j);
} else if (c <= -3.6e-273) {
tmp = x * (y * z);
} else if (c <= 6.8e+78) {
tmp = b * (a * i);
} else {
tmp = t * (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 (c <= (-2.45d+51)) then
tmp = c * (t * j)
else if (c <= (-3.6d-273)) then
tmp = x * (y * z)
else if (c <= 6.8d+78) then
tmp = b * (a * i)
else
tmp = t * (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 (c <= -2.45e+51) {
tmp = c * (t * j);
} else if (c <= -3.6e-273) {
tmp = x * (y * z);
} else if (c <= 6.8e+78) {
tmp = b * (a * i);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -2.45e+51: tmp = c * (t * j) elif c <= -3.6e-273: tmp = x * (y * z) elif c <= 6.8e+78: tmp = b * (a * i) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -2.45e+51) tmp = Float64(c * Float64(t * j)); elseif (c <= -3.6e-273) tmp = Float64(x * Float64(y * z)); elseif (c <= 6.8e+78) tmp = Float64(b * Float64(a * i)); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -2.45e+51) tmp = c * (t * j); elseif (c <= -3.6e-273) tmp = x * (y * z); elseif (c <= 6.8e+78) tmp = b * (a * i); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -2.45e+51], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -3.6e-273], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.8e+78], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.45 \cdot 10^{+51}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;c \leq -3.6 \cdot 10^{-273}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;c \leq 6.8 \cdot 10^{+78}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -2.44999999999999992e51Initial program 62.1%
Taylor expanded in t around inf 53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
*-commutative53.7%
Simplified53.7%
Taylor expanded in x around inf 55.7%
Taylor expanded in c around inf 43.8%
Taylor expanded in t around 0 45.6%
if -2.44999999999999992e51 < c < -3.59999999999999993e-273Initial program 79.6%
add-cube-cbrt79.4%
pow379.3%
*-commutative79.3%
*-commutative79.3%
Applied egg-rr79.3%
Taylor expanded in x around inf 51.4%
*-commutative51.4%
Simplified51.4%
Taylor expanded in y around inf 31.2%
if -3.59999999999999993e-273 < c < 6.80000000000000014e78Initial program 77.6%
Taylor expanded in b around inf 44.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in a around inf 39.4%
*-commutative39.4%
Simplified39.4%
if 6.80000000000000014e78 < c Initial program 65.0%
Taylor expanded in t around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in c around inf 39.7%
*-commutative39.7%
Simplified39.7%
Final simplification38.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -3e+102) (not (<= a 1.7e-77))) (* a (- (* b i) (* x t))) (* j (- (* t c) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3e+102) || !(a <= 1.7e-77)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-3d+102)) .or. (.not. (a <= 1.7d-77))) then
tmp = a * ((b * i) - (x * t))
else
tmp = j * ((t * c) - (y * i))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -3e+102) || !(a <= 1.7e-77)) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = j * ((t * c) - (y * i));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -3e+102) or not (a <= 1.7e-77): tmp = a * ((b * i) - (x * t)) else: tmp = j * ((t * c) - (y * i)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -3e+102) || !(a <= 1.7e-77)) tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); else tmp = Float64(j * Float64(Float64(t * c) - Float64(y * i))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -3e+102) || ~((a <= 1.7e-77))) tmp = a * ((b * i) - (x * t)); else tmp = j * ((t * c) - (y * i)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -3e+102], N[Not[LessEqual[a, 1.7e-77]], $MachinePrecision]], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(t * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3 \cdot 10^{+102} \lor \neg \left(a \leq 1.7 \cdot 10^{-77}\right):\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(t \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if a < -2.9999999999999998e102 or 1.69999999999999991e-77 < a Initial program 63.2%
add-cube-cbrt63.2%
pow363.2%
*-commutative63.2%
*-commutative63.2%
Applied egg-rr63.2%
Taylor expanded in a around inf 66.3%
associate-*r*66.3%
neg-mul-166.3%
cancel-sign-sub66.3%
+-commutative66.3%
*-commutative66.3%
mul-1-neg66.3%
unsub-neg66.3%
Simplified66.3%
if -2.9999999999999998e102 < a < 1.69999999999999991e-77Initial program 81.2%
Taylor expanded in j around inf 52.2%
Final simplification58.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -2.4e+153) (not (<= c 3.1e+60))) (* c (- (* t j) (* z b))) (* a (- (* b i) (* x t)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.4e+153) || !(c <= 3.1e+60)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-2.4d+153)) .or. (.not. (c <= 3.1d+60))) then
tmp = c * ((t * j) - (z * b))
else
tmp = a * ((b * i) - (x * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -2.4e+153) || !(c <= 3.1e+60)) {
tmp = c * ((t * j) - (z * b));
} else {
tmp = a * ((b * i) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -2.4e+153) or not (c <= 3.1e+60): tmp = c * ((t * j) - (z * b)) else: tmp = a * ((b * i) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -2.4e+153) || !(c <= 3.1e+60)) tmp = Float64(c * Float64(Float64(t * j) - Float64(z * b))); else tmp = Float64(a * Float64(Float64(b * i) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -2.4e+153) || ~((c <= 3.1e+60))) tmp = c * ((t * j) - (z * b)); else tmp = a * ((b * i) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -2.4e+153], N[Not[LessEqual[c, 3.1e+60]], $MachinePrecision]], N[(c * N[(N[(t * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -2.4 \cdot 10^{+153} \lor \neg \left(c \leq 3.1 \cdot 10^{+60}\right):\\
\;\;\;\;c \cdot \left(t \cdot j - z \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\end{array}
\end{array}
if c < -2.39999999999999992e153 or 3.1000000000000001e60 < c Initial program 62.5%
Taylor expanded in c around inf 67.2%
*-commutative67.2%
*-commutative67.2%
Simplified67.2%
if -2.39999999999999992e153 < c < 3.1000000000000001e60Initial program 77.0%
add-cube-cbrt76.8%
pow376.8%
*-commutative76.8%
*-commutative76.8%
Applied egg-rr76.8%
Taylor expanded in a around inf 48.2%
associate-*r*48.2%
neg-mul-148.2%
cancel-sign-sub48.2%
+-commutative48.2%
*-commutative48.2%
mul-1-neg48.2%
unsub-neg48.2%
Simplified48.2%
Final simplification53.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -4.6e+116) (* t (* c j)) (if (<= c 1.8e+128) (* a (- (* b i) (* 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 (c <= -4.6e+116) {
tmp = t * (c * j);
} else if (c <= 1.8e+128) {
tmp = a * ((b * i) - (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 (c <= (-4.6d+116)) then
tmp = t * (c * j)
else if (c <= 1.8d+128) then
tmp = a * ((b * i) - (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 (c <= -4.6e+116) {
tmp = t * (c * j);
} else if (c <= 1.8e+128) {
tmp = a * ((b * i) - (x * t));
} else {
tmp = z * (b * -c);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4.6e+116: tmp = t * (c * j) elif c <= 1.8e+128: tmp = a * ((b * i) - (x * t)) else: tmp = z * (b * -c) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4.6e+116) tmp = Float64(t * Float64(c * j)); elseif (c <= 1.8e+128) tmp = Float64(a * Float64(Float64(b * i) - 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 (c <= -4.6e+116) tmp = t * (c * j); elseif (c <= 1.8e+128) tmp = a * ((b * i) - (x * t)); else tmp = z * (b * -c); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.6e+116], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.8e+128], N[(a * N[(N[(b * i), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.6 \cdot 10^{+116}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;c \leq 1.8 \cdot 10^{+128}:\\
\;\;\;\;a \cdot \left(b \cdot i - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;z \cdot \left(b \cdot \left(-c\right)\right)\\
\end{array}
\end{array}
if c < -4.5999999999999999e116Initial program 61.7%
Taylor expanded in t around inf 54.3%
+-commutative54.3%
mul-1-neg54.3%
unsub-neg54.3%
*-commutative54.3%
Simplified54.3%
Taylor expanded in c around inf 54.3%
*-commutative54.3%
Simplified54.3%
if -4.5999999999999999e116 < c < 1.80000000000000014e128Initial program 78.0%
add-cube-cbrt77.8%
pow377.8%
*-commutative77.8%
*-commutative77.8%
Applied egg-rr77.8%
Taylor expanded in a around inf 46.9%
associate-*r*46.9%
neg-mul-146.9%
cancel-sign-sub46.9%
+-commutative46.9%
*-commutative46.9%
mul-1-neg46.9%
unsub-neg46.9%
Simplified46.9%
if 1.80000000000000014e128 < c Initial program 57.4%
Taylor expanded in b around inf 42.8%
*-commutative42.8%
Simplified42.8%
Taylor expanded in a around 0 42.9%
mul-1-neg42.9%
*-commutative42.9%
distribute-rgt-neg-in42.9%
Simplified42.9%
Taylor expanded in c around 0 42.9%
mul-1-neg42.9%
associate-*r*50.3%
distribute-lft-neg-in50.3%
*-commutative50.3%
distribute-rgt-neg-in50.3%
Simplified50.3%
Final simplification48.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -1.18e-11) (not (<= c 6.8e+73))) (* c (* t j)) (* b (* a i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.18e-11) || !(c <= 6.8e+73)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-1.18d-11)) .or. (.not. (c <= 6.8d+73))) then
tmp = c * (t * j)
else
tmp = b * (a * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -1.18e-11) || !(c <= 6.8e+73)) {
tmp = c * (t * j);
} else {
tmp = b * (a * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -1.18e-11) or not (c <= 6.8e+73): tmp = c * (t * j) else: tmp = b * (a * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -1.18e-11) || !(c <= 6.8e+73)) tmp = Float64(c * Float64(t * j)); else tmp = Float64(b * Float64(a * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -1.18e-11) || ~((c <= 6.8e+73))) tmp = c * (t * j); else tmp = b * (a * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -1.18e-11], N[Not[LessEqual[c, 6.8e+73]], $MachinePrecision]], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -1.18 \cdot 10^{-11} \lor \neg \left(c \leq 6.8 \cdot 10^{+73}\right):\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\end{array}
\end{array}
if c < -1.18e-11 or 6.8000000000000003e73 < c Initial program 66.0%
Taylor expanded in t around inf 50.6%
+-commutative50.6%
mul-1-neg50.6%
unsub-neg50.6%
*-commutative50.6%
Simplified50.6%
Taylor expanded in x around inf 51.5%
Taylor expanded in c around inf 39.4%
Taylor expanded in t around 0 39.4%
if -1.18e-11 < c < 6.8000000000000003e73Initial program 78.0%
Taylor expanded in b around inf 37.0%
*-commutative37.0%
Simplified37.0%
Taylor expanded in a around inf 32.7%
*-commutative32.7%
Simplified32.7%
Final simplification35.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= c -4.2e-11) (* c (* t j)) (if (<= c 7.6e+67) (* b (* a i)) (* t (* 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 (c <= -4.2e-11) {
tmp = c * (t * j);
} else if (c <= 7.6e+67) {
tmp = b * (a * i);
} else {
tmp = t * (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 (c <= (-4.2d-11)) then
tmp = c * (t * j)
else if (c <= 7.6d+67) then
tmp = b * (a * i)
else
tmp = t * (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 (c <= -4.2e-11) {
tmp = c * (t * j);
} else if (c <= 7.6e+67) {
tmp = b * (a * i);
} else {
tmp = t * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if c <= -4.2e-11: tmp = c * (t * j) elif c <= 7.6e+67: tmp = b * (a * i) else: tmp = t * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (c <= -4.2e-11) tmp = Float64(c * Float64(t * j)); elseif (c <= 7.6e+67) tmp = Float64(b * Float64(a * i)); else tmp = Float64(t * Float64(c * j)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (c <= -4.2e-11) tmp = c * (t * j); elseif (c <= 7.6e+67) tmp = b * (a * i); else tmp = t * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[c, -4.2e-11], N[(c * N[(t * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 7.6e+67], N[(b * N[(a * i), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4.2 \cdot 10^{-11}:\\
\;\;\;\;c \cdot \left(t \cdot j\right)\\
\mathbf{elif}\;c \leq 7.6 \cdot 10^{+67}:\\
\;\;\;\;b \cdot \left(a \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if c < -4.1999999999999997e-11Initial program 66.8%
Taylor expanded in t around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in x around inf 53.2%
Taylor expanded in c around inf 39.1%
Taylor expanded in t around 0 40.5%
if -4.1999999999999997e-11 < c < 7.60000000000000041e67Initial program 78.0%
Taylor expanded in b around inf 37.0%
*-commutative37.0%
Simplified37.0%
Taylor expanded in a around inf 32.7%
*-commutative32.7%
Simplified32.7%
if 7.60000000000000041e67 < c Initial program 65.0%
Taylor expanded in t around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in c around inf 39.7%
*-commutative39.7%
Simplified39.7%
Final simplification36.0%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* b i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (b * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (b * i);
}
def code(x, y, z, t, a, b, c, i, j): return a * (b * i)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(b * i)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (b * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(b * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(b \cdot i\right)
\end{array}
Initial program 72.7%
Taylor expanded in b around inf 33.8%
*-commutative33.8%
Simplified33.8%
Taylor expanded in a around inf 24.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(+
(- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a))))
(/
(* j (- (pow (* c t) 2.0) (pow (* i y) 2.0)))
(+ (* c t) (* i y)))))
(t_2
(-
(* x (- (* z y) (* a t)))
(- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j)))))
(if (< t -8.120978919195912e-33)
t_2
(if (< t -4.712553818218485e-169)
t_1
(if (< t -7.633533346031584e-308)
t_2
(if (< t 1.0535888557455487e-139) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (pow((c * t), 2.0) - pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ** 2.0d0) - ((i * y) ** 2.0d0))) / ((c * t) + (i * y)))
t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j))
if (t < (-8.120978919195912d-33)) then
tmp = t_2
else if (t < (-4.712553818218485d-169)) then
tmp = t_1
else if (t < (-7.633533346031584d-308)) then
tmp = t_2
else if (t < 1.0535888557455487d-139) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (Math.pow((c * t), 2.0) - Math.pow((i * y), 2.0))) / ((c * t) + (i * y)));
double t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j));
double tmp;
if (t < -8.120978919195912e-33) {
tmp = t_2;
} else if (t < -4.712553818218485e-169) {
tmp = t_1;
} else if (t < -7.633533346031584e-308) {
tmp = t_2;
} else if (t < 1.0535888557455487e-139) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (math.pow((c * t), 2.0) - math.pow((i * y), 2.0))) / ((c * t) + (i * y))) t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)) tmp = 0 if t < -8.120978919195912e-33: tmp = t_2 elif t < -4.712553818218485e-169: tmp = t_1 elif t < -7.633533346031584e-308: tmp = t_2 elif t < 1.0535888557455487e-139: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(i * a)))) + Float64(Float64(j * Float64((Float64(c * t) ^ 2.0) - (Float64(i * y) ^ 2.0))) / Float64(Float64(c * t) + Float64(i * y)))) t_2 = Float64(Float64(x * Float64(Float64(z * y) - Float64(a * t))) - Float64(Float64(b * Float64(Float64(z * c) - Float64(a * i))) - Float64(Float64(Float64(c * t) - Float64(y * i)) * j))) tmp = 0.0 if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (i * a)))) + ((j * (((c * t) ^ 2.0) - ((i * y) ^ 2.0))) / ((c * t) + (i * y))); t_2 = (x * ((z * y) - (a * t))) - ((b * ((z * c) - (a * i))) - (((c * t) - (y * i)) * j)); tmp = 0.0; if (t < -8.120978919195912e-33) tmp = t_2; elseif (t < -4.712553818218485e-169) tmp = t_1; elseif (t < -7.633533346031584e-308) tmp = t_2; elseif (t < 1.0535888557455487e-139) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(i * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(j * N[(N[Power[N[(c * t), $MachinePrecision], 2.0], $MachinePrecision] - N[Power[N[(i * y), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / N[(N[(c * t), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * N[(N[(z * y), $MachinePrecision] - N[(a * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(b * N[(N[(z * c), $MachinePrecision] - N[(a * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(c * t), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Less[t, -8.120978919195912e-33], t$95$2, If[Less[t, -4.712553818218485e-169], t$95$1, If[Less[t, -7.633533346031584e-308], t$95$2, If[Less[t, 1.0535888557455487e-139], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - i \cdot a\right)\right) + \frac{j \cdot \left({\left(c \cdot t\right)}^{2} - {\left(i \cdot y\right)}^{2}\right)}{c \cdot t + i \cdot y}\\
t_2 := x \cdot \left(z \cdot y - a \cdot t\right) - \left(b \cdot \left(z \cdot c - a \cdot i\right) - \left(c \cdot t - y \cdot i\right) \cdot j\right)\\
\mathbf{if}\;t < -8.120978919195912 \cdot 10^{-33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < -4.712553818218485 \cdot 10^{-169}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t < -7.633533346031584 \cdot 10^{-308}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t < 1.0535888557455487 \cdot 10^{-139}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
herbie shell --seed 2024144
(FPCore (x y z t a b c i j)
:name "Linear.Matrix:det33 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< t -1015122364899489/125000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t -942510763643697/2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (if (< t -238547917063487/3125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))) (if (< t 10535888557455487/100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (/ (* j (- (pow (* c t) 2) (pow (* i y) 2))) (+ (* c t) (* i y)))) (- (* x (- (* z y) (* a t))) (- (* b (- (* z c) (* a i))) (* (- (* c t) (* y i)) j))))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* i a)))) (* j (- (* c t) (* i y)))))