
(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 22 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* t i)))) (* j (- (* c a) (* y i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)));
}
def code(x, y, z, t, a, b, c, i, j): return ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i)))
function code(x, y, z, t, a, b, c, i, j) return Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(c * z) - Float64(t * i)))) + Float64(j * Float64(Float64(c * a) - Float64(y * i)))) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = ((x * ((y * z) - (t * a))) - (b * ((c * z) - (t * i)))) + (j * ((c * a) - (y * i))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(c * z), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(c * a), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(c \cdot z - t \cdot i\right)\right) + j \cdot \left(c \cdot a - y \cdot i\right)
\end{array}
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1
(-
(* j (- (* a c) (* y i)))
(- (* x (- (* t a) (* y z))) (* b (- (* t i) (* z c)))))))
(if (<= t_1 INFINITY) t_1 (* (* y z) (- x (* i (/ j z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (y * z) * (x - (i * (j / z)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c))));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = (y * z) * (x - (i * (j / z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c)))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = (y * z) * (x - (i * (j / z))) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) - Float64(Float64(x * Float64(Float64(t * a) - Float64(y * z))) - Float64(b * Float64(Float64(t * i) - Float64(z * c))))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(y * z) * Float64(x - Float64(i * Float64(j / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = (j * ((a * c) - (y * i))) - ((x * ((t * a) - (y * z))) - (b * ((t * i) - (z * c)))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = (y * z) * (x - (i * (j / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(x * N[(N[(t * a), $MachinePrecision] - N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(y * z), $MachinePrecision] * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right) - \left(x \cdot \left(t \cdot a - y \cdot z\right) - b \cdot \left(t \cdot i - z \cdot c\right)\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - i \cdot \frac{j}{z}\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 92.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 t around inf 7.8%
mul-1-neg7.8%
+-commutative7.8%
unsub-neg7.8%
associate-/l*7.8%
associate-/l*7.8%
Simplified7.8%
Taylor expanded in z around inf 23.8%
+-commutative23.8%
mul-1-neg23.8%
unsub-neg23.8%
fma-define27.8%
associate-/l*31.7%
*-commutative31.7%
associate-/l*33.6%
+-commutative33.6%
mul-1-neg33.6%
Simplified37.6%
Taylor expanded in y around inf 53.3%
associate-*r*53.3%
*-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
associate-/l*55.2%
Simplified55.2%
Final simplification84.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* z (* b (- c)))) (t_2 (* x (* y z))))
(if (<= z -9.8e+273)
t_2
(if (<= z -1.16e+208)
t_1
(if (<= z -1.05e+20)
t_2
(if (<= z -2.05e-137)
(* b (* t i))
(if (<= z -1.55e-213)
(* c (* a j))
(if (<= z 2.2e-71)
(* a (* x (- t)))
(if (<= z 1.9e+111) (* y (* x 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 = z * (b * -c);
double t_2 = x * (y * z);
double tmp;
if (z <= -9.8e+273) {
tmp = t_2;
} else if (z <= -1.16e+208) {
tmp = t_1;
} else if (z <= -1.05e+20) {
tmp = t_2;
} else if (z <= -2.05e-137) {
tmp = b * (t * i);
} else if (z <= -1.55e-213) {
tmp = c * (a * j);
} else if (z <= 2.2e-71) {
tmp = a * (x * -t);
} else if (z <= 1.9e+111) {
tmp = y * (x * 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) :: t_2
real(8) :: tmp
t_1 = z * (b * -c)
t_2 = x * (y * z)
if (z <= (-9.8d+273)) then
tmp = t_2
else if (z <= (-1.16d+208)) then
tmp = t_1
else if (z <= (-1.05d+20)) then
tmp = t_2
else if (z <= (-2.05d-137)) then
tmp = b * (t * i)
else if (z <= (-1.55d-213)) then
tmp = c * (a * j)
else if (z <= 2.2d-71) then
tmp = a * (x * -t)
else if (z <= 1.9d+111) then
tmp = y * (x * 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 = z * (b * -c);
double t_2 = x * (y * z);
double tmp;
if (z <= -9.8e+273) {
tmp = t_2;
} else if (z <= -1.16e+208) {
tmp = t_1;
} else if (z <= -1.05e+20) {
tmp = t_2;
} else if (z <= -2.05e-137) {
tmp = b * (t * i);
} else if (z <= -1.55e-213) {
tmp = c * (a * j);
} else if (z <= 2.2e-71) {
tmp = a * (x * -t);
} else if (z <= 1.9e+111) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = z * (b * -c) t_2 = x * (y * z) tmp = 0 if z <= -9.8e+273: tmp = t_2 elif z <= -1.16e+208: tmp = t_1 elif z <= -1.05e+20: tmp = t_2 elif z <= -2.05e-137: tmp = b * (t * i) elif z <= -1.55e-213: tmp = c * (a * j) elif z <= 2.2e-71: tmp = a * (x * -t) elif z <= 1.9e+111: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(z * Float64(b * Float64(-c))) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -9.8e+273) tmp = t_2; elseif (z <= -1.16e+208) tmp = t_1; elseif (z <= -1.05e+20) tmp = t_2; elseif (z <= -2.05e-137) tmp = Float64(b * Float64(t * i)); elseif (z <= -1.55e-213) tmp = Float64(c * Float64(a * j)); elseif (z <= 2.2e-71) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 1.9e+111) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = z * (b * -c); t_2 = x * (y * z); tmp = 0.0; if (z <= -9.8e+273) tmp = t_2; elseif (z <= -1.16e+208) tmp = t_1; elseif (z <= -1.05e+20) tmp = t_2; elseif (z <= -2.05e-137) tmp = b * (t * i); elseif (z <= -1.55e-213) tmp = c * (a * j); elseif (z <= 2.2e-71) tmp = a * (x * -t); elseif (z <= 1.9e+111) tmp = y * (x * 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[(z * N[(b * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.8e+273], t$95$2, If[LessEqual[z, -1.16e+208], t$95$1, If[LessEqual[z, -1.05e+20], t$95$2, If[LessEqual[z, -2.05e-137], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.55e-213], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.2e-71], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.9e+111], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := z \cdot \left(b \cdot \left(-c\right)\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -9.8 \cdot 10^{+273}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.16 \cdot 10^{+208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -2.05 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq -1.55 \cdot 10^{-213}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 2.2 \cdot 10^{-71}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+111}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -9.80000000000000088e273 or -1.15999999999999999e208 < z < -1.05e20Initial program 53.6%
Taylor expanded in x around inf 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in z around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -9.80000000000000088e273 < z < -1.15999999999999999e208 or 1.89999999999999988e111 < z Initial program 66.1%
Taylor expanded in t around inf 62.9%
mul-1-neg62.9%
+-commutative62.9%
unsub-neg62.9%
associate-/l*61.4%
associate-/l*56.7%
Simplified56.7%
Taylor expanded in b around inf 66.4%
mul-1-neg66.4%
associate-*r*59.8%
*-commutative59.8%
associate-*r/59.7%
associate-*r*68.0%
distribute-lft-neg-out68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in c around inf 56.4%
mul-1-neg56.4%
associate-*r*57.8%
distribute-rgt-neg-in57.8%
Simplified57.8%
if -1.05e20 < z < -2.0499999999999999e-137Initial program 78.4%
Taylor expanded in t around inf 56.8%
distribute-lft-out--56.8%
Simplified56.8%
Taylor expanded in a around 0 41.8%
if -2.0499999999999999e-137 < z < -1.5499999999999999e-213Initial program 94.1%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Taylor expanded in c around inf 48.6%
associate-*r*48.0%
*-commutative48.0%
associate-*l*53.8%
Simplified53.8%
if -1.5499999999999999e-213 < z < 2.19999999999999997e-71Initial program 86.2%
Taylor expanded in a around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
Simplified59.0%
Taylor expanded in c around 0 45.8%
associate-*r*45.8%
neg-mul-145.8%
Simplified45.8%
if 2.19999999999999997e-71 < z < 1.89999999999999988e111Initial program 74.5%
Taylor expanded in y around inf 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in z around inf 36.3%
*-commutative36.3%
Simplified36.3%
Final simplification47.3%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (* z (- c)))) (t_2 (* x (* y z))))
(if (<= z -1.1e+274)
t_2
(if (<= z -6.8e+210)
t_1
(if (<= z -1.05e+20)
t_2
(if (<= z -1.4e-138)
(* b (* t i))
(if (<= z -2.6e-212)
(* c (* a j))
(if (<= z 2e-70)
(* a (* x (- t)))
(if (<= z 7.8e+108) (* y (* x 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 = b * (z * -c);
double t_2 = x * (y * z);
double tmp;
if (z <= -1.1e+274) {
tmp = t_2;
} else if (z <= -6.8e+210) {
tmp = t_1;
} else if (z <= -1.05e+20) {
tmp = t_2;
} else if (z <= -1.4e-138) {
tmp = b * (t * i);
} else if (z <= -2.6e-212) {
tmp = c * (a * j);
} else if (z <= 2e-70) {
tmp = a * (x * -t);
} else if (z <= 7.8e+108) {
tmp = y * (x * 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) :: t_2
real(8) :: tmp
t_1 = b * (z * -c)
t_2 = x * (y * z)
if (z <= (-1.1d+274)) then
tmp = t_2
else if (z <= (-6.8d+210)) then
tmp = t_1
else if (z <= (-1.05d+20)) then
tmp = t_2
else if (z <= (-1.4d-138)) then
tmp = b * (t * i)
else if (z <= (-2.6d-212)) then
tmp = c * (a * j)
else if (z <= 2d-70) then
tmp = a * (x * -t)
else if (z <= 7.8d+108) then
tmp = y * (x * 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 = b * (z * -c);
double t_2 = x * (y * z);
double tmp;
if (z <= -1.1e+274) {
tmp = t_2;
} else if (z <= -6.8e+210) {
tmp = t_1;
} else if (z <= -1.05e+20) {
tmp = t_2;
} else if (z <= -1.4e-138) {
tmp = b * (t * i);
} else if (z <= -2.6e-212) {
tmp = c * (a * j);
} else if (z <= 2e-70) {
tmp = a * (x * -t);
} else if (z <= 7.8e+108) {
tmp = y * (x * z);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * (z * -c) t_2 = x * (y * z) tmp = 0 if z <= -1.1e+274: tmp = t_2 elif z <= -6.8e+210: tmp = t_1 elif z <= -1.05e+20: tmp = t_2 elif z <= -1.4e-138: tmp = b * (t * i) elif z <= -2.6e-212: tmp = c * (a * j) elif z <= 2e-70: tmp = a * (x * -t) elif z <= 7.8e+108: tmp = y * (x * z) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(z * Float64(-c))) t_2 = Float64(x * Float64(y * z)) tmp = 0.0 if (z <= -1.1e+274) tmp = t_2; elseif (z <= -6.8e+210) tmp = t_1; elseif (z <= -1.05e+20) tmp = t_2; elseif (z <= -1.4e-138) tmp = Float64(b * Float64(t * i)); elseif (z <= -2.6e-212) tmp = Float64(c * Float64(a * j)); elseif (z <= 2e-70) tmp = Float64(a * Float64(x * Float64(-t))); elseif (z <= 7.8e+108) tmp = Float64(y * Float64(x * z)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * (z * -c); t_2 = x * (y * z); tmp = 0.0; if (z <= -1.1e+274) tmp = t_2; elseif (z <= -6.8e+210) tmp = t_1; elseif (z <= -1.05e+20) tmp = t_2; elseif (z <= -1.4e-138) tmp = b * (t * i); elseif (z <= -2.6e-212) tmp = c * (a * j); elseif (z <= 2e-70) tmp = a * (x * -t); elseif (z <= 7.8e+108) tmp = y * (x * 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[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.1e+274], t$95$2, If[LessEqual[z, -6.8e+210], t$95$1, If[LessEqual[z, -1.05e+20], t$95$2, If[LessEqual[z, -1.4e-138], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -2.6e-212], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-70], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.8e+108], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(z \cdot \left(-c\right)\right)\\
t_2 := x \cdot \left(y \cdot z\right)\\
\mathbf{if}\;z \leq -1.1 \cdot 10^{+274}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -6.8 \cdot 10^{+210}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -1.05 \cdot 10^{+20}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1.4 \cdot 10^{-138}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq -2.6 \cdot 10^{-212}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-70}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{elif}\;z \leq 7.8 \cdot 10^{+108}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.1e274 or -6.8000000000000005e210 < z < -1.05e20Initial program 53.6%
Taylor expanded in x around inf 51.9%
*-commutative51.9%
Simplified51.9%
Taylor expanded in z around inf 45.4%
*-commutative45.4%
Simplified45.4%
if -1.1e274 < z < -6.8000000000000005e210 or 7.79999999999999969e108 < z Initial program 66.1%
Taylor expanded in t around inf 62.9%
mul-1-neg62.9%
+-commutative62.9%
unsub-neg62.9%
associate-/l*61.4%
associate-/l*56.7%
Simplified56.7%
Taylor expanded in b around inf 66.4%
mul-1-neg66.4%
associate-*r*59.8%
*-commutative59.8%
associate-*r/59.7%
associate-*r*68.0%
distribute-lft-neg-out68.0%
*-commutative68.0%
Simplified68.0%
Taylor expanded in c around inf 56.4%
associate-*r*56.4%
neg-mul-156.4%
Simplified56.4%
if -1.05e20 < z < -1.4e-138Initial program 78.4%
Taylor expanded in t around inf 56.8%
distribute-lft-out--56.8%
Simplified56.8%
Taylor expanded in a around 0 41.8%
if -1.4e-138 < z < -2.6e-212Initial program 94.1%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Taylor expanded in c around inf 48.6%
associate-*r*48.0%
*-commutative48.0%
associate-*l*53.8%
Simplified53.8%
if -2.6e-212 < z < 1.99999999999999999e-70Initial program 86.2%
Taylor expanded in a around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
Simplified59.0%
Taylor expanded in c around 0 45.8%
associate-*r*45.8%
neg-mul-145.8%
Simplified45.8%
if 1.99999999999999999e-70 < z < 7.79999999999999969e108Initial program 74.5%
Taylor expanded in y around inf 53.1%
+-commutative53.1%
mul-1-neg53.1%
unsub-neg53.1%
*-commutative53.1%
Simplified53.1%
Taylor expanded in z around inf 36.3%
*-commutative36.3%
Simplified36.3%
Final simplification47.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -6e+111)
t_1
(if (<= t 6.2e-9)
(+ (* j (- (* a c) (* y i))) (* x (- (* y z) (* t a))))
(if (<= t 1.14e+147)
(+ (* a (- (* c j) (* x t))) (* b (- (* t i) (* z c))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -6e+111) {
tmp = t_1;
} else if (t <= 6.2e-9) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (t <= 1.14e+147) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} 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 * ((b * i) - (x * a))
if (t <= (-6d+111)) then
tmp = t_1
else if (t <= 6.2d-9) then
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)))
else if (t <= 1.14d+147) then
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)))
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 * ((b * i) - (x * a));
double tmp;
if (t <= -6e+111) {
tmp = t_1;
} else if (t <= 6.2e-9) {
tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a)));
} else if (t <= 1.14e+147) {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -6e+111: tmp = t_1 elif t <= 6.2e-9: tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))) elif t <= 1.14e+147: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -6e+111) tmp = t_1; elseif (t <= 6.2e-9) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(x * Float64(Float64(y * z) - Float64(t * a)))); elseif (t <= 1.14e+147) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + Float64(b * Float64(Float64(t * i) - Float64(z * c)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -6e+111) tmp = t_1; elseif (t <= 6.2e-9) tmp = (j * ((a * c) - (y * i))) + (x * ((y * z) - (t * a))); elseif (t <= 1.14e+147) tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); 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[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -6e+111], t$95$1, If[LessEqual[t, 6.2e-9], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.14e+147], N[(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]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -6 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{-9}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;t \leq 1.14 \cdot 10^{+147}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -6e111 or 1.14e147 < t Initial program 56.1%
Taylor expanded in t around inf 75.1%
distribute-lft-out--75.1%
Simplified75.1%
Taylor expanded in t around 0 75.1%
mul-1-neg75.1%
*-commutative75.1%
distribute-rgt-neg-out75.1%
neg-mul-175.1%
distribute-lft-out--75.1%
*-commutative75.1%
neg-mul-175.1%
sub-neg75.1%
remove-double-neg75.1%
+-commutative75.1%
mul-1-neg75.1%
*-commutative75.1%
unsub-neg75.1%
*-commutative75.1%
Simplified75.1%
if -6e111 < t < 6.2000000000000001e-9Initial program 80.2%
Taylor expanded in b around 0 67.8%
if 6.2000000000000001e-9 < t < 1.14e147Initial program 82.1%
Taylor expanded in y around 0 75.4%
Simplified86.1%
Final simplification71.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (- (* b i) (* x a)))))
(if (<= t -2.4e+73)
t_1
(if (<= t -5.2e-112)
(* (* y z) (- x (* i (/ j z))))
(if (<= t 2.4e+55)
(- (+ (* a (* c j)) (* x (* y z))) (* b (* z c)))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * ((b * i) - (x * a));
double tmp;
if (t <= -2.4e+73) {
tmp = t_1;
} else if (t <= -5.2e-112) {
tmp = (y * z) * (x - (i * (j / z)));
} else if (t <= 2.4e+55) {
tmp = ((a * (c * j)) + (x * (y * z))) - (b * (z * c));
} 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 * ((b * i) - (x * a))
if (t <= (-2.4d+73)) then
tmp = t_1
else if (t <= (-5.2d-112)) then
tmp = (y * z) * (x - (i * (j / z)))
else if (t <= 2.4d+55) then
tmp = ((a * (c * j)) + (x * (y * z))) - (b * (z * c))
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 * ((b * i) - (x * a));
double tmp;
if (t <= -2.4e+73) {
tmp = t_1;
} else if (t <= -5.2e-112) {
tmp = (y * z) * (x - (i * (j / z)));
} else if (t <= 2.4e+55) {
tmp = ((a * (c * j)) + (x * (y * z))) - (b * (z * c));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * ((b * i) - (x * a)) tmp = 0 if t <= -2.4e+73: tmp = t_1 elif t <= -5.2e-112: tmp = (y * z) * (x - (i * (j / z))) elif t <= 2.4e+55: tmp = ((a * (c * j)) + (x * (y * z))) - (b * (z * c)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(Float64(b * i) - Float64(x * a))) tmp = 0.0 if (t <= -2.4e+73) tmp = t_1; elseif (t <= -5.2e-112) tmp = Float64(Float64(y * z) * Float64(x - Float64(i * Float64(j / z)))); elseif (t <= 2.4e+55) tmp = Float64(Float64(Float64(a * Float64(c * j)) + Float64(x * Float64(y * z))) - Float64(b * Float64(z * c))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * ((b * i) - (x * a)); tmp = 0.0; if (t <= -2.4e+73) tmp = t_1; elseif (t <= -5.2e-112) tmp = (y * z) * (x - (i * (j / z))); elseif (t <= 2.4e+55) tmp = ((a * (c * j)) + (x * (y * z))) - (b * (z * c)); 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[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -2.4e+73], t$95$1, If[LessEqual[t, -5.2e-112], N[(N[(y * z), $MachinePrecision] * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.4e+55], N[(N[(N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision] + N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{if}\;t \leq -2.4 \cdot 10^{+73}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -5.2 \cdot 10^{-112}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - i \cdot \frac{j}{z}\right)\\
\mathbf{elif}\;t \leq 2.4 \cdot 10^{+55}:\\
\;\;\;\;\left(a \cdot \left(c \cdot j\right) + x \cdot \left(y \cdot z\right)\right) - b \cdot \left(z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -2.40000000000000002e73 or 2.3999999999999999e55 < t Initial program 62.9%
Taylor expanded in t around inf 73.7%
distribute-lft-out--73.7%
Simplified73.7%
Taylor expanded in t around 0 73.7%
mul-1-neg73.7%
*-commutative73.7%
distribute-rgt-neg-out73.7%
neg-mul-173.7%
distribute-lft-out--73.7%
*-commutative73.7%
neg-mul-173.7%
sub-neg73.7%
remove-double-neg73.7%
+-commutative73.7%
mul-1-neg73.7%
*-commutative73.7%
unsub-neg73.7%
*-commutative73.7%
Simplified73.7%
if -2.40000000000000002e73 < t < -5.19999999999999983e-112Initial program 76.2%
Taylor expanded in t around inf 72.8%
mul-1-neg72.8%
+-commutative72.8%
unsub-neg72.8%
associate-/l*69.6%
associate-/l*66.4%
Simplified66.4%
Taylor expanded in z around inf 62.1%
+-commutative62.1%
mul-1-neg62.1%
unsub-neg62.1%
fma-define62.1%
associate-/l*58.6%
*-commutative58.6%
associate-/l*61.9%
+-commutative61.9%
mul-1-neg61.9%
Simplified65.3%
Taylor expanded in y around inf 56.6%
associate-*r*53.6%
*-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
associate-/l*57.1%
Simplified57.1%
if -5.19999999999999983e-112 < t < 2.3999999999999999e55Initial program 80.9%
Taylor expanded in i around 0 65.7%
Taylor expanded in t around 0 57.7%
Final simplification63.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -1.45e+142)
t_1
(if (<= a -270000000.0)
(* j (- (* a c) (* y i)))
(if (<= a -4.8e-153)
(* x (- (* y z) (* t a)))
(if (<= a 4.4e+46) (* b (- (* t i) (* z c))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.45e+142) {
tmp = t_1;
} else if (a <= -270000000.0) {
tmp = j * ((a * c) - (y * i));
} else if (a <= -4.8e-153) {
tmp = x * ((y * z) - (t * a));
} else if (a <= 4.4e+46) {
tmp = b * ((t * i) - (z * c));
} 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 <= (-1.45d+142)) then
tmp = t_1
else if (a <= (-270000000.0d0)) then
tmp = j * ((a * c) - (y * i))
else if (a <= (-4.8d-153)) then
tmp = x * ((y * z) - (t * a))
else if (a <= 4.4d+46) then
tmp = b * ((t * i) - (z * c))
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 <= -1.45e+142) {
tmp = t_1;
} else if (a <= -270000000.0) {
tmp = j * ((a * c) - (y * i));
} else if (a <= -4.8e-153) {
tmp = x * ((y * z) - (t * a));
} else if (a <= 4.4e+46) {
tmp = b * ((t * i) - (z * c));
} 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 <= -1.45e+142: tmp = t_1 elif a <= -270000000.0: tmp = j * ((a * c) - (y * i)) elif a <= -4.8e-153: tmp = x * ((y * z) - (t * a)) elif a <= 4.4e+46: tmp = b * ((t * i) - (z * c)) 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 <= -1.45e+142) tmp = t_1; elseif (a <= -270000000.0) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= -4.8e-153) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (a <= 4.4e+46) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); 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 <= -1.45e+142) tmp = t_1; elseif (a <= -270000000.0) tmp = j * ((a * c) - (y * i)); elseif (a <= -4.8e-153) tmp = x * ((y * z) - (t * a)); elseif (a <= 4.4e+46) tmp = b * ((t * i) - (z * c)); 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, -1.45e+142], t$95$1, If[LessEqual[a, -270000000.0], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -4.8e-153], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 4.4e+46], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $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 -1.45 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -270000000:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq -4.8 \cdot 10^{-153}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;a \leq 4.4 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.45000000000000007e142 or 4.4000000000000001e46 < a Initial program 61.2%
Taylor expanded in a around inf 70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -1.45000000000000007e142 < a < -2.7e8Initial program 73.0%
Taylor expanded in j around inf 58.7%
if -2.7e8 < a < -4.8000000000000004e-153Initial program 85.1%
Taylor expanded in x around inf 48.0%
*-commutative48.0%
Simplified48.0%
if -4.8000000000000004e-153 < a < 4.4000000000000001e46Initial program 82.3%
Taylor expanded in b around inf 60.1%
*-commutative60.1%
Simplified60.1%
Final simplification62.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -2.9e+19) (not (<= y 2.7e+182))) (* (* y z) (- x (* i (/ j z)))) (+ (* 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 ((y <= -2.9e+19) || !(y <= 2.7e+182)) {
tmp = (y * z) * (x - (i * (j / z)));
} else {
tmp = (a * ((c * j) - (x * t))) + (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 ((y <= (-2.9d+19)) .or. (.not. (y <= 2.7d+182))) then
tmp = (y * z) * (x - (i * (j / z)))
else
tmp = (a * ((c * j) - (x * t))) + (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 ((y <= -2.9e+19) || !(y <= 2.7e+182)) {
tmp = (y * z) * (x - (i * (j / z)));
} else {
tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (y <= -2.9e+19) or not (y <= 2.7e+182): tmp = (y * z) * (x - (i * (j / z))) else: tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((y <= -2.9e+19) || !(y <= 2.7e+182)) tmp = Float64(Float64(y * z) * Float64(x - Float64(i * Float64(j / z)))); else tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + 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 ((y <= -2.9e+19) || ~((y <= 2.7e+182))) tmp = (y * z) * (x - (i * (j / z))); else tmp = (a * ((c * j) - (x * t))) + (b * ((t * i) - (z * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[y, -2.9e+19], N[Not[LessEqual[y, 2.7e+182]], $MachinePrecision]], N[(N[(y * z), $MachinePrecision] * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(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]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -2.9 \cdot 10^{+19} \lor \neg \left(y \leq 2.7 \cdot 10^{+182}\right):\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - i \cdot \frac{j}{z}\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if y < -2.9e19 or 2.7000000000000003e182 < y Initial program 53.8%
Taylor expanded in t around inf 56.0%
mul-1-neg56.0%
+-commutative56.0%
unsub-neg56.0%
associate-/l*53.8%
associate-/l*53.7%
Simplified53.7%
Taylor expanded in z around inf 53.7%
+-commutative53.7%
mul-1-neg53.7%
unsub-neg53.7%
fma-define58.2%
associate-/l*54.9%
*-commutative54.9%
associate-/l*54.9%
+-commutative54.9%
mul-1-neg54.9%
Simplified57.1%
Taylor expanded in y around inf 64.7%
associate-*r*64.8%
*-commutative64.8%
mul-1-neg64.8%
unsub-neg64.8%
associate-/l*66.9%
Simplified66.9%
if -2.9e19 < y < 2.7000000000000003e182Initial program 84.4%
Taylor expanded in y around 0 66.7%
Simplified69.1%
Final simplification68.4%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* x (- (* y z) (* t a)))))
(if (<= t -1.8e+116)
(* t (- (* b i) (* x a)))
(if (<= t 6.8e-179)
(+ (* j (- (* a c) (* y i))) t_1)
(+ 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 (t <= -1.8e+116) {
tmp = t * ((b * i) - (x * a));
} else if (t <= 6.8e-179) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} 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 (t <= (-1.8d+116)) then
tmp = t * ((b * i) - (x * a))
else if (t <= 6.8d-179) then
tmp = (j * ((a * c) - (y * i))) + t_1
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 (t <= -1.8e+116) {
tmp = t * ((b * i) - (x * a));
} else if (t <= 6.8e-179) {
tmp = (j * ((a * c) - (y * i))) + t_1;
} 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 t <= -1.8e+116: tmp = t * ((b * i) - (x * a)) elif t <= 6.8e-179: tmp = (j * ((a * c) - (y * i))) + t_1 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 (t <= -1.8e+116) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (t <= 6.8e-179) tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + t_1); 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 (t <= -1.8e+116) tmp = t * ((b * i) - (x * a)); elseif (t <= 6.8e-179) tmp = (j * ((a * c) - (y * i))) + t_1; 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[LessEqual[t, -1.8e+116], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.8e-179], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $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}\;t \leq -1.8 \cdot 10^{+116}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;t \leq 6.8 \cdot 10^{-179}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_1 + b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if t < -1.79999999999999985e116Initial program 54.1%
Taylor expanded in t around inf 75.0%
distribute-lft-out--75.0%
Simplified75.0%
Taylor expanded in t around 0 75.0%
mul-1-neg75.0%
*-commutative75.0%
distribute-rgt-neg-out75.0%
neg-mul-175.0%
distribute-lft-out--75.0%
*-commutative75.0%
neg-mul-175.0%
sub-neg75.0%
remove-double-neg75.0%
+-commutative75.0%
mul-1-neg75.0%
*-commutative75.0%
unsub-neg75.0%
*-commutative75.0%
Simplified75.0%
if -1.79999999999999985e116 < t < 6.7999999999999995e-179Initial program 83.4%
Taylor expanded in b around 0 71.3%
if 6.7999999999999995e-179 < t Initial program 70.1%
Taylor expanded in j around 0 69.9%
Final simplification71.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -7.1e+19)
(* y (* x z))
(if (<= z -1.9e-137)
(* b (* t i))
(if (<= z -4.9e-213)
(* c (* a j))
(if (<= z 1.3e-72) (* a (* x (- t))) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7.1e+19) {
tmp = y * (x * z);
} else if (z <= -1.9e-137) {
tmp = b * (t * i);
} else if (z <= -4.9e-213) {
tmp = c * (a * j);
} else if (z <= 1.3e-72) {
tmp = a * (x * -t);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-7.1d+19)) then
tmp = y * (x * z)
else if (z <= (-1.9d-137)) then
tmp = b * (t * i)
else if (z <= (-4.9d-213)) then
tmp = c * (a * j)
else if (z <= 1.3d-72) then
tmp = a * (x * -t)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -7.1e+19) {
tmp = y * (x * z);
} else if (z <= -1.9e-137) {
tmp = b * (t * i);
} else if (z <= -4.9e-213) {
tmp = c * (a * j);
} else if (z <= 1.3e-72) {
tmp = a * (x * -t);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -7.1e+19: tmp = y * (x * z) elif z <= -1.9e-137: tmp = b * (t * i) elif z <= -4.9e-213: tmp = c * (a * j) elif z <= 1.3e-72: tmp = a * (x * -t) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -7.1e+19) tmp = Float64(y * Float64(x * z)); elseif (z <= -1.9e-137) tmp = Float64(b * Float64(t * i)); elseif (z <= -4.9e-213) tmp = Float64(c * Float64(a * j)); elseif (z <= 1.3e-72) tmp = Float64(a * Float64(x * Float64(-t))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -7.1e+19) tmp = y * (x * z); elseif (z <= -1.9e-137) tmp = b * (t * i); elseif (z <= -4.9e-213) tmp = c * (a * j); elseif (z <= 1.3e-72) tmp = a * (x * -t); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -7.1e+19], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.9e-137], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -4.9e-213], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e-72], N[(a * N[(x * (-t)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -7.1 \cdot 10^{+19}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -1.9 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq -4.9 \cdot 10^{-213}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{-72}:\\
\;\;\;\;a \cdot \left(x \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -7.1e19Initial program 58.2%
Taylor expanded in y around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in z around inf 35.7%
*-commutative35.7%
Simplified35.7%
if -7.1e19 < z < -1.89999999999999999e-137Initial program 78.4%
Taylor expanded in t around inf 56.8%
distribute-lft-out--56.8%
Simplified56.8%
Taylor expanded in a around 0 41.8%
if -1.89999999999999999e-137 < z < -4.8999999999999998e-213Initial program 94.1%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Taylor expanded in c around inf 48.6%
associate-*r*48.0%
*-commutative48.0%
associate-*l*53.8%
Simplified53.8%
if -4.8999999999999998e-213 < z < 1.29999999999999998e-72Initial program 86.2%
Taylor expanded in a around inf 59.0%
+-commutative59.0%
mul-1-neg59.0%
unsub-neg59.0%
Simplified59.0%
Taylor expanded in c around 0 45.8%
associate-*r*45.8%
neg-mul-145.8%
Simplified45.8%
if 1.29999999999999998e-72 < z Initial program 69.2%
Taylor expanded in x around inf 40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in z around inf 34.3%
*-commutative34.3%
Simplified34.3%
Final simplification39.8%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= z -6.4e+19)
(* y (* x z))
(if (<= z -1.3e-137)
(* b (* t i))
(if (<= z -1.02e-211)
(* c (* a j))
(if (<= z 5e-70) (* x (* t (- a))) (* x (* y z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.4e+19) {
tmp = y * (x * z);
} else if (z <= -1.3e-137) {
tmp = b * (t * i);
} else if (z <= -1.02e-211) {
tmp = c * (a * j);
} else if (z <= 5e-70) {
tmp = x * (t * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (z <= (-6.4d+19)) then
tmp = y * (x * z)
else if (z <= (-1.3d-137)) then
tmp = b * (t * i)
else if (z <= (-1.02d-211)) then
tmp = c * (a * j)
else if (z <= 5d-70) then
tmp = x * (t * -a)
else
tmp = x * (y * z)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (z <= -6.4e+19) {
tmp = y * (x * z);
} else if (z <= -1.3e-137) {
tmp = b * (t * i);
} else if (z <= -1.02e-211) {
tmp = c * (a * j);
} else if (z <= 5e-70) {
tmp = x * (t * -a);
} else {
tmp = x * (y * z);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if z <= -6.4e+19: tmp = y * (x * z) elif z <= -1.3e-137: tmp = b * (t * i) elif z <= -1.02e-211: tmp = c * (a * j) elif z <= 5e-70: tmp = x * (t * -a) else: tmp = x * (y * z) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (z <= -6.4e+19) tmp = Float64(y * Float64(x * z)); elseif (z <= -1.3e-137) tmp = Float64(b * Float64(t * i)); elseif (z <= -1.02e-211) tmp = Float64(c * Float64(a * j)); elseif (z <= 5e-70) tmp = Float64(x * Float64(t * Float64(-a))); else tmp = Float64(x * Float64(y * z)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (z <= -6.4e+19) tmp = y * (x * z); elseif (z <= -1.3e-137) tmp = b * (t * i); elseif (z <= -1.02e-211) tmp = c * (a * j); elseif (z <= 5e-70) tmp = x * (t * -a); else tmp = x * (y * z); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[z, -6.4e+19], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.3e-137], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.02e-211], N[(c * N[(a * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5e-70], N[(x * N[(t * (-a)), $MachinePrecision]), $MachinePrecision], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -6.4 \cdot 10^{+19}:\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{elif}\;z \leq -1.3 \cdot 10^{-137}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;z \leq -1.02 \cdot 10^{-211}:\\
\;\;\;\;c \cdot \left(a \cdot j\right)\\
\mathbf{elif}\;z \leq 5 \cdot 10^{-70}:\\
\;\;\;\;x \cdot \left(t \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\end{array}
\end{array}
if z < -6.4e19Initial program 58.2%
Taylor expanded in y around inf 43.8%
+-commutative43.8%
mul-1-neg43.8%
unsub-neg43.8%
*-commutative43.8%
Simplified43.8%
Taylor expanded in z around inf 35.7%
*-commutative35.7%
Simplified35.7%
if -6.4e19 < z < -1.3e-137Initial program 78.4%
Taylor expanded in t around inf 56.8%
distribute-lft-out--56.8%
Simplified56.8%
Taylor expanded in a around 0 41.8%
if -1.3e-137 < z < -1.0199999999999999e-211Initial program 94.1%
Taylor expanded in a around inf 60.0%
+-commutative60.0%
mul-1-neg60.0%
unsub-neg60.0%
Simplified60.0%
Taylor expanded in c around inf 48.6%
associate-*r*48.0%
*-commutative48.0%
associate-*l*53.8%
Simplified53.8%
if -1.0199999999999999e-211 < z < 4.9999999999999998e-70Initial program 86.2%
Taylor expanded in x around inf 44.6%
*-commutative44.6%
Simplified44.6%
Taylor expanded in z around 0 43.1%
mul-1-neg43.1%
distribute-lft-neg-out43.1%
*-commutative43.1%
Simplified43.1%
if 4.9999999999999998e-70 < z Initial program 69.2%
Taylor expanded in x around inf 40.3%
*-commutative40.3%
Simplified40.3%
Taylor expanded in z around inf 34.3%
*-commutative34.3%
Simplified34.3%
Final simplification39.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= t -4.4e-60)
(* b (* t i))
(if (<= t 2.3e-149)
t_1
(if (<= t 5400.0)
(* z (* x y))
(if (<= t 2.3e+55) t_1 (* t (* b i))))))))
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);
double tmp;
if (t <= -4.4e-60) {
tmp = b * (t * i);
} else if (t <= 2.3e-149) {
tmp = t_1;
} else if (t <= 5400.0) {
tmp = z * (x * y);
} else if (t <= 2.3e+55) {
tmp = t_1;
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (t <= (-4.4d-60)) then
tmp = b * (t * i)
else if (t <= 2.3d-149) then
tmp = t_1
else if (t <= 5400.0d0) then
tmp = z * (x * y)
else if (t <= 2.3d+55) then
tmp = t_1
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (t <= -4.4e-60) {
tmp = b * (t * i);
} else if (t <= 2.3e-149) {
tmp = t_1;
} else if (t <= 5400.0) {
tmp = z * (x * y);
} else if (t <= 2.3e+55) {
tmp = t_1;
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if t <= -4.4e-60: tmp = b * (t * i) elif t <= 2.3e-149: tmp = t_1 elif t <= 5400.0: tmp = z * (x * y) elif t <= 2.3e+55: tmp = t_1 else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (t <= -4.4e-60) tmp = Float64(b * Float64(t * i)); elseif (t <= 2.3e-149) tmp = t_1; elseif (t <= 5400.0) tmp = Float64(z * Float64(x * y)); elseif (t <= 2.3e+55) tmp = t_1; else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (t <= -4.4e-60) tmp = b * (t * i); elseif (t <= 2.3e-149) tmp = t_1; elseif (t <= 5400.0) tmp = z * (x * y); elseif (t <= 2.3e+55) tmp = t_1; else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.4e-60], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e-149], t$95$1, If[LessEqual[t, 5400.0], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.3e+55], t$95$1, N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;t \leq -4.4 \cdot 10^{-60}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{-149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 5400:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;t \leq 2.3 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -4.3999999999999998e-60Initial program 63.0%
Taylor expanded in t around inf 62.0%
distribute-lft-out--62.0%
Simplified62.0%
Taylor expanded in a around 0 37.7%
if -4.3999999999999998e-60 < t < 2.3e-149 or 5400 < t < 2.29999999999999987e55Initial program 83.8%
Taylor expanded in a around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in c around inf 35.4%
if 2.3e-149 < t < 5400Initial program 72.5%
Taylor expanded in x around inf 46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in z around inf 38.1%
associate-*r*40.7%
Simplified40.7%
if 2.29999999999999987e55 < t Initial program 67.7%
Taylor expanded in t around inf 75.5%
distribute-lft-out--75.5%
Simplified75.5%
Taylor expanded in a around 0 48.2%
associate-*r*48.3%
Simplified48.3%
Final simplification38.9%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))))
(if (<= t -3.1e-59)
(* b (* t i))
(if (<= t 1.9e-149)
t_1
(if (<= t 800.0)
(* x (* y z))
(if (<= t 6.2e+56) t_1 (* t (* b i))))))))
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);
double tmp;
if (t <= -3.1e-59) {
tmp = b * (t * i);
} else if (t <= 1.9e-149) {
tmp = t_1;
} else if (t <= 800.0) {
tmp = x * (y * z);
} else if (t <= 6.2e+56) {
tmp = t_1;
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (c * j)
if (t <= (-3.1d-59)) then
tmp = b * (t * i)
else if (t <= 1.9d-149) then
tmp = t_1
else if (t <= 800.0d0) then
tmp = x * (y * z)
else if (t <= 6.2d+56) then
tmp = t_1
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double tmp;
if (t <= -3.1e-59) {
tmp = b * (t * i);
} else if (t <= 1.9e-149) {
tmp = t_1;
} else if (t <= 800.0) {
tmp = x * (y * z);
} else if (t <= 6.2e+56) {
tmp = t_1;
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) tmp = 0 if t <= -3.1e-59: tmp = b * (t * i) elif t <= 1.9e-149: tmp = t_1 elif t <= 800.0: tmp = x * (y * z) elif t <= 6.2e+56: tmp = t_1 else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) tmp = 0.0 if (t <= -3.1e-59) tmp = Float64(b * Float64(t * i)); elseif (t <= 1.9e-149) tmp = t_1; elseif (t <= 800.0) tmp = Float64(x * Float64(y * z)); elseif (t <= 6.2e+56) tmp = t_1; else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); tmp = 0.0; if (t <= -3.1e-59) tmp = b * (t * i); elseif (t <= 1.9e-149) tmp = t_1; elseif (t <= 800.0) tmp = x * (y * z); elseif (t <= 6.2e+56) tmp = t_1; else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -3.1e-59], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e-149], t$95$1, If[LessEqual[t, 800.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+56], t$95$1, N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
\mathbf{if}\;t \leq -3.1 \cdot 10^{-59}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{-149}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 800:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+56}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if t < -3.09999999999999999e-59Initial program 63.0%
Taylor expanded in t around inf 62.0%
distribute-lft-out--62.0%
Simplified62.0%
Taylor expanded in a around 0 37.7%
if -3.09999999999999999e-59 < t < 1.90000000000000003e-149 or 800 < t < 6.20000000000000009e56Initial program 83.8%
Taylor expanded in a around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in c around inf 35.4%
if 1.90000000000000003e-149 < t < 800Initial program 72.5%
Taylor expanded in x around inf 46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in z around inf 38.1%
*-commutative38.1%
Simplified38.1%
if 6.20000000000000009e56 < t Initial program 67.7%
Taylor expanded in t around inf 75.5%
distribute-lft-out--75.5%
Simplified75.5%
Taylor expanded in a around 0 48.2%
associate-*r*48.3%
Simplified48.3%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* c j))) (t_2 (* b (* t i))))
(if (<= t -1.05e-57)
t_2
(if (<= t 3e-150)
t_1
(if (<= t 510.0) (* x (* y z)) (if (<= t 4.2e+55) t_1 t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = b * (t * i);
double tmp;
if (t <= -1.05e-57) {
tmp = t_2;
} else if (t <= 3e-150) {
tmp = t_1;
} else if (t <= 510.0) {
tmp = x * (y * z);
} else if (t <= 4.2e+55) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (c * j)
t_2 = b * (t * i)
if (t <= (-1.05d-57)) then
tmp = t_2
else if (t <= 3d-150) then
tmp = t_1
else if (t <= 510.0d0) then
tmp = x * (y * z)
else if (t <= 4.2d+55) then
tmp = t_1
else
tmp = t_2
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (c * j);
double t_2 = b * (t * i);
double tmp;
if (t <= -1.05e-57) {
tmp = t_2;
} else if (t <= 3e-150) {
tmp = t_1;
} else if (t <= 510.0) {
tmp = x * (y * z);
} else if (t <= 4.2e+55) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (c * j) t_2 = b * (t * i) tmp = 0 if t <= -1.05e-57: tmp = t_2 elif t <= 3e-150: tmp = t_1 elif t <= 510.0: tmp = x * (y * z) elif t <= 4.2e+55: tmp = t_1 else: tmp = t_2 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(c * j)) t_2 = Float64(b * Float64(t * i)) tmp = 0.0 if (t <= -1.05e-57) tmp = t_2; elseif (t <= 3e-150) tmp = t_1; elseif (t <= 510.0) tmp = Float64(x * Float64(y * z)); elseif (t <= 4.2e+55) tmp = t_1; else tmp = t_2; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (c * j); t_2 = b * (t * i); tmp = 0.0; if (t <= -1.05e-57) tmp = t_2; elseif (t <= 3e-150) tmp = t_1; elseif (t <= 510.0) tmp = x * (y * z); elseif (t <= 4.2e+55) tmp = t_1; else tmp = t_2; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -1.05e-57], t$95$2, If[LessEqual[t, 3e-150], t$95$1, If[LessEqual[t, 510.0], N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.2e+55], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j\right)\\
t_2 := b \cdot \left(t \cdot i\right)\\
\mathbf{if}\;t \leq -1.05 \cdot 10^{-57}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 3 \cdot 10^{-150}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 510:\\
\;\;\;\;x \cdot \left(y \cdot z\right)\\
\mathbf{elif}\;t \leq 4.2 \cdot 10^{+55}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if t < -1.05e-57 or 4.2000000000000001e55 < t Initial program 64.7%
Taylor expanded in t around inf 67.0%
distribute-lft-out--67.0%
Simplified67.0%
Taylor expanded in a around 0 41.6%
if -1.05e-57 < t < 3.0000000000000002e-150 or 510 < t < 4.2000000000000001e55Initial program 83.8%
Taylor expanded in a around inf 45.6%
+-commutative45.6%
mul-1-neg45.6%
unsub-neg45.6%
Simplified45.6%
Taylor expanded in c around inf 35.4%
if 3.0000000000000002e-150 < t < 510Initial program 72.5%
Taylor expanded in x around inf 46.1%
*-commutative46.1%
Simplified46.1%
Taylor expanded in z around inf 38.1%
*-commutative38.1%
Simplified38.1%
Final simplification38.6%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= a -1.45e+142)
(* x (* a (- (* c (/ j x)) t)))
(if (<= a -7.8e-22)
(* i (* j (- (/ (* a c) i) y)))
(if (<= a 3.2e+46) (* b (- (* t i) (* z c))) (* a (- (* c j) (* 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 (a <= -1.45e+142) {
tmp = x * (a * ((c * (j / x)) - t));
} else if (a <= -7.8e-22) {
tmp = i * (j * (((a * c) / i) - y));
} else if (a <= 3.2e+46) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (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 (a <= (-1.45d+142)) then
tmp = x * (a * ((c * (j / x)) - t))
else if (a <= (-7.8d-22)) then
tmp = i * (j * (((a * c) / i) - y))
else if (a <= 3.2d+46) then
tmp = b * ((t * i) - (z * c))
else
tmp = a * ((c * j) - (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 (a <= -1.45e+142) {
tmp = x * (a * ((c * (j / x)) - t));
} else if (a <= -7.8e-22) {
tmp = i * (j * (((a * c) / i) - y));
} else if (a <= 3.2e+46) {
tmp = b * ((t * i) - (z * c));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if a <= -1.45e+142: tmp = x * (a * ((c * (j / x)) - t)) elif a <= -7.8e-22: tmp = i * (j * (((a * c) / i) - y)) elif a <= 3.2e+46: tmp = b * ((t * i) - (z * c)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (a <= -1.45e+142) tmp = Float64(x * Float64(a * Float64(Float64(c * Float64(j / x)) - t))); elseif (a <= -7.8e-22) tmp = Float64(i * Float64(j * Float64(Float64(Float64(a * c) / i) - y))); elseif (a <= 3.2e+46) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); else tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (a <= -1.45e+142) tmp = x * (a * ((c * (j / x)) - t)); elseif (a <= -7.8e-22) tmp = i * (j * (((a * c) / i) - y)); elseif (a <= 3.2e+46) tmp = b * ((t * i) - (z * c)); else tmp = a * ((c * j) - (x * t)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[a, -1.45e+142], N[(x * N[(a * N[(N[(c * N[(j / x), $MachinePrecision]), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -7.8e-22], N[(i * N[(j * N[(N[(N[(a * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 3.2e+46], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -1.45 \cdot 10^{+142}:\\
\;\;\;\;x \cdot \left(a \cdot \left(c \cdot \frac{j}{x} - t\right)\right)\\
\mathbf{elif}\;a \leq -7.8 \cdot 10^{-22}:\\
\;\;\;\;i \cdot \left(j \cdot \left(\frac{a \cdot c}{i} - y\right)\right)\\
\mathbf{elif}\;a \leq 3.2 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if a < -1.45000000000000007e142Initial program 63.6%
Taylor expanded in a around inf 75.6%
+-commutative75.6%
mul-1-neg75.6%
unsub-neg75.6%
Simplified75.6%
Taylor expanded in x around inf 66.5%
mul-1-neg66.5%
distribute-lft-neg-out66.5%
+-commutative66.5%
cancel-sign-sub-inv66.5%
associate-/l*71.0%
distribute-lft-out--75.6%
associate-/l*77.9%
Simplified77.9%
if -1.45000000000000007e142 < a < -7.79999999999999996e-22Initial program 74.2%
Taylor expanded in i around inf 64.4%
Simplified64.3%
Taylor expanded in j around inf 54.5%
if -7.79999999999999996e-22 < a < 3.1999999999999998e46Initial program 83.4%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
if 3.1999999999999998e46 < a Initial program 59.2%
Taylor expanded in a around inf 65.7%
+-commutative65.7%
mul-1-neg65.7%
unsub-neg65.7%
Simplified65.7%
Final simplification61.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -4.5e+142)
t_1
(if (<= a -1.42e-22)
(* i (* j (- (/ (* a c) i) y)))
(if (<= a 1.8e+47) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -4.5e+142) {
tmp = t_1;
} else if (a <= -1.42e-22) {
tmp = i * (j * (((a * c) / i) - y));
} else if (a <= 1.8e+47) {
tmp = b * ((t * i) - (z * c));
} 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 <= (-4.5d+142)) then
tmp = t_1
else if (a <= (-1.42d-22)) then
tmp = i * (j * (((a * c) / i) - y))
else if (a <= 1.8d+47) then
tmp = b * ((t * i) - (z * c))
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 <= -4.5e+142) {
tmp = t_1;
} else if (a <= -1.42e-22) {
tmp = i * (j * (((a * c) / i) - y));
} else if (a <= 1.8e+47) {
tmp = b * ((t * i) - (z * c));
} 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 <= -4.5e+142: tmp = t_1 elif a <= -1.42e-22: tmp = i * (j * (((a * c) / i) - y)) elif a <= 1.8e+47: tmp = b * ((t * i) - (z * c)) 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 <= -4.5e+142) tmp = t_1; elseif (a <= -1.42e-22) tmp = Float64(i * Float64(j * Float64(Float64(Float64(a * c) / i) - y))); elseif (a <= 1.8e+47) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); 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 <= -4.5e+142) tmp = t_1; elseif (a <= -1.42e-22) tmp = i * (j * (((a * c) / i) - y)); elseif (a <= 1.8e+47) tmp = b * ((t * i) - (z * c)); 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, -4.5e+142], t$95$1, If[LessEqual[a, -1.42e-22], N[(i * N[(j * N[(N[(N[(a * c), $MachinePrecision] / i), $MachinePrecision] - y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.8e+47], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $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 -4.5 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.42 \cdot 10^{-22}:\\
\;\;\;\;i \cdot \left(j \cdot \left(\frac{a \cdot c}{i} - y\right)\right)\\
\mathbf{elif}\;a \leq 1.8 \cdot 10^{+47}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -4.4999999999999999e142 or 1.80000000000000004e47 < a Initial program 61.2%
Taylor expanded in a around inf 70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -4.4999999999999999e142 < a < -1.4200000000000001e-22Initial program 74.2%
Taylor expanded in i around inf 64.4%
Simplified64.3%
Taylor expanded in j around inf 54.5%
if -1.4200000000000001e-22 < a < 1.80000000000000004e47Initial program 83.4%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
Final simplification60.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -1.45e+142)
t_1
(if (<= a -2.3e-21)
(* j (- (* a c) (* y i)))
(if (<= a 2e+46) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.45e+142) {
tmp = t_1;
} else if (a <= -2.3e-21) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 2e+46) {
tmp = b * ((t * i) - (z * c));
} 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 <= (-1.45d+142)) then
tmp = t_1
else if (a <= (-2.3d-21)) then
tmp = j * ((a * c) - (y * i))
else if (a <= 2d+46) then
tmp = b * ((t * i) - (z * c))
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 <= -1.45e+142) {
tmp = t_1;
} else if (a <= -2.3e-21) {
tmp = j * ((a * c) - (y * i));
} else if (a <= 2e+46) {
tmp = b * ((t * i) - (z * c));
} 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 <= -1.45e+142: tmp = t_1 elif a <= -2.3e-21: tmp = j * ((a * c) - (y * i)) elif a <= 2e+46: tmp = b * ((t * i) - (z * c)) 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 <= -1.45e+142) tmp = t_1; elseif (a <= -2.3e-21) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); elseif (a <= 2e+46) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); 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 <= -1.45e+142) tmp = t_1; elseif (a <= -2.3e-21) tmp = j * ((a * c) - (y * i)); elseif (a <= 2e+46) tmp = b * ((t * i) - (z * c)); 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, -1.45e+142], t$95$1, If[LessEqual[a, -2.3e-21], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2e+46], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $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 -1.45 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -2.3 \cdot 10^{-21}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;a \leq 2 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.45000000000000007e142 or 2e46 < a Initial program 61.2%
Taylor expanded in a around inf 70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -1.45000000000000007e142 < a < -2.29999999999999999e-21Initial program 74.2%
Taylor expanded in j around inf 53.1%
if -2.29999999999999999e-21 < a < 2e46Initial program 83.4%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
Final simplification60.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -1.7e+142)
t_1
(if (<= a -1.8e-41)
(* i (- (* t b) (* y j)))
(if (<= a 1.85e+46) (* b (- (* t i) (* z c))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -1.7e+142) {
tmp = t_1;
} else if (a <= -1.8e-41) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 1.85e+46) {
tmp = b * ((t * i) - (z * c));
} 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 <= (-1.7d+142)) then
tmp = t_1
else if (a <= (-1.8d-41)) then
tmp = i * ((t * b) - (y * j))
else if (a <= 1.85d+46) then
tmp = b * ((t * i) - (z * c))
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 <= -1.7e+142) {
tmp = t_1;
} else if (a <= -1.8e-41) {
tmp = i * ((t * b) - (y * j));
} else if (a <= 1.85e+46) {
tmp = b * ((t * i) - (z * c));
} 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 <= -1.7e+142: tmp = t_1 elif a <= -1.8e-41: tmp = i * ((t * b) - (y * j)) elif a <= 1.85e+46: tmp = b * ((t * i) - (z * c)) 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 <= -1.7e+142) tmp = t_1; elseif (a <= -1.8e-41) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); elseif (a <= 1.85e+46) tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); 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 <= -1.7e+142) tmp = t_1; elseif (a <= -1.8e-41) tmp = i * ((t * b) - (y * j)); elseif (a <= 1.85e+46) tmp = b * ((t * i) - (z * c)); 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, -1.7e+142], t$95$1, If[LessEqual[a, -1.8e-41], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.85e+46], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $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 -1.7 \cdot 10^{+142}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.8 \cdot 10^{-41}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{elif}\;a \leq 1.85 \cdot 10^{+46}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.6999999999999999e142 or 1.84999999999999995e46 < a Initial program 61.2%
Taylor expanded in a around inf 70.2%
+-commutative70.2%
mul-1-neg70.2%
unsub-neg70.2%
Simplified70.2%
if -1.6999999999999999e142 < a < -1.8e-41Initial program 74.8%
Taylor expanded in i around inf 63.9%
Simplified63.8%
Taylor expanded in i around inf 49.6%
if -1.8e-41 < a < 1.84999999999999995e46Initial program 83.6%
Taylor expanded in b around inf 55.2%
*-commutative55.2%
Simplified55.2%
Final simplification60.0%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))))
(if (<= a -2.2e-141)
t_1
(if (<= a 2.6e-254)
(* b (* z (- c)))
(if (<= a 2.9e-27) (* t (* b i)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.2e-141) {
tmp = t_1;
} else if (a <= 2.6e-254) {
tmp = b * (z * -c);
} else if (a <= 2.9e-27) {
tmp = t * (b * i);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * ((c * j) - (x * t))
if (a <= (-2.2d-141)) then
tmp = t_1
else if (a <= 2.6d-254) then
tmp = b * (z * -c)
else if (a <= 2.9d-27) then
tmp = t * (b * i)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * ((c * j) - (x * t));
double tmp;
if (a <= -2.2e-141) {
tmp = t_1;
} else if (a <= 2.6e-254) {
tmp = b * (z * -c);
} else if (a <= 2.9e-27) {
tmp = t * (b * i);
} 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.2e-141: tmp = t_1 elif a <= 2.6e-254: tmp = b * (z * -c) elif a <= 2.9e-27: tmp = t * (b * i) 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.2e-141) tmp = t_1; elseif (a <= 2.6e-254) tmp = Float64(b * Float64(z * Float64(-c))); elseif (a <= 2.9e-27) tmp = Float64(t * Float64(b * i)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * ((c * j) - (x * t)); tmp = 0.0; if (a <= -2.2e-141) tmp = t_1; elseif (a <= 2.6e-254) tmp = b * (z * -c); elseif (a <= 2.9e-27) tmp = t * (b * i); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.2e-141], t$95$1, If[LessEqual[a, 2.6e-254], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.9e-27], N[(t * N[(b * i), $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.2 \cdot 10^{-141}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 2.6 \cdot 10^{-254}:\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{elif}\;a \leq 2.9 \cdot 10^{-27}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -2.20000000000000009e-141 or 2.90000000000000004e-27 < a Initial program 67.8%
Taylor expanded in a around inf 53.6%
+-commutative53.6%
mul-1-neg53.6%
unsub-neg53.6%
Simplified53.6%
if -2.20000000000000009e-141 < a < 2.6e-254Initial program 84.3%
Taylor expanded in t around inf 82.6%
mul-1-neg82.6%
+-commutative82.6%
unsub-neg82.6%
associate-/l*78.9%
associate-/l*77.1%
Simplified77.1%
Taylor expanded in b around inf 68.7%
mul-1-neg68.7%
associate-*r*61.9%
*-commutative61.9%
associate-*r/60.1%
associate-*r*63.3%
distribute-lft-neg-out63.3%
*-commutative63.3%
Simplified63.3%
Taylor expanded in c around inf 43.5%
associate-*r*43.5%
neg-mul-143.5%
Simplified43.5%
if 2.6e-254 < a < 2.90000000000000004e-27Initial program 84.7%
Taylor expanded in t around inf 50.1%
distribute-lft-out--50.1%
Simplified50.1%
Taylor expanded in a around 0 38.0%
associate-*r*42.8%
Simplified42.8%
Final simplification50.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -2.5e+65) (not (<= t 66000000.0))) (* t (- (* b i) (* x a))) (* (* y z) (- x (* i (/ j z))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -2.5e+65) || !(t <= 66000000.0)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (y * z) * (x - (i * (j / z)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((t <= (-2.5d+65)) .or. (.not. (t <= 66000000.0d0))) then
tmp = t * ((b * i) - (x * a))
else
tmp = (y * z) * (x - (i * (j / z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((t <= -2.5e+65) || !(t <= 66000000.0)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (y * z) * (x - (i * (j / z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -2.5e+65) or not (t <= 66000000.0): tmp = t * ((b * i) - (x * a)) else: tmp = (y * z) * (x - (i * (j / z))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -2.5e+65) || !(t <= 66000000.0)) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(Float64(y * z) * Float64(x - Float64(i * Float64(j / z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -2.5e+65) || ~((t <= 66000000.0))) tmp = t * ((b * i) - (x * a)); else tmp = (y * z) * (x - (i * (j / z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -2.5e+65], N[Not[LessEqual[t, 66000000.0]], $MachinePrecision]], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y * z), $MachinePrecision] * N[(x - N[(i * N[(j / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.5 \cdot 10^{+65} \lor \neg \left(t \leq 66000000\right):\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y \cdot z\right) \cdot \left(x - i \cdot \frac{j}{z}\right)\\
\end{array}
\end{array}
if t < -2.49999999999999986e65 or 6.6e7 < t Initial program 64.1%
Taylor expanded in t around inf 70.4%
distribute-lft-out--70.4%
Simplified70.4%
Taylor expanded in t around 0 70.4%
mul-1-neg70.4%
*-commutative70.4%
distribute-rgt-neg-out70.4%
neg-mul-170.4%
distribute-lft-out--70.4%
*-commutative70.4%
neg-mul-170.4%
sub-neg70.4%
remove-double-neg70.4%
+-commutative70.4%
mul-1-neg70.4%
*-commutative70.4%
unsub-neg70.4%
*-commutative70.4%
Simplified70.4%
if -2.49999999999999986e65 < t < 6.6e7Initial program 80.2%
Taylor expanded in t around inf 73.2%
mul-1-neg73.2%
+-commutative73.2%
unsub-neg73.2%
associate-/l*70.7%
associate-/l*66.9%
Simplified66.9%
Taylor expanded in z around inf 72.1%
+-commutative72.1%
mul-1-neg72.1%
unsub-neg72.1%
fma-define73.4%
associate-/l*68.8%
*-commutative68.8%
associate-/l*70.1%
+-commutative70.1%
mul-1-neg70.1%
Simplified70.7%
Taylor expanded in y around inf 50.2%
associate-*r*51.2%
*-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
associate-/l*53.1%
Simplified53.1%
Final simplification60.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= a -1.65e+50) (not (<= a 1.15e+48))) (* 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 <= -1.65e+50) || !(a <= 1.15e+48)) {
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 <= (-1.65d+50)) .or. (.not. (a <= 1.15d+48))) 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 <= -1.65e+50) || !(a <= 1.15e+48)) {
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 <= -1.65e+50) or not (a <= 1.15e+48): 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 <= -1.65e+50) || !(a <= 1.15e+48)) 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 <= -1.65e+50) || ~((a <= 1.15e+48))) 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, -1.65e+50], N[Not[LessEqual[a, 1.15e+48]], $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 -1.65 \cdot 10^{+50} \lor \neg \left(a \leq 1.15 \cdot 10^{+48}\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 < -1.65e50 or 1.15e48 < a Initial program 63.8%
Taylor expanded in a around inf 65.3%
+-commutative65.3%
mul-1-neg65.3%
unsub-neg65.3%
Simplified65.3%
if -1.65e50 < a < 1.15e48Initial program 81.7%
Taylor expanded in b around inf 50.6%
*-commutative50.6%
Simplified50.6%
Final simplification57.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -1.45e-60) (not (<= t 1.95e+56))) (* 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 ((t <= -1.45e-60) || !(t <= 1.95e+56)) {
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 ((t <= (-1.45d-60)) .or. (.not. (t <= 1.95d+56))) 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 ((t <= -1.45e-60) || !(t <= 1.95e+56)) {
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 (t <= -1.45e-60) or not (t <= 1.95e+56): 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 ((t <= -1.45e-60) || !(t <= 1.95e+56)) 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 ((t <= -1.45e-60) || ~((t <= 1.95e+56))) 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[Or[LessEqual[t, -1.45e-60], N[Not[LessEqual[t, 1.95e+56]], $MachinePrecision]], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.45 \cdot 10^{-60} \lor \neg \left(t \leq 1.95 \cdot 10^{+56}\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -1.45e-60 or 1.94999999999999997e56 < t Initial program 64.7%
Taylor expanded in t around inf 67.0%
distribute-lft-out--67.0%
Simplified67.0%
Taylor expanded in a around 0 41.6%
if -1.45e-60 < t < 1.94999999999999997e56Initial program 80.9%
Taylor expanded in a around inf 40.1%
+-commutative40.1%
mul-1-neg40.1%
unsub-neg40.1%
Simplified40.1%
Taylor expanded in c around inf 29.8%
Final simplification35.1%
(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 73.6%
Taylor expanded in a around inf 39.4%
+-commutative39.4%
mul-1-neg39.4%
unsub-neg39.4%
Simplified39.4%
Taylor expanded in c around inf 21.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 2024165
(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)))))