
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Sampling outcomes in binary64 precision:
Herbie found 29 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))
(if (<= t_1 INFINITY)
t_1
(*
(-
(fma (- z) (fma b a (* (- c) i)) (* (fma y4 b (* (- i) y5)) j))
(* (fma y4 c (* (- y5) a)) y2))
t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = (fma(-z, fma(b, a, (-c * i)), (fma(y4, b, (-i * y5)) * j)) - (fma(y4, c, (-y5 * a)) * y2)) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(Float64(fma(Float64(-z), fma(b, a, Float64(Float64(-c) * i)), Float64(fma(y4, b, Float64(Float64(-i) * y5)) * j)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * y2)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[((-z) * N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-z, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right), \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right) \cdot j\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot y2\right) \cdot t\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.9%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in t around inf
Applied rewrites43.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y4 b (* (- i) y5)))
(t_2 (fma y0 c (* (- y1) a)))
(t_3 (fma y4 y1 (* (- y0) y5)))
(t_4 (* (- y5) a))
(t_5 (fma y4 c t_4))
(t_6 (* (- (fma (- z) (fma b a (* (- c) i)) (* t_1 j)) (* t_5 y2)) t))
(t_7 (fma y0 b (* (- i) y1))))
(if (<= t -4.8e+111)
t_6
(if (<= t 3.05e-226)
(* (+ (fma (- y) t_1 (* t_3 y2)) (* z t_7)) k)
(if (<= t 1.88e-168)
(-
(fma
(fma (- y1) (fma y2 x (* (- y3) z)) (* (fma y x (* (- t) z)) b))
a
(fma t_3 (fma y2 k (* (- j) y3)) (* (fma j t (* (- k) y)) t_1)))
(fma t_4 (fma y2 t (* (- y) y3)) (* (fma j x (* (- k) z)) t_7)))
(if (<= t 5.5e-44)
(* (- (fma t_3 k (* t_2 x)) (* t_5 t)) y2)
(if (<= t 7.6e+107)
(* (- y3) (- (fma t_3 j (* t_2 z)) (* t_5 y)))
t_6)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y4, b, (-i * y5));
double t_2 = fma(y0, c, (-y1 * a));
double t_3 = fma(y4, y1, (-y0 * y5));
double t_4 = -y5 * a;
double t_5 = fma(y4, c, t_4);
double t_6 = (fma(-z, fma(b, a, (-c * i)), (t_1 * j)) - (t_5 * y2)) * t;
double t_7 = fma(y0, b, (-i * y1));
double tmp;
if (t <= -4.8e+111) {
tmp = t_6;
} else if (t <= 3.05e-226) {
tmp = (fma(-y, t_1, (t_3 * y2)) + (z * t_7)) * k;
} else if (t <= 1.88e-168) {
tmp = fma(fma(-y1, fma(y2, x, (-y3 * z)), (fma(y, x, (-t * z)) * b)), a, fma(t_3, fma(y2, k, (-j * y3)), (fma(j, t, (-k * y)) * t_1))) - fma(t_4, fma(y2, t, (-y * y3)), (fma(j, x, (-k * z)) * t_7));
} else if (t <= 5.5e-44) {
tmp = (fma(t_3, k, (t_2 * x)) - (t_5 * t)) * y2;
} else if (t <= 7.6e+107) {
tmp = -y3 * (fma(t_3, j, (t_2 * z)) - (t_5 * y));
} else {
tmp = t_6;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y4, b, Float64(Float64(-i) * y5)) t_2 = fma(y0, c, Float64(Float64(-y1) * a)) t_3 = fma(y4, y1, Float64(Float64(-y0) * y5)) t_4 = Float64(Float64(-y5) * a) t_5 = fma(y4, c, t_4) t_6 = Float64(Float64(fma(Float64(-z), fma(b, a, Float64(Float64(-c) * i)), Float64(t_1 * j)) - Float64(t_5 * y2)) * t) t_7 = fma(y0, b, Float64(Float64(-i) * y1)) tmp = 0.0 if (t <= -4.8e+111) tmp = t_6; elseif (t <= 3.05e-226) tmp = Float64(Float64(fma(Float64(-y), t_1, Float64(t_3 * y2)) + Float64(z * t_7)) * k); elseif (t <= 1.88e-168) tmp = Float64(fma(fma(Float64(-y1), fma(y2, x, Float64(Float64(-y3) * z)), Float64(fma(y, x, Float64(Float64(-t) * z)) * b)), a, fma(t_3, fma(y2, k, Float64(Float64(-j) * y3)), Float64(fma(j, t, Float64(Float64(-k) * y)) * t_1))) - fma(t_4, fma(y2, t, Float64(Float64(-y) * y3)), Float64(fma(j, x, Float64(Float64(-k) * z)) * t_7))); elseif (t <= 5.5e-44) tmp = Float64(Float64(fma(t_3, k, Float64(t_2 * x)) - Float64(t_5 * t)) * y2); elseif (t <= 7.6e+107) tmp = Float64(Float64(-y3) * Float64(fma(t_3, j, Float64(t_2 * z)) - Float64(t_5 * y))); else tmp = t_6; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[((-y5) * a), $MachinePrecision]}, Block[{t$95$5 = N[(y4 * c + t$95$4), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[((-z) * N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * j), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$7 = N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+111], t$95$6, If[LessEqual[t, 3.05e-226], N[(N[(N[((-y) * t$95$1 + N[(t$95$3 * y2), $MachinePrecision]), $MachinePrecision] + N[(z * t$95$7), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 1.88e-168], N[(N[(N[((-y1) * N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$3 * N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] + N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 5.5e-44], N[(N[(N[(t$95$3 * k + N[(t$95$2 * x), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[t, 7.6e+107], N[((-y3) * N[(N[(t$95$3 * j + N[(t$95$2 * z), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$6]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right)\\
t_2 := \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right)\\
t_3 := \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right)\\
t_4 := \left(-y5\right) \cdot a\\
t_5 := \mathsf{fma}\left(y4, c, t\_4\right)\\
t_6 := \left(\mathsf{fma}\left(-z, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right), t\_1 \cdot j\right) - t\_5 \cdot y2\right) \cdot t\\
t_7 := \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+111}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;t \leq 3.05 \cdot 10^{-226}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, t\_1, t\_3 \cdot y2\right) + z \cdot t\_7\right) \cdot k\\
\mathbf{elif}\;t \leq 1.88 \cdot 10^{-168}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right), a, \mathsf{fma}\left(t\_3, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot t\_1\right)\right) - \mathsf{fma}\left(t\_4, \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right), \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot t\_7\right)\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-44}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_3, k, t\_2 \cdot x\right) - t\_5 \cdot t\right) \cdot y2\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{+107}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(t\_3, j, t\_2 \cdot z\right) - t\_5 \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_6\\
\end{array}
\end{array}
if t < -4.80000000000000011e111 or 7.5999999999999996e107 < t Initial program 21.2%
Taylor expanded in t around inf
Applied rewrites66.3%
if -4.80000000000000011e111 < t < 3.0499999999999999e-226Initial program 31.3%
Taylor expanded in k around inf
Applied rewrites48.9%
if 3.0499999999999999e-226 < t < 1.87999999999999996e-168Initial program 69.2%
Taylor expanded in c around 0
Applied rewrites76.9%
if 1.87999999999999996e-168 < t < 5.49999999999999993e-44Initial program 23.3%
Taylor expanded in y2 around inf
Applied rewrites59.7%
if 5.49999999999999993e-44 < t < 7.5999999999999996e107Initial program 36.6%
Taylor expanded in y3 around -inf
Applied rewrites64.3%
Final simplification58.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y4 b (* (- i) y5)))
(t_2 (fma y4 y1 (* (- y0) y5)))
(t_3 (fma y4 c (* (- y5) a)))
(t_4 (* (- (fma (- z) (fma b a (* (- c) i)) (* t_1 j)) (* t_3 y2)) t))
(t_5 (fma y0 c (* (- y1) a))))
(if (<= t -4.8e+111)
t_4
(if (<= t 5.2e-233)
(* (+ (fma (- y) t_1 (* t_2 y2)) (* z (fma y0 b (* (- i) y1)))) k)
(if (<= t 3.95e-165)
(*
(+
(fma (- a) (fma y2 x (* (- y3) z)) (* (fma y2 k (* (- j) y3)) y4))
(* i (fma j x (* (- k) z))))
y1)
(if (<= t 5.5e-44)
(* (- (fma t_2 k (* t_5 x)) (* t_3 t)) y2)
(if (<= t 7.6e+107)
(* (- y3) (- (fma t_2 j (* t_5 z)) (* t_3 y)))
t_4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y4, b, (-i * y5));
double t_2 = fma(y4, y1, (-y0 * y5));
double t_3 = fma(y4, c, (-y5 * a));
double t_4 = (fma(-z, fma(b, a, (-c * i)), (t_1 * j)) - (t_3 * y2)) * t;
double t_5 = fma(y0, c, (-y1 * a));
double tmp;
if (t <= -4.8e+111) {
tmp = t_4;
} else if (t <= 5.2e-233) {
tmp = (fma(-y, t_1, (t_2 * y2)) + (z * fma(y0, b, (-i * y1)))) * k;
} else if (t <= 3.95e-165) {
tmp = (fma(-a, fma(y2, x, (-y3 * z)), (fma(y2, k, (-j * y3)) * y4)) + (i * fma(j, x, (-k * z)))) * y1;
} else if (t <= 5.5e-44) {
tmp = (fma(t_2, k, (t_5 * x)) - (t_3 * t)) * y2;
} else if (t <= 7.6e+107) {
tmp = -y3 * (fma(t_2, j, (t_5 * z)) - (t_3 * y));
} else {
tmp = t_4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y4, b, Float64(Float64(-i) * y5)) t_2 = fma(y4, y1, Float64(Float64(-y0) * y5)) t_3 = fma(y4, c, Float64(Float64(-y5) * a)) t_4 = Float64(Float64(fma(Float64(-z), fma(b, a, Float64(Float64(-c) * i)), Float64(t_1 * j)) - Float64(t_3 * y2)) * t) t_5 = fma(y0, c, Float64(Float64(-y1) * a)) tmp = 0.0 if (t <= -4.8e+111) tmp = t_4; elseif (t <= 5.2e-233) tmp = Float64(Float64(fma(Float64(-y), t_1, Float64(t_2 * y2)) + Float64(z * fma(y0, b, Float64(Float64(-i) * y1)))) * k); elseif (t <= 3.95e-165) tmp = Float64(Float64(fma(Float64(-a), fma(y2, x, Float64(Float64(-y3) * z)), Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y4)) + Float64(i * fma(j, x, Float64(Float64(-k) * z)))) * y1); elseif (t <= 5.5e-44) tmp = Float64(Float64(fma(t_2, k, Float64(t_5 * x)) - Float64(t_3 * t)) * y2); elseif (t <= 7.6e+107) tmp = Float64(Float64(-y3) * Float64(fma(t_2, j, Float64(t_5 * z)) - Float64(t_3 * y))); else tmp = t_4; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(N[((-z) * N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * j), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$5 = N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.8e+111], t$95$4, If[LessEqual[t, 5.2e-233], N[(N[(N[((-y) * t$95$1 + N[(t$95$2 * y2), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[t, 3.95e-165], N[(N[(N[((-a) * N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] + N[(i * N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[t, 5.5e-44], N[(N[(N[(t$95$2 * k + N[(t$95$5 * x), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[t, 7.6e+107], N[((-y3) * N[(N[(t$95$2 * j + N[(t$95$5 * z), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right)\\
t_2 := \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right)\\
t_3 := \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right)\\
t_4 := \left(\mathsf{fma}\left(-z, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right), t\_1 \cdot j\right) - t\_3 \cdot y2\right) \cdot t\\
t_5 := \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right)\\
\mathbf{if}\;t \leq -4.8 \cdot 10^{+111}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;t \leq 5.2 \cdot 10^{-233}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, t\_1, t\_2 \cdot y2\right) + z \cdot \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\right) \cdot k\\
\mathbf{elif}\;t \leq 3.95 \cdot 10^{-165}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right), \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y4\right) + i \cdot \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\right) \cdot y1\\
\mathbf{elif}\;t \leq 5.5 \cdot 10^{-44}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, k, t\_5 \cdot x\right) - t\_3 \cdot t\right) \cdot y2\\
\mathbf{elif}\;t \leq 7.6 \cdot 10^{+107}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(t\_2, j, t\_5 \cdot z\right) - t\_3 \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if t < -4.80000000000000011e111 or 7.5999999999999996e107 < t Initial program 21.2%
Taylor expanded in t around inf
Applied rewrites66.3%
if -4.80000000000000011e111 < t < 5.1999999999999996e-233Initial program 32.3%
Taylor expanded in k around inf
Applied rewrites49.4%
if 5.1999999999999996e-233 < t < 3.94999999999999996e-165Initial program 56.3%
Taylor expanded in y1 around inf
Applied rewrites63.6%
if 3.94999999999999996e-165 < t < 5.49999999999999993e-44Initial program 23.3%
Taylor expanded in y2 around inf
Applied rewrites59.7%
if 5.49999999999999993e-44 < t < 7.5999999999999996e107Initial program 36.6%
Taylor expanded in y3 around -inf
Applied rewrites64.3%
Final simplification58.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2 (fma y0 c (* (- y1) a)))
(t_3
(*
(-
(fma (fma y x (* (- t) z)) a (* t_1 y4))
(* (fma j x (* (- k) z)) y0))
b))
(t_4 (fma y2 k (* (- j) y3)))
(t_5 (fma y2 t (* (- y) y3))))
(if (<= b -3.35e+134)
t_3
(if (<= b -4.5e-21)
(*
(- z)
(-
(fma t_2 y3 (* (fma b a (* (- c) i)) t))
(* (fma y0 b (* (- i) y1)) k)))
(if (<= b 6.8e-242)
(* (- y5) (- (fma t_1 i (* t_4 y0)) (* t_5 a)))
(if (<= b 5e-64)
(*
(-
(fma (fma y4 y1 (* (- y0) y5)) k (* t_2 x))
(* (fma y4 c (* (- y5) a)) t))
y2)
(if (<= b 4e+199)
(* (- (fma t_1 b (* t_4 y1)) (* t_5 c)) y4)
t_3)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, t, (-k * y));
double t_2 = fma(y0, c, (-y1 * a));
double t_3 = (fma(fma(y, x, (-t * z)), a, (t_1 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
double t_4 = fma(y2, k, (-j * y3));
double t_5 = fma(y2, t, (-y * y3));
double tmp;
if (b <= -3.35e+134) {
tmp = t_3;
} else if (b <= -4.5e-21) {
tmp = -z * (fma(t_2, y3, (fma(b, a, (-c * i)) * t)) - (fma(y0, b, (-i * y1)) * k));
} else if (b <= 6.8e-242) {
tmp = -y5 * (fma(t_1, i, (t_4 * y0)) - (t_5 * a));
} else if (b <= 5e-64) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (t_2 * x)) - (fma(y4, c, (-y5 * a)) * t)) * y2;
} else if (b <= 4e+199) {
tmp = (fma(t_1, b, (t_4 * y1)) - (t_5 * c)) * y4;
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = fma(y0, c, Float64(Float64(-y1) * a)) t_3 = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_1 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b) t_4 = fma(y2, k, Float64(Float64(-j) * y3)) t_5 = fma(y2, t, Float64(Float64(-y) * y3)) tmp = 0.0 if (b <= -3.35e+134) tmp = t_3; elseif (b <= -4.5e-21) tmp = Float64(Float64(-z) * Float64(fma(t_2, y3, Float64(fma(b, a, Float64(Float64(-c) * i)) * t)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * k))); elseif (b <= 6.8e-242) tmp = Float64(Float64(-y5) * Float64(fma(t_1, i, Float64(t_4 * y0)) - Float64(t_5 * a))); elseif (b <= 5e-64) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(t_2 * x)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * t)) * y2); elseif (b <= 4e+199) tmp = Float64(Float64(fma(t_1, b, Float64(t_4 * y1)) - Float64(t_5 * c)) * y4); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, Block[{t$95$4 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.35e+134], t$95$3, If[LessEqual[b, -4.5e-21], N[((-z) * N[(N[(t$95$2 * y3 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.8e-242], N[((-y5) * N[(N[(t$95$1 * i + N[(t$95$4 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e-64], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$2 * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 4e+199], N[(N[(N[(t$95$1 * b + N[(t$95$4 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$5 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], t$95$3]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right)\\
t_3 := \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
t_4 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_5 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
\mathbf{if}\;b \leq -3.35 \cdot 10^{+134}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -4.5 \cdot 10^{-21}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_2, y3, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot t\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot k\right)\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-242}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_1, i, t\_4 \cdot y0\right) - t\_5 \cdot a\right)\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-64}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, t\_2 \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+199}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, b, t\_4 \cdot y1\right) - t\_5 \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -3.3499999999999998e134 or 4.00000000000000039e199 < b Initial program 14.9%
Taylor expanded in b around inf
Applied rewrites72.5%
if -3.3499999999999998e134 < b < -4.49999999999999968e-21Initial program 16.6%
Taylor expanded in z around -inf
Applied rewrites53.8%
if -4.49999999999999968e-21 < b < 6.8000000000000001e-242Initial program 38.1%
Taylor expanded in y5 around -inf
Applied rewrites49.0%
if 6.8000000000000001e-242 < b < 5.00000000000000033e-64Initial program 48.9%
Taylor expanded in y2 around inf
Applied rewrites58.9%
if 5.00000000000000033e-64 < b < 4.00000000000000039e199Initial program 27.0%
Taylor expanded in y4 around inf
Applied rewrites57.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2 (fma y2 k (* (- j) y3)))
(t_3 (fma y2 t (* (- y) y3))))
(if (<= b -1.42e+233)
(* (* k y4) (fma y1 y2 (* b (- y))))
(if (<= b -6.5e-19)
(* (* b (fma -1.0 (* a z) (* j y4))) t)
(if (<= b 6.8e-242)
(* (- y5) (- (fma t_1 i (* t_2 y0)) (* t_3 a)))
(if (<= b 5e-64)
(*
(-
(fma (fma y4 y1 (* (- y0) y5)) k (* (fma y0 c (* (- y1) a)) x))
(* (fma y4 c (* (- y5) a)) t))
y2)
(if (<= b 4e+199)
(* (- (fma t_1 b (* t_2 y1)) (* t_3 c)) y4)
(*
(-
(fma (fma y x (* (- t) z)) a (* t_1 y4))
(* (fma j x (* (- k) z)) y0))
b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, t, (-k * y));
double t_2 = fma(y2, k, (-j * y3));
double t_3 = fma(y2, t, (-y * y3));
double tmp;
if (b <= -1.42e+233) {
tmp = (k * y4) * fma(y1, y2, (b * -y));
} else if (b <= -6.5e-19) {
tmp = (b * fma(-1.0, (a * z), (j * y4))) * t;
} else if (b <= 6.8e-242) {
tmp = -y5 * (fma(t_1, i, (t_2 * y0)) - (t_3 * a));
} else if (b <= 5e-64) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (fma(y0, c, (-y1 * a)) * x)) - (fma(y4, c, (-y5 * a)) * t)) * y2;
} else if (b <= 4e+199) {
tmp = (fma(t_1, b, (t_2 * y1)) - (t_3 * c)) * y4;
} else {
tmp = (fma(fma(y, x, (-t * z)), a, (t_1 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = fma(y2, k, Float64(Float64(-j) * y3)) t_3 = fma(y2, t, Float64(Float64(-y) * y3)) tmp = 0.0 if (b <= -1.42e+233) tmp = Float64(Float64(k * y4) * fma(y1, y2, Float64(b * Float64(-y)))); elseif (b <= -6.5e-19) tmp = Float64(Float64(b * fma(-1.0, Float64(a * z), Float64(j * y4))) * t); elseif (b <= 6.8e-242) tmp = Float64(Float64(-y5) * Float64(fma(t_1, i, Float64(t_2 * y0)) - Float64(t_3 * a))); elseif (b <= 5e-64) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(fma(y0, c, Float64(Float64(-y1) * a)) * x)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * t)) * y2); elseif (b <= 4e+199) tmp = Float64(Float64(fma(t_1, b, Float64(t_2 * y1)) - Float64(t_3 * c)) * y4); else tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_1 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.42e+233], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2 + N[(b * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -6.5e-19], N[(N[(b * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 6.8e-242], N[((-y5) * N[(N[(t$95$1 * i + N[(t$95$2 * y0), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5e-64], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 4e+199], N[(N[(N[(t$95$1 * b + N[(t$95$2 * y1), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right)\\
t_3 := \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right)\\
\mathbf{if}\;b \leq -1.42 \cdot 10^{+233}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \mathsf{fma}\left(y1, y2, b \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq -6.5 \cdot 10^{-19}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \cdot t\\
\mathbf{elif}\;b \leq 6.8 \cdot 10^{-242}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_1, i, t\_2 \cdot y0\right) - t\_3 \cdot a\right)\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-64}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right) \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+199}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, b, t\_2 \cdot y1\right) - t\_3 \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\end{array}
\end{array}
if b < -1.42e233Initial program 11.6%
Taylor expanded in k around inf
Applied rewrites39.6%
Taylor expanded in i around inf
Applied rewrites22.9%
Taylor expanded in y4 around inf
Applied rewrites78.9%
if -1.42e233 < b < -6.5000000000000001e-19Initial program 17.9%
Taylor expanded in t around inf
Applied rewrites50.6%
Taylor expanded in b around inf
Applied rewrites53.1%
if -6.5000000000000001e-19 < b < 6.8000000000000001e-242Initial program 38.4%
Taylor expanded in y5 around -inf
Applied rewrites49.1%
if 6.8000000000000001e-242 < b < 5.00000000000000033e-64Initial program 48.9%
Taylor expanded in y2 around inf
Applied rewrites58.9%
if 5.00000000000000033e-64 < b < 4.00000000000000039e199Initial program 27.0%
Taylor expanded in y4 around inf
Applied rewrites57.9%
if 4.00000000000000039e199 < b Initial program 9.5%
Taylor expanded in b around inf
Applied rewrites85.7%
Final simplification58.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y0 c (* (- y1) a))) (t_2 (fma j t (* (- k) y))))
(if (<= b -1.42e+233)
(* (* k y4) (fma y1 y2 (* b (- y))))
(if (<= b -114000.0)
(* (* b (fma -1.0 (* a z) (* j y4))) t)
(if (<= b 5.5e-221)
(*
(-
(fma t_1 y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= b 5e-64)
(*
(-
(fma (fma y4 y1 (* (- y0) y5)) k (* t_1 x))
(* (fma y4 c (* (- y5) a)) t))
y2)
(if (<= b 4e+199)
(*
(-
(fma t_2 b (* (fma y2 k (* (- j) y3)) y1))
(* (fma y2 t (* (- y) y3)) c))
y4)
(*
(-
(fma (fma y x (* (- t) z)) a (* t_2 y4))
(* (fma j x (* (- k) z)) y0))
b))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(y0, c, (-y1 * a));
double t_2 = fma(j, t, (-k * y));
double tmp;
if (b <= -1.42e+233) {
tmp = (k * y4) * fma(y1, y2, (b * -y));
} else if (b <= -114000.0) {
tmp = (b * fma(-1.0, (a * z), (j * y4))) * t;
} else if (b <= 5.5e-221) {
tmp = (fma(t_1, y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (b <= 5e-64) {
tmp = (fma(fma(y4, y1, (-y0 * y5)), k, (t_1 * x)) - (fma(y4, c, (-y5 * a)) * t)) * y2;
} else if (b <= 4e+199) {
tmp = (fma(t_2, b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else {
tmp = (fma(fma(y, x, (-t * z)), a, (t_2 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y0, c, Float64(Float64(-y1) * a)) t_2 = fma(j, t, Float64(Float64(-k) * y)) tmp = 0.0 if (b <= -1.42e+233) tmp = Float64(Float64(k * y4) * fma(y1, y2, Float64(b * Float64(-y)))); elseif (b <= -114000.0) tmp = Float64(Float64(b * fma(-1.0, Float64(a * z), Float64(j * y4))) * t); elseif (b <= 5.5e-221) tmp = Float64(Float64(fma(t_1, y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (b <= 5e-64) tmp = Float64(Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), k, Float64(t_1 * x)) - Float64(fma(y4, c, Float64(Float64(-y5) * a)) * t)) * y2); elseif (b <= 4e+199) tmp = Float64(Float64(fma(t_2, b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); else tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_2 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.42e+233], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2 + N[(b * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -114000.0], N[(N[(b * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 5.5e-221], N[(N[(N[(t$95$1 * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 5e-64], N[(N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * k + N[(t$95$1 * x), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-y5) * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[b, 4e+199], N[(N[(N[(t$95$2 * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right)\\
t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
\mathbf{if}\;b \leq -1.42 \cdot 10^{+233}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \mathsf{fma}\left(y1, y2, b \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq -114000:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \cdot t\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{-221}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;b \leq 5 \cdot 10^{-64}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), k, t\_1 \cdot x\right) - \mathsf{fma}\left(y4, c, \left(-y5\right) \cdot a\right) \cdot t\right) \cdot y2\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+199}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_2 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\end{array}
\end{array}
if b < -1.42e233Initial program 11.6%
Taylor expanded in k around inf
Applied rewrites39.6%
Taylor expanded in i around inf
Applied rewrites22.9%
Taylor expanded in y4 around inf
Applied rewrites78.9%
if -1.42e233 < b < -114000Initial program 19.1%
Taylor expanded in t around inf
Applied rewrites51.7%
Taylor expanded in b around inf
Applied rewrites52.1%
if -114000 < b < 5.49999999999999966e-221Initial program 36.9%
Taylor expanded in x around inf
Applied rewrites48.2%
if 5.49999999999999966e-221 < b < 5.00000000000000033e-64Initial program 50.1%
Taylor expanded in y2 around inf
Applied rewrites61.0%
if 5.00000000000000033e-64 < b < 4.00000000000000039e199Initial program 27.0%
Taylor expanded in y4 around inf
Applied rewrites57.9%
if 4.00000000000000039e199 < b Initial program 9.5%
Taylor expanded in b around inf
Applied rewrites85.7%
Final simplification57.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y))))
(if (<= b -1.42e+233)
(* (* k y4) (fma y1 y2 (* b (- y))))
(if (<= b -114000.0)
(* (* b (fma -1.0 (* a z) (* j y4))) t)
(if (<= b 3.5e-43)
(*
(-
(fma (fma y0 c (* (- y1) a)) y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= b 4e+199)
(*
(-
(fma t_1 b (* (fma y2 k (* (- j) y3)) y1))
(* (fma y2 t (* (- y) y3)) c))
y4)
(*
(-
(fma (fma y x (* (- t) z)) a (* t_1 y4))
(* (fma j x (* (- k) z)) y0))
b)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, t, (-k * y));
double tmp;
if (b <= -1.42e+233) {
tmp = (k * y4) * fma(y1, y2, (b * -y));
} else if (b <= -114000.0) {
tmp = (b * fma(-1.0, (a * z), (j * y4))) * t;
} else if (b <= 3.5e-43) {
tmp = (fma(fma(y0, c, (-y1 * a)), y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (b <= 4e+199) {
tmp = (fma(t_1, b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else {
tmp = (fma(fma(y, x, (-t * z)), a, (t_1 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) tmp = 0.0 if (b <= -1.42e+233) tmp = Float64(Float64(k * y4) * fma(y1, y2, Float64(b * Float64(-y)))); elseif (b <= -114000.0) tmp = Float64(Float64(b * fma(-1.0, Float64(a * z), Float64(j * y4))) * t); elseif (b <= 3.5e-43) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-y1) * a)), y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (b <= 4e+199) tmp = Float64(Float64(fma(t_1, b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); else tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_1 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.42e+233], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2 + N[(b * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -114000.0], N[(N[(b * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[b, 3.5e-43], N[(N[(N[(N[(y0 * c + N[((-y1) * a), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 4e+199], N[(N[(N[(t$95$1 * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
\mathbf{if}\;b \leq -1.42 \cdot 10^{+233}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \mathsf{fma}\left(y1, y2, b \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq -114000:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right) \cdot t\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{-43}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-y1\right) \cdot a\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+199}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\end{array}
\end{array}
if b < -1.42e233Initial program 11.6%
Taylor expanded in k around inf
Applied rewrites39.6%
Taylor expanded in i around inf
Applied rewrites22.9%
Taylor expanded in y4 around inf
Applied rewrites78.9%
if -1.42e233 < b < -114000Initial program 19.1%
Taylor expanded in t around inf
Applied rewrites51.7%
Taylor expanded in b around inf
Applied rewrites52.1%
if -114000 < b < 3.49999999999999997e-43Initial program 39.0%
Taylor expanded in x around inf
Applied rewrites48.1%
if 3.49999999999999997e-43 < b < 4.00000000000000039e199Initial program 31.1%
Taylor expanded in y4 around inf
Applied rewrites56.6%
if 4.00000000000000039e199 < b Initial program 9.5%
Taylor expanded in b around inf
Applied rewrites85.7%
Final simplification55.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* i y) (fma k y5 (* (- c) x)))) (t_2 (fma j t (* (- k) y))))
(if (<= a -3.4e+114)
(* (* (- a) (fma x y1 (* (- t) y5))) y2)
(if (<= a -1.95e-271)
(*
(-
(fma (fma y x (* (- t) z)) a (* t_2 y4))
(* (fma j x (* (- k) z)) y0))
b)
(if (<= a 3e-254)
t_1
(if (<= a 6.6e+21)
(*
(-
(fma t_2 b (* (fma y2 k (* (- j) y3)) y1))
(* (fma y2 t (* (- y) y3)) c))
y4)
(if (<= a 1.26e+193)
t_1
(* (* (- a) (fma b z (* (- y2) y5))) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (i * y) * fma(k, y5, (-c * x));
double t_2 = fma(j, t, (-k * y));
double tmp;
if (a <= -3.4e+114) {
tmp = (-a * fma(x, y1, (-t * y5))) * y2;
} else if (a <= -1.95e-271) {
tmp = (fma(fma(y, x, (-t * z)), a, (t_2 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
} else if (a <= 3e-254) {
tmp = t_1;
} else if (a <= 6.6e+21) {
tmp = (fma(t_2, b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else if (a <= 1.26e+193) {
tmp = t_1;
} else {
tmp = (-a * fma(b, z, (-y2 * y5))) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))) t_2 = fma(j, t, Float64(Float64(-k) * y)) tmp = 0.0 if (a <= -3.4e+114) tmp = Float64(Float64(Float64(-a) * fma(x, y1, Float64(Float64(-t) * y5))) * y2); elseif (a <= -1.95e-271) tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_2 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); elseif (a <= 3e-254) tmp = t_1; elseif (a <= 6.6e+21) tmp = Float64(Float64(fma(t_2, b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); elseif (a <= 1.26e+193) tmp = t_1; else tmp = Float64(Float64(Float64(-a) * fma(b, z, Float64(Float64(-y2) * y5))) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -3.4e+114], N[(N[((-a) * N[(x * y1 + N[((-t) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[a, -1.95e-271], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[a, 3e-254], t$95$1, If[LessEqual[a, 6.6e+21], N[(N[(N[(t$95$2 * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[a, 1.26e+193], t$95$1, N[(N[((-a) * N[(b * z + N[((-y2) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
t_2 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
\mathbf{if}\;a \leq -3.4 \cdot 10^{+114}:\\
\;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(x, y1, \left(-t\right) \cdot y5\right)\right) \cdot y2\\
\mathbf{elif}\;a \leq -1.95 \cdot 10^{-271}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_2 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;a \leq 3 \cdot 10^{-254}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 6.6 \cdot 10^{+21}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{elif}\;a \leq 1.26 \cdot 10^{+193}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-a\right) \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right) \cdot t\\
\end{array}
\end{array}
if a < -3.4000000000000001e114Initial program 32.5%
Taylor expanded in y2 around inf
Applied rewrites55.3%
Taylor expanded in a around -inf
Applied rewrites60.6%
if -3.4000000000000001e114 < a < -1.94999999999999999e-271Initial program 28.6%
Taylor expanded in b around inf
Applied rewrites45.8%
if -1.94999999999999999e-271 < a < 3.00000000000000012e-254 or 6.6e21 < a < 1.2599999999999999e193Initial program 26.5%
Taylor expanded in i around -inf
Applied rewrites42.3%
Taylor expanded in y1 around inf
Applied rewrites16.9%
Taylor expanded in y around -inf
Applied rewrites54.1%
if 3.00000000000000012e-254 < a < 6.6e21Initial program 39.1%
Taylor expanded in y4 around inf
Applied rewrites54.7%
if 1.2599999999999999e193 < a Initial program 17.7%
Taylor expanded in t around inf
Applied rewrites53.3%
Taylor expanded in a around -inf
Applied rewrites59.5%
Final simplification53.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -6e+58)
(* (* b (fma t y4 (* (- x) y0))) j)
(if (<= x -7e-22)
(* (* c z) (fma i t (* (- y0) y3)))
(if (<= x -1.16e-156)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= x 7.8e+46)
(*
(-
(fma (fma j t (* (- k) y)) b (* (fma y2 k (* (- j) y3)) y1))
(* (fma y2 t (* (- y) y3)) c))
y4)
(* (* x (fma c y0 (* (- a) y1))) y2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -6e+58) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else if (x <= -7e-22) {
tmp = (c * z) * fma(i, t, (-y0 * y3));
} else if (x <= -1.16e-156) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (x <= 7.8e+46) {
tmp = (fma(fma(j, t, (-k * y)), b, (fma(y2, k, (-j * y3)) * y1)) - (fma(y2, t, (-y * y3)) * c)) * y4;
} else {
tmp = (x * fma(c, y0, (-a * y1))) * y2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -6e+58) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); elseif (x <= -7e-22) tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); elseif (x <= -1.16e-156) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (x <= 7.8e+46) tmp = Float64(Float64(fma(fma(j, t, Float64(Float64(-k) * y)), b, Float64(fma(y2, k, Float64(Float64(-j) * y3)) * y1)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * c)) * y4); else tmp = Float64(Float64(x * fma(c, y0, Float64(Float64(-a) * y1))) * y2); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -6e+58], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, -7e-22], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, -1.16e-156], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 7.8e+46], N[(N[(N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * b + N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], N[(N[(x * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -6 \cdot 10^{+58}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{elif}\;x \leq -7 \cdot 10^{-22}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\mathbf{elif}\;x \leq -1.16 \cdot 10^{-156}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;x \leq 7.8 \cdot 10^{+46}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right), b, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right) \cdot y1\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot c\right) \cdot y4\\
\mathbf{else}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) \cdot y2\\
\end{array}
\end{array}
if x < -6.0000000000000005e58Initial program 19.2%
Taylor expanded in j around inf
Applied rewrites39.2%
Taylor expanded in b around inf
Applied rewrites48.6%
if -6.0000000000000005e58 < x < -7.00000000000000011e-22Initial program 35.7%
Taylor expanded in z around -inf
Applied rewrites53.0%
Taylor expanded in c around -inf
Applied rewrites65.1%
if -7.00000000000000011e-22 < x < -1.15999999999999995e-156Initial program 14.7%
Taylor expanded in k around inf
Applied rewrites43.8%
Taylor expanded in i around inf
Applied rewrites62.3%
if -1.15999999999999995e-156 < x < 7.7999999999999999e46Initial program 44.3%
Taylor expanded in y4 around inf
Applied rewrites46.7%
if 7.7999999999999999e46 < x Initial program 14.5%
Taylor expanded in y2 around inf
Applied rewrites51.1%
Taylor expanded in x around inf
Applied rewrites53.2%
Final simplification51.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma (- k) y (* j t)))
(t_2 (* (- i) (+ (fma -1.0 (* c (* t z)) (* y5 t_1)) (* k (* y1 z)))))
(t_3 (* b (* y4 t_1))))
(if (<= i -5.5e+33)
t_2
(if (<= i -1.6e-106)
t_3
(if (<= i 6e-10)
(* (* x (fma c y0 (* (- a) y1))) y2)
(if (<= i 2.25e+92)
t_3
(if (<= i 7.3e+182)
(fma (* (* y5 y3) y0) j (* (* (fma i y1 (* b (- y0))) x) j))
t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(-k, y, (j * t));
double t_2 = -i * (fma(-1.0, (c * (t * z)), (y5 * t_1)) + (k * (y1 * z)));
double t_3 = b * (y4 * t_1);
double tmp;
if (i <= -5.5e+33) {
tmp = t_2;
} else if (i <= -1.6e-106) {
tmp = t_3;
} else if (i <= 6e-10) {
tmp = (x * fma(c, y0, (-a * y1))) * y2;
} else if (i <= 2.25e+92) {
tmp = t_3;
} else if (i <= 7.3e+182) {
tmp = fma(((y5 * y3) * y0), j, ((fma(i, y1, (b * -y0)) * x) * j));
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(Float64(-k), y, Float64(j * t)) t_2 = Float64(Float64(-i) * Float64(fma(-1.0, Float64(c * Float64(t * z)), Float64(y5 * t_1)) + Float64(k * Float64(y1 * z)))) t_3 = Float64(b * Float64(y4 * t_1)) tmp = 0.0 if (i <= -5.5e+33) tmp = t_2; elseif (i <= -1.6e-106) tmp = t_3; elseif (i <= 6e-10) tmp = Float64(Float64(x * fma(c, y0, Float64(Float64(-a) * y1))) * y2); elseif (i <= 2.25e+92) tmp = t_3; elseif (i <= 7.3e+182) tmp = fma(Float64(Float64(y5 * y3) * y0), j, Float64(Float64(fma(i, y1, Float64(b * Float64(-y0))) * x) * j)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-i) * N[(N[(-1.0 * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] + N[(k * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.5e+33], t$95$2, If[LessEqual[i, -1.6e-106], t$95$3, If[LessEqual[i, 6e-10], N[(N[(x * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision], If[LessEqual[i, 2.25e+92], t$95$3, If[LessEqual[i, 7.3e+182], N[(N[(N[(y5 * y3), $MachinePrecision] * y0), $MachinePrecision] * j + N[(N[(N[(i * y1 + N[(b * (-y0)), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
t_2 := \left(-i\right) \cdot \left(\mathsf{fma}\left(-1, c \cdot \left(t \cdot z\right), y5 \cdot t\_1\right) + k \cdot \left(y1 \cdot z\right)\right)\\
t_3 := b \cdot \left(y4 \cdot t\_1\right)\\
\mathbf{if}\;i \leq -5.5 \cdot 10^{+33}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;i \leq -1.6 \cdot 10^{-106}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-10}:\\
\;\;\;\;\left(x \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{elif}\;i \leq 2.25 \cdot 10^{+92}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;i \leq 7.3 \cdot 10^{+182}:\\
\;\;\;\;\mathsf{fma}\left(\left(y5 \cdot y3\right) \cdot y0, j, \left(\mathsf{fma}\left(i, y1, b \cdot \left(-y0\right)\right) \cdot x\right) \cdot j\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if i < -5.5000000000000006e33 or 7.3000000000000004e182 < i Initial program 34.7%
Taylor expanded in i around -inf
Applied rewrites64.5%
Taylor expanded in x around 0
Applied rewrites58.4%
if -5.5000000000000006e33 < i < -1.6e-106 or 6e-10 < i < 2.25e92Initial program 25.1%
Taylor expanded in y4 around inf
Applied rewrites42.9%
Taylor expanded in b around inf
Applied rewrites50.9%
if -1.6e-106 < i < 6e-10Initial program 29.2%
Taylor expanded in y2 around inf
Applied rewrites45.0%
Taylor expanded in x around inf
Applied rewrites45.6%
if 2.25e92 < i < 7.3000000000000004e182Initial program 25.4%
Taylor expanded in j around inf
Applied rewrites38.4%
Taylor expanded in y0 around inf
Applied rewrites63.0%
Applied rewrites69.3%
Final simplification52.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma c y0 (* (- a) y1))) y2)))
(if (<= c -6.4e+157)
(* (* y4 (fma b j (* (- c) y2))) t)
(if (<= c -5.5e+51)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= c -1.18e-80)
t_1
(if (<= c -1.4e-282)
(* (* (fma a y2 (* (- j) i)) y5) t)
(if (<= c 4.4e-234)
(* (* y2 (fma (- y0) y5 (* y1 y4))) k)
(if (<= c 280.0)
(* (- a) (* t (fma b z (* (- y2) y5))))
(if (<= c 1.9e+23)
(* (* y5 (fma -1.0 (* y0 y2) (* i y))) k)
(if (<= c 6.2e+109)
t_1
(if (<= c 2.05e+204)
(* (* b (fma t y4 (* (- x) y0))) j)
(* (- z) (* c (fma y0 y3 (* (- i) t)))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(c, y0, (-a * y1))) * y2;
double tmp;
if (c <= -6.4e+157) {
tmp = (y4 * fma(b, j, (-c * y2))) * t;
} else if (c <= -5.5e+51) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (c <= -1.18e-80) {
tmp = t_1;
} else if (c <= -1.4e-282) {
tmp = (fma(a, y2, (-j * i)) * y5) * t;
} else if (c <= 4.4e-234) {
tmp = (y2 * fma(-y0, y5, (y1 * y4))) * k;
} else if (c <= 280.0) {
tmp = -a * (t * fma(b, z, (-y2 * y5)));
} else if (c <= 1.9e+23) {
tmp = (y5 * fma(-1.0, (y0 * y2), (i * y))) * k;
} else if (c <= 6.2e+109) {
tmp = t_1;
} else if (c <= 2.05e+204) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else {
tmp = -z * (c * fma(y0, y3, (-i * t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(c, y0, Float64(Float64(-a) * y1))) * y2) tmp = 0.0 if (c <= -6.4e+157) tmp = Float64(Float64(y4 * fma(b, j, Float64(Float64(-c) * y2))) * t); elseif (c <= -5.5e+51) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (c <= -1.18e-80) tmp = t_1; elseif (c <= -1.4e-282) tmp = Float64(Float64(fma(a, y2, Float64(Float64(-j) * i)) * y5) * t); elseif (c <= 4.4e-234) tmp = Float64(Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))) * k); elseif (c <= 280.0) tmp = Float64(Float64(-a) * Float64(t * fma(b, z, Float64(Float64(-y2) * y5)))); elseif (c <= 1.9e+23) tmp = Float64(Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y))) * k); elseif (c <= 6.2e+109) tmp = t_1; elseif (c <= 2.05e+204) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); else tmp = Float64(Float64(-z) * Float64(c * fma(y0, y3, Float64(Float64(-i) * t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[c, -6.4e+157], N[(N[(y4 * N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, -5.5e+51], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, -1.18e-80], t$95$1, If[LessEqual[c, -1.4e-282], N[(N[(N[(a * y2 + N[((-j) * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, 4.4e-234], N[(N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, 280.0], N[((-a) * N[(t * N[(b * z + N[((-y2) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 1.9e+23], N[(N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, 6.2e+109], t$95$1, If[LessEqual[c, 2.05e+204], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[((-z) * N[(c * N[(y0 * y3 + N[((-i) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{if}\;c \leq -6.4 \cdot 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right)\right) \cdot t\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{+51}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;c \leq -1.18 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-282}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, y2, \left(-j\right) \cdot i\right) \cdot y5\right) \cdot t\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-234}:\\
\;\;\;\;\left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot k\\
\mathbf{elif}\;c \leq 280:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 1.9 \cdot 10^{+23}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right) \cdot k\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+204}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(c \cdot \mathsf{fma}\left(y0, y3, \left(-i\right) \cdot t\right)\right)\\
\end{array}
\end{array}
if c < -6.3999999999999999e157Initial program 15.1%
Taylor expanded in t around inf
Applied rewrites45.1%
Taylor expanded in y4 around inf
Applied rewrites56.0%
if -6.3999999999999999e157 < c < -5.5e51Initial program 27.9%
Taylor expanded in k around inf
Applied rewrites50.2%
Taylor expanded in i around inf
Applied rewrites72.5%
if -5.5e51 < c < -1.18000000000000005e-80 or 1.89999999999999987e23 < c < 6.19999999999999985e109Initial program 43.9%
Taylor expanded in y2 around inf
Applied rewrites56.7%
Taylor expanded in x around inf
Applied rewrites51.2%
if -1.18000000000000005e-80 < c < -1.3999999999999999e-282Initial program 35.9%
Taylor expanded in t around inf
Applied rewrites44.6%
Taylor expanded in y5 around -inf
Applied rewrites52.5%
Applied rewrites52.5%
if -1.3999999999999999e-282 < c < 4.3999999999999998e-234Initial program 39.8%
Taylor expanded in k around inf
Applied rewrites45.4%
Taylor expanded in y2 around inf
Applied rewrites60.6%
if 4.3999999999999998e-234 < c < 280Initial program 24.5%
Taylor expanded in t around inf
Applied rewrites42.2%
Taylor expanded in a around -inf
Applied rewrites46.3%
if 280 < c < 1.89999999999999987e23Initial program 50.0%
Taylor expanded in k around inf
Applied rewrites66.7%
Taylor expanded in y5 around inf
Applied rewrites84.0%
if 6.19999999999999985e109 < c < 2.04999999999999987e204Initial program 10.9%
Taylor expanded in j around inf
Applied rewrites53.8%
Taylor expanded in b around inf
Applied rewrites74.1%
if 2.04999999999999987e204 < c Initial program 21.1%
Taylor expanded in z around -inf
Applied rewrites58.1%
Taylor expanded in c around inf
Applied rewrites79.2%
Final simplification57.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y2 (fma (- y0) y5 (* y1 y4))) k))
(t_2 (* (* (fma a y2 (* (- j) i)) y5) t))
(t_3 (* (* x (fma c y0 (* (- a) y1))) y2)))
(if (<= c -6.4e+157)
(* (* y4 (fma b j (* (- c) y2))) t)
(if (<= c -5.5e+51)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= c -1.18e-80)
t_3
(if (<= c -1.4e-282)
t_2
(if (<= c 1.1e-219)
t_1
(if (<= c 3.9e-99)
t_2
(if (<= c 5.6e+45)
t_1
(if (<= c 6.2e+109)
t_3
(if (<= c 2.05e+204)
(* (* b (fma t y4 (* (- x) y0))) j)
(* (* c z) (fma i t (* (- y0) y3))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * fma(-y0, y5, (y1 * y4))) * k;
double t_2 = (fma(a, y2, (-j * i)) * y5) * t;
double t_3 = (x * fma(c, y0, (-a * y1))) * y2;
double tmp;
if (c <= -6.4e+157) {
tmp = (y4 * fma(b, j, (-c * y2))) * t;
} else if (c <= -5.5e+51) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (c <= -1.18e-80) {
tmp = t_3;
} else if (c <= -1.4e-282) {
tmp = t_2;
} else if (c <= 1.1e-219) {
tmp = t_1;
} else if (c <= 3.9e-99) {
tmp = t_2;
} else if (c <= 5.6e+45) {
tmp = t_1;
} else if (c <= 6.2e+109) {
tmp = t_3;
} else if (c <= 2.05e+204) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else {
tmp = (c * z) * fma(i, t, (-y0 * y3));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))) * k) t_2 = Float64(Float64(fma(a, y2, Float64(Float64(-j) * i)) * y5) * t) t_3 = Float64(Float64(x * fma(c, y0, Float64(Float64(-a) * y1))) * y2) tmp = 0.0 if (c <= -6.4e+157) tmp = Float64(Float64(y4 * fma(b, j, Float64(Float64(-c) * y2))) * t); elseif (c <= -5.5e+51) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (c <= -1.18e-80) tmp = t_3; elseif (c <= -1.4e-282) tmp = t_2; elseif (c <= 1.1e-219) tmp = t_1; elseif (c <= 3.9e-99) tmp = t_2; elseif (c <= 5.6e+45) tmp = t_1; elseif (c <= 6.2e+109) tmp = t_3; elseif (c <= 2.05e+204) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); else tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(a * y2 + N[((-j) * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * t), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[c, -6.4e+157], N[(N[(y4 * N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, -5.5e+51], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, -1.18e-80], t$95$3, If[LessEqual[c, -1.4e-282], t$95$2, If[LessEqual[c, 1.1e-219], t$95$1, If[LessEqual[c, 3.9e-99], t$95$2, If[LessEqual[c, 5.6e+45], t$95$1, If[LessEqual[c, 6.2e+109], t$95$3, If[LessEqual[c, 2.05e+204], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot k\\
t_2 := \left(\mathsf{fma}\left(a, y2, \left(-j\right) \cdot i\right) \cdot y5\right) \cdot t\\
t_3 := \left(x \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{if}\;c \leq -6.4 \cdot 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right)\right) \cdot t\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{+51}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;c \leq -1.18 \cdot 10^{-80}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-282}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{-219}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-99}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 5.6 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{+109}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+204}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\end{array}
\end{array}
if c < -6.3999999999999999e157Initial program 15.1%
Taylor expanded in t around inf
Applied rewrites45.1%
Taylor expanded in y4 around inf
Applied rewrites56.0%
if -6.3999999999999999e157 < c < -5.5e51Initial program 27.9%
Taylor expanded in k around inf
Applied rewrites50.2%
Taylor expanded in i around inf
Applied rewrites72.5%
if -5.5e51 < c < -1.18000000000000005e-80 or 5.5999999999999999e45 < c < 6.19999999999999985e109Initial program 42.2%
Taylor expanded in y2 around inf
Applied rewrites56.3%
Taylor expanded in x around inf
Applied rewrites52.3%
if -1.18000000000000005e-80 < c < -1.3999999999999999e-282 or 1.1e-219 < c < 3.89999999999999987e-99Initial program 32.2%
Taylor expanded in t around inf
Applied rewrites44.1%
Taylor expanded in y5 around -inf
Applied rewrites49.9%
Applied rewrites49.9%
if -1.3999999999999999e-282 < c < 1.1e-219 or 3.89999999999999987e-99 < c < 5.5999999999999999e45Initial program 33.9%
Taylor expanded in k around inf
Applied rewrites52.4%
Taylor expanded in y2 around inf
Applied rewrites49.0%
if 6.19999999999999985e109 < c < 2.04999999999999987e204Initial program 10.9%
Taylor expanded in j around inf
Applied rewrites53.8%
Taylor expanded in b around inf
Applied rewrites74.1%
if 2.04999999999999987e204 < c Initial program 21.1%
Taylor expanded in z around -inf
Applied rewrites58.1%
Taylor expanded in c around -inf
Applied rewrites74.2%
Final simplification56.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma c y0 (* (- a) y1))) y2)))
(if (<= c -6.4e+157)
(* (* y4 (fma b j (* (- c) y2))) t)
(if (<= c -5.5e+51)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= c -1.18e-80)
t_1
(if (<= c -1.4e-282)
(* (* (fma a y2 (* (- j) i)) y5) t)
(if (<= c 4.4e-234)
(* (* y2 (fma (- y0) y5 (* y1 y4))) k)
(if (<= c 240.0)
(* (- a) (* t (fma b z (* (- y2) y5))))
(if (<= c 6.2e+109)
t_1
(if (<= c 2.05e+204)
(* (* b (fma t y4 (* (- x) y0))) j)
(* (- z) (* c (fma y0 y3 (* (- i) t))))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(c, y0, (-a * y1))) * y2;
double tmp;
if (c <= -6.4e+157) {
tmp = (y4 * fma(b, j, (-c * y2))) * t;
} else if (c <= -5.5e+51) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (c <= -1.18e-80) {
tmp = t_1;
} else if (c <= -1.4e-282) {
tmp = (fma(a, y2, (-j * i)) * y5) * t;
} else if (c <= 4.4e-234) {
tmp = (y2 * fma(-y0, y5, (y1 * y4))) * k;
} else if (c <= 240.0) {
tmp = -a * (t * fma(b, z, (-y2 * y5)));
} else if (c <= 6.2e+109) {
tmp = t_1;
} else if (c <= 2.05e+204) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else {
tmp = -z * (c * fma(y0, y3, (-i * t)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(c, y0, Float64(Float64(-a) * y1))) * y2) tmp = 0.0 if (c <= -6.4e+157) tmp = Float64(Float64(y4 * fma(b, j, Float64(Float64(-c) * y2))) * t); elseif (c <= -5.5e+51) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (c <= -1.18e-80) tmp = t_1; elseif (c <= -1.4e-282) tmp = Float64(Float64(fma(a, y2, Float64(Float64(-j) * i)) * y5) * t); elseif (c <= 4.4e-234) tmp = Float64(Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))) * k); elseif (c <= 240.0) tmp = Float64(Float64(-a) * Float64(t * fma(b, z, Float64(Float64(-y2) * y5)))); elseif (c <= 6.2e+109) tmp = t_1; elseif (c <= 2.05e+204) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); else tmp = Float64(Float64(-z) * Float64(c * fma(y0, y3, Float64(Float64(-i) * t)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[c, -6.4e+157], N[(N[(y4 * N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, -5.5e+51], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, -1.18e-80], t$95$1, If[LessEqual[c, -1.4e-282], N[(N[(N[(a * y2 + N[((-j) * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, 4.4e-234], N[(N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, 240.0], N[((-a) * N[(t * N[(b * z + N[((-y2) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.2e+109], t$95$1, If[LessEqual[c, 2.05e+204], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[((-z) * N[(c * N[(y0 * y3 + N[((-i) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{if}\;c \leq -6.4 \cdot 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right)\right) \cdot t\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{+51}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;c \leq -1.18 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-282}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, y2, \left(-j\right) \cdot i\right) \cdot y5\right) \cdot t\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-234}:\\
\;\;\;\;\left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot k\\
\mathbf{elif}\;c \leq 240:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+204}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(-z\right) \cdot \left(c \cdot \mathsf{fma}\left(y0, y3, \left(-i\right) \cdot t\right)\right)\\
\end{array}
\end{array}
if c < -6.3999999999999999e157Initial program 15.1%
Taylor expanded in t around inf
Applied rewrites45.1%
Taylor expanded in y4 around inf
Applied rewrites56.0%
if -6.3999999999999999e157 < c < -5.5e51Initial program 27.9%
Taylor expanded in k around inf
Applied rewrites50.2%
Taylor expanded in i around inf
Applied rewrites72.5%
if -5.5e51 < c < -1.18000000000000005e-80 or 240 < c < 6.19999999999999985e109Initial program 44.6%
Taylor expanded in y2 around inf
Applied rewrites54.2%
Taylor expanded in x around inf
Applied rewrites47.6%
if -1.18000000000000005e-80 < c < -1.3999999999999999e-282Initial program 35.9%
Taylor expanded in t around inf
Applied rewrites44.6%
Taylor expanded in y5 around -inf
Applied rewrites52.5%
Applied rewrites52.5%
if -1.3999999999999999e-282 < c < 4.3999999999999998e-234Initial program 39.8%
Taylor expanded in k around inf
Applied rewrites45.4%
Taylor expanded in y2 around inf
Applied rewrites60.6%
if 4.3999999999999998e-234 < c < 240Initial program 24.5%
Taylor expanded in t around inf
Applied rewrites42.2%
Taylor expanded in a around -inf
Applied rewrites46.3%
if 6.19999999999999985e109 < c < 2.04999999999999987e204Initial program 10.9%
Taylor expanded in j around inf
Applied rewrites53.8%
Taylor expanded in b around inf
Applied rewrites74.1%
if 2.04999999999999987e204 < c Initial program 21.1%
Taylor expanded in z around -inf
Applied rewrites58.1%
Taylor expanded in c around inf
Applied rewrites79.2%
Final simplification56.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x (fma c y0 (* (- a) y1))) y2)))
(if (<= c -6.4e+157)
(* (* y4 (fma b j (* (- c) y2))) t)
(if (<= c -5.5e+51)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= c -1.18e-80)
t_1
(if (<= c -1.4e-282)
(* (* (fma a y2 (* (- j) i)) y5) t)
(if (<= c 4.4e-234)
(* (* y2 (fma (- y0) y5 (* y1 y4))) k)
(if (<= c 240.0)
(* (- a) (* t (fma b z (* (- y2) y5))))
(if (<= c 6.2e+109)
t_1
(if (<= c 2.05e+204)
(* (* b (fma t y4 (* (- x) y0))) j)
(* (* c z) (fma i t (* (- y0) y3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * fma(c, y0, (-a * y1))) * y2;
double tmp;
if (c <= -6.4e+157) {
tmp = (y4 * fma(b, j, (-c * y2))) * t;
} else if (c <= -5.5e+51) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (c <= -1.18e-80) {
tmp = t_1;
} else if (c <= -1.4e-282) {
tmp = (fma(a, y2, (-j * i)) * y5) * t;
} else if (c <= 4.4e-234) {
tmp = (y2 * fma(-y0, y5, (y1 * y4))) * k;
} else if (c <= 240.0) {
tmp = -a * (t * fma(b, z, (-y2 * y5)));
} else if (c <= 6.2e+109) {
tmp = t_1;
} else if (c <= 2.05e+204) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else {
tmp = (c * z) * fma(i, t, (-y0 * y3));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * fma(c, y0, Float64(Float64(-a) * y1))) * y2) tmp = 0.0 if (c <= -6.4e+157) tmp = Float64(Float64(y4 * fma(b, j, Float64(Float64(-c) * y2))) * t); elseif (c <= -5.5e+51) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (c <= -1.18e-80) tmp = t_1; elseif (c <= -1.4e-282) tmp = Float64(Float64(fma(a, y2, Float64(Float64(-j) * i)) * y5) * t); elseif (c <= 4.4e-234) tmp = Float64(Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))) * k); elseif (c <= 240.0) tmp = Float64(Float64(-a) * Float64(t * fma(b, z, Float64(Float64(-y2) * y5)))); elseif (c <= 6.2e+109) tmp = t_1; elseif (c <= 2.05e+204) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); else tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[c, -6.4e+157], N[(N[(y4 * N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, -5.5e+51], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, -1.18e-80], t$95$1, If[LessEqual[c, -1.4e-282], N[(N[(N[(a * y2 + N[((-j) * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, 4.4e-234], N[(N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, 240.0], N[((-a) * N[(t * N[(b * z + N[((-y2) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 6.2e+109], t$95$1, If[LessEqual[c, 2.05e+204], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\right) \cdot y2\\
\mathbf{if}\;c \leq -6.4 \cdot 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right)\right) \cdot t\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{+51}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;c \leq -1.18 \cdot 10^{-80}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-282}:\\
\;\;\;\;\left(\mathsf{fma}\left(a, y2, \left(-j\right) \cdot i\right) \cdot y5\right) \cdot t\\
\mathbf{elif}\;c \leq 4.4 \cdot 10^{-234}:\\
\;\;\;\;\left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot k\\
\mathbf{elif}\;c \leq 240:\\
\;\;\;\;\left(-a\right) \cdot \left(t \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right)\\
\mathbf{elif}\;c \leq 6.2 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+204}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\end{array}
\end{array}
if c < -6.3999999999999999e157Initial program 15.1%
Taylor expanded in t around inf
Applied rewrites45.1%
Taylor expanded in y4 around inf
Applied rewrites56.0%
if -6.3999999999999999e157 < c < -5.5e51Initial program 27.9%
Taylor expanded in k around inf
Applied rewrites50.2%
Taylor expanded in i around inf
Applied rewrites72.5%
if -5.5e51 < c < -1.18000000000000005e-80 or 240 < c < 6.19999999999999985e109Initial program 44.6%
Taylor expanded in y2 around inf
Applied rewrites54.2%
Taylor expanded in x around inf
Applied rewrites47.6%
if -1.18000000000000005e-80 < c < -1.3999999999999999e-282Initial program 35.9%
Taylor expanded in t around inf
Applied rewrites44.6%
Taylor expanded in y5 around -inf
Applied rewrites52.5%
Applied rewrites52.5%
if -1.3999999999999999e-282 < c < 4.3999999999999998e-234Initial program 39.8%
Taylor expanded in k around inf
Applied rewrites45.4%
Taylor expanded in y2 around inf
Applied rewrites60.6%
if 4.3999999999999998e-234 < c < 240Initial program 24.5%
Taylor expanded in t around inf
Applied rewrites42.2%
Taylor expanded in a around -inf
Applied rewrites46.3%
if 6.19999999999999985e109 < c < 2.04999999999999987e204Initial program 10.9%
Taylor expanded in j around inf
Applied rewrites53.8%
Taylor expanded in b around inf
Applied rewrites74.1%
if 2.04999999999999987e204 < c Initial program 21.1%
Taylor expanded in z around -inf
Applied rewrites58.1%
Taylor expanded in c around -inf
Applied rewrites74.2%
Final simplification55.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y2 (fma (- y0) y5 (* y1 y4))) k))
(t_2 (* (* (fma a y2 (* (- j) i)) y5) t)))
(if (<= c -6.4e+157)
(* (* y4 (fma b j (* (- c) y2))) t)
(if (<= c -5.5e+42)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= c -4.3e-78)
(* (* x y2) (fma c y0 (* (- a) y1)))
(if (<= c -1.4e-282)
t_2
(if (<= c 1.1e-219)
t_1
(if (<= c 3.9e-99)
t_2
(if (<= c 5.1e+67)
t_1
(if (<= c 2.05e+204)
(* (* b (fma t y4 (* (- x) y0))) j)
(* (* c z) (fma i t (* (- y0) y3)))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y2 * fma(-y0, y5, (y1 * y4))) * k;
double t_2 = (fma(a, y2, (-j * i)) * y5) * t;
double tmp;
if (c <= -6.4e+157) {
tmp = (y4 * fma(b, j, (-c * y2))) * t;
} else if (c <= -5.5e+42) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (c <= -4.3e-78) {
tmp = (x * y2) * fma(c, y0, (-a * y1));
} else if (c <= -1.4e-282) {
tmp = t_2;
} else if (c <= 1.1e-219) {
tmp = t_1;
} else if (c <= 3.9e-99) {
tmp = t_2;
} else if (c <= 5.1e+67) {
tmp = t_1;
} else if (c <= 2.05e+204) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else {
tmp = (c * z) * fma(i, t, (-y0 * y3));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y2 * fma(Float64(-y0), y5, Float64(y1 * y4))) * k) t_2 = Float64(Float64(fma(a, y2, Float64(Float64(-j) * i)) * y5) * t) tmp = 0.0 if (c <= -6.4e+157) tmp = Float64(Float64(y4 * fma(b, j, Float64(Float64(-c) * y2))) * t); elseif (c <= -5.5e+42) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (c <= -4.3e-78) tmp = Float64(Float64(x * y2) * fma(c, y0, Float64(Float64(-a) * y1))); elseif (c <= -1.4e-282) tmp = t_2; elseif (c <= 1.1e-219) tmp = t_1; elseif (c <= 3.9e-99) tmp = t_2; elseif (c <= 5.1e+67) tmp = t_1; elseif (c <= 2.05e+204) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); else tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y2 * N[((-y0) * y5 + N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(a * y2 + N[((-j) * i), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[c, -6.4e+157], N[(N[(y4 * N[(b * j + N[((-c) * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[c, -5.5e+42], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[c, -4.3e-78], N[(N[(x * y2), $MachinePrecision] * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, -1.4e-282], t$95$2, If[LessEqual[c, 1.1e-219], t$95$1, If[LessEqual[c, 3.9e-99], t$95$2, If[LessEqual[c, 5.1e+67], t$95$1, If[LessEqual[c, 2.05e+204], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y2 \cdot \mathsf{fma}\left(-y0, y5, y1 \cdot y4\right)\right) \cdot k\\
t_2 := \left(\mathsf{fma}\left(a, y2, \left(-j\right) \cdot i\right) \cdot y5\right) \cdot t\\
\mathbf{if}\;c \leq -6.4 \cdot 10^{+157}:\\
\;\;\;\;\left(y4 \cdot \mathsf{fma}\left(b, j, \left(-c\right) \cdot y2\right)\right) \cdot t\\
\mathbf{elif}\;c \leq -5.5 \cdot 10^{+42}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;c \leq -4.3 \cdot 10^{-78}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\\
\mathbf{elif}\;c \leq -1.4 \cdot 10^{-282}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 1.1 \cdot 10^{-219}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 3.9 \cdot 10^{-99}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;c \leq 5.1 \cdot 10^{+67}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 2.05 \cdot 10^{+204}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\end{array}
\end{array}
if c < -6.3999999999999999e157Initial program 15.1%
Taylor expanded in t around inf
Applied rewrites45.1%
Taylor expanded in y4 around inf
Applied rewrites56.0%
if -6.3999999999999999e157 < c < -5.50000000000000001e42Initial program 33.4%
Taylor expanded in k around inf
Applied rewrites48.0%
Taylor expanded in i around inf
Applied rewrites67.1%
if -5.50000000000000001e42 < c < -4.29999999999999994e-78Initial program 55.9%
Taylor expanded in y2 around inf
Applied rewrites57.0%
Taylor expanded in x around inf
Applied rewrites45.3%
if -4.29999999999999994e-78 < c < -1.3999999999999999e-282 or 1.1e-219 < c < 3.89999999999999987e-99Initial program 32.2%
Taylor expanded in t around inf
Applied rewrites44.1%
Taylor expanded in y5 around -inf
Applied rewrites49.9%
Applied rewrites49.9%
if -1.3999999999999999e-282 < c < 1.1e-219 or 3.89999999999999987e-99 < c < 5.1000000000000002e67Initial program 32.8%
Taylor expanded in k around inf
Applied rewrites49.8%
Taylor expanded in y2 around inf
Applied rewrites48.3%
if 5.1000000000000002e67 < c < 2.04999999999999987e204Initial program 13.1%
Taylor expanded in j around inf
Applied rewrites46.4%
Taylor expanded in b around inf
Applied rewrites55.9%
if 2.04999999999999987e204 < c Initial program 21.1%
Taylor expanded in z around -inf
Applied rewrites58.1%
Taylor expanded in c around -inf
Applied rewrites74.2%
Final simplification53.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* x y2) (fma c y0 (* (- a) y1)))))
(if (<= y2 -2.2e+32)
t_1
(if (<= y2 1.65e-236)
(* (* b (fma t y4 (* (- x) y0))) j)
(if (<= y2 1.8e-113)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= y2 4.7e+89)
(* (* j y5) (fma y0 y3 (* (- i) t)))
(if (<= y2 4.5e+159)
t_1
(* y1 (* y4 (fma (- j) y3 (* k y2)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y2) * fma(c, y0, (-a * y1));
double tmp;
if (y2 <= -2.2e+32) {
tmp = t_1;
} else if (y2 <= 1.65e-236) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else if (y2 <= 1.8e-113) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (y2 <= 4.7e+89) {
tmp = (j * y5) * fma(y0, y3, (-i * t));
} else if (y2 <= 4.5e+159) {
tmp = t_1;
} else {
tmp = y1 * (y4 * fma(-j, y3, (k * y2)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(x * y2) * fma(c, y0, Float64(Float64(-a) * y1))) tmp = 0.0 if (y2 <= -2.2e+32) tmp = t_1; elseif (y2 <= 1.65e-236) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); elseif (y2 <= 1.8e-113) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (y2 <= 4.7e+89) tmp = Float64(Float64(j * y5) * fma(y0, y3, Float64(Float64(-i) * t))); elseif (y2 <= 4.5e+159) tmp = t_1; else tmp = Float64(y1 * Float64(y4 * fma(Float64(-j), y3, Float64(k * y2)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(x * y2), $MachinePrecision] * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.2e+32], t$95$1, If[LessEqual[y2, 1.65e-236], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 1.8e-113], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.7e+89], N[(N[(j * y5), $MachinePrecision] * N[(y0 * y3 + N[((-i) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 4.5e+159], t$95$1, N[(y1 * N[(y4 * N[((-j) * y3 + N[(k * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(x \cdot y2\right) \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\\
\mathbf{if}\;y2 \leq -2.2 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 1.65 \cdot 10^{-236}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-113}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;y2 \leq 4.7 \cdot 10^{+89}:\\
\;\;\;\;\left(j \cdot y5\right) \cdot \mathsf{fma}\left(y0, y3, \left(-i\right) \cdot t\right)\\
\mathbf{elif}\;y2 \leq 4.5 \cdot 10^{+159}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \mathsf{fma}\left(-j, y3, k \cdot y2\right)\right)\\
\end{array}
\end{array}
if y2 < -2.20000000000000001e32 or 4.70000000000000022e89 < y2 < 4.50000000000000026e159Initial program 27.0%
Taylor expanded in y2 around inf
Applied rewrites65.1%
Taylor expanded in x around inf
Applied rewrites55.9%
if -2.20000000000000001e32 < y2 < 1.6500000000000001e-236Initial program 36.7%
Taylor expanded in j around inf
Applied rewrites37.7%
Taylor expanded in b around inf
Applied rewrites38.9%
if 1.6500000000000001e-236 < y2 < 1.79999999999999987e-113Initial program 29.0%
Taylor expanded in k around inf
Applied rewrites46.8%
Taylor expanded in i around inf
Applied rewrites47.3%
if 1.79999999999999987e-113 < y2 < 4.70000000000000022e89Initial program 27.7%
Taylor expanded in j around inf
Applied rewrites42.3%
Taylor expanded in b around inf
Applied rewrites31.9%
Taylor expanded in y5 around inf
Applied rewrites51.2%
if 4.50000000000000026e159 < y2 Initial program 22.4%
Taylor expanded in y4 around inf
Applied rewrites36.5%
Taylor expanded in y1 around inf
Applied rewrites56.3%
Final simplification48.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (fma (- k) y (* j t))))))
(if (<= i -5.5e+228)
(* i (* z (fma c t (* (- k) y1))))
(if (<= i -7.6e+110)
(* (* j y5) (fma y0 y3 (* (- i) t)))
(if (<= i -9.8e-107)
t_1
(if (<= i 6e-10)
(* (* x y2) (fma c y0 (* (- a) y1)))
(if (<= i 6.4e+109) t_1 (* (fma (- k) z (* j x)) (* i y1)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * fma(-k, y, (j * t)));
double tmp;
if (i <= -5.5e+228) {
tmp = i * (z * fma(c, t, (-k * y1)));
} else if (i <= -7.6e+110) {
tmp = (j * y5) * fma(y0, y3, (-i * t));
} else if (i <= -9.8e-107) {
tmp = t_1;
} else if (i <= 6e-10) {
tmp = (x * y2) * fma(c, y0, (-a * y1));
} else if (i <= 6.4e+109) {
tmp = t_1;
} else {
tmp = fma(-k, z, (j * x)) * (i * y1);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * fma(Float64(-k), y, Float64(j * t)))) tmp = 0.0 if (i <= -5.5e+228) tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1)))); elseif (i <= -7.6e+110) tmp = Float64(Float64(j * y5) * fma(y0, y3, Float64(Float64(-i) * t))); elseif (i <= -9.8e-107) tmp = t_1; elseif (i <= 6e-10) tmp = Float64(Float64(x * y2) * fma(c, y0, Float64(Float64(-a) * y1))); elseif (i <= 6.4e+109) tmp = t_1; else tmp = Float64(fma(Float64(-k), z, Float64(j * x)) * Float64(i * y1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -5.5e+228], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -7.6e+110], N[(N[(j * y5), $MachinePrecision] * N[(y0 * y3 + N[((-i) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -9.8e-107], t$95$1, If[LessEqual[i, 6e-10], N[(N[(x * y2), $MachinePrecision] * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 6.4e+109], t$95$1, N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * N[(i * y1), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \mathsf{fma}\left(-k, y, j \cdot t\right)\right)\\
\mathbf{if}\;i \leq -5.5 \cdot 10^{+228}:\\
\;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
\mathbf{elif}\;i \leq -7.6 \cdot 10^{+110}:\\
\;\;\;\;\left(j \cdot y5\right) \cdot \mathsf{fma}\left(y0, y3, \left(-i\right) \cdot t\right)\\
\mathbf{elif}\;i \leq -9.8 \cdot 10^{-107}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;i \leq 6 \cdot 10^{-10}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\\
\mathbf{elif}\;i \leq 6.4 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(-k, z, j \cdot x\right) \cdot \left(i \cdot y1\right)\\
\end{array}
\end{array}
if i < -5.50000000000000009e228Initial program 34.8%
Taylor expanded in i around -inf
Applied rewrites73.0%
Taylor expanded in z around -inf
Applied rewrites54.8%
if -5.50000000000000009e228 < i < -7.59999999999999978e110Initial program 31.6%
Taylor expanded in j around inf
Applied rewrites47.6%
Taylor expanded in b around inf
Applied rewrites32.9%
Taylor expanded in y5 around inf
Applied rewrites63.9%
if -7.59999999999999978e110 < i < -9.79999999999999959e-107 or 6e-10 < i < 6.4000000000000002e109Initial program 27.3%
Taylor expanded in y4 around inf
Applied rewrites41.7%
Taylor expanded in b around inf
Applied rewrites46.5%
if -9.79999999999999959e-107 < i < 6e-10Initial program 29.2%
Taylor expanded in y2 around inf
Applied rewrites45.0%
Taylor expanded in x around inf
Applied rewrites43.8%
if 6.4000000000000002e109 < i Initial program 31.6%
Taylor expanded in i around -inf
Applied rewrites65.8%
Taylor expanded in y1 around inf
Applied rewrites46.2%
Applied rewrites48.9%
Final simplification47.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* a z) (fma y1 y3 (* b (- t))))))
(if (<= a -6e+85)
t_1
(if (<= a -1.65e-21)
(* (fma (- k) z (* j x)) (* i y1))
(if (<= a -1.2e-260)
(* (* b (* t y4)) j)
(if (<= a 4.1e-166)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= a 6e-5) (* i (* k (fma y y5 (* (- y1) z)))) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * z) * fma(y1, y3, (b * -t));
double tmp;
if (a <= -6e+85) {
tmp = t_1;
} else if (a <= -1.65e-21) {
tmp = fma(-k, z, (j * x)) * (i * y1);
} else if (a <= -1.2e-260) {
tmp = (b * (t * y4)) * j;
} else if (a <= 4.1e-166) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (a <= 6e-5) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * z) * fma(y1, y3, Float64(b * Float64(-t)))) tmp = 0.0 if (a <= -6e+85) tmp = t_1; elseif (a <= -1.65e-21) tmp = Float64(fma(Float64(-k), z, Float64(j * x)) * Float64(i * y1)); elseif (a <= -1.2e-260) tmp = Float64(Float64(b * Float64(t * y4)) * j); elseif (a <= 4.1e-166) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (a <= 6e-5) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * z), $MachinePrecision] * N[(y1 * y3 + N[(b * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6e+85], t$95$1, If[LessEqual[a, -1.65e-21], N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * N[(i * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.2e-260], N[(N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 4.1e-166], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 6e-5], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot z\right) \cdot \mathsf{fma}\left(y1, y3, b \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -6 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-21}:\\
\;\;\;\;\mathsf{fma}\left(-k, z, j \cdot x\right) \cdot \left(i \cdot y1\right)\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-260}:\\
\;\;\;\;\left(b \cdot \left(t \cdot y4\right)\right) \cdot j\\
\mathbf{elif}\;a \leq 4.1 \cdot 10^{-166}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;a \leq 6 \cdot 10^{-5}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -6.0000000000000001e85 or 6.00000000000000015e-5 < a Initial program 24.4%
Taylor expanded in z around -inf
Applied rewrites43.2%
Taylor expanded in a around -inf
Applied rewrites41.7%
if -6.0000000000000001e85 < a < -1.65000000000000004e-21Initial program 24.6%
Taylor expanded in i around -inf
Applied rewrites31.1%
Taylor expanded in y1 around inf
Applied rewrites41.8%
Applied rewrites41.9%
if -1.65000000000000004e-21 < a < -1.2e-260Initial program 29.2%
Taylor expanded in j around inf
Applied rewrites40.6%
Taylor expanded in b around inf
Applied rewrites36.4%
Taylor expanded in x around 0
Applied rewrites32.4%
if -1.2e-260 < a < 4.0999999999999997e-166Initial program 43.1%
Taylor expanded in i around -inf
Applied rewrites51.4%
Taylor expanded in y1 around inf
Applied rewrites25.5%
Taylor expanded in y around -inf
Applied rewrites41.4%
if 4.0999999999999997e-166 < a < 6.00000000000000015e-5Initial program 38.1%
Taylor expanded in k around inf
Applied rewrites54.0%
Taylor expanded in i around inf
Applied rewrites50.8%
Final simplification41.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma (- k) z (* j x))) (t_2 (* (* a z) (fma y1 y3 (* b (- t))))))
(if (<= a -6e+85)
t_2
(if (<= a -1.65e-21)
(* t_1 (* i y1))
(if (<= a -1.2e-260)
(* (* b (* t y4)) j)
(if (<= a 1.7e-252)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= a 0.0027) (* i (* y1 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(-k, z, (j * x));
double t_2 = (a * z) * fma(y1, y3, (b * -t));
double tmp;
if (a <= -6e+85) {
tmp = t_2;
} else if (a <= -1.65e-21) {
tmp = t_1 * (i * y1);
} else if (a <= -1.2e-260) {
tmp = (b * (t * y4)) * j;
} else if (a <= 1.7e-252) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (a <= 0.0027) {
tmp = i * (y1 * t_1);
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(Float64(-k), z, Float64(j * x)) t_2 = Float64(Float64(a * z) * fma(y1, y3, Float64(b * Float64(-t)))) tmp = 0.0 if (a <= -6e+85) tmp = t_2; elseif (a <= -1.65e-21) tmp = Float64(t_1 * Float64(i * y1)); elseif (a <= -1.2e-260) tmp = Float64(Float64(b * Float64(t * y4)) * j); elseif (a <= 1.7e-252) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (a <= 0.0027) tmp = Float64(i * Float64(y1 * t_1)); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * z), $MachinePrecision] * N[(y1 * y3 + N[(b * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -6e+85], t$95$2, If[LessEqual[a, -1.65e-21], N[(t$95$1 * N[(i * y1), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.2e-260], N[(N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[a, 1.7e-252], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 0.0027], N[(i * N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-k, z, j \cdot x\right)\\
t_2 := \left(a \cdot z\right) \cdot \mathsf{fma}\left(y1, y3, b \cdot \left(-t\right)\right)\\
\mathbf{if}\;a \leq -6 \cdot 10^{+85}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;a \leq -1.65 \cdot 10^{-21}:\\
\;\;\;\;t\_1 \cdot \left(i \cdot y1\right)\\
\mathbf{elif}\;a \leq -1.2 \cdot 10^{-260}:\\
\;\;\;\;\left(b \cdot \left(t \cdot y4\right)\right) \cdot j\\
\mathbf{elif}\;a \leq 1.7 \cdot 10^{-252}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;a \leq 0.0027:\\
\;\;\;\;i \cdot \left(y1 \cdot t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if a < -6.0000000000000001e85 or 0.0027000000000000001 < a Initial program 24.6%
Taylor expanded in z around -inf
Applied rewrites43.5%
Taylor expanded in a around -inf
Applied rewrites42.1%
if -6.0000000000000001e85 < a < -1.65000000000000004e-21Initial program 24.6%
Taylor expanded in i around -inf
Applied rewrites31.1%
Taylor expanded in y1 around inf
Applied rewrites41.8%
Applied rewrites41.9%
if -1.65000000000000004e-21 < a < -1.2e-260Initial program 29.2%
Taylor expanded in j around inf
Applied rewrites40.6%
Taylor expanded in b around inf
Applied rewrites36.4%
Taylor expanded in x around 0
Applied rewrites32.4%
if -1.2e-260 < a < 1.7e-252Initial program 41.9%
Taylor expanded in i around -inf
Applied rewrites62.8%
Taylor expanded in y1 around inf
Applied rewrites22.4%
Taylor expanded in y around -inf
Applied rewrites53.5%
if 1.7e-252 < a < 0.0027000000000000001Initial program 39.6%
Taylor expanded in i around -inf
Applied rewrites40.1%
Taylor expanded in y1 around inf
Applied rewrites40.5%
Final simplification40.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -2.2e+32)
(* (* x y2) (fma c y0 (* (- a) y1)))
(if (<= y2 1.65e-236)
(* (* b (fma t y4 (* (- x) y0))) j)
(if (<= y2 1.8e-113)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= y2 8.2e+108)
(* (* j y5) (fma y0 y3 (* (- i) t)))
(* (* y2 (fma k y1 (* (- c) t))) y4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y2 <= -2.2e+32) {
tmp = (x * y2) * fma(c, y0, (-a * y1));
} else if (y2 <= 1.65e-236) {
tmp = (b * fma(t, y4, (-x * y0))) * j;
} else if (y2 <= 1.8e-113) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (y2 <= 8.2e+108) {
tmp = (j * y5) * fma(y0, y3, (-i * t));
} else {
tmp = (y2 * fma(k, y1, (-c * t))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y2 <= -2.2e+32) tmp = Float64(Float64(x * y2) * fma(c, y0, Float64(Float64(-a) * y1))); elseif (y2 <= 1.65e-236) tmp = Float64(Float64(b * fma(t, y4, Float64(Float64(-x) * y0))) * j); elseif (y2 <= 1.8e-113) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (y2 <= 8.2e+108) tmp = Float64(Float64(j * y5) * fma(y0, y3, Float64(Float64(-i) * t))); else tmp = Float64(Float64(y2 * fma(k, y1, Float64(Float64(-c) * t))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -2.2e+32], N[(N[(x * y2), $MachinePrecision] * N[(c * y0 + N[((-a) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.65e-236], N[(N[(b * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 1.8e-113], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 8.2e+108], N[(N[(j * y5), $MachinePrecision] * N[(y0 * y3 + N[((-i) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y2 * N[(k * y1 + N[((-c) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -2.2 \cdot 10^{+32}:\\
\;\;\;\;\left(x \cdot y2\right) \cdot \mathsf{fma}\left(c, y0, \left(-a\right) \cdot y1\right)\\
\mathbf{elif}\;y2 \leq 1.65 \cdot 10^{-236}:\\
\;\;\;\;\left(b \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{elif}\;y2 \leq 1.8 \cdot 10^{-113}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;y2 \leq 8.2 \cdot 10^{+108}:\\
\;\;\;\;\left(j \cdot y5\right) \cdot \mathsf{fma}\left(y0, y3, \left(-i\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y2 \cdot \mathsf{fma}\left(k, y1, \left(-c\right) \cdot t\right)\right) \cdot y4\\
\end{array}
\end{array}
if y2 < -2.20000000000000001e32Initial program 23.6%
Taylor expanded in y2 around inf
Applied rewrites63.9%
Taylor expanded in x around inf
Applied rewrites57.1%
if -2.20000000000000001e32 < y2 < 1.6500000000000001e-236Initial program 36.7%
Taylor expanded in j around inf
Applied rewrites37.7%
Taylor expanded in b around inf
Applied rewrites38.9%
if 1.6500000000000001e-236 < y2 < 1.79999999999999987e-113Initial program 29.0%
Taylor expanded in k around inf
Applied rewrites46.8%
Taylor expanded in i around inf
Applied rewrites47.3%
if 1.79999999999999987e-113 < y2 < 8.1999999999999998e108Initial program 26.8%
Taylor expanded in j around inf
Applied rewrites44.6%
Taylor expanded in b around inf
Applied rewrites33.2%
Taylor expanded in y5 around inf
Applied rewrites49.9%
if 8.1999999999999998e108 < y2 Initial program 28.1%
Taylor expanded in y4 around inf
Applied rewrites34.4%
Taylor expanded in y2 around inf
Applied rewrites48.8%
Final simplification47.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -2.35e-63)
(* (* j y4) (fma b t (* (- y1) y3)))
(if (<= j -1.2e-302)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= j 6.2e-64)
(* (* a z) (fma y1 y3 (* b (- t))))
(if (<= j 2.95e+118)
(* (* c z) (fma i t (* (- y0) y3)))
(* (* j y5) (fma y0 y3 (* (- i) t))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -2.35e-63) {
tmp = (j * y4) * fma(b, t, (-y1 * y3));
} else if (j <= -1.2e-302) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (j <= 6.2e-64) {
tmp = (a * z) * fma(y1, y3, (b * -t));
} else if (j <= 2.95e+118) {
tmp = (c * z) * fma(i, t, (-y0 * y3));
} else {
tmp = (j * y5) * fma(y0, y3, (-i * t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -2.35e-63) tmp = Float64(Float64(j * y4) * fma(b, t, Float64(Float64(-y1) * y3))); elseif (j <= -1.2e-302) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (j <= 6.2e-64) tmp = Float64(Float64(a * z) * fma(y1, y3, Float64(b * Float64(-t)))); elseif (j <= 2.95e+118) tmp = Float64(Float64(c * z) * fma(i, t, Float64(Float64(-y0) * y3))); else tmp = Float64(Float64(j * y5) * fma(y0, y3, Float64(Float64(-i) * t))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -2.35e-63], N[(N[(j * y4), $MachinePrecision] * N[(b * t + N[((-y1) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2e-302], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.2e-64], N[(N[(a * z), $MachinePrecision] * N[(y1 * y3 + N[(b * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.95e+118], N[(N[(c * z), $MachinePrecision] * N[(i * t + N[((-y0) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(j * y5), $MachinePrecision] * N[(y0 * y3 + N[((-i) * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.35 \cdot 10^{-63}:\\
\;\;\;\;\left(j \cdot y4\right) \cdot \mathsf{fma}\left(b, t, \left(-y1\right) \cdot y3\right)\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-302}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;j \leq 6.2 \cdot 10^{-64}:\\
\;\;\;\;\left(a \cdot z\right) \cdot \mathsf{fma}\left(y1, y3, b \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq 2.95 \cdot 10^{+118}:\\
\;\;\;\;\left(c \cdot z\right) \cdot \mathsf{fma}\left(i, t, \left(-y0\right) \cdot y3\right)\\
\mathbf{else}:\\
\;\;\;\;\left(j \cdot y5\right) \cdot \mathsf{fma}\left(y0, y3, \left(-i\right) \cdot t\right)\\
\end{array}
\end{array}
if j < -2.35e-63Initial program 27.6%
Taylor expanded in j around inf
Applied rewrites42.0%
Taylor expanded in b around inf
Applied rewrites31.3%
Taylor expanded in y4 around inf
Applied rewrites41.3%
if -2.35e-63 < j < -1.20000000000000011e-302Initial program 42.6%
Taylor expanded in i around -inf
Applied rewrites45.7%
Taylor expanded in y1 around inf
Applied rewrites20.3%
Taylor expanded in y around -inf
Applied rewrites43.1%
if -1.20000000000000011e-302 < j < 6.20000000000000049e-64Initial program 33.3%
Taylor expanded in z around -inf
Applied rewrites43.7%
Taylor expanded in a around -inf
Applied rewrites42.1%
if 6.20000000000000049e-64 < j < 2.9499999999999999e118Initial program 31.3%
Taylor expanded in z around -inf
Applied rewrites53.5%
Taylor expanded in c around -inf
Applied rewrites47.5%
if 2.9499999999999999e118 < j Initial program 16.8%
Taylor expanded in j around inf
Applied rewrites52.1%
Taylor expanded in b around inf
Applied rewrites34.6%
Taylor expanded in y5 around inf
Applied rewrites46.8%
Final simplification43.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -2.35e-63)
(* (* j y4) (fma b t (* (- y1) y3)))
(if (<= j -1.2e-302)
(* (* i y) (fma k y5 (* (- c) x)))
(if (<= j 7.6e-98)
(* (* a z) (fma y1 y3 (* b (- t))))
(if (<= j 1.3e+175)
(* i (* k (fma y y5 (* (- y1) z))))
(* (- (* (* i j) y5)) t))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -2.35e-63) {
tmp = (j * y4) * fma(b, t, (-y1 * y3));
} else if (j <= -1.2e-302) {
tmp = (i * y) * fma(k, y5, (-c * x));
} else if (j <= 7.6e-98) {
tmp = (a * z) * fma(y1, y3, (b * -t));
} else if (j <= 1.3e+175) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else {
tmp = -((i * j) * y5) * t;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -2.35e-63) tmp = Float64(Float64(j * y4) * fma(b, t, Float64(Float64(-y1) * y3))); elseif (j <= -1.2e-302) tmp = Float64(Float64(i * y) * fma(k, y5, Float64(Float64(-c) * x))); elseif (j <= 7.6e-98) tmp = Float64(Float64(a * z) * fma(y1, y3, Float64(b * Float64(-t)))); elseif (j <= 1.3e+175) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); else tmp = Float64(Float64(-Float64(Float64(i * j) * y5)) * t); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -2.35e-63], N[(N[(j * y4), $MachinePrecision] * N[(b * t + N[((-y1) * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.2e-302], N[(N[(i * y), $MachinePrecision] * N[(k * y5 + N[((-c) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 7.6e-98], N[(N[(a * z), $MachinePrecision] * N[(y1 * y3 + N[(b * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.3e+175], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[((-N[(N[(i * j), $MachinePrecision] * y5), $MachinePrecision]) * t), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.35 \cdot 10^{-63}:\\
\;\;\;\;\left(j \cdot y4\right) \cdot \mathsf{fma}\left(b, t, \left(-y1\right) \cdot y3\right)\\
\mathbf{elif}\;j \leq -1.2 \cdot 10^{-302}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(k, y5, \left(-c\right) \cdot x\right)\\
\mathbf{elif}\;j \leq 7.6 \cdot 10^{-98}:\\
\;\;\;\;\left(a \cdot z\right) \cdot \mathsf{fma}\left(y1, y3, b \cdot \left(-t\right)\right)\\
\mathbf{elif}\;j \leq 1.3 \cdot 10^{+175}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(-\left(i \cdot j\right) \cdot y5\right) \cdot t\\
\end{array}
\end{array}
if j < -2.35e-63Initial program 27.6%
Taylor expanded in j around inf
Applied rewrites42.0%
Taylor expanded in b around inf
Applied rewrites31.3%
Taylor expanded in y4 around inf
Applied rewrites41.3%
if -2.35e-63 < j < -1.20000000000000011e-302Initial program 42.6%
Taylor expanded in i around -inf
Applied rewrites45.7%
Taylor expanded in y1 around inf
Applied rewrites20.3%
Taylor expanded in y around -inf
Applied rewrites43.1%
if -1.20000000000000011e-302 < j < 7.6000000000000006e-98Initial program 31.1%
Taylor expanded in z around -inf
Applied rewrites42.8%
Taylor expanded in a around -inf
Applied rewrites41.0%
if 7.6000000000000006e-98 < j < 1.3e175Initial program 28.1%
Taylor expanded in k around inf
Applied rewrites51.4%
Taylor expanded in i around inf
Applied rewrites42.9%
if 1.3e175 < j Initial program 17.5%
Taylor expanded in t around inf
Applied rewrites52.4%
Taylor expanded in y5 around -inf
Applied rewrites59.5%
Taylor expanded in a around 0
Applied rewrites46.0%
Final simplification42.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -2.02e+232)
(* (* k y4) (fma y1 y2 (* b (- y))))
(if (or (<= b -7.2e-19) (not (<= b 2.1e-66)))
(* (* a z) (fma y1 y3 (* b (- t))))
(* i (* k (fma y y5 (* (- y1) z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -2.02e+232) {
tmp = (k * y4) * fma(y1, y2, (b * -y));
} else if ((b <= -7.2e-19) || !(b <= 2.1e-66)) {
tmp = (a * z) * fma(y1, y3, (b * -t));
} else {
tmp = i * (k * fma(y, y5, (-y1 * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -2.02e+232) tmp = Float64(Float64(k * y4) * fma(y1, y2, Float64(b * Float64(-y)))); elseif ((b <= -7.2e-19) || !(b <= 2.1e-66)) tmp = Float64(Float64(a * z) * fma(y1, y3, Float64(b * Float64(-t)))); else tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -2.02e+232], N[(N[(k * y4), $MachinePrecision] * N[(y1 * y2 + N[(b * (-y)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Or[LessEqual[b, -7.2e-19], N[Not[LessEqual[b, 2.1e-66]], $MachinePrecision]], N[(N[(a * z), $MachinePrecision] * N[(y1 * y3 + N[(b * (-t)), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -2.02 \cdot 10^{+232}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \mathsf{fma}\left(y1, y2, b \cdot \left(-y\right)\right)\\
\mathbf{elif}\;b \leq -7.2 \cdot 10^{-19} \lor \neg \left(b \leq 2.1 \cdot 10^{-66}\right):\\
\;\;\;\;\left(a \cdot z\right) \cdot \mathsf{fma}\left(y1, y3, b \cdot \left(-t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\end{array}
\end{array}
if b < -2.0200000000000001e232Initial program 11.6%
Taylor expanded in k around inf
Applied rewrites39.6%
Taylor expanded in i around inf
Applied rewrites22.9%
Taylor expanded in y4 around inf
Applied rewrites78.9%
if -2.0200000000000001e232 < b < -7.2000000000000002e-19 or 2.1e-66 < b Initial program 20.4%
Taylor expanded in z around -inf
Applied rewrites42.4%
Taylor expanded in a around -inf
Applied rewrites42.0%
if -7.2000000000000002e-19 < b < 2.1e-66Initial program 41.8%
Taylor expanded in k around inf
Applied rewrites37.5%
Taylor expanded in i around inf
Applied rewrites31.3%
Final simplification39.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= x -3.2e+99)
(* (* b (* (- x) y0)) j)
(if (<= x 8.5e-8)
(* i (* z (fma c t (* (- k) y1))))
(* i (* y1 (fma (- k) z (* j x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (x <= -3.2e+99) {
tmp = (b * (-x * y0)) * j;
} else if (x <= 8.5e-8) {
tmp = i * (z * fma(c, t, (-k * y1)));
} else {
tmp = i * (y1 * fma(-k, z, (j * x)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (x <= -3.2e+99) tmp = Float64(Float64(b * Float64(Float64(-x) * y0)) * j); elseif (x <= 8.5e-8) tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1)))); else tmp = Float64(i * Float64(y1 * fma(Float64(-k), z, Float64(j * x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[x, -3.2e+99], N[(N[(b * N[((-x) * y0), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[x, 8.5e-8], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y1 * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \leq -3.2 \cdot 10^{+99}:\\
\;\;\;\;\left(b \cdot \left(\left(-x\right) \cdot y0\right)\right) \cdot j\\
\mathbf{elif}\;x \leq 8.5 \cdot 10^{-8}:\\
\;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)\\
\end{array}
\end{array}
if x < -3.19999999999999999e99Initial program 21.7%
Taylor expanded in j around inf
Applied rewrites44.3%
Taylor expanded in b around inf
Applied rewrites52.7%
Taylor expanded in x around inf
Applied rewrites42.4%
if -3.19999999999999999e99 < x < 8.49999999999999935e-8Initial program 37.0%
Taylor expanded in i around -inf
Applied rewrites38.2%
Taylor expanded in z around -inf
Applied rewrites33.2%
if 8.49999999999999935e-8 < x Initial program 19.7%
Taylor expanded in i around -inf
Applied rewrites35.4%
Taylor expanded in y1 around inf
Applied rewrites32.6%
Final simplification34.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* a (* y2 y5)) t)))
(if (<= a -1.45e+109)
t_1
(if (<= a 1.15e+21)
(* i (* y1 (fma (- k) z (* j x))))
(if (<= a 1.3e+193) (* i (* (* k y) y5)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * (y2 * y5)) * t;
double tmp;
if (a <= -1.45e+109) {
tmp = t_1;
} else if (a <= 1.15e+21) {
tmp = i * (y1 * fma(-k, z, (j * x)));
} else if (a <= 1.3e+193) {
tmp = i * ((k * y) * y5);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * Float64(y2 * y5)) * t) tmp = 0.0 if (a <= -1.45e+109) tmp = t_1; elseif (a <= 1.15e+21) tmp = Float64(i * Float64(y1 * fma(Float64(-k), z, Float64(j * x)))); elseif (a <= 1.3e+193) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[a, -1.45e+109], t$95$1, If[LessEqual[a, 1.15e+21], N[(i * N[(y1 * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.3e+193], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot \left(y2 \cdot y5\right)\right) \cdot t\\
\mathbf{if}\;a \leq -1.45 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;a \leq 1.15 \cdot 10^{+21}:\\
\;\;\;\;i \cdot \left(y1 \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right)\\
\mathbf{elif}\;a \leq 1.3 \cdot 10^{+193}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if a < -1.45e109 or 1.30000000000000007e193 < a Initial program 27.6%
Taylor expanded in t around inf
Applied rewrites46.7%
Taylor expanded in y5 around -inf
Applied rewrites45.8%
Taylor expanded in a around inf
Applied rewrites36.8%
if -1.45e109 < a < 1.15e21Initial program 33.5%
Taylor expanded in i around -inf
Applied rewrites39.0%
Taylor expanded in y1 around inf
Applied rewrites30.7%
if 1.15e21 < a < 1.30000000000000007e193Initial program 14.8%
Taylor expanded in k around inf
Applied rewrites37.7%
Taylor expanded in i around inf
Applied rewrites37.7%
Taylor expanded in y around inf
Applied rewrites38.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* a (* y2 y5)) t)))
(if (<= y2 -5.7e+31)
t_1
(if (<= y2 8e-285)
(* (* b (* t y4)) j)
(if (<= y2 3.2e+37) (* i (* (* k y) y5)) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * (y2 * y5)) * t;
double tmp;
if (y2 <= -5.7e+31) {
tmp = t_1;
} else if (y2 <= 8e-285) {
tmp = (b * (t * y4)) * j;
} else if (y2 <= 3.2e+37) {
tmp = i * ((k * y) * y5);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = (a * (y2 * y5)) * t
if (y2 <= (-5.7d+31)) then
tmp = t_1
else if (y2 <= 8d-285) then
tmp = (b * (t * y4)) * j
else if (y2 <= 3.2d+37) then
tmp = i * ((k * y) * y5)
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (a * (y2 * y5)) * t;
double tmp;
if (y2 <= -5.7e+31) {
tmp = t_1;
} else if (y2 <= 8e-285) {
tmp = (b * (t * y4)) * j;
} else if (y2 <= 3.2e+37) {
tmp = i * ((k * y) * y5);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (a * (y2 * y5)) * t tmp = 0 if y2 <= -5.7e+31: tmp = t_1 elif y2 <= 8e-285: tmp = (b * (t * y4)) * j elif y2 <= 3.2e+37: tmp = i * ((k * y) * y5) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * Float64(y2 * y5)) * t) tmp = 0.0 if (y2 <= -5.7e+31) tmp = t_1; elseif (y2 <= 8e-285) tmp = Float64(Float64(b * Float64(t * y4)) * j); elseif (y2 <= 3.2e+37) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (a * (y2 * y5)) * t; tmp = 0.0; if (y2 <= -5.7e+31) tmp = t_1; elseif (y2 <= 8e-285) tmp = (b * (t * y4)) * j; elseif (y2 <= 3.2e+37) tmp = i * ((k * y) * y5); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * N[(y2 * y5), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]}, If[LessEqual[y2, -5.7e+31], t$95$1, If[LessEqual[y2, 8e-285], N[(N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y2, 3.2e+37], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot \left(y2 \cdot y5\right)\right) \cdot t\\
\mathbf{if}\;y2 \leq -5.7 \cdot 10^{+31}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 8 \cdot 10^{-285}:\\
\;\;\;\;\left(b \cdot \left(t \cdot y4\right)\right) \cdot j\\
\mathbf{elif}\;y2 \leq 3.2 \cdot 10^{+37}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -5.7e31 or 3.20000000000000014e37 < y2 Initial program 24.7%
Taylor expanded in t around inf
Applied rewrites42.2%
Taylor expanded in y5 around -inf
Applied rewrites34.8%
Taylor expanded in a around inf
Applied rewrites32.4%
if -5.7e31 < y2 < 8.00000000000000059e-285Initial program 37.9%
Taylor expanded in j around inf
Applied rewrites42.8%
Taylor expanded in b around inf
Applied rewrites40.1%
Taylor expanded in x around 0
Applied rewrites28.7%
if 8.00000000000000059e-285 < y2 < 3.20000000000000014e37Initial program 30.9%
Taylor expanded in k around inf
Applied rewrites43.9%
Taylor expanded in i around inf
Applied rewrites36.6%
Taylor expanded in y around inf
Applied rewrites30.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= k -2.7e+39) (not (<= k 3.5e+56))) (* i (* (* k y) y5)) (* (* b (* t y4)) j)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((k <= -2.7e+39) || !(k <= 3.5e+56)) {
tmp = i * ((k * y) * y5);
} else {
tmp = (b * (t * y4)) * j;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((k <= (-2.7d+39)) .or. (.not. (k <= 3.5d+56))) then
tmp = i * ((k * y) * y5)
else
tmp = (b * (t * y4)) * 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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((k <= -2.7e+39) || !(k <= 3.5e+56)) {
tmp = i * ((k * y) * y5);
} else {
tmp = (b * (t * y4)) * j;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (k <= -2.7e+39) or not (k <= 3.5e+56): tmp = i * ((k * y) * y5) else: tmp = (b * (t * y4)) * j return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((k <= -2.7e+39) || !(k <= 3.5e+56)) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = Float64(Float64(b * Float64(t * y4)) * j); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((k <= -2.7e+39) || ~((k <= 3.5e+56))) tmp = i * ((k * y) * y5); else tmp = (b * (t * y4)) * j; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[k, -2.7e+39], N[Not[LessEqual[k, 3.5e+56]], $MachinePrecision]], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(N[(b * N[(t * y4), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -2.7 \cdot 10^{+39} \lor \neg \left(k \leq 3.5 \cdot 10^{+56}\right):\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(b \cdot \left(t \cdot y4\right)\right) \cdot j\\
\end{array}
\end{array}
if k < -2.70000000000000003e39 or 3.49999999999999999e56 < k Initial program 27.1%
Taylor expanded in k around inf
Applied rewrites54.8%
Taylor expanded in i around inf
Applied rewrites42.9%
Taylor expanded in y around inf
Applied rewrites36.5%
if -2.70000000000000003e39 < k < 3.49999999999999999e56Initial program 31.7%
Taylor expanded in j around inf
Applied rewrites40.9%
Taylor expanded in b around inf
Applied rewrites31.4%
Taylor expanded in x around 0
Applied rewrites21.6%
Final simplification27.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= k -1.52) (not (<= k 1.06e+55))) (* i (* (* k y) y5)) (* i (* (* j x) y1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((k <= -1.52) || !(k <= 1.06e+55)) {
tmp = i * ((k * y) * y5);
} else {
tmp = i * ((j * x) * y1);
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if ((k <= (-1.52d0)) .or. (.not. (k <= 1.06d+55))) then
tmp = i * ((k * y) * y5)
else
tmp = i * ((j * x) * y1)
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((k <= -1.52) || !(k <= 1.06e+55)) {
tmp = i * ((k * y) * y5);
} else {
tmp = i * ((j * x) * y1);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (k <= -1.52) or not (k <= 1.06e+55): tmp = i * ((k * y) * y5) else: tmp = i * ((j * x) * y1) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((k <= -1.52) || !(k <= 1.06e+55)) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = Float64(i * Float64(Float64(j * x) * y1)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if ((k <= -1.52) || ~((k <= 1.06e+55))) tmp = i * ((k * y) * y5); else tmp = i * ((j * x) * y1); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[k, -1.52], N[Not[LessEqual[k, 1.06e+55]], $MachinePrecision]], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -1.52 \lor \neg \left(k \leq 1.06 \cdot 10^{+55}\right):\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(j \cdot x\right) \cdot y1\right)\\
\end{array}
\end{array}
if k < -1.52 or 1.06000000000000004e55 < k Initial program 26.0%
Taylor expanded in k around inf
Applied rewrites52.5%
Taylor expanded in i around inf
Applied rewrites40.6%
Taylor expanded in y around inf
Applied rewrites34.7%
if -1.52 < k < 1.06000000000000004e55Initial program 33.0%
Taylor expanded in i around -inf
Applied rewrites34.2%
Taylor expanded in y1 around inf
Applied rewrites20.1%
Taylor expanded in x around inf
Applied rewrites17.9%
Final simplification25.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* (* j x) y1)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * ((j * x) * y1);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * ((j * x) * y1)
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * ((j * x) * y1);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * ((j * x) * y1)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(Float64(j * x) * y1)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * ((j * x) * y1); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(N[(j * x), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(\left(j \cdot x\right) \cdot y1\right)
\end{array}
Initial program 29.8%
Taylor expanded in i around -inf
Applied rewrites34.6%
Taylor expanded in y1 around inf
Applied rewrites24.0%
Taylor expanded in x around inf
Applied rewrites14.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
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), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
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 k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2025019
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< y4 -7206256231996481000000000000000000000000000000000000000000000) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3364603505246317/1000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -3000016263921529/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 1343792624811499/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 29872667587737/6250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 4570448308253367/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))