
(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 31 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 (fma (- k) y (* j t))) (t_2 (fma (- c) i (* b a))))
(if (<= y5 -7.5e+97)
(*
(- y5)
(-
(fma (fma (- j) y3 (* y2 k)) y0 (* t_1 i))
(* (fma (- y) y3 (* y2 t)) a)))
(if (<= y5 -4.5e-91)
(*
(-
(fma (- z) t_2 (* (fma (- i) y5 (* y4 b)) j))
(* (fma (- a) y5 (* y4 c)) y2))
t)
(if (<= y5 -3.5e-238)
(*
(-
(fma (fma (- t) z (* y x)) a (* t_1 y4))
(* (fma (- k) z (* j x)) y0))
b)
(if (<= y5 9.8e-235)
(*
y0
(fma
x
(fma c y2 (* (- b) j))
(/
(*
x
(+
(fma (- a) (* y1 y2) (* y (fma (- c) i (* a b))))
(* (* i j) y1)))
y0)))
(if (<= y5 1.05e+215)
(*
(- z)
(-
(fma (fma (- a) y1 (* y0 c)) y3 (* t_2 t))
(* (fma (- i) y1 (* y0 b)) k)))
(* (* a y5) (fma (- y) y3 (* t 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 = fma(-k, y, (j * t));
double t_2 = fma(-c, i, (b * a));
double tmp;
if (y5 <= -7.5e+97) {
tmp = -y5 * (fma(fma(-j, y3, (y2 * k)), y0, (t_1 * i)) - (fma(-y, y3, (y2 * t)) * a));
} else if (y5 <= -4.5e-91) {
tmp = (fma(-z, t_2, (fma(-i, y5, (y4 * b)) * j)) - (fma(-a, y5, (y4 * c)) * y2)) * t;
} else if (y5 <= -3.5e-238) {
tmp = (fma(fma(-t, z, (y * x)), a, (t_1 * y4)) - (fma(-k, z, (j * x)) * y0)) * b;
} else if (y5 <= 9.8e-235) {
tmp = y0 * fma(x, fma(c, y2, (-b * j)), ((x * (fma(-a, (y1 * y2), (y * fma(-c, i, (a * b)))) + ((i * j) * y1))) / y0));
} else if (y5 <= 1.05e+215) {
tmp = -z * (fma(fma(-a, y1, (y0 * c)), y3, (t_2 * t)) - (fma(-i, y1, (y0 * b)) * k));
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
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 = fma(Float64(-c), i, Float64(b * a)) tmp = 0.0 if (y5 <= -7.5e+97) tmp = Float64(Float64(-y5) * Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y0, Float64(t_1 * i)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * a))); elseif (y5 <= -4.5e-91) tmp = Float64(Float64(fma(Float64(-z), t_2, Float64(fma(Float64(-i), y5, Float64(y4 * b)) * j)) - Float64(fma(Float64(-a), y5, Float64(y4 * c)) * y2)) * t); elseif (y5 <= -3.5e-238) tmp = Float64(Float64(fma(fma(Float64(-t), z, Float64(y * x)), a, Float64(t_1 * y4)) - Float64(fma(Float64(-k), z, Float64(j * x)) * y0)) * b); elseif (y5 <= 9.8e-235) tmp = Float64(y0 * fma(x, fma(c, y2, Float64(Float64(-b) * j)), Float64(Float64(x * Float64(fma(Float64(-a), Float64(y1 * y2), Float64(y * fma(Float64(-c), i, Float64(a * b)))) + Float64(Float64(i * j) * y1))) / y0))); elseif (y5 <= 1.05e+215) tmp = Float64(Float64(-z) * Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y3, Float64(t_2 * t)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * k))); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * 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[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -7.5e+97], N[((-y5) * N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -4.5e-91], N[(N[(N[((-z) * t$95$2 + N[(N[((-i) * y5 + N[(y4 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] - N[(N[((-a) * y5 + N[(y4 * c), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y5, -3.5e-238], N[(N[(N[(N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 9.8e-235], N[(y0 * N[(x * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision] + N[(N[(x * N[(N[((-a) * N[(y1 * y2), $MachinePrecision] + N[(y * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * j), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.05e+215], N[((-z) * N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y3 + N[(t$95$2 * t), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
t_2 := \mathsf{fma}\left(-c, i, b \cdot a\right)\\
\mathbf{if}\;y5 \leq -7.5 \cdot 10^{+97}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -4.5 \cdot 10^{-91}:\\
\;\;\;\;\left(\mathsf{fma}\left(-z, t\_2, \mathsf{fma}\left(-i, y5, y4 \cdot b\right) \cdot j\right) - \mathsf{fma}\left(-a, y5, y4 \cdot c\right) \cdot y2\right) \cdot t\\
\mathbf{elif}\;y5 \leq -3.5 \cdot 10^{-238}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-t, z, y \cdot x\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 9.8 \cdot 10^{-235}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(x, \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right), \frac{x \cdot \left(\mathsf{fma}\left(-a, y1 \cdot y2, y \cdot \mathsf{fma}\left(-c, i, a \cdot b\right)\right) + \left(i \cdot j\right) \cdot y1\right)}{y0}\right)\\
\mathbf{elif}\;y5 \leq 1.05 \cdot 10^{+215}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y3, t\_2 \cdot t\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -7.5000000000000004e97Initial program 19.5%
Taylor expanded in y5 around -inf
Applied rewrites76.3%
if -7.5000000000000004e97 < y5 < -4.49999999999999976e-91Initial program 29.8%
Taylor expanded in t around inf
Applied rewrites54.4%
if -4.49999999999999976e-91 < y5 < -3.49999999999999997e-238Initial program 36.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
if -3.49999999999999997e-238 < y5 < 9.79999999999999931e-235Initial program 36.3%
Taylor expanded in x around inf
Applied rewrites55.5%
Taylor expanded in y0 around inf
Applied rewrites30.3%
Taylor expanded in y0 around inf
Applied rewrites61.6%
if 9.79999999999999931e-235 < y5 < 1.0500000000000001e215Initial program 27.1%
Taylor expanded in z around -inf
Applied rewrites57.1%
if 1.0500000000000001e215 < y5 Initial program 12.5%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites63.1%
Final simplification61.9%
(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
(*
(- z)
(-
(fma (fma (- a) y1 (* y0 c)) y3 (* (fma (- c) i (* b a)) t))
(* (fma (- i) y1 (* y0 b)) k))))))
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 = -z * (fma(fma(-a, y1, (y0 * c)), y3, (fma(-c, i, (b * a)) * t)) - (fma(-i, y1, (y0 * b)) * k));
}
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(-z) * Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y3, Float64(fma(Float64(-c), i, Float64(b * a)) * t)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * k))); 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[((-z) * N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y3 + N[(N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $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(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y3, \mathsf{fma}\left(-c, i, b \cdot a\right) \cdot t\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot k\right)\\
\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 92.3%
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 z around -inf
Applied rewrites41.7%
(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 (fma (- t) z (* y x)))
(t_3 (fma (- k) z (* j x)))
(t_4 (* (- i) (- (fma t_2 c (* t_1 y5)) (* t_3 y1)))))
(if (<= y5 -1.9e+24)
(*
(- y5)
(-
(fma (fma (- j) y3 (* y2 k)) y0 (* t_1 i))
(* (fma (- y) y3 (* y2 t)) a)))
(if (<= y5 -2.6e-232)
(* (- (fma t_2 a (* t_1 y4)) (* t_3 y0)) b)
(if (<= y5 2.7e-62)
(*
(-
(fma (fma (- a) y1 (* y0 c)) y2 (* (fma (- c) i (* b a)) y))
(* (fma (- i) y1 (* y0 b)) j))
x)
(if (<= y5 1.7e+45)
t_4
(if (<= y5 1.6e+131)
(* (* a (fma (- y1) y2 (* b y))) x)
(if (<= y5 4.8e+267)
t_4
(* (* a y5) (fma (- y) y3 (* t 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 = fma(-k, y, (j * t));
double t_2 = fma(-t, z, (y * x));
double t_3 = fma(-k, z, (j * x));
double t_4 = -i * (fma(t_2, c, (t_1 * y5)) - (t_3 * y1));
double tmp;
if (y5 <= -1.9e+24) {
tmp = -y5 * (fma(fma(-j, y3, (y2 * k)), y0, (t_1 * i)) - (fma(-y, y3, (y2 * t)) * a));
} else if (y5 <= -2.6e-232) {
tmp = (fma(t_2, a, (t_1 * y4)) - (t_3 * y0)) * b;
} else if (y5 <= 2.7e-62) {
tmp = (fma(fma(-a, y1, (y0 * c)), y2, (fma(-c, i, (b * a)) * y)) - (fma(-i, y1, (y0 * b)) * j)) * x;
} else if (y5 <= 1.7e+45) {
tmp = t_4;
} else if (y5 <= 1.6e+131) {
tmp = (a * fma(-y1, y2, (b * y))) * x;
} else if (y5 <= 4.8e+267) {
tmp = t_4;
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
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 = fma(Float64(-t), z, Float64(y * x)) t_3 = fma(Float64(-k), z, Float64(j * x)) t_4 = Float64(Float64(-i) * Float64(fma(t_2, c, Float64(t_1 * y5)) - Float64(t_3 * y1))) tmp = 0.0 if (y5 <= -1.9e+24) tmp = Float64(Float64(-y5) * Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y0, Float64(t_1 * i)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * a))); elseif (y5 <= -2.6e-232) tmp = Float64(Float64(fma(t_2, a, Float64(t_1 * y4)) - Float64(t_3 * y0)) * b); elseif (y5 <= 2.7e-62) tmp = Float64(Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y2, Float64(fma(Float64(-c), i, Float64(b * a)) * y)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * j)) * x); elseif (y5 <= 1.7e+45) tmp = t_4; elseif (y5 <= 1.6e+131) tmp = Float64(Float64(a * fma(Float64(-y1), y2, Float64(b * y))) * x); elseif (y5 <= 4.8e+267) tmp = t_4; else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * 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[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[((-i) * N[(N[(t$95$2 * c + N[(t$95$1 * y5), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+24], N[((-y5) * N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.6e-232], N[(N[(N[(t$95$2 * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 2.7e-62], N[(N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.7e+45], t$95$4, If[LessEqual[y5, 1.6e+131], N[(N[(a * N[((-y1) * y2 + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 4.8e+267], t$95$4, N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
t_2 := \mathsf{fma}\left(-t, z, y \cdot x\right)\\
t_3 := \mathsf{fma}\left(-k, z, j \cdot x\right)\\
t_4 := \left(-i\right) \cdot \left(\mathsf{fma}\left(t\_2, c, t\_1 \cdot y5\right) - t\_3 \cdot y1\right)\\
\mathbf{if}\;y5 \leq -1.9 \cdot 10^{+24}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-232}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, a, t\_1 \cdot y4\right) - t\_3 \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 2.7 \cdot 10^{-62}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y2, \mathsf{fma}\left(-c, i, b \cdot a\right) \cdot y\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.7 \cdot 10^{+45}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y5 \leq 1.6 \cdot 10^{+131}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(-y1, y2, b \cdot y\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq 4.8 \cdot 10^{+267}:\\
\;\;\;\;t\_4\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -1.90000000000000008e24Initial program 22.0%
Taylor expanded in y5 around -inf
Applied rewrites66.5%
if -1.90000000000000008e24 < y5 < -2.59999999999999996e-232Initial program 32.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.0%
if -2.59999999999999996e-232 < y5 < 2.70000000000000019e-62Initial program 30.8%
Taylor expanded in x around inf
Applied rewrites50.5%
if 2.70000000000000019e-62 < y5 < 1.7e45 or 1.6000000000000001e131 < y5 < 4.79999999999999969e267Initial program 32.1%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites62.4%
if 1.7e45 < y5 < 1.6000000000000001e131Initial program 9.5%
Taylor expanded in x around inf
Applied rewrites57.5%
Taylor expanded in y0 around inf
Applied rewrites20.4%
Taylor expanded in a around inf
Applied rewrites67.6%
if 4.79999999999999969e267 < y5 Initial program 9.1%
Taylor expanded in y5 around -inf
Applied rewrites54.5%
Taylor expanded in a around inf
Applied rewrites73.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma (- c) i (* b a))) (t_2 (fma (- y) y3 (* y2 t))))
(if (<= y5 -7.5e+97)
(*
(- y5)
(-
(fma (fma (- j) y3 (* y2 k)) y0 (* (fma (- k) y (* j t)) i))
(* t_2 a)))
(if (<= y5 -2.35e-111)
(*
(-
(fma (- z) t_1 (* (fma (- i) y5 (* y4 b)) j))
(* (fma (- a) y5 (* y4 c)) y2))
t)
(if (<= y5 -6.1e-217)
(*
(+
(fma (- y1) (fma (- y3) z (* y2 x)) (* (fma (- t) z (* y x)) b))
(* y5 t_2))
a)
(if (<= y5 1.05e-234)
(*
(-
(fma
c
(* y0 y2)
(fma
y
(fma -1.0 (* c i) (* a b))
(* y1 (+ (* (- a) y2) (* i j)))))
(* b (* j y0)))
x)
(if (<= y5 1.05e+215)
(*
(- z)
(-
(fma (fma (- a) y1 (* y0 c)) y3 (* t_1 t))
(* (fma (- i) y1 (* y0 b)) k)))
(* (* a y5) (fma (- y) y3 (* t 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 = fma(-c, i, (b * a));
double t_2 = fma(-y, y3, (y2 * t));
double tmp;
if (y5 <= -7.5e+97) {
tmp = -y5 * (fma(fma(-j, y3, (y2 * k)), y0, (fma(-k, y, (j * t)) * i)) - (t_2 * a));
} else if (y5 <= -2.35e-111) {
tmp = (fma(-z, t_1, (fma(-i, y5, (y4 * b)) * j)) - (fma(-a, y5, (y4 * c)) * y2)) * t;
} else if (y5 <= -6.1e-217) {
tmp = (fma(-y1, fma(-y3, z, (y2 * x)), (fma(-t, z, (y * x)) * b)) + (y5 * t_2)) * a;
} else if (y5 <= 1.05e-234) {
tmp = (fma(c, (y0 * y2), fma(y, fma(-1.0, (c * i), (a * b)), (y1 * ((-a * y2) + (i * j))))) - (b * (j * y0))) * x;
} else if (y5 <= 1.05e+215) {
tmp = -z * (fma(fma(-a, y1, (y0 * c)), y3, (t_1 * t)) - (fma(-i, y1, (y0 * b)) * k));
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(Float64(-c), i, Float64(b * a)) t_2 = fma(Float64(-y), y3, Float64(y2 * t)) tmp = 0.0 if (y5 <= -7.5e+97) tmp = Float64(Float64(-y5) * Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y0, Float64(fma(Float64(-k), y, Float64(j * t)) * i)) - Float64(t_2 * a))); elseif (y5 <= -2.35e-111) tmp = Float64(Float64(fma(Float64(-z), t_1, Float64(fma(Float64(-i), y5, Float64(y4 * b)) * j)) - Float64(fma(Float64(-a), y5, Float64(y4 * c)) * y2)) * t); elseif (y5 <= -6.1e-217) tmp = Float64(Float64(fma(Float64(-y1), fma(Float64(-y3), z, Float64(y2 * x)), Float64(fma(Float64(-t), z, Float64(y * x)) * b)) + Float64(y5 * t_2)) * a); elseif (y5 <= 1.05e-234) tmp = Float64(Float64(fma(c, Float64(y0 * y2), fma(y, fma(-1.0, Float64(c * i), Float64(a * b)), Float64(y1 * Float64(Float64(Float64(-a) * y2) + Float64(i * j))))) - Float64(b * Float64(j * y0))) * x); elseif (y5 <= 1.05e+215) tmp = Float64(Float64(-z) * Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y3, Float64(t_1 * t)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * k))); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * 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[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -7.5e+97], N[((-y5) * N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y0 + N[(N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(t$95$2 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.35e-111], N[(N[(N[((-z) * t$95$1 + N[(N[((-i) * y5 + N[(y4 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] - N[(N[((-a) * y5 + N[(y4 * c), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y5, -6.1e-217], N[(N[(N[((-y1) * N[((-y3) * z + N[(y2 * x), $MachinePrecision]), $MachinePrecision] + N[(N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y5, 1.05e-234], N[(N[(N[(c * N[(y0 * y2), $MachinePrecision] + N[(y * N[(-1.0 * N[(c * i), $MachinePrecision] + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(y1 * N[(N[((-a) * y2), $MachinePrecision] + N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.05e+215], N[((-z) * N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y3 + N[(t$95$1 * t), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, i, b \cdot a\right)\\
t_2 := \mathsf{fma}\left(-y, y3, y2 \cdot t\right)\\
\mathbf{if}\;y5 \leq -7.5 \cdot 10^{+97}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y0, \mathsf{fma}\left(-k, y, j \cdot t\right) \cdot i\right) - t\_2 \cdot a\right)\\
\mathbf{elif}\;y5 \leq -2.35 \cdot 10^{-111}:\\
\;\;\;\;\left(\mathsf{fma}\left(-z, t\_1, \mathsf{fma}\left(-i, y5, y4 \cdot b\right) \cdot j\right) - \mathsf{fma}\left(-a, y5, y4 \cdot c\right) \cdot y2\right) \cdot t\\
\mathbf{elif}\;y5 \leq -6.1 \cdot 10^{-217}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y1, \mathsf{fma}\left(-y3, z, y2 \cdot x\right), \mathsf{fma}\left(-t, z, y \cdot x\right) \cdot b\right) + y5 \cdot t\_2\right) \cdot a\\
\mathbf{elif}\;y5 \leq 1.05 \cdot 10^{-234}:\\
\;\;\;\;\left(\mathsf{fma}\left(c, y0 \cdot y2, \mathsf{fma}\left(y, \mathsf{fma}\left(-1, c \cdot i, a \cdot b\right), y1 \cdot \left(\left(-a\right) \cdot y2 + i \cdot j\right)\right)\right) - b \cdot \left(j \cdot y0\right)\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.05 \cdot 10^{+215}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y3, t\_1 \cdot t\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -7.5000000000000004e97Initial program 19.5%
Taylor expanded in y5 around -inf
Applied rewrites76.3%
if -7.5000000000000004e97 < y5 < -2.35000000000000003e-111Initial program 29.3%
Taylor expanded in t around inf
Applied rewrites53.9%
if -2.35000000000000003e-111 < y5 < -6.1000000000000003e-217Initial program 43.7%
Taylor expanded in a around inf
Applied rewrites75.3%
if -6.1000000000000003e-217 < y5 < 1.04999999999999996e-234Initial program 34.1%
Taylor expanded in x around inf
Applied rewrites52.2%
Taylor expanded in y1 around 0
Applied rewrites58.0%
if 1.04999999999999996e-234 < y5 < 1.0500000000000001e215Initial program 27.1%
Taylor expanded in z around -inf
Applied rewrites57.1%
if 1.0500000000000001e215 < y5 Initial program 12.5%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites63.1%
Final simplification61.9%
(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 (fma (- c) i (* b a))))
(if (<= y5 -7.5e+97)
(*
(- y5)
(-
(fma (fma (- j) y3 (* y2 k)) y0 (* t_1 i))
(* (fma (- y) y3 (* y2 t)) a)))
(if (<= y5 -4.5e-91)
(*
(-
(fma (- z) t_2 (* (fma (- i) y5 (* y4 b)) j))
(* (fma (- a) y5 (* y4 c)) y2))
t)
(if (<= y5 -9e-233)
(*
(-
(fma (fma (- t) z (* y x)) a (* t_1 y4))
(* (fma (- k) z (* j x)) y0))
b)
(if (<= y5 9.8e-235)
(*
(+
(fma
(- a)
(* y1 y2)
(fma y (fma (- c) i (* a b)) (* y0 (fma c y2 (* (- b) j)))))
(* (* i j) y1))
x)
(if (<= y5 1.05e+215)
(*
(- z)
(-
(fma (fma (- a) y1 (* y0 c)) y3 (* t_2 t))
(* (fma (- i) y1 (* y0 b)) k)))
(* (* a y5) (fma (- y) y3 (* t 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 = fma(-k, y, (j * t));
double t_2 = fma(-c, i, (b * a));
double tmp;
if (y5 <= -7.5e+97) {
tmp = -y5 * (fma(fma(-j, y3, (y2 * k)), y0, (t_1 * i)) - (fma(-y, y3, (y2 * t)) * a));
} else if (y5 <= -4.5e-91) {
tmp = (fma(-z, t_2, (fma(-i, y5, (y4 * b)) * j)) - (fma(-a, y5, (y4 * c)) * y2)) * t;
} else if (y5 <= -9e-233) {
tmp = (fma(fma(-t, z, (y * x)), a, (t_1 * y4)) - (fma(-k, z, (j * x)) * y0)) * b;
} else if (y5 <= 9.8e-235) {
tmp = (fma(-a, (y1 * y2), fma(y, fma(-c, i, (a * b)), (y0 * fma(c, y2, (-b * j))))) + ((i * j) * y1)) * x;
} else if (y5 <= 1.05e+215) {
tmp = -z * (fma(fma(-a, y1, (y0 * c)), y3, (t_2 * t)) - (fma(-i, y1, (y0 * b)) * k));
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
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 = fma(Float64(-c), i, Float64(b * a)) tmp = 0.0 if (y5 <= -7.5e+97) tmp = Float64(Float64(-y5) * Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y0, Float64(t_1 * i)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * a))); elseif (y5 <= -4.5e-91) tmp = Float64(Float64(fma(Float64(-z), t_2, Float64(fma(Float64(-i), y5, Float64(y4 * b)) * j)) - Float64(fma(Float64(-a), y5, Float64(y4 * c)) * y2)) * t); elseif (y5 <= -9e-233) tmp = Float64(Float64(fma(fma(Float64(-t), z, Float64(y * x)), a, Float64(t_1 * y4)) - Float64(fma(Float64(-k), z, Float64(j * x)) * y0)) * b); elseif (y5 <= 9.8e-235) tmp = Float64(Float64(fma(Float64(-a), Float64(y1 * y2), fma(y, fma(Float64(-c), i, Float64(a * b)), Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))))) + Float64(Float64(i * j) * y1)) * x); elseif (y5 <= 1.05e+215) tmp = Float64(Float64(-z) * Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y3, Float64(t_2 * t)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * k))); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * 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[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -7.5e+97], N[((-y5) * N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -4.5e-91], N[(N[(N[((-z) * t$95$2 + N[(N[((-i) * y5 + N[(y4 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] - N[(N[((-a) * y5 + N[(y4 * c), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y5, -9e-233], N[(N[(N[(N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 9.8e-235], N[(N[(N[((-a) * N[(y1 * y2), $MachinePrecision] + N[(y * N[((-c) * i + N[(a * b), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(i * j), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.05e+215], N[((-z) * N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y3 + N[(t$95$2 * t), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
t_2 := \mathsf{fma}\left(-c, i, b \cdot a\right)\\
\mathbf{if}\;y5 \leq -7.5 \cdot 10^{+97}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -4.5 \cdot 10^{-91}:\\
\;\;\;\;\left(\mathsf{fma}\left(-z, t\_2, \mathsf{fma}\left(-i, y5, y4 \cdot b\right) \cdot j\right) - \mathsf{fma}\left(-a, y5, y4 \cdot c\right) \cdot y2\right) \cdot t\\
\mathbf{elif}\;y5 \leq -9 \cdot 10^{-233}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-t, z, y \cdot x\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 9.8 \cdot 10^{-235}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, y1 \cdot y2, \mathsf{fma}\left(y, \mathsf{fma}\left(-c, i, a \cdot b\right), y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right)\right) + \left(i \cdot j\right) \cdot y1\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.05 \cdot 10^{+215}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y3, t\_2 \cdot t\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -7.5000000000000004e97Initial program 19.5%
Taylor expanded in y5 around -inf
Applied rewrites76.3%
if -7.5000000000000004e97 < y5 < -4.49999999999999976e-91Initial program 29.8%
Taylor expanded in t around inf
Applied rewrites54.4%
if -4.49999999999999976e-91 < y5 < -9.0000000000000004e-233Initial program 36.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
if -9.0000000000000004e-233 < y5 < 9.79999999999999931e-235Initial program 36.3%
Taylor expanded in x around inf
Applied rewrites55.5%
Taylor expanded in y0 around inf
Applied rewrites30.3%
Taylor expanded in y0 around 0
Applied rewrites61.5%
if 9.79999999999999931e-235 < y5 < 1.0500000000000001e215Initial program 27.1%
Taylor expanded in z around -inf
Applied rewrites57.1%
if 1.0500000000000001e215 < y5 Initial program 12.5%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites63.1%
Final simplification61.9%
(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 (fma (- c) i (* b a)))
(t_3 (fma (- a) y1 (* y0 c)))
(t_4 (fma (- i) y1 (* y0 b))))
(if (<= y5 -7.5e+97)
(*
(- y5)
(-
(fma (fma (- j) y3 (* y2 k)) y0 (* t_1 i))
(* (fma (- y) y3 (* y2 t)) a)))
(if (<= y5 -4.5e-91)
(*
(-
(fma (- z) t_2 (* (fma (- i) y5 (* y4 b)) j))
(* (fma (- a) y5 (* y4 c)) y2))
t)
(if (<= y5 -2.6e-232)
(*
(-
(fma (fma (- t) z (* y x)) a (* t_1 y4))
(* (fma (- k) z (* j x)) y0))
b)
(if (<= y5 9.8e-235)
(* (- (fma t_3 y2 (* t_2 y)) (* t_4 j)) x)
(if (<= y5 1.05e+215)
(* (- z) (- (fma t_3 y3 (* t_2 t)) (* t_4 k)))
(* (* a y5) (fma (- y) y3 (* t 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 = fma(-k, y, (j * t));
double t_2 = fma(-c, i, (b * a));
double t_3 = fma(-a, y1, (y0 * c));
double t_4 = fma(-i, y1, (y0 * b));
double tmp;
if (y5 <= -7.5e+97) {
tmp = -y5 * (fma(fma(-j, y3, (y2 * k)), y0, (t_1 * i)) - (fma(-y, y3, (y2 * t)) * a));
} else if (y5 <= -4.5e-91) {
tmp = (fma(-z, t_2, (fma(-i, y5, (y4 * b)) * j)) - (fma(-a, y5, (y4 * c)) * y2)) * t;
} else if (y5 <= -2.6e-232) {
tmp = (fma(fma(-t, z, (y * x)), a, (t_1 * y4)) - (fma(-k, z, (j * x)) * y0)) * b;
} else if (y5 <= 9.8e-235) {
tmp = (fma(t_3, y2, (t_2 * y)) - (t_4 * j)) * x;
} else if (y5 <= 1.05e+215) {
tmp = -z * (fma(t_3, y3, (t_2 * t)) - (t_4 * k));
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
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 = fma(Float64(-c), i, Float64(b * a)) t_3 = fma(Float64(-a), y1, Float64(y0 * c)) t_4 = fma(Float64(-i), y1, Float64(y0 * b)) tmp = 0.0 if (y5 <= -7.5e+97) tmp = Float64(Float64(-y5) * Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y0, Float64(t_1 * i)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * a))); elseif (y5 <= -4.5e-91) tmp = Float64(Float64(fma(Float64(-z), t_2, Float64(fma(Float64(-i), y5, Float64(y4 * b)) * j)) - Float64(fma(Float64(-a), y5, Float64(y4 * c)) * y2)) * t); elseif (y5 <= -2.6e-232) tmp = Float64(Float64(fma(fma(Float64(-t), z, Float64(y * x)), a, Float64(t_1 * y4)) - Float64(fma(Float64(-k), z, Float64(j * x)) * y0)) * b); elseif (y5 <= 9.8e-235) tmp = Float64(Float64(fma(t_3, y2, Float64(t_2 * y)) - Float64(t_4 * j)) * x); elseif (y5 <= 1.05e+215) tmp = Float64(Float64(-z) * Float64(fma(t_3, y3, Float64(t_2 * t)) - Float64(t_4 * k))); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * 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[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -7.5e+97], N[((-y5) * N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -4.5e-91], N[(N[(N[((-z) * t$95$2 + N[(N[((-i) * y5 + N[(y4 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] - N[(N[((-a) * y5 + N[(y4 * c), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y5, -2.6e-232], N[(N[(N[(N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 9.8e-235], N[(N[(N[(t$95$3 * y2 + N[(t$95$2 * y), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.05e+215], N[((-z) * N[(N[(t$95$3 * y3 + N[(t$95$2 * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
t_2 := \mathsf{fma}\left(-c, i, b \cdot a\right)\\
t_3 := \mathsf{fma}\left(-a, y1, y0 \cdot c\right)\\
t_4 := \mathsf{fma}\left(-i, y1, y0 \cdot b\right)\\
\mathbf{if}\;y5 \leq -7.5 \cdot 10^{+97}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -4.5 \cdot 10^{-91}:\\
\;\;\;\;\left(\mathsf{fma}\left(-z, t\_2, \mathsf{fma}\left(-i, y5, y4 \cdot b\right) \cdot j\right) - \mathsf{fma}\left(-a, y5, y4 \cdot c\right) \cdot y2\right) \cdot t\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-232}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-t, z, y \cdot x\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 9.8 \cdot 10^{-235}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_3, y2, t\_2 \cdot y\right) - t\_4 \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.05 \cdot 10^{+215}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_3, y3, t\_2 \cdot t\right) - t\_4 \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -7.5000000000000004e97Initial program 19.5%
Taylor expanded in y5 around -inf
Applied rewrites76.3%
if -7.5000000000000004e97 < y5 < -4.49999999999999976e-91Initial program 29.8%
Taylor expanded in t around inf
Applied rewrites54.4%
if -4.49999999999999976e-91 < y5 < -2.59999999999999996e-232Initial program 36.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
if -2.59999999999999996e-232 < y5 < 9.79999999999999931e-235Initial program 36.3%
Taylor expanded in x around inf
Applied rewrites55.5%
if 9.79999999999999931e-235 < y5 < 1.0500000000000001e215Initial program 27.1%
Taylor expanded in z around -inf
Applied rewrites57.1%
if 1.0500000000000001e215 < y5 Initial program 12.5%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites63.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* a y5) (fma (- y) y3 (* t y2)))) (t_2 (fma (- k) y (* j t))))
(if (<= y5 -1e+275)
(* (* y5 (fma -1.0 (* i t) (* y0 y3))) j)
(if (<= y5 -2e+111)
t_1
(if (<= y5 -1.4e+24)
(*
(-
(fma (fma (- j) y3 (* y2 k)) y1 (* t_2 b))
(* (fma (- y) y3 (* y2 t)) c))
y4)
(if (<= y5 -2.6e-232)
(*
(-
(fma (fma (- t) z (* y x)) a (* t_2 y4))
(* (fma (- k) z (* j x)) y0))
b)
(if (<= y5 3.2e+105)
(*
(-
(fma (fma (- a) y1 (* y0 c)) y2 (* (fma (- c) i (* b a)) y))
(* (fma (- i) y1 (* y0 b)) j))
x)
(if (<= y5 2.4e+215)
(* (* (- i) (fma t y5 (* (- x) y1))) j)
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 * y5) * fma(-y, y3, (t * y2));
double t_2 = fma(-k, y, (j * t));
double tmp;
if (y5 <= -1e+275) {
tmp = (y5 * fma(-1.0, (i * t), (y0 * y3))) * j;
} else if (y5 <= -2e+111) {
tmp = t_1;
} else if (y5 <= -1.4e+24) {
tmp = (fma(fma(-j, y3, (y2 * k)), y1, (t_2 * b)) - (fma(-y, y3, (y2 * t)) * c)) * y4;
} else if (y5 <= -2.6e-232) {
tmp = (fma(fma(-t, z, (y * x)), a, (t_2 * y4)) - (fma(-k, z, (j * x)) * y0)) * b;
} else if (y5 <= 3.2e+105) {
tmp = (fma(fma(-a, y1, (y0 * c)), y2, (fma(-c, i, (b * a)) * y)) - (fma(-i, y1, (y0 * b)) * j)) * x;
} else if (y5 <= 2.4e+215) {
tmp = (-i * fma(t, y5, (-x * y1))) * j;
} 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 * y5) * fma(Float64(-y), y3, Float64(t * y2))) t_2 = fma(Float64(-k), y, Float64(j * t)) tmp = 0.0 if (y5 <= -1e+275) tmp = Float64(Float64(y5 * fma(-1.0, Float64(i * t), Float64(y0 * y3))) * j); elseif (y5 <= -2e+111) tmp = t_1; elseif (y5 <= -1.4e+24) tmp = Float64(Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y1, Float64(t_2 * b)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * c)) * y4); elseif (y5 <= -2.6e-232) tmp = Float64(Float64(fma(fma(Float64(-t), z, Float64(y * x)), a, Float64(t_2 * y4)) - Float64(fma(Float64(-k), z, Float64(j * x)) * y0)) * b); elseif (y5 <= 3.2e+105) tmp = Float64(Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y2, Float64(fma(Float64(-c), i, Float64(b * a)) * y)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * j)) * x); elseif (y5 <= 2.4e+215) tmp = Float64(Float64(Float64(-i) * fma(t, y5, Float64(Float64(-x) * y1))) * j); 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 * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1e+275], N[(N[(y5 * N[(-1.0 * N[(i * t), $MachinePrecision] + N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y5, -2e+111], t$95$1, If[LessEqual[y5, -1.4e+24], N[(N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y5, -2.6e-232], N[(N[(N[(N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$2 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 3.2e+105], N[(N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 2.4e+215], N[(N[((-i) * N[(t * y5 + N[((-x) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], t$95$1]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
t_2 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
\mathbf{if}\;y5 \leq -1 \cdot 10^{+275}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-1, i \cdot t, y0 \cdot y3\right)\right) \cdot j\\
\mathbf{elif}\;y5 \leq -2 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.4 \cdot 10^{+24}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y1, t\_2 \cdot b\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot c\right) \cdot y4\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-232}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-t, z, y \cdot x\right), a, t\_2 \cdot y4\right) - \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 3.2 \cdot 10^{+105}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y2, \mathsf{fma}\left(-c, i, b \cdot a\right) \cdot y\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 2.4 \cdot 10^{+215}:\\
\;\;\;\;\left(\left(-i\right) \cdot \mathsf{fma}\left(t, y5, \left(-x\right) \cdot y1\right)\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -9.9999999999999996e274Initial program 12.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites63.1%
Taylor expanded in y5 around inf
Applied rewrites87.7%
if -9.9999999999999996e274 < y5 < -1.99999999999999991e111 or 2.4000000000000001e215 < y5 Initial program 17.2%
Taylor expanded in y5 around -inf
Applied rewrites72.5%
Taylor expanded in a around inf
Applied rewrites59.5%
if -1.99999999999999991e111 < y5 < -1.4000000000000001e24Initial program 29.3%
Taylor expanded in y4 around inf
Applied rewrites54.1%
if -1.4000000000000001e24 < y5 < -2.59999999999999996e-232Initial program 32.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.0%
if -2.59999999999999996e-232 < y5 < 3.2e105Initial program 28.4%
Taylor expanded in x around inf
Applied rewrites50.1%
if 3.2e105 < y5 < 2.4000000000000001e215Initial program 33.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.6%
Taylor expanded in i around -inf
Applied rewrites54.7%
Final simplification55.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma (- c) i (* b a))) (t_2 (fma (- j) y3 (* y2 k))))
(if (<= y5 -7.5e+97)
(*
(- y5)
(-
(fma t_2 y0 (* (fma (- k) y (* j t)) i))
(* (fma (- y) y3 (* y2 t)) a)))
(if (<= y5 -3.9e-104)
(*
(-
(fma (- z) t_1 (* (fma (- i) y5 (* y4 b)) j))
(* (fma (- a) y5 (* y4 c)) y2))
t)
(if (<= y5 1.28e-247)
(*
(+
(fma (- a) (fma (- y3) z (* y2 x)) (* t_2 y4))
(* i (fma (- k) z (* j x))))
y1)
(if (<= y5 1.05e+215)
(*
(- z)
(-
(fma (fma (- a) y1 (* y0 c)) y3 (* t_1 t))
(* (fma (- i) y1 (* y0 b)) k)))
(* (* a y5) (fma (- y) y3 (* t 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 = fma(-c, i, (b * a));
double t_2 = fma(-j, y3, (y2 * k));
double tmp;
if (y5 <= -7.5e+97) {
tmp = -y5 * (fma(t_2, y0, (fma(-k, y, (j * t)) * i)) - (fma(-y, y3, (y2 * t)) * a));
} else if (y5 <= -3.9e-104) {
tmp = (fma(-z, t_1, (fma(-i, y5, (y4 * b)) * j)) - (fma(-a, y5, (y4 * c)) * y2)) * t;
} else if (y5 <= 1.28e-247) {
tmp = (fma(-a, fma(-y3, z, (y2 * x)), (t_2 * y4)) + (i * fma(-k, z, (j * x)))) * y1;
} else if (y5 <= 1.05e+215) {
tmp = -z * (fma(fma(-a, y1, (y0 * c)), y3, (t_1 * t)) - (fma(-i, y1, (y0 * b)) * k));
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(Float64(-c), i, Float64(b * a)) t_2 = fma(Float64(-j), y3, Float64(y2 * k)) tmp = 0.0 if (y5 <= -7.5e+97) tmp = Float64(Float64(-y5) * Float64(fma(t_2, y0, Float64(fma(Float64(-k), y, Float64(j * t)) * i)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * a))); elseif (y5 <= -3.9e-104) tmp = Float64(Float64(fma(Float64(-z), t_1, Float64(fma(Float64(-i), y5, Float64(y4 * b)) * j)) - Float64(fma(Float64(-a), y5, Float64(y4 * c)) * y2)) * t); elseif (y5 <= 1.28e-247) tmp = Float64(Float64(fma(Float64(-a), fma(Float64(-y3), z, Float64(y2 * x)), Float64(t_2 * y4)) + Float64(i * fma(Float64(-k), z, Float64(j * x)))) * y1); elseif (y5 <= 1.05e+215) tmp = Float64(Float64(-z) * Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y3, Float64(t_1 * t)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * k))); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * 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[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -7.5e+97], N[((-y5) * N[(N[(t$95$2 * y0 + N[(N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision] * i), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.9e-104], N[(N[(N[((-z) * t$95$1 + N[(N[((-i) * y5 + N[(y4 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] - N[(N[((-a) * y5 + N[(y4 * c), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision] * t), $MachinePrecision], If[LessEqual[y5, 1.28e-247], N[(N[(N[((-a) * N[((-y3) * z + N[(y2 * x), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * y4), $MachinePrecision]), $MachinePrecision] + N[(i * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y5, 1.05e+215], N[((-z) * N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y3 + N[(t$95$1 * t), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-c, i, b \cdot a\right)\\
t_2 := \mathsf{fma}\left(-j, y3, y2 \cdot k\right)\\
\mathbf{if}\;y5 \leq -7.5 \cdot 10^{+97}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(t\_2, y0, \mathsf{fma}\left(-k, y, j \cdot t\right) \cdot i\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -3.9 \cdot 10^{-104}:\\
\;\;\;\;\left(\mathsf{fma}\left(-z, t\_1, \mathsf{fma}\left(-i, y5, y4 \cdot b\right) \cdot j\right) - \mathsf{fma}\left(-a, y5, y4 \cdot c\right) \cdot y2\right) \cdot t\\
\mathbf{elif}\;y5 \leq 1.28 \cdot 10^{-247}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, \mathsf{fma}\left(-y3, z, y2 \cdot x\right), t\_2 \cdot y4\right) + i \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\right) \cdot y1\\
\mathbf{elif}\;y5 \leq 1.05 \cdot 10^{+215}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y3, t\_1 \cdot t\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -7.5000000000000004e97Initial program 19.5%
Taylor expanded in y5 around -inf
Applied rewrites76.3%
if -7.5000000000000004e97 < y5 < -3.9000000000000002e-104Initial program 28.3%
Taylor expanded in t around inf
Applied rewrites54.1%
if -3.9000000000000002e-104 < y5 < 1.28000000000000007e-247Initial program 36.7%
Taylor expanded in y1 around inf
Applied rewrites51.8%
if 1.28000000000000007e-247 < y5 < 1.0500000000000001e215Initial program 28.0%
Taylor expanded in z around -inf
Applied rewrites56.9%
if 1.0500000000000001e215 < y5 Initial program 12.5%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites63.1%
Final simplification59.6%
(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 (fma (- a) y1 (* y0 c)))
(t_3 (fma (- c) i (* b a)))
(t_4 (fma (- i) y1 (* y0 b))))
(if (<= y5 -1.9e+24)
(*
(- y5)
(-
(fma (fma (- j) y3 (* y2 k)) y0 (* t_1 i))
(* (fma (- y) y3 (* y2 t)) a)))
(if (<= y5 -2.6e-232)
(*
(-
(fma (fma (- t) z (* y x)) a (* t_1 y4))
(* (fma (- k) z (* j x)) y0))
b)
(if (<= y5 9.8e-235)
(* (- (fma t_2 y2 (* t_3 y)) (* t_4 j)) x)
(if (<= y5 1.05e+215)
(* (- z) (- (fma t_2 y3 (* t_3 t)) (* t_4 k)))
(* (* a y5) (fma (- y) y3 (* t 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 = fma(-k, y, (j * t));
double t_2 = fma(-a, y1, (y0 * c));
double t_3 = fma(-c, i, (b * a));
double t_4 = fma(-i, y1, (y0 * b));
double tmp;
if (y5 <= -1.9e+24) {
tmp = -y5 * (fma(fma(-j, y3, (y2 * k)), y0, (t_1 * i)) - (fma(-y, y3, (y2 * t)) * a));
} else if (y5 <= -2.6e-232) {
tmp = (fma(fma(-t, z, (y * x)), a, (t_1 * y4)) - (fma(-k, z, (j * x)) * y0)) * b;
} else if (y5 <= 9.8e-235) {
tmp = (fma(t_2, y2, (t_3 * y)) - (t_4 * j)) * x;
} else if (y5 <= 1.05e+215) {
tmp = -z * (fma(t_2, y3, (t_3 * t)) - (t_4 * k));
} else {
tmp = (a * y5) * fma(-y, y3, (t * y2));
}
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 = fma(Float64(-a), y1, Float64(y0 * c)) t_3 = fma(Float64(-c), i, Float64(b * a)) t_4 = fma(Float64(-i), y1, Float64(y0 * b)) tmp = 0.0 if (y5 <= -1.9e+24) tmp = Float64(Float64(-y5) * Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y0, Float64(t_1 * i)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * a))); elseif (y5 <= -2.6e-232) tmp = Float64(Float64(fma(fma(Float64(-t), z, Float64(y * x)), a, Float64(t_1 * y4)) - Float64(fma(Float64(-k), z, Float64(j * x)) * y0)) * b); elseif (y5 <= 9.8e-235) tmp = Float64(Float64(fma(t_2, y2, Float64(t_3 * y)) - Float64(t_4 * j)) * x); elseif (y5 <= 1.05e+215) tmp = Float64(Float64(-z) * Float64(fma(t_2, y3, Float64(t_3 * t)) - Float64(t_4 * k))); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * 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[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.9e+24], N[((-y5) * N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.6e-232], N[(N[(N[(N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y5, 9.8e-235], N[(N[(N[(t$95$2 * y2 + N[(t$95$3 * y), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 1.05e+215], N[((-z) * N[(N[(t$95$2 * y3 + N[(t$95$3 * t), $MachinePrecision]), $MachinePrecision] - N[(t$95$4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
t_2 := \mathsf{fma}\left(-a, y1, y0 \cdot c\right)\\
t_3 := \mathsf{fma}\left(-c, i, b \cdot a\right)\\
t_4 := \mathsf{fma}\left(-i, y1, y0 \cdot b\right)\\
\mathbf{if}\;y5 \leq -1.9 \cdot 10^{+24}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot a\right)\\
\mathbf{elif}\;y5 \leq -2.6 \cdot 10^{-232}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-t, z, y \cdot x\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot y0\right) \cdot b\\
\mathbf{elif}\;y5 \leq 9.8 \cdot 10^{-235}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, y2, t\_3 \cdot y\right) - t\_4 \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 1.05 \cdot 10^{+215}:\\
\;\;\;\;\left(-z\right) \cdot \left(\mathsf{fma}\left(t\_2, y3, t\_3 \cdot t\right) - t\_4 \cdot k\right)\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -1.90000000000000008e24Initial program 22.0%
Taylor expanded in y5 around -inf
Applied rewrites66.5%
if -1.90000000000000008e24 < y5 < -2.59999999999999996e-232Initial program 32.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites55.0%
if -2.59999999999999996e-232 < y5 < 9.79999999999999931e-235Initial program 36.3%
Taylor expanded in x around inf
Applied rewrites55.5%
if 9.79999999999999931e-235 < y5 < 1.0500000000000001e215Initial program 27.1%
Taylor expanded in z around -inf
Applied rewrites57.1%
if 1.0500000000000001e215 < y5 Initial program 12.5%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites63.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y3 (fma y1 z (* (- y) y5))) a)) (t_2 (fma (- k) y (* j t))))
(if (<= y -1.3e+57)
t_1
(if (<= y -4.4e-10)
(* b (* j (fma t y4 (* (- x) y0))))
(if (<= y 1.7e-233)
(*
(-
(fma (fma (- j) y3 (* y2 k)) y1 (* t_2 b))
(* (fma (- y) y3 (* y2 t)) c))
y4)
(if (<= y 4e+124)
(*
(- i)
(-
(fma (fma (- t) z (* y x)) c (* t_2 y5))
(* (fma (- k) z (* j x)) y1)))
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 = (y3 * fma(y1, z, (-y * y5))) * a;
double t_2 = fma(-k, y, (j * t));
double tmp;
if (y <= -1.3e+57) {
tmp = t_1;
} else if (y <= -4.4e-10) {
tmp = b * (j * fma(t, y4, (-x * y0)));
} else if (y <= 1.7e-233) {
tmp = (fma(fma(-j, y3, (y2 * k)), y1, (t_2 * b)) - (fma(-y, y3, (y2 * t)) * c)) * y4;
} else if (y <= 4e+124) {
tmp = -i * (fma(fma(-t, z, (y * x)), c, (t_2 * y5)) - (fma(-k, z, (j * x)) * y1));
} 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(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a) t_2 = fma(Float64(-k), y, Float64(j * t)) tmp = 0.0 if (y <= -1.3e+57) tmp = t_1; elseif (y <= -4.4e-10) tmp = Float64(b * Float64(j * fma(t, y4, Float64(Float64(-x) * y0)))); elseif (y <= 1.7e-233) tmp = Float64(Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y1, Float64(t_2 * b)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * c)) * y4); elseif (y <= 4e+124) tmp = Float64(Float64(-i) * Float64(fma(fma(Float64(-t), z, Float64(y * x)), c, Float64(t_2 * y5)) - Float64(fma(Float64(-k), z, Float64(j * x)) * y1))); 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[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, Block[{t$95$2 = N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -1.3e+57], t$95$1, If[LessEqual[y, -4.4e-10], N[(b * N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1.7e-233], N[(N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y1 + N[(t$95$2 * b), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y, 4e+124], N[((-i) * N[(N[(N[((-t) * z + N[(y * x), $MachinePrecision]), $MachinePrecision] * c + N[(t$95$2 * y5), $MachinePrecision]), $MachinePrecision] - N[(N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
t_2 := \mathsf{fma}\left(-k, y, j \cdot t\right)\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq 1.7 \cdot 10^{-233}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y1, t\_2 \cdot b\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot c\right) \cdot y4\\
\mathbf{elif}\;y \leq 4 \cdot 10^{+124}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(-t, z, y \cdot x\right), c, t\_2 \cdot y5\right) - \mathsf{fma}\left(-k, z, j \cdot x\right) \cdot y1\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.3e57 or 3.99999999999999979e124 < y Initial program 17.2%
Taylor expanded in a around inf
Applied rewrites40.0%
Taylor expanded in y3 around inf
Applied rewrites53.2%
if -1.3e57 < y < -4.3999999999999998e-10Initial program 24.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites83.3%
Taylor expanded in b around inf
Applied rewrites67.1%
if -4.3999999999999998e-10 < y < 1.7000000000000001e-233Initial program 36.5%
Taylor expanded in y4 around inf
Applied rewrites53.7%
if 1.7000000000000001e-233 < y < 3.99999999999999979e124Initial program 29.2%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites54.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -2.25e+191)
(* (* y5 (fma -1.0 (* i t) (* y0 y3))) j)
(if (<= y5 -2.45e-111)
(* (* (- t) (fma b z (* (- y2) y5))) a)
(if (<= y5 -1.5e-214)
(* a (* b (fma -1.0 (* t z) (* x y))))
(if (<= y5 3.2e+105)
(*
(-
(fma (fma (- a) y1 (* y0 c)) y2 (* (fma (- c) i (* b a)) y))
(* (fma (- i) y1 (* y0 b)) j))
x)
(if (<= y5 2.4e+215)
(* (* (- i) (fma t y5 (* (- x) y1))) j)
(* (* a y5) (fma (- y) y3 (* t 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 (y5 <= -2.25e+191) {
tmp = (y5 * fma(-1.0, (i * t), (y0 * y3))) * j;
} else if (y5 <= -2.45e-111) {
tmp = (-t * fma(b, z, (-y2 * y5))) * a;
} else if (y5 <= -1.5e-214) {
tmp = a * (b * fma(-1.0, (t * z), (x * y)));
} else if (y5 <= 3.2e+105) {
tmp = (fma(fma(-a, y1, (y0 * c)), y2, (fma(-c, i, (b * a)) * y)) - (fma(-i, y1, (y0 * b)) * j)) * x;
} else if (y5 <= 2.4e+215) {
tmp = (-i * fma(t, y5, (-x * y1))) * j;
} else {
tmp = (a * y5) * fma(-y, y3, (t * 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 (y5 <= -2.25e+191) tmp = Float64(Float64(y5 * fma(-1.0, Float64(i * t), Float64(y0 * y3))) * j); elseif (y5 <= -2.45e-111) tmp = Float64(Float64(Float64(-t) * fma(b, z, Float64(Float64(-y2) * y5))) * a); elseif (y5 <= -1.5e-214) tmp = Float64(a * Float64(b * fma(-1.0, Float64(t * z), Float64(x * y)))); elseif (y5 <= 3.2e+105) tmp = Float64(Float64(fma(fma(Float64(-a), y1, Float64(y0 * c)), y2, Float64(fma(Float64(-c), i, Float64(b * a)) * y)) - Float64(fma(Float64(-i), y1, Float64(y0 * b)) * j)) * x); elseif (y5 <= 2.4e+215) tmp = Float64(Float64(Float64(-i) * fma(t, y5, Float64(Float64(-x) * y1))) * j); else tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -2.25e+191], N[(N[(y5 * N[(-1.0 * N[(i * t), $MachinePrecision] + N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[y5, -2.45e-111], N[(N[((-t) * N[(b * z + N[((-y2) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[y5, -1.5e-214], N[(a * N[(b * N[(-1.0 * N[(t * z), $MachinePrecision] + N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.2e+105], N[(N[(N[(N[((-a) * y1 + N[(y0 * c), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[((-c) * i + N[(b * a), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[((-i) * y1 + N[(y0 * b), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y5, 2.4e+215], N[(N[((-i) * N[(t * y5 + N[((-x) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.25 \cdot 10^{+191}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-1, i \cdot t, y0 \cdot y3\right)\right) \cdot j\\
\mathbf{elif}\;y5 \leq -2.45 \cdot 10^{-111}:\\
\;\;\;\;\left(\left(-t\right) \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;y5 \leq -1.5 \cdot 10^{-214}:\\
\;\;\;\;a \cdot \left(b \cdot \mathsf{fma}\left(-1, t \cdot z, x \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 3.2 \cdot 10^{+105}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-a, y1, y0 \cdot c\right), y2, \mathsf{fma}\left(-c, i, b \cdot a\right) \cdot y\right) - \mathsf{fma}\left(-i, y1, y0 \cdot b\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;y5 \leq 2.4 \cdot 10^{+215}:\\
\;\;\;\;\left(\left(-i\right) \cdot \mathsf{fma}\left(t, y5, \left(-x\right) \cdot y1\right)\right) \cdot j\\
\mathbf{else}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\end{array}
\end{array}
if y5 < -2.2500000000000001e191Initial program 20.6%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.0%
Taylor expanded in y5 around inf
Applied rewrites59.3%
if -2.2500000000000001e191 < y5 < -2.4500000000000001e-111Initial program 25.9%
Taylor expanded in a around inf
Applied rewrites30.2%
Taylor expanded in t around -inf
Applied rewrites40.7%
if -2.4500000000000001e-111 < y5 < -1.49999999999999997e-214Initial program 46.6%
Taylor expanded in a around inf
Applied rewrites73.6%
Taylor expanded in b around inf
Applied rewrites73.6%
if -1.49999999999999997e-214 < y5 < 3.2e105Initial program 27.6%
Taylor expanded in x around inf
Applied rewrites49.6%
if 3.2e105 < y5 < 2.4000000000000001e215Initial program 33.3%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.6%
Taylor expanded in i around -inf
Applied rewrites54.7%
if 2.4000000000000001e215 < y5 Initial program 12.5%
Taylor expanded in y5 around -inf
Applied rewrites58.3%
Taylor expanded in a around inf
Applied rewrites63.1%
Final simplification51.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* y3 (fma y1 z (* (- y) y5))) a)))
(if (<= y -1.3e+57)
t_1
(if (<= y -4.4e-10)
(* b (* j (fma t y4 (* (- x) y0))))
(if (<= y 3.3e-233)
(*
(-
(fma (fma (- j) y3 (* y2 k)) y1 (* (fma (- k) y (* j t)) b))
(* (fma (- y) y3 (* y2 t)) c))
y4)
(if (<= y 3.1e+123) (* i (* t (fma -1.0 (* j y5) (* c 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 = (y3 * fma(y1, z, (-y * y5))) * a;
double tmp;
if (y <= -1.3e+57) {
tmp = t_1;
} else if (y <= -4.4e-10) {
tmp = b * (j * fma(t, y4, (-x * y0)));
} else if (y <= 3.3e-233) {
tmp = (fma(fma(-j, y3, (y2 * k)), y1, (fma(-k, y, (j * t)) * b)) - (fma(-y, y3, (y2 * t)) * c)) * y4;
} else if (y <= 3.1e+123) {
tmp = i * (t * fma(-1.0, (j * y5), (c * 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(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a) tmp = 0.0 if (y <= -1.3e+57) tmp = t_1; elseif (y <= -4.4e-10) tmp = Float64(b * Float64(j * fma(t, y4, Float64(Float64(-x) * y0)))); elseif (y <= 3.3e-233) tmp = Float64(Float64(fma(fma(Float64(-j), y3, Float64(y2 * k)), y1, Float64(fma(Float64(-k), y, Float64(j * t)) * b)) - Float64(fma(Float64(-y), y3, Float64(y2 * t)) * c)) * y4); elseif (y <= 3.1e+123) tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * 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[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]}, If[LessEqual[y, -1.3e+57], t$95$1, If[LessEqual[y, -4.4e-10], N[(b * N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 3.3e-233], N[(N[(N[(N[((-j) * y3 + N[(y2 * k), $MachinePrecision]), $MachinePrecision] * y1 + N[(N[((-k) * y + N[(j * t), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]), $MachinePrecision] - N[(N[((-y) * y3 + N[(y2 * t), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[y, 3.1e+123], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{if}\;y \leq -1.3 \cdot 10^{+57}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq -4.4 \cdot 10^{-10}:\\
\;\;\;\;b \cdot \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right)\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{-233}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(-j, y3, y2 \cdot k\right), y1, \mathsf{fma}\left(-k, y, j \cdot t\right) \cdot b\right) - \mathsf{fma}\left(-y, y3, y2 \cdot t\right) \cdot c\right) \cdot y4\\
\mathbf{elif}\;y \leq 3.1 \cdot 10^{+123}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y < -1.3e57 or 3.10000000000000006e123 < y Initial program 17.2%
Taylor expanded in a around inf
Applied rewrites40.0%
Taylor expanded in y3 around inf
Applied rewrites53.2%
if -1.3e57 < y < -4.3999999999999998e-10Initial program 24.9%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites83.3%
Taylor expanded in b around inf
Applied rewrites67.1%
if -4.3999999999999998e-10 < y < 3.3e-233Initial program 36.5%
Taylor expanded in y4 around inf
Applied rewrites53.7%
if 3.3e-233 < y < 3.10000000000000006e123Initial program 29.2%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites54.8%
Taylor expanded in t around -inf
Applied rewrites45.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -4.9e+30)
(* (- y0) (* z (fma c y3 (* (- b) k))))
(if (<= k -2e-54)
(* (* (- i) (fma t y5 (* (- x) y1))) j)
(if (<= k 1.12e-209)
(* (* (- t) (fma b z (* (- y2) y5))) a)
(if (<= k 4e+14)
(* (* y0 (fma c y2 (* (- b) j))) x)
(if (<= k 2.1e+191)
(* (* a y5) (fma (- y) y3 (* t y2)))
(* 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 (k <= -4.9e+30) {
tmp = -y0 * (z * fma(c, y3, (-b * k)));
} else if (k <= -2e-54) {
tmp = (-i * fma(t, y5, (-x * y1))) * j;
} else if (k <= 1.12e-209) {
tmp = (-t * fma(b, z, (-y2 * y5))) * a;
} else if (k <= 4e+14) {
tmp = (y0 * fma(c, y2, (-b * j))) * x;
} else if (k <= 2.1e+191) {
tmp = (a * y5) * fma(-y, y3, (t * y2));
} 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 (k <= -4.9e+30) tmp = Float64(Float64(-y0) * Float64(z * fma(c, y3, Float64(Float64(-b) * k)))); elseif (k <= -2e-54) tmp = Float64(Float64(Float64(-i) * fma(t, y5, Float64(Float64(-x) * y1))) * j); elseif (k <= 1.12e-209) tmp = Float64(Float64(Float64(-t) * fma(b, z, Float64(Float64(-y2) * y5))) * a); elseif (k <= 4e+14) tmp = Float64(Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))) * x); elseif (k <= 2.1e+191) tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2))); 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[k, -4.9e+30], N[((-y0) * N[(z * N[(c * y3 + N[((-b) * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2e-54], N[(N[((-i) * N[(t * y5 + N[((-x) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision], If[LessEqual[k, 1.12e-209], N[(N[((-t) * N[(b * z + N[((-y2) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 4e+14], N[(N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[k, 2.1e+191], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $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}\;k \leq -4.9 \cdot 10^{+30}:\\
\;\;\;\;\left(-y0\right) \cdot \left(z \cdot \mathsf{fma}\left(c, y3, \left(-b\right) \cdot k\right)\right)\\
\mathbf{elif}\;k \leq -2 \cdot 10^{-54}:\\
\;\;\;\;\left(\left(-i\right) \cdot \mathsf{fma}\left(t, y5, \left(-x\right) \cdot y1\right)\right) \cdot j\\
\mathbf{elif}\;k \leq 1.12 \cdot 10^{-209}:\\
\;\;\;\;\left(\left(-t\right) \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;k \leq 4 \cdot 10^{+14}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;k \leq 2.1 \cdot 10^{+191}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\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 k < -4.89999999999999984e30Initial program 19.4%
Taylor expanded in z around -inf
Applied rewrites43.2%
Taylor expanded in y0 around inf
Applied rewrites43.2%
if -4.89999999999999984e30 < k < -2.0000000000000001e-54Initial program 36.5%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.0%
Taylor expanded in i around -inf
Applied rewrites49.3%
if -2.0000000000000001e-54 < k < 1.12e-209Initial program 34.0%
Taylor expanded in a around inf
Applied rewrites37.1%
Taylor expanded in t around -inf
Applied rewrites48.6%
if 1.12e-209 < k < 4e14Initial program 20.9%
Taylor expanded in x around inf
Applied rewrites37.5%
Taylor expanded in y0 around inf
Applied rewrites54.1%
if 4e14 < k < 2.1000000000000001e191Initial program 21.4%
Taylor expanded in y5 around -inf
Applied rewrites61.1%
Taylor expanded in a around inf
Applied rewrites50.5%
if 2.1000000000000001e191 < k Initial program 24.1%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in k around -inf
Applied rewrites59.2%
Final simplification49.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -2e+114)
(* (* j (fma (- y1) y3 (* b t))) y4)
(if (<= j 2.55e-163)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= j 1.05e-55)
(* (* i y) (fma (- c) x (* k y5)))
(if (<= j 5.2e-24)
(* (* a (fma (- y1) y2 (* b y))) x)
(if (<= j 4.6e+192)
(* (* i y1) (fma (- k) z (* j x)))
(* b (* j (fma t y4 (* (- x) 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) {
double tmp;
if (j <= -2e+114) {
tmp = (j * fma(-y1, y3, (b * t))) * y4;
} else if (j <= 2.55e-163) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (j <= 1.05e-55) {
tmp = (i * y) * fma(-c, x, (k * y5));
} else if (j <= 5.2e-24) {
tmp = (a * fma(-y1, y2, (b * y))) * x;
} else if (j <= 4.6e+192) {
tmp = (i * y1) * fma(-k, z, (j * x));
} else {
tmp = b * (j * fma(t, y4, (-x * y0)));
}
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 <= -2e+114) tmp = Float64(Float64(j * fma(Float64(-y1), y3, Float64(b * t))) * y4); elseif (j <= 2.55e-163) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (j <= 1.05e-55) tmp = Float64(Float64(i * y) * fma(Float64(-c), x, Float64(k * y5))); elseif (j <= 5.2e-24) tmp = Float64(Float64(a * fma(Float64(-y1), y2, Float64(b * y))) * x); elseif (j <= 4.6e+192) tmp = Float64(Float64(i * y1) * fma(Float64(-k), z, Float64(j * x))); else tmp = Float64(b * Float64(j * fma(t, y4, Float64(Float64(-x) * y0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -2e+114], N[(N[(j * N[((-y1) * y3 + N[(b * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[j, 2.55e-163], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, 1.05e-55], N[(N[(i * y), $MachinePrecision] * N[((-c) * x + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.2e-24], N[(N[(a * N[((-y1) * y2 + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[j, 4.6e+192], N[(N[(i * y1), $MachinePrecision] * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2 \cdot 10^{+114}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-y1, y3, b \cdot t\right)\right) \cdot y4\\
\mathbf{elif}\;j \leq 2.55 \cdot 10^{-163}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-55}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(-c, x, k \cdot y5\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{-24}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(-y1, y2, b \cdot y\right)\right) \cdot x\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+192}:\\
\;\;\;\;\left(i \cdot y1\right) \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right)\\
\end{array}
\end{array}
if j < -2e114Initial program 27.5%
Taylor expanded in y4 around inf
Applied rewrites50.4%
Taylor expanded in j around inf
Applied rewrites56.6%
if -2e114 < j < 2.54999999999999995e-163Initial program 27.3%
Taylor expanded in a around inf
Applied rewrites37.5%
Taylor expanded in y3 around inf
Applied rewrites36.8%
if 2.54999999999999995e-163 < j < 1.0500000000000001e-55Initial program 29.6%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites56.0%
Taylor expanded in k around -inf
Applied rewrites37.9%
Taylor expanded in y around -inf
Applied rewrites49.0%
if 1.0500000000000001e-55 < j < 5.2e-24Initial program 0.6%
Taylor expanded in x around inf
Applied rewrites63.1%
Taylor expanded in y0 around inf
Applied rewrites38.1%
Taylor expanded in a around inf
Applied rewrites74.0%
if 5.2e-24 < j < 4.5999999999999999e192Initial program 24.6%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.0%
Taylor expanded in k around -inf
Applied rewrites32.6%
Taylor expanded in y1 around inf
Applied rewrites45.7%
if 4.5999999999999999e192 < j Initial program 31.8%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.3%
Taylor expanded in b around inf
Applied rewrites81.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (fma t y4 (* (- x) y0))))))
(if (<= j -6.8e+102)
t_1
(if (<= j 2.55e-163)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= j 1.05e-55)
(* (* i y) (fma (- c) x (* k y5)))
(if (<= j 5.2e-24)
(* (* a (fma (- y1) y2 (* b y))) x)
(if (<= j 4.6e+192) (* (* i y1) (fma (- k) z (* j x))) 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 = b * (j * fma(t, y4, (-x * y0)));
double tmp;
if (j <= -6.8e+102) {
tmp = t_1;
} else if (j <= 2.55e-163) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (j <= 1.05e-55) {
tmp = (i * y) * fma(-c, x, (k * y5));
} else if (j <= 5.2e-24) {
tmp = (a * fma(-y1, y2, (b * y))) * x;
} else if (j <= 4.6e+192) {
tmp = (i * y1) * fma(-k, z, (j * x));
} 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(b * Float64(j * fma(t, y4, Float64(Float64(-x) * y0)))) tmp = 0.0 if (j <= -6.8e+102) tmp = t_1; elseif (j <= 2.55e-163) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (j <= 1.05e-55) tmp = Float64(Float64(i * y) * fma(Float64(-c), x, Float64(k * y5))); elseif (j <= 5.2e-24) tmp = Float64(Float64(a * fma(Float64(-y1), y2, Float64(b * y))) * x); elseif (j <= 4.6e+192) tmp = Float64(Float64(i * y1) * fma(Float64(-k), z, Float64(j * x))); 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[(b * N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.8e+102], t$95$1, If[LessEqual[j, 2.55e-163], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, 1.05e-55], N[(N[(i * y), $MachinePrecision] * N[((-c) * x + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 5.2e-24], N[(N[(a * N[((-y1) * y2 + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[j, 4.6e+192], N[(N[(i * y1), $MachinePrecision] * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right)\\
\mathbf{if}\;j \leq -6.8 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.55 \cdot 10^{-163}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-55}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(-c, x, k \cdot y5\right)\\
\mathbf{elif}\;j \leq 5.2 \cdot 10^{-24}:\\
\;\;\;\;\left(a \cdot \mathsf{fma}\left(-y1, y2, b \cdot y\right)\right) \cdot x\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+192}:\\
\;\;\;\;\left(i \cdot y1\right) \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -6.8000000000000001e102 or 4.5999999999999999e192 < j Initial program 28.0%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.8%
Taylor expanded in b around inf
Applied rewrites61.5%
if -6.8000000000000001e102 < j < 2.54999999999999995e-163Initial program 27.9%
Taylor expanded in a around inf
Applied rewrites38.2%
Taylor expanded in y3 around inf
Applied rewrites36.6%
if 2.54999999999999995e-163 < j < 1.0500000000000001e-55Initial program 29.6%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites56.0%
Taylor expanded in k around -inf
Applied rewrites37.9%
Taylor expanded in y around -inf
Applied rewrites49.0%
if 1.0500000000000001e-55 < j < 5.2e-24Initial program 0.6%
Taylor expanded in x around inf
Applied rewrites63.1%
Taylor expanded in y0 around inf
Applied rewrites38.1%
Taylor expanded in a around inf
Applied rewrites74.0%
if 5.2e-24 < j < 4.5999999999999999e192Initial program 24.6%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites47.0%
Taylor expanded in k around -inf
Applied rewrites32.6%
Taylor expanded in y1 around inf
Applied rewrites45.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -2650000000000.0)
(* (- i) (* y (fma (- k) y5 (* c x))))
(if (<= k 1.12e-209)
(* (* (- t) (fma b z (* (- y2) y5))) a)
(if (<= k 4e+14)
(* (* y0 (fma c y2 (* (- b) j))) x)
(if (<= k 2.1e+191)
(* (* a y5) (fma (- y) y3 (* t y2)))
(* 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 (k <= -2650000000000.0) {
tmp = -i * (y * fma(-k, y5, (c * x)));
} else if (k <= 1.12e-209) {
tmp = (-t * fma(b, z, (-y2 * y5))) * a;
} else if (k <= 4e+14) {
tmp = (y0 * fma(c, y2, (-b * j))) * x;
} else if (k <= 2.1e+191) {
tmp = (a * y5) * fma(-y, y3, (t * y2));
} 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 (k <= -2650000000000.0) tmp = Float64(Float64(-i) * Float64(y * fma(Float64(-k), y5, Float64(c * x)))); elseif (k <= 1.12e-209) tmp = Float64(Float64(Float64(-t) * fma(b, z, Float64(Float64(-y2) * y5))) * a); elseif (k <= 4e+14) tmp = Float64(Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))) * x); elseif (k <= 2.1e+191) tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2))); 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[k, -2650000000000.0], N[((-i) * N[(y * N[((-k) * y5 + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.12e-209], N[(N[((-t) * N[(b * z + N[((-y2) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 4e+14], N[(N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[k, 2.1e+191], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $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}\;k \leq -2650000000000:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot \mathsf{fma}\left(-k, y5, c \cdot x\right)\right)\\
\mathbf{elif}\;k \leq 1.12 \cdot 10^{-209}:\\
\;\;\;\;\left(\left(-t\right) \cdot \mathsf{fma}\left(b, z, \left(-y2\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;k \leq 4 \cdot 10^{+14}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;k \leq 2.1 \cdot 10^{+191}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\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 k < -2.65e12Initial program 18.3%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.1%
Taylor expanded in k around -inf
Applied rewrites34.2%
Taylor expanded in y around inf
Applied rewrites34.1%
Taylor expanded in y around inf
Applied rewrites43.8%
if -2.65e12 < k < 1.12e-209Initial program 37.0%
Taylor expanded in a around inf
Applied rewrites35.4%
Taylor expanded in t around -inf
Applied rewrites42.9%
if 1.12e-209 < k < 4e14Initial program 20.9%
Taylor expanded in x around inf
Applied rewrites37.5%
Taylor expanded in y0 around inf
Applied rewrites54.1%
if 4e14 < k < 2.1000000000000001e191Initial program 21.4%
Taylor expanded in y5 around -inf
Applied rewrites61.1%
Taylor expanded in a around inf
Applied rewrites50.5%
if 2.1000000000000001e191 < k Initial program 24.1%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in k around -inf
Applied rewrites59.2%
Final simplification47.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -2.4e+44)
(* (* j (fma (- y1) y3 (* b t))) y4)
(if (<= j -1.06e-295)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= j 2.5e-28)
(* (- i) (* y (fma (- k) y5 (* c x))))
(if (<= j 4.6e+192)
(* (* i y1) (fma (- k) z (* j x)))
(* b (* j (fma t y4 (* (- x) 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) {
double tmp;
if (j <= -2.4e+44) {
tmp = (j * fma(-y1, y3, (b * t))) * y4;
} else if (j <= -1.06e-295) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (j <= 2.5e-28) {
tmp = -i * (y * fma(-k, y5, (c * x)));
} else if (j <= 4.6e+192) {
tmp = (i * y1) * fma(-k, z, (j * x));
} else {
tmp = b * (j * fma(t, y4, (-x * y0)));
}
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.4e+44) tmp = Float64(Float64(j * fma(Float64(-y1), y3, Float64(b * t))) * y4); elseif (j <= -1.06e-295) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (j <= 2.5e-28) tmp = Float64(Float64(-i) * Float64(y * fma(Float64(-k), y5, Float64(c * x)))); elseif (j <= 4.6e+192) tmp = Float64(Float64(i * y1) * fma(Float64(-k), z, Float64(j * x))); else tmp = Float64(b * Float64(j * fma(t, y4, Float64(Float64(-x) * y0)))); 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.4e+44], N[(N[(j * N[((-y1) * y3 + N[(b * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[j, -1.06e-295], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 2.5e-28], N[((-i) * N[(y * N[((-k) * y5 + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.6e+192], N[(N[(i * y1), $MachinePrecision] * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.4 \cdot 10^{+44}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(-y1, y3, b \cdot t\right)\right) \cdot y4\\
\mathbf{elif}\;j \leq -1.06 \cdot 10^{-295}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;j \leq 2.5 \cdot 10^{-28}:\\
\;\;\;\;\left(-i\right) \cdot \left(y \cdot \mathsf{fma}\left(-k, y5, c \cdot x\right)\right)\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+192}:\\
\;\;\;\;\left(i \cdot y1\right) \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right)\\
\end{array}
\end{array}
if j < -2.40000000000000013e44Initial program 28.4%
Taylor expanded in y4 around inf
Applied rewrites47.8%
Taylor expanded in j around inf
Applied rewrites53.2%
if -2.40000000000000013e44 < j < -1.0599999999999999e-295Initial program 32.2%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites33.1%
Taylor expanded in k around -inf
Applied rewrites38.5%
if -1.0599999999999999e-295 < j < 2.5000000000000001e-28Initial program 21.1%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.4%
Taylor expanded in k around -inf
Applied rewrites23.9%
Taylor expanded in y around inf
Applied rewrites22.5%
Taylor expanded in y around inf
Applied rewrites40.6%
if 2.5000000000000001e-28 < j < 4.5999999999999999e192Initial program 23.7%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites45.1%
Taylor expanded in k around -inf
Applied rewrites31.3%
Taylor expanded in y1 around inf
Applied rewrites43.9%
if 4.5999999999999999e192 < j Initial program 31.8%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites77.3%
Taylor expanded in b around inf
Applied rewrites81.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (fma t y4 (* (- x) y0))))))
(if (<= j -6.8e+102)
t_1
(if (<= j 2.55e-163)
(* (* y3 (fma y1 z (* (- y) y5))) a)
(if (<= j 4.2e-64)
(* (* i y) (fma (- c) x (* k y5)))
(if (<= j 4.6e+192) (* (* i y1) (fma (- k) z (* j x))) 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 = b * (j * fma(t, y4, (-x * y0)));
double tmp;
if (j <= -6.8e+102) {
tmp = t_1;
} else if (j <= 2.55e-163) {
tmp = (y3 * fma(y1, z, (-y * y5))) * a;
} else if (j <= 4.2e-64) {
tmp = (i * y) * fma(-c, x, (k * y5));
} else if (j <= 4.6e+192) {
tmp = (i * y1) * fma(-k, z, (j * x));
} 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(b * Float64(j * fma(t, y4, Float64(Float64(-x) * y0)))) tmp = 0.0 if (j <= -6.8e+102) tmp = t_1; elseif (j <= 2.55e-163) tmp = Float64(Float64(y3 * fma(y1, z, Float64(Float64(-y) * y5))) * a); elseif (j <= 4.2e-64) tmp = Float64(Float64(i * y) * fma(Float64(-c), x, Float64(k * y5))); elseif (j <= 4.6e+192) tmp = Float64(Float64(i * y1) * fma(Float64(-k), z, Float64(j * x))); 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[(b * N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -6.8e+102], t$95$1, If[LessEqual[j, 2.55e-163], N[(N[(y3 * N[(y1 * z + N[((-y) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[j, 4.2e-64], N[(N[(i * y), $MachinePrecision] * N[((-c) * x + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.6e+192], N[(N[(i * y1), $MachinePrecision] * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right)\\
\mathbf{if}\;j \leq -6.8 \cdot 10^{+102}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 2.55 \cdot 10^{-163}:\\
\;\;\;\;\left(y3 \cdot \mathsf{fma}\left(y1, z, \left(-y\right) \cdot y5\right)\right) \cdot a\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{-64}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(-c, x, k \cdot y5\right)\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+192}:\\
\;\;\;\;\left(i \cdot y1\right) \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -6.8000000000000001e102 or 4.5999999999999999e192 < j Initial program 28.0%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.8%
Taylor expanded in b around inf
Applied rewrites61.5%
if -6.8000000000000001e102 < j < 2.54999999999999995e-163Initial program 27.9%
Taylor expanded in a around inf
Applied rewrites38.2%
Taylor expanded in y3 around inf
Applied rewrites36.6%
if 2.54999999999999995e-163 < j < 4.20000000000000023e-64Initial program 33.3%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites58.8%
Taylor expanded in k around -inf
Applied rewrites42.4%
Taylor expanded in y around -inf
Applied rewrites50.8%
if 4.20000000000000023e-64 < j < 4.5999999999999999e192Initial program 19.9%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.5%
Taylor expanded in k around -inf
Applied rewrites26.6%
Taylor expanded in y1 around inf
Applied rewrites40.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* j (fma t y4 (* (- x) y0))))))
(if (<= j -1.28e+45)
t_1
(if (<= j -1.06e-295)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= j 4.2e-64)
(* (* i y) (fma (- c) x (* k y5)))
(if (<= j 4.6e+192) (* (* i y1) (fma (- k) z (* j x))) 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 = b * (j * fma(t, y4, (-x * y0)));
double tmp;
if (j <= -1.28e+45) {
tmp = t_1;
} else if (j <= -1.06e-295) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (j <= 4.2e-64) {
tmp = (i * y) * fma(-c, x, (k * y5));
} else if (j <= 4.6e+192) {
tmp = (i * y1) * fma(-k, z, (j * x));
} 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(b * Float64(j * fma(t, y4, Float64(Float64(-x) * y0)))) tmp = 0.0 if (j <= -1.28e+45) tmp = t_1; elseif (j <= -1.06e-295) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (j <= 4.2e-64) tmp = Float64(Float64(i * y) * fma(Float64(-c), x, Float64(k * y5))); elseif (j <= 4.6e+192) tmp = Float64(Float64(i * y1) * fma(Float64(-k), z, Float64(j * x))); 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[(b * N[(j * N[(t * y4 + N[((-x) * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -1.28e+45], t$95$1, If[LessEqual[j, -1.06e-295], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.2e-64], N[(N[(i * y), $MachinePrecision] * N[((-c) * x + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 4.6e+192], N[(N[(i * y1), $MachinePrecision] * N[((-k) * z + N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(j \cdot \mathsf{fma}\left(t, y4, \left(-x\right) \cdot y0\right)\right)\\
\mathbf{if}\;j \leq -1.28 \cdot 10^{+45}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq -1.06 \cdot 10^{-295}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;j \leq 4.2 \cdot 10^{-64}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(-c, x, k \cdot y5\right)\\
\mathbf{elif}\;j \leq 4.6 \cdot 10^{+192}:\\
\;\;\;\;\left(i \cdot y1\right) \cdot \mathsf{fma}\left(-k, z, j \cdot x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if j < -1.28000000000000002e45 or 4.5999999999999999e192 < j Initial program 29.4%
Taylor expanded in j around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.1%
Taylor expanded in b around inf
Applied rewrites58.0%
if -1.28000000000000002e45 < j < -1.0599999999999999e-295Initial program 32.2%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites33.1%
Taylor expanded in k around -inf
Applied rewrites38.5%
if -1.0599999999999999e-295 < j < 4.20000000000000023e-64Initial program 24.2%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites44.1%
Taylor expanded in k around -inf
Applied rewrites27.1%
Taylor expanded in y around -inf
Applied rewrites39.8%
if 4.20000000000000023e-64 < j < 4.5999999999999999e192Initial program 19.9%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.5%
Taylor expanded in k around -inf
Applied rewrites26.6%
Taylor expanded in y1 around inf
Applied rewrites40.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* a y5) (fma (- y) y3 (* t y2)))))
(if (<= y5 -8.2e+276)
(* (* i t) (fma (- j) y5 (* c z)))
(if (<= y5 -3.4e+106)
t_1
(if (<= y5 5.4e-62)
(* y1 (* z (fma a y3 (* (- i) k))))
(if (<= y5 5.4e+37) (* (* i y) (fma (- c) x (* k 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 * y5) * fma(-y, y3, (t * y2));
double tmp;
if (y5 <= -8.2e+276) {
tmp = (i * t) * fma(-j, y5, (c * z));
} else if (y5 <= -3.4e+106) {
tmp = t_1;
} else if (y5 <= 5.4e-62) {
tmp = y1 * (z * fma(a, y3, (-i * k)));
} else if (y5 <= 5.4e+37) {
tmp = (i * y) * fma(-c, x, (k * 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 * y5) * fma(Float64(-y), y3, Float64(t * y2))) tmp = 0.0 if (y5 <= -8.2e+276) tmp = Float64(Float64(i * t) * fma(Float64(-j), y5, Float64(c * z))); elseif (y5 <= -3.4e+106) tmp = t_1; elseif (y5 <= 5.4e-62) tmp = Float64(y1 * Float64(z * fma(a, y3, Float64(Float64(-i) * k)))); elseif (y5 <= 5.4e+37) tmp = Float64(Float64(i * y) * fma(Float64(-c), x, Float64(k * 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 * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -8.2e+276], N[(N[(i * t), $MachinePrecision] * N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.4e+106], t$95$1, If[LessEqual[y5, 5.4e-62], N[(y1 * N[(z * N[(a * y3 + N[((-i) * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.4e+37], N[(N[(i * y), $MachinePrecision] * N[((-c) * x + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\mathbf{if}\;y5 \leq -8.2 \cdot 10^{+276}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(-j, y5, c \cdot z\right)\\
\mathbf{elif}\;y5 \leq -3.4 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 5.4 \cdot 10^{-62}:\\
\;\;\;\;y1 \cdot \left(z \cdot \mathsf{fma}\left(a, y3, \left(-i\right) \cdot k\right)\right)\\
\mathbf{elif}\;y5 \leq 5.4 \cdot 10^{+37}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(-c, x, k \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -8.2000000000000004e276Initial program 14.3%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites57.5%
Taylor expanded in k around -inf
Applied rewrites30.6%
Taylor expanded in t around -inf
Applied rewrites85.9%
if -8.2000000000000004e276 < y5 < -3.39999999999999994e106 or 5.39999999999999973e37 < y5 Initial program 20.2%
Taylor expanded in y5 around -inf
Applied rewrites60.7%
Taylor expanded in a around inf
Applied rewrites51.4%
if -3.39999999999999994e106 < y5 < 5.40000000000000039e-62Initial program 31.5%
Taylor expanded in z around -inf
Applied rewrites45.3%
Taylor expanded in y1 around -inf
Applied rewrites33.4%
if 5.40000000000000039e-62 < y5 < 5.39999999999999973e37Initial program 31.8%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites59.3%
Taylor expanded in k around -inf
Applied rewrites19.5%
Taylor expanded in y around -inf
Applied rewrites41.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -3.1e+168)
(* (- z) (* (* a b) t))
(if (<= b 4.1e-96)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= b 3.5e+22)
(* i (* z (fma c t (* (- k) y1))))
(if (<= b 7.2e+213)
(* (* i y) (fma (- c) x (* k y5)))
(* (* (- b) (* j y0)) 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 (b <= -3.1e+168) {
tmp = -z * ((a * b) * t);
} else if (b <= 4.1e-96) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (b <= 3.5e+22) {
tmp = i * (z * fma(c, t, (-k * y1)));
} else if (b <= 7.2e+213) {
tmp = (i * y) * fma(-c, x, (k * y5));
} else {
tmp = (-b * (j * y0)) * 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 (b <= -3.1e+168) tmp = Float64(Float64(-z) * Float64(Float64(a * b) * t)); elseif (b <= 4.1e-96) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (b <= 3.5e+22) tmp = Float64(i * Float64(z * fma(c, t, Float64(Float64(-k) * y1)))); elseif (b <= 7.2e+213) tmp = Float64(Float64(i * y) * fma(Float64(-c), x, Float64(k * y5))); else tmp = Float64(Float64(Float64(-b) * Float64(j * y0)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -3.1e+168], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.1e-96], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.5e+22], N[(i * N[(z * N[(c * t + N[((-k) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.2e+213], N[(N[(i * y), $MachinePrecision] * N[((-c) * x + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * N[(j * y0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+168}:\\
\;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
\mathbf{elif}\;b \leq 4.1 \cdot 10^{-96}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 3.5 \cdot 10^{+22}:\\
\;\;\;\;i \cdot \left(z \cdot \mathsf{fma}\left(c, t, \left(-k\right) \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq 7.2 \cdot 10^{+213}:\\
\;\;\;\;\left(i \cdot y\right) \cdot \mathsf{fma}\left(-c, x, k \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot \left(j \cdot y0\right)\right) \cdot x\\
\end{array}
\end{array}
if b < -3.09999999999999996e168Initial program 14.5%
Taylor expanded in z around -inf
Applied rewrites46.9%
Taylor expanded in b around inf
Applied rewrites61.2%
Taylor expanded in t around inf
Applied rewrites46.8%
if -3.09999999999999996e168 < b < 4.10000000000000024e-96Initial program 31.3%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites42.1%
Taylor expanded in k around -inf
Applied rewrites33.9%
if 4.10000000000000024e-96 < b < 3.5e22Initial program 23.9%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites44.6%
Taylor expanded in z around -inf
Applied rewrites45.0%
if 3.5e22 < b < 7.2000000000000002e213Initial program 22.5%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.7%
Taylor expanded in k around -inf
Applied rewrites31.0%
Taylor expanded in y around -inf
Applied rewrites43.3%
if 7.2000000000000002e213 < b Initial program 25.8%
Taylor expanded in x around inf
Applied rewrites45.2%
Taylor expanded in y0 around inf
Applied rewrites68.2%
Taylor expanded in b around inf
Applied rewrites61.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -3.1e+168)
(* (- z) (* (* a b) t))
(if (<= b 9e-96)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= b 5.6e+110)
(* (* i t) (fma (- j) y5 (* c z)))
(if (<= b 2.3e+218)
(* (* k y4) (* (- b) y))
(* (* (- b) (* j y0)) 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 (b <= -3.1e+168) {
tmp = -z * ((a * b) * t);
} else if (b <= 9e-96) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (b <= 5.6e+110) {
tmp = (i * t) * fma(-j, y5, (c * z));
} else if (b <= 2.3e+218) {
tmp = (k * y4) * (-b * y);
} else {
tmp = (-b * (j * y0)) * 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 (b <= -3.1e+168) tmp = Float64(Float64(-z) * Float64(Float64(a * b) * t)); elseif (b <= 9e-96) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (b <= 5.6e+110) tmp = Float64(Float64(i * t) * fma(Float64(-j), y5, Float64(c * z))); elseif (b <= 2.3e+218) tmp = Float64(Float64(k * y4) * Float64(Float64(-b) * y)); else tmp = Float64(Float64(Float64(-b) * Float64(j * y0)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -3.1e+168], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-96], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e+110], N[(N[(i * t), $MachinePrecision] * N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.3e+218], N[(N[(k * y4), $MachinePrecision] * N[((-b) * y), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * N[(j * y0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+168}:\\
\;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-96}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{+110}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(-j, y5, c \cdot z\right)\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{+218}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(\left(-b\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot \left(j \cdot y0\right)\right) \cdot x\\
\end{array}
\end{array}
if b < -3.09999999999999996e168Initial program 14.5%
Taylor expanded in z around -inf
Applied rewrites46.9%
Taylor expanded in b around inf
Applied rewrites61.2%
Taylor expanded in t around inf
Applied rewrites46.8%
if -3.09999999999999996e168 < b < 9e-96Initial program 31.3%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites42.1%
Taylor expanded in k around -inf
Applied rewrites33.9%
if 9e-96 < b < 5.59999999999999973e110Initial program 24.9%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites48.4%
Taylor expanded in k around -inf
Applied rewrites28.8%
Taylor expanded in t around -inf
Applied rewrites44.1%
if 5.59999999999999973e110 < b < 2.3000000000000001e218Initial program 16.7%
Taylor expanded in y4 around inf
Applied rewrites54.2%
Taylor expanded in k around inf
Applied rewrites42.5%
Taylor expanded in y around inf
Applied rewrites38.1%
if 2.3000000000000001e218 < b Initial program 28.6%
Taylor expanded in x around inf
Applied rewrites46.4%
Taylor expanded in y0 around inf
Applied rewrites71.7%
Taylor expanded in b around inf
Applied rewrites64.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -6.8e+68)
(* i (* k (fma y y5 (* (- y1) z))))
(if (<= i 5.2e-81)
(* (* a y5) (fma (- y) y3 (* t y2)))
(if (<= i 2.85e+53)
(* (- z) (* (* a b) t))
(* (* i t) (fma (- j) y5 (* c 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 (i <= -6.8e+68) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else if (i <= 5.2e-81) {
tmp = (a * y5) * fma(-y, y3, (t * y2));
} else if (i <= 2.85e+53) {
tmp = -z * ((a * b) * t);
} else {
tmp = (i * t) * fma(-j, y5, (c * 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 (i <= -6.8e+68) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); elseif (i <= 5.2e-81) tmp = Float64(Float64(a * y5) * fma(Float64(-y), y3, Float64(t * y2))); elseif (i <= 2.85e+53) tmp = Float64(Float64(-z) * Float64(Float64(a * b) * t)); else tmp = Float64(Float64(i * t) * fma(Float64(-j), y5, Float64(c * z))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -6.8e+68], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 5.2e-81], N[(N[(a * y5), $MachinePrecision] * N[((-y) * y3 + N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 2.85e+53], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], N[(N[(i * t), $MachinePrecision] * N[((-j) * y5 + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -6.8 \cdot 10^{+68}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;i \leq 5.2 \cdot 10^{-81}:\\
\;\;\;\;\left(a \cdot y5\right) \cdot \mathsf{fma}\left(-y, y3, t \cdot y2\right)\\
\mathbf{elif}\;i \leq 2.85 \cdot 10^{+53}:\\
\;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;\left(i \cdot t\right) \cdot \mathsf{fma}\left(-j, y5, c \cdot z\right)\\
\end{array}
\end{array}
if i < -6.8000000000000003e68Initial program 25.7%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites62.0%
Taylor expanded in k around -inf
Applied rewrites52.7%
if -6.8000000000000003e68 < i < 5.1999999999999998e-81Initial program 29.5%
Taylor expanded in y5 around -inf
Applied rewrites40.4%
Taylor expanded in a around inf
Applied rewrites35.6%
if 5.1999999999999998e-81 < i < 2.85000000000000009e53Initial program 26.1%
Taylor expanded in z around -inf
Applied rewrites53.1%
Taylor expanded in b around inf
Applied rewrites44.8%
Taylor expanded in t around inf
Applied rewrites40.3%
if 2.85000000000000009e53 < i Initial program 20.8%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites54.8%
Taylor expanded in k around -inf
Applied rewrites31.8%
Taylor expanded in t around -inf
Applied rewrites42.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -3.1e+168)
(* (- z) (* (* a b) t))
(if (<= b 6.4e+130)
(* i (* k (fma y y5 (* (- y1) z))))
(* (* (- b) (* j y0)) 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 (b <= -3.1e+168) {
tmp = -z * ((a * b) * t);
} else if (b <= 6.4e+130) {
tmp = i * (k * fma(y, y5, (-y1 * z)));
} else {
tmp = (-b * (j * y0)) * 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 (b <= -3.1e+168) tmp = Float64(Float64(-z) * Float64(Float64(a * b) * t)); elseif (b <= 6.4e+130) tmp = Float64(i * Float64(k * fma(y, y5, Float64(Float64(-y1) * z)))); else tmp = Float64(Float64(Float64(-b) * Float64(j * y0)) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -3.1e+168], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.4e+130], N[(i * N[(k * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * N[(j * y0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.1 \cdot 10^{+168}:\\
\;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
\mathbf{elif}\;b \leq 6.4 \cdot 10^{+130}:\\
\;\;\;\;i \cdot \left(k \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot \left(j \cdot y0\right)\right) \cdot x\\
\end{array}
\end{array}
if b < -3.09999999999999996e168Initial program 14.5%
Taylor expanded in z around -inf
Applied rewrites46.9%
Taylor expanded in b around inf
Applied rewrites61.2%
Taylor expanded in t around inf
Applied rewrites46.8%
if -3.09999999999999996e168 < b < 6.4e130Initial program 29.2%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.4%
Taylor expanded in k around -inf
Applied rewrites33.8%
if 6.4e130 < b Initial program 23.9%
Taylor expanded in x around inf
Applied rewrites43.7%
Taylor expanded in y0 around inf
Applied rewrites54.9%
Taylor expanded in b around inf
Applied rewrites46.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y1 -1.15e+87)
(* i (* k (* (- y1) z)))
(if (<= y1 -1.2e-42)
(* (* (* c y0) y2) x)
(if (<= y1 2.65e+144) (* i (* (* k y) y5)) (* (* y2 (* k y1)) 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 (y1 <= -1.15e+87) {
tmp = i * (k * (-y1 * z));
} else if (y1 <= -1.2e-42) {
tmp = ((c * y0) * y2) * x;
} else if (y1 <= 2.65e+144) {
tmp = i * ((k * y) * y5);
} else {
tmp = (y2 * (k * y1)) * y4;
}
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 (y1 <= (-1.15d+87)) then
tmp = i * (k * (-y1 * z))
else if (y1 <= (-1.2d-42)) then
tmp = ((c * y0) * y2) * x
else if (y1 <= 2.65d+144) then
tmp = i * ((k * y) * y5)
else
tmp = (y2 * (k * y1)) * y4
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 (y1 <= -1.15e+87) {
tmp = i * (k * (-y1 * z));
} else if (y1 <= -1.2e-42) {
tmp = ((c * y0) * y2) * x;
} else if (y1 <= 2.65e+144) {
tmp = i * ((k * y) * y5);
} else {
tmp = (y2 * (k * y1)) * y4;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= -1.15e+87: tmp = i * (k * (-y1 * z)) elif y1 <= -1.2e-42: tmp = ((c * y0) * y2) * x elif y1 <= 2.65e+144: tmp = i * ((k * y) * y5) else: tmp = (y2 * (k * y1)) * 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 (y1 <= -1.15e+87) tmp = Float64(i * Float64(k * Float64(Float64(-y1) * z))); elseif (y1 <= -1.2e-42) tmp = Float64(Float64(Float64(c * y0) * y2) * x); elseif (y1 <= 2.65e+144) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = Float64(Float64(y2 * Float64(k * y1)) * y4); 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 (y1 <= -1.15e+87) tmp = i * (k * (-y1 * z)); elseif (y1 <= -1.2e-42) tmp = ((c * y0) * y2) * x; elseif (y1 <= 2.65e+144) tmp = i * ((k * y) * y5); else tmp = (y2 * (k * y1)) * y4; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, -1.15e+87], N[(i * N[(k * N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -1.2e-42], N[(N[(N[(c * y0), $MachinePrecision] * y2), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[y1, 2.65e+144], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(N[(y2 * N[(k * y1), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -1.15 \cdot 10^{+87}:\\
\;\;\;\;i \cdot \left(k \cdot \left(\left(-y1\right) \cdot z\right)\right)\\
\mathbf{elif}\;y1 \leq -1.2 \cdot 10^{-42}:\\
\;\;\;\;\left(\left(c \cdot y0\right) \cdot y2\right) \cdot x\\
\mathbf{elif}\;y1 \leq 2.65 \cdot 10^{+144}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y2 \cdot \left(k \cdot y1\right)\right) \cdot y4\\
\end{array}
\end{array}
if y1 < -1.1500000000000001e87Initial program 19.7%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around -inf
Applied rewrites52.8%
Taylor expanded in y around 0
Applied rewrites40.1%
if -1.1500000000000001e87 < y1 < -1.20000000000000001e-42Initial program 36.6%
Taylor expanded in x around inf
Applied rewrites45.8%
Taylor expanded in y0 around inf
Applied rewrites37.2%
Taylor expanded in b around 0
Applied rewrites37.6%
if -1.20000000000000001e-42 < y1 < 2.6499999999999998e144Initial program 29.7%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.9%
Taylor expanded in k around -inf
Applied rewrites25.7%
Taylor expanded in y around inf
Applied rewrites24.3%
if 2.6499999999999998e144 < y1 Initial program 16.8%
Taylor expanded in y4 around inf
Applied rewrites44.8%
Taylor expanded in y2 around inf
Applied rewrites37.1%
Taylor expanded in t around 0
Applied rewrites34.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= b -3.8e+41) (* (- z) (* (* a b) t)) (if (<= b 1.85e+150) (* i (* (* y5 k) y)) (* (* (- b) (* j y0)) 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 (b <= -3.8e+41) {
tmp = -z * ((a * b) * t);
} else if (b <= 1.85e+150) {
tmp = i * ((y5 * k) * y);
} else {
tmp = (-b * (j * y0)) * x;
}
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 (b <= (-3.8d+41)) then
tmp = -z * ((a * b) * t)
else if (b <= 1.85d+150) then
tmp = i * ((y5 * k) * y)
else
tmp = (-b * (j * y0)) * x
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 (b <= -3.8e+41) {
tmp = -z * ((a * b) * t);
} else if (b <= 1.85e+150) {
tmp = i * ((y5 * k) * y);
} else {
tmp = (-b * (j * y0)) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -3.8e+41: tmp = -z * ((a * b) * t) elif b <= 1.85e+150: tmp = i * ((y5 * k) * y) else: tmp = (-b * (j * y0)) * 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 (b <= -3.8e+41) tmp = Float64(Float64(-z) * Float64(Float64(a * b) * t)); elseif (b <= 1.85e+150) tmp = Float64(i * Float64(Float64(y5 * k) * y)); else tmp = Float64(Float64(Float64(-b) * Float64(j * y0)) * x); 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 (b <= -3.8e+41) tmp = -z * ((a * b) * t); elseif (b <= 1.85e+150) tmp = i * ((y5 * k) * y); else tmp = (-b * (j * y0)) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -3.8e+41], N[((-z) * N[(N[(a * b), $MachinePrecision] * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.85e+150], N[(i * N[(N[(y5 * k), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * N[(j * y0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.8 \cdot 10^{+41}:\\
\;\;\;\;\left(-z\right) \cdot \left(\left(a \cdot b\right) \cdot t\right)\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{+150}:\\
\;\;\;\;i \cdot \left(\left(y5 \cdot k\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot \left(j \cdot y0\right)\right) \cdot x\\
\end{array}
\end{array}
if b < -3.8000000000000001e41Initial program 16.2%
Taylor expanded in z around -inf
Applied rewrites47.0%
Taylor expanded in b around inf
Applied rewrites44.0%
Taylor expanded in t around inf
Applied rewrites35.0%
if -3.8000000000000001e41 < b < 1.84999999999999994e150Initial program 31.0%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.9%
Taylor expanded in k around -inf
Applied rewrites32.8%
Taylor expanded in y around inf
Applied rewrites23.4%
Applied rewrites23.4%
if 1.84999999999999994e150 < b Initial program 24.4%
Taylor expanded in x around inf
Applied rewrites41.7%
Taylor expanded in y0 around inf
Applied rewrites56.6%
Taylor expanded in b around inf
Applied rewrites49.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= b -3.6e+168) (* (* k y4) (* (- b) y)) (if (<= b 1.85e+150) (* i (* (* y5 k) y)) (* (* (- b) (* j y0)) 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 (b <= -3.6e+168) {
tmp = (k * y4) * (-b * y);
} else if (b <= 1.85e+150) {
tmp = i * ((y5 * k) * y);
} else {
tmp = (-b * (j * y0)) * x;
}
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 (b <= (-3.6d+168)) then
tmp = (k * y4) * (-b * y)
else if (b <= 1.85d+150) then
tmp = i * ((y5 * k) * y)
else
tmp = (-b * (j * y0)) * x
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 (b <= -3.6e+168) {
tmp = (k * y4) * (-b * y);
} else if (b <= 1.85e+150) {
tmp = i * ((y5 * k) * y);
} else {
tmp = (-b * (j * y0)) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -3.6e+168: tmp = (k * y4) * (-b * y) elif b <= 1.85e+150: tmp = i * ((y5 * k) * y) else: tmp = (-b * (j * y0)) * 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 (b <= -3.6e+168) tmp = Float64(Float64(k * y4) * Float64(Float64(-b) * y)); elseif (b <= 1.85e+150) tmp = Float64(i * Float64(Float64(y5 * k) * y)); else tmp = Float64(Float64(Float64(-b) * Float64(j * y0)) * x); 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 (b <= -3.6e+168) tmp = (k * y4) * (-b * y); elseif (b <= 1.85e+150) tmp = i * ((y5 * k) * y); else tmp = (-b * (j * y0)) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -3.6e+168], N[(N[(k * y4), $MachinePrecision] * N[((-b) * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.85e+150], N[(i * N[(N[(y5 * k), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], N[(N[((-b) * N[(j * y0), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;b \leq -3.6 \cdot 10^{+168}:\\
\;\;\;\;\left(k \cdot y4\right) \cdot \left(\left(-b\right) \cdot y\right)\\
\mathbf{elif}\;b \leq 1.85 \cdot 10^{+150}:\\
\;\;\;\;i \cdot \left(\left(y5 \cdot k\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-b\right) \cdot \left(j \cdot y0\right)\right) \cdot x\\
\end{array}
\end{array}
if b < -3.5999999999999999e168Initial program 14.5%
Taylor expanded in y4 around inf
Applied rewrites39.8%
Taylor expanded in k around inf
Applied rewrites43.9%
Taylor expanded in y around inf
Applied rewrites40.5%
if -3.5999999999999999e168 < b < 1.84999999999999994e150Initial program 29.0%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites42.7%
Taylor expanded in k around -inf
Applied rewrites33.4%
Taylor expanded in y around inf
Applied rewrites23.3%
Applied rewrites23.3%
if 1.84999999999999994e150 < b Initial program 24.4%
Taylor expanded in x around inf
Applied rewrites41.7%
Taylor expanded in y0 around inf
Applied rewrites56.6%
Taylor expanded in b around inf
Applied rewrites49.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= y1 -5.8e+102) (not (<= y1 2.2e+144))) (* k (* (* y1 y2) y4)) (* i (* (* k y) y5))))
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 ((y1 <= -5.8e+102) || !(y1 <= 2.2e+144)) {
tmp = k * ((y1 * y2) * y4);
} else {
tmp = i * ((k * y) * y5);
}
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 ((y1 <= (-5.8d+102)) .or. (.not. (y1 <= 2.2d+144))) then
tmp = k * ((y1 * y2) * y4)
else
tmp = i * ((k * y) * y5)
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 ((y1 <= -5.8e+102) || !(y1 <= 2.2e+144)) {
tmp = k * ((y1 * y2) * y4);
} else {
tmp = i * ((k * y) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (y1 <= -5.8e+102) or not (y1 <= 2.2e+144): tmp = k * ((y1 * y2) * y4) else: tmp = i * ((k * y) * y5) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((y1 <= -5.8e+102) || !(y1 <= 2.2e+144)) tmp = Float64(k * Float64(Float64(y1 * y2) * y4)); else tmp = Float64(i * Float64(Float64(k * y) * y5)); 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 ((y1 <= -5.8e+102) || ~((y1 <= 2.2e+144))) tmp = k * ((y1 * y2) * y4); else tmp = i * ((k * y) * y5); 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[y1, -5.8e+102], N[Not[LessEqual[y1, 2.2e+144]], $MachinePrecision]], N[(k * N[(N[(y1 * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -5.8 \cdot 10^{+102} \lor \neg \left(y1 \leq 2.2 \cdot 10^{+144}\right):\\
\;\;\;\;k \cdot \left(\left(y1 \cdot y2\right) \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\end{array}
\end{array}
if y1 < -5.8000000000000005e102 or 2.19999999999999988e144 < y1 Initial program 18.9%
Taylor expanded in y4 around inf
Applied rewrites44.1%
Taylor expanded in k around inf
Applied rewrites31.0%
Taylor expanded in y around 0
Applied rewrites34.6%
if -5.8000000000000005e102 < y1 < 2.19999999999999988e144Initial program 30.2%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.5%
Taylor expanded in k around -inf
Applied rewrites24.8%
Taylor expanded in y around inf
Applied rewrites22.5%
Final simplification26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y2 -1.3e+57) (* k (* (* y1 y2) y4)) (if (<= y2 1.5e+61) (* i (* (* k y) y5)) (* (* y0 (* c y2)) 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 (y2 <= -1.3e+57) {
tmp = k * ((y1 * y2) * y4);
} else if (y2 <= 1.5e+61) {
tmp = i * ((k * y) * y5);
} else {
tmp = (y0 * (c * y2)) * x;
}
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 (y2 <= (-1.3d+57)) then
tmp = k * ((y1 * y2) * y4)
else if (y2 <= 1.5d+61) then
tmp = i * ((k * y) * y5)
else
tmp = (y0 * (c * y2)) * x
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 (y2 <= -1.3e+57) {
tmp = k * ((y1 * y2) * y4);
} else if (y2 <= 1.5e+61) {
tmp = i * ((k * y) * y5);
} else {
tmp = (y0 * (c * y2)) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.3e+57: tmp = k * ((y1 * y2) * y4) elif y2 <= 1.5e+61: tmp = i * ((k * y) * y5) else: tmp = (y0 * (c * y2)) * 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 (y2 <= -1.3e+57) tmp = Float64(k * Float64(Float64(y1 * y2) * y4)); elseif (y2 <= 1.5e+61) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = Float64(Float64(y0 * Float64(c * y2)) * x); 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 (y2 <= -1.3e+57) tmp = k * ((y1 * y2) * y4); elseif (y2 <= 1.5e+61) tmp = i * ((k * y) * y5); else tmp = (y0 * (c * y2)) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -1.3e+57], N[(k * N[(N[(y1 * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.5e+61], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(N[(y0 * N[(c * y2), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.3 \cdot 10^{+57}:\\
\;\;\;\;k \cdot \left(\left(y1 \cdot y2\right) \cdot y4\right)\\
\mathbf{elif}\;y2 \leq 1.5 \cdot 10^{+61}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y0 \cdot \left(c \cdot y2\right)\right) \cdot x\\
\end{array}
\end{array}
if y2 < -1.3e57Initial program 24.2%
Taylor expanded in y4 around inf
Applied rewrites44.5%
Taylor expanded in k around inf
Applied rewrites39.1%
Taylor expanded in y around 0
Applied rewrites31.0%
if -1.3e57 < y2 < 1.5e61Initial program 29.6%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.5%
Taylor expanded in k around -inf
Applied rewrites31.0%
Taylor expanded in y around inf
Applied rewrites24.4%
if 1.5e61 < y2 Initial program 20.0%
Taylor expanded in x around inf
Applied rewrites46.3%
Taylor expanded in y0 around inf
Applied rewrites45.1%
Taylor expanded in b around 0
Applied rewrites35.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y2 -1.3e+57) (* k (* (* y1 y2) y4)) (if (<= y2 1.5e+61) (* i (* (* k y) y5)) (* (* (* c y0) y2) 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 (y2 <= -1.3e+57) {
tmp = k * ((y1 * y2) * y4);
} else if (y2 <= 1.5e+61) {
tmp = i * ((k * y) * y5);
} else {
tmp = ((c * y0) * y2) * x;
}
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 (y2 <= (-1.3d+57)) then
tmp = k * ((y1 * y2) * y4)
else if (y2 <= 1.5d+61) then
tmp = i * ((k * y) * y5)
else
tmp = ((c * y0) * y2) * x
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 (y2 <= -1.3e+57) {
tmp = k * ((y1 * y2) * y4);
} else if (y2 <= 1.5e+61) {
tmp = i * ((k * y) * y5);
} else {
tmp = ((c * y0) * y2) * x;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.3e+57: tmp = k * ((y1 * y2) * y4) elif y2 <= 1.5e+61: tmp = i * ((k * y) * y5) else: tmp = ((c * y0) * y2) * 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 (y2 <= -1.3e+57) tmp = Float64(k * Float64(Float64(y1 * y2) * y4)); elseif (y2 <= 1.5e+61) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = Float64(Float64(Float64(c * y0) * y2) * x); 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 (y2 <= -1.3e+57) tmp = k * ((y1 * y2) * y4); elseif (y2 <= 1.5e+61) tmp = i * ((k * y) * y5); else tmp = ((c * y0) * y2) * x; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -1.3e+57], N[(k * N[(N[(y1 * y2), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.5e+61], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(N[(N[(c * y0), $MachinePrecision] * y2), $MachinePrecision] * x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.3 \cdot 10^{+57}:\\
\;\;\;\;k \cdot \left(\left(y1 \cdot y2\right) \cdot y4\right)\\
\mathbf{elif}\;y2 \leq 1.5 \cdot 10^{+61}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(c \cdot y0\right) \cdot y2\right) \cdot x\\
\end{array}
\end{array}
if y2 < -1.3e57Initial program 24.2%
Taylor expanded in y4 around inf
Applied rewrites44.5%
Taylor expanded in k around inf
Applied rewrites39.1%
Taylor expanded in y around 0
Applied rewrites31.0%
if -1.3e57 < y2 < 1.5e61Initial program 29.6%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.5%
Taylor expanded in k around -inf
Applied rewrites31.0%
Taylor expanded in y around inf
Applied rewrites24.4%
if 1.5e61 < y2 Initial program 20.0%
Taylor expanded in x around inf
Applied rewrites46.3%
Taylor expanded in y0 around inf
Applied rewrites45.1%
Taylor expanded in b around 0
Applied rewrites33.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* (* k y) y5)))
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 * ((k * y) * y5);
}
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 * ((k * y) * y5)
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 * ((k * y) * y5);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * ((k * y) * y5)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(Float64(k * y) * y5)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * ((k * y) * y5); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(\left(k \cdot y\right) \cdot y5\right)
\end{array}
Initial program 26.7%
Taylor expanded in i around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.8%
Taylor expanded in k around -inf
Applied rewrites29.1%
Taylor expanded in y around inf
Applied rewrites20.9%
(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 2025017
(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)))))