
(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]
\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)
Herbie found 32 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]
\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)
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* x y) (* t z)))
(t_4 (- (* j x) (* k z)))
(t_5 (* b (- (fma a t_3 (* y4 t_1)) (* y0 t_4)))))
(if (<= b -2.95e+197)
t_5
(if (<= b -1.3e+24)
(*
j
(-
(fma -1.0 (* y3 (- (* y1 y4) (* y0 y5))) (* t (- (* b y4) (* i y5))))
(* x (- (* b y0) (* i y1)))))
(if (<= b -4.4e-170)
(* -1.0 (* y5 (- (fma i t_1 (* y0 t_2)) (* a (- (* t y2) (* y y3))))))
(if (<= b -8.5e-197)
(* y1 (* -1.0 (* x (- (* a y2) (* i j)))))
(if (<= b 3.65e-121)
(+
(* c (* t (- (* i z) (* y2 y4))))
(* t_2 (- (* y4 y1) (* y5 y0))))
(if (<= b 3250000.0)
(* -1.0 (* i (- (fma c t_3 (* y5 t_1)) (* y1 t_4))))
t_5))))))))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 * t) - (k * y);
double t_2 = (k * y2) - (j * y3);
double t_3 = (x * y) - (t * z);
double t_4 = (j * x) - (k * z);
double t_5 = b * (fma(a, t_3, (y4 * t_1)) - (y0 * t_4));
double tmp;
if (b <= -2.95e+197) {
tmp = t_5;
} else if (b <= -1.3e+24) {
tmp = j * (fma(-1.0, (y3 * ((y1 * y4) - (y0 * y5))), (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1))));
} else if (b <= -4.4e-170) {
tmp = -1.0 * (y5 * (fma(i, t_1, (y0 * t_2)) - (a * ((t * y2) - (y * y3)))));
} else if (b <= -8.5e-197) {
tmp = y1 * (-1.0 * (x * ((a * y2) - (i * j))));
} else if (b <= 3.65e-121) {
tmp = (c * (t * ((i * z) - (y2 * y4)))) + (t_2 * ((y4 * y1) - (y5 * y0)));
} else if (b <= 3250000.0) {
tmp = -1.0 * (i * (fma(c, t_3, (y5 * t_1)) - (y1 * t_4)));
} else {
tmp = t_5;
}
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 * t) - Float64(k * y)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(x * y) - Float64(t * z)) t_4 = Float64(Float64(j * x) - Float64(k * z)) t_5 = Float64(b * Float64(fma(a, t_3, Float64(y4 * t_1)) - Float64(y0 * t_4))) tmp = 0.0 if (b <= -2.95e+197) tmp = t_5; elseif (b <= -1.3e+24) tmp = Float64(j * Float64(fma(-1.0, Float64(y3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))), Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (b <= -4.4e-170) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_1, Float64(y0 * t_2)) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (b <= -8.5e-197) tmp = Float64(y1 * Float64(-1.0 * Float64(x * Float64(Float64(a * y2) - Float64(i * j))))); elseif (b <= 3.65e-121) tmp = Float64(Float64(c * Float64(t * Float64(Float64(i * z) - Float64(y2 * y4)))) + Float64(t_2 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (b <= 3250000.0) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_3, Float64(y5 * t_1)) - Float64(y1 * t_4)))); else tmp = t_5; 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 * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * N[(N[(a * t$95$3 + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.95e+197], t$95$5, If[LessEqual[b, -1.3e+24], N[(j * N[(N[(-1.0 * N[(y3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.4e-170], N[(-1.0 * N[(y5 * N[(N[(i * t$95$1 + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e-197], N[(y1 * N[(-1.0 * N[(x * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.65e-121], N[(N[(c * N[(t * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3250000.0], N[(-1.0 * N[(i * N[(N[(c * t$95$3 + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y1 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := x \cdot y - t \cdot z\\
t_4 := j \cdot x - k \cdot z\\
t_5 := b \cdot \left(\mathsf{fma}\left(a, t\_3, y4 \cdot t\_1\right) - y0 \cdot t\_4\right)\\
\mathbf{if}\;b \leq -2.95 \cdot 10^{+197}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{+24}:\\
\;\;\;\;j \cdot \left(\mathsf{fma}\left(-1, y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right), t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-170}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_1, y0 \cdot t\_2\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-197}:\\
\;\;\;\;y1 \cdot \left(-1 \cdot \left(x \cdot \left(a \cdot y2 - i \cdot j\right)\right)\right)\\
\mathbf{elif}\;b \leq 3.65 \cdot 10^{-121}:\\
\;\;\;\;c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right) + t\_2 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;b \leq 3250000:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_3, y5 \cdot t\_1\right) - y1 \cdot t\_4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
if b < -2.9499999999999999e197 or 3.25e6 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -2.9499999999999999e197 < b < -1.2999999999999999e24Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
if -1.2999999999999999e24 < b < -4.4000000000000003e-170Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -4.4000000000000003e-170 < b < -8.5e-197Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
if -8.5e-197 < b < 3.6499999999999998e-121Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.7%
Applied rewrites37.7%
if 3.6499999999999998e-121 < b < 3.25e6Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
lift-*.f64N/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.9%
Applied rewrites35.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (* t_2 (- (* y4 y1) (* y5 y0))))
(t_4 (- (* x y) (* t z)))
(t_5 (- (* j x) (* k z)))
(t_6 (* b (- (fma a t_4 (* y4 t_1)) (* y0 t_5)))))
(if (<= b -9e+129)
t_6
(if (<= b -2.6e+24)
(+ (* c (* -1.0 (* y (- (* i x) (* y3 y4))))) t_3)
(if (<= b -4.4e-170)
(* -1.0 (* y5 (- (fma i t_1 (* y0 t_2)) (* a (- (* t y2) (* y y3))))))
(if (<= b -8.5e-197)
(* y1 (* -1.0 (* x (- (* a y2) (* i j)))))
(if (<= b 3.65e-121)
(+ (* c (* t (- (* i z) (* y2 y4)))) t_3)
(if (<= b 3250000.0)
(* -1.0 (* i (- (fma c t_4 (* y5 t_1)) (* y1 t_5))))
t_6))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * t) - (k * y);
double t_2 = (k * y2) - (j * y3);
double t_3 = t_2 * ((y4 * y1) - (y5 * y0));
double t_4 = (x * y) - (t * z);
double t_5 = (j * x) - (k * z);
double t_6 = b * (fma(a, t_4, (y4 * t_1)) - (y0 * t_5));
double tmp;
if (b <= -9e+129) {
tmp = t_6;
} else if (b <= -2.6e+24) {
tmp = (c * (-1.0 * (y * ((i * x) - (y3 * y4))))) + t_3;
} else if (b <= -4.4e-170) {
tmp = -1.0 * (y5 * (fma(i, t_1, (y0 * t_2)) - (a * ((t * y2) - (y * y3)))));
} else if (b <= -8.5e-197) {
tmp = y1 * (-1.0 * (x * ((a * y2) - (i * j))));
} else if (b <= 3.65e-121) {
tmp = (c * (t * ((i * z) - (y2 * y4)))) + t_3;
} else if (b <= 3250000.0) {
tmp = -1.0 * (i * (fma(c, t_4, (y5 * t_1)) - (y1 * t_5)));
} else {
tmp = t_6;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * t) - Float64(k * y)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(t_2 * Float64(Float64(y4 * y1) - Float64(y5 * y0))) t_4 = Float64(Float64(x * y) - Float64(t * z)) t_5 = Float64(Float64(j * x) - Float64(k * z)) t_6 = Float64(b * Float64(fma(a, t_4, Float64(y4 * t_1)) - Float64(y0 * t_5))) tmp = 0.0 if (b <= -9e+129) tmp = t_6; elseif (b <= -2.6e+24) tmp = Float64(Float64(c * Float64(-1.0 * Float64(y * Float64(Float64(i * x) - Float64(y3 * y4))))) + t_3); elseif (b <= -4.4e-170) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_1, Float64(y0 * t_2)) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (b <= -8.5e-197) tmp = Float64(y1 * Float64(-1.0 * Float64(x * Float64(Float64(a * y2) - Float64(i * j))))); elseif (b <= 3.65e-121) tmp = Float64(Float64(c * Float64(t * Float64(Float64(i * z) - Float64(y2 * y4)))) + t_3); elseif (b <= 3250000.0) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_4, Float64(y5 * t_1)) - Float64(y1 * t_5)))); else tmp = t_6; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t$95$2 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(b * N[(N[(a * t$95$4 + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9e+129], t$95$6, If[LessEqual[b, -2.6e+24], N[(N[(c * N[(-1.0 * N[(y * N[(N[(i * x), $MachinePrecision] - N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], If[LessEqual[b, -4.4e-170], N[(-1.0 * N[(y5 * N[(N[(i * t$95$1 + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e-197], N[(y1 * N[(-1.0 * N[(x * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.65e-121], N[(N[(c * N[(t * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], If[LessEqual[b, 3250000.0], N[(-1.0 * N[(i * N[(N[(c * t$95$4 + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y1 * t$95$5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$6]]]]]]]]]]]]
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := t\_2 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
t_4 := x \cdot y - t \cdot z\\
t_5 := j \cdot x - k \cdot z\\
t_6 := b \cdot \left(\mathsf{fma}\left(a, t\_4, y4 \cdot t\_1\right) - y0 \cdot t\_5\right)\\
\mathbf{if}\;b \leq -9 \cdot 10^{+129}:\\
\;\;\;\;t\_6\\
\mathbf{elif}\;b \leq -2.6 \cdot 10^{+24}:\\
\;\;\;\;c \cdot \left(-1 \cdot \left(y \cdot \left(i \cdot x - y3 \cdot y4\right)\right)\right) + t\_3\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-170}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_1, y0 \cdot t\_2\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-197}:\\
\;\;\;\;y1 \cdot \left(-1 \cdot \left(x \cdot \left(a \cdot y2 - i \cdot j\right)\right)\right)\\
\mathbf{elif}\;b \leq 3.65 \cdot 10^{-121}:\\
\;\;\;\;c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right) + t\_3\\
\mathbf{elif}\;b \leq 3250000:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_4, y5 \cdot t\_1\right) - y1 \cdot t\_5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_6\\
\end{array}
if b < -9.0000000000000003e129 or 3.25e6 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -9.0000000000000003e129 < b < -2.5999999999999998e24Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.9%
Applied rewrites37.9%
if -2.5999999999999998e24 < b < -4.4000000000000003e-170Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -4.4000000000000003e-170 < b < -8.5e-197Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
if -8.5e-197 < b < 3.6499999999999998e-121Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.7%
Applied rewrites37.7%
if 3.6499999999999998e-121 < b < 3.25e6Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
lift-*.f64N/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.9%
Applied rewrites35.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* k y2) (* j y3)))
(t_3 (- (* x y) (* t z)))
(t_4 (- (* j x) (* k z)))
(t_5 (* b (- (fma a t_3 (* y4 t_1)) (* y0 t_4)))))
(if (<= b -2.95e+197)
t_5
(if (<= b -1.3e+24)
(*
j
(-
(fma -1.0 (* y3 (- (* y1 y4) (* y0 y5))) (* t (- (* b y4) (* i y5))))
(* x (- (* b y0) (* i y1)))))
(if (<= b -7e-154)
(* -1.0 (* y5 (- (fma i t_1 (* y0 t_2)) (* a (- (* t y2) (* y y3))))))
(if (<= b 2.25e-88)
(*
y1
(-
(fma -1.0 (* a (- (* x y2) (* y3 z))) (* y4 t_2))
(* -1.0 (* i t_4))))
(if (<= b 3250000.0)
(* -1.0 (* i (- (fma c t_3 (* y5 t_1)) (* y1 t_4))))
t_5)))))))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 * t) - (k * y);
double t_2 = (k * y2) - (j * y3);
double t_3 = (x * y) - (t * z);
double t_4 = (j * x) - (k * z);
double t_5 = b * (fma(a, t_3, (y4 * t_1)) - (y0 * t_4));
double tmp;
if (b <= -2.95e+197) {
tmp = t_5;
} else if (b <= -1.3e+24) {
tmp = j * (fma(-1.0, (y3 * ((y1 * y4) - (y0 * y5))), (t * ((b * y4) - (i * y5)))) - (x * ((b * y0) - (i * y1))));
} else if (b <= -7e-154) {
tmp = -1.0 * (y5 * (fma(i, t_1, (y0 * t_2)) - (a * ((t * y2) - (y * y3)))));
} else if (b <= 2.25e-88) {
tmp = y1 * (fma(-1.0, (a * ((x * y2) - (y3 * z))), (y4 * t_2)) - (-1.0 * (i * t_4)));
} else if (b <= 3250000.0) {
tmp = -1.0 * (i * (fma(c, t_3, (y5 * t_1)) - (y1 * t_4)));
} else {
tmp = t_5;
}
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 * t) - Float64(k * y)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = Float64(Float64(x * y) - Float64(t * z)) t_4 = Float64(Float64(j * x) - Float64(k * z)) t_5 = Float64(b * Float64(fma(a, t_3, Float64(y4 * t_1)) - Float64(y0 * t_4))) tmp = 0.0 if (b <= -2.95e+197) tmp = t_5; elseif (b <= -1.3e+24) tmp = Float64(j * Float64(fma(-1.0, Float64(y3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))), Float64(t * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (b <= -7e-154) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_1, Float64(y0 * t_2)) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (b <= 2.25e-88) tmp = Float64(y1 * Float64(fma(-1.0, Float64(a * Float64(Float64(x * y2) - Float64(y3 * z))), Float64(y4 * t_2)) - Float64(-1.0 * Float64(i * t_4)))); elseif (b <= 3250000.0) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_3, Float64(y5 * t_1)) - Float64(y1 * t_4)))); else tmp = t_5; 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 * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(b * N[(N[(a * t$95$3 + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.95e+197], t$95$5, If[LessEqual[b, -1.3e+24], N[(j * N[(N[(-1.0 * N[(y3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7e-154], N[(-1.0 * N[(y5 * N[(N[(i * t$95$1 + N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.25e-88], N[(y1 * N[(N[(-1.0 * N[(a * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(i * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3250000.0], N[(-1.0 * N[(i * N[(N[(c * t$95$3 + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y1 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := x \cdot y - t \cdot z\\
t_4 := j \cdot x - k \cdot z\\
t_5 := b \cdot \left(\mathsf{fma}\left(a, t\_3, y4 \cdot t\_1\right) - y0 \cdot t\_4\right)\\
\mathbf{if}\;b \leq -2.95 \cdot 10^{+197}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{+24}:\\
\;\;\;\;j \cdot \left(\mathsf{fma}\left(-1, y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right), t \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq -7 \cdot 10^{-154}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_1, y0 \cdot t\_2\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;b \leq 2.25 \cdot 10^{-88}:\\
\;\;\;\;y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot \left(x \cdot y2 - y3 \cdot z\right), y4 \cdot t\_2\right) - -1 \cdot \left(i \cdot t\_4\right)\right)\\
\mathbf{elif}\;b \leq 3250000:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_3, y5 \cdot t\_1\right) - y1 \cdot t\_4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
if b < -2.9499999999999999e197 or 3.25e6 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -2.9499999999999999e197 < b < -1.2999999999999999e24Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
if -1.2999999999999999e24 < b < -7.0000000000000001e-154Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -7.0000000000000001e-154 < b < 2.25e-88Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
if 2.25e-88 < b < 3.25e6Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
lift-*.f64N/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.9%
Applied rewrites35.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
(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 (* i (* y1 (- (* j x) (* k 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 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 = i * (y1 * ((j * x) - (k * z)));
}
return tmp;
}
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double 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.POSITIVE_INFINITY) {
tmp = t_1;
} else {
tmp = i * (y1 * ((j * x) - (k * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): 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))) tmp = 0 if t_1 <= math.inf: tmp = t_1 else: tmp = i * (y1 * ((j * x) - (k * z))) 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(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); 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 * 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))); tmp = 0.0; if (t_1 <= Inf) tmp = t_1; else tmp = i * (y1 * ((j * x) - (k * z))); 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[(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[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\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}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\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 29.7%
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 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* x y) (* t z)))
(t_3 (- (* j x) (* k z)))
(t_4 (* b (- (fma a t_2 (* y4 t_1)) (* y0 t_3)))))
(if (<= b -2.5e+127)
t_4
(if (<= b -1.56e-77)
(+
(* c (* x (fma -1.0 (* i y) (* y0 y2))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
(if (<= b -2.3e-274)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(if (<= b 3250000.0)
(* -1.0 (* i (- (fma c t_2 (* y5 t_1)) (* y1 t_3))))
t_4))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * t) - (k * y);
double t_2 = (x * y) - (t * z);
double t_3 = (j * x) - (k * z);
double t_4 = b * (fma(a, t_2, (y4 * t_1)) - (y0 * t_3));
double tmp;
if (b <= -2.5e+127) {
tmp = t_4;
} else if (b <= -1.56e-77) {
tmp = (c * (x * fma(-1.0, (i * y), (y0 * y2)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (b <= -2.3e-274) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else if (b <= 3250000.0) {
tmp = -1.0 * (i * (fma(c, t_2, (y5 * t_1)) - (y1 * t_3)));
} else {
tmp = t_4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * t) - Float64(k * y)) t_2 = Float64(Float64(x * y) - Float64(t * z)) t_3 = Float64(Float64(j * x) - Float64(k * z)) t_4 = Float64(b * Float64(fma(a, t_2, Float64(y4 * t_1)) - Float64(y0 * t_3))) tmp = 0.0 if (b <= -2.5e+127) tmp = t_4; elseif (b <= -1.56e-77) tmp = Float64(Float64(c * Float64(x * fma(-1.0, Float64(i * y), Float64(y0 * y2)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (b <= -2.3e-274) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (b <= 3250000.0) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_2, Float64(y5 * t_1)) - Float64(y1 * t_3)))); else tmp = t_4; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(a * t$95$2 + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+127], t$95$4, If[LessEqual[b, -1.56e-77], N[(N[(c * N[(x * N[(-1.0 * N[(i * y), $MachinePrecision] + N[(y0 * y2), $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[b, -2.3e-274], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3250000.0], N[(-1.0 * N[(i * N[(N[(c * t$95$2 + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := x \cdot y - t \cdot z\\
t_3 := j \cdot x - k \cdot z\\
t_4 := b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot t\_1\right) - y0 \cdot t\_3\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+127}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;b \leq -1.56 \cdot 10^{-77}:\\
\;\;\;\;c \cdot \left(x \cdot \mathsf{fma}\left(-1, i \cdot y, y0 \cdot y2\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;b \leq -2.3 \cdot 10^{-274}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 3250000:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_2, y5 \cdot t\_1\right) - y1 \cdot t\_3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
if b < -2.5000000000000002e127 or 3.25e6 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -2.5000000000000002e127 < b < -1.5600000000000001e-77Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6438.5%
Applied rewrites38.5%
if -1.5600000000000001e-77 < b < -2.3e-274Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if -2.3e-274 < b < 3.25e6Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
lift-*.f64N/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.9%
Applied rewrites35.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* t z)))
(t_2
(*
b
(-
(fma a t_1 (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z))))))
(t_3 (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
(if (<= b -2.5e+127)
t_2
(if (<= b -1.56e-77)
(+ (* c (* x (fma -1.0 (* i y) (* y0 y2)))) t_3)
(if (<= b -2.1e-274)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(if (<= b 5.5e+37) (+ (* -1.0 (* c (* i t_1))) t_3) 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 = (x * y) - (t * z);
double t_2 = b * (fma(a, t_1, (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
double t_3 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0));
double tmp;
if (b <= -2.5e+127) {
tmp = t_2;
} else if (b <= -1.56e-77) {
tmp = (c * (x * fma(-1.0, (i * y), (y0 * y2)))) + t_3;
} else if (b <= -2.1e-274) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else if (b <= 5.5e+37) {
tmp = (-1.0 * (c * (i * t_1))) + t_3;
} 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 = Float64(Float64(x * y) - Float64(t * z)) t_2 = Float64(b * Float64(fma(a, t_1, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))) t_3 = Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))) tmp = 0.0 if (b <= -2.5e+127) tmp = t_2; elseif (b <= -1.56e-77) tmp = Float64(Float64(c * Float64(x * fma(-1.0, Float64(i * y), Float64(y0 * y2)))) + t_3); elseif (b <= -2.1e-274) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (b <= 5.5e+37) tmp = Float64(Float64(-1.0 * Float64(c * Float64(i * t_1))) + t_3); 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[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(b * N[(N[(a * t$95$1 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+127], t$95$2, If[LessEqual[b, -1.56e-77], N[(N[(c * N[(x * N[(-1.0 * N[(i * y), $MachinePrecision] + N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], If[LessEqual[b, -2.1e-274], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.5e+37], N[(N[(-1.0 * N[(c * N[(i * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$3), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
t_2 := b \cdot \left(\mathsf{fma}\left(a, t\_1, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
t_3 := \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+127}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -1.56 \cdot 10^{-77}:\\
\;\;\;\;c \cdot \left(x \cdot \mathsf{fma}\left(-1, i \cdot y, y0 \cdot y2\right)\right) + t\_3\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-274}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 5.5 \cdot 10^{+37}:\\
\;\;\;\;-1 \cdot \left(c \cdot \left(i \cdot t\_1\right)\right) + t\_3\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
if b < -2.5000000000000002e127 or 5.5000000000000002e37 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -2.5000000000000002e127 < b < -1.5600000000000001e-77Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6438.5%
Applied rewrites38.5%
if -1.5600000000000001e-77 < b < -2.0999999999999999e-274Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if -2.0999999999999999e-274 < b < 5.5000000000000002e37Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.1%
Applied rewrites35.1%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6441.5%
Applied rewrites41.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (- (* c y4) (* a y5)))))
(if (<= a -8.8e+153)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= a -8.5e+113)
(*
j
(fma -1.0 (* y3 (- (* y1 y4) (* y0 y5))) (* t (- (* b y4) (* i y5)))))
(if (<= a -1.6e-60)
(* y2 (- (* -1.0 (* k (* y0 y5))) t_1))
(if (<= a 2.8e-293)
(*
j
(- (* -1.0 (* y1 (* y3 y4))) (fma (* y0 b) x (* (* (- i) y1) x))))
(if (<= a 2.2e-125)
(* i (* y1 (- (* j x) (* k z))))
(if (<= a 1.05e+67)
(+
(* c (* y0 (- (* x y2) (* y3 z))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
(if (<= a 7e+134)
(* y2 (- (* x (- (* c y0) (* a y1))) t_1))
(* y1 (* y3 (fma -1.0 (* j y4) (* a 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 t_1 = t * ((c * y4) - (a * y5));
double tmp;
if (a <= -8.8e+153) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (a <= -8.5e+113) {
tmp = j * fma(-1.0, (y3 * ((y1 * y4) - (y0 * y5))), (t * ((b * y4) - (i * y5))));
} else if (a <= -1.6e-60) {
tmp = y2 * ((-1.0 * (k * (y0 * y5))) - t_1);
} else if (a <= 2.8e-293) {
tmp = j * ((-1.0 * (y1 * (y3 * y4))) - fma((y0 * b), x, ((-i * y1) * x)));
} else if (a <= 2.2e-125) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (a <= 1.05e+67) {
tmp = (c * (y0 * ((x * y2) - (y3 * z)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (a <= 7e+134) {
tmp = y2 * ((x * ((c * y0) - (a * y1))) - t_1);
} else {
tmp = y1 * (y3 * fma(-1.0, (j * y4), (a * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(Float64(c * y4) - Float64(a * y5))) tmp = 0.0 if (a <= -8.8e+153) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (a <= -8.5e+113) tmp = Float64(j * fma(-1.0, Float64(y3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))), Float64(t * Float64(Float64(b * y4) - Float64(i * y5))))); elseif (a <= -1.6e-60) tmp = Float64(y2 * Float64(Float64(-1.0 * Float64(k * Float64(y0 * y5))) - t_1)); elseif (a <= 2.8e-293) tmp = Float64(j * Float64(Float64(-1.0 * Float64(y1 * Float64(y3 * y4))) - fma(Float64(y0 * b), x, Float64(Float64(Float64(-i) * y1) * x)))); elseif (a <= 2.2e-125) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); elseif (a <= 1.05e+67) tmp = Float64(Float64(c * Float64(y0 * Float64(Float64(x * y2) - Float64(y3 * z)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (a <= 7e+134) tmp = Float64(y2 * Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) - t_1)); else tmp = Float64(y1 * Float64(y3 * fma(-1.0, Float64(j * y4), Float64(a * z)))); 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[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -8.8e+153], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -8.5e+113], N[(j * N[(-1.0 * N[(y3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.6e-60], N[(y2 * N[(N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.8e-293], N[(j * N[(N[(-1.0 * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b), $MachinePrecision] * x + N[(N[((-i) * y1), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.2e-125], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.05e+67], N[(N[(c * N[(y0 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $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[a, 7e+134], N[(y2 * N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], N[(y1 * N[(y3 * N[(-1.0 * N[(j * y4), $MachinePrecision] + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
t_1 := t \cdot \left(c \cdot y4 - a \cdot y5\right)\\
\mathbf{if}\;a \leq -8.8 \cdot 10^{+153}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;a \leq -8.5 \cdot 10^{+113}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(-1, y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right), t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\mathbf{elif}\;a \leq -1.6 \cdot 10^{-60}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right) - t\_1\right)\\
\mathbf{elif}\;a \leq 2.8 \cdot 10^{-293}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) - \mathsf{fma}\left(y0 \cdot b, x, \left(\left(-i\right) \cdot y1\right) \cdot x\right)\right)\\
\mathbf{elif}\;a \leq 2.2 \cdot 10^{-125}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 1.05 \cdot 10^{+67}:\\
\;\;\;\;c \cdot \left(y0 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+134}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, j \cdot y4, a \cdot z\right)\right)\\
\end{array}
if a < -8.7999999999999998e153Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
if -8.7999999999999998e153 < a < -8.5000000000000001e113Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.8%
Applied rewrites33.8%
if -8.5000000000000001e113 < a < -1.6000000000000001e-60Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6430.5%
Applied rewrites30.5%
if -1.6000000000000001e-60 < a < 2.8000000000000003e-293Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
lift-*.f64N/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.9%
Applied rewrites35.9%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6431.1%
Applied rewrites31.1%
if 2.8000000000000003e-293 < a < 2.1999999999999999e-125Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 2.1999999999999999e-125 < a < 1.0500000000000001e67Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.1%
Applied rewrites35.1%
if 1.0500000000000001e67 < a < 7.0000000000000001e134Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.2%
Applied rewrites34.2%
if 7.0000000000000001e134 < a Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6425.9%
Applied rewrites25.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z))))))
(t_2 (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
(if (<= b -2.5e+127)
t_1
(if (<= b -1.56e-77)
(+ (* c (* x (fma -1.0 (* i y) (* y0 y2)))) t_2)
(if (<= b -1.15e-304)
(* y2 (- (* x (- (* c y0) (* a y1))) (* t (- (* c y4) (* a y5)))))
(if (<= b 1.15e+143)
(+ (* c (* t (- (* i z) (* y2 y4)))) 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 * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
double t_2 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0));
double tmp;
if (b <= -2.5e+127) {
tmp = t_1;
} else if (b <= -1.56e-77) {
tmp = (c * (x * fma(-1.0, (i * y), (y0 * y2)))) + t_2;
} else if (b <= -1.15e-304) {
tmp = y2 * ((x * ((c * y0) - (a * y1))) - (t * ((c * y4) - (a * y5))));
} else if (b <= 1.15e+143) {
tmp = (c * (t * ((i * z) - (y2 * y4)))) + 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(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))) t_2 = Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))) tmp = 0.0 if (b <= -2.5e+127) tmp = t_1; elseif (b <= -1.56e-77) tmp = Float64(Float64(c * Float64(x * fma(-1.0, Float64(i * y), Float64(y0 * y2)))) + t_2); elseif (b <= -1.15e-304) tmp = Float64(y2 * Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (b <= 1.15e+143) tmp = Float64(Float64(c * Float64(t * Float64(Float64(i * z) - Float64(y2 * y4)))) + t_2); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.5e+127], t$95$1, If[LessEqual[b, -1.56e-77], N[(N[(c * N[(x * N[(-1.0 * N[(i * y), $MachinePrecision] + N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[b, -1.15e-304], N[(y2 * N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+143], N[(N[(c * N[(t * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
t_1 := b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
t_2 := \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;b \leq -2.5 \cdot 10^{+127}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.56 \cdot 10^{-77}:\\
\;\;\;\;c \cdot \left(x \cdot \mathsf{fma}\left(-1, i \cdot y, y0 \cdot y2\right)\right) + t\_2\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-304}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+143}:\\
\;\;\;\;c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -2.5000000000000002e127 or 1.15e143 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
if -2.5000000000000002e127 < b < -1.5600000000000001e-77Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6438.5%
Applied rewrites38.5%
if -1.5600000000000001e-77 < b < -1.15e-304Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.2%
Applied rewrites34.2%
if -1.15e-304 < b < 1.15e143Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.7%
Applied rewrites37.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -6.4e+236)
(* y2 (fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1)))))
(if (<= y2 -4.7e+148)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y2 -6e-216)
(* a (* b (* z (- (/ (* x y) z) t))))
(if (<= y2 7.2e-237)
(* b (* y0 (- (* k z) (* j x))))
(if (<= y2 5.1e+95)
(*
j
(- (* -1.0 (* y1 (* y3 y4))) (fma (* y0 b) x (* (* (- i) y1) x))))
(if (<= y2 6.5e+162)
(* j (* y5 (fma -1.0 (* i t) (* y0 y3))))
(* a (* y5 (- (* t y2) (* y 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 (y2 <= -6.4e+236) {
tmp = y2 * fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1))));
} else if (y2 <= -4.7e+148) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y2 <= -6e-216) {
tmp = a * (b * (z * (((x * y) / z) - t)));
} else if (y2 <= 7.2e-237) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (y2 <= 5.1e+95) {
tmp = j * ((-1.0 * (y1 * (y3 * y4))) - fma((y0 * b), x, ((-i * y1) * x)));
} else if (y2 <= 6.5e+162) {
tmp = j * (y5 * fma(-1.0, (i * t), (y0 * y3)));
} else {
tmp = a * (y5 * ((t * y2) - (y * 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 (y2 <= -6.4e+236) tmp = Float64(y2 * fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1))))); elseif (y2 <= -4.7e+148) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y2 <= -6e-216) tmp = Float64(a * Float64(b * Float64(z * Float64(Float64(Float64(x * y) / z) - t)))); elseif (y2 <= 7.2e-237) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (y2 <= 5.1e+95) tmp = Float64(j * Float64(Float64(-1.0 * Float64(y1 * Float64(y3 * y4))) - fma(Float64(y0 * b), x, Float64(Float64(Float64(-i) * y1) * x)))); elseif (y2 <= 6.5e+162) tmp = Float64(j * Float64(y5 * fma(-1.0, Float64(i * t), Float64(y0 * y3)))); else tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y2, -6.4e+236], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.7e+148], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -6e-216], N[(a * N[(b * N[(z * N[(N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision] - t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 7.2e-237], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.1e+95], N[(j * N[(N[(-1.0 * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b), $MachinePrecision] * x + N[(N[((-i) * y1), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 6.5e+162], N[(j * N[(y5 * N[(-1.0 * N[(i * t), $MachinePrecision] + N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\mathbf{if}\;y2 \leq -6.4 \cdot 10^{+236}:\\
\;\;\;\;y2 \cdot \mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq -4.7 \cdot 10^{+148}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -6 \cdot 10^{-216}:\\
\;\;\;\;a \cdot \left(b \cdot \left(z \cdot \left(\frac{x \cdot y}{z} - t\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 7.2 \cdot 10^{-237}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;y2 \leq 5.1 \cdot 10^{+95}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) - \mathsf{fma}\left(y0 \cdot b, x, \left(\left(-i\right) \cdot y1\right) \cdot x\right)\right)\\
\mathbf{elif}\;y2 \leq 6.5 \cdot 10^{+162}:\\
\;\;\;\;j \cdot \left(y5 \cdot \mathsf{fma}\left(-1, i \cdot t, y0 \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
if y2 < -6.4000000000000003e236Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in t around 0
lower-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.7%
Applied rewrites35.7%
if -6.4000000000000003e236 < y2 < -4.6999999999999997e148Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -4.6999999999999997e148 < y2 < -6.0000000000000003e-216Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6428.5%
Applied rewrites28.5%
if -6.0000000000000003e-216 < y2 < 7.1999999999999999e-237Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
if 7.1999999999999999e-237 < y2 < 5.1e95Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
lift-*.f64N/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.9%
Applied rewrites35.9%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6431.1%
Applied rewrites31.1%
if 5.1e95 < y2 < 6.5000000000000004e162Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if 6.5000000000000004e162 < y2 Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
(if (<= b -1.6e+127)
(* b (* y0 (- (* k z) (* j x))))
(if (<= b -1.56e-77)
(+ (* c (* x (fma -1.0 (* i y) (* y0 y2)))) t_1)
(if (<= b -1.15e-304)
(* y2 (- (* x (- (* c y0) (* a y1))) (* t (- (* c y4) (* a y5)))))
(if (<= b 1.15e+79)
(+ (* c (* t (- (* i z) (* y2 y4)))) t_1)
(*
j
(fma
-1.0
(* y3 (- (* y1 y4) (* y0 y5)))
(* t (- (* b y4) (* i 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 t_1 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0));
double tmp;
if (b <= -1.6e+127) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (b <= -1.56e-77) {
tmp = (c * (x * fma(-1.0, (i * y), (y0 * y2)))) + t_1;
} else if (b <= -1.15e-304) {
tmp = y2 * ((x * ((c * y0) - (a * y1))) - (t * ((c * y4) - (a * y5))));
} else if (b <= 1.15e+79) {
tmp = (c * (t * ((i * z) - (y2 * y4)))) + t_1;
} else {
tmp = j * fma(-1.0, (y3 * ((y1 * y4) - (y0 * y5))), (t * ((b * y4) - (i * y5))));
}
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(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))) tmp = 0.0 if (b <= -1.6e+127) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (b <= -1.56e-77) tmp = Float64(Float64(c * Float64(x * fma(-1.0, Float64(i * y), Float64(y0 * y2)))) + t_1); elseif (b <= -1.15e-304) tmp = Float64(y2 * Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (b <= 1.15e+79) tmp = Float64(Float64(c * Float64(t * Float64(Float64(i * z) - Float64(y2 * y4)))) + t_1); else tmp = Float64(j * fma(-1.0, Float64(y3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))), Float64(t * Float64(Float64(b * y4) - Float64(i * y5))))); 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[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.6e+127], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.56e-77], N[(N[(c * N[(x * N[(-1.0 * N[(i * y), $MachinePrecision] + N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, -1.15e-304], N[(y2 * N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+79], N[(N[(c * N[(t * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(j * N[(-1.0 * N[(y3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
t_1 := \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;b \leq -1.6 \cdot 10^{+127}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;b \leq -1.56 \cdot 10^{-77}:\\
\;\;\;\;c \cdot \left(x \cdot \mathsf{fma}\left(-1, i \cdot y, y0 \cdot y2\right)\right) + t\_1\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-304}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(-1, y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right), t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\end{array}
if b < -1.5999999999999999e127Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
if -1.5999999999999999e127 < b < -1.5600000000000001e-77Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6438.5%
Applied rewrites38.5%
if -1.5600000000000001e-77 < b < -1.15e-304Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.2%
Applied rewrites34.2%
if -1.15e-304 < b < 1.15e79Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.7%
Applied rewrites37.7%
if 1.15e79 < b Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.8%
Applied rewrites33.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -7.6e+259)
(* b (* y0 (- (* k z) (* j x))))
(if (<= b -7.5e+105)
(* j (- (* -1.0 (* y1 (* y3 y4))) (fma (* y0 b) x (* (* (- i) y1) x))))
(if (<= b -1.15e-304)
(* y2 (- (* x (- (* c y0) (* a y1))) (* t (- (* c y4) (* a y5)))))
(if (<= b 1.15e+79)
(+
(* c (* t (- (* i z) (* y2 y4))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
(*
j
(fma
-1.0
(* y3 (- (* y1 y4) (* y0 y5)))
(* t (- (* b y4) (* i 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 (b <= -7.6e+259) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (b <= -7.5e+105) {
tmp = j * ((-1.0 * (y1 * (y3 * y4))) - fma((y0 * b), x, ((-i * y1) * x)));
} else if (b <= -1.15e-304) {
tmp = y2 * ((x * ((c * y0) - (a * y1))) - (t * ((c * y4) - (a * y5))));
} else if (b <= 1.15e+79) {
tmp = (c * (t * ((i * z) - (y2 * y4)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else {
tmp = j * fma(-1.0, (y3 * ((y1 * y4) - (y0 * y5))), (t * ((b * y4) - (i * 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 (b <= -7.6e+259) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (b <= -7.5e+105) tmp = Float64(j * Float64(Float64(-1.0 * Float64(y1 * Float64(y3 * y4))) - fma(Float64(y0 * b), x, Float64(Float64(Float64(-i) * y1) * x)))); elseif (b <= -1.15e-304) tmp = Float64(y2 * Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (b <= 1.15e+79) tmp = Float64(Float64(c * Float64(t * Float64(Float64(i * z) - Float64(y2 * y4)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); else tmp = Float64(j * fma(-1.0, Float64(y3 * Float64(Float64(y1 * y4) - Float64(y0 * y5))), Float64(t * Float64(Float64(b * y4) - Float64(i * y5))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -7.6e+259], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -7.5e+105], N[(j * N[(N[(-1.0 * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y0 * b), $MachinePrecision] * x + N[(N[((-i) * y1), $MachinePrecision] * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.15e-304], N[(y2 * N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.15e+79], N[(N[(c * N[(t * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $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], N[(j * N[(-1.0 * N[(y3 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\mathbf{if}\;b \leq -7.6 \cdot 10^{+259}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;b \leq -7.5 \cdot 10^{+105}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) - \mathsf{fma}\left(y0 \cdot b, x, \left(\left(-i\right) \cdot y1\right) \cdot x\right)\right)\\
\mathbf{elif}\;b \leq -1.15 \cdot 10^{-304}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 1.15 \cdot 10^{+79}:\\
\;\;\;\;c \cdot \left(t \cdot \left(i \cdot z - y2 \cdot y4\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \mathsf{fma}\left(-1, y3 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right), t \cdot \left(b \cdot y4 - i \cdot y5\right)\right)\\
\end{array}
if b < -7.6e259Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
if -7.6e259 < b < -7.5000000000000002e105Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
lift-*.f64N/A
lift--.f64N/A
sub-flipN/A
distribute-rgt-inN/A
lower-fma.f64N/A
lift-*.f64N/A
*-commutativeN/A
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
distribute-lft-neg-outN/A
mul-1-negN/A
lower-*.f64N/A
mul-1-negN/A
lower-neg.f6435.9%
Applied rewrites35.9%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6431.1%
Applied rewrites31.1%
if -7.5000000000000002e105 < b < -1.15e-304Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.2%
Applied rewrites34.2%
if -1.15e-304 < b < 1.15e79Initial program 29.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.7%
Applied rewrites37.7%
if 1.15e79 < b Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in x around 0
lower-fma.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.8%
Applied rewrites33.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* j x) (* k z))))))
(if (<= y2 -1.65e+235)
(* y0 (* y2 (fma -1.0 (* k y5) (* c x))))
(if (<= y2 -2.15e+151)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y2 -1.3e-114)
t_1
(if (<= y2 7.2e-237)
(* b (* y0 (- (* k z) (* j x))))
(if (<= y2 1.2e-191)
(* y1 (* y3 (fma -1.0 (* j y4) (* a z))))
(if (<= y2 9.8e+163)
t_1
(* a (* y5 (- (* t y2) (* y y3))))))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (y2 <= -1.65e+235) {
tmp = y0 * (y2 * fma(-1.0, (k * y5), (c * x)));
} else if (y2 <= -2.15e+151) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y2 <= -1.3e-114) {
tmp = t_1;
} else if (y2 <= 7.2e-237) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (y2 <= 1.2e-191) {
tmp = y1 * (y3 * fma(-1.0, (j * y4), (a * z)));
} else if (y2 <= 9.8e+163) {
tmp = t_1;
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))) tmp = 0.0 if (y2 <= -1.65e+235) tmp = Float64(y0 * Float64(y2 * fma(-1.0, Float64(k * y5), Float64(c * x)))); elseif (y2 <= -2.15e+151) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y2 <= -1.3e-114) tmp = t_1; elseif (y2 <= 7.2e-237) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (y2 <= 1.2e-191) tmp = Float64(y1 * Float64(y3 * fma(-1.0, Float64(j * y4), Float64(a * z)))); elseif (y2 <= 9.8e+163) tmp = t_1; else tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.65e+235], N[(y0 * N[(y2 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -2.15e+151], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.3e-114], t$95$1, If[LessEqual[y2, 7.2e-237], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.2e-191], N[(y1 * N[(y3 * N[(-1.0 * N[(j * y4), $MachinePrecision] + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.8e+163], t$95$1, N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;y2 \leq -1.65 \cdot 10^{+235}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\
\mathbf{elif}\;y2 \leq -2.15 \cdot 10^{+151}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -1.3 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 7.2 \cdot 10^{-237}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;y2 \leq 1.2 \cdot 10^{-191}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, j \cdot y4, a \cdot z\right)\right)\\
\mathbf{elif}\;y2 \leq 9.8 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
if y2 < -1.65e235Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.3%
Applied rewrites27.3%
if -1.65e235 < y2 < -2.1499999999999999e151Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -2.1499999999999999e151 < y2 < -1.3000000000000001e-114 or 1.2e-191 < y2 < 9.7999999999999997e163Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -1.3000000000000001e-114 < y2 < 7.1999999999999999e-237Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
if 7.1999999999999999e-237 < y2 < 1.2e-191Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6425.9%
Applied rewrites25.9%
if 9.7999999999999997e163 < y2 Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* j x) (* k z))))))
(if (<= z -8e+109)
t_1
(if (<= z -0.00086)
(* b (* y0 (- (* k z) (* j x))))
(if (<= z 5.2e-238)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= z 4.4e-164)
(* a (* b (- (* x y) (* t z))))
(if (<= z 3.9e-78)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 4.8e+194)
(* y1 (* y3 (fma -1.0 (* j y4) (* a z))))
t_1))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (z <= -8e+109) {
tmp = t_1;
} else if (z <= -0.00086) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (z <= 5.2e-238) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (z <= 4.4e-164) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (z <= 3.9e-78) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 4.8e+194) {
tmp = y1 * (y3 * fma(-1.0, (j * y4), (a * z)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))) tmp = 0.0 if (z <= -8e+109) tmp = t_1; elseif (z <= -0.00086) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (z <= 5.2e-238) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (z <= 4.4e-164) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (z <= 3.9e-78) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 4.8e+194) tmp = Float64(y1 * Float64(y3 * fma(-1.0, Float64(j * y4), Float64(a * z)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8e+109], t$95$1, If[LessEqual[z, -0.00086], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.2e-238], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.4e-164], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 3.9e-78], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.8e+194], N[(y1 * N[(y3 * N[(-1.0 * N[(j * y4), $MachinePrecision] + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;z \leq -8 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -0.00086:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-238}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;z \leq 4.4 \cdot 10^{-164}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;z \leq 3.9 \cdot 10^{-78}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 4.8 \cdot 10^{+194}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, j \cdot y4, a \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -7.9999999999999999e109 or 4.8e194 < z Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -7.9999999999999999e109 < z < -8.5999999999999998e-4Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
if -8.5999999999999998e-4 < z < 5.2000000000000002e-238Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 5.2000000000000002e-238 < z < 4.3999999999999998e-164Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if 4.3999999999999998e-164 < z < 3.9000000000000002e-78Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 3.9000000000000002e-78 < z < 4.8e194Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6425.9%
Applied rewrites25.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* -1.0 (* a (* y1 (- (* x y2) (* y3 z)))))))
(if (<= j -105000.0)
(* i (* y1 (- (* j x) (* k z))))
(if (<= j -2e-158)
t_1
(if (<= j 1.05e-270)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= j 1.18e-35)
t_1
(if (<= j 1.4e+229)
(* y1 (* -1.0 (* j (- (* y3 y4) (* i x)))))
(* j (* y5 (fma -1.0 (* i t) (* y0 y3)))))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = -1.0 * (a * (y1 * ((x * y2) - (y3 * z))));
double tmp;
if (j <= -105000.0) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (j <= -2e-158) {
tmp = t_1;
} else if (j <= 1.05e-270) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (j <= 1.18e-35) {
tmp = t_1;
} else if (j <= 1.4e+229) {
tmp = y1 * (-1.0 * (j * ((y3 * y4) - (i * x))));
} else {
tmp = j * (y5 * fma(-1.0, (i * t), (y0 * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(-1.0 * Float64(a * Float64(y1 * Float64(Float64(x * y2) - Float64(y3 * z))))) tmp = 0.0 if (j <= -105000.0) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); elseif (j <= -2e-158) tmp = t_1; elseif (j <= 1.05e-270) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (j <= 1.18e-35) tmp = t_1; elseif (j <= 1.4e+229) tmp = Float64(y1 * Float64(-1.0 * Float64(j * Float64(Float64(y3 * y4) - Float64(i * x))))); else tmp = Float64(j * Float64(y5 * fma(-1.0, Float64(i * t), Float64(y0 * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(-1.0 * N[(a * N[(y1 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[j, -105000.0], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, -2e-158], t$95$1, If[LessEqual[j, 1.05e-270], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.18e-35], t$95$1, If[LessEqual[j, 1.4e+229], N[(y1 * N[(-1.0 * N[(j * N[(N[(y3 * y4), $MachinePrecision] - N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y5 * N[(-1.0 * N[(i * t), $MachinePrecision] + N[(y0 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
t_1 := -1 \cdot \left(a \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\\
\mathbf{if}\;j \leq -105000:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;j \leq -2 \cdot 10^{-158}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;j \leq 1.18 \cdot 10^{-35}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;j \leq 1.4 \cdot 10^{+229}:\\
\;\;\;\;y1 \cdot \left(-1 \cdot \left(j \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y5 \cdot \mathsf{fma}\left(-1, i \cdot t, y0 \cdot y3\right)\right)\\
\end{array}
if j < -105000Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -105000 < j < -2.0000000000000001e-158 or 1.05e-270 < j < 1.18e-35Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
if -2.0000000000000001e-158 < j < 1.05e-270Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 1.18e-35 < j < 1.4000000000000001e229Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in j around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if 1.4000000000000001e229 < j Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* t (- (* c y4) (* a y5)))))
(if (<= a -2.6e+123)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= a -2.5e-147)
(* y2 (- (* -1.0 (* k (* y0 y5))) t_1))
(if (<= a 2.4e-82)
(* i (* y1 (- (* j x) (* k z))))
(if (<= a 7e+134)
(* y2 (- (* x (- (* c y0) (* a y1))) t_1))
(* y1 (* y3 (fma -1.0 (* j y4) (* a 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 t_1 = t * ((c * y4) - (a * y5));
double tmp;
if (a <= -2.6e+123) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (a <= -2.5e-147) {
tmp = y2 * ((-1.0 * (k * (y0 * y5))) - t_1);
} else if (a <= 2.4e-82) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (a <= 7e+134) {
tmp = y2 * ((x * ((c * y0) - (a * y1))) - t_1);
} else {
tmp = y1 * (y3 * fma(-1.0, (j * y4), (a * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(t * Float64(Float64(c * y4) - Float64(a * y5))) tmp = 0.0 if (a <= -2.6e+123) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (a <= -2.5e-147) tmp = Float64(y2 * Float64(Float64(-1.0 * Float64(k * Float64(y0 * y5))) - t_1)); elseif (a <= 2.4e-82) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); elseif (a <= 7e+134) tmp = Float64(y2 * Float64(Float64(x * Float64(Float64(c * y0) - Float64(a * y1))) - t_1)); else tmp = Float64(y1 * Float64(y3 * fma(-1.0, Float64(j * y4), Float64(a * z)))); 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[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[a, -2.6e+123], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -2.5e-147], N[(y2 * N[(N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.4e-82], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 7e+134], N[(y2 * N[(N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision], N[(y1 * N[(y3 * N[(-1.0 * N[(j * y4), $MachinePrecision] + N[(a * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
t_1 := t \cdot \left(c \cdot y4 - a \cdot y5\right)\\
\mathbf{if}\;a \leq -2.6 \cdot 10^{+123}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;a \leq -2.5 \cdot 10^{-147}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right) - t\_1\right)\\
\mathbf{elif}\;a \leq 2.4 \cdot 10^{-82}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 7 \cdot 10^{+134}:\\
\;\;\;\;y2 \cdot \left(x \cdot \left(c \cdot y0 - a \cdot y1\right) - t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;y1 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, j \cdot y4, a \cdot z\right)\right)\\
\end{array}
if a < -2.5999999999999999e123Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
if -2.5999999999999999e123 < a < -2.5000000000000001e-147Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6430.5%
Applied rewrites30.5%
if -2.5000000000000001e-147 < a < 2.4000000000000001e-82Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 2.4000000000000001e-82 < a < 7.0000000000000001e134Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in k around 0
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.2%
Applied rewrites34.2%
if 7.0000000000000001e134 < a Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6425.9%
Applied rewrites25.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* j x) (* k z))))))
(if (<= y2 -2.15e+151)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y2 -1.3e-114)
t_1
(if (<= y2 4.4e-237)
(* b (* y0 (- (* k z) (* j x))))
(if (<= y2 1.9e-71)
(* j (* y4 (fma -1.0 (* y1 y3) (* b t))))
(if (<= y2 9.8e+163) t_1 (* a (* y5 (- (* t y2) (* y y3)))))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (y2 <= -2.15e+151) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y2 <= -1.3e-114) {
tmp = t_1;
} else if (y2 <= 4.4e-237) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (y2 <= 1.9e-71) {
tmp = j * (y4 * fma(-1.0, (y1 * y3), (b * t)));
} else if (y2 <= 9.8e+163) {
tmp = t_1;
} else {
tmp = a * (y5 * ((t * y2) - (y * y3)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))) tmp = 0.0 if (y2 <= -2.15e+151) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y2 <= -1.3e-114) tmp = t_1; elseif (y2 <= 4.4e-237) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (y2 <= 1.9e-71) tmp = Float64(j * Float64(y4 * fma(-1.0, Float64(y1 * y3), Float64(b * t)))); elseif (y2 <= 9.8e+163) tmp = t_1; else tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.15e+151], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.3e-114], t$95$1, If[LessEqual[y2, 4.4e-237], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.9e-71], N[(j * N[(y4 * N[(-1.0 * N[(y1 * y3), $MachinePrecision] + N[(b * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 9.8e+163], t$95$1, N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;y2 \leq -2.15 \cdot 10^{+151}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq -1.3 \cdot 10^{-114}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 4.4 \cdot 10^{-237}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;y2 \leq 1.9 \cdot 10^{-71}:\\
\;\;\;\;j \cdot \left(y4 \cdot \mathsf{fma}\left(-1, y1 \cdot y3, b \cdot t\right)\right)\\
\mathbf{elif}\;y2 \leq 9.8 \cdot 10^{+163}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\end{array}
if y2 < -2.1499999999999999e151Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -2.1499999999999999e151 < y2 < -1.3000000000000001e-114 or 1.9e-71 < y2 < 9.7999999999999997e163Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -1.3000000000000001e-114 < y2 < 4.4e-237Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
if 4.4e-237 < y2 < 1.9e-71Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if 9.7999999999999997e163 < y2 Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -3.1e+185)
(* j (* y4 (fma -1.0 (* y1 y3) (* b t))))
(if (<= y4 9.4e-275)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 5.1e+53)
(* j (* -1.0 (* i (- (* t y5) (* x y1)))))
(if (<= y4 4.4e+257)
(* i (* y1 (- (* j x) (* k z))))
(* -1.0 (* a (* y1 (- (* x y2) (* 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) {
double tmp;
if (y4 <= -3.1e+185) {
tmp = j * (y4 * fma(-1.0, (y1 * y3), (b * t)));
} else if (y4 <= 9.4e-275) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= 5.1e+53) {
tmp = j * (-1.0 * (i * ((t * y5) - (x * y1))));
} else if (y4 <= 4.4e+257) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = -1.0 * (a * (y1 * ((x * y2) - (y3 * 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 (y4 <= -3.1e+185) tmp = Float64(j * Float64(y4 * fma(-1.0, Float64(y1 * y3), Float64(b * t)))); elseif (y4 <= 9.4e-275) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= 5.1e+53) tmp = Float64(j * Float64(-1.0 * Float64(i * Float64(Float64(t * y5) - Float64(x * y1))))); elseif (y4 <= 4.4e+257) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); else tmp = Float64(-1.0 * Float64(a * Float64(y1 * Float64(Float64(x * y2) - Float64(y3 * z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -3.1e+185], N[(j * N[(y4 * N[(-1.0 * N[(y1 * y3), $MachinePrecision] + N[(b * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 9.4e-275], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 5.1e+53], N[(j * N[(-1.0 * N[(i * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.4e+257], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(y1 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\mathbf{if}\;y4 \leq -3.1 \cdot 10^{+185}:\\
\;\;\;\;j \cdot \left(y4 \cdot \mathsf{fma}\left(-1, y1 \cdot y3, b \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 9.4 \cdot 10^{-275}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq 5.1 \cdot 10^{+53}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(i \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 4.4 \cdot 10^{+257}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\\
\end{array}
if y4 < -3.1e185Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if -3.1e185 < y4 < 9.3999999999999996e-275Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
if 9.3999999999999996e-275 < y4 < 5.0999999999999998e53Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2%
Applied rewrites26.2%
if 5.0999999999999998e53 < y4 < 4.3999999999999999e257Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 4.3999999999999999e257 < y4 Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -3.1e+185)
(* j (* y4 (fma -1.0 (* y1 y3) (* b t))))
(if (<= y4 2.8e-273)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= y4 3.4e+57)
(* j (* x (- (* i y1) (* b y0))))
(if (<= y4 4.4e+257)
(* i (* y1 (- (* j x) (* k z))))
(* -1.0 (* a (* y1 (- (* x y2) (* 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) {
double tmp;
if (y4 <= -3.1e+185) {
tmp = j * (y4 * fma(-1.0, (y1 * y3), (b * t)));
} else if (y4 <= 2.8e-273) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (y4 <= 3.4e+57) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else if (y4 <= 4.4e+257) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = -1.0 * (a * (y1 * ((x * y2) - (y3 * 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 (y4 <= -3.1e+185) tmp = Float64(j * Float64(y4 * fma(-1.0, Float64(y1 * y3), Float64(b * t)))); elseif (y4 <= 2.8e-273) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (y4 <= 3.4e+57) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y4 <= 4.4e+257) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); else tmp = Float64(-1.0 * Float64(a * Float64(y1 * Float64(Float64(x * y2) - Float64(y3 * z))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -3.1e+185], N[(j * N[(y4 * N[(-1.0 * N[(y1 * y3), $MachinePrecision] + N[(b * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 2.8e-273], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 3.4e+57], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 4.4e+257], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(y1 * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\mathbf{if}\;y4 \leq -3.1 \cdot 10^{+185}:\\
\;\;\;\;j \cdot \left(y4 \cdot \mathsf{fma}\left(-1, y1 \cdot y3, b \cdot t\right)\right)\\
\mathbf{elif}\;y4 \leq 2.8 \cdot 10^{-273}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;y4 \leq 3.4 \cdot 10^{+57}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y4 \leq 4.4 \cdot 10^{+257}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(y1 \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\right)\\
\end{array}
if y4 < -3.1e185Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if -3.1e185 < y4 < 2.7999999999999999e-273Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
if 2.7999999999999999e-273 < y4 < 3.3999999999999999e57Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
if 3.3999999999999999e57 < y4 < 4.3999999999999999e257Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 4.3999999999999999e257 < y4 Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (- (* i y1) (* b y0))))))
(if (<= x -3.8e+165)
t_1
(if (<= x 200000000.0)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= x 5.6e+125) (* y2 (* k (- (* y1 y4) (* y0 y5)))) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -3.8e+165) {
tmp = t_1;
} else if (x <= 200000000.0) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (x <= 5.6e+125) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (x * ((i * y1) - (b * y0)))
if (x <= (-3.8d+165)) then
tmp = t_1
else if (x <= 200000000.0d0) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (x <= 5.6d+125) then
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -3.8e+165) {
tmp = t_1;
} else if (x <= 200000000.0) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (x <= 5.6e+125) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if x <= -3.8e+165: tmp = t_1 elif x <= 200000000.0: tmp = y1 * (z * ((a * y3) - (i * k))) elif x <= 5.6e+125: tmp = y2 * (k * ((y1 * y4) - (y0 * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (x <= -3.8e+165) tmp = t_1; elseif (x <= 200000000.0) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (x <= 5.6e+125) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (x <= -3.8e+165) tmp = t_1; elseif (x <= 200000000.0) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (x <= 5.6e+125) tmp = y2 * (k * ((y1 * y4) - (y0 * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.8e+165], t$95$1, If[LessEqual[x, 200000000.0], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 5.6e+125], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -3.8 \cdot 10^{+165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 200000000:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;x \leq 5.6 \cdot 10^{+125}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if x < -3.7999999999999999e165 or 5.6000000000000002e125 < x Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
if -3.7999999999999999e165 < x < 2e8Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
if 2e8 < x < 5.6000000000000002e125Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (- (* i y1) (* b y0))))))
(if (<= x -3.8e+165)
t_1
(if (<= x 1.06e-65)
(* y1 (* z (- (* a y3) (* i k))))
(if (<= x 3.9e+117) (* a (* y5 (- (* t y2) (* y y3)))) 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 * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -3.8e+165) {
tmp = t_1;
} else if (x <= 1.06e-65) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (x <= 3.9e+117) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} 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 = j * (x * ((i * y1) - (b * y0)))
if (x <= (-3.8d+165)) then
tmp = t_1
else if (x <= 1.06d-65) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else if (x <= 3.9d+117) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
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 = j * (x * ((i * y1) - (b * y0)));
double tmp;
if (x <= -3.8e+165) {
tmp = t_1;
} else if (x <= 1.06e-65) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else if (x <= 3.9e+117) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} 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 = j * (x * ((i * y1) - (b * y0))) tmp = 0 if x <= -3.8e+165: tmp = t_1 elif x <= 1.06e-65: tmp = y1 * (z * ((a * y3) - (i * k))) elif x <= 3.9e+117: tmp = a * (y5 * ((t * y2) - (y * y3))) 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(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))) tmp = 0.0 if (x <= -3.8e+165) tmp = t_1; elseif (x <= 1.06e-65) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); elseif (x <= 3.9e+117) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); 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 = j * (x * ((i * y1) - (b * y0))); tmp = 0.0; if (x <= -3.8e+165) tmp = t_1; elseif (x <= 1.06e-65) tmp = y1 * (z * ((a * y3) - (i * k))); elseif (x <= 3.9e+117) tmp = a * (y5 * ((t * y2) - (y * y3))); 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[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -3.8e+165], t$95$1, If[LessEqual[x, 1.06e-65], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 3.9e+117], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{if}\;x \leq -3.8 \cdot 10^{+165}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.06 \cdot 10^{-65}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{elif}\;x \leq 3.9 \cdot 10^{+117}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if x < -3.7999999999999999e165 or 3.8999999999999999e117 < x Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6%
Applied rewrites26.6%
if -3.7999999999999999e165 < x < 1.0600000000000001e-65Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
if 1.0600000000000001e-65 < x < 3.8999999999999999e117Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y0 (- (* k z) (* j x))))))
(if (<= b -2.05e+166)
t_1
(if (<= b -1.1e-142)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= b 2.2e+107) (* i (* y1 (- (* j x) (* k z)))) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y0 * ((k * z) - (j * x)));
double tmp;
if (b <= -2.05e+166) {
tmp = t_1;
} else if (b <= -1.1e-142) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= 2.2e+107) {
tmp = i * (y1 * ((j * x) - (k * z)));
} 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 = b * (y0 * ((k * z) - (j * x)))
if (b <= (-2.05d+166)) then
tmp = t_1
else if (b <= (-1.1d-142)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (b <= 2.2d+107) then
tmp = i * (y1 * ((j * x) - (k * z)))
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 * (y0 * ((k * z) - (j * x)));
double tmp;
if (b <= -2.05e+166) {
tmp = t_1;
} else if (b <= -1.1e-142) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= 2.2e+107) {
tmp = i * (y1 * ((j * x) - (k * z)));
} 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 * (y0 * ((k * z) - (j * x))) tmp = 0 if b <= -2.05e+166: tmp = t_1 elif b <= -1.1e-142: tmp = a * (y5 * ((t * y2) - (y * y3))) elif b <= 2.2e+107: tmp = i * (y1 * ((j * x) - (k * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))) tmp = 0.0 if (b <= -2.05e+166) tmp = t_1; elseif (b <= -1.1e-142) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (b <= 2.2e+107) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); 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 * (y0 * ((k * z) - (j * x))); tmp = 0.0; if (b <= -2.05e+166) tmp = t_1; elseif (b <= -1.1e-142) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (b <= 2.2e+107) tmp = i * (y1 * ((j * x) - (k * z))); 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[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.05e+166], t$95$1, If[LessEqual[b, -1.1e-142], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.2e+107], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{if}\;b \leq -2.05 \cdot 10^{+166}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-142}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 2.2 \cdot 10^{+107}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -2.0500000000000001e166 or 2.2e107 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7%
Applied rewrites26.7%
if -2.0500000000000001e166 < b < -1.1000000000000001e-142Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -1.1000000000000001e-142 < b < 2.2e107Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -9.5e+111)
(* a (* b (- (* x y) (* t z))))
(if (<= b -1.1e-142)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= b 8.2e+140)
(* i (* y1 (- (* j x) (* k z))))
(* b (* j (- (* t y4) (* x y0))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -9.5e+111) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -1.1e-142) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= 8.2e+140) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = b * (j * ((t * y4) - (x * 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 (b <= (-9.5d+111)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (b <= (-1.1d-142)) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (b <= 8.2d+140) then
tmp = i * (y1 * ((j * x) - (k * z)))
else
tmp = b * (j * ((t * y4) - (x * 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 (b <= -9.5e+111) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -1.1e-142) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (b <= 8.2e+140) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = b * (j * ((t * y4) - (x * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -9.5e+111: tmp = a * (b * ((x * y) - (t * z))) elif b <= -1.1e-142: tmp = a * (y5 * ((t * y2) - (y * y3))) elif b <= 8.2e+140: tmp = i * (y1 * ((j * x) - (k * z))) else: tmp = b * (j * ((t * y4) - (x * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -9.5e+111) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (b <= -1.1e-142) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (b <= 8.2e+140) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); else tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * 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 (b <= -9.5e+111) tmp = a * (b * ((x * y) - (t * z))); elseif (b <= -1.1e-142) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (b <= 8.2e+140) tmp = i * (y1 * ((j * x) - (k * z))); else tmp = b * (j * ((t * y4) - (x * 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[b, -9.5e+111], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.1e-142], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+140], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\mathbf{if}\;b \leq -9.5 \cdot 10^{+111}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;b \leq -1.1 \cdot 10^{-142}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+140}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\end{array}
if b < -9.5000000000000002e111Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if -9.5000000000000002e111 < b < -1.1000000000000001e-142Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -1.1000000000000001e-142 < b < 8.1999999999999998e140Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if 8.1999999999999998e140 < b Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9%
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* y1 (- (* j x) (* k z))))))
(if (<= k -5.5e-232)
t_1
(if (<= k 4.8e-58) (* t (* y2 (- (* a y5) (* c y4)))) 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 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (k <= -5.5e-232) {
tmp = t_1;
} else if (k <= 4.8e-58) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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 = i * (y1 * ((j * x) - (k * z)))
if (k <= (-5.5d-232)) then
tmp = t_1
else if (k <= 4.8d-58) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
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 = i * (y1 * ((j * x) - (k * z)));
double tmp;
if (k <= -5.5e-232) {
tmp = t_1;
} else if (k <= 4.8e-58) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} 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 = i * (y1 * ((j * x) - (k * z))) tmp = 0 if k <= -5.5e-232: tmp = t_1 elif k <= 4.8e-58: tmp = t * (y2 * ((a * y5) - (c * y4))) 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(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))) tmp = 0.0 if (k <= -5.5e-232) tmp = t_1; elseif (k <= 4.8e-58) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); 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 = i * (y1 * ((j * x) - (k * z))); tmp = 0.0; if (k <= -5.5e-232) tmp = t_1; elseif (k <= 4.8e-58) tmp = t * (y2 * ((a * y5) - (c * y4))); 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[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -5.5e-232], t$95$1, If[LessEqual[k, 4.8e-58], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;k \leq -5.5 \cdot 10^{-232}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 4.8 \cdot 10^{-58}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if k < -5.5000000000000002e-232 or 4.8000000000000001e-58 < k Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in i around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -5.5000000000000002e-232 < k < 4.8000000000000001e-58Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= y2 -2.15e+155)
t_1
(if (<= y2 3.6e-93)
(* a (* b (- (* x y) (* t z))))
(if (<= y2 2.9e+161) (* b (* y4 (- (* j t) (* k 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 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y2 <= -2.15e+155) {
tmp = t_1;
} else if (y2 <= 3.6e-93) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y2 <= 2.9e+161) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y5 * ((t * y2) - (y * y3)))
if (y2 <= (-2.15d+155)) then
tmp = t_1
else if (y2 <= 3.6d-93) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y2 <= 2.9d+161) then
tmp = b * (y4 * ((j * t) - (k * y)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (y2 <= -2.15e+155) {
tmp = t_1;
} else if (y2 <= 3.6e-93) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y2 <= 2.9e+161) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if y2 <= -2.15e+155: tmp = t_1 elif y2 <= 3.6e-93: tmp = a * (b * ((x * y) - (t * z))) elif y2 <= 2.9e+161: tmp = b * (y4 * ((j * t) - (k * 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(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (y2 <= -2.15e+155) tmp = t_1; elseif (y2 <= 3.6e-93) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y2 <= 2.9e+161) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (y2 <= -2.15e+155) tmp = t_1; elseif (y2 <= 3.6e-93) tmp = a * (b * ((x * y) - (t * z))); elseif (y2 <= 2.9e+161) tmp = b * (y4 * ((j * t) - (k * y))); 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[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.15e+155], t$95$1, If[LessEqual[y2, 3.6e-93], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.9e+161], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;y2 \leq -2.15 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq 3.6 \cdot 10^{-93}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y2 \leq 2.9 \cdot 10^{+161}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y2 < -2.1500000000000001e155 or 2.9000000000000002e161 < y2 Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -2.1500000000000001e155 < y2 < 3.6000000000000002e-93Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if 3.6000000000000002e-93 < y2 < 2.9000000000000002e161Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.1%
Applied rewrites27.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (* -1.0 (* t z)))))
(t_2 (* a (* y5 (- (* t y2) (* y y3))))))
(if (<= z -1.12e+290)
t_2
(if (<= z -4.5e+185)
t_1
(if (<= z -7e-18)
(* y2 (* -1.0 (* k (* y0 y5))))
(if (<= z 9.5e+211) 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 = a * (b * (-1.0 * (t * z)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (z <= -1.12e+290) {
tmp = t_2;
} else if (z <= -4.5e+185) {
tmp = t_1;
} else if (z <= -7e-18) {
tmp = y2 * (-1.0 * (k * (y0 * y5)));
} else if (z <= 9.5e+211) {
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 = a * (b * ((-1.0d0) * (t * z)))
t_2 = a * (y5 * ((t * y2) - (y * y3)))
if (z <= (-1.12d+290)) then
tmp = t_2
else if (z <= (-4.5d+185)) then
tmp = t_1
else if (z <= (-7d-18)) then
tmp = y2 * ((-1.0d0) * (k * (y0 * y5)))
else if (z <= 9.5d+211) 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 = a * (b * (-1.0 * (t * z)));
double t_2 = a * (y5 * ((t * y2) - (y * y3)));
double tmp;
if (z <= -1.12e+290) {
tmp = t_2;
} else if (z <= -4.5e+185) {
tmp = t_1;
} else if (z <= -7e-18) {
tmp = y2 * (-1.0 * (k * (y0 * y5)));
} else if (z <= 9.5e+211) {
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 = a * (b * (-1.0 * (t * z))) t_2 = a * (y5 * ((t * y2) - (y * y3))) tmp = 0 if z <= -1.12e+290: tmp = t_2 elif z <= -4.5e+185: tmp = t_1 elif z <= -7e-18: tmp = y2 * (-1.0 * (k * (y0 * y5))) elif z <= 9.5e+211: 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(a * Float64(b * Float64(-1.0 * Float64(t * z)))) t_2 = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))) tmp = 0.0 if (z <= -1.12e+290) tmp = t_2; elseif (z <= -4.5e+185) tmp = t_1; elseif (z <= -7e-18) tmp = Float64(y2 * Float64(-1.0 * Float64(k * Float64(y0 * y5)))); elseif (z <= 9.5e+211) 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 = a * (b * (-1.0 * (t * z))); t_2 = a * (y5 * ((t * y2) - (y * y3))); tmp = 0.0; if (z <= -1.12e+290) tmp = t_2; elseif (z <= -4.5e+185) tmp = t_1; elseif (z <= -7e-18) tmp = y2 * (-1.0 * (k * (y0 * y5))); elseif (z <= 9.5e+211) 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[(a * N[(b * N[(-1.0 * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.12e+290], t$95$2, If[LessEqual[z, -4.5e+185], t$95$1, If[LessEqual[z, -7e-18], N[(y2 * N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 9.5e+211], t$95$2, t$95$1]]]]]]
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(-1 \cdot \left(t \cdot z\right)\right)\right)\\
t_2 := a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{if}\;z \leq -1.12 \cdot 10^{+290}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -4.5 \cdot 10^{+185}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-18}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;z \leq 9.5 \cdot 10^{+211}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -1.12e290 or -6.9999999999999997e-18 < z < 9.4999999999999997e211Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
if -1.12e290 < z < -4.5000000000000002e185 or 9.4999999999999997e211 < z Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6416.7%
Applied rewrites16.7%
if -4.5000000000000002e185 < z < -6.9999999999999997e-18Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0%
Applied rewrites27.0%
Taylor expanded in t around 0
lower-*.f64N/A
lower-*.f6417.7%
Applied rewrites17.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* t z))))))
(if (<= b -9.5e+111)
t_1
(if (<= b 10.0) (* a (* y5 (- (* t y2) (* y y3)))) t_1))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (t * z)));
double tmp;
if (b <= -9.5e+111) {
tmp = t_1;
} else if (b <= 10.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (t * z)))
if (b <= (-9.5d+111)) then
tmp = t_1
else if (b <= 10.0d0) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (t * z)));
double tmp;
if (b <= -9.5e+111) {
tmp = t_1;
} else if (b <= 10.0) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (t * z))) tmp = 0 if b <= -9.5e+111: tmp = t_1 elif b <= 10.0: tmp = a * (y5 * ((t * y2) - (y * y3))) 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(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))) tmp = 0.0 if (b <= -9.5e+111) tmp = t_1; elseif (b <= 10.0) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (t * z))); tmp = 0.0; if (b <= -9.5e+111) tmp = t_1; elseif (b <= 10.0) tmp = a * (y5 * ((t * y2) - (y * y3))); 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[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.5e+111], t$95$1, If[LessEqual[b, 10.0], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;b \leq -9.5 \cdot 10^{+111}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 10:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -9.5000000000000002e111 or 10 < b Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
if -9.5000000000000002e111 < b < 10Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.1%
Applied rewrites26.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y2 (* -1.0 (* k (* y0 y5))))))
(if (<= y5 -5.5e+136)
(* j (* y0 (* y3 y5)))
(if (<= y5 -1.46e+41)
t_1
(if (<= y5 -1.72e-171)
(* a (* b (* x y)))
(if (<= y5 1.12e-10)
(* a (* b (* -1.0 (* t z))))
(if (<= y5 3.6e+61) (* y2 (* a (* t y5))) t_1)))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * (-1.0 * (k * (y0 * y5)));
double tmp;
if (y5 <= -5.5e+136) {
tmp = j * (y0 * (y3 * y5));
} else if (y5 <= -1.46e+41) {
tmp = t_1;
} else if (y5 <= -1.72e-171) {
tmp = a * (b * (x * y));
} else if (y5 <= 1.12e-10) {
tmp = a * (b * (-1.0 * (t * z)));
} else if (y5 <= 3.6e+61) {
tmp = y2 * (a * (t * y5));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y2 * ((-1.0d0) * (k * (y0 * y5)))
if (y5 <= (-5.5d+136)) then
tmp = j * (y0 * (y3 * y5))
else if (y5 <= (-1.46d+41)) then
tmp = t_1
else if (y5 <= (-1.72d-171)) then
tmp = a * (b * (x * y))
else if (y5 <= 1.12d-10) then
tmp = a * (b * ((-1.0d0) * (t * z)))
else if (y5 <= 3.6d+61) then
tmp = y2 * (a * (t * y5))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * (-1.0 * (k * (y0 * y5)));
double tmp;
if (y5 <= -5.5e+136) {
tmp = j * (y0 * (y3 * y5));
} else if (y5 <= -1.46e+41) {
tmp = t_1;
} else if (y5 <= -1.72e-171) {
tmp = a * (b * (x * y));
} else if (y5 <= 1.12e-10) {
tmp = a * (b * (-1.0 * (t * z)));
} else if (y5 <= 3.6e+61) {
tmp = y2 * (a * (t * y5));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y2 * (-1.0 * (k * (y0 * y5))) tmp = 0 if y5 <= -5.5e+136: tmp = j * (y0 * (y3 * y5)) elif y5 <= -1.46e+41: tmp = t_1 elif y5 <= -1.72e-171: tmp = a * (b * (x * y)) elif y5 <= 1.12e-10: tmp = a * (b * (-1.0 * (t * z))) elif y5 <= 3.6e+61: tmp = y2 * (a * (t * y5)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y2 * Float64(-1.0 * Float64(k * Float64(y0 * y5)))) tmp = 0.0 if (y5 <= -5.5e+136) tmp = Float64(j * Float64(y0 * Float64(y3 * y5))); elseif (y5 <= -1.46e+41) tmp = t_1; elseif (y5 <= -1.72e-171) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (y5 <= 1.12e-10) tmp = Float64(a * Float64(b * Float64(-1.0 * Float64(t * z)))); elseif (y5 <= 3.6e+61) tmp = Float64(y2 * Float64(a * Float64(t * y5))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y2 * (-1.0 * (k * (y0 * y5))); tmp = 0.0; if (y5 <= -5.5e+136) tmp = j * (y0 * (y3 * y5)); elseif (y5 <= -1.46e+41) tmp = t_1; elseif (y5 <= -1.72e-171) tmp = a * (b * (x * y)); elseif (y5 <= 1.12e-10) tmp = a * (b * (-1.0 * (t * z))); elseif (y5 <= 3.6e+61) tmp = y2 * (a * (t * y5)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * N[(-1.0 * N[(k * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -5.5e+136], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.46e+41], t$95$1, If[LessEqual[y5, -1.72e-171], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.12e-10], N[(a * N[(b * N[(-1.0 * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.6e+61], N[(y2 * N[(a * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
t_1 := y2 \cdot \left(-1 \cdot \left(k \cdot \left(y0 \cdot y5\right)\right)\right)\\
\mathbf{if}\;y5 \leq -5.5 \cdot 10^{+136}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\mathbf{elif}\;y5 \leq -1.46 \cdot 10^{+41}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.72 \cdot 10^{-171}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 1.12 \cdot 10^{-10}:\\
\;\;\;\;a \cdot \left(b \cdot \left(-1 \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 3.6 \cdot 10^{+61}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y5 < -5.5000000000000004e136Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in x around 0
lower-*.f6416.8%
Applied rewrites16.8%
if -5.5000000000000004e136 < y5 < -1.4600000000000001e41 or 3.6000000000000001e61 < y5 Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0%
Applied rewrites27.0%
Taylor expanded in t around 0
lower-*.f64N/A
lower-*.f6417.7%
Applied rewrites17.7%
if -1.4600000000000001e41 < y5 < -1.7199999999999999e-171Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.1%
Applied rewrites17.1%
if -1.7199999999999999e-171 < y5 < 1.12e-10Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6416.7%
Applied rewrites16.7%
if 1.12e-10 < y5 < 3.6000000000000001e61Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0%
Applied rewrites27.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0%
Applied rewrites17.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -260000.0)
(* (* j b) (* y4 t))
(if (<= j 6.2e-198)
(* a (* b (* x y)))
(if (<= j 1.25e+116) (* y2 (* y4 (* k y1))) (* j (* y0 (* 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 (j <= -260000.0) {
tmp = (j * b) * (y4 * t);
} else if (j <= 6.2e-198) {
tmp = a * (b * (x * y));
} else if (j <= 1.25e+116) {
tmp = y2 * (y4 * (k * y1));
} else {
tmp = j * (y0 * (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 (j <= (-260000.0d0)) then
tmp = (j * b) * (y4 * t)
else if (j <= 6.2d-198) then
tmp = a * (b * (x * y))
else if (j <= 1.25d+116) then
tmp = y2 * (y4 * (k * y1))
else
tmp = j * (y0 * (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 (j <= -260000.0) {
tmp = (j * b) * (y4 * t);
} else if (j <= 6.2e-198) {
tmp = a * (b * (x * y));
} else if (j <= 1.25e+116) {
tmp = y2 * (y4 * (k * y1));
} else {
tmp = j * (y0 * (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 j <= -260000.0: tmp = (j * b) * (y4 * t) elif j <= 6.2e-198: tmp = a * (b * (x * y)) elif j <= 1.25e+116: tmp = y2 * (y4 * (k * y1)) else: tmp = j * (y0 * (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 (j <= -260000.0) tmp = Float64(Float64(j * b) * Float64(y4 * t)); elseif (j <= 6.2e-198) tmp = Float64(a * Float64(b * Float64(x * y))); elseif (j <= 1.25e+116) tmp = Float64(y2 * Float64(y4 * Float64(k * y1))); else tmp = Float64(j * Float64(y0 * Float64(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 (j <= -260000.0) tmp = (j * b) * (y4 * t); elseif (j <= 6.2e-198) tmp = a * (b * (x * y)); elseif (j <= 1.25e+116) tmp = y2 * (y4 * (k * y1)); else tmp = j * (y0 * (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[j, -260000.0], N[(N[(j * b), $MachinePrecision] * N[(y4 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.2e-198], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.25e+116], N[(y2 * N[(y4 * N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\mathbf{if}\;j \leq -260000:\\
\;\;\;\;\left(j \cdot b\right) \cdot \left(y4 \cdot t\right)\\
\mathbf{elif}\;j \leq 6.2 \cdot 10^{-198}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{elif}\;j \leq 1.25 \cdot 10^{+116}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\end{array}
if j < -2.6e5Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9%
Applied rewrites26.9%
Taylor expanded in x around 0
lower-*.f6417.2%
Applied rewrites17.2%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6416.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6416.6%
Applied rewrites16.6%
if -2.6e5 < j < 6.1999999999999997e-198Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.1%
Applied rewrites17.1%
if 6.1999999999999997e-198 < j < 1.2500000000000001e116Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in t around 0
lower-*.f6417.0%
Applied rewrites17.0%
if 1.2500000000000001e116 < j Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in x around 0
lower-*.f6416.8%
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= j -260000.0) (* (* j b) (* y4 t)) (if (<= j 6.8e+114) (* a (* b (* x y))) (* j (* y0 (* 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 (j <= -260000.0) {
tmp = (j * b) * (y4 * t);
} else if (j <= 6.8e+114) {
tmp = a * (b * (x * y));
} else {
tmp = j * (y0 * (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 (j <= (-260000.0d0)) then
tmp = (j * b) * (y4 * t)
else if (j <= 6.8d+114) then
tmp = a * (b * (x * y))
else
tmp = j * (y0 * (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 (j <= -260000.0) {
tmp = (j * b) * (y4 * t);
} else if (j <= 6.8e+114) {
tmp = a * (b * (x * y));
} else {
tmp = j * (y0 * (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 j <= -260000.0: tmp = (j * b) * (y4 * t) elif j <= 6.8e+114: tmp = a * (b * (x * y)) else: tmp = j * (y0 * (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 (j <= -260000.0) tmp = Float64(Float64(j * b) * Float64(y4 * t)); elseif (j <= 6.8e+114) tmp = Float64(a * Float64(b * Float64(x * y))); else tmp = Float64(j * Float64(y0 * Float64(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 (j <= -260000.0) tmp = (j * b) * (y4 * t); elseif (j <= 6.8e+114) tmp = a * (b * (x * y)); else tmp = j * (y0 * (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[j, -260000.0], N[(N[(j * b), $MachinePrecision] * N[(y4 * t), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.8e+114], N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;j \leq -260000:\\
\;\;\;\;\left(j \cdot b\right) \cdot \left(y4 \cdot t\right)\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{+114}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5\right)\right)\\
\end{array}
if j < -2.6e5Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9%
Applied rewrites26.9%
Taylor expanded in x around 0
lower-*.f6417.2%
Applied rewrites17.2%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6416.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6416.6%
Applied rewrites16.6%
if -2.6e5 < j < 6.8000000000000001e114Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.1%
Applied rewrites17.1%
if 6.8000000000000001e114 < j Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3%
Applied rewrites26.3%
Taylor expanded in x around 0
lower-*.f6416.8%
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* a (* b (* x y))))) (if (<= y -4.8e-93) t_1 (if (<= y 1e-43) (* (* j b) (* y4 t)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double tmp;
if (y <= -4.8e-93) {
tmp = t_1;
} else if (y <= 1e-43) {
tmp = (j * b) * (y4 * t);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * (x * y))
if (y <= (-4.8d-93)) then
tmp = t_1
else if (y <= 1d-43) then
tmp = (j * b) * (y4 * t)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double tmp;
if (y <= -4.8e-93) {
tmp = t_1;
} else if (y <= 1e-43) {
tmp = (j * b) * (y4 * t);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (x * y)) tmp = 0 if y <= -4.8e-93: tmp = t_1 elif y <= 1e-43: tmp = (j * b) * (y4 * t) 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(a * Float64(b * Float64(x * y))) tmp = 0.0 if (y <= -4.8e-93) tmp = t_1; elseif (y <= 1e-43) tmp = Float64(Float64(j * b) * Float64(y4 * t)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (x * y)); tmp = 0.0; if (y <= -4.8e-93) tmp = t_1; elseif (y <= 1e-43) tmp = (j * b) * (y4 * t); 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[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e-93], t$95$1, If[LessEqual[y, 1e-43], N[(N[(j * b), $MachinePrecision] * N[(y4 * t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{-93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 10^{-43}:\\
\;\;\;\;\left(j \cdot b\right) \cdot \left(y4 \cdot t\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -4.8000000000000002e-93 or 1.0000000000000001e-43 < y Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.1%
Applied rewrites17.1%
if -4.8000000000000002e-93 < y < 1.0000000000000001e-43Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9%
Applied rewrites26.9%
Taylor expanded in x around 0
lower-*.f6417.2%
Applied rewrites17.2%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6416.6%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6416.6%
Applied rewrites16.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* a (* b (* x y))))) (if (<= y -4.8e-93) t_1 (if (<= y 9e-44) (* b (* j (* t y4))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double tmp;
if (y <= -4.8e-93) {
tmp = t_1;
} else if (y <= 9e-44) {
tmp = b * (j * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * (x * y))
if (y <= (-4.8d-93)) then
tmp = t_1
else if (y <= 9d-44) then
tmp = b * (j * (t * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * (x * y));
double tmp;
if (y <= -4.8e-93) {
tmp = t_1;
} else if (y <= 9e-44) {
tmp = b * (j * (t * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * (x * y)) tmp = 0 if y <= -4.8e-93: tmp = t_1 elif y <= 9e-44: tmp = b * (j * (t * y4)) 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(a * Float64(b * Float64(x * y))) tmp = 0.0 if (y <= -4.8e-93) tmp = t_1; elseif (y <= 9e-44) tmp = Float64(b * Float64(j * Float64(t * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * (x * y)); tmp = 0.0; if (y <= -4.8e-93) tmp = t_1; elseif (y <= 9e-44) tmp = b * (j * (t * y4)); 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[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -4.8e-93], t$95$1, If[LessEqual[y, 9e-44], N[(b * N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y\right)\right)\\
\mathbf{if}\;y \leq -4.8 \cdot 10^{-93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y \leq 9 \cdot 10^{-44}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y < -4.8000000000000002e-93 or 8.9999999999999997e-44 < y Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.1%
Applied rewrites17.1%
if -4.8000000000000002e-93 < y < 8.9999999999999997e-44Initial program 29.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9%
Applied rewrites26.9%
Taylor expanded in x around 0
lower-*.f6417.2%
Applied rewrites17.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* a (* b (* x 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) {
return a * (b * (x * y));
}
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 * (b * (x * y))
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 * (b * (x * y));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return a * (b * (x * y))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(a * Float64(b * Float64(x * y))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = a * (b * (x * y)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(a * N[(b * N[(x * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
a \cdot \left(b \cdot \left(x \cdot y\right)\right)
Initial program 29.7%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5%
Applied rewrites26.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.1%
Applied rewrites17.1%
herbie shell --seed 2025205
(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
(+ (- (+ (+ (- (* (- (* 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)))))