
(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 36 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 j t (* (- y) k)))
(t_2 (fma y2 k (* (- y3) j)))
(t_3 (fma j x (* (- k) z)))
(t_4 (fma y2 t (* (- y3) y))))
(if (<= b -51000000.0)
(*
(- (fma (fma y x (* (- t) z)) a (* (fma j t (* (- k) y)) y4)) (* t_3 y0))
b)
(if (<= b 7.4e-267)
(* (- y5) (fma t_1 i (fma t_2 y0 (* (- a) t_4))))
(if (<= b 9e-94)
(*
(-
(fma (fma y0 c (* (- a) y1)) y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= b 3e+68)
(*
(-
(fma (- y5) (fma y2 k (* (- j) y3)) (* (fma y2 x (* (- y3) z)) c))
(* t_3 b))
y0)
(* (fma t_1 b (fma t_2 y1 (* (- c) t_4))) 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 t_1 = fma(j, t, (-y * k));
double t_2 = fma(y2, k, (-y3 * j));
double t_3 = fma(j, x, (-k * z));
double t_4 = fma(y2, t, (-y3 * y));
double tmp;
if (b <= -51000000.0) {
tmp = (fma(fma(y, x, (-t * z)), a, (fma(j, t, (-k * y)) * y4)) - (t_3 * y0)) * b;
} else if (b <= 7.4e-267) {
tmp = -y5 * fma(t_1, i, fma(t_2, y0, (-a * t_4)));
} else if (b <= 9e-94) {
tmp = (fma(fma(y0, c, (-a * y1)), y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (b <= 3e+68) {
tmp = (fma(-y5, fma(y2, k, (-j * y3)), (fma(y2, x, (-y3 * z)) * c)) - (t_3 * b)) * y0;
} else {
tmp = fma(t_1, b, fma(t_2, y1, (-c * t_4))) * y4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-y) * k)) t_2 = fma(y2, k, Float64(Float64(-y3) * j)) t_3 = fma(j, x, Float64(Float64(-k) * z)) t_4 = fma(y2, t, Float64(Float64(-y3) * y)) tmp = 0.0 if (b <= -51000000.0) tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(fma(j, t, Float64(Float64(-k) * y)) * y4)) - Float64(t_3 * y0)) * b); elseif (b <= 7.4e-267) tmp = Float64(Float64(-y5) * fma(t_1, i, fma(t_2, y0, Float64(Float64(-a) * t_4)))); elseif (b <= 9e-94) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-a) * y1)), y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (b <= 3e+68) tmp = Float64(Float64(fma(Float64(-y5), fma(y2, k, Float64(Float64(-j) * y3)), Float64(fma(y2, x, Float64(Float64(-y3) * z)) * c)) - Float64(t_3 * b)) * y0); else tmp = Float64(fma(t_1, b, fma(t_2, y1, Float64(Float64(-c) * t_4))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-y) * k), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * k + N[((-y3) * j), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(y2 * t + N[((-y3) * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -51000000.0], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[b, 7.4e-267], N[((-y5) * N[(t$95$1 * i + N[(t$95$2 * y0 + N[((-a) * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9e-94], N[(N[(N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 3e+68], N[(N[(N[((-y5) * N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] + N[(N[(y2 * x + N[((-y3) * z), $MachinePrecision]), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * b), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(t$95$1 * b + N[(t$95$2 * y1 + N[((-c) * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-y\right) \cdot k\right)\\
t_2 := \mathsf{fma}\left(y2, k, \left(-y3\right) \cdot j\right)\\
t_3 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
t_4 := \mathsf{fma}\left(y2, t, \left(-y3\right) \cdot y\right)\\
\mathbf{if}\;b \leq -51000000:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - t\_3 \cdot y0\right) \cdot b\\
\mathbf{elif}\;b \leq 7.4 \cdot 10^{-267}:\\
\;\;\;\;\left(-y5\right) \cdot \mathsf{fma}\left(t\_1, i, \mathsf{fma}\left(t\_2, y0, \left(-a\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;b \leq 9 \cdot 10^{-94}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;b \leq 3 \cdot 10^{+68}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y5, \mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), \mathsf{fma}\left(y2, x, \left(-y3\right) \cdot z\right) \cdot c\right) - t\_3 \cdot b\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(t\_1, b, \mathsf{fma}\left(t\_2, y1, \left(-c\right) \cdot t\_4\right)\right) \cdot y4\\
\end{array}
\end{array}
if b < -5.1e7Initial program 26.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.9%
if -5.1e7 < b < 7.39999999999999971e-267Initial program 31.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites30.9%
Taylor expanded in y around 0
Applied rewrites32.9%
Taylor expanded in y0 around inf
Applied rewrites35.9%
Taylor expanded in y5 around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
Applied rewrites53.5%
if 7.39999999999999971e-267 < b < 9.0000000000000004e-94Initial program 27.3%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.2%
if 9.0000000000000004e-94 < b < 3.0000000000000002e68Initial program 13.4%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.1%
if 3.0000000000000002e68 < b Initial program 20.2%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites34.3%
Taylor expanded in y around 0
Applied rewrites32.3%
Taylor expanded in y0 around inf
Applied rewrites34.3%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))
(if (<= t_1 INFINITY)
t_1
(*
(fma
(fma j t (* (- y) k))
b
(fma (fma y2 k (* (- y3) j)) y1 (* (- c) (fma y2 t (* (- y3) y)))))
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 t_1 = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = fma(fma(j, t, (-y * k)), b, fma(fma(y2, k, (-y3 * j)), y1, (-c * fma(y2, t, (-y3 * y))))) * y4;
}
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(fma(fma(j, t, Float64(Float64(-y) * k)), b, fma(fma(y2, k, Float64(Float64(-y3) * j)), y1, Float64(Float64(-c) * fma(y2, t, Float64(Float64(-y3) * y))))) * y4); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(N[(N[(j * t + N[((-y) * k), $MachinePrecision]), $MachinePrecision] * b + N[(N[(y2 * k + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y1 + N[((-c) * N[(y2 * t + N[((-y3) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $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}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-y\right) \cdot k\right), b, \mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-y3\right) \cdot j\right), y1, \left(-c\right) \cdot \mathsf{fma}\left(y2, t, \left(-y3\right) \cdot y\right)\right)\right) \cdot y4\\
\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 85.9%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites36.2%
Taylor expanded in y around 0
Applied rewrites38.5%
Taylor expanded in y0 around inf
Applied rewrites38.9%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
(-
(fma (fma y x (* (- t) z)) a (* (fma j t (* (- k) y)) y4))
(* (fma j x (* (- k) z)) y0))
b)))
(if (<= b -51000000.0)
t_1
(if (<= b 7.4e-267)
(*
(- y5)
(fma
(fma j t (* (- y) k))
i
(fma (fma y2 k (* (- y3) j)) y0 (* (- a) (fma y2 t (* (- y3) y))))))
(if (<= b 2.1e-24)
(*
(-
(fma (fma y0 c (* (- a) y1)) y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= b 4e+173) (* (* j (fma y3 y5 (* (- b) x))) y0) 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 = (fma(fma(y, x, (-t * z)), a, (fma(j, t, (-k * y)) * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
double tmp;
if (b <= -51000000.0) {
tmp = t_1;
} else if (b <= 7.4e-267) {
tmp = -y5 * fma(fma(j, t, (-y * k)), i, fma(fma(y2, k, (-y3 * j)), y0, (-a * fma(y2, t, (-y3 * y)))));
} else if (b <= 2.1e-24) {
tmp = (fma(fma(y0, c, (-a * y1)), y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (b <= 4e+173) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} 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(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(fma(j, t, Float64(Float64(-k) * y)) * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b) tmp = 0.0 if (b <= -51000000.0) tmp = t_1; elseif (b <= 7.4e-267) tmp = Float64(Float64(-y5) * fma(fma(j, t, Float64(Float64(-y) * k)), i, fma(fma(y2, k, Float64(Float64(-y3) * j)), y0, Float64(Float64(-a) * fma(y2, t, Float64(Float64(-y3) * y)))))); elseif (b <= 2.1e-24) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-a) * y1)), y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (b <= 4e+173) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); 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[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -51000000.0], t$95$1, If[LessEqual[b, 7.4e-267], N[((-y5) * N[(N[(j * t + N[((-y) * k), $MachinePrecision]), $MachinePrecision] * i + N[(N[(y2 * k + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y0 + N[((-a) * N[(y2 * t + N[((-y3) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-24], N[(N[(N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 4e+173], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{if}\;b \leq -51000000:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 7.4 \cdot 10^{-267}:\\
\;\;\;\;\left(-y5\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-y\right) \cdot k\right), i, \mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-y3\right) \cdot j\right), y0, \left(-a\right) \cdot \mathsf{fma}\left(y2, t, \left(-y3\right) \cdot y\right)\right)\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-24}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+173}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -5.1e7 or 4.0000000000000001e173 < b Initial program 26.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.9%
if -5.1e7 < b < 7.39999999999999971e-267Initial program 31.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites30.9%
Taylor expanded in y around 0
Applied rewrites32.9%
Taylor expanded in y0 around inf
Applied rewrites35.9%
Taylor expanded in y5 around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
Applied rewrites53.5%
if 7.39999999999999971e-267 < b < 2.0999999999999999e-24Initial program 22.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.6%
if 2.0999999999999999e-24 < b < 4.0000000000000001e173Initial program 14.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.1%
Taylor expanded in j around inf
Applied rewrites58.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2
(*
(-
(fma (fma y x (* (- t) z)) a (* t_1 y4))
(* (fma j x (* (- k) z)) y0))
b)))
(if (<= b -51000000.0)
t_2
(if (<= b 7.4e-267)
(*
(- y5)
(-
(fma (fma y2 k (* (- j) y3)) y0 (* t_1 i))
(* (fma y2 t (* (- y) y3)) a)))
(if (<= b 2.1e-24)
(*
(-
(fma (fma y0 c (* (- a) y1)) y2 (* (fma b a (* (- c) i)) y))
(* (fma y0 b (* (- i) y1)) j))
x)
(if (<= b 4e+173) (* (* j (fma y3 y5 (* (- b) x))) y0) t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, t, (-k * y));
double t_2 = (fma(fma(y, x, (-t * z)), a, (t_1 * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
double tmp;
if (b <= -51000000.0) {
tmp = t_2;
} else if (b <= 7.4e-267) {
tmp = -y5 * (fma(fma(y2, k, (-j * y3)), y0, (t_1 * i)) - (fma(y2, t, (-y * y3)) * a));
} else if (b <= 2.1e-24) {
tmp = (fma(fma(y0, c, (-a * y1)), y2, (fma(b, a, (-c * i)) * y)) - (fma(y0, b, (-i * y1)) * j)) * x;
} else if (b <= 4e+173) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else {
tmp = t_2;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(t_1 * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b) tmp = 0.0 if (b <= -51000000.0) tmp = t_2; elseif (b <= 7.4e-267) tmp = Float64(Float64(-y5) * Float64(fma(fma(y2, k, Float64(Float64(-j) * y3)), y0, Float64(t_1 * i)) - Float64(fma(y2, t, Float64(Float64(-y) * y3)) * a))); elseif (b <= 2.1e-24) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-a) * y1)), y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(fma(y0, b, Float64(Float64(-i) * y1)) * j)) * x); elseif (b <= 4e+173) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); else tmp = t_2; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[b, -51000000.0], t$95$2, If[LessEqual[b, 7.4e-267], N[((-y5) * N[(N[(N[(y2 * k + N[((-j) * y3), $MachinePrecision]), $MachinePrecision] * y0 + N[(t$95$1 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * t + N[((-y) * y3), $MachinePrecision]), $MachinePrecision] * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.1e-24], N[(N[(N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision] * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[b, 4e+173], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], t$95$2]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, t\_1 \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{if}\;b \leq -51000000:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq 7.4 \cdot 10^{-267}:\\
\;\;\;\;\left(-y5\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-j\right) \cdot y3\right), y0, t\_1 \cdot i\right) - \mathsf{fma}\left(y2, t, \left(-y\right) \cdot y3\right) \cdot a\right)\\
\mathbf{elif}\;b \leq 2.1 \cdot 10^{-24}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right) \cdot j\right) \cdot x\\
\mathbf{elif}\;b \leq 4 \cdot 10^{+173}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if b < -5.1e7 or 4.0000000000000001e173 < b Initial program 26.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.9%
if -5.1e7 < b < 7.39999999999999971e-267Initial program 31.8%
Taylor expanded in y5 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites53.5%
if 7.39999999999999971e-267 < b < 2.0999999999999999e-24Initial program 22.6%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.6%
if 2.0999999999999999e-24 < b < 4.0000000000000001e173Initial program 14.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.1%
Taylor expanded in j around inf
Applied rewrites58.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma j t (* (- k) y)))
(t_2 (fma y x (* (- t) z)))
(t_3 (fma j x (* (- k) z))))
(if (<= i -1.7e+66)
(* (- i) (- (fma t_2 c (* t_1 y5)) (* t_3 y1)))
(if (<= i 2.6e-242)
(*
(fma
(fma j t (* (- y) k))
b
(fma (fma y2 k (* (- y3) j)) y1 (* (- c) (fma y2 t (* (- y3) y)))))
y4)
(if (<= i 2.8e-173)
(*
(- y3)
(-
(fma (fma y4 y1 (* (- y0) y5)) j (* (fma y0 c (* (- a) y1)) z))
(* (fma y4 c (* (- a) y5)) y)))
(if (<= i 4.8e+80)
(* (- (fma t_2 a (* t_1 y4)) (* t_3 y0)) b)
(* (* (- y1) (fma a y2 (* (- i) j))) x)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = fma(j, t, (-k * y));
double t_2 = fma(y, x, (-t * z));
double t_3 = fma(j, x, (-k * z));
double tmp;
if (i <= -1.7e+66) {
tmp = -i * (fma(t_2, c, (t_1 * y5)) - (t_3 * y1));
} else if (i <= 2.6e-242) {
tmp = fma(fma(j, t, (-y * k)), b, fma(fma(y2, k, (-y3 * j)), y1, (-c * fma(y2, t, (-y3 * y))))) * y4;
} else if (i <= 2.8e-173) {
tmp = -y3 * (fma(fma(y4, y1, (-y0 * y5)), j, (fma(y0, c, (-a * y1)) * z)) - (fma(y4, c, (-a * y5)) * y));
} else if (i <= 4.8e+80) {
tmp = (fma(t_2, a, (t_1 * y4)) - (t_3 * y0)) * b;
} else {
tmp = (-y1 * fma(a, y2, (-i * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(j, t, Float64(Float64(-k) * y)) t_2 = fma(y, x, Float64(Float64(-t) * z)) t_3 = fma(j, x, Float64(Float64(-k) * z)) tmp = 0.0 if (i <= -1.7e+66) tmp = Float64(Float64(-i) * Float64(fma(t_2, c, Float64(t_1 * y5)) - Float64(t_3 * y1))); elseif (i <= 2.6e-242) tmp = Float64(fma(fma(j, t, Float64(Float64(-y) * k)), b, fma(fma(y2, k, Float64(Float64(-y3) * j)), y1, Float64(Float64(-c) * fma(y2, t, Float64(Float64(-y3) * y))))) * y4); elseif (i <= 2.8e-173) tmp = Float64(Float64(-y3) * Float64(fma(fma(y4, y1, Float64(Float64(-y0) * y5)), j, Float64(fma(y0, c, Float64(Float64(-a) * y1)) * z)) - Float64(fma(y4, c, Float64(Float64(-a) * y5)) * y))); elseif (i <= 4.8e+80) tmp = Float64(Float64(fma(t_2, a, Float64(t_1 * y4)) - Float64(t_3 * y0)) * b); else tmp = Float64(Float64(Float64(-y1) * fma(a, y2, Float64(Float64(-i) * j))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[i, -1.7e+66], 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[i, 2.6e-242], N[(N[(N[(j * t + N[((-y) * k), $MachinePrecision]), $MachinePrecision] * b + N[(N[(y2 * k + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y1 + N[((-c) * N[(y2 * t + N[((-y3) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision], If[LessEqual[i, 2.8e-173], N[((-y3) * N[(N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * j + N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] - N[(N[(y4 * c + N[((-a) * y5), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e+80], N[(N[(N[(t$95$2 * a + N[(t$95$1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t$95$3 * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[((-y1) * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right)\\
t_2 := \mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right)\\
t_3 := \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right)\\
\mathbf{if}\;i \leq -1.7 \cdot 10^{+66}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(t\_2, c, t\_1 \cdot y5\right) - t\_3 \cdot y1\right)\\
\mathbf{elif}\;i \leq 2.6 \cdot 10^{-242}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-y\right) \cdot k\right), b, \mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-y3\right) \cdot j\right), y1, \left(-c\right) \cdot \mathsf{fma}\left(y2, t, \left(-y3\right) \cdot y\right)\right)\right) \cdot y4\\
\mathbf{elif}\;i \leq 2.8 \cdot 10^{-173}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right), j, \mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right) \cdot z\right) - \mathsf{fma}\left(y4, c, \left(-a\right) \cdot y5\right) \cdot y\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+80}:\\
\;\;\;\;\left(\mathsf{fma}\left(t\_2, a, t\_1 \cdot y4\right) - t\_3 \cdot y0\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\right) \cdot x\\
\end{array}
\end{array}
if i < -1.70000000000000015e66Initial program 26.2%
Taylor expanded in i around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites63.0%
if -1.70000000000000015e66 < i < 2.60000000000000017e-242Initial program 23.4%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in y around 0
Applied rewrites38.4%
Taylor expanded in y0 around inf
Applied rewrites39.5%
Taylor expanded in y4 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.0%
if 2.60000000000000017e-242 < i < 2.7999999999999999e-173Initial program 33.6%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites60.4%
if 2.7999999999999999e-173 < i < 4.79999999999999958e80Initial program 22.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.5%
if 4.79999999999999958e80 < i Initial program 27.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in y1 around -inf
Applied rewrites62.8%
Final simplification56.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (fma y0 b (* (- i) y1))))
(if (<= k -4.2e+145)
(*
(- i)
(-
(fma (fma y x (* (- t) z)) c (* (fma j t (* (- k) y)) y5))
(* (fma j x (* (- k) z)) y1)))
(if (<= k -2.5e-261)
(*
(- y5)
(fma
(fma j t (* (- y) k))
i
(fma (fma y2 k (* (- y3) j)) y0 (* (- a) (fma y2 t (* (- y3) y))))))
(if (<= k 8.2e+18)
(*
(-
(fma (fma y0 c (* (- a) y1)) y2 (* (fma b a (* (- c) i)) y))
(* t_1 j))
x)
(*
(+
(fma (- y) (fma y4 b (* (- i) y5)) (* (fma y4 y1 (* (- y0) y5)) y2))
(* z t_1))
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 = fma(y0, b, (-i * y1));
double tmp;
if (k <= -4.2e+145) {
tmp = -i * (fma(fma(y, x, (-t * z)), c, (fma(j, t, (-k * y)) * y5)) - (fma(j, x, (-k * z)) * y1));
} else if (k <= -2.5e-261) {
tmp = -y5 * fma(fma(j, t, (-y * k)), i, fma(fma(y2, k, (-y3 * j)), y0, (-a * fma(y2, t, (-y3 * y)))));
} else if (k <= 8.2e+18) {
tmp = (fma(fma(y0, c, (-a * y1)), y2, (fma(b, a, (-c * i)) * y)) - (t_1 * j)) * x;
} else {
tmp = (fma(-y, fma(y4, b, (-i * y5)), (fma(y4, y1, (-y0 * y5)) * y2)) + (z * t_1)) * k;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = fma(y0, b, Float64(Float64(-i) * y1)) tmp = 0.0 if (k <= -4.2e+145) tmp = Float64(Float64(-i) * Float64(fma(fma(y, x, Float64(Float64(-t) * z)), c, Float64(fma(j, t, Float64(Float64(-k) * y)) * y5)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y1))); elseif (k <= -2.5e-261) tmp = Float64(Float64(-y5) * fma(fma(j, t, Float64(Float64(-y) * k)), i, fma(fma(y2, k, Float64(Float64(-y3) * j)), y0, Float64(Float64(-a) * fma(y2, t, Float64(Float64(-y3) * y)))))); elseif (k <= 8.2e+18) tmp = Float64(Float64(fma(fma(y0, c, Float64(Float64(-a) * y1)), y2, Float64(fma(b, a, Float64(Float64(-c) * i)) * y)) - Float64(t_1 * j)) * x); else tmp = Float64(Float64(fma(Float64(-y), fma(y4, b, Float64(Float64(-i) * y5)), Float64(fma(y4, y1, Float64(Float64(-y0) * y5)) * y2)) + Float64(z * t_1)) * 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[(y0 * b + N[((-i) * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -4.2e+145], N[((-i) * N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * c + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -2.5e-261], N[((-y5) * N[(N[(j * t + N[((-y) * k), $MachinePrecision]), $MachinePrecision] * i + N[(N[(y2 * k + N[((-y3) * j), $MachinePrecision]), $MachinePrecision] * y0 + N[((-a) * N[(y2 * t + N[((-y3) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 8.2e+18], N[(N[(N[(N[(y0 * c + N[((-a) * y1), $MachinePrecision]), $MachinePrecision] * y2 + N[(N[(b * a + N[((-c) * i), $MachinePrecision]), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision] - N[(t$95$1 * j), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(N[(N[((-y) * N[(y4 * b + N[((-i) * y5), $MachinePrecision]), $MachinePrecision] + N[(N[(y4 * y1 + N[((-y0) * y5), $MachinePrecision]), $MachinePrecision] * y2), $MachinePrecision]), $MachinePrecision] + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(y0, b, \left(-i\right) \cdot y1\right)\\
\mathbf{if}\;k \leq -4.2 \cdot 10^{+145}:\\
\;\;\;\;\left(-i\right) \cdot \left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), c, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y5\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y1\right)\\
\mathbf{elif}\;k \leq -2.5 \cdot 10^{-261}:\\
\;\;\;\;\left(-y5\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(j, t, \left(-y\right) \cdot k\right), i, \mathsf{fma}\left(\mathsf{fma}\left(y2, k, \left(-y3\right) \cdot j\right), y0, \left(-a\right) \cdot \mathsf{fma}\left(y2, t, \left(-y3\right) \cdot y\right)\right)\right)\\
\mathbf{elif}\;k \leq 8.2 \cdot 10^{+18}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y0, c, \left(-a\right) \cdot y1\right), y2, \mathsf{fma}\left(b, a, \left(-c\right) \cdot i\right) \cdot y\right) - t\_1 \cdot j\right) \cdot x\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(-y, \mathsf{fma}\left(y4, b, \left(-i\right) \cdot y5\right), \mathsf{fma}\left(y4, y1, \left(-y0\right) \cdot y5\right) \cdot y2\right) + z \cdot t\_1\right) \cdot k\\
\end{array}
\end{array}
if k < -4.19999999999999979e145Initial program 30.8%
Taylor expanded in i around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites73.2%
if -4.19999999999999979e145 < k < -2.4999999999999999e-261Initial program 24.6%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y around 0
Applied rewrites37.0%
Taylor expanded in y0 around inf
Applied rewrites39.7%
Taylor expanded in y5 around -inf
associate-*r*N/A
mul-1-negN/A
lower-*.f64N/A
lower-neg.f64N/A
associate--l+N/A
*-commutativeN/A
lower-fma.f64N/A
*-commutativeN/A
fp-cancel-sub-sign-invN/A
lower-fma.f64N/A
lower-*.f64N/A
lower-neg.f64N/A
fp-cancel-sub-sign-invN/A
Applied rewrites48.6%
if -2.4999999999999999e-261 < k < 8.2e18Initial program 24.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites52.7%
if 8.2e18 < k Initial program 23.7%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites61.7%
Final simplification56.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -9e+151)
(* (* i k) (fma y y5 (* (- y1) z)))
(if (<= i -1.35e-260)
(*
(- y3)
(fma
j
(* y0 (fma y1 (/ y4 y0) (- y5)))
(* z (fma -1.0 (* a y1) (* c y0)))))
(if (<= i 4.8e+80)
(*
(-
(fma (fma y x (* (- t) z)) a (* (fma j t (* (- k) y)) y4))
(* (fma j x (* (- k) z)) y0))
b)
(* (* (- y1) (fma a y2 (* (- i) j))) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -9e+151) {
tmp = (i * k) * fma(y, y5, (-y1 * z));
} else if (i <= -1.35e-260) {
tmp = -y3 * fma(j, (y0 * fma(y1, (y4 / y0), -y5)), (z * fma(-1.0, (a * y1), (c * y0))));
} else if (i <= 4.8e+80) {
tmp = (fma(fma(y, x, (-t * z)), a, (fma(j, t, (-k * y)) * y4)) - (fma(j, x, (-k * z)) * y0)) * b;
} else {
tmp = (-y1 * fma(a, y2, (-i * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -9e+151) tmp = Float64(Float64(i * k) * fma(y, y5, Float64(Float64(-y1) * z))); elseif (i <= -1.35e-260) tmp = Float64(Float64(-y3) * fma(j, Float64(y0 * fma(y1, Float64(y4 / y0), Float64(-y5))), Float64(z * fma(-1.0, Float64(a * y1), Float64(c * y0))))); elseif (i <= 4.8e+80) tmp = Float64(Float64(fma(fma(y, x, Float64(Float64(-t) * z)), a, Float64(fma(j, t, Float64(Float64(-k) * y)) * y4)) - Float64(fma(j, x, Float64(Float64(-k) * z)) * y0)) * b); else tmp = Float64(Float64(Float64(-y1) * fma(a, y2, Float64(Float64(-i) * j))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -9e+151], N[(N[(i * k), $MachinePrecision] * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -1.35e-260], N[((-y3) * N[(j * N[(y0 * N[(y1 * N[(y4 / y0), $MachinePrecision] + (-y5)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.8e+80], N[(N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * a + N[(N[(j * t + N[((-k) * y), $MachinePrecision]), $MachinePrecision] * y4), $MachinePrecision]), $MachinePrecision] - N[(N[(j * x + N[((-k) * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision], N[(N[((-y1) * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9 \cdot 10^{+151}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\\
\mathbf{elif}\;i \leq -1.35 \cdot 10^{-260}:\\
\;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(j, y0 \cdot \mathsf{fma}\left(y1, \frac{y4}{y0}, -y5\right), z \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 4.8 \cdot 10^{+80}:\\
\;\;\;\;\left(\mathsf{fma}\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right), a, \mathsf{fma}\left(j, t, \left(-k\right) \cdot y\right) \cdot y4\right) - \mathsf{fma}\left(j, x, \left(-k\right) \cdot z\right) \cdot y0\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\right) \cdot x\\
\end{array}
\end{array}
if i < -8.9999999999999997e151Initial program 31.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.5%
Taylor expanded in i around inf
Applied rewrites66.2%
if -8.9999999999999997e151 < i < -1.35000000000000003e-260Initial program 19.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites46.7%
Taylor expanded in y around 0
Applied rewrites47.7%
Taylor expanded in y0 around inf
Applied rewrites48.7%
if -1.35000000000000003e-260 < i < 4.79999999999999958e80Initial program 26.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites51.5%
if 4.79999999999999958e80 < i Initial program 27.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in y1 around -inf
Applied rewrites62.8%
Final simplification54.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -9e+151)
(* (* i k) (fma y y5 (* (- y1) z)))
(if (<= i 1.5e-126)
(*
(- y3)
(fma
j
(* y0 (fma y1 (/ y4 y0) (- y5)))
(* z (fma -1.0 (* a y1) (* c y0)))))
(if (<= i 3.5e+80)
(* (* (fma y x (* (- t) z)) b) a)
(* (* (- y1) (fma a y2 (* (- i) j))) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -9e+151) {
tmp = (i * k) * fma(y, y5, (-y1 * z));
} else if (i <= 1.5e-126) {
tmp = -y3 * fma(j, (y0 * fma(y1, (y4 / y0), -y5)), (z * fma(-1.0, (a * y1), (c * y0))));
} else if (i <= 3.5e+80) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else {
tmp = (-y1 * fma(a, y2, (-i * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -9e+151) tmp = Float64(Float64(i * k) * fma(y, y5, Float64(Float64(-y1) * z))); elseif (i <= 1.5e-126) tmp = Float64(Float64(-y3) * fma(j, Float64(y0 * fma(y1, Float64(y4 / y0), Float64(-y5))), Float64(z * fma(-1.0, Float64(a * y1), Float64(c * y0))))); elseif (i <= 3.5e+80) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); else tmp = Float64(Float64(Float64(-y1) * fma(a, y2, Float64(Float64(-i) * j))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -9e+151], N[(N[(i * k), $MachinePrecision] * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.5e-126], N[((-y3) * N[(j * N[(y0 * N[(y1 * N[(y4 / y0), $MachinePrecision] + (-y5)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(-1.0 * N[(a * y1), $MachinePrecision] + N[(c * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.5e+80], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], N[(N[((-y1) * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9 \cdot 10^{+151}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\\
\mathbf{elif}\;i \leq 1.5 \cdot 10^{-126}:\\
\;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(j, y0 \cdot \mathsf{fma}\left(y1, \frac{y4}{y0}, -y5\right), z \cdot \mathsf{fma}\left(-1, a \cdot y1, c \cdot y0\right)\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+80}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\right) \cdot x\\
\end{array}
\end{array}
if i < -8.9999999999999997e151Initial program 31.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.5%
Taylor expanded in i around inf
Applied rewrites66.2%
if -8.9999999999999997e151 < i < 1.5000000000000001e-126Initial program 24.2%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.4%
Taylor expanded in y around 0
Applied rewrites44.2%
Taylor expanded in y0 around inf
Applied rewrites45.6%
if 1.5000000000000001e-126 < i < 3.49999999999999994e80Initial program 20.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.2%
Taylor expanded in j around inf
Applied rewrites30.6%
Taylor expanded in a around inf
Applied rewrites46.8%
if 3.49999999999999994e80 < i Initial program 27.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in y1 around -inf
Applied rewrites62.8%
Final simplification51.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -9e+185)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= k 2.8e-251)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(if (<= k 3.2e-189)
(* (* y0 (fma c y2 (* (- b) j))) x)
(if (<= k 1.75e-113)
(* (* (- i) (fma c y (* (- j) y1))) x)
(if (<= k 2.2e+96)
(* (* (fma y x (* (- t) z)) b) a)
(if (<= k 1e+221)
(* (* y5 (fma -1.0 (* y0 y2) (* i y))) k)
(* (* k y1) (fma y2 y4 (* (- i) 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 <= -9e+185) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (k <= 2.8e-251) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else if (k <= 3.2e-189) {
tmp = (y0 * fma(c, y2, (-b * j))) * x;
} else if (k <= 1.75e-113) {
tmp = (-i * fma(c, y, (-j * y1))) * x;
} else if (k <= 2.2e+96) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else if (k <= 1e+221) {
tmp = (y5 * fma(-1.0, (y0 * y2), (i * y))) * k;
} else {
tmp = (k * y1) * fma(y2, y4, (-i * 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 <= -9e+185) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (k <= 2.8e-251) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); elseif (k <= 3.2e-189) tmp = Float64(Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))) * x); elseif (k <= 1.75e-113) tmp = Float64(Float64(Float64(-i) * fma(c, y, Float64(Float64(-j) * y1))) * x); elseif (k <= 2.2e+96) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); elseif (k <= 1e+221) tmp = Float64(Float64(y5 * fma(-1.0, Float64(y0 * y2), Float64(i * y))) * k); else tmp = Float64(Float64(k * y1) * fma(y2, y4, Float64(Float64(-i) * 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, -9e+185], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[k, 2.8e-251], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[k, 3.2e-189], N[(N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[k, 1.75e-113], N[(N[((-i) * N[(c * y + N[((-j) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[k, 2.2e+96], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 1e+221], N[(N[(y5 * N[(-1.0 * N[(y0 * y2), $MachinePrecision] + N[(i * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], N[(N[(k * y1), $MachinePrecision] * N[(y2 * y4 + N[((-i) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -9 \cdot 10^{+185}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;k \leq 2.8 \cdot 10^{-251}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{elif}\;k \leq 3.2 \cdot 10^{-189}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;k \leq 1.75 \cdot 10^{-113}:\\
\;\;\;\;\left(\left(-i\right) \cdot \mathsf{fma}\left(c, y, \left(-j\right) \cdot y1\right)\right) \cdot x\\
\mathbf{elif}\;k \leq 2.2 \cdot 10^{+96}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{elif}\;k \leq 10^{+221}:\\
\;\;\;\;\left(y5 \cdot \mathsf{fma}\left(-1, y0 \cdot y2, i \cdot y\right)\right) \cdot k\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y1\right) \cdot \mathsf{fma}\left(y2, y4, \left(-i\right) \cdot z\right)\\
\end{array}
\end{array}
if k < -9.0000000000000004e185Initial program 35.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.6%
Taylor expanded in i around inf
Applied rewrites82.6%
if -9.0000000000000004e185 < k < 2.79999999999999989e-251Initial program 24.1%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.1%
Taylor expanded in j around inf
Applied rewrites41.9%
if 2.79999999999999989e-251 < k < 3.2000000000000001e-189Initial program 19.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.6%
Taylor expanded in y0 around inf
Applied rewrites67.0%
if 3.2000000000000001e-189 < k < 1.75000000000000014e-113Initial program 22.0%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.4%
Taylor expanded in i around -inf
Applied rewrites58.3%
if 1.75000000000000014e-113 < k < 2.1999999999999999e96Initial program 22.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites49.3%
Taylor expanded in j around inf
Applied rewrites42.9%
Taylor expanded in a around inf
Applied rewrites47.8%
if 2.1999999999999999e96 < k < 1e221Initial program 32.5%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites56.5%
Taylor expanded in y5 around inf
Applied rewrites48.8%
if 1e221 < k Initial program 20.0%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites68.1%
Taylor expanded in y1 around inf
Applied rewrites68.2%
Final simplification51.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -9e+185)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= k 2.8e-251)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(if (<= k 1.5e-179)
(* (* y0 (fma c y2 (* (- b) j))) x)
(if (<= k 1.65e-113)
(* (* (- i) x) (fma c y (* (- j) y1)))
(if (<= k 9.5e+109)
(* (* (fma y x (* (- t) z)) b) a)
(if (<= k 2e+205)
(* (- (* (* k y2) y5)) y0)
(* (* k y1) (fma y2 y4 (* (- i) 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 <= -9e+185) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (k <= 2.8e-251) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else if (k <= 1.5e-179) {
tmp = (y0 * fma(c, y2, (-b * j))) * x;
} else if (k <= 1.65e-113) {
tmp = (-i * x) * fma(c, y, (-j * y1));
} else if (k <= 9.5e+109) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else if (k <= 2e+205) {
tmp = -((k * y2) * y5) * y0;
} else {
tmp = (k * y1) * fma(y2, y4, (-i * 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 <= -9e+185) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (k <= 2.8e-251) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); elseif (k <= 1.5e-179) tmp = Float64(Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))) * x); elseif (k <= 1.65e-113) tmp = Float64(Float64(Float64(-i) * x) * fma(c, y, Float64(Float64(-j) * y1))); elseif (k <= 9.5e+109) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); elseif (k <= 2e+205) tmp = Float64(Float64(-Float64(Float64(k * y2) * y5)) * y0); else tmp = Float64(Float64(k * y1) * fma(y2, y4, Float64(Float64(-i) * 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, -9e+185], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[k, 2.8e-251], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[k, 1.5e-179], N[(N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[k, 1.65e-113], N[(N[((-i) * x), $MachinePrecision] * N[(c * y + N[((-j) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.5e+109], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 2e+205], N[((-N[(N[(k * y2), $MachinePrecision] * y5), $MachinePrecision]) * y0), $MachinePrecision], N[(N[(k * y1), $MachinePrecision] * N[(y2 * y4 + N[((-i) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -9 \cdot 10^{+185}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;k \leq 2.8 \cdot 10^{-251}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{elif}\;k \leq 1.5 \cdot 10^{-179}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;k \leq 1.65 \cdot 10^{-113}:\\
\;\;\;\;\left(\left(-i\right) \cdot x\right) \cdot \mathsf{fma}\left(c, y, \left(-j\right) \cdot y1\right)\\
\mathbf{elif}\;k \leq 9.5 \cdot 10^{+109}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+205}:\\
\;\;\;\;\left(-\left(k \cdot y2\right) \cdot y5\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y1\right) \cdot \mathsf{fma}\left(y2, y4, \left(-i\right) \cdot z\right)\\
\end{array}
\end{array}
if k < -9.0000000000000004e185Initial program 35.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.6%
Taylor expanded in i around inf
Applied rewrites82.6%
if -9.0000000000000004e185 < k < 2.79999999999999989e-251Initial program 24.1%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.1%
Taylor expanded in j around inf
Applied rewrites41.9%
if 2.79999999999999989e-251 < k < 1.50000000000000003e-179Initial program 24.9%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.7%
Taylor expanded in y0 around inf
Applied rewrites62.9%
if 1.50000000000000003e-179 < k < 1.6500000000000001e-113Initial program 17.7%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.5%
Taylor expanded in i around -inf
Applied rewrites50.8%
if 1.6500000000000001e-113 < k < 9.49999999999999972e109Initial program 25.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.7%
Taylor expanded in j around inf
Applied rewrites38.0%
Taylor expanded in a around inf
Applied rewrites44.3%
if 9.49999999999999972e109 < k < 2.00000000000000003e205Initial program 28.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in k around -inf
Applied rewrites52.4%
Taylor expanded in z around 0
Applied rewrites57.4%
if 2.00000000000000003e205 < k Initial program 21.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y1 around inf
Applied rewrites61.0%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -9e+151)
(* (* i k) (fma y y5 (* (- y1) z)))
(if (<= i 1.4e-126)
(* (- y3) (fma j (* y0 (fma y1 (/ y4 y0) (- y5))) (* z (* y0 c))))
(if (<= i 3.5e+80)
(* (* (fma y x (* (- t) z)) b) a)
(* (* (- y1) (fma a y2 (* (- i) j))) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -9e+151) {
tmp = (i * k) * fma(y, y5, (-y1 * z));
} else if (i <= 1.4e-126) {
tmp = -y3 * fma(j, (y0 * fma(y1, (y4 / y0), -y5)), (z * (y0 * c)));
} else if (i <= 3.5e+80) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else {
tmp = (-y1 * fma(a, y2, (-i * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -9e+151) tmp = Float64(Float64(i * k) * fma(y, y5, Float64(Float64(-y1) * z))); elseif (i <= 1.4e-126) tmp = Float64(Float64(-y3) * fma(j, Float64(y0 * fma(y1, Float64(y4 / y0), Float64(-y5))), Float64(z * Float64(y0 * c)))); elseif (i <= 3.5e+80) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); else tmp = Float64(Float64(Float64(-y1) * fma(a, y2, Float64(Float64(-i) * j))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -9e+151], N[(N[(i * k), $MachinePrecision] * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 1.4e-126], N[((-y3) * N[(j * N[(y0 * N[(y1 * N[(y4 / y0), $MachinePrecision] + (-y5)), $MachinePrecision]), $MachinePrecision] + N[(z * N[(y0 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.5e+80], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], N[(N[((-y1) * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9 \cdot 10^{+151}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\\
\mathbf{elif}\;i \leq 1.4 \cdot 10^{-126}:\\
\;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(j, y0 \cdot \mathsf{fma}\left(y1, \frac{y4}{y0}, -y5\right), z \cdot \left(y0 \cdot c\right)\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+80}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\right) \cdot x\\
\end{array}
\end{array}
if i < -8.9999999999999997e151Initial program 31.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.5%
Taylor expanded in i around inf
Applied rewrites66.2%
if -8.9999999999999997e151 < i < 1.39999999999999996e-126Initial program 24.2%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.4%
Taylor expanded in y around 0
Applied rewrites44.2%
Taylor expanded in y0 around inf
Applied rewrites45.6%
Taylor expanded in a around 0
Applied rewrites45.0%
if 1.39999999999999996e-126 < i < 3.49999999999999994e80Initial program 20.1%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites60.2%
Taylor expanded in j around inf
Applied rewrites30.6%
Taylor expanded in a around inf
Applied rewrites46.8%
if 3.49999999999999994e80 < i Initial program 27.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in y1 around -inf
Applied rewrites62.8%
Final simplification50.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -9e+185)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= k 2.8e-251)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(if (<= k 1.7e-131)
(* (* y0 (fma c y2 (* (- b) j))) x)
(if (<= k 9.5e+109)
(* (* (fma y x (* (- t) z)) b) a)
(if (<= k 2e+205)
(* (- (* (* k y2) y5)) y0)
(* (* k y1) (fma y2 y4 (* (- i) 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 <= -9e+185) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (k <= 2.8e-251) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else if (k <= 1.7e-131) {
tmp = (y0 * fma(c, y2, (-b * j))) * x;
} else if (k <= 9.5e+109) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else if (k <= 2e+205) {
tmp = -((k * y2) * y5) * y0;
} else {
tmp = (k * y1) * fma(y2, y4, (-i * 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 <= -9e+185) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (k <= 2.8e-251) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); elseif (k <= 1.7e-131) tmp = Float64(Float64(y0 * fma(c, y2, Float64(Float64(-b) * j))) * x); elseif (k <= 9.5e+109) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); elseif (k <= 2e+205) tmp = Float64(Float64(-Float64(Float64(k * y2) * y5)) * y0); else tmp = Float64(Float64(k * y1) * fma(y2, y4, Float64(Float64(-i) * 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, -9e+185], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[k, 2.8e-251], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[k, 1.7e-131], N[(N[(y0 * N[(c * y2 + N[((-b) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], If[LessEqual[k, 9.5e+109], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 2e+205], N[((-N[(N[(k * y2), $MachinePrecision] * y5), $MachinePrecision]) * y0), $MachinePrecision], N[(N[(k * y1), $MachinePrecision] * N[(y2 * y4 + N[((-i) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -9 \cdot 10^{+185}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;k \leq 2.8 \cdot 10^{-251}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{elif}\;k \leq 1.7 \cdot 10^{-131}:\\
\;\;\;\;\left(y0 \cdot \mathsf{fma}\left(c, y2, \left(-b\right) \cdot j\right)\right) \cdot x\\
\mathbf{elif}\;k \leq 9.5 \cdot 10^{+109}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+205}:\\
\;\;\;\;\left(-\left(k \cdot y2\right) \cdot y5\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y1\right) \cdot \mathsf{fma}\left(y2, y4, \left(-i\right) \cdot z\right)\\
\end{array}
\end{array}
if k < -9.0000000000000004e185Initial program 35.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.6%
Taylor expanded in i around inf
Applied rewrites82.6%
if -9.0000000000000004e185 < k < 2.79999999999999989e-251Initial program 24.1%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.1%
Taylor expanded in j around inf
Applied rewrites41.9%
if 2.79999999999999989e-251 < k < 1.69999999999999998e-131Initial program 24.4%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.9%
Taylor expanded in y0 around inf
Applied rewrites48.9%
if 1.69999999999999998e-131 < k < 9.49999999999999972e109Initial program 23.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites45.2%
Taylor expanded in j around inf
Applied rewrites38.3%
Taylor expanded in a around inf
Applied rewrites40.6%
if 9.49999999999999972e109 < k < 2.00000000000000003e205Initial program 28.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in k around -inf
Applied rewrites52.4%
Taylor expanded in z around 0
Applied rewrites57.4%
if 2.00000000000000003e205 < k Initial program 21.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y1 around inf
Applied rewrites61.0%
Final simplification48.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -9.5e+148)
(* (* i k) (fma y y5 (* (- y1) z)))
(if (<= i -2.8e-308)
(* (- y3) (fma (fma (- y0) y5 (* y4 y1)) j (* (* z y0) c)))
(if (<= i 4.4e-120)
(* b (* y4 (fma -1.0 (* k y) (* j t))))
(if (<= i 3.5e+80)
(* (* (fma y x (* (- t) z)) b) a)
(* (* (- y1) (fma a y2 (* (- i) j))) x))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -9.5e+148) {
tmp = (i * k) * fma(y, y5, (-y1 * z));
} else if (i <= -2.8e-308) {
tmp = -y3 * fma(fma(-y0, y5, (y4 * y1)), j, ((z * y0) * c));
} else if (i <= 4.4e-120) {
tmp = b * (y4 * fma(-1.0, (k * y), (j * t)));
} else if (i <= 3.5e+80) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else {
tmp = (-y1 * fma(a, y2, (-i * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -9.5e+148) tmp = Float64(Float64(i * k) * fma(y, y5, Float64(Float64(-y1) * z))); elseif (i <= -2.8e-308) tmp = Float64(Float64(-y3) * fma(fma(Float64(-y0), y5, Float64(y4 * y1)), j, Float64(Float64(z * y0) * c))); elseif (i <= 4.4e-120) tmp = Float64(b * Float64(y4 * fma(-1.0, Float64(k * y), Float64(j * t)))); elseif (i <= 3.5e+80) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); else tmp = Float64(Float64(Float64(-y1) * fma(a, y2, Float64(Float64(-i) * j))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -9.5e+148], N[(N[(i * k), $MachinePrecision] * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, -2.8e-308], N[((-y3) * N[(N[((-y0) * y5 + N[(y4 * y1), $MachinePrecision]), $MachinePrecision] * j + N[(N[(z * y0), $MachinePrecision] * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 4.4e-120], N[(b * N[(y4 * N[(-1.0 * N[(k * y), $MachinePrecision] + N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[i, 3.5e+80], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], N[(N[((-y1) * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -9.5 \cdot 10^{+148}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\\
\mathbf{elif}\;i \leq -2.8 \cdot 10^{-308}:\\
\;\;\;\;\left(-y3\right) \cdot \mathsf{fma}\left(\mathsf{fma}\left(-y0, y5, y4 \cdot y1\right), j, \left(z \cdot y0\right) \cdot c\right)\\
\mathbf{elif}\;i \leq 4.4 \cdot 10^{-120}:\\
\;\;\;\;b \cdot \left(y4 \cdot \mathsf{fma}\left(-1, k \cdot y, j \cdot t\right)\right)\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+80}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\right) \cdot x\\
\end{array}
\end{array}
if i < -9.5000000000000002e148Initial program 31.6%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites54.5%
Taylor expanded in i around inf
Applied rewrites66.2%
if -9.5000000000000002e148 < i < -2.79999999999999984e-308Initial program 20.6%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites45.5%
Taylor expanded in y around 0
Applied rewrites46.4%
Taylor expanded in y0 around inf
Applied rewrites47.4%
Taylor expanded in a around 0
Applied rewrites44.7%
if -2.79999999999999984e-308 < i < 4.40000000000000025e-120Initial program 31.7%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.7%
Taylor expanded in y4 around inf
Applied rewrites43.6%
if 4.40000000000000025e-120 < i < 3.49999999999999994e80Initial program 21.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites59.8%
Taylor expanded in j around inf
Applied rewrites30.4%
Taylor expanded in a around inf
Applied rewrites47.5%
if 3.49999999999999994e80 < i Initial program 27.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in y1 around -inf
Applied rewrites62.8%
Final simplification50.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -9e+185)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= k 4.4e-191)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(if (<= k 9.5e+109)
(* (* (fma y x (* (- t) z)) b) a)
(if (<= k 2e+205)
(* (- (* (* k y2) y5)) y0)
(* (* k y1) (fma y2 y4 (* (- i) 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 <= -9e+185) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (k <= 4.4e-191) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else if (k <= 9.5e+109) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else if (k <= 2e+205) {
tmp = -((k * y2) * y5) * y0;
} else {
tmp = (k * y1) * fma(y2, y4, (-i * 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 <= -9e+185) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (k <= 4.4e-191) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); elseif (k <= 9.5e+109) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); elseif (k <= 2e+205) tmp = Float64(Float64(-Float64(Float64(k * y2) * y5)) * y0); else tmp = Float64(Float64(k * y1) * fma(y2, y4, Float64(Float64(-i) * 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, -9e+185], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[k, 4.4e-191], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[k, 9.5e+109], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 2e+205], N[((-N[(N[(k * y2), $MachinePrecision] * y5), $MachinePrecision]) * y0), $MachinePrecision], N[(N[(k * y1), $MachinePrecision] * N[(y2 * y4 + N[((-i) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -9 \cdot 10^{+185}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;k \leq 4.4 \cdot 10^{-191}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{elif}\;k \leq 9.5 \cdot 10^{+109}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+205}:\\
\;\;\;\;\left(-\left(k \cdot y2\right) \cdot y5\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y1\right) \cdot \mathsf{fma}\left(y2, y4, \left(-i\right) \cdot z\right)\\
\end{array}
\end{array}
if k < -9.0000000000000004e185Initial program 35.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.6%
Taylor expanded in i around inf
Applied rewrites82.6%
if -9.0000000000000004e185 < k < 4.39999999999999996e-191Initial program 23.5%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.0%
Taylor expanded in j around inf
Applied rewrites40.1%
if 4.39999999999999996e-191 < k < 9.49999999999999972e109Initial program 24.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in j around inf
Applied rewrites36.6%
Taylor expanded in a around inf
Applied rewrites38.4%
if 9.49999999999999972e109 < k < 2.00000000000000003e205Initial program 28.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in k around -inf
Applied rewrites52.4%
Taylor expanded in z around 0
Applied rewrites57.4%
if 2.00000000000000003e205 < k Initial program 21.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y1 around inf
Applied rewrites61.0%
Final simplification46.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -8e+185)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= k -1.2e+19)
(* (* j y0) (fma y3 y5 (* (- b) x)))
(if (<= k 9.5e+109)
(* (* (fma y x (* (- t) z)) b) a)
(if (<= k 2e+205)
(* (- (* (* k y2) y5)) y0)
(* (* k y1) (fma y2 y4 (* (- i) 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 <= -8e+185) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (k <= -1.2e+19) {
tmp = (j * y0) * fma(y3, y5, (-b * x));
} else if (k <= 9.5e+109) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else if (k <= 2e+205) {
tmp = -((k * y2) * y5) * y0;
} else {
tmp = (k * y1) * fma(y2, y4, (-i * 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 <= -8e+185) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (k <= -1.2e+19) tmp = Float64(Float64(j * y0) * fma(y3, y5, Float64(Float64(-b) * x))); elseif (k <= 9.5e+109) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); elseif (k <= 2e+205) tmp = Float64(Float64(-Float64(Float64(k * y2) * y5)) * y0); else tmp = Float64(Float64(k * y1) * fma(y2, y4, Float64(Float64(-i) * 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, -8e+185], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[k, -1.2e+19], N[(N[(j * y0), $MachinePrecision] * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.5e+109], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 2e+205], N[((-N[(N[(k * y2), $MachinePrecision] * y5), $MachinePrecision]) * y0), $MachinePrecision], N[(N[(k * y1), $MachinePrecision] * N[(y2 * y4 + N[((-i) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -8 \cdot 10^{+185}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;k \leq -1.2 \cdot 10^{+19}:\\
\;\;\;\;\left(j \cdot y0\right) \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\\
\mathbf{elif}\;k \leq 9.5 \cdot 10^{+109}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+205}:\\
\;\;\;\;\left(-\left(k \cdot y2\right) \cdot y5\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y1\right) \cdot \mathsf{fma}\left(y2, y4, \left(-i\right) \cdot z\right)\\
\end{array}
\end{array}
if k < -7.9999999999999998e185Initial program 35.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.6%
Taylor expanded in i around inf
Applied rewrites82.6%
if -7.9999999999999998e185 < k < -1.2e19Initial program 28.7%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in j around inf
Applied rewrites49.7%
if -1.2e19 < k < 9.49999999999999972e109Initial program 22.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.3%
Taylor expanded in j around inf
Applied rewrites31.4%
Taylor expanded in a around inf
Applied rewrites34.7%
if 9.49999999999999972e109 < k < 2.00000000000000003e205Initial program 28.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in k around -inf
Applied rewrites52.4%
Taylor expanded in z around 0
Applied rewrites57.4%
if 2.00000000000000003e205 < k Initial program 21.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y1 around inf
Applied rewrites61.0%
Final simplification45.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -8e+185)
(* (* i k) (fma y y5 (* (- y1) z)))
(if (<= k -1.2e+19)
(* (* j y0) (fma y3 y5 (* (- b) x)))
(if (<= k 9.5e+109)
(* (* (fma y x (* (- t) z)) b) a)
(if (<= k 2e+205)
(* (- (* (* k y2) y5)) y0)
(* (* k y1) (fma y2 y4 (* (- i) 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 <= -8e+185) {
tmp = (i * k) * fma(y, y5, (-y1 * z));
} else if (k <= -1.2e+19) {
tmp = (j * y0) * fma(y3, y5, (-b * x));
} else if (k <= 9.5e+109) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else if (k <= 2e+205) {
tmp = -((k * y2) * y5) * y0;
} else {
tmp = (k * y1) * fma(y2, y4, (-i * 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 <= -8e+185) tmp = Float64(Float64(i * k) * fma(y, y5, Float64(Float64(-y1) * z))); elseif (k <= -1.2e+19) tmp = Float64(Float64(j * y0) * fma(y3, y5, Float64(Float64(-b) * x))); elseif (k <= 9.5e+109) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); elseif (k <= 2e+205) tmp = Float64(Float64(-Float64(Float64(k * y2) * y5)) * y0); else tmp = Float64(Float64(k * y1) * fma(y2, y4, Float64(Float64(-i) * 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, -8e+185], N[(N[(i * k), $MachinePrecision] * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -1.2e+19], N[(N[(j * y0), $MachinePrecision] * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.5e+109], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], If[LessEqual[k, 2e+205], N[((-N[(N[(k * y2), $MachinePrecision] * y5), $MachinePrecision]) * y0), $MachinePrecision], N[(N[(k * y1), $MachinePrecision] * N[(y2 * y4 + N[((-i) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -8 \cdot 10^{+185}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\\
\mathbf{elif}\;k \leq -1.2 \cdot 10^{+19}:\\
\;\;\;\;\left(j \cdot y0\right) \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\\
\mathbf{elif}\;k \leq 9.5 \cdot 10^{+109}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+205}:\\
\;\;\;\;\left(-\left(k \cdot y2\right) \cdot y5\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y1\right) \cdot \mathsf{fma}\left(y2, y4, \left(-i\right) \cdot z\right)\\
\end{array}
\end{array}
if k < -7.9999999999999998e185Initial program 35.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.6%
Taylor expanded in i around inf
Applied rewrites82.5%
if -7.9999999999999998e185 < k < -1.2e19Initial program 28.7%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in j around inf
Applied rewrites49.7%
if -1.2e19 < k < 9.49999999999999972e109Initial program 22.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.3%
Taylor expanded in j around inf
Applied rewrites31.4%
Taylor expanded in a around inf
Applied rewrites34.7%
if 9.49999999999999972e109 < k < 2.00000000000000003e205Initial program 28.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.5%
Taylor expanded in k around -inf
Applied rewrites52.4%
Taylor expanded in z around 0
Applied rewrites57.4%
if 2.00000000000000003e205 < k Initial program 21.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y1 around inf
Applied rewrites61.0%
Final simplification45.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+64)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= i 7.1e-121)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(if (<= i 3.5e+80)
(* (* (fma y x (* (- t) z)) b) a)
(* (* (- y1) (fma a y2 (* (- i) j))) x)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (i <= -2.2e+64) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (i <= 7.1e-121) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else if (i <= 3.5e+80) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else {
tmp = (-y1 * fma(a, y2, (-i * j))) * x;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (i <= -2.2e+64) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (i <= 7.1e-121) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); elseif (i <= 3.5e+80) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); else tmp = Float64(Float64(Float64(-y1) * fma(a, y2, Float64(Float64(-i) * j))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+64], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[i, 7.1e-121], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[i, 3.5e+80], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], N[(N[((-y1) * N[(a * y2 + N[((-i) * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;i \leq 7.1 \cdot 10^{-121}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{elif}\;i \leq 3.5 \cdot 10^{+80}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-y1\right) \cdot \mathsf{fma}\left(a, y2, \left(-i\right) \cdot j\right)\right) \cdot x\\
\end{array}
\end{array}
if i < -2.20000000000000002e64Initial program 26.2%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in i around inf
Applied rewrites56.3%
if -2.20000000000000002e64 < i < 7.0999999999999998e-121Initial program 25.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.2%
Taylor expanded in j around inf
Applied rewrites38.1%
if 7.0999999999999998e-121 < i < 3.49999999999999994e80Initial program 20.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.6%
Taylor expanded in j around inf
Applied rewrites29.8%
Taylor expanded in a around inf
Applied rewrites46.6%
if 3.49999999999999994e80 < i Initial program 27.2%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites43.5%
Taylor expanded in y1 around -inf
Applied rewrites62.8%
Final simplification47.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= i -2.2e+64)
(* (* i (fma y y5 (* (- y1) z))) k)
(if (<= i 7.1e-121)
(* (* j (fma y3 y5 (* (- b) x))) y0)
(if (<= i 1.6e+72)
(* (* (fma y x (* (- t) z)) b) a)
(* (* (- i) (fma c y (* (- j) y1))) 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 (i <= -2.2e+64) {
tmp = (i * fma(y, y5, (-y1 * z))) * k;
} else if (i <= 7.1e-121) {
tmp = (j * fma(y3, y5, (-b * x))) * y0;
} else if (i <= 1.6e+72) {
tmp = (fma(y, x, (-t * z)) * b) * a;
} else {
tmp = (-i * fma(c, y, (-j * y1))) * 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 (i <= -2.2e+64) tmp = Float64(Float64(i * fma(y, y5, Float64(Float64(-y1) * z))) * k); elseif (i <= 7.1e-121) tmp = Float64(Float64(j * fma(y3, y5, Float64(Float64(-b) * x))) * y0); elseif (i <= 1.6e+72) tmp = Float64(Float64(fma(y, x, Float64(Float64(-t) * z)) * b) * a); else tmp = Float64(Float64(Float64(-i) * fma(c, y, Float64(Float64(-j) * y1))) * x); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[i, -2.2e+64], N[(N[(i * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * k), $MachinePrecision], If[LessEqual[i, 7.1e-121], N[(N[(j * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[i, 1.6e+72], N[(N[(N[(y * x + N[((-t) * z), $MachinePrecision]), $MachinePrecision] * b), $MachinePrecision] * a), $MachinePrecision], N[(N[((-i) * N[(c * y + N[((-j) * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.2 \cdot 10^{+64}:\\
\;\;\;\;\left(i \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\right) \cdot k\\
\mathbf{elif}\;i \leq 7.1 \cdot 10^{-121}:\\
\;\;\;\;\left(j \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\right) \cdot y0\\
\mathbf{elif}\;i \leq 1.6 \cdot 10^{+72}:\\
\;\;\;\;\left(\mathsf{fma}\left(y, x, \left(-t\right) \cdot z\right) \cdot b\right) \cdot a\\
\mathbf{else}:\\
\;\;\;\;\left(\left(-i\right) \cdot \mathsf{fma}\left(c, y, \left(-j\right) \cdot y1\right)\right) \cdot x\\
\end{array}
\end{array}
if i < -2.20000000000000002e64Initial program 26.2%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.7%
Taylor expanded in i around inf
Applied rewrites56.3%
if -2.20000000000000002e64 < i < 7.0999999999999998e-121Initial program 25.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.2%
Taylor expanded in j around inf
Applied rewrites38.1%
if 7.0999999999999998e-121 < i < 1.6000000000000001e72Initial program 21.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites58.9%
Taylor expanded in j around inf
Applied rewrites28.9%
Taylor expanded in a around inf
Applied rewrites46.4%
if 1.6000000000000001e72 < i Initial program 25.8%
Taylor expanded in x around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.4%
Taylor expanded in i around -inf
Applied rewrites62.0%
Final simplification47.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -9.8e+115)
(* (* b (* k z)) y0)
(if (<= z -1.85e-115)
(* (- y3) (* j (* (- y0) y5)))
(if (<= z 2e-114)
(* (* y y3) (fma (- a) y5 (* c y4)))
(if (<= z 7.6e+159)
(* (* (* (- x) y0) j) b)
(* (- y3) (* (* c y0) 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 (z <= -9.8e+115) {
tmp = (b * (k * z)) * y0;
} else if (z <= -1.85e-115) {
tmp = -y3 * (j * (-y0 * y5));
} else if (z <= 2e-114) {
tmp = (y * y3) * fma(-a, y5, (c * y4));
} else if (z <= 7.6e+159) {
tmp = ((-x * y0) * j) * b;
} else {
tmp = -y3 * ((c * y0) * 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 (z <= -9.8e+115) tmp = Float64(Float64(b * Float64(k * z)) * y0); elseif (z <= -1.85e-115) tmp = Float64(Float64(-y3) * Float64(j * Float64(Float64(-y0) * y5))); elseif (z <= 2e-114) tmp = Float64(Float64(y * y3) * fma(Float64(-a), y5, Float64(c * y4))); elseif (z <= 7.6e+159) tmp = Float64(Float64(Float64(Float64(-x) * y0) * j) * b); else tmp = Float64(Float64(-y3) * Float64(Float64(c * y0) * z)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -9.8e+115], N[(N[(b * N[(k * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[z, -1.85e-115], N[((-y3) * N[(j * N[((-y0) * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2e-114], N[(N[(y * y3), $MachinePrecision] * N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.6e+159], N[(N[(N[((-x) * y0), $MachinePrecision] * j), $MachinePrecision] * b), $MachinePrecision], N[((-y3) * N[(N[(c * y0), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -9.8 \cdot 10^{+115}:\\
\;\;\;\;\left(b \cdot \left(k \cdot z\right)\right) \cdot y0\\
\mathbf{elif}\;z \leq -1.85 \cdot 10^{-115}:\\
\;\;\;\;\left(-y3\right) \cdot \left(j \cdot \left(\left(-y0\right) \cdot y5\right)\right)\\
\mathbf{elif}\;z \leq 2 \cdot 10^{-114}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(-a, y5, c \cdot y4\right)\\
\mathbf{elif}\;z \leq 7.6 \cdot 10^{+159}:\\
\;\;\;\;\left(\left(\left(-x\right) \cdot y0\right) \cdot j\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(-y3\right) \cdot \left(\left(c \cdot y0\right) \cdot z\right)\\
\end{array}
\end{array}
if z < -9.79999999999999928e115Initial program 16.4%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites32.9%
Taylor expanded in k around -inf
Applied rewrites30.6%
Taylor expanded in z around inf
Applied rewrites36.1%
if -9.79999999999999928e115 < z < -1.85e-115Initial program 24.1%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites41.7%
Taylor expanded in y around 0
Applied rewrites44.0%
Taylor expanded in y5 around inf
Applied rewrites34.6%
if -1.85e-115 < z < 2.0000000000000001e-114Initial program 30.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites33.1%
Taylor expanded in y around 0
Applied rewrites28.8%
Taylor expanded in y around inf
Applied rewrites33.1%
if 2.0000000000000001e-114 < z < 7.5999999999999993e159Initial program 30.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.8%
Taylor expanded in j around inf
Applied rewrites43.4%
Taylor expanded in x around inf
Applied rewrites35.0%
if 7.5999999999999993e159 < z Initial program 8.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites72.1%
Taylor expanded in y around 0
Applied rewrites72.1%
Taylor expanded in c around inf
Applied rewrites51.2%
Final simplification36.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* j y0) (fma y3 y5 (* (- b) x)))))
(if (<= y0 -1.48e-111)
t_1
(if (<= y0 9.4e-169)
(* (* (fma z a (* y4 (- j))) y3) y1)
(if (<= y0 9.6e+32) (* (* (fma (- a) y5 (* y4 c)) y3) y) 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 = (j * y0) * fma(y3, y5, (-b * x));
double tmp;
if (y0 <= -1.48e-111) {
tmp = t_1;
} else if (y0 <= 9.4e-169) {
tmp = (fma(z, a, (y4 * -j)) * y3) * y1;
} else if (y0 <= 9.6e+32) {
tmp = (fma(-a, y5, (y4 * c)) * y3) * y;
} 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(j * y0) * fma(y3, y5, Float64(Float64(-b) * x))) tmp = 0.0 if (y0 <= -1.48e-111) tmp = t_1; elseif (y0 <= 9.4e-169) tmp = Float64(Float64(fma(z, a, Float64(y4 * Float64(-j))) * y3) * y1); elseif (y0 <= 9.6e+32) tmp = Float64(Float64(fma(Float64(-a), y5, Float64(y4 * c)) * y3) * y); 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[(j * y0), $MachinePrecision] * N[(y3 * y5 + N[((-b) * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1.48e-111], t$95$1, If[LessEqual[y0, 9.4e-169], N[(N[(N[(z * a + N[(y4 * (-j)), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y1), $MachinePrecision], If[LessEqual[y0, 9.6e+32], N[(N[(N[((-a) * y5 + N[(y4 * c), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(j \cdot y0\right) \cdot \mathsf{fma}\left(y3, y5, \left(-b\right) \cdot x\right)\\
\mathbf{if}\;y0 \leq -1.48 \cdot 10^{-111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 9.4 \cdot 10^{-169}:\\
\;\;\;\;\left(\mathsf{fma}\left(z, a, y4 \cdot \left(-j\right)\right) \cdot y3\right) \cdot y1\\
\mathbf{elif}\;y0 \leq 9.6 \cdot 10^{+32}:\\
\;\;\;\;\left(\mathsf{fma}\left(-a, y5, y4 \cdot c\right) \cdot y3\right) \cdot y\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -1.4799999999999999e-111 or 9.59999999999999965e32 < y0 Initial program 19.8%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.2%
Taylor expanded in j around inf
Applied rewrites45.3%
if -1.4799999999999999e-111 < y0 < 9.39999999999999981e-169Initial program 31.7%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites38.7%
Taylor expanded in y around 0
Applied rewrites40.6%
Taylor expanded in y0 around inf
Applied rewrites42.2%
Taylor expanded in y1 around -inf
Applied rewrites30.7%
if 9.39999999999999981e-169 < y0 < 9.59999999999999965e32Initial program 34.9%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites40.4%
Taylor expanded in y around 0
Applied rewrites23.8%
Taylor expanded in y0 around inf
Applied rewrites28.4%
Taylor expanded in y around inf
Applied rewrites45.5%
Final simplification42.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -8.6e+185)
(* (* i k) (fma y y5 (* (- y1) z)))
(if (<= k 3.2e+92)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= k 2e+205)
(* (- (* (* k y2) y5)) y0)
(* (* k y1) (fma y2 y4 (* (- i) 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 <= -8.6e+185) {
tmp = (i * k) * fma(y, y5, (-y1 * z));
} else if (k <= 3.2e+92) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (k <= 2e+205) {
tmp = -((k * y2) * y5) * y0;
} else {
tmp = (k * y1) * fma(y2, y4, (-i * 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 <= -8.6e+185) tmp = Float64(Float64(i * k) * fma(y, y5, Float64(Float64(-y1) * z))); elseif (k <= 3.2e+92) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (k <= 2e+205) tmp = Float64(Float64(-Float64(Float64(k * y2) * y5)) * y0); else tmp = Float64(Float64(k * y1) * fma(y2, y4, Float64(Float64(-i) * 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, -8.6e+185], N[(N[(i * k), $MachinePrecision] * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.2e+92], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 2e+205], N[((-N[(N[(k * y2), $MachinePrecision] * y5), $MachinePrecision]) * y0), $MachinePrecision], N[(N[(k * y1), $MachinePrecision] * N[(y2 * y4 + N[((-i) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -8.6 \cdot 10^{+185}:\\
\;\;\;\;\left(i \cdot k\right) \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\\
\mathbf{elif}\;k \leq 3.2 \cdot 10^{+92}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;k \leq 2 \cdot 10^{+205}:\\
\;\;\;\;\left(-\left(k \cdot y2\right) \cdot y5\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(k \cdot y1\right) \cdot \mathsf{fma}\left(y2, y4, \left(-i\right) \cdot z\right)\\
\end{array}
\end{array}
if k < -8.6000000000000002e185Initial program 35.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites70.6%
Taylor expanded in i around inf
Applied rewrites82.5%
if -8.6000000000000002e185 < k < 3.20000000000000025e92Initial program 23.2%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y5 around -inf
Applied rewrites31.8%
if 3.20000000000000025e92 < k < 2.00000000000000003e205Initial program 31.4%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites44.6%
Taylor expanded in k around -inf
Applied rewrites47.7%
Taylor expanded in z around 0
Applied rewrites45.6%
if 2.00000000000000003e205 < k Initial program 21.4%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites64.7%
Taylor expanded in y1 around inf
Applied rewrites61.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -8e-102)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= y3 0.0038)
(* (* (* (- x) y0) j) b)
(if (<= y3 1.05e+103)
(* (* y y3) (fma (- a) y5 (* c y4)))
(* (* (* j y3) 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) {
double tmp;
if (y3 <= -8e-102) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (y3 <= 0.0038) {
tmp = ((-x * y0) * j) * b;
} else if (y3 <= 1.05e+103) {
tmp = (y * y3) * fma(-a, y5, (c * y4));
} else {
tmp = ((j * y3) * y5) * 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 (y3 <= -8e-102) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (y3 <= 0.0038) tmp = Float64(Float64(Float64(Float64(-x) * y0) * j) * b); elseif (y3 <= 1.05e+103) tmp = Float64(Float64(y * y3) * fma(Float64(-a), y5, Float64(c * y4))); else tmp = Float64(Float64(Float64(j * y3) * y5) * y0); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -8e-102], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 0.0038], N[(N[(N[((-x) * y0), $MachinePrecision] * j), $MachinePrecision] * b), $MachinePrecision], If[LessEqual[y3, 1.05e+103], N[(N[(y * y3), $MachinePrecision] * N[((-a) * y5 + N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(j * y3), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -8 \cdot 10^{-102}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;y3 \leq 0.0038:\\
\;\;\;\;\left(\left(\left(-x\right) \cdot y0\right) \cdot j\right) \cdot b\\
\mathbf{elif}\;y3 \leq 1.05 \cdot 10^{+103}:\\
\;\;\;\;\left(y \cdot y3\right) \cdot \mathsf{fma}\left(-a, y5, c \cdot y4\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot y3\right) \cdot y5\right) \cdot y0\\
\end{array}
\end{array}
if y3 < -7.99999999999999946e-102Initial program 23.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites42.0%
Taylor expanded in y5 around -inf
Applied rewrites45.6%
if -7.99999999999999946e-102 < y3 < 0.00379999999999999999Initial program 31.2%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites40.8%
Taylor expanded in j around inf
Applied rewrites31.0%
Taylor expanded in x around inf
Applied rewrites26.5%
if 0.00379999999999999999 < y3 < 1.0500000000000001e103Initial program 16.6%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites50.2%
Taylor expanded in y around 0
Applied rewrites40.5%
Taylor expanded in y around inf
Applied rewrites43.9%
if 1.0500000000000001e103 < y3 Initial program 16.5%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites30.3%
Taylor expanded in j around inf
Applied rewrites52.1%
Taylor expanded in x around 0
Applied rewrites49.3%
Final simplification38.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* j y3) y5) y0)))
(if (<= b -9.6e+71)
(* (* (* (- b) j) x) y0)
(if (<= b 1.6e-229)
t_1
(if (<= b 1.75e-9)
(* (* (- k) (* y2 y5)) y0)
(if (<= b 1.56e+190) t_1 (* b (* y4 (* j t)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * y3) * y5) * y0;
double tmp;
if (b <= -9.6e+71) {
tmp = ((-b * j) * x) * y0;
} else if (b <= 1.6e-229) {
tmp = t_1;
} else if (b <= 1.75e-9) {
tmp = (-k * (y2 * y5)) * y0;
} else if (b <= 1.56e+190) {
tmp = t_1;
} else {
tmp = b * (y4 * (j * t));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((j * y3) * y5) * y0
if (b <= (-9.6d+71)) then
tmp = ((-b * j) * x) * y0
else if (b <= 1.6d-229) then
tmp = t_1
else if (b <= 1.75d-9) then
tmp = (-k * (y2 * y5)) * y0
else if (b <= 1.56d+190) then
tmp = t_1
else
tmp = b * (y4 * (j * t))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((j * y3) * y5) * y0;
double tmp;
if (b <= -9.6e+71) {
tmp = ((-b * j) * x) * y0;
} else if (b <= 1.6e-229) {
tmp = t_1;
} else if (b <= 1.75e-9) {
tmp = (-k * (y2 * y5)) * y0;
} else if (b <= 1.56e+190) {
tmp = t_1;
} else {
tmp = b * (y4 * (j * t));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((j * y3) * y5) * y0 tmp = 0 if b <= -9.6e+71: tmp = ((-b * j) * x) * y0 elif b <= 1.6e-229: tmp = t_1 elif b <= 1.75e-9: tmp = (-k * (y2 * y5)) * y0 elif b <= 1.56e+190: tmp = t_1 else: tmp = b * (y4 * (j * t)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(j * y3) * y5) * y0) tmp = 0.0 if (b <= -9.6e+71) tmp = Float64(Float64(Float64(Float64(-b) * j) * x) * y0); elseif (b <= 1.6e-229) tmp = t_1; elseif (b <= 1.75e-9) tmp = Float64(Float64(Float64(-k) * Float64(y2 * y5)) * y0); elseif (b <= 1.56e+190) tmp = t_1; else tmp = Float64(b * Float64(y4 * Float64(j * t))); 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 = ((j * y3) * y5) * y0; tmp = 0.0; if (b <= -9.6e+71) tmp = ((-b * j) * x) * y0; elseif (b <= 1.6e-229) tmp = t_1; elseif (b <= 1.75e-9) tmp = (-k * (y2 * y5)) * y0; elseif (b <= 1.56e+190) tmp = t_1; else tmp = b * (y4 * (j * t)); 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[(N[(j * y3), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision]}, If[LessEqual[b, -9.6e+71], N[(N[(N[((-b) * j), $MachinePrecision] * x), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[b, 1.6e-229], t$95$1, If[LessEqual[b, 1.75e-9], N[(N[((-k) * N[(y2 * y5), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[b, 1.56e+190], t$95$1, N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(j \cdot y3\right) \cdot y5\right) \cdot y0\\
\mathbf{if}\;b \leq -9.6 \cdot 10^{+71}:\\
\;\;\;\;\left(\left(\left(-b\right) \cdot j\right) \cdot x\right) \cdot y0\\
\mathbf{elif}\;b \leq 1.6 \cdot 10^{-229}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 1.75 \cdot 10^{-9}:\\
\;\;\;\;\left(\left(-k\right) \cdot \left(y2 \cdot y5\right)\right) \cdot y0\\
\mathbf{elif}\;b \leq 1.56 \cdot 10^{+190}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\end{array}
\end{array}
if b < -9.59999999999999923e71Initial program 20.5%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.0%
Taylor expanded in j around inf
Applied rewrites45.5%
Taylor expanded in x around inf
Applied rewrites41.6%
if -9.59999999999999923e71 < b < 1.60000000000000007e-229 or 1.75e-9 < b < 1.56e190Initial program 29.2%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites33.9%
Taylor expanded in j around inf
Applied rewrites33.7%
Taylor expanded in x around 0
Applied rewrites28.7%
if 1.60000000000000007e-229 < b < 1.75e-9Initial program 19.0%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in k around -inf
Applied rewrites33.3%
Taylor expanded in z around 0
Applied rewrites28.7%
if 1.56e190 < b Initial program 25.3%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites62.8%
Taylor expanded in y4 around inf
Applied rewrites55.0%
Taylor expanded in y around 0
Applied rewrites46.8%
Final simplification32.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (* j t)))) (t_2 (* (* b (* k z)) y0)))
(if (<= t -5.8e+65)
t_1
(if (<= t -1e-173)
t_2
(if (<= t 1.75e-247)
(* (* (* z y1) a) y3)
(if (<= t 4.3e-21) t_2 t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * (j * t));
double t_2 = (b * (k * z)) * y0;
double tmp;
if (t <= -5.8e+65) {
tmp = t_1;
} else if (t <= -1e-173) {
tmp = t_2;
} else if (t <= 1.75e-247) {
tmp = ((z * y1) * a) * y3;
} else if (t <= 4.3e-21) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (y4 * (j * t))
t_2 = (b * (k * z)) * y0
if (t <= (-5.8d+65)) then
tmp = t_1
else if (t <= (-1d-173)) then
tmp = t_2
else if (t <= 1.75d-247) then
tmp = ((z * y1) * a) * y3
else if (t <= 4.3d-21) then
tmp = t_2
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * (j * t));
double t_2 = (b * (k * z)) * y0;
double tmp;
if (t <= -5.8e+65) {
tmp = t_1;
} else if (t <= -1e-173) {
tmp = t_2;
} else if (t <= 1.75e-247) {
tmp = ((z * y1) * a) * y3;
} else if (t <= 4.3e-21) {
tmp = t_2;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * (j * t)) t_2 = (b * (k * z)) * y0 tmp = 0 if t <= -5.8e+65: tmp = t_1 elif t <= -1e-173: tmp = t_2 elif t <= 1.75e-247: tmp = ((z * y1) * a) * y3 elif t <= 4.3e-21: tmp = t_2 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(y4 * Float64(j * t))) t_2 = Float64(Float64(b * Float64(k * z)) * y0) tmp = 0.0 if (t <= -5.8e+65) tmp = t_1; elseif (t <= -1e-173) tmp = t_2; elseif (t <= 1.75e-247) tmp = Float64(Float64(Float64(z * y1) * a) * y3); elseif (t <= 4.3e-21) tmp = t_2; else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * (j * t)); t_2 = (b * (k * z)) * y0; tmp = 0.0; if (t <= -5.8e+65) tmp = t_1; elseif (t <= -1e-173) tmp = t_2; elseif (t <= 1.75e-247) tmp = ((z * y1) * a) * y3; elseif (t <= 4.3e-21) tmp = t_2; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(b * N[(k * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision]}, If[LessEqual[t, -5.8e+65], t$95$1, If[LessEqual[t, -1e-173], t$95$2, If[LessEqual[t, 1.75e-247], N[(N[(N[(z * y1), $MachinePrecision] * a), $MachinePrecision] * y3), $MachinePrecision], If[LessEqual[t, 4.3e-21], t$95$2, t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
t_2 := \left(b \cdot \left(k \cdot z\right)\right) \cdot y0\\
\mathbf{if}\;t \leq -5.8 \cdot 10^{+65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq -1 \cdot 10^{-173}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;t \leq 1.75 \cdot 10^{-247}:\\
\;\;\;\;\left(\left(z \cdot y1\right) \cdot a\right) \cdot y3\\
\mathbf{elif}\;t \leq 4.3 \cdot 10^{-21}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -5.8000000000000001e65 or 4.2999999999999998e-21 < t Initial program 19.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.1%
Taylor expanded in y4 around inf
Applied rewrites34.1%
Taylor expanded in y around 0
Applied rewrites30.3%
if -5.8000000000000001e65 < t < -1e-173 or 1.75e-247 < t < 4.2999999999999998e-21Initial program 23.1%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.5%
Taylor expanded in k around -inf
Applied rewrites35.7%
Taylor expanded in z around inf
Applied rewrites24.1%
if -1e-173 < t < 1.75e-247Initial program 42.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites43.3%
Taylor expanded in a around -inf
Applied rewrites23.7%
Taylor expanded in y around 0
Applied rewrites19.4%
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= i -2.85e+128) (not (<= i 4.2e+17))) (* (* i k) (fma y y5 (* (- y1) z))) (* (* y3 y5) (fma j y0 (* (- a) y)))))
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 <= -2.85e+128) || !(i <= 4.2e+17)) {
tmp = (i * k) * fma(y, y5, (-y1 * z));
} else {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
}
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 <= -2.85e+128) || !(i <= 4.2e+17)) tmp = Float64(Float64(i * k) * fma(y, y5, Float64(Float64(-y1) * z))); else tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[Or[LessEqual[i, -2.85e+128], N[Not[LessEqual[i, 4.2e+17]], $MachinePrecision]], N[(N[(i * k), $MachinePrecision] * N[(y * y5 + N[((-y1) * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;i \leq -2.85 \cdot 10^{+128} \lor \neg \left(i \leq 4.2 \cdot 10^{+17}\right):\\
\;\;\;\;\left(i \cdot k\right) \cdot \mathsf{fma}\left(y, y5, \left(-y1\right) \cdot z\right)\\
\mathbf{else}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\end{array}
\end{array}
if i < -2.85000000000000012e128 or 4.2e17 < i Initial program 26.3%
Taylor expanded in k around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.7%
Taylor expanded in i around inf
Applied rewrites44.8%
if -2.85000000000000012e128 < i < 4.2e17Initial program 24.0%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites39.3%
Taylor expanded in y5 around -inf
Applied rewrites34.5%
Final simplification38.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* (- x) y0) j) b)))
(if (<= x -1.8e+86)
t_1
(if (<= x -2.05e-259)
(* (* (- k) (* y2 y5)) y0)
(if (<= x 1.35e+84) (* (* (* j y3) y5) y0) 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 = ((-x * y0) * j) * b;
double tmp;
if (x <= -1.8e+86) {
tmp = t_1;
} else if (x <= -2.05e-259) {
tmp = (-k * (y2 * y5)) * y0;
} else if (x <= 1.35e+84) {
tmp = ((j * y3) * y5) * y0;
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((-x * y0) * j) * b
if (x <= (-1.8d+86)) then
tmp = t_1
else if (x <= (-2.05d-259)) then
tmp = (-k * (y2 * y5)) * y0
else if (x <= 1.35d+84) then
tmp = ((j * y3) * y5) * y0
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((-x * y0) * j) * b;
double tmp;
if (x <= -1.8e+86) {
tmp = t_1;
} else if (x <= -2.05e-259) {
tmp = (-k * (y2 * y5)) * y0;
} else if (x <= 1.35e+84) {
tmp = ((j * y3) * y5) * y0;
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((-x * y0) * j) * b tmp = 0 if x <= -1.8e+86: tmp = t_1 elif x <= -2.05e-259: tmp = (-k * (y2 * y5)) * y0 elif x <= 1.35e+84: tmp = ((j * y3) * y5) * y0 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(Float64(Float64(-x) * y0) * j) * b) tmp = 0.0 if (x <= -1.8e+86) tmp = t_1; elseif (x <= -2.05e-259) tmp = Float64(Float64(Float64(-k) * Float64(y2 * y5)) * y0); elseif (x <= 1.35e+84) tmp = Float64(Float64(Float64(j * y3) * y5) * y0); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((-x * y0) * j) * b; tmp = 0.0; if (x <= -1.8e+86) tmp = t_1; elseif (x <= -2.05e-259) tmp = (-k * (y2 * y5)) * y0; elseif (x <= 1.35e+84) tmp = ((j * y3) * y5) * y0; else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[((-x) * y0), $MachinePrecision] * j), $MachinePrecision] * b), $MachinePrecision]}, If[LessEqual[x, -1.8e+86], t$95$1, If[LessEqual[x, -2.05e-259], N[(N[((-k) * N[(y2 * y5), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[x, 1.35e+84], N[(N[(N[(j * y3), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(-x\right) \cdot y0\right) \cdot j\right) \cdot b\\
\mathbf{if}\;x \leq -1.8 \cdot 10^{+86}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq -2.05 \cdot 10^{-259}:\\
\;\;\;\;\left(\left(-k\right) \cdot \left(y2 \cdot y5\right)\right) \cdot y0\\
\mathbf{elif}\;x \leq 1.35 \cdot 10^{+84}:\\
\;\;\;\;\left(\left(j \cdot y3\right) \cdot y5\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.80000000000000003e86 or 1.35e84 < x Initial program 23.4%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.2%
Taylor expanded in j around inf
Applied rewrites46.4%
Taylor expanded in x around inf
Applied rewrites40.7%
if -1.80000000000000003e86 < x < -2.0499999999999999e-259Initial program 26.1%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.1%
Taylor expanded in k around -inf
Applied rewrites29.7%
Taylor expanded in z around 0
Applied rewrites26.9%
if -2.0499999999999999e-259 < x < 1.35e84Initial program 25.6%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.3%
Taylor expanded in j around inf
Applied rewrites31.6%
Taylor expanded in x around 0
Applied rewrites28.1%
Final simplification32.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -4.2e+107)
(* b (* (- k) (* y y4)))
(if (<= y 2.9e-243)
(* (* (* j y3) y5) y0)
(if (<= y 3.3e+190) (* (* b (* k z)) y0) (* (- a) (* (* y y3) 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 (y <= -4.2e+107) {
tmp = b * (-k * (y * y4));
} else if (y <= 2.9e-243) {
tmp = ((j * y3) * y5) * y0;
} else if (y <= 3.3e+190) {
tmp = (b * (k * z)) * y0;
} else {
tmp = -a * ((y * y3) * 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 (y <= (-4.2d+107)) then
tmp = b * (-k * (y * y4))
else if (y <= 2.9d-243) then
tmp = ((j * y3) * y5) * y0
else if (y <= 3.3d+190) then
tmp = (b * (k * z)) * y0
else
tmp = -a * ((y * y3) * 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 (y <= -4.2e+107) {
tmp = b * (-k * (y * y4));
} else if (y <= 2.9e-243) {
tmp = ((j * y3) * y5) * y0;
} else if (y <= 3.3e+190) {
tmp = (b * (k * z)) * y0;
} else {
tmp = -a * ((y * y3) * y5);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -4.2e+107: tmp = b * (-k * (y * y4)) elif y <= 2.9e-243: tmp = ((j * y3) * y5) * y0 elif y <= 3.3e+190: tmp = (b * (k * z)) * y0 else: tmp = -a * ((y * y3) * 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 (y <= -4.2e+107) tmp = Float64(b * Float64(Float64(-k) * Float64(y * y4))); elseif (y <= 2.9e-243) tmp = Float64(Float64(Float64(j * y3) * y5) * y0); elseif (y <= 3.3e+190) tmp = Float64(Float64(b * Float64(k * z)) * y0); else tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * 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 (y <= -4.2e+107) tmp = b * (-k * (y * y4)); elseif (y <= 2.9e-243) tmp = ((j * y3) * y5) * y0; elseif (y <= 3.3e+190) tmp = (b * (k * z)) * y0; else tmp = -a * ((y * y3) * y5); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y, -4.2e+107], N[(b * N[((-k) * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.9e-243], N[(N[(N[(j * y3), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[y, 3.3e+190], N[(N[(b * N[(k * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{+107}:\\
\;\;\;\;b \cdot \left(\left(-k\right) \cdot \left(y \cdot y4\right)\right)\\
\mathbf{elif}\;y \leq 2.9 \cdot 10^{-243}:\\
\;\;\;\;\left(\left(j \cdot y3\right) \cdot y5\right) \cdot y0\\
\mathbf{elif}\;y \leq 3.3 \cdot 10^{+190}:\\
\;\;\;\;\left(b \cdot \left(k \cdot z\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\end{array}
\end{array}
if y < -4.1999999999999999e107Initial program 20.0%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites48.9%
Taylor expanded in y4 around inf
Applied rewrites38.3%
Taylor expanded in y around inf
Applied rewrites38.4%
if -4.1999999999999999e107 < y < 2.89999999999999977e-243Initial program 25.8%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites34.6%
Taylor expanded in j around inf
Applied rewrites39.0%
Taylor expanded in x around 0
Applied rewrites27.6%
if 2.89999999999999977e-243 < y < 3.3e190Initial program 27.9%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites41.5%
Taylor expanded in k around -inf
Applied rewrites32.2%
Taylor expanded in z around inf
Applied rewrites24.2%
if 3.3e190 < y Initial program 18.2%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in a around -inf
Applied rewrites37.4%
Taylor expanded in y around inf
Applied rewrites42.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -1.45e+29)
(* b (* y4 (* j t)))
(if (<= j -1.8e-52)
(* (* b (* k z)) y0)
(if (<= j 46000000.0) (* (- a) (* (* y y3) y5)) (* (* (* j y3) 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) {
double tmp;
if (j <= -1.45e+29) {
tmp = b * (y4 * (j * t));
} else if (j <= -1.8e-52) {
tmp = (b * (k * z)) * y0;
} else if (j <= 46000000.0) {
tmp = -a * ((y * y3) * y5);
} else {
tmp = ((j * y3) * y5) * y0;
}
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 (j <= (-1.45d+29)) then
tmp = b * (y4 * (j * t))
else if (j <= (-1.8d-52)) then
tmp = (b * (k * z)) * y0
else if (j <= 46000000.0d0) then
tmp = -a * ((y * y3) * y5)
else
tmp = ((j * y3) * y5) * y0
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 (j <= -1.45e+29) {
tmp = b * (y4 * (j * t));
} else if (j <= -1.8e-52) {
tmp = (b * (k * z)) * y0;
} else if (j <= 46000000.0) {
tmp = -a * ((y * y3) * y5);
} else {
tmp = ((j * y3) * y5) * y0;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -1.45e+29: tmp = b * (y4 * (j * t)) elif j <= -1.8e-52: tmp = (b * (k * z)) * y0 elif j <= 46000000.0: tmp = -a * ((y * y3) * y5) else: tmp = ((j * y3) * y5) * 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 <= -1.45e+29) tmp = Float64(b * Float64(y4 * Float64(j * t))); elseif (j <= -1.8e-52) tmp = Float64(Float64(b * Float64(k * z)) * y0); elseif (j <= 46000000.0) tmp = Float64(Float64(-a) * Float64(Float64(y * y3) * y5)); else tmp = Float64(Float64(Float64(j * y3) * y5) * y0); 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 (j <= -1.45e+29) tmp = b * (y4 * (j * t)); elseif (j <= -1.8e-52) tmp = (b * (k * z)) * y0; elseif (j <= 46000000.0) tmp = -a * ((y * y3) * y5); else tmp = ((j * y3) * y5) * y0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -1.45e+29], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -1.8e-52], N[(N[(b * N[(k * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], If[LessEqual[j, 46000000.0], N[((-a) * N[(N[(y * y3), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], N[(N[(N[(j * y3), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;j \leq -1.8 \cdot 10^{-52}:\\
\;\;\;\;\left(b \cdot \left(k \cdot z\right)\right) \cdot y0\\
\mathbf{elif}\;j \leq 46000000:\\
\;\;\;\;\left(-a\right) \cdot \left(\left(y \cdot y3\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot y3\right) \cdot y5\right) \cdot y0\\
\end{array}
\end{array}
if j < -1.45e29Initial program 12.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in y4 around inf
Applied rewrites42.2%
Taylor expanded in y around 0
Applied rewrites36.2%
if -1.45e29 < j < -1.79999999999999994e-52Initial program 43.5%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites57.2%
Taylor expanded in k around -inf
Applied rewrites48.3%
Taylor expanded in z around inf
Applied rewrites35.9%
if -1.79999999999999994e-52 < j < 4.6e7Initial program 28.2%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.5%
Taylor expanded in a around -inf
Applied rewrites23.8%
Taylor expanded in y around inf
Applied rewrites23.7%
if 4.6e7 < j Initial program 24.2%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.2%
Taylor expanded in j around inf
Applied rewrites47.6%
Taylor expanded in x around 0
Applied rewrites30.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -8e-102)
(* (* y3 y5) (fma j y0 (* (- a) y)))
(if (<= y3 50000000.0)
(* (* (* (- x) y0) j) b)
(* (* (fma z a (* y4 (- j))) y3) y1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -8e-102) {
tmp = (y3 * y5) * fma(j, y0, (-a * y));
} else if (y3 <= 50000000.0) {
tmp = ((-x * y0) * j) * b;
} else {
tmp = (fma(z, a, (y4 * -j)) * y3) * y1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -8e-102) tmp = Float64(Float64(y3 * y5) * fma(j, y0, Float64(Float64(-a) * y))); elseif (y3 <= 50000000.0) tmp = Float64(Float64(Float64(Float64(-x) * y0) * j) * b); else tmp = Float64(Float64(fma(z, a, Float64(y4 * Float64(-j))) * y3) * y1); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -8e-102], N[(N[(y3 * y5), $MachinePrecision] * N[(j * y0 + N[((-a) * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 50000000.0], N[(N[(N[((-x) * y0), $MachinePrecision] * j), $MachinePrecision] * b), $MachinePrecision], N[(N[(N[(z * a + N[(y4 * (-j)), $MachinePrecision]), $MachinePrecision] * y3), $MachinePrecision] * y1), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -8 \cdot 10^{-102}:\\
\;\;\;\;\left(y3 \cdot y5\right) \cdot \mathsf{fma}\left(j, y0, \left(-a\right) \cdot y\right)\\
\mathbf{elif}\;y3 \leq 50000000:\\
\;\;\;\;\left(\left(\left(-x\right) \cdot y0\right) \cdot j\right) \cdot b\\
\mathbf{else}:\\
\;\;\;\;\left(\mathsf{fma}\left(z, a, y4 \cdot \left(-j\right)\right) \cdot y3\right) \cdot y1\\
\end{array}
\end{array}
if y3 < -7.99999999999999946e-102Initial program 23.3%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites42.0%
Taylor expanded in y5 around -inf
Applied rewrites45.6%
if -7.99999999999999946e-102 < y3 < 5e7Initial program 29.8%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites39.9%
Taylor expanded in j around inf
Applied rewrites29.7%
Taylor expanded in x around inf
Applied rewrites26.3%
if 5e7 < y3 Initial program 17.9%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites52.5%
Taylor expanded in y around 0
Applied rewrites54.0%
Taylor expanded in y0 around inf
Applied rewrites55.2%
Taylor expanded in y1 around -inf
Applied rewrites43.2%
Final simplification36.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= j -4.6e+68) (* b (* y4 (* j t))) (if (<= j 8.5e+35) (* (* (- k) (* y2 y5)) y0) (* (* (* j y3) 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) {
double tmp;
if (j <= -4.6e+68) {
tmp = b * (y4 * (j * t));
} else if (j <= 8.5e+35) {
tmp = (-k * (y2 * y5)) * y0;
} else {
tmp = ((j * y3) * y5) * y0;
}
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 (j <= (-4.6d+68)) then
tmp = b * (y4 * (j * t))
else if (j <= 8.5d+35) then
tmp = (-k * (y2 * y5)) * y0
else
tmp = ((j * y3) * y5) * y0
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 (j <= -4.6e+68) {
tmp = b * (y4 * (j * t));
} else if (j <= 8.5e+35) {
tmp = (-k * (y2 * y5)) * y0;
} else {
tmp = ((j * y3) * y5) * y0;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -4.6e+68: tmp = b * (y4 * (j * t)) elif j <= 8.5e+35: tmp = (-k * (y2 * y5)) * y0 else: tmp = ((j * y3) * y5) * 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 <= -4.6e+68) tmp = Float64(b * Float64(y4 * Float64(j * t))); elseif (j <= 8.5e+35) tmp = Float64(Float64(Float64(-k) * Float64(y2 * y5)) * y0); else tmp = Float64(Float64(Float64(j * y3) * y5) * y0); 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 (j <= -4.6e+68) tmp = b * (y4 * (j * t)); elseif (j <= 8.5e+35) tmp = (-k * (y2 * y5)) * y0; else tmp = ((j * y3) * y5) * y0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -4.6e+68], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 8.5e+35], N[(N[((-k) * N[(y2 * y5), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(N[(j * y3), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -4.6 \cdot 10^{+68}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;j \leq 8.5 \cdot 10^{+35}:\\
\;\;\;\;\left(\left(-k\right) \cdot \left(y2 \cdot y5\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot y3\right) \cdot y5\right) \cdot y0\\
\end{array}
\end{array}
if j < -4.6e68Initial program 12.9%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.5%
Taylor expanded in y4 around inf
Applied rewrites48.9%
Taylor expanded in y around 0
Applied rewrites41.8%
if -4.6e68 < j < 8.4999999999999995e35Initial program 30.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.6%
Taylor expanded in k around -inf
Applied rewrites31.0%
Taylor expanded in z around 0
Applied rewrites22.5%
if 8.4999999999999995e35 < j Initial program 21.9%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites38.4%
Taylor expanded in j around inf
Applied rewrites48.3%
Taylor expanded in x around 0
Applied rewrites31.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (or (<= t -1e-23) (not (<= t 1.12e-70))) (* b (* y4 (* j t))) (* (* (* y1 a) z) y3)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if ((t <= -1e-23) || !(t <= 1.12e-70)) {
tmp = b * (y4 * (j * t));
} else {
tmp = ((y1 * a) * z) * y3;
}
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 ((t <= (-1d-23)) .or. (.not. (t <= 1.12d-70))) then
tmp = b * (y4 * (j * t))
else
tmp = ((y1 * a) * z) * y3
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 ((t <= -1e-23) || !(t <= 1.12e-70)) {
tmp = b * (y4 * (j * t));
} else {
tmp = ((y1 * a) * z) * y3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if (t <= -1e-23) or not (t <= 1.12e-70): tmp = b * (y4 * (j * t)) else: tmp = ((y1 * a) * z) * y3 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if ((t <= -1e-23) || !(t <= 1.12e-70)) tmp = Float64(b * Float64(y4 * Float64(j * t))); else tmp = Float64(Float64(Float64(y1 * a) * z) * y3); 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 ((t <= -1e-23) || ~((t <= 1.12e-70))) tmp = b * (y4 * (j * t)); else tmp = ((y1 * a) * z) * y3; 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[t, -1e-23], N[Not[LessEqual[t, 1.12e-70]], $MachinePrecision]], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(y1 * a), $MachinePrecision] * z), $MachinePrecision] * y3), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1 \cdot 10^{-23} \lor \neg \left(t \leq 1.12 \cdot 10^{-70}\right):\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y1 \cdot a\right) \cdot z\right) \cdot y3\\
\end{array}
\end{array}
if t < -9.9999999999999996e-24 or 1.12e-70 < t Initial program 18.5%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites42.3%
Taylor expanded in y4 around inf
Applied rewrites34.6%
Taylor expanded in y around 0
Applied rewrites26.7%
if -9.9999999999999996e-24 < t < 1.12e-70Initial program 35.0%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites42.8%
Taylor expanded in a around -inf
Applied rewrites21.9%
Taylor expanded in y around 0
Applied rewrites11.2%
Applied rewrites17.0%
Final simplification23.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= j -1.45e+29) (* b (* y4 (* j t))) (if (<= j 1.15e-227) (* (* b (* k z)) y0) (* (* (* j y3) 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) {
double tmp;
if (j <= -1.45e+29) {
tmp = b * (y4 * (j * t));
} else if (j <= 1.15e-227) {
tmp = (b * (k * z)) * y0;
} else {
tmp = ((j * y3) * y5) * y0;
}
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 (j <= (-1.45d+29)) then
tmp = b * (y4 * (j * t))
else if (j <= 1.15d-227) then
tmp = (b * (k * z)) * y0
else
tmp = ((j * y3) * y5) * y0
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 (j <= -1.45e+29) {
tmp = b * (y4 * (j * t));
} else if (j <= 1.15e-227) {
tmp = (b * (k * z)) * y0;
} else {
tmp = ((j * y3) * y5) * y0;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -1.45e+29: tmp = b * (y4 * (j * t)) elif j <= 1.15e-227: tmp = (b * (k * z)) * y0 else: tmp = ((j * y3) * y5) * 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 <= -1.45e+29) tmp = Float64(b * Float64(y4 * Float64(j * t))); elseif (j <= 1.15e-227) tmp = Float64(Float64(b * Float64(k * z)) * y0); else tmp = Float64(Float64(Float64(j * y3) * y5) * y0); 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 (j <= -1.45e+29) tmp = b * (y4 * (j * t)); elseif (j <= 1.15e-227) tmp = (b * (k * z)) * y0; else tmp = ((j * y3) * y5) * y0; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -1.45e+29], N[(b * N[(y4 * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.15e-227], N[(N[(b * N[(k * z), $MachinePrecision]), $MachinePrecision] * y0), $MachinePrecision], N[(N[(N[(j * y3), $MachinePrecision] * y5), $MachinePrecision] * y0), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.45 \cdot 10^{+29}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;j \leq 1.15 \cdot 10^{-227}:\\
\;\;\;\;\left(b \cdot \left(k \cdot z\right)\right) \cdot y0\\
\mathbf{else}:\\
\;\;\;\;\left(\left(j \cdot y3\right) \cdot y5\right) \cdot y0\\
\end{array}
\end{array}
if j < -1.45e29Initial program 12.6%
Taylor expanded in b around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites46.3%
Taylor expanded in y4 around inf
Applied rewrites42.2%
Taylor expanded in y around 0
Applied rewrites36.2%
if -1.45e29 < j < 1.15000000000000006e-227Initial program 38.3%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites36.5%
Taylor expanded in k around -inf
Applied rewrites35.6%
Taylor expanded in z around inf
Applied rewrites22.7%
if 1.15000000000000006e-227 < j Initial program 21.4%
Taylor expanded in y0 around inf
*-commutativeN/A
lower-*.f64N/A
Applied rewrites37.3%
Taylor expanded in j around inf
Applied rewrites35.2%
Taylor expanded in x around 0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y5 -5.1e+62) (* (* (* y3 a) y1) z) (* (* (* y1 a) z) y3)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -5.1e+62) {
tmp = ((y3 * a) * y1) * z;
} else {
tmp = ((y1 * a) * z) * y3;
}
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 (y5 <= (-5.1d+62)) then
tmp = ((y3 * a) * y1) * z
else
tmp = ((y1 * a) * z) * y3
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 (y5 <= -5.1e+62) {
tmp = ((y3 * a) * y1) * z;
} else {
tmp = ((y1 * a) * z) * y3;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -5.1e+62: tmp = ((y3 * a) * y1) * z else: tmp = ((y1 * a) * z) * y3 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 <= -5.1e+62) tmp = Float64(Float64(Float64(y3 * a) * y1) * z); else tmp = Float64(Float64(Float64(y1 * a) * z) * y3); 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 (y5 <= -5.1e+62) tmp = ((y3 * a) * y1) * z; else tmp = ((y1 * a) * z) * y3; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -5.1e+62], N[(N[(N[(y3 * a), $MachinePrecision] * y1), $MachinePrecision] * z), $MachinePrecision], N[(N[(N[(y1 * a), $MachinePrecision] * z), $MachinePrecision] * y3), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -5.1 \cdot 10^{+62}:\\
\;\;\;\;\left(\left(y3 \cdot a\right) \cdot y1\right) \cdot z\\
\mathbf{else}:\\
\;\;\;\;\left(\left(y1 \cdot a\right) \cdot z\right) \cdot y3\\
\end{array}
\end{array}
if y5 < -5.09999999999999998e62Initial program 25.4%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites35.0%
Taylor expanded in a around -inf
Applied rewrites19.1%
Taylor expanded in y around 0
Applied rewrites6.3%
Applied rewrites17.6%
if -5.09999999999999998e62 < y5 Initial program 24.6%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.9%
Taylor expanded in a around -inf
Applied rewrites19.5%
Taylor expanded in y around 0
Applied rewrites10.2%
Applied rewrites13.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* (* y1 a) z) y3))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return ((y1 * a) * z) * y3;
}
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 = ((y1 * a) * z) * y3
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 ((y1 * a) * z) * y3;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return ((y1 * a) * z) * y3
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(y1 * a) * z) * y3) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = ((y1 * a) * z) * y3; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(y1 * a), $MachinePrecision] * z), $MachinePrecision] * y3), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(y1 \cdot a\right) \cdot z\right) \cdot y3
\end{array}
Initial program 24.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around -inf
Applied rewrites19.4%
Taylor expanded in y around 0
Applied rewrites9.2%
Applied rewrites12.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* (* y3 y1) (* z a)))
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 (y3 * y1) * (z * a);
}
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 = (y3 * y1) * (z * a)
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 (y3 * y1) * (z * a);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (y3 * y1) * (z * a)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(y3 * y1) * Float64(z * a)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (y3 * y1) * (z * a); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(y3 * y1), $MachinePrecision] * N[(z * a), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(y3 \cdot y1\right) \cdot \left(z \cdot a\right)
\end{array}
Initial program 24.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around -inf
Applied rewrites19.4%
Taylor expanded in y around 0
Applied rewrites9.2%
Applied rewrites10.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* y1 (* y3 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) {
return a * (y1 * (y3 * z));
}
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 = a * (y1 * (y3 * z))
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 a * (y1 * (y3 * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (y1 * (y3 * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(y1 * Float64(y3 * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (y1 * (y3 * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)
\end{array}
Initial program 24.8%
Taylor expanded in y3 around -inf
mul-1-negN/A
distribute-lft-neg-inN/A
lower-*.f64N/A
lower-neg.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around -inf
Applied rewrites19.4%
Taylor expanded in y around 0
Applied rewrites9.2%
(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 2024364
(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)))))