
(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 21 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)))
(+ (* b (- (* z c) (* t i))) (* x (- (* t a) (* y z)))))))
(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))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
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))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z))));
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))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))) 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(b * Float64(Float64(z * c) - Float64(t * i))) + Float64(x * Float64(Float64(t * a) - Float64(y * z))))) 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))) - ((b * ((z * c) - (t * i))) + (x * ((t * a) - (y * z)))); 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[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(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(b \cdot \left(z \cdot c - t \cdot i\right) + x \cdot \left(t \cdot a - y \cdot z\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 89.0%
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%
Taylor expanded in z around inf 60.9%
*-commutative60.9%
Simplified60.9%
Final simplification83.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* c (* z (- b)))) (t_2 (* x (* y z))))
(if (<= z -5.2e+181)
t_2
(if (<= z -8.2e+105)
t_1
(if (<= z -2.35e-43)
t_2
(if (<= z 3e-78)
(* b (* t i))
(if (<= z 4.4e+21) (* 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 = c * (z * -b);
double t_2 = x * (y * z);
double tmp;
if (z <= -5.2e+181) {
tmp = t_2;
} else if (z <= -8.2e+105) {
tmp = t_1;
} else if (z <= -2.35e-43) {
tmp = t_2;
} else if (z <= 3e-78) {
tmp = b * (t * i);
} else if (z <= 4.4e+21) {
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) :: t_2
real(8) :: tmp
t_1 = c * (z * -b)
t_2 = x * (y * z)
if (z <= (-5.2d+181)) then
tmp = t_2
else if (z <= (-8.2d+105)) then
tmp = t_1
else if (z <= (-2.35d-43)) then
tmp = t_2
else if (z <= 3d-78) then
tmp = b * (t * i)
else if (z <= 4.4d+21) 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 = c * (z * -b);
double t_2 = x * (y * z);
double tmp;
if (z <= -5.2e+181) {
tmp = t_2;
} else if (z <= -8.2e+105) {
tmp = t_1;
} else if (z <= -2.35e-43) {
tmp = t_2;
} else if (z <= 3e-78) {
tmp = b * (t * i);
} else if (z <= 4.4e+21) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = c * (z * -b) t_2 = x * (y * z) tmp = 0 if z <= -5.2e+181: tmp = t_2 elif z <= -8.2e+105: tmp = t_1 elif z <= -2.35e-43: tmp = t_2 elif z <= 3e-78: tmp = b * (t * i) elif z <= 4.4e+21: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(c * Float64(z * Float64(-b))) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -5.2e+181) tmp = t_2; elseif (z <= -8.2e+105) tmp = t_1; elseif (z <= -2.35e-43) tmp = t_2; elseif (z <= 3e-78) tmp = Float64(b * Float64(t * i)); elseif (z <= 4.4e+21) 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 = c * (z * -b); t_2 = x * (y * z); tmp = 0.0; if (z <= -5.2e+181) tmp = t_2; elseif (z <= -8.2e+105) tmp = t_1; elseif (z <= -2.35e-43) tmp = t_2; elseif (z <= 3e-78) tmp = b * (t * i); elseif (z <= 4.4e+21) 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[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -5.2e+181], t$95$2, If[LessEqual[z, -8.2e+105], t$95$1, If[LessEqual[z, -2.35e-43], t$95$2, If[LessEqual[z, 3e-78], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e+21], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(z \cdot \left(-b\right)\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -5.2 \cdot 10^{+181}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -8.2 \cdot 10^{+105}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.35 \cdot 10^{-43}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 3 \cdot 10^{-78}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{+21}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -5.2e181 or -8.2000000000000005e105 < z < -2.35e-43Initial program 68.2%
Taylor expanded in y around inf 64.8%
+-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
*-commutative64.8%
Simplified64.8%
Taylor expanded in z around inf 57.6%
*-commutative57.6%
Simplified57.6%
if -5.2e181 < z < -8.2000000000000005e105 or 4.4e21 < z Initial program 61.2%
Taylor expanded in c around 0 67.7%
Taylor expanded in c around inf 47.4%
*-commutative47.4%
*-commutative47.4%
*-commutative47.4%
Simplified47.4%
Taylor expanded in a around 0 42.2%
mul-1-neg42.2%
*-commutative42.2%
distribute-rgt-neg-in42.2%
Simplified42.2%
if -2.35e-43 < z < 2.99999999999999988e-78Initial program 78.8%
Taylor expanded in t around inf 46.6%
distribute-lft-out--46.6%
Simplified46.6%
Taylor expanded in a around 0 31.3%
if 2.99999999999999988e-78 < z < 4.4e21Initial program 72.6%
Taylor expanded in c around 0 61.8%
Taylor expanded in c around inf 51.8%
*-commutative51.8%
*-commutative51.8%
*-commutative51.8%
Simplified51.8%
Taylor expanded in a around inf 40.6%
Final simplification41.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -7.6e-81) (not (<= x 1.16e-36))) (+ (* x (- (* y z) (* t a))) (* b (- (* t i) (* z c)))) (- (* t (* b i)) (- (* y (* i j)) (* 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 ((x <= -7.6e-81) || !(x <= 1.16e-36)) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = (t * (b * i)) - ((y * (i * j)) - (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 ((x <= (-7.6d-81)) .or. (.not. (x <= 1.16d-36))) then
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)))
else
tmp = (t * (b * i)) - ((y * (i * j)) - (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 ((x <= -7.6e-81) || !(x <= 1.16e-36)) {
tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c)));
} else {
tmp = (t * (b * i)) - ((y * (i * j)) - (c * ((a * j) - (z * b))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -7.6e-81) or not (x <= 1.16e-36): tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))) else: tmp = (t * (b * i)) - ((y * (i * j)) - (c * ((a * j) - (z * b)))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -7.6e-81) || !(x <= 1.16e-36)) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = Float64(Float64(t * Float64(b * i)) - Float64(Float64(y * Float64(i * j)) - 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 ((x <= -7.6e-81) || ~((x <= 1.16e-36))) tmp = (x * ((y * z) - (t * a))) + (b * ((t * i) - (z * c))); else tmp = (t * (b * i)) - ((y * (i * j)) - (c * ((a * j) - (z * b)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -7.6e-81], N[Not[LessEqual[x, 1.16e-36]], $MachinePrecision]], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * N[(i * j), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(a * j), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -7.6 \cdot 10^{-81} \lor \neg \left(x \leq 1.16 \cdot 10^{-36}\right):\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right) - \left(y \cdot \left(i \cdot j\right) - c \cdot \left(a \cdot j - z \cdot b\right)\right)\\
\end{array}
\end{array}
if x < -7.5999999999999997e-81 or 1.16000000000000002e-36 < x Initial program 69.0%
Taylor expanded in j around 0 73.9%
*-commutative73.9%
*-commutative73.9%
Simplified73.9%
if -7.5999999999999997e-81 < x < 1.16000000000000002e-36Initial program 73.0%
Taylor expanded in c around 0 74.7%
Taylor expanded in x around 0 73.0%
cancel-sign-sub-inv73.0%
+-commutative73.0%
mul-1-neg73.0%
associate-*r*76.7%
unsub-neg76.7%
*-commutative76.7%
*-commutative76.7%
*-commutative76.7%
*-commutative76.7%
*-commutative76.7%
metadata-eval76.7%
associate-*r*77.7%
*-commutative77.7%
*-lft-identity77.7%
*-commutative77.7%
Simplified77.7%
Final simplification75.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -7e-33)
t_1
(if (<= y 5.5e-120)
(* b (- (* t i) (* z c)))
(if (<= y 1.1e-83)
(* z (- (* x y) (* b c)))
(if (<= y 6.8e+163) (* 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7e-33) {
tmp = t_1;
} else if (y <= 5.5e-120) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 1.1e-83) {
tmp = z * ((x * y) - (b * c));
} else if (y <= 6.8e+163) {
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 = y * ((x * z) - (i * j))
if (y <= (-7d-33)) then
tmp = t_1
else if (y <= 5.5d-120) then
tmp = b * ((t * i) - (z * c))
else if (y <= 1.1d-83) then
tmp = z * ((x * y) - (b * c))
else if (y <= 6.8d+163) 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -7e-33) {
tmp = t_1;
} else if (y <= 5.5e-120) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 1.1e-83) {
tmp = z * ((x * y) - (b * c));
} else if (y <= 6.8e+163) {
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 = y * ((x * z) - (i * j)) tmp = 0 if y <= -7e-33: tmp = t_1 elif y <= 5.5e-120: tmp = b * ((t * i) - (z * c)) elif y <= 1.1e-83: tmp = z * ((x * y) - (b * c)) elif y <= 6.8e+163: 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(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -7e-33) tmp = t_1; elseif (y <= 5.5e-120) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (y <= 1.1e-83) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (y <= 6.8e+163) 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 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -7e-33) tmp = t_1; elseif (y <= 5.5e-120) tmp = b * ((t * i) - (z * c)); elseif (y <= 1.1e-83) tmp = z * ((x * y) - (b * c)); elseif (y <= 6.8e+163) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -7e-33], t$95$1, If[LessEqual[y, 5.5e-120], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e-83], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6.8e+163], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -7 \cdot 10^{-33}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-120}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{-83}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;y \leq 6.8 \cdot 10^{+163}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -6.9999999999999997e-33 or 6.8000000000000002e163 < y Initial program 57.2%
Taylor expanded in y around inf 63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
*-commutative63.4%
Simplified63.4%
if -6.9999999999999997e-33 < y < 5.5000000000000001e-120Initial program 89.5%
Taylor expanded in b around inf 60.3%
*-commutative60.3%
Simplified60.3%
if 5.5000000000000001e-120 < y < 1.10000000000000004e-83Initial program 81.3%
Taylor expanded in z around inf 73.0%
*-commutative73.0%
Simplified73.0%
if 1.10000000000000004e-83 < y < 6.8000000000000002e163Initial program 65.9%
Taylor expanded in a around inf 60.2%
+-commutative60.2%
mul-1-neg60.2%
unsub-neg60.2%
Simplified60.2%
Final simplification62.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (or (<= j -17000000.0) (not (<= j 1.15e+47)))
(+ t_1 (* j (- (* a c) (* y i))))
(+ t_1 (* b (- (* t i) (* z c)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((j <= -17000000.0) || !(j <= 1.15e+47)) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * ((y * z) - (t * a))
if ((j <= (-17000000.0d0)) .or. (.not. (j <= 1.15d+47))) then
tmp = t_1 + (j * ((a * c) - (y * i)))
else
tmp = t_1 + (b * ((t * i) - (z * c)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * ((y * z) - (t * a));
double tmp;
if ((j <= -17000000.0) || !(j <= 1.15e+47)) {
tmp = t_1 + (j * ((a * c) - (y * i)));
} else {
tmp = t_1 + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * ((y * z) - (t * a)) tmp = 0 if (j <= -17000000.0) or not (j <= 1.15e+47): tmp = t_1 + (j * ((a * c) - (y * i))) else: tmp = t_1 + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(Float64(y * z) - Float64(t * a))) tmp = 0.0 if ((j <= -17000000.0) || !(j <= 1.15e+47)) tmp = Float64(t_1 + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(t_1 + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * ((y * z) - (t * a)); tmp = 0.0; if ((j <= -17000000.0) || ~((j <= 1.15e+47))) tmp = t_1 + (j * ((a * c) - (y * i))); else tmp = t_1 + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[Or[LessEqual[j, -17000000.0], N[Not[LessEqual[j, 1.15e+47]], $MachinePrecision]], N[(t$95$1 + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t$95$1 + N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{if}\;j \leq -17000000 \lor \neg \left(j \leq 1.15 \cdot 10^{+47}\right):\\
\;\;\;\;t\_1 + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -1.7e7 or 1.1499999999999999e47 < j Initial program 74.2%
Taylor expanded in b around 0 70.5%
if -1.7e7 < j < 1.1499999999999999e47Initial program 68.0%
Taylor expanded in j around 0 73.4%
*-commutative73.4%
*-commutative73.4%
Simplified73.4%
Final simplification72.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -8.5e+101) (not (<= z 1.9e+142))) (* z (- (* x y) (* b c))) (+ (* x (- (* y z) (* t a))) (* j (- (* a 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 ((z <= -8.5e+101) || !(z <= 1.9e+142)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * 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 ((z <= (-8.5d+101)) .or. (.not. (z <= 1.9d+142))) then
tmp = z * ((x * y) - (b * c))
else
tmp = (x * ((y * z) - (t * a))) + (j * ((a * 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 ((z <= -8.5e+101) || !(z <= 1.9e+142)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -8.5e+101) or not (z <= 1.9e+142): tmp = z * ((x * y) - (b * c)) else: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -8.5e+101) || !(z <= 1.9e+142)) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * 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 ((z <= -8.5e+101) || ~((z <= 1.9e+142))) tmp = z * ((x * y) - (b * c)); else tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -8.5e+101], N[Not[LessEqual[z, 1.9e+142]], $MachinePrecision]], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -8.5 \cdot 10^{+101} \lor \neg \left(z \leq 1.9 \cdot 10^{+142}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\end{array}
\end{array}
if z < -8.5000000000000001e101 or 1.89999999999999995e142 < z Initial program 57.4%
Taylor expanded in z around inf 79.2%
*-commutative79.2%
Simplified79.2%
if -8.5000000000000001e101 < z < 1.89999999999999995e142Initial program 77.3%
Taylor expanded in b around 0 61.4%
Final simplification67.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= x -3.7e-79)
(* x (* y z))
(if (<= x -8.5e-222)
(* c (* a j))
(if (<= x 3.8e-165)
(* y (* i (- j)))
(if (<= x 2.8e+68) (* c (* z (- b))) (* (* x 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 (x <= -3.7e-79) {
tmp = x * (y * z);
} else if (x <= -8.5e-222) {
tmp = c * (a * j);
} else if (x <= 3.8e-165) {
tmp = y * (i * -j);
} else if (x <= 2.8e+68) {
tmp = c * (z * -b);
} else {
tmp = (x * 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 (x <= (-3.7d-79)) then
tmp = x * (y * z)
else if (x <= (-8.5d-222)) then
tmp = c * (a * j)
else if (x <= 3.8d-165) then
tmp = y * (i * -j)
else if (x <= 2.8d+68) then
tmp = c * (z * -b)
else
tmp = (x * 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 (x <= -3.7e-79) {
tmp = x * (y * z);
} else if (x <= -8.5e-222) {
tmp = c * (a * j);
} else if (x <= 3.8e-165) {
tmp = y * (i * -j);
} else if (x <= 2.8e+68) {
tmp = c * (z * -b);
} else {
tmp = (x * t) * -a;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if x <= -3.7e-79: tmp = x * (y * z) elif x <= -8.5e-222: tmp = c * (a * j) elif x <= 3.8e-165: tmp = y * (i * -j) elif x <= 2.8e+68: tmp = c * (z * -b) else: tmp = (x * t) * -a return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (x <= -3.7e-79) tmp = Float64(x * Float64(y * z)); elseif (x <= -8.5e-222) tmp = Float64(c * Float64(a * j)); elseif (x <= 3.8e-165) tmp = Float64(y * Float64(i * Float64(-j))); elseif (x <= 2.8e+68) tmp = Float64(c * Float64(z * Float64(-b))); else tmp = Float64(Float64(x * t) * Float64(-a)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (x <= -3.7e-79) tmp = x * (y * z); elseif (x <= -8.5e-222) tmp = c * (a * j); elseif (x <= 3.8e-165) tmp = y * (i * -j); elseif (x <= 2.8e+68) tmp = c * (z * -b); else tmp = (x * t) * -a; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[x, -3.7e-79], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.5e-222], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.8e-165], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 2.8e+68], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.7 \cdot 10^{-79}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{-222}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;x \leq 3.8 \cdot 10^{-165}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;x \leq 2.8 \cdot 10^{+68}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\end{array}
\end{array}
if x < -3.70000000000000018e-79Initial program 74.4%
Taylor expanded in y around inf 49.2%
+-commutative49.2%
mul-1-neg49.2%
unsub-neg49.2%
*-commutative49.2%
Simplified49.2%
Taylor expanded in z around inf 41.9%
*-commutative41.9%
Simplified41.9%
if -3.70000000000000018e-79 < x < -8.5000000000000003e-222Initial program 65.0%
Taylor expanded in c around 0 72.6%
Taylor expanded in c around inf 54.5%
*-commutative54.5%
*-commutative54.5%
*-commutative54.5%
Simplified54.5%
Taylor expanded in a around inf 46.3%
if -8.5000000000000003e-222 < x < 3.80000000000000018e-165Initial program 72.3%
Taylor expanded in y around inf 47.1%
+-commutative47.1%
mul-1-neg47.1%
unsub-neg47.1%
*-commutative47.1%
Simplified47.1%
Taylor expanded in z around 0 43.3%
mul-1-neg43.3%
associate-*r*43.3%
distribute-rgt-neg-in43.3%
*-commutative43.3%
Simplified43.3%
if 3.80000000000000018e-165 < x < 2.8e68Initial program 68.9%
Taylor expanded in c around 0 80.4%
Taylor expanded in c around inf 42.9%
*-commutative42.9%
*-commutative42.9%
*-commutative42.9%
Simplified42.9%
Taylor expanded in a around 0 29.5%
mul-1-neg29.5%
*-commutative29.5%
distribute-rgt-neg-in29.5%
Simplified29.5%
if 2.8e68 < x Initial program 65.7%
Taylor expanded in a around inf 50.1%
+-commutative50.1%
mul-1-neg50.1%
unsub-neg50.1%
Simplified50.1%
Taylor expanded in c around 0 47.7%
associate-*r*47.7%
neg-mul-147.7%
Simplified47.7%
Final simplification41.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -8.2e-30)
t_1
(if (<= y 3.8e-306)
(* c (* z (- b)))
(if (<= y 1.9e-76)
(* b (* t i))
(if (<= y 8.5e+117) (* (* x 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 = x * (y * z);
double tmp;
if (y <= -8.2e-30) {
tmp = t_1;
} else if (y <= 3.8e-306) {
tmp = c * (z * -b);
} else if (y <= 1.9e-76) {
tmp = b * (t * i);
} else if (y <= 8.5e+117) {
tmp = (x * 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 = x * (y * z)
if (y <= (-8.2d-30)) then
tmp = t_1
else if (y <= 3.8d-306) then
tmp = c * (z * -b)
else if (y <= 1.9d-76) then
tmp = b * (t * i)
else if (y <= 8.5d+117) then
tmp = (x * 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 = x * (y * z);
double tmp;
if (y <= -8.2e-30) {
tmp = t_1;
} else if (y <= 3.8e-306) {
tmp = c * (z * -b);
} else if (y <= 1.9e-76) {
tmp = b * (t * i);
} else if (y <= 8.5e+117) {
tmp = (x * t) * -a;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -8.2e-30: tmp = t_1 elif y <= 3.8e-306: tmp = c * (z * -b) elif y <= 1.9e-76: tmp = b * (t * i) elif y <= 8.5e+117: tmp = (x * t) * -a else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -8.2e-30) tmp = t_1; elseif (y <= 3.8e-306) tmp = Float64(c * Float64(z * Float64(-b))); elseif (y <= 1.9e-76) tmp = Float64(b * Float64(t * i)); elseif (y <= 8.5e+117) tmp = Float64(Float64(x * t) * Float64(-a)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -8.2e-30) tmp = t_1; elseif (y <= 3.8e-306) tmp = c * (z * -b); elseif (y <= 1.9e-76) tmp = b * (t * i); elseif (y <= 8.5e+117) tmp = (x * 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -8.2e-30], t$95$1, If[LessEqual[y, 3.8e-306], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.9e-76], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.5e+117], N[(N[(x * t), $MachinePrecision] * (-a)), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -8.2 \cdot 10^{-30}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 3.8 \cdot 10^{-306}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.9 \cdot 10^{-76}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 8.5 \cdot 10^{+117}:\\
\;\;\;\;\left(x \cdot t\right) \cdot \left(-a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -8.2000000000000007e-30 or 8.49999999999999966e117 < y Initial program 56.3%
Taylor expanded in y around inf 61.3%
+-commutative61.3%
mul-1-neg61.3%
unsub-neg61.3%
*-commutative61.3%
Simplified61.3%
Taylor expanded in z around inf 37.7%
*-commutative37.7%
Simplified37.7%
if -8.2000000000000007e-30 < y < 3.8e-306Initial program 89.9%
Taylor expanded in c around 0 89.8%
Taylor expanded in c around inf 52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in a around 0 38.4%
mul-1-neg38.4%
*-commutative38.4%
distribute-rgt-neg-in38.4%
Simplified38.4%
if 3.8e-306 < y < 1.9000000000000001e-76Initial program 84.2%
Taylor expanded in t around inf 48.6%
distribute-lft-out--48.6%
Simplified48.6%
Taylor expanded in a around 0 41.0%
if 1.9000000000000001e-76 < y < 8.49999999999999966e117Initial program 72.7%
Taylor expanded in a around inf 59.2%
+-commutative59.2%
mul-1-neg59.2%
unsub-neg59.2%
Simplified59.2%
Taylor expanded in c around 0 48.5%
associate-*r*48.5%
neg-mul-148.5%
Simplified48.5%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= y -1.95e-29)
t_1
(if (<= y 4.6e-307)
(* c (* z (- b)))
(if (<= y 1.6e-76)
(* b (* t i))
(if (<= y 1.1e+116) (* t (* x (- a))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -1.95e-29) {
tmp = t_1;
} else if (y <= 4.6e-307) {
tmp = c * (z * -b);
} else if (y <= 1.6e-76) {
tmp = b * (t * i);
} else if (y <= 1.1e+116) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = x * (y * z)
if (y <= (-1.95d-29)) then
tmp = t_1
else if (y <= 4.6d-307) then
tmp = c * (z * -b)
else if (y <= 1.6d-76) then
tmp = b * (t * i)
else if (y <= 1.1d+116) then
tmp = t * (x * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = x * (y * z);
double tmp;
if (y <= -1.95e-29) {
tmp = t_1;
} else if (y <= 4.6e-307) {
tmp = c * (z * -b);
} else if (y <= 1.6e-76) {
tmp = b * (t * i);
} else if (y <= 1.1e+116) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if y <= -1.95e-29: tmp = t_1 elif y <= 4.6e-307: tmp = c * (z * -b) elif y <= 1.6e-76: tmp = b * (t * i) elif y <= 1.1e+116: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (y <= -1.95e-29) tmp = t_1; elseif (y <= 4.6e-307) tmp = Float64(c * Float64(z * Float64(-b))); elseif (y <= 1.6e-76) tmp = Float64(b * Float64(t * i)); elseif (y <= 1.1e+116) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = x * (y * z); tmp = 0.0; if (y <= -1.95e-29) tmp = t_1; elseif (y <= 4.6e-307) tmp = c * (z * -b); elseif (y <= 1.6e-76) tmp = b * (t * i); elseif (y <= 1.1e+116) tmp = t * (x * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.95e-29], t$95$1, If[LessEqual[y, 4.6e-307], N[(c * N[(z * (-b)), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.6e-76], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.1e+116], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;y \leq -1.95 \cdot 10^{-29}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 4.6 \cdot 10^{-307}:\\
\;\;\;\;c \cdot \left(z \cdot \left(-b\right)\right)\\
\mathbf{elif}\;y \leq 1.6 \cdot 10^{-76}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+116}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.9499999999999999e-29 or 1.1e116 < y Initial program 56.0%
Taylor expanded in y around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in z around inf 37.4%
*-commutative37.4%
Simplified37.4%
if -1.9499999999999999e-29 < y < 4.5999999999999998e-307Initial program 89.9%
Taylor expanded in c around 0 89.8%
Taylor expanded in c around inf 52.1%
*-commutative52.1%
*-commutative52.1%
*-commutative52.1%
Simplified52.1%
Taylor expanded in a around 0 38.4%
mul-1-neg38.4%
*-commutative38.4%
distribute-rgt-neg-in38.4%
Simplified38.4%
if 4.5999999999999998e-307 < y < 1.5999999999999999e-76Initial program 84.2%
Taylor expanded in t around inf 48.6%
distribute-lft-out--48.6%
Simplified48.6%
Taylor expanded in a around 0 41.0%
if 1.5999999999999999e-76 < y < 1.1e116Initial program 74.5%
Taylor expanded in t around inf 50.0%
distribute-lft-out--50.0%
Simplified50.0%
Taylor expanded in a around inf 49.8%
associate-*r*49.8%
neg-mul-149.8%
Simplified49.8%
Final simplification40.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -5.2e+114)
(* t (* x (- a)))
(if (<= t -4.4e-135)
(* b (* z (- c)))
(if (<= t 2.15e-190)
(* i (* y (- j)))
(if (<= t 8.5e+86) (* x (* y z)) (* b (* t i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -5.2e+114) {
tmp = t * (x * -a);
} else if (t <= -4.4e-135) {
tmp = b * (z * -c);
} else if (t <= 2.15e-190) {
tmp = i * (y * -j);
} else if (t <= 8.5e+86) {
tmp = x * (y * z);
} else {
tmp = b * (t * 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 (t <= (-5.2d+114)) then
tmp = t * (x * -a)
else if (t <= (-4.4d-135)) then
tmp = b * (z * -c)
else if (t <= 2.15d-190) then
tmp = i * (y * -j)
else if (t <= 8.5d+86) then
tmp = x * (y * z)
else
tmp = b * (t * 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 (t <= -5.2e+114) {
tmp = t * (x * -a);
} else if (t <= -4.4e-135) {
tmp = b * (z * -c);
} else if (t <= 2.15e-190) {
tmp = i * (y * -j);
} else if (t <= 8.5e+86) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -5.2e+114: tmp = t * (x * -a) elif t <= -4.4e-135: tmp = b * (z * -c) elif t <= 2.15e-190: tmp = i * (y * -j) elif t <= 8.5e+86: tmp = x * (y * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -5.2e+114) tmp = Float64(t * Float64(x * Float64(-a))); elseif (t <= -4.4e-135) tmp = Float64(b * Float64(z * Float64(-c))); elseif (t <= 2.15e-190) tmp = Float64(i * Float64(y * Float64(-j))); elseif (t <= 8.5e+86) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -5.2e+114) tmp = t * (x * -a); elseif (t <= -4.4e-135) tmp = b * (z * -c); elseif (t <= 2.15e-190) tmp = i * (y * -j); elseif (t <= 8.5e+86) tmp = x * (y * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -5.2e+114], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.4e-135], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.15e-190], N[(i * N[(y * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+86], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -5.2 \cdot 10^{+114}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;t \leq -4.4 \cdot 10^{-135}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;t \leq 2.15 \cdot 10^{-190}:\\
\;\;\;\;i \cdot \left(y \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+86}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -5.2000000000000001e114Initial program 63.9%
Taylor expanded in t around inf 64.7%
distribute-lft-out--64.7%
Simplified64.7%
Taylor expanded in a around inf 38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if -5.2000000000000001e114 < t < -4.3999999999999999e-135Initial program 72.6%
Taylor expanded in c around 0 64.8%
Taylor expanded in c around inf 49.0%
*-commutative49.0%
*-commutative49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in a around 0 40.9%
mul-1-neg40.9%
*-commutative40.9%
distribute-rgt-neg-in40.9%
*-commutative40.9%
Simplified40.9%
if -4.3999999999999999e-135 < t < 2.15e-190Initial program 77.2%
Taylor expanded in y around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in z around 0 48.7%
if 2.15e-190 < t < 8.5000000000000005e86Initial program 74.8%
Taylor expanded in y around inf 44.4%
+-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in z around inf 37.4%
*-commutative37.4%
Simplified37.4%
if 8.5000000000000005e86 < t Initial program 60.7%
Taylor expanded in t around inf 68.1%
distribute-lft-out--68.1%
Simplified68.1%
Taylor expanded in a around 0 47.9%
Final simplification42.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= t -1.2e+114)
(* t (* x (- a)))
(if (<= t -1.15e-136)
(* b (* z (- c)))
(if (<= t 7e-189)
(* y (* i (- j)))
(if (<= t 8.5e+86) (* x (* y z)) (* b (* t i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (t <= -1.2e+114) {
tmp = t * (x * -a);
} else if (t <= -1.15e-136) {
tmp = b * (z * -c);
} else if (t <= 7e-189) {
tmp = y * (i * -j);
} else if (t <= 8.5e+86) {
tmp = x * (y * z);
} else {
tmp = b * (t * 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 (t <= (-1.2d+114)) then
tmp = t * (x * -a)
else if (t <= (-1.15d-136)) then
tmp = b * (z * -c)
else if (t <= 7d-189) then
tmp = y * (i * -j)
else if (t <= 8.5d+86) then
tmp = x * (y * z)
else
tmp = b * (t * 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 (t <= -1.2e+114) {
tmp = t * (x * -a);
} else if (t <= -1.15e-136) {
tmp = b * (z * -c);
} else if (t <= 7e-189) {
tmp = y * (i * -j);
} else if (t <= 8.5e+86) {
tmp = x * (y * z);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if t <= -1.2e+114: tmp = t * (x * -a) elif t <= -1.15e-136: tmp = b * (z * -c) elif t <= 7e-189: tmp = y * (i * -j) elif t <= 8.5e+86: tmp = x * (y * z) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (t <= -1.2e+114) tmp = Float64(t * Float64(x * Float64(-a))); elseif (t <= -1.15e-136) tmp = Float64(b * Float64(z * Float64(-c))); elseif (t <= 7e-189) tmp = Float64(y * Float64(i * Float64(-j))); elseif (t <= 8.5e+86) tmp = Float64(x * Float64(y * z)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (t <= -1.2e+114) tmp = t * (x * -a); elseif (t <= -1.15e-136) tmp = b * (z * -c); elseif (t <= 7e-189) tmp = y * (i * -j); elseif (t <= 8.5e+86) tmp = x * (y * z); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[t, -1.2e+114], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.15e-136], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 7e-189], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 8.5e+86], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{+114}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{elif}\;t \leq -1.15 \cdot 10^{-136}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;t \leq 7 \cdot 10^{-189}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;t \leq 8.5 \cdot 10^{+86}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if t < -1.2e114Initial program 63.9%
Taylor expanded in t around inf 64.7%
distribute-lft-out--64.7%
Simplified64.7%
Taylor expanded in a around inf 38.1%
associate-*r*38.1%
neg-mul-138.1%
Simplified38.1%
if -1.2e114 < t < -1.14999999999999999e-136Initial program 72.6%
Taylor expanded in c around 0 64.8%
Taylor expanded in c around inf 49.0%
*-commutative49.0%
*-commutative49.0%
*-commutative49.0%
Simplified49.0%
Taylor expanded in a around 0 40.9%
mul-1-neg40.9%
*-commutative40.9%
distribute-rgt-neg-in40.9%
*-commutative40.9%
Simplified40.9%
if -1.14999999999999999e-136 < t < 7.0000000000000003e-189Initial program 77.2%
Taylor expanded in y around inf 61.0%
+-commutative61.0%
mul-1-neg61.0%
unsub-neg61.0%
*-commutative61.0%
Simplified61.0%
Taylor expanded in z around 0 48.7%
mul-1-neg48.7%
associate-*r*44.6%
distribute-rgt-neg-in44.6%
*-commutative44.6%
Simplified44.6%
if 7.0000000000000003e-189 < t < 8.5000000000000005e86Initial program 74.8%
Taylor expanded in y around inf 44.4%
+-commutative44.4%
mul-1-neg44.4%
unsub-neg44.4%
*-commutative44.4%
Simplified44.4%
Taylor expanded in z around inf 37.4%
*-commutative37.4%
Simplified37.4%
if 8.5000000000000005e86 < t Initial program 60.7%
Taylor expanded in t around inf 68.1%
distribute-lft-out--68.1%
Simplified68.1%
Taylor expanded in a around 0 47.9%
Final simplification41.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -5.4e-32)
t_1
(if (<= y 2.8e-91)
(* b (- (* t i) (* z c)))
(if (<= y 9e+163) (* 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.4e-32) {
tmp = t_1;
} else if (y <= 2.8e-91) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 9e+163) {
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 = y * ((x * z) - (i * j))
if (y <= (-5.4d-32)) then
tmp = t_1
else if (y <= 2.8d-91) then
tmp = b * ((t * i) - (z * c))
else if (y <= 9d+163) 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -5.4e-32) {
tmp = t_1;
} else if (y <= 2.8e-91) {
tmp = b * ((t * i) - (z * c));
} else if (y <= 9e+163) {
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 = y * ((x * z) - (i * j)) tmp = 0 if y <= -5.4e-32: tmp = t_1 elif y <= 2.8e-91: tmp = b * ((t * i) - (z * c)) elif y <= 9e+163: 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(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -5.4e-32) tmp = t_1; elseif (y <= 2.8e-91) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (y <= 9e+163) 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 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -5.4e-32) tmp = t_1; elseif (y <= 2.8e-91) tmp = b * ((t * i) - (z * c)); elseif (y <= 9e+163) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -5.4e-32], t$95$1, If[LessEqual[y, 2.8e-91], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 9e+163], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -5.4 \cdot 10^{-32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 2.8 \cdot 10^{-91}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;y \leq 9 \cdot 10^{+163}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -5.39999999999999962e-32 or 8.99999999999999976e163 < y Initial program 57.2%
Taylor expanded in y around inf 63.4%
+-commutative63.4%
mul-1-neg63.4%
unsub-neg63.4%
*-commutative63.4%
Simplified63.4%
if -5.39999999999999962e-32 < y < 2.8e-91Initial program 88.4%
Taylor expanded in b around inf 57.2%
*-commutative57.2%
Simplified57.2%
if 2.8e-91 < y < 8.99999999999999976e163Initial program 66.6%
Taylor expanded in a around inf 59.1%
+-commutative59.1%
mul-1-neg59.1%
unsub-neg59.1%
Simplified59.1%
Final simplification60.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))))
(if (<= j -39000.0)
t_1
(if (<= j 1.7e-268)
(* b (- (* t i) (* z c)))
(if (<= j 9.5e+46) (* t (- (* b i) (* x a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -39000.0) {
tmp = t_1;
} else if (j <= 1.7e-268) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 9.5e+46) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = j * ((a * c) - (y * i))
if (j <= (-39000.0d0)) then
tmp = t_1
else if (j <= 1.7d-268) then
tmp = b * ((t * i) - (z * c))
else if (j <= 9.5d+46) then
tmp = t * ((b * i) - (x * a))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = j * ((a * c) - (y * i));
double tmp;
if (j <= -39000.0) {
tmp = t_1;
} else if (j <= 1.7e-268) {
tmp = b * ((t * i) - (z * c));
} else if (j <= 9.5e+46) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) tmp = 0 if j <= -39000.0: tmp = t_1 elif j <= 1.7e-268: tmp = b * ((t * i) - (z * c)) elif j <= 9.5e+46: tmp = t * ((b * i) - (x * a)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(j * Float64(Float64(a * c) - Float64(y * i))) tmp = 0.0 if (j <= -39000.0) tmp = t_1; elseif (j <= 1.7e-268) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); elseif (j <= 9.5e+46) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = j * ((a * c) - (y * i)); tmp = 0.0; if (j <= -39000.0) tmp = t_1; elseif (j <= 1.7e-268) tmp = b * ((t * i) - (z * c)); elseif (j <= 9.5e+46) tmp = t * ((b * i) - (x * a)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -39000.0], t$95$1, If[LessEqual[j, 1.7e-268], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.5e+46], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;j \leq -39000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.7 \cdot 10^{-268}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{elif}\;j \leq 9.5 \cdot 10^{+46}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -39000 or 9.5000000000000008e46 < j Initial program 74.5%
Taylor expanded in c around 0 67.2%
Taylor expanded in j around inf 60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
*-commutative60.5%
Simplified60.5%
if -39000 < j < 1.7e-268Initial program 64.8%
Taylor expanded in b around inf 56.7%
*-commutative56.7%
Simplified56.7%
if 1.7e-268 < j < 9.5000000000000008e46Initial program 71.6%
Taylor expanded in t around inf 53.6%
distribute-lft-out--53.6%
Simplified53.6%
Taylor expanded in t around 0 53.6%
mul-1-neg53.6%
*-commutative53.6%
fmm-undef53.6%
distribute-rgt-neg-out53.6%
neg-mul-153.6%
fmm-undef53.6%
*-commutative53.6%
distribute-lft-out--53.6%
mul-1-neg53.6%
distribute-lft-neg-out53.6%
cancel-sign-sub53.6%
+-commutative53.6%
*-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
Final simplification57.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -2.05e-7)
t_1
(if (<= a -1.75e-234)
(* t (* b i))
(if (<= a 2.6e+95) (* x (* y z)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.05e-7) {
tmp = t_1;
} else if (a <= -1.75e-234) {
tmp = t * (b * i);
} else if (a <= 2.6e+95) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-2.05d-7)) then
tmp = t_1
else if (a <= (-1.75d-234)) then
tmp = t * (b * i)
else if (a <= 2.6d+95) then
tmp = x * (y * z)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.05e-7) {
tmp = t_1;
} else if (a <= -1.75e-234) {
tmp = t * (b * i);
} else if (a <= 2.6e+95) {
tmp = x * (y * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * ((c * j) - (x * t)) tmp = 0 if a <= -2.05e-7: tmp = t_1 elif a <= -1.75e-234: tmp = t * (b * i) elif a <= 2.6e+95: tmp = x * (y * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(Float64(c * j) - Float64(x * t))) tmp = 0.0 if (a <= -2.05e-7) tmp = t_1; elseif (a <= -1.75e-234) tmp = Float64(t * Float64(b * i)); elseif (a <= 2.6e+95) tmp = Float64(x * Float64(y * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.05e-7) tmp = t_1; elseif (a <= -1.75e-234) tmp = t * (b * i); elseif (a <= 2.6e+95) tmp = x * (y * z); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.05e-7], t$95$1, If[LessEqual[a, -1.75e-234], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.6e+95], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{if}\;a \leq -2.05 \cdot 10^{-7}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.75 \cdot 10^{-234}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{+95}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.05e-7 or 2.5999999999999999e95 < a Initial program 67.1%
Taylor expanded in a around inf 60.1%
+-commutative60.1%
mul-1-neg60.1%
unsub-neg60.1%
Simplified60.1%
if -2.05e-7 < a < -1.7500000000000001e-234Initial program 74.1%
Taylor expanded in t around inf 37.7%
distribute-lft-out--37.7%
Simplified37.7%
Taylor expanded in a around 0 32.7%
associate-*r*35.8%
*-commutative35.8%
*-commutative35.8%
Simplified35.8%
if -1.7500000000000001e-234 < a < 2.5999999999999999e95Initial program 73.0%
Taylor expanded in y around inf 50.8%
+-commutative50.8%
mul-1-neg50.8%
unsub-neg50.8%
*-commutative50.8%
Simplified50.8%
Taylor expanded in z around inf 35.7%
*-commutative35.7%
Simplified35.7%
Final simplification46.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (* y z))))
(if (<= z -2.65e-43)
t_1
(if (<= z 2.8e-80) (* b (* t i)) (if (<= z 1.6e+73) (* 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 = x * (y * z);
double tmp;
if (z <= -2.65e-43) {
tmp = t_1;
} else if (z <= 2.8e-80) {
tmp = b * (t * i);
} else if (z <= 1.6e+73) {
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 = x * (y * z)
if (z <= (-2.65d-43)) then
tmp = t_1
else if (z <= 2.8d-80) then
tmp = b * (t * i)
else if (z <= 1.6d+73) 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 = x * (y * z);
double tmp;
if (z <= -2.65e-43) {
tmp = t_1;
} else if (z <= 2.8e-80) {
tmp = b * (t * i);
} else if (z <= 1.6e+73) {
tmp = c * (a * j);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = x * (y * z) tmp = 0 if z <= -2.65e-43: tmp = t_1 elif z <= 2.8e-80: tmp = b * (t * i) elif z <= 1.6e+73: tmp = c * (a * j) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -2.65e-43) tmp = t_1; elseif (z <= 2.8e-80) tmp = Float64(b * Float64(t * i)); elseif (z <= 1.6e+73) 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 = x * (y * z); tmp = 0.0; if (z <= -2.65e-43) tmp = t_1; elseif (z <= 2.8e-80) tmp = b * (t * i); elseif (z <= 1.6e+73) 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[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.65e-43], t$95$1, If[LessEqual[z, 2.8e-80], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.6e+73], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -2.65 \cdot 10^{-43}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-80}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq 1.6 \cdot 10^{+73}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.6500000000000002e-43 or 1.59999999999999991e73 < z Initial program 63.9%
Taylor expanded in y around inf 49.6%
+-commutative49.6%
mul-1-neg49.6%
unsub-neg49.6%
*-commutative49.6%
Simplified49.6%
Taylor expanded in z around inf 43.1%
*-commutative43.1%
Simplified43.1%
if -2.6500000000000002e-43 < z < 2.79999999999999989e-80Initial program 78.8%
Taylor expanded in t around inf 46.6%
distribute-lft-out--46.6%
Simplified46.6%
Taylor expanded in a around 0 31.3%
if 2.79999999999999989e-80 < z < 1.59999999999999991e73Initial program 70.8%
Taylor expanded in c around 0 67.0%
Taylor expanded in c around inf 46.0%
*-commutative46.0%
*-commutative46.0%
*-commutative46.0%
Simplified46.0%
Taylor expanded in a around inf 31.3%
Final simplification37.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -1.55e-43) (not (<= z 3.6e+64))) (* z (- (* x y) (* b c))) (* i (- (* t b) (* y j)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.55e-43) || !(z <= 3.6e+64)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-1.55d-43)) .or. (.not. (z <= 3.6d+64))) then
tmp = z * ((x * y) - (b * c))
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -1.55e-43) || !(z <= 3.6e+64)) {
tmp = z * ((x * y) - (b * c));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -1.55e-43) or not (z <= 3.6e+64): tmp = z * ((x * y) - (b * c)) else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -1.55e-43) || !(z <= 3.6e+64)) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -1.55e-43) || ~((z <= 3.6e+64))) tmp = z * ((x * y) - (b * c)); else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -1.55e-43], N[Not[LessEqual[z, 3.6e+64]], $MachinePrecision]], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.55 \cdot 10^{-43} \lor \neg \left(z \leq 3.6 \cdot 10^{+64}\right):\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if z < -1.55e-43 or 3.60000000000000014e64 < z Initial program 65.0%
Taylor expanded in z around inf 69.3%
*-commutative69.3%
Simplified69.3%
if -1.55e-43 < z < 3.60000000000000014e64Initial program 76.4%
Taylor expanded in i around inf 53.3%
distribute-lft-out--53.3%
*-commutative53.3%
*-commutative53.3%
Simplified53.3%
Final simplification61.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -480000.0) (not (<= j 9e+46))) (* j (- (* a c) (* y i))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -480000.0) || !(j <= 9e+46)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((j <= (-480000.0d0)) .or. (.not. (j <= 9d+46))) then
tmp = j * ((a * c) - (y * i))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -480000.0) || !(j <= 9e+46)) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -480000.0) or not (j <= 9e+46): tmp = j * ((a * c) - (y * i)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -480000.0) || !(j <= 9e+46)) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -480000.0) || ~((j <= 9e+46))) tmp = j * ((a * c) - (y * i)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -480000.0], N[Not[LessEqual[j, 9e+46]], $MachinePrecision]], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -480000 \lor \neg \left(j \leq 9 \cdot 10^{+46}\right):\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if j < -4.8e5 or 9.00000000000000019e46 < j Initial program 74.5%
Taylor expanded in c around 0 67.2%
Taylor expanded in j around inf 60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
*-commutative60.5%
Simplified60.5%
if -4.8e5 < j < 9.00000000000000019e46Initial program 67.8%
Taylor expanded in b around inf 50.0%
*-commutative50.0%
Simplified50.0%
Final simplification54.5%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -4.8e+43) (not (<= a 6.4e+103))) (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4.8e+43) || !(a <= 6.4e+103)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((a <= (-4.8d+43)) .or. (.not. (a <= 6.4d+103))) then
tmp = a * ((c * j) - (x * t))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((a <= -4.8e+43) || !(a <= 6.4e+103)) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (a <= -4.8e+43) or not (a <= 6.4e+103): tmp = a * ((c * j) - (x * t)) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((a <= -4.8e+43) || !(a <= 6.4e+103)) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((a <= -4.8e+43) || ~((a <= 6.4e+103))) tmp = a * ((c * j) - (x * t)); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[a, -4.8e+43], N[Not[LessEqual[a, 6.4e+103]], $MachinePrecision]], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -4.8 \cdot 10^{+43} \lor \neg \left(a \leq 6.4 \cdot 10^{+103}\right):\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if a < -4.80000000000000046e43 or 6.39999999999999985e103 < a Initial program 65.1%
Taylor expanded in a around inf 64.7%
+-commutative64.7%
mul-1-neg64.7%
unsub-neg64.7%
Simplified64.7%
if -4.80000000000000046e43 < a < 6.39999999999999985e103Initial program 74.1%
Taylor expanded in b around inf 45.0%
*-commutative45.0%
Simplified45.0%
Final simplification52.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= j -12500000.0) (not (<= j 1.2e+47))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((j <= -12500000.0) || !(j <= 1.2e+47)) {
tmp = a * (c * j);
} else {
tmp = b * (t * 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 ((j <= (-12500000.0d0)) .or. (.not. (j <= 1.2d+47))) then
tmp = a * (c * j)
else
tmp = b * (t * 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 ((j <= -12500000.0) || !(j <= 1.2e+47)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (j <= -12500000.0) or not (j <= 1.2e+47): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((j <= -12500000.0) || !(j <= 1.2e+47)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((j <= -12500000.0) || ~((j <= 1.2e+47))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[j, -12500000.0], N[Not[LessEqual[j, 1.2e+47]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -12500000 \lor \neg \left(j \leq 1.2 \cdot 10^{+47}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if j < -1.25e7 or 1.20000000000000009e47 < j Initial program 74.5%
Taylor expanded in a around inf 43.1%
+-commutative43.1%
mul-1-neg43.1%
unsub-neg43.1%
Simplified43.1%
Taylor expanded in c around inf 34.1%
if -1.25e7 < j < 1.20000000000000009e47Initial program 67.8%
Taylor expanded in t around inf 46.7%
distribute-lft-out--46.7%
Simplified46.7%
Taylor expanded in a around 0 26.8%
Final simplification29.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= j -150000.0) (* c (* a j)) (if (<= j 9.2e+46) (* b (* t i)) (* 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 (j <= -150000.0) {
tmp = c * (a * j);
} else if (j <= 9.2e+46) {
tmp = b * (t * i);
} 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 (j <= (-150000.0d0)) then
tmp = c * (a * j)
else if (j <= 9.2d+46) then
tmp = b * (t * i)
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 (j <= -150000.0) {
tmp = c * (a * j);
} else if (j <= 9.2e+46) {
tmp = b * (t * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if j <= -150000.0: tmp = c * (a * j) elif j <= 9.2e+46: tmp = b * (t * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (j <= -150000.0) tmp = Float64(c * Float64(a * j)); elseif (j <= 9.2e+46) tmp = Float64(b * Float64(t * i)); 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 (j <= -150000.0) tmp = c * (a * j); elseif (j <= 9.2e+46) tmp = b * (t * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[j, -150000.0], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 9.2e+46], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -150000:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;j \leq 9.2 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if j < -1.5e5Initial program 74.3%
Taylor expanded in c around 0 69.5%
Taylor expanded in c around inf 45.1%
*-commutative45.1%
*-commutative45.1%
*-commutative45.1%
Simplified45.1%
Taylor expanded in a around inf 38.5%
if -1.5e5 < j < 9.2000000000000002e46Initial program 67.8%
Taylor expanded in t around inf 46.7%
distribute-lft-out--46.7%
Simplified46.7%
Taylor expanded in a around 0 26.8%
if 9.2000000000000002e46 < j Initial program 74.8%
Taylor expanded in a around inf 44.2%
+-commutative44.2%
mul-1-neg44.2%
unsub-neg44.2%
Simplified44.2%
Taylor expanded in c around inf 33.8%
Final simplification30.9%
(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 70.6%
Taylor expanded in a around inf 35.1%
+-commutative35.1%
mul-1-neg35.1%
unsub-neg35.1%
Simplified35.1%
Taylor expanded in c around inf 18.5%
(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 2024186
(FPCore (x y z t a b c i j)
:name "Data.Colour.Matrix:determinant from colour-2.3.3, A"
:precision binary64
:alt
(! :herbie-platform default (if (< x -293938859355541/2000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))) (if (< x 32113527362226803/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (- (* (- (* b i) (* x a)) t) (- (* z (* c b)) (* j (- (* c a) (* y i))))) (+ (- (* x (- (* y z) (* t a))) (/ (* b (- (pow (* c z) 2) (pow (* t i) 2))) (+ (* c z) (* t i)))) (* j (- (* c a) (* y i)))))))
(+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))