
(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
(*
c
(+ (- (* b (* i (/ t c))) (* z b)) (* y (/ (- (* x z) (* i j)) 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))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = c * (((b * (i * (t / c))) - (z * b)) + (y * (((x * z) - (i * j)) / c)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = ((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 = c * (((b * (i * (t / c))) - (z * b)) + (y * (((x * z) - (i * j)) / c)));
}
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 = c * (((b * (i * (t / c))) - (z * b)) + (y * (((x * z) - (i * j)) / c))) 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(c * Float64(Float64(Float64(b * Float64(i * Float64(t / c))) - Float64(z * b)) + Float64(y * Float64(Float64(Float64(x * z) - Float64(i * j)) / 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))) - (b * ((z * c) - (t * i)))) + (j * ((a * c) - (y * i))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = c * (((b * (i * (t / c))) - (z * b)) + (y * (((x * z) - (i * j)) / c))); 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[(c * N[(N[(N[(b * N[(i * N[(t / c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(z * b), $MachinePrecision]), $MachinePrecision] + N[(y * N[(N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision] / c), $MachinePrecision]), $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}:\\
\;\;\;\;c \cdot \left(\left(b \cdot \left(i \cdot \frac{t}{c}\right) - z \cdot b\right) + y \cdot \frac{x \cdot z - i \cdot j}{c}\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (*.f64 x (-.f64 (*.f64 y z) (*.f64 t a))) (*.f64 b (-.f64 (*.f64 c z) (*.f64 t i)))) (*.f64 j (-.f64 (*.f64 c a) (*.f64 y i)))) < +inf.0Initial program 91.6%
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 a around 0 16.1%
Simplified29.7%
Taylor expanded in c around inf 38.6%
associate-+r+38.6%
+-commutative38.6%
mul-1-neg38.6%
unsub-neg38.6%
associate-/l*38.6%
associate-/l*45.4%
*-commutative45.4%
associate-/l*54.5%
*-commutative54.5%
Simplified54.5%
Final simplification85.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= z -0.009) (not (<= z 9e+88))) (* i (+ (* t b) (- (/ (* z (- (* x y) (* b c))) i) (* y j)))) (+ (* j (- (* a c) (* y i))) (+ (* x (- (* y z) (* t a))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -0.009) || !(z <= 9e+88)) {
tmp = i * ((t * b) + (((z * ((x * y) - (b * c))) / i) - (y * j)));
} else {
tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (t * (b * i)));
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((z <= (-0.009d0)) .or. (.not. (z <= 9d+88))) then
tmp = i * ((t * b) + (((z * ((x * y) - (b * c))) / i) - (y * j)))
else
tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (t * (b * i)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((z <= -0.009) || !(z <= 9e+88)) {
tmp = i * ((t * b) + (((z * ((x * y) - (b * c))) / i) - (y * j)));
} else {
tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (t * (b * i)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (z <= -0.009) or not (z <= 9e+88): tmp = i * ((t * b) + (((z * ((x * y) - (b * c))) / i) - (y * j))) else: tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (t * (b * i))) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((z <= -0.009) || !(z <= 9e+88)) tmp = Float64(i * Float64(Float64(t * b) + Float64(Float64(Float64(z * Float64(Float64(x * y) - Float64(b * c))) / i) - Float64(y * j)))); else tmp = Float64(Float64(j * Float64(Float64(a * c) - Float64(y * i))) + Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(t * Float64(b * i)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((z <= -0.009) || ~((z <= 9e+88))) tmp = i * ((t * b) + (((z * ((x * y) - (b * c))) / i) - (y * j))); else tmp = (j * ((a * c) - (y * i))) + ((x * ((y * z) - (t * a))) + (t * (b * i))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[z, -0.009], N[Not[LessEqual[z, 9e+88]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] + N[(N[(N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / i), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * N[(N[(a * c), $MachinePrecision] - N[(y * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.009 \lor \neg \left(z \leq 9 \cdot 10^{+88}\right):\\
\;\;\;\;i \cdot \left(t \cdot b + \left(\frac{z \cdot \left(x \cdot y - b \cdot c\right)}{i} - y \cdot j\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(a \cdot c - y \cdot i\right) + \left(x \cdot \left(y \cdot z - t \cdot a\right) + t \cdot \left(b \cdot i\right)\right)\\
\end{array}
\end{array}
if z < -0.00899999999999999932 or 9e88 < z Initial program 63.8%
Taylor expanded in a around 0 61.1%
Simplified62.9%
Taylor expanded in i around -inf 64.8%
mul-1-neg64.8%
*-commutative64.8%
distribute-rgt-neg-in64.8%
Simplified72.4%
if -0.00899999999999999932 < z < 9e88Initial program 84.2%
Taylor expanded in c around 0 79.1%
mul-1-neg79.1%
*-commutative79.1%
*-commutative79.1%
distribute-lft-neg-in79.1%
distribute-rgt-neg-out79.1%
associate-*l*81.9%
distribute-lft-neg-in81.9%
distribute-rgt-neg-in81.9%
Simplified81.9%
Final simplification78.1%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* a (- (* c j) (* x t)))) (t_2 (* i (- (* t b) (* y j)))))
(if (<= i -4e+75)
t_2
(if (<= i 1.55e-279)
t_1
(if (<= i 3.2e-93)
(* x (- (* y z) (* t a)))
(if (<= i 1.85e-14)
(* z (- (* x y) (* b c)))
(if (<= i 4.8e+70) 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) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4e+75) {
tmp = t_2;
} else if (i <= 1.55e-279) {
tmp = t_1;
} else if (i <= 3.2e-93) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.85e-14) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 4.8e+70) {
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) - (x * t))
t_2 = i * ((t * b) - (y * j))
if (i <= (-4d+75)) then
tmp = t_2
else if (i <= 1.55d-279) then
tmp = t_1
else if (i <= 3.2d-93) then
tmp = x * ((y * z) - (t * a))
else if (i <= 1.85d-14) then
tmp = z * ((x * y) - (b * c))
else if (i <= 4.8d+70) 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) - (x * t));
double t_2 = i * ((t * b) - (y * j));
double tmp;
if (i <= -4e+75) {
tmp = t_2;
} else if (i <= 1.55e-279) {
tmp = t_1;
} else if (i <= 3.2e-93) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.85e-14) {
tmp = z * ((x * y) - (b * c));
} else if (i <= 4.8e+70) {
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) - (x * t)) t_2 = i * ((t * b) - (y * j)) tmp = 0 if i <= -4e+75: tmp = t_2 elif i <= 1.55e-279: tmp = t_1 elif i <= 3.2e-93: tmp = x * ((y * z) - (t * a)) elif i <= 1.85e-14: tmp = z * ((x * y) - (b * c)) elif i <= 4.8e+70: 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(Float64(c * j) - Float64(x * t))) t_2 = Float64(i * Float64(Float64(t * b) - Float64(y * j))) tmp = 0.0 if (i <= -4e+75) tmp = t_2; elseif (i <= 1.55e-279) tmp = t_1; elseif (i <= 3.2e-93) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 1.85e-14) tmp = Float64(z * Float64(Float64(x * y) - Float64(b * c))); elseif (i <= 4.8e+70) 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) - (x * t)); t_2 = i * ((t * b) - (y * j)); tmp = 0.0; if (i <= -4e+75) tmp = t_2; elseif (i <= 1.55e-279) tmp = t_1; elseif (i <= 3.2e-93) tmp = x * ((y * z) - (t * a)); elseif (i <= 1.85e-14) tmp = z * ((x * y) - (b * c)); elseif (i <= 4.8e+70) 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[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4e+75], t$95$2, If[LessEqual[i, 1.55e-279], t$95$1, If[LessEqual[i, 3.2e-93], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.85e-14], N[(z * N[(N[(x * y), $MachinePrecision] - N[(b * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e+70], t$95$1, t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(c \cdot j - x \cdot t\right)\\
t_2 := i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{if}\;i \leq -4 \cdot 10^{+75}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq 1.55 \cdot 10^{-279}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 3.2 \cdot 10^{-93}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 1.85 \cdot 10^{-14}:\\
\;\;\;\;z \cdot \left(x \cdot y - b \cdot c\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+70}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -3.99999999999999971e75 or 4.79999999999999974e70 < i Initial program 63.6%
Taylor expanded in a around 0 66.0%
Simplified66.1%
Taylor expanded in i around inf 70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
*-commutative70.6%
Simplified70.6%
if -3.99999999999999971e75 < i < 1.55e-279 or 1.85000000000000001e-14 < i < 4.79999999999999974e70Initial program 82.1%
Taylor expanded in a around inf 62.6%
+-commutative62.6%
mul-1-neg62.6%
unsub-neg62.6%
Simplified62.6%
if 1.55e-279 < i < 3.1999999999999999e-93Initial program 85.6%
*-commutative85.6%
prod-diff85.6%
*-commutative85.6%
fmm-def85.6%
distribute-rgt-in85.6%
*-commutative85.6%
*-commutative85.6%
*-commutative85.6%
*-commutative85.6%
Applied egg-rr85.6%
Taylor expanded in x around inf 86.1%
if 3.1999999999999999e-93 < i < 1.85000000000000001e-14Initial program 81.5%
Taylor expanded in z around inf 62.6%
*-commutative62.6%
Simplified62.6%
Final simplification67.6%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* b (- (* t i) (* z c)))) (t_2 (* y (- (* x z) (* i j)))))
(if (<= y -1.6e+177)
t_2
(if (<= y -2.6e+60)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(if (<= y 7.5e+172) (+ (* a (- (* c j) (* x t))) t_1) (+ t_2 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 t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.6e+177) {
tmp = t_2;
} else if (y <= -2.6e+60) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else if (y <= 7.5e+172) {
tmp = (a * ((c * j) - (x * t))) + t_1;
} else {
tmp = t_2 + 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 * ((t * i) - (z * c))
t_2 = y * ((x * z) - (i * j))
if (y <= (-1.6d+177)) then
tmp = t_2
else if (y <= (-2.6d+60)) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else if (y <= 7.5d+172) then
tmp = (a * ((c * j) - (x * t))) + t_1
else
tmp = t_2 + 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 t_2 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.6e+177) {
tmp = t_2;
} else if (y <= -2.6e+60) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else if (y <= 7.5e+172) {
tmp = (a * ((c * j) - (x * t))) + t_1;
} else {
tmp = t_2 + t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = b * ((t * i) - (z * c)) t_2 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.6e+177: tmp = t_2 elif y <= -2.6e+60: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) elif y <= 7.5e+172: tmp = (a * ((c * j) - (x * t))) + t_1 else: tmp = t_2 + 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))) t_2 = Float64(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.6e+177) tmp = t_2; elseif (y <= -2.6e+60) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (y <= 7.5e+172) tmp = Float64(Float64(a * Float64(Float64(c * j) - Float64(x * t))) + t_1); else tmp = Float64(t_2 + 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)); t_2 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.6e+177) tmp = t_2; elseif (y <= -2.6e+60) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); elseif (y <= 7.5e+172) tmp = (a * ((c * j) - (x * t))) + t_1; else tmp = t_2 + 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]}, Block[{t$95$2 = N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.6e+177], t$95$2, If[LessEqual[y, -2.6e+60], 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], If[LessEqual[y, 7.5e+172], N[(N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(t$95$2 + t$95$1), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(t \cdot i - z \cdot c\right)\\
t_2 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.6 \cdot 10^{+177}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y \leq -2.6 \cdot 10^{+60}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{+172}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;t\_2 + t\_1\\
\end{array}
\end{array}
if y < -1.6e177Initial program 53.7%
Taylor expanded in y around inf 80.0%
+-commutative80.0%
mul-1-neg80.0%
unsub-neg80.0%
*-commutative80.0%
Simplified80.0%
if -1.6e177 < y < -2.60000000000000008e60Initial program 80.9%
Taylor expanded in b around 0 90.4%
if -2.60000000000000008e60 < y < 7.4999999999999994e172Initial program 80.5%
Taylor expanded in y around 0 76.6%
sub-neg76.6%
*-commutative76.6%
*-commutative76.6%
mul-1-neg76.6%
*-commutative76.6%
distribute-lft-neg-in76.6%
mul-1-neg76.6%
*-commutative76.6%
distribute-rgt-in77.7%
+-commutative77.7%
mul-1-neg77.7%
unsub-neg77.7%
distribute-rgt-neg-in77.7%
sub-neg77.7%
distribute-rgt-neg-out77.7%
+-commutative77.7%
Simplified77.7%
if 7.4999999999999994e172 < y Initial program 63.5%
Taylor expanded in a around 0 68.2%
Simplified82.9%
Final simplification79.5%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* y (- (* x z) (* i j)))))
(if (<= y -1.4e+176)
t_1
(if (<= y -1.2e+60)
(+ (* x (- (* y z) (* t a))) (* j (- (* a c) (* y i))))
(if (<= y 1.1e+178)
(+ (* 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.4e+176) {
tmp = t_1;
} else if (y <= -1.2e+60) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else if (y <= 1.1e+178) {
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 = y * ((x * z) - (i * j))
if (y <= (-1.4d+176)) then
tmp = t_1
else if (y <= (-1.2d+60)) then
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)))
else if (y <= 1.1d+178) 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 = y * ((x * z) - (i * j));
double tmp;
if (y <= -1.4e+176) {
tmp = t_1;
} else if (y <= -1.2e+60) {
tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i)));
} else if (y <= 1.1e+178) {
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 = y * ((x * z) - (i * j)) tmp = 0 if y <= -1.4e+176: tmp = t_1 elif y <= -1.2e+60: tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))) elif y <= 1.1e+178: 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(y * Float64(Float64(x * z) - Float64(i * j))) tmp = 0.0 if (y <= -1.4e+176) tmp = t_1; elseif (y <= -1.2e+60) tmp = Float64(Float64(x * Float64(Float64(y * z) - Float64(t * a))) + Float64(j * Float64(Float64(a * c) - Float64(y * i)))); elseif (y <= 1.1e+178) 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 = y * ((x * z) - (i * j)); tmp = 0.0; if (y <= -1.4e+176) tmp = t_1; elseif (y <= -1.2e+60) tmp = (x * ((y * z) - (t * a))) + (j * ((a * c) - (y * i))); elseif (y <= 1.1e+178) 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[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.4e+176], t$95$1, If[LessEqual[y, -1.2e+60], 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], If[LessEqual[y, 1.1e+178], 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 := y \cdot \left(x \cdot z - i \cdot j\right)\\
\mathbf{if}\;y \leq -1.4 \cdot 10^{+176}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -1.2 \cdot 10^{+60}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right) + j \cdot \left(a \cdot c - y \cdot i\right)\\
\mathbf{elif}\;y \leq 1.1 \cdot 10^{+178}:\\
\;\;\;\;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 y < -1.4000000000000001e176 or 1.09999999999999999e178 < y Initial program 56.3%
Taylor expanded in y around inf 78.6%
+-commutative78.6%
mul-1-neg78.6%
unsub-neg78.6%
*-commutative78.6%
Simplified78.6%
if -1.4000000000000001e176 < y < -1.2e60Initial program 80.9%
Taylor expanded in b around 0 90.4%
if -1.2e60 < y < 1.09999999999999999e178Initial program 80.7%
Taylor expanded in y around 0 76.3%
sub-neg76.3%
*-commutative76.3%
*-commutative76.3%
mul-1-neg76.3%
*-commutative76.3%
distribute-lft-neg-in76.3%
mul-1-neg76.3%
*-commutative76.3%
distribute-rgt-in77.4%
+-commutative77.4%
mul-1-neg77.4%
unsub-neg77.4%
distribute-rgt-neg-in77.4%
sub-neg77.4%
distribute-rgt-neg-out77.4%
+-commutative77.4%
Simplified77.4%
Final simplification78.7%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* i (- (* t b) (* y j)))))
(if (<= i -1.1e+76)
t_1
(if (<= i 1.16e-279)
(* a (- (* c j) (* x t)))
(if (<= i 1.38e-104)
(* x (- (* y z) (* t a)))
(if (<= i 1.3e+71) (* a (* t (- (* c (/ j t)) x))) 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.1e+76) {
tmp = t_1;
} else if (i <= 1.16e-279) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.38e-104) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.3e+71) {
tmp = a * (t * ((c * (j / t)) - x));
} 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.1d+76)) then
tmp = t_1
else if (i <= 1.16d-279) then
tmp = a * ((c * j) - (x * t))
else if (i <= 1.38d-104) then
tmp = x * ((y * z) - (t * a))
else if (i <= 1.3d+71) then
tmp = a * (t * ((c * (j / t)) - x))
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.1e+76) {
tmp = t_1;
} else if (i <= 1.16e-279) {
tmp = a * ((c * j) - (x * t));
} else if (i <= 1.38e-104) {
tmp = x * ((y * z) - (t * a));
} else if (i <= 1.3e+71) {
tmp = a * (t * ((c * (j / t)) - x));
} 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.1e+76: tmp = t_1 elif i <= 1.16e-279: tmp = a * ((c * j) - (x * t)) elif i <= 1.38e-104: tmp = x * ((y * z) - (t * a)) elif i <= 1.3e+71: tmp = a * (t * ((c * (j / t)) - x)) 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.1e+76) tmp = t_1; elseif (i <= 1.16e-279) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); elseif (i <= 1.38e-104) tmp = Float64(x * Float64(Float64(y * z) - Float64(t * a))); elseif (i <= 1.3e+71) tmp = Float64(a * Float64(t * Float64(Float64(c * Float64(j / t)) - x))); 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.1e+76) tmp = t_1; elseif (i <= 1.16e-279) tmp = a * ((c * j) - (x * t)); elseif (i <= 1.38e-104) tmp = x * ((y * z) - (t * a)); elseif (i <= 1.3e+71) tmp = a * (t * ((c * (j / t)) - x)); 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.1e+76], t$95$1, If[LessEqual[i, 1.16e-279], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.38e-104], N[(x * N[(N[(y * z), $MachinePrecision] - N[(t * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.3e+71], N[(a * N[(t * N[(N[(c * N[(j / t), $MachinePrecision]), $MachinePrecision] - x), $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.1 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 1.16 \cdot 10^{-279}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{elif}\;i \leq 1.38 \cdot 10^{-104}:\\
\;\;\;\;x \cdot \left(y \cdot z - t \cdot a\right)\\
\mathbf{elif}\;i \leq 1.3 \cdot 10^{+71}:\\
\;\;\;\;a \cdot \left(t \cdot \left(c \cdot \frac{j}{t} - x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -1.1e76 or 1.29999999999999996e71 < i Initial program 63.6%
Taylor expanded in a around 0 66.0%
Simplified66.1%
Taylor expanded in i around inf 70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
*-commutative70.6%
Simplified70.6%
if -1.1e76 < i < 1.16e-279Initial program 85.6%
Taylor expanded in a around inf 62.0%
+-commutative62.0%
mul-1-neg62.0%
unsub-neg62.0%
Simplified62.0%
if 1.16e-279 < i < 1.38000000000000006e-104Initial program 85.0%
*-commutative85.0%
prod-diff85.0%
*-commutative85.0%
fmm-def85.0%
distribute-rgt-in85.0%
*-commutative85.0%
*-commutative85.0%
*-commutative85.0%
*-commutative85.0%
Applied egg-rr85.0%
Taylor expanded in x around inf 85.5%
if 1.38000000000000006e-104 < i < 1.29999999999999996e71Initial program 75.1%
Taylor expanded in a around inf 54.5%
+-commutative54.5%
mul-1-neg54.5%
unsub-neg54.5%
Simplified54.5%
Taylor expanded in t around inf 54.5%
associate-/l*56.5%
Simplified56.5%
Final simplification66.1%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= y -4.5e+60) (not (<= y 1.06e+178))) (* y (- (* x z) (* i j))) (+ (* 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 <= -4.5e+60) || !(y <= 1.06e+178)) {
tmp = y * ((x * z) - (i * j));
} 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 <= (-4.5d+60)) .or. (.not. (y <= 1.06d+178))) then
tmp = y * ((x * z) - (i * j))
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 <= -4.5e+60) || !(y <= 1.06e+178)) {
tmp = y * ((x * z) - (i * j));
} 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 <= -4.5e+60) or not (y <= 1.06e+178): tmp = y * ((x * z) - (i * j)) 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 <= -4.5e+60) || !(y <= 1.06e+178)) tmp = Float64(y * Float64(Float64(x * z) - Float64(i * j))); 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 <= -4.5e+60) || ~((y <= 1.06e+178))) tmp = y * ((x * z) - (i * j)); 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, -4.5e+60], N[Not[LessEqual[y, 1.06e+178]], $MachinePrecision]], N[(y * N[(N[(x * z), $MachinePrecision] - N[(i * j), $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 -4.5 \cdot 10^{+60} \lor \neg \left(y \leq 1.06 \cdot 10^{+178}\right):\\
\;\;\;\;y \cdot \left(x \cdot z - i \cdot j\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 < -4.50000000000000013e60 or 1.05999999999999994e178 < y Initial program 63.5%
Taylor expanded in y around inf 72.6%
+-commutative72.6%
mul-1-neg72.6%
unsub-neg72.6%
*-commutative72.6%
Simplified72.6%
if -4.50000000000000013e60 < y < 1.05999999999999994e178Initial program 80.7%
Taylor expanded in y around 0 76.3%
sub-neg76.3%
*-commutative76.3%
*-commutative76.3%
mul-1-neg76.3%
*-commutative76.3%
distribute-lft-neg-in76.3%
mul-1-neg76.3%
*-commutative76.3%
distribute-rgt-in77.4%
+-commutative77.4%
mul-1-neg77.4%
unsub-neg77.4%
distribute-rgt-neg-in77.4%
sub-neg77.4%
distribute-rgt-neg-out77.4%
+-commutative77.4%
Simplified77.4%
Final simplification76.1%
(FPCore (x y z t a b c i j)
:precision binary64
(if (<= i -1.05e+76)
(* y (* i (- j)))
(if (<= i -3.9e-85)
(* a (* c j))
(if (<= i 2.6e+72) (* t (* x (- a))) (* t (* b i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.05e+76) {
tmp = y * (i * -j);
} else if (i <= -3.9e-85) {
tmp = a * (c * j);
} else if (i <= 2.6e+72) {
tmp = t * (x * -a);
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-1.05d+76)) then
tmp = y * (i * -j)
else if (i <= (-3.9d-85)) then
tmp = a * (c * j)
else if (i <= 2.6d+72) then
tmp = t * (x * -a)
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -1.05e+76) {
tmp = y * (i * -j);
} else if (i <= -3.9e-85) {
tmp = a * (c * j);
} else if (i <= 2.6e+72) {
tmp = t * (x * -a);
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -1.05e+76: tmp = y * (i * -j) elif i <= -3.9e-85: tmp = a * (c * j) elif i <= 2.6e+72: tmp = t * (x * -a) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -1.05e+76) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= -3.9e-85) tmp = Float64(a * Float64(c * j)); elseif (i <= 2.6e+72) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -1.05e+76) tmp = y * (i * -j); elseif (i <= -3.9e-85) tmp = a * (c * j); elseif (i <= 2.6e+72) tmp = t * (x * -a); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -1.05e+76], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -3.9e-85], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.6e+72], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -1.05 \cdot 10^{+76}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq -3.9 \cdot 10^{-85}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{+72}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -1.05000000000000003e76Initial program 62.8%
Taylor expanded in y around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in z around 0 47.9%
mul-1-neg47.9%
distribute-lft-neg-out47.9%
*-commutative47.9%
Simplified47.9%
if -1.05000000000000003e76 < i < -3.89999999999999988e-85Initial program 86.9%
Taylor expanded in a around inf 72.8%
+-commutative72.8%
mul-1-neg72.8%
unsub-neg72.8%
Simplified72.8%
Taylor expanded in c around inf 47.3%
*-commutative47.3%
Simplified47.3%
if -3.89999999999999988e-85 < i < 2.59999999999999981e72Initial program 81.2%
Taylor expanded in t around inf 47.6%
distribute-lft-out--47.6%
Simplified47.6%
Taylor expanded in a around inf 41.4%
associate-*r*41.4%
neg-mul-141.4%
Simplified41.4%
if 2.59999999999999981e72 < i Initial program 64.4%
Taylor expanded in t around inf 56.6%
distribute-lft-out--56.6%
Simplified56.6%
Taylor expanded in a around 0 45.9%
*-commutative45.9%
Simplified45.9%
Final simplification44.2%
(FPCore (x y z t a b c i j)
:precision binary64
(let* ((t_1 (* t (* b i))))
(if (<= i -4e+162)
t_1
(if (<= i -1.22e-85)
(* a (* c j))
(if (<= i 7.5e+70) (* t (* x (- a))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -4e+162) {
tmp = t_1;
} else if (i <= -1.22e-85) {
tmp = a * (c * j);
} else if (i <= 7.5e+70) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: t_1
real(8) :: tmp
t_1 = t * (b * i)
if (i <= (-4d+162)) then
tmp = t_1
else if (i <= (-1.22d-85)) then
tmp = a * (c * j)
else if (i <= 7.5d+70) then
tmp = t * (x * -a)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double t_1 = t * (b * i);
double tmp;
if (i <= -4e+162) {
tmp = t_1;
} else if (i <= -1.22e-85) {
tmp = a * (c * j);
} else if (i <= 7.5e+70) {
tmp = t * (x * -a);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): t_1 = t * (b * i) tmp = 0 if i <= -4e+162: tmp = t_1 elif i <= -1.22e-85: tmp = a * (c * j) elif i <= 7.5e+70: tmp = t * (x * -a) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j) t_1 = Float64(t * Float64(b * i)) tmp = 0.0 if (i <= -4e+162) tmp = t_1; elseif (i <= -1.22e-85) tmp = Float64(a * Float64(c * j)); elseif (i <= 7.5e+70) tmp = Float64(t * Float64(x * Float64(-a))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) t_1 = t * (b * i); tmp = 0.0; if (i <= -4e+162) tmp = t_1; elseif (i <= -1.22e-85) tmp = a * (c * j); elseif (i <= 7.5e+70) tmp = t * (x * -a); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := Block[{t$95$1 = N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -4e+162], t$95$1, If[LessEqual[i, -1.22e-85], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.5e+70], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot \left(b \cdot i\right)\\
\mathbf{if}\;i \leq -4 \cdot 10^{+162}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq -1.22 \cdot 10^{-85}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\mathbf{elif}\;i \leq 7.5 \cdot 10^{+70}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if i < -3.9999999999999998e162 or 7.50000000000000031e70 < i Initial program 63.9%
Taylor expanded in t around inf 51.8%
distribute-lft-out--51.8%
Simplified51.8%
Taylor expanded in a around 0 45.5%
*-commutative45.5%
Simplified45.5%
if -3.9999999999999998e162 < i < -1.22000000000000006e-85Initial program 80.5%
Taylor expanded in a around inf 60.5%
+-commutative60.5%
mul-1-neg60.5%
unsub-neg60.5%
Simplified60.5%
Taylor expanded in c around inf 39.7%
*-commutative39.7%
Simplified39.7%
if -1.22000000000000006e-85 < i < 7.50000000000000031e70Initial program 81.2%
Taylor expanded in t around inf 47.6%
distribute-lft-out--47.6%
Simplified47.6%
Taylor expanded in a around inf 41.4%
associate-*r*41.4%
neg-mul-141.4%
Simplified41.4%
Final simplification42.3%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= i -3.3e+75) (not (<= i 6e+69))) (* i (- (* t b) (* y j))) (* 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 ((i <= -3.3e+75) || !(i <= 6e+69)) {
tmp = i * ((t * b) - (y * j));
} 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 ((i <= (-3.3d+75)) .or. (.not. (i <= 6d+69))) then
tmp = i * ((t * b) - (y * j))
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 ((i <= -3.3e+75) || !(i <= 6e+69)) {
tmp = i * ((t * b) - (y * j));
} else {
tmp = a * ((c * j) - (x * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (i <= -3.3e+75) or not (i <= 6e+69): tmp = i * ((t * b) - (y * j)) else: tmp = a * ((c * j) - (x * t)) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((i <= -3.3e+75) || !(i <= 6e+69)) tmp = Float64(i * Float64(Float64(t * b) - Float64(y * j))); 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 ((i <= -3.3e+75) || ~((i <= 6e+69))) tmp = i * ((t * b) - (y * j)); 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[i, -3.3e+75], N[Not[LessEqual[i, 6e+69]], $MachinePrecision]], N[(i * N[(N[(t * b), $MachinePrecision] - N[(y * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -3.3 \cdot 10^{+75} \lor \neg \left(i \leq 6 \cdot 10^{+69}\right):\\
\;\;\;\;i \cdot \left(t \cdot b - y \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\end{array}
\end{array}
if i < -3.29999999999999998e75 or 5.99999999999999967e69 < i Initial program 63.6%
Taylor expanded in a around 0 66.0%
Simplified66.1%
Taylor expanded in i around inf 70.6%
+-commutative70.6%
mul-1-neg70.6%
unsub-neg70.6%
*-commutative70.6%
Simplified70.6%
if -3.29999999999999998e75 < i < 5.99999999999999967e69Initial program 82.5%
Taylor expanded in a around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
Final simplification62.9%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -2.4e-43) (not (<= b 1.05e+123))) (* 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.4e-43) || !(b <= 1.05e+123)) {
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.4d-43)) .or. (.not. (b <= 1.05d+123))) 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.4e-43) || !(b <= 1.05e+123)) {
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.4e-43) or not (b <= 1.05e+123): 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.4e-43) || !(b <= 1.05e+123)) 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.4e-43) || ~((b <= 1.05e+123))) 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.4e-43], N[Not[LessEqual[b, 1.05e+123]], $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.4 \cdot 10^{-43} \lor \neg \left(b \leq 1.05 \cdot 10^{+123}\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.4000000000000002e-43 or 1.04999999999999997e123 < b Initial program 71.6%
Taylor expanded in b around inf 61.3%
*-commutative61.3%
Simplified61.3%
if -2.4000000000000002e-43 < b < 1.04999999999999997e123Initial program 79.1%
Taylor expanded in a around inf 56.2%
+-commutative56.2%
mul-1-neg56.2%
unsub-neg56.2%
Simplified56.2%
Final simplification58.4%
(FPCore (x y z t a b c i j) :precision binary64 (if (<= i -2.85e+76) (* y (* i (- j))) (if (<= i 7.8e+71) (* a (- (* c j) (* x t))) (* t (* b i)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.85e+76) {
tmp = y * (i * -j);
} else if (i <= 7.8e+71) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * (b * i);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if (i <= (-2.85d+76)) then
tmp = y * (i * -j)
else if (i <= 7.8d+71) then
tmp = a * ((c * j) - (x * t))
else
tmp = t * (b * i)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if (i <= -2.85e+76) {
tmp = y * (i * -j);
} else if (i <= 7.8e+71) {
tmp = a * ((c * j) - (x * t));
} else {
tmp = t * (b * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if i <= -2.85e+76: tmp = y * (i * -j) elif i <= 7.8e+71: tmp = a * ((c * j) - (x * t)) else: tmp = t * (b * i) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if (i <= -2.85e+76) tmp = Float64(y * Float64(i * Float64(-j))); elseif (i <= 7.8e+71) tmp = Float64(a * Float64(Float64(c * j) - Float64(x * t))); else tmp = Float64(t * Float64(b * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if (i <= -2.85e+76) tmp = y * (i * -j); elseif (i <= 7.8e+71) tmp = a * ((c * j) - (x * t)); else tmp = t * (b * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[LessEqual[i, -2.85e+76], N[(y * N[(i * (-j)), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 7.8e+71], N[(a * N[(N[(c * j), $MachinePrecision] - N[(x * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.85 \cdot 10^{+76}:\\
\;\;\;\;y \cdot \left(i \cdot \left(-j\right)\right)\\
\mathbf{elif}\;i \leq 7.8 \cdot 10^{+71}:\\
\;\;\;\;a \cdot \left(c \cdot j - x \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\end{array}
\end{array}
if i < -2.85000000000000002e76Initial program 62.8%
Taylor expanded in y around inf 60.8%
+-commutative60.8%
mul-1-neg60.8%
unsub-neg60.8%
*-commutative60.8%
Simplified60.8%
Taylor expanded in z around 0 47.9%
mul-1-neg47.9%
distribute-lft-neg-out47.9%
*-commutative47.9%
Simplified47.9%
if -2.85000000000000002e76 < i < 7.8000000000000002e71Initial program 82.5%
Taylor expanded in a around inf 58.7%
+-commutative58.7%
mul-1-neg58.7%
unsub-neg58.7%
Simplified58.7%
if 7.8000000000000002e71 < i Initial program 64.4%
Taylor expanded in t around inf 56.6%
distribute-lft-out--56.6%
Simplified56.6%
Taylor expanded in a around 0 45.9%
*-commutative45.9%
Simplified45.9%
Final simplification54.6%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= c -3.8e+68) (not (<= c 2.1e-48))) (* b (* z (- c))) (* t (* x (- a)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e+68) || !(c <= 2.1e-48)) {
tmp = b * (z * -c);
} else {
tmp = t * (x * -a);
}
return tmp;
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8) :: tmp
if ((c <= (-3.8d+68)) .or. (.not. (c <= 2.1d-48))) then
tmp = b * (z * -c)
else
tmp = t * (x * -a)
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
double tmp;
if ((c <= -3.8e+68) || !(c <= 2.1e-48)) {
tmp = b * (z * -c);
} else {
tmp = t * (x * -a);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (c <= -3.8e+68) or not (c <= 2.1e-48): tmp = b * (z * -c) else: tmp = t * (x * -a) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((c <= -3.8e+68) || !(c <= 2.1e-48)) tmp = Float64(b * Float64(z * Float64(-c))); else tmp = Float64(t * Float64(x * Float64(-a))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j) tmp = 0.0; if ((c <= -3.8e+68) || ~((c <= 2.1e-48))) tmp = b * (z * -c); else tmp = t * (x * -a); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[c, -3.8e+68], N[Not[LessEqual[c, 2.1e-48]], $MachinePrecision]], N[(b * N[(z * (-c)), $MachinePrecision]), $MachinePrecision], N[(t * N[(x * (-a)), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;c \leq -3.8 \cdot 10^{+68} \lor \neg \left(c \leq 2.1 \cdot 10^{-48}\right):\\
\;\;\;\;b \cdot \left(z \cdot \left(-c\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(x \cdot \left(-a\right)\right)\\
\end{array}
\end{array}
if c < -3.8000000000000001e68 or 2.09999999999999989e-48 < c Initial program 72.3%
Taylor expanded in a around 0 55.9%
Simplified56.6%
Taylor expanded in c around inf 38.6%
mul-1-neg38.6%
*-commutative38.6%
distribute-rgt-neg-in38.6%
Simplified38.6%
if -3.8000000000000001e68 < c < 2.09999999999999989e-48Initial program 79.6%
Taylor expanded in t around inf 63.2%
distribute-lft-out--63.2%
Simplified63.2%
Taylor expanded in a around inf 46.8%
associate-*r*46.8%
neg-mul-146.8%
Simplified46.8%
Final simplification42.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= x -1.02e-10) (not (<= x 3.4e+120))) (* y (* x z)) (* 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 ((x <= -1.02e-10) || !(x <= 3.4e+120)) {
tmp = y * (x * z);
} 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 ((x <= (-1.02d-10)) .or. (.not. (x <= 3.4d+120))) then
tmp = y * (x * z)
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 ((x <= -1.02e-10) || !(x <= 3.4e+120)) {
tmp = y * (x * z);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (x <= -1.02e-10) or not (x <= 3.4e+120): tmp = y * (x * z) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((x <= -1.02e-10) || !(x <= 3.4e+120)) tmp = Float64(y * Float64(x * z)); 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 ((x <= -1.02e-10) || ~((x <= 3.4e+120))) tmp = y * (x * z); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[x, -1.02e-10], N[Not[LessEqual[x, 3.4e+120]], $MachinePrecision]], N[(y * N[(x * z), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -1.02 \cdot 10^{-10} \lor \neg \left(x \leq 3.4 \cdot 10^{+120}\right):\\
\;\;\;\;y \cdot \left(x \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if x < -1.01999999999999997e-10 or 3.39999999999999999e120 < x Initial program 73.4%
Taylor expanded in y around inf 43.7%
+-commutative43.7%
mul-1-neg43.7%
unsub-neg43.7%
*-commutative43.7%
Simplified43.7%
Taylor expanded in z around inf 36.6%
*-commutative36.6%
Simplified36.6%
if -1.01999999999999997e-10 < x < 3.39999999999999999e120Initial program 77.6%
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 30.0%
*-commutative30.0%
Simplified30.0%
Final simplification32.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= b -3.8e+14) (not (<= b 1.28))) (* t (* b 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 ((b <= -3.8e+14) || !(b <= 1.28)) {
tmp = t * (b * 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 ((b <= (-3.8d+14)) .or. (.not. (b <= 1.28d0))) then
tmp = t * (b * 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 ((b <= -3.8e+14) || !(b <= 1.28)) {
tmp = t * (b * i);
} else {
tmp = a * (c * j);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j): tmp = 0 if (b <= -3.8e+14) or not (b <= 1.28): tmp = t * (b * i) else: tmp = a * (c * j) return tmp
function code(x, y, z, t, a, b, c, i, j) tmp = 0.0 if ((b <= -3.8e+14) || !(b <= 1.28)) tmp = Float64(t * Float64(b * 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 ((b <= -3.8e+14) || ~((b <= 1.28))) tmp = t * (b * i); else tmp = a * (c * j); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := If[Or[LessEqual[b, -3.8e+14], N[Not[LessEqual[b, 1.28]], $MachinePrecision]], N[(t * N[(b * i), $MachinePrecision]), $MachinePrecision], N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{+14} \lor \neg \left(b \leq 1.28\right):\\
\;\;\;\;t \cdot \left(b \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if b < -3.8e14 or 1.28000000000000003 < b Initial program 70.2%
Taylor expanded in t around inf 57.9%
distribute-lft-out--57.9%
Simplified57.9%
Taylor expanded in a around 0 39.0%
*-commutative39.0%
Simplified39.0%
if -3.8e14 < b < 1.28000000000000003Initial program 80.8%
Taylor expanded in a around inf 55.0%
+-commutative55.0%
mul-1-neg55.0%
unsub-neg55.0%
Simplified55.0%
Taylor expanded in c around inf 25.5%
*-commutative25.5%
Simplified25.5%
Final simplification31.7%
(FPCore (x y z t a b c i j) :precision binary64 (if (or (<= t -2.4e+16) (not (<= t 14500000.0))) (* 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 <= -2.4e+16) || !(t <= 14500000.0)) {
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 <= (-2.4d+16)) .or. (.not. (t <= 14500000.0d0))) 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 <= -2.4e+16) || !(t <= 14500000.0)) {
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 <= -2.4e+16) or not (t <= 14500000.0): 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 <= -2.4e+16) || !(t <= 14500000.0)) 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 <= -2.4e+16) || ~((t <= 14500000.0))) 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, -2.4e+16], N[Not[LessEqual[t, 14500000.0]], $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 -2.4 \cdot 10^{+16} \lor \neg \left(t \leq 14500000\right):\\
\;\;\;\;b \cdot \left(t \cdot i\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(c \cdot j\right)\\
\end{array}
\end{array}
if t < -2.4e16 or 1.45e7 < t Initial program 73.8%
Taylor expanded in t around inf 63.8%
distribute-lft-out--63.8%
Simplified63.8%
Taylor expanded in a around 0 30.6%
if -2.4e16 < t < 1.45e7Initial program 78.3%
Taylor expanded in a around inf 44.3%
+-commutative44.3%
mul-1-neg44.3%
unsub-neg44.3%
Simplified44.3%
Taylor expanded in c around inf 30.7%
*-commutative30.7%
Simplified30.7%
Final simplification30.6%
(FPCore (x y z t a b c i j) :precision binary64 (* a (* c j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
real(8) function code(x, y, z, t, a, b, c, i, j)
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
code = a * (c * j)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j) {
return a * (c * j);
}
def code(x, y, z, t, a, b, c, i, j): return a * (c * j)
function code(x, y, z, t, a, b, c, i, j) return Float64(a * Float64(c * j)) end
function tmp = code(x, y, z, t, a, b, c, i, j) tmp = a * (c * j); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_] := N[(a * N[(c * j), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(c \cdot j\right)
\end{array}
Initial program 75.9%
Taylor expanded in a around inf 48.4%
+-commutative48.4%
mul-1-neg48.4%
unsub-neg48.4%
Simplified48.4%
Taylor expanded in c around inf 21.6%
*-commutative21.6%
Simplified21.6%
Final simplification21.6%
(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 2024177
(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)))))