
(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 17 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j) :precision binary64 (+ (- (* x (- (* y z) (* t a))) (* b (- (* c z) (* 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
(+
(- (* x (- (* y z) (* t a))) (* b (- (* z c) (* t i))))
(* j (- (* a c) (* y i))))))
(if (<= t_1 INFINITY) t_1 (* t (* a (- (* b (/ i a)) x))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = t * (a * ((b * (i / a)) - x));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= Double.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = t * (a * ((b * (i / a)) - x));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = t * (a * ((b * (i / a)) - x)) return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) - Float64(b * Float64(Float64(z * c) - Float64(t * i)))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(t * Float64(a * Float64(Float64(b * Float64(i / a)) - x))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = ((x * ((y * z) - (t * a))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = t * (a * ((b * (i / a)) - x)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(z * c), $MachinePrecision] - N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(t * N[(a * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \left(y \cdot z - t \cdot a\right) - b \cdot \left(z \cdot c - t \cdot i\right)\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(a \cdot \left(b \cdot \frac{i}{a} - x\right)\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 93.2%
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 60.5%
distribute-lft-out--60.5%
Simplified60.5%
Taylor expanded in a around inf 62.2%
+-commutative62.2%
neg-mul-162.2%
unsub-neg62.2%
associate-/l*64.0%
Simplified64.0%
Final simplification86.9%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.95e+208)
(* t (* a (- (* b (/ i a)) x)))
(if (<= i -1.65e+31)
(+ (* y (- (* x z) (* i j))) (* b (* t i)))
(if (<= i 2.3e+67)
(+ (* x (- (* y z) (* t a))) (* a (* c j)))
(* i (- (* t b) (* y j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.95e+208) {
tmp = t * (a * ((b * (i / a)) - x));
} else if (i <= -1.65e+31) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else if (i <= 2.3e+67) {
tmp = (x * ((y * z) - (t * a))) + (a * (c * j));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.95d+208)) then
tmp = t * (a * ((b * (i / a)) - x))
else if (i <= (-1.65d+31)) then
tmp = (y * ((x * z) - (i * j))) + (b * (t * i))
else if (i <= 2.3d+67) then
tmp = (x * ((y * z) - (t * a))) + (a * (c * j))
else
tmp = i * ((t * b) - (y * j))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.95e+208) {
tmp = t * (a * ((b * (i / a)) - x));
} else if (i <= -1.65e+31) {
tmp = (y * ((x * z) - (i * j))) + (b * (t * i));
} else if (i <= 2.3e+67) {
tmp = (x * ((y * z) - (t * a))) + (a * (c * j));
} else {
tmp = i * ((t * b) - (y * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.95e+208: tmp = t * (a * ((b * (i / a)) - x)) elif i <= -1.65e+31: tmp = (y * ((x * z) - (i * j))) + (b * (t * i)) elif i <= 2.3e+67: tmp = (x * ((y * z) - (t * a))) + (a * (c * j)) else: tmp = i * ((t * b) - (y * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.95e+208) tmp = Float64(t * Float64(a * Float64(Float64(b * Float64(i / a)) - x))); elseif (i <= -1.65e+31) tmp = Float64(Float64(y * Float64(Float64(x * z) - Float64(i * j))) + Float64(b * Float64(t * i))); elseif (i <= 2.3e+67) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(a * Float64(c * j))); else tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.95e+208) tmp = t * (a * ((b * (i / a)) - x)); elseif (i <= -1.65e+31) tmp = (y * ((x * z) - (i * j))) + (b * (t * i)); elseif (i <= 2.3e+67) tmp = (x * ((y * z) - (t * a))) + (a * (c * j)); else tmp = i * ((t * b) - (y * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.95e+208], N[(t * N[(a * N[(N[(b * N[(i / a), $MachinePrecision]), $MachinePrecision] - x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.65e+31], N[(N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.3e+67], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.95 \cdot 10^{+208}:\\
\;\;\;\;t \cdot \left(a \cdot \left(b \cdot \frac{i}{a} - x\right)\right)\\
\mathbf{elif}\;i \leq -1.65 \cdot 10^{+31}:\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\right) + b \cdot \left(t \cdot i\right)\\
\mathbf{elif}\;i \leq 2.3 \cdot 10^{+67}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\end{array}
\end{array}
if i < -1.95e208Initial program 39.6%
Taylor expanded in t around inf 78.5%
distribute-lft-out--78.5%
Simplified78.5%
Taylor expanded in a around inf 82.7%
+-commutative82.7%
neg-mul-182.7%
unsub-neg82.7%
associate-/l*82.7%
Simplified82.7%
if -1.95e208 < i < -1.64999999999999996e31Initial program 80.0%
add-cube-cbrt79.8%
pow379.8%
*-commutative79.8%
Applied egg-rr79.8%
Taylor expanded in y around 0 77.0%
+-commutative77.0%
*-commutative77.0%
mul-1-neg77.0%
unsub-neg77.0%
Simplified77.0%
Taylor expanded in c around 0 77.1%
+-commutative77.1%
*-commutative77.1%
associate-*r*74.2%
mul-1-neg74.2%
associate-*r*71.3%
distribute-lft-neg-in71.3%
distribute-rgt-neg-in71.3%
distribute-rgt-in71.3%
distribute-rgt-neg-in71.3%
unsub-neg71.3%
+-commutative71.3%
*-commutative71.3%
associate-*r*71.3%
mul-1-neg71.3%
associate-*r*71.2%
distribute-lft-neg-in71.2%
mul-1-neg71.2%
distribute-rgt-in71.2%
mul-1-neg71.2%
Simplified71.2%
Taylor expanded in a around 0 71.4%
if -1.64999999999999996e31 < i < 2.2999999999999999e67Initial program 81.6%
add-cube-cbrt81.5%
pow381.5%
*-commutative81.5%
Applied egg-rr81.5%
Taylor expanded in x around inf 71.9%
*-commutative71.9%
*-commutative71.9%
Simplified71.9%
Taylor expanded in c around inf 63.4%
if 2.2999999999999999e67 < i Initial program 60.3%
Taylor expanded in a around 0 68.0%
Taylor expanded in i around -inf 77.6%
associate-*r*77.6%
neg-mul-177.6%
*-commutative77.6%
Simplified77.6%
Final simplification69.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* j (- (* a c) (* y i)))) (t_2 (* b (- (* t i) (* z c)))))
(if (<= b -4.5e+67)
t_2
(if (<= b -1.95e-25)
t_1
(if (<= b -7.5e-280)
(* x (- (* y z) (* t a)))
(if (<= b 4.4e+43) 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 * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.5e+67) {
tmp = t_2;
} else if (b <= -1.95e-25) {
tmp = t_1;
} else if (b <= -7.5e-280) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 4.4e+43) {
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 = j * ((a * c) - (y * i))
t_2 = b * ((t * i) - (z * c))
if (b <= (-4.5d+67)) then
tmp = t_2
else if (b <= (-1.95d-25)) then
tmp = t_1
else if (b <= (-7.5d-280)) then
tmp = x * ((y * z) - (t * a))
else if (b <= 4.4d+43) 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 = j * ((a * c) - (y * i));
double t_2 = b * ((t * i) - (z * c));
double tmp;
if (b <= -4.5e+67) {
tmp = t_2;
} else if (b <= -1.95e-25) {
tmp = t_1;
} else if (b <= -7.5e-280) {
tmp = x * ((y * z) - (t * a));
} else if (b <= 4.4e+43) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = j * ((a * c) - (y * i)) t_2 = b * ((t * i) - (z * c)) tmp = 0 if b <= -4.5e+67: tmp = t_2 elif b <= -1.95e-25: tmp = t_1 elif b <= -7.5e-280: tmp = x * ((y * z) - (t * a)) elif b <= 4.4e+43: tmp = 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(a * c) - Float64(y * i))) t_2 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -4.5e+67) tmp = t_2; elseif (b <= -1.95e-25) tmp = t_1; elseif (b <= -7.5e-280) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (b <= 4.4e+43) 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 = j * ((a * c) - (y * i)); t_2 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -4.5e+67) tmp = t_2; elseif (b <= -1.95e-25) tmp = t_1; elseif (b <= -7.5e-280) tmp = x * ((y * z) - (t * a)); elseif (b <= 4.4e+43) 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[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -4.5e+67], t$95$2, If[LessEqual[b, -1.95e-25], t$95$1, If[LessEqual[b, -7.5e-280], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.4e+43], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(a \cdot c - y \cdot i\right)\\
t_2 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -4.5 \cdot 10^{+67}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.95 \cdot 10^{-25}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{-280}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;b \leq 4.4 \cdot 10^{+43}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -4.4999999999999998e67 or 4.40000000000000001e43 < b Initial program 76.1%
Taylor expanded in b around inf 67.9%
*-commutative67.9%
Simplified67.9%
if -4.4999999999999998e67 < b < -1.95e-25 or -7.4999999999999999e-280 < b < 4.40000000000000001e43Initial program 68.2%
add-cube-cbrt68.1%
pow368.1%
*-commutative68.1%
Applied egg-rr68.1%
Taylor expanded in y around 0 68.3%
+-commutative68.3%
*-commutative68.3%
mul-1-neg68.3%
unsub-neg68.3%
Simplified68.3%
Taylor expanded in j around inf 63.0%
sub-neg63.0%
*-commutative63.0%
sub-neg63.0%
Simplified63.0%
if -1.95e-25 < b < -7.4999999999999999e-280Initial program 76.0%
add-cube-cbrt76.0%
pow376.0%
*-commutative76.0%
Applied egg-rr76.0%
Taylor expanded in y around 0 76.0%
+-commutative76.0%
*-commutative76.0%
mul-1-neg76.0%
unsub-neg76.0%
Simplified76.0%
Taylor expanded in c around 0 64.3%
+-commutative64.3%
*-commutative64.3%
associate-*r*62.8%
mul-1-neg62.8%
associate-*r*67.4%
distribute-lft-neg-in67.4%
distribute-rgt-neg-in67.4%
distribute-rgt-in67.4%
distribute-rgt-neg-in67.4%
unsub-neg67.4%
+-commutative67.4%
*-commutative67.4%
associate-*r*65.8%
mul-1-neg65.8%
associate-*r*69.0%
distribute-lft-neg-in69.0%
mul-1-neg69.0%
distribute-rgt-in70.6%
mul-1-neg70.6%
Simplified70.6%
Taylor expanded in x around inf 60.7%
*-commutative60.7%
Simplified60.7%
Final simplification64.4%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -3e+81)
(* t (- (* b i) (* x a)))
(if (<= b 2.3e+16)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(+ (* b (- (* t i) (* z c))) (* y (- (* x z) (* i j)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3e+81) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 2.3e+16) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-3d+81)) then
tmp = t * ((b * i) - (x * a))
else if (b <= 2.3d+16) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else
tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -3e+81) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 2.3e+16) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -3e+81: tmp = t * ((b * i) - (x * a)) elif b <= 2.3e+16: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) else: tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -3e+81) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 2.3e+16) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(Float64(b * Float64(Float64(t * i) - Float64(z * c))) + Float64(y * Float64(Float64(x * z) - Float64(i * j)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -3e+81) tmp = t * ((b * i) - (x * a)); elseif (b <= 2.3e+16) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); else tmp = (b * ((t * i) - (z * c))) + (y * ((x * z) - (i * j))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -3e+81], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e+16], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{+16}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right) + y \cdot \left(x \cdot z - i \cdot j\right)\\
\end{array}
\end{array}
if b < -2.99999999999999997e81Initial program 70.0%
Taylor expanded in t around inf 69.6%
distribute-lft-out--69.6%
Simplified69.6%
if -2.99999999999999997e81 < b < 2.3e16Initial program 73.2%
Taylor expanded in b around 0 74.6%
if 2.3e16 < b Initial program 77.4%
Taylor expanded in a around 0 83.4%
Simplified83.5%
Final simplification75.0%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= b -4.2e+81)
(* t (- (* b i) (* x a)))
(if (<= b 170000000000.0)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(* b (- (* t i) (* z c))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.2e+81) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 170000000000.0) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (b <= (-4.2d+81)) then
tmp = t * ((b * i) - (x * a))
else if (b <= 170000000000.0d0) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else
tmp = b * ((t * i) - (z * c))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (b <= -4.2e+81) {
tmp = t * ((b * i) - (x * a));
} else if (b <= 170000000000.0) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else {
tmp = b * ((t * i) - (z * c));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if b <= -4.2e+81: tmp = t * ((b * i) - (x * a)) elif b <= 170000000000.0: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) else: tmp = b * ((t * i) - (z * c)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (b <= -4.2e+81) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); elseif (b <= 170000000000.0) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); else tmp = Float64(b * Float64(Float64(t * i) - Float64(z * c))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (b <= -4.2e+81) tmp = t * ((b * i) - (x * a)); elseif (b <= 170000000000.0) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); else tmp = b * ((t * i) - (z * c)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[b, -4.2e+81], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 170000000000.0], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -4.2 \cdot 10^{+81}:\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{elif}\;b \leq 170000000000:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i - z \cdot c\right)\\
\end{array}
\end{array}
if b < -4.1999999999999997e81Initial program 70.0%
Taylor expanded in t around inf 69.6%
distribute-lft-out--69.6%
Simplified69.6%
if -4.1999999999999997e81 < b < 1.7e11Initial program 74.5%
Taylor expanded in b around 0 76.0%
if 1.7e11 < b Initial program 73.0%
Taylor expanded in b around inf 71.4%
*-commutative71.4%
Simplified71.4%
Final simplification73.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* x (- a)))))
(if (<= x -1.5e+78)
t_1
(if (<= x -1.75e-286)
(* a (* c j))
(if (<= x 7.4e-113)
(* i (* t b))
(if (<= x 5.4e+135) (* i (* j (- y))) 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 * (x * -a);
double tmp;
if (x <= -1.5e+78) {
tmp = t_1;
} else if (x <= -1.75e-286) {
tmp = a * (c * j);
} else if (x <= 7.4e-113) {
tmp = i * (t * b);
} else if (x <= 5.4e+135) {
tmp = i * (j * -y);
} 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 * (x * -a)
if (x <= (-1.5d+78)) then
tmp = t_1
else if (x <= (-1.75d-286)) then
tmp = a * (c * j)
else if (x <= 7.4d-113) then
tmp = i * (t * b)
else if (x <= 5.4d+135) then
tmp = i * (j * -y)
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 * (x * -a);
double tmp;
if (x <= -1.5e+78) {
tmp = t_1;
} else if (x <= -1.75e-286) {
tmp = a * (c * j);
} else if (x <= 7.4e-113) {
tmp = i * (t * b);
} else if (x <= 5.4e+135) {
tmp = i * (j * -y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (x * -a) tmp = 0 if x <= -1.5e+78: tmp = t_1 elif x <= -1.75e-286: tmp = a * (c * j) elif x <= 7.4e-113: tmp = i * (t * b) elif x <= 5.4e+135: tmp = i * (j * -y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(x * Float64(-a))) tmp = 0.0 if (x <= -1.5e+78) tmp = t_1; elseif (x <= -1.75e-286) tmp = Float64(a * Float64(c * j)); elseif (x <= 7.4e-113) tmp = Float64(i * Float64(t * b)); elseif (x <= 5.4e+135) tmp = Float64(i * Float64(j * Float64(-y))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (x * -a); tmp = 0.0; if (x <= -1.5e+78) tmp = t_1; elseif (x <= -1.75e-286) tmp = a * (c * j); elseif (x <= 7.4e-113) tmp = i * (t * b); elseif (x <= 5.4e+135) tmp = i * (j * -y); 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[(x * (-a)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.5e+78], t$95$1, If[LessEqual[x, -1.75e-286], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.4e-113], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.4e+135], N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{if}\;x \leq -1.5 \cdot 10^{+78}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.75 \cdot 10^{-286}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 7.4 \cdot 10^{-113}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;x \leq 5.4 \cdot 10^{+135}:\\
\;\;\;\;i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.49999999999999991e78 or 5.3999999999999997e135 < x Initial program 74.4%
Taylor expanded in t around inf 65.9%
distribute-lft-out--65.9%
Simplified65.9%
Taylor expanded in a around inf 56.9%
associate-*r*56.9%
neg-mul-156.9%
Simplified56.9%
if -1.49999999999999991e78 < x < -1.74999999999999994e-286Initial program 72.1%
Taylor expanded in a around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
Simplified42.5%
Taylor expanded in c around inf 34.2%
if -1.74999999999999994e-286 < x < 7.3999999999999996e-113Initial program 70.8%
Taylor expanded in t around inf 50.5%
distribute-lft-out--50.5%
Simplified50.5%
Taylor expanded in a around inf 50.6%
+-commutative50.6%
neg-mul-150.6%
unsub-neg50.6%
associate-/l*52.7%
Simplified52.7%
Taylor expanded in a around 0 47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in b around 0 47.0%
associate-*r*47.1%
*-commutative47.1%
associate-*r*51.2%
Simplified51.2%
if 7.3999999999999996e-113 < x < 5.3999999999999997e135Initial program 74.6%
Taylor expanded in y around inf 51.6%
+-commutative51.6%
mul-1-neg51.6%
unsub-neg51.6%
*-commutative51.6%
Simplified51.6%
Taylor expanded in z around 0 36.7%
mul-1-neg36.7%
*-commutative36.7%
distribute-rgt-neg-in36.7%
*-commutative36.7%
mul-1-neg36.7%
associate-*r*36.7%
neg-mul-136.7%
Simplified36.7%
Final simplification45.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- x)))) (t_2 (* i (* j (- y)))))
(if (<= y -2.3e+88)
t_2
(if (<= y 1.3e-233)
t_1
(if (<= y 7e-32) (* i (* t b)) (if (<= y 2e+41) 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 * (t * -x);
double t_2 = i * (j * -y);
double tmp;
if (y <= -2.3e+88) {
tmp = t_2;
} else if (y <= 1.3e-233) {
tmp = t_1;
} else if (y <= 7e-32) {
tmp = i * (t * b);
} else if (y <= 2e+41) {
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 * (t * -x)
t_2 = i * (j * -y)
if (y <= (-2.3d+88)) then
tmp = t_2
else if (y <= 1.3d-233) then
tmp = t_1
else if (y <= 7d-32) then
tmp = i * (t * b)
else if (y <= 2d+41) 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 * (t * -x);
double t_2 = i * (j * -y);
double tmp;
if (y <= -2.3e+88) {
tmp = t_2;
} else if (y <= 1.3e-233) {
tmp = t_1;
} else if (y <= 7e-32) {
tmp = i * (t * b);
} else if (y <= 2e+41) {
tmp = t_1;
} else {
tmp = t_2;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * -x) t_2 = i * (j * -y) tmp = 0 if y <= -2.3e+88: tmp = t_2 elif y <= 1.3e-233: tmp = t_1 elif y <= 7e-32: tmp = i * (t * b) elif y <= 2e+41: 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(t * Float64(-x))) t_2 = Float64(i * Float64(j * Float64(-y))) tmp = 0.0 if (y <= -2.3e+88) tmp = t_2; elseif (y <= 1.3e-233) tmp = t_1; elseif (y <= 7e-32) tmp = Float64(i * Float64(t * b)); elseif (y <= 2e+41) 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 * (t * -x); t_2 = i * (j * -y); tmp = 0.0; if (y <= -2.3e+88) tmp = t_2; elseif (y <= 1.3e-233) tmp = t_1; elseif (y <= 7e-32) tmp = i * (t * b); elseif (y <= 2e+41) 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[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(j * (-y)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.3e+88], t$95$2, If[LessEqual[y, 1.3e-233], t$95$1, If[LessEqual[y, 7e-32], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2e+41], t$95$1, t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
t_2 := i \cdot \left(j \cdot \left(-y\right)\right)\\
\mathbf{if}\;y \leq -2.3 \cdot 10^{+88}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq 1.3 \cdot 10^{-233}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 7 \cdot 10^{-32}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{elif}\;y \leq 2 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y < -2.3000000000000002e88 or 2.00000000000000001e41 < y Initial program 59.6%
Taylor expanded in y around inf 64.9%
+-commutative64.9%
mul-1-neg64.9%
unsub-neg64.9%
*-commutative64.9%
Simplified64.9%
Taylor expanded in z around 0 43.1%
mul-1-neg43.1%
*-commutative43.1%
distribute-rgt-neg-in43.1%
*-commutative43.1%
mul-1-neg43.1%
associate-*r*43.1%
neg-mul-143.1%
Simplified43.1%
if -2.3000000000000002e88 < y < 1.2999999999999999e-233 or 6.9999999999999997e-32 < y < 2.00000000000000001e41Initial program 82.1%
Taylor expanded in a around inf 52.6%
+-commutative52.6%
mul-1-neg52.6%
unsub-neg52.6%
Simplified52.6%
Taylor expanded in c around 0 41.0%
neg-mul-141.0%
distribute-rgt-neg-in41.0%
Simplified41.0%
if 1.2999999999999999e-233 < y < 6.9999999999999997e-32Initial program 86.2%
Taylor expanded in t around inf 63.0%
distribute-lft-out--63.0%
Simplified63.0%
Taylor expanded in a around inf 57.0%
+-commutative57.0%
neg-mul-157.0%
unsub-neg57.0%
associate-/l*56.9%
Simplified56.9%
Taylor expanded in a around 0 57.3%
*-commutative57.3%
Simplified57.3%
Taylor expanded in b around 0 57.3%
associate-*r*52.2%
*-commutative52.2%
associate-*r*59.8%
Simplified59.8%
Final simplification44.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (* t (- x)))))
(if (<= x -2.15e+288)
(* z (* x y))
(if (<= x -8.5e+77)
t_1
(if (<= x -1.9e-286)
(* a (* c j))
(if (<= x 1.75e-112) (* i (* t b)) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double tmp;
if (x <= -2.15e+288) {
tmp = z * (x * y);
} else if (x <= -8.5e+77) {
tmp = t_1;
} else if (x <= -1.9e-286) {
tmp = a * (c * j);
} else if (x <= 1.75e-112) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = a * (t * -x)
if (x <= (-2.15d+288)) then
tmp = z * (x * y)
else if (x <= (-8.5d+77)) then
tmp = t_1
else if (x <= (-1.9d-286)) then
tmp = a * (c * j)
else if (x <= 1.75d-112) then
tmp = i * (t * b)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = a * (t * -x);
double tmp;
if (x <= -2.15e+288) {
tmp = z * (x * y);
} else if (x <= -8.5e+77) {
tmp = t_1;
} else if (x <= -1.9e-286) {
tmp = a * (c * j);
} else if (x <= 1.75e-112) {
tmp = i * (t * b);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = a * (t * -x) tmp = 0 if x <= -2.15e+288: tmp = z * (x * y) elif x <= -8.5e+77: tmp = t_1 elif x <= -1.9e-286: tmp = a * (c * j) elif x <= 1.75e-112: tmp = i * (t * b) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(a * Float64(t * Float64(-x))) tmp = 0.0 if (x <= -2.15e+288) tmp = Float64(z * Float64(x * y)); elseif (x <= -8.5e+77) tmp = t_1; elseif (x <= -1.9e-286) tmp = Float64(a * Float64(c * j)); elseif (x <= 1.75e-112) tmp = Float64(i * Float64(t * b)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = a * (t * -x); tmp = 0.0; if (x <= -2.15e+288) tmp = z * (x * y); elseif (x <= -8.5e+77) tmp = t_1; elseif (x <= -1.9e-286) tmp = a * (c * j); elseif (x <= 1.75e-112) tmp = i * (t * b); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(a * N[(t * (-x)), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -2.15e+288], N[(z * N[(x * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -8.5e+77], t$95$1, If[LessEqual[x, -1.9e-286], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.75e-112], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(t \cdot \left(-x\right)\right)\\
\mathbf{if}\;x \leq -2.15 \cdot 10^{+288}:\\
\;\;\;\;z \cdot \left(x \cdot y\right)\\
\mathbf{elif}\;x \leq -8.5 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -1.9 \cdot 10^{-286}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;x \leq 1.75 \cdot 10^{-112}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -2.1500000000000001e288Initial program 66.7%
Taylor expanded in z around inf 100.0%
*-commutative100.0%
Simplified100.0%
Taylor expanded in y around inf 100.0%
*-commutative100.0%
Simplified100.0%
if -2.1500000000000001e288 < x < -8.50000000000000018e77 or 1.74999999999999997e-112 < x Initial program 74.8%
Taylor expanded in a around inf 46.1%
+-commutative46.1%
mul-1-neg46.1%
unsub-neg46.1%
Simplified46.1%
Taylor expanded in c around 0 41.9%
neg-mul-141.9%
distribute-rgt-neg-in41.9%
Simplified41.9%
if -8.50000000000000018e77 < x < -1.9000000000000001e-286Initial program 72.1%
Taylor expanded in a around inf 42.5%
+-commutative42.5%
mul-1-neg42.5%
unsub-neg42.5%
Simplified42.5%
Taylor expanded in c around inf 34.2%
if -1.9000000000000001e-286 < x < 1.74999999999999997e-112Initial program 70.8%
Taylor expanded in t around inf 50.5%
distribute-lft-out--50.5%
Simplified50.5%
Taylor expanded in a around inf 50.6%
+-commutative50.6%
neg-mul-150.6%
unsub-neg50.6%
associate-/l*52.7%
Simplified52.7%
Taylor expanded in a around 0 47.0%
*-commutative47.0%
Simplified47.0%
Taylor expanded in b around 0 47.0%
associate-*r*47.1%
*-commutative47.1%
associate-*r*51.2%
Simplified51.2%
Final simplification42.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -1.4e+82) (not (<= i 1.4e+68))) (* i (- (* t b) (* y j))) (+ (* x (- (* y z) (* t a))) (* 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 ((i <= -1.4e+82) || !(i <= 1.4e+68)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) + (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 ((i <= (-1.4d+82)) .or. (.not. (i <= 1.4d+68))) then
tmp = i * ((t * b) - (y * j))
else
tmp = (x * ((y * z) - (t * a))) + (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 ((i <= -1.4e+82) || !(i <= 1.4e+68)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = (x * ((y * z) - (t * a))) + (a * (c * j));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -1.4e+82) or not (i <= 1.4e+68): tmp = i * ((t * b) - (y * j)) else: tmp = (x * ((y * z) - (t * a))) + (a * (c * j)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -1.4e+82) || !(i <= 1.4e+68)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); else tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + 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 ((i <= -1.4e+82) || ~((i <= 1.4e+68))) tmp = i * ((t * b) - (y * j)); else tmp = (x * ((y * z) - (t * a))) + (a * (c * j)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[i, -1.4e+82], N[Not[LessEqual[i, 1.4e+68]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.4 \cdot 10^{+82} \lor \neg \left(i \leq 1.4 \cdot 10^{+68}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if i < -1.4e82 or 1.4e68 < i Initial program 61.2%
Taylor expanded in a around 0 67.0%
Taylor expanded in i around -inf 72.4%
associate-*r*72.4%
neg-mul-172.4%
*-commutative72.4%
Simplified72.4%
if -1.4e82 < i < 1.4e68Initial program 81.6%
add-cube-cbrt81.5%
pow381.5%
*-commutative81.5%
Applied egg-rr81.5%
Taylor expanded in x around inf 72.2%
*-commutative72.2%
*-commutative72.2%
Simplified72.2%
Taylor expanded in c around inf 63.3%
Final simplification67.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -2.7e-8) (not (<= t 7.8e-29))) (* t (- (* b i) (* x a))) (- (* x (* y z)) (* j (- (* y i) (* a c))))))
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.7e-8) || !(t <= 7.8e-29)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (x * (y * z)) - (j * ((y * i) - (a * 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 ((t <= (-2.7d-8)) .or. (.not. (t <= 7.8d-29))) then
tmp = t * ((b * i) - (x * a))
else
tmp = (x * (y * z)) - (j * ((y * i) - (a * 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 ((t <= -2.7e-8) || !(t <= 7.8e-29)) {
tmp = t * ((b * i) - (x * a));
} else {
tmp = (x * (y * z)) - (j * ((y * i) - (a * c)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (t <= -2.7e-8) or not (t <= 7.8e-29): tmp = t * ((b * i) - (x * a)) else: tmp = (x * (y * z)) - (j * ((y * i) - (a * c))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((t <= -2.7e-8) || !(t <= 7.8e-29)) tmp = Float64(t * Float64(Float64(b * i) - Float64(x * a))); else tmp = Float64(Float64(x * Float64(y * z)) - Float64(j * Float64(Float64(y * i) - Float64(a * c)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((t <= -2.7e-8) || ~((t <= 7.8e-29))) tmp = t * ((b * i) - (x * a)); else tmp = (x * (y * z)) - (j * ((y * i) - (a * c))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[t, -2.7e-8], N[Not[LessEqual[t, 7.8e-29]], $MachinePrecision]], N[(t * N[(N[(b * i), $MachinePrecision] - N[(x * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(x * N[(y * z), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(y * i), $MachinePrecision] - N[(a * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -2.7 \cdot 10^{-8} \lor \neg \left(t \leq 7.8 \cdot 10^{-29}\right):\\
\;\;\;\;t \cdot \left(b \cdot i - x \cdot a\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y \cdot z\right) - j \cdot \left(y \cdot i - a \cdot c\right)\\
\end{array}
\end{array}
if t < -2.70000000000000002e-8 or 7.7999999999999995e-29 < t Initial program 63.7%
Taylor expanded in t around inf 66.2%
distribute-lft-out--66.2%
Simplified66.2%
if -2.70000000000000002e-8 < t < 7.7999999999999995e-29Initial program 86.2%
add-cube-cbrt86.0%
pow386.0%
*-commutative86.0%
Applied egg-rr86.0%
Taylor expanded in y around inf 62.9%
*-commutative62.9%
Simplified62.9%
Final simplification64.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.25e-99)
t_1
(if (<= i -2e-284)
(* x (- (* y z) (* t a)))
(if (<= i 4e+68) (* a (- (* c j) (* x t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e-99) {
tmp = t_1;
} else if (i <= -2e-284) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 4e+68) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = i * ((t * b) - (y * j))
if (i <= (-1.25d-99)) then
tmp = t_1
else if (i <= (-2d-284)) then
tmp = x * ((y * z) - (t * a))
else if (i <= 4d+68) then
tmp = a * ((c * j) - (x * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = i * ((t * b) - (y * j));
double tmp;
if (i <= -1.25e-99) {
tmp = t_1;
} else if (i <= -2e-284) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 4e+68) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = i * ((t * b) - (y * j)) tmp = 0 if i <= -1.25e-99: tmp = t_1 elif i <= -2e-284: tmp = x * ((y * z) - (t * a)) elif i <= 4e+68: tmp = a * ((c * j) - (x * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -1.25e-99) tmp = t_1; elseif (i <= -2e-284) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 4e+68) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -1.25e-99) tmp = t_1; elseif (i <= -2e-284) tmp = x * ((y * z) - (t * a)); elseif (i <= 4e+68) tmp = a * ((c * j) - (x * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.25e-99], t$95$1, If[LessEqual[i, -2e-284], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4e+68], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -1.25 \cdot 10^{-99}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -2 \cdot 10^{-284}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 4 \cdot 10^{+68}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.24999999999999992e-99 or 3.99999999999999981e68 < i Initial program 68.5%
Taylor expanded in a around 0 64.6%
Taylor expanded in i around -inf 66.4%
associate-*r*66.4%
neg-mul-166.4%
*-commutative66.4%
Simplified66.4%
if -1.24999999999999992e-99 < i < -2.00000000000000007e-284Initial program 79.8%
add-cube-cbrt79.8%
pow379.8%
*-commutative79.8%
Applied egg-rr79.8%
Taylor expanded in y around 0 74.1%
+-commutative74.1%
*-commutative74.1%
mul-1-neg74.1%
unsub-neg74.1%
Simplified74.1%
Taylor expanded in c around 0 60.4%
+-commutative60.4%
*-commutative60.4%
associate-*r*56.7%
mul-1-neg56.7%
associate-*r*59.5%
distribute-lft-neg-in59.5%
distribute-rgt-neg-in59.5%
distribute-rgt-in59.5%
distribute-rgt-neg-in59.5%
unsub-neg59.5%
+-commutative59.5%
*-commutative59.5%
associate-*r*65.1%
mul-1-neg65.1%
associate-*r*65.1%
distribute-lft-neg-in65.1%
mul-1-neg65.1%
distribute-rgt-in65.1%
mul-1-neg65.1%
Simplified65.1%
Taylor expanded in x around inf 63.4%
*-commutative63.4%
Simplified63.4%
if -2.00000000000000007e-284 < i < 3.99999999999999981e68Initial program 79.2%
Taylor expanded in a around inf 65.9%
+-commutative65.9%
mul-1-neg65.9%
unsub-neg65.9%
Simplified65.9%
Final simplification65.8%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))))
(if (<= b -1e+80)
t_1
(if (<= b -1.15e-279)
(* a (- (* c j) (* x t)))
(if (<= b 1e+44) (* j (- (* a c) (* y i))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1e+80) {
tmp = t_1;
} else if (b <= -1.15e-279) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1e+44) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = b * ((t * i) - (z * c))
if (b <= (-1d+80)) then
tmp = t_1
else if (b <= (-1.15d-279)) then
tmp = a * ((c * j) - (x * t))
else if (b <= 1d+44) then
tmp = j * ((a * c) - (y * i))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = b * ((t * i) - (z * c));
double tmp;
if (b <= -1e+80) {
tmp = t_1;
} else if (b <= -1.15e-279) {
tmp = a * ((c * j) - (x * t));
} else if (b <= 1e+44) {
tmp = j * ((a * c) - (y * i));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) tmp = 0 if b <= -1e+80: tmp = t_1 elif b <= -1.15e-279: tmp = a * ((c * j) - (x * t)) elif b <= 1e+44: tmp = j * ((a * c) - (y * i)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(b * Float64(Float64(t * i) - Float64(z * c))) tmp = 0.0 if (b <= -1e+80) tmp = t_1; elseif (b <= -1.15e-279) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (b <= 1e+44) tmp = Float64(j * Float64(Float64(a * c) - Float64(y * i))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = b * ((t * i) - (z * c)); tmp = 0.0; if (b <= -1e+80) tmp = t_1; elseif (b <= -1.15e-279) tmp = a * ((c * j) - (x * t)); elseif (b <= 1e+44) tmp = j * ((a * c) - (y * i)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(b * N[(N[(t * i), $MachinePrecision] - N[(z * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1e+80], t$95$1, If[LessEqual[b, -1.15e-279], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e+44], N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
\mathbf{if}\;b \leq -1 \cdot 10^{+80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-279}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;b \leq 10^{+44}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -1e80 or 1.0000000000000001e44 < b Initial program 75.1%
Taylor expanded in b around inf 69.5%
*-commutative69.5%
Simplified69.5%
if -1e80 < b < -1.14999999999999998e-279Initial program 76.6%
Taylor expanded in a around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
if -1.14999999999999998e-279 < b < 1.0000000000000001e44Initial program 66.2%
add-cube-cbrt66.2%
pow366.2%
*-commutative66.2%
Applied egg-rr66.2%
Taylor expanded in y around 0 66.4%
+-commutative66.4%
*-commutative66.4%
mul-1-neg66.4%
unsub-neg66.4%
Simplified66.4%
Taylor expanded in j around inf 62.0%
sub-neg62.0%
*-commutative62.0%
sub-neg62.0%
Simplified62.0%
Final simplification61.8%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.5e+79) (not (<= b 13600000000000.0))) (* 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 ((b <= -2.5e+79) || !(b <= 13600000000000.0)) {
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 ((b <= (-2.5d+79)) .or. (.not. (b <= 13600000000000.0d0))) 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 ((b <= -2.5e+79) || !(b <= 13600000000000.0)) {
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 (b <= -2.5e+79) or not (b <= 13600000000000.0): 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 ((b <= -2.5e+79) || !(b <= 13600000000000.0)) 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 ((b <= -2.5e+79) || ~((b <= 13600000000000.0))) 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[Or[LessEqual[b, -2.5e+79], N[Not[LessEqual[b, 13600000000000.0]], $MachinePrecision]], 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}\;b \leq -2.5 \cdot 10^{+79} \lor \neg \left(b \leq 13600000000000\right):\\
\;\;\;\;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 b < -2.5e79 or 1.36e13 < b Initial program 71.4%
Taylor expanded in b around inf 68.2%
*-commutative68.2%
Simplified68.2%
if -2.5e79 < b < 1.36e13Initial program 74.5%
Taylor expanded in a around inf 51.2%
+-commutative51.2%
mul-1-neg51.2%
unsub-neg51.2%
Simplified51.2%
Final simplification58.2%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -1e+115) (* t (* b i)) (if (<= i 3.05e+81) (* a (- (* c j) (* x t))) (* y (* i (- j))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1e+115) {
tmp = t * (b * i);
} else if (i <= 3.05e+81) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = y * (i * -j);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1d+115)) then
tmp = t * (b * i)
else if (i <= 3.05d+81) then
tmp = a * ((c * j) - (x * t))
else
tmp = y * (i * -j)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1e+115) {
tmp = t * (b * i);
} else if (i <= 3.05e+81) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = y * (i * -j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1e+115: tmp = t * (b * i) elif i <= 3.05e+81: tmp = a * ((c * j) - (x * t)) else: tmp = y * (i * -j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1e+115) tmp = Float64(t * Float64(b * i)); elseif (i <= 3.05e+81) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(y * Float64(i * Float64(-j))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1e+115) tmp = t * (b * i); elseif (i <= 3.05e+81) tmp = a * ((c * j) - (x * t)); else tmp = y * (i * -j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1e+115], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.05e+81], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1 \cdot 10^{+115}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{elif}\;i \leq 3.05 \cdot 10^{+81}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\end{array}
\end{array}
if i < -1e115Initial program 59.7%
Taylor expanded in t around inf 69.1%
distribute-lft-out--69.1%
Simplified69.1%
Taylor expanded in a around 0 58.0%
if -1e115 < i < 3.05000000000000019e81Initial program 79.7%
Taylor expanded in a around inf 53.0%
+-commutative53.0%
mul-1-neg53.0%
unsub-neg53.0%
Simplified53.0%
if 3.05000000000000019e81 < i Initial program 64.0%
Taylor expanded in y around inf 56.7%
+-commutative56.7%
mul-1-neg56.7%
unsub-neg56.7%
*-commutative56.7%
Simplified56.7%
Taylor expanded in z around 0 49.0%
neg-mul-149.0%
distribute-rgt-neg-in49.0%
Simplified49.0%
Final simplification53.0%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -4800000.0) (not (<= c 3.95e+133))) (* a (* c j)) (* i (* t b))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4800000.0) || !(c <= 3.95e+133)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-4800000.0d0)) .or. (.not. (c <= 3.95d+133))) then
tmp = a * (c * j)
else
tmp = i * (t * b)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -4800000.0) || !(c <= 3.95e+133)) {
tmp = a * (c * j);
} else {
tmp = i * (t * b);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -4800000.0) or not (c <= 3.95e+133): tmp = a * (c * j) else: tmp = i * (t * b) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -4800000.0) || !(c <= 3.95e+133)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(i * Float64(t * b)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -4800000.0) || ~((c <= 3.95e+133))) tmp = a * (c * j); else tmp = i * (t * b); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -4800000.0], N[Not[LessEqual[c, 3.95e+133]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * b), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -4800000 \lor \neg \left(c \leq 3.95 \cdot 10^{+133}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot b\right)\\
\end{array}
\end{array}
if c < -4.8e6 or 3.94999999999999986e133 < c Initial program 64.3%
Taylor expanded in a around inf 52.1%
+-commutative52.1%
mul-1-neg52.1%
unsub-neg52.1%
Simplified52.1%
Taylor expanded in c around inf 40.0%
if -4.8e6 < c < 3.94999999999999986e133Initial program 77.9%
Taylor expanded in t around inf 58.3%
distribute-lft-out--58.3%
Simplified58.3%
Taylor expanded in a around inf 56.6%
+-commutative56.6%
neg-mul-156.6%
unsub-neg56.6%
associate-/l*57.2%
Simplified57.2%
Taylor expanded in a around 0 35.1%
*-commutative35.1%
Simplified35.1%
Taylor expanded in b around 0 35.1%
associate-*r*34.5%
*-commutative34.5%
associate-*r*35.6%
Simplified35.6%
Final simplification37.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -8200000000.0) (not (<= c 2.4e+133))) (* a (* c j)) (* b (* t i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -8200000000.0) || !(c <= 2.4e+133)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-8200000000.0d0)) .or. (.not. (c <= 2.4d+133))) then
tmp = a * (c * j)
else
tmp = b * (t * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -8200000000.0) || !(c <= 2.4e+133)) {
tmp = a * (c * j);
} else {
tmp = b * (t * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -8200000000.0) or not (c <= 2.4e+133): tmp = a * (c * j) else: tmp = b * (t * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -8200000000.0) || !(c <= 2.4e+133)) tmp = Float64(a * Float64(c * j)); else tmp = Float64(b * Float64(t * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -8200000000.0) || ~((c <= 2.4e+133))) tmp = a * (c * j); else tmp = b * (t * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -8200000000.0], N[Not[LessEqual[c, 2.4e+133]], $MachinePrecision]], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -8200000000 \lor \neg \left(c \leq 2.4 \cdot 10^{+133}\right):\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\end{array}
\end{array}
if c < -8.2e9 or 2.3999999999999999e133 < c Initial program 64.9%
Taylor expanded in a around inf 53.3%
+-commutative53.3%
mul-1-neg53.3%
unsub-neg53.3%
Simplified53.3%
Taylor expanded in c around inf 40.6%
if -8.2e9 < c < 2.3999999999999999e133Initial program 77.3%
Taylor expanded in t around inf 57.6%
distribute-lft-out--57.6%
Simplified57.6%
Taylor expanded in a around inf 55.9%
+-commutative55.9%
neg-mul-155.9%
unsub-neg55.9%
associate-/l*56.5%
Simplified56.5%
Taylor expanded in a around 0 34.9%
*-commutative34.9%
Simplified34.9%
Final simplification36.8%
(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.2%
Taylor expanded in a around inf 42.0%
+-commutative42.0%
mul-1-neg42.0%
unsub-neg42.0%
Simplified42.0%
Taylor expanded in c around inf 20.3%
(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 2024146
(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)))))