
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Herbie found 30 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(t_2 (- (* a b) (* c i)))
(t_3 (- (* c y0) (* a y1)))
(t_4 (- (* j t) (* k y)))
(t_5
(*
-1.0
(* y5 (- (fma i t_4 (* y0 t_1)) (* a (- (* t y2) (* y y3)))))))
(t_6 (fma y t_2 (* y2 t_3)))
(t_7 (* x (* j (- (fma i y1 (/ t_6 j)) (* b y0)))))
(t_8 (- (* b y4) (* i y5)))
(t_9
(* t (- (fma -1.0 (* z t_2) (* j t_8)) (* y2 (- (* c y4) (* a y5))))))
(t_10 (- (* b y0) (* i y1))))
(if (<= y5 -4.3e+145)
t_5
(if (<= y5 -1.5e+79)
t_9
(if (<= y5 -5.3e-6)
(+ (* y4 (* -1.0 (* b (* k y)))) (* t_1 (- (* y4 y1) (* y5 y0))))
(if (<= y5 -1.45e-77)
(* -1.0 (* z (- (fma t t_2 (* y3 t_3)) (* k t_10))))
(if (<= y5 -1.02e-221)
(* x (- t_6 (* j t_10)))
(if (<= y5 1.7e-304)
t_9
(if (<= y5 5.4e-217)
t_7
(if (<= y5 2.7e-28)
(*
k
(-
(fma -1.0 (* y t_8) (* y2 (- (* y1 y4) (* y0 y5))))
(* -1.0 (* z t_10))))
(if (<= y5 1.32e+39)
(*
-1.0
(*
i
(-
(fma c (- (* x y) (* t z)) (* y5 t_4))
(* y1 (- (* j x) (* k z))))))
(if (<= y5 9e+102) t_7 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 = (k * y2) - (j * y3);
double t_2 = (a * b) - (c * i);
double t_3 = (c * y0) - (a * y1);
double t_4 = (j * t) - (k * y);
double t_5 = -1.0 * (y5 * (fma(i, t_4, (y0 * t_1)) - (a * ((t * y2) - (y * y3)))));
double t_6 = fma(y, t_2, (y2 * t_3));
double t_7 = x * (j * (fma(i, y1, (t_6 / j)) - (b * y0)));
double t_8 = (b * y4) - (i * y5);
double t_9 = t * (fma(-1.0, (z * t_2), (j * t_8)) - (y2 * ((c * y4) - (a * y5))));
double t_10 = (b * y0) - (i * y1);
double tmp;
if (y5 <= -4.3e+145) {
tmp = t_5;
} else if (y5 <= -1.5e+79) {
tmp = t_9;
} else if (y5 <= -5.3e-6) {
tmp = (y4 * (-1.0 * (b * (k * y)))) + (t_1 * ((y4 * y1) - (y5 * y0)));
} else if (y5 <= -1.45e-77) {
tmp = -1.0 * (z * (fma(t, t_2, (y3 * t_3)) - (k * t_10)));
} else if (y5 <= -1.02e-221) {
tmp = x * (t_6 - (j * t_10));
} else if (y5 <= 1.7e-304) {
tmp = t_9;
} else if (y5 <= 5.4e-217) {
tmp = t_7;
} else if (y5 <= 2.7e-28) {
tmp = k * (fma(-1.0, (y * t_8), (y2 * ((y1 * y4) - (y0 * y5)))) - (-1.0 * (z * t_10)));
} else if (y5 <= 1.32e+39) {
tmp = -1.0 * (i * (fma(c, ((x * y) - (t * z)), (y5 * t_4)) - (y1 * ((j * x) - (k * z)))));
} else if (y5 <= 9e+102) {
tmp = t_7;
} 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(k * y2) - Float64(j * y3)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(Float64(c * y0) - Float64(a * y1)) t_4 = Float64(Float64(j * t) - Float64(k * y)) t_5 = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_4, Float64(y0 * t_1)) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))) t_6 = fma(y, t_2, Float64(y2 * t_3)) t_7 = Float64(x * Float64(j * Float64(fma(i, y1, Float64(t_6 / j)) - Float64(b * y0)))) t_8 = Float64(Float64(b * y4) - Float64(i * y5)) t_9 = Float64(t * Float64(fma(-1.0, Float64(z * t_2), Float64(j * t_8)) - Float64(y2 * Float64(Float64(c * y4) - Float64(a * y5))))) t_10 = Float64(Float64(b * y0) - Float64(i * y1)) tmp = 0.0 if (y5 <= -4.3e+145) tmp = t_5; elseif (y5 <= -1.5e+79) tmp = t_9; elseif (y5 <= -5.3e-6) tmp = Float64(Float64(y4 * Float64(-1.0 * Float64(b * Float64(k * y)))) + Float64(t_1 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (y5 <= -1.45e-77) tmp = Float64(-1.0 * Float64(z * Float64(fma(t, t_2, Float64(y3 * t_3)) - Float64(k * t_10)))); elseif (y5 <= -1.02e-221) tmp = Float64(x * Float64(t_6 - Float64(j * t_10))); elseif (y5 <= 1.7e-304) tmp = t_9; elseif (y5 <= 5.4e-217) tmp = t_7; elseif (y5 <= 2.7e-28) tmp = Float64(k * Float64(fma(-1.0, Float64(y * t_8), Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))) - Float64(-1.0 * Float64(z * t_10)))); elseif (y5 <= 1.32e+39) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, Float64(Float64(x * y) - Float64(t * z)), Float64(y5 * t_4)) - Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))))); elseif (y5 <= 9e+102) tmp = t_7; 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[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(-1.0 * N[(y5 * N[(N[(i * t$95$4 + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(y * t$95$2 + N[(y2 * t$95$3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(x * N[(j * N[(N[(i * y1 + N[(t$95$6 / j), $MachinePrecision]), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(t * N[(N[(-1.0 * N[(z * t$95$2), $MachinePrecision] + N[(j * t$95$8), $MachinePrecision]), $MachinePrecision] - N[(y2 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -4.3e+145], t$95$5, If[LessEqual[y5, -1.5e+79], t$95$9, If[LessEqual[y5, -5.3e-6], N[(N[(y4 * N[(-1.0 * N[(b * N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.45e-77], N[(-1.0 * N[(z * N[(N[(t * t$95$2 + N[(y3 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(k * t$95$10), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.02e-221], N[(x * N[(t$95$6 - N[(j * t$95$10), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.7e-304], t$95$9, If[LessEqual[y5, 5.4e-217], t$95$7, If[LessEqual[y5, 2.7e-28], N[(k * N[(N[(-1.0 * N[(y * t$95$8), $MachinePrecision] + N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(z * t$95$10), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.32e+39], N[(-1.0 * N[(i * N[(N[(c * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y5 * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9e+102], t$95$7, t$95$5]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := a \cdot b - c \cdot i\\
t_3 := c \cdot y0 - a \cdot y1\\
t_4 := j \cdot t - k \cdot y\\
t_5 := -1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_4, y0 \cdot t\_1\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
t_6 := \mathsf{fma}\left(y, t\_2, y2 \cdot t\_3\right)\\
t_7 := x \cdot \left(j \cdot \left(\mathsf{fma}\left(i, y1, \frac{t\_6}{j}\right) - b \cdot y0\right)\right)\\
t_8 := b \cdot y4 - i \cdot y5\\
t_9 := t \cdot \left(\mathsf{fma}\left(-1, z \cdot t\_2, j \cdot t\_8\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_10 := b \cdot y0 - i \cdot y1\\
\mathbf{if}\;y5 \leq -4.3 \cdot 10^{+145}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y5 \leq -1.5 \cdot 10^{+79}:\\
\;\;\;\;t\_9\\
\mathbf{elif}\;y5 \leq -5.3 \cdot 10^{-6}:\\
\;\;\;\;y4 \cdot \left(-1 \cdot \left(b \cdot \left(k \cdot y\right)\right)\right) + t\_1 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;y5 \leq -1.45 \cdot 10^{-77}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, t\_2, y3 \cdot t\_3\right) - k \cdot t\_10\right)\right)\\
\mathbf{elif}\;y5 \leq -1.02 \cdot 10^{-221}:\\
\;\;\;\;x \cdot \left(t\_6 - j \cdot t\_10\right)\\
\mathbf{elif}\;y5 \leq 1.7 \cdot 10^{-304}:\\
\;\;\;\;t\_9\\
\mathbf{elif}\;y5 \leq 5.4 \cdot 10^{-217}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y5 \leq 2.7 \cdot 10^{-28}:\\
\;\;\;\;k \cdot \left(\mathsf{fma}\left(-1, y \cdot t\_8, y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right) - -1 \cdot \left(z \cdot t\_10\right)\right)\\
\mathbf{elif}\;y5 \leq 1.32 \cdot 10^{+39}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, x \cdot y - t \cdot z, y5 \cdot t\_4\right) - y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 9 \cdot 10^{+102}:\\
\;\;\;\;t\_7\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y5 < -4.29999999999999998e145 or 9.00000000000000042e102 < y5 Initial program 23.8%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.2%
if -4.29999999999999998e145 < y5 < -1.49999999999999987e79 or -1.02e-221 < y5 < 1.6999999999999999e-304Initial program 34.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
if -1.49999999999999987e79 < y5 < -5.3000000000000001e-6Initial program 30.4%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6436.9
Applied rewrites36.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6434.8
Applied rewrites34.8%
if -5.3000000000000001e-6 < y5 < -1.4499999999999999e-77Initial program 28.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.2%
if -1.4499999999999999e-77 < y5 < -1.02e-221Initial program 33.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.7%
if 1.6999999999999999e-304 < y5 < 5.40000000000000032e-217 or 1.32e39 < y5 < 9.00000000000000042e102Initial program 32.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites44.5%
if 5.40000000000000032e-217 < y5 < 2.6999999999999999e-28Initial program 34.4%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
if 2.6999999999999999e-28 < y5 < 1.32e39Initial program 35.2%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.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)))
(t_2 (- (* a b) (* c i)))
(t_3
(*
t
(-
(fma -1.0 (* z t_2) (* j (- (* b y4) (* i y5))))
(* y2 (- (* c y4) (* a y5))))))
(t_4 (- (* c y0) (* a y1)))
(t_5 (- (* j t) (* k y)))
(t_6 (- (* b y0) (* i y1)))
(t_7
(*
-1.0
(* y5 (- (fma i t_5 (* y0 t_1)) (* a (- (* t y2) (* y y3)))))))
(t_8 (fma y t_2 (* y2 t_4))))
(if (<= y5 -4.3e+145)
t_7
(if (<= y5 -1.5e+79)
t_3
(if (<= y5 -5.3e-6)
(+ (* y4 (* -1.0 (* b (* k y)))) (* t_1 (- (* y4 y1) (* y5 y0))))
(if (<= y5 -1.45e-77)
(* -1.0 (* z (- (fma t t_2 (* y3 t_4)) (* k t_6))))
(if (<= y5 -1.02e-221)
(* x (- t_8 (* j t_6)))
(if (<= y5 1.7e-304)
t_3
(if (<= y5 4.1e-216)
(* x (* j (- (fma i y1 (/ t_8 j)) (* b y0))))
(if (<= y5 6.5e+102)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 t_5))
(* y0 (- (* j x) (* k z)))))
t_7))))))))))
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);
double t_2 = (a * b) - (c * i);
double t_3 = t * (fma(-1.0, (z * t_2), (j * ((b * y4) - (i * y5)))) - (y2 * ((c * y4) - (a * y5))));
double t_4 = (c * y0) - (a * y1);
double t_5 = (j * t) - (k * y);
double t_6 = (b * y0) - (i * y1);
double t_7 = -1.0 * (y5 * (fma(i, t_5, (y0 * t_1)) - (a * ((t * y2) - (y * y3)))));
double t_8 = fma(y, t_2, (y2 * t_4));
double tmp;
if (y5 <= -4.3e+145) {
tmp = t_7;
} else if (y5 <= -1.5e+79) {
tmp = t_3;
} else if (y5 <= -5.3e-6) {
tmp = (y4 * (-1.0 * (b * (k * y)))) + (t_1 * ((y4 * y1) - (y5 * y0)));
} else if (y5 <= -1.45e-77) {
tmp = -1.0 * (z * (fma(t, t_2, (y3 * t_4)) - (k * t_6)));
} else if (y5 <= -1.02e-221) {
tmp = x * (t_8 - (j * t_6));
} else if (y5 <= 1.7e-304) {
tmp = t_3;
} else if (y5 <= 4.1e-216) {
tmp = x * (j * (fma(i, y1, (t_8 / j)) - (b * y0)));
} else if (y5 <= 6.5e+102) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_5)) - (y0 * ((j * x) - (k * z))));
} else {
tmp = t_7;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(t * Float64(fma(-1.0, Float64(z * t_2), Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(y2 * Float64(Float64(c * y4) - Float64(a * y5))))) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) t_5 = Float64(Float64(j * t) - Float64(k * y)) t_6 = Float64(Float64(b * y0) - Float64(i * y1)) t_7 = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_5, Float64(y0 * t_1)) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))) t_8 = fma(y, t_2, Float64(y2 * t_4)) tmp = 0.0 if (y5 <= -4.3e+145) tmp = t_7; elseif (y5 <= -1.5e+79) tmp = t_3; elseif (y5 <= -5.3e-6) tmp = Float64(Float64(y4 * Float64(-1.0 * Float64(b * Float64(k * y)))) + Float64(t_1 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (y5 <= -1.45e-77) tmp = Float64(-1.0 * Float64(z * Float64(fma(t, t_2, Float64(y3 * t_4)) - Float64(k * t_6)))); elseif (y5 <= -1.02e-221) tmp = Float64(x * Float64(t_8 - Float64(j * t_6))); elseif (y5 <= 1.7e-304) tmp = t_3; elseif (y5 <= 4.1e-216) tmp = Float64(x * Float64(j * Float64(fma(i, y1, Float64(t_8 / j)) - Float64(b * y0)))); elseif (y5 <= 6.5e+102) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_5)) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); else tmp = t_7; 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[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(t * N[(N[(-1.0 * N[(z * t$95$2), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(-1.0 * N[(y5 * N[(N[(i * t$95$5 + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(y * t$95$2 + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -4.3e+145], t$95$7, If[LessEqual[y5, -1.5e+79], t$95$3, If[LessEqual[y5, -5.3e-6], N[(N[(y4 * N[(-1.0 * N[(b * N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$1 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.45e-77], N[(-1.0 * N[(z * N[(N[(t * t$95$2 + N[(y3 * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(k * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.02e-221], N[(x * N[(t$95$8 - N[(j * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.7e-304], t$95$3, If[LessEqual[y5, 4.1e-216], N[(x * N[(j * N[(N[(i * y1 + N[(t$95$8 / j), $MachinePrecision]), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.5e+102], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$7]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := a \cdot b - c \cdot i\\
t_3 := t \cdot \left(\mathsf{fma}\left(-1, z \cdot t\_2, j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
t_4 := c \cdot y0 - a \cdot y1\\
t_5 := j \cdot t - k \cdot y\\
t_6 := b \cdot y0 - i \cdot y1\\
t_7 := -1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_5, y0 \cdot t\_1\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
t_8 := \mathsf{fma}\left(y, t\_2, y2 \cdot t\_4\right)\\
\mathbf{if}\;y5 \leq -4.3 \cdot 10^{+145}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y5 \leq -1.5 \cdot 10^{+79}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y5 \leq -5.3 \cdot 10^{-6}:\\
\;\;\;\;y4 \cdot \left(-1 \cdot \left(b \cdot \left(k \cdot y\right)\right)\right) + t\_1 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;y5 \leq -1.45 \cdot 10^{-77}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, t\_2, y3 \cdot t\_4\right) - k \cdot t\_6\right)\right)\\
\mathbf{elif}\;y5 \leq -1.02 \cdot 10^{-221}:\\
\;\;\;\;x \cdot \left(t\_8 - j \cdot t\_6\right)\\
\mathbf{elif}\;y5 \leq 1.7 \cdot 10^{-304}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;y5 \leq 4.1 \cdot 10^{-216}:\\
\;\;\;\;x \cdot \left(j \cdot \left(\mathsf{fma}\left(i, y1, \frac{t\_8}{j}\right) - b \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 6.5 \cdot 10^{+102}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_5\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_7\\
\end{array}
\end{array}
if y5 < -4.29999999999999998e145 or 6.5000000000000004e102 < y5 Initial program 23.8%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.2%
if -4.29999999999999998e145 < y5 < -1.49999999999999987e79 or -1.02e-221 < y5 < 1.6999999999999999e-304Initial program 34.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
if -1.49999999999999987e79 < y5 < -5.3000000000000001e-6Initial program 30.4%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6436.9
Applied rewrites36.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6434.8
Applied rewrites34.8%
if -5.3000000000000001e-6 < y5 < -1.4499999999999999e-77Initial program 28.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.2%
if -1.4499999999999999e-77 < y5 < -1.02e-221Initial program 33.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.7%
if 1.6999999999999999e-304 < y5 < 4.10000000000000024e-216Initial program 35.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites42.2%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.7%
if 4.10000000000000024e-216 < y5 < 6.5000000000000004e102Initial program 33.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* a b) (* c i)))
(t_2
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) t_1)
(* (- (* 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_2 INFINITY)
t_2
(*
x
(*
j
(-
(fma i y1 (/ (fma y t_1 (* y2 (- (* c y0) (* a y1)))) j))
(* b 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 t_1 = (a * b) - (c * i);
double t_2 = (((((((x * y) - (z * t)) * t_1) - (((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_2 <= ((double) INFINITY)) {
tmp = t_2;
} else {
tmp = x * (j * (fma(i, y1, (fma(y, t_1, (y2 * ((c * y0) - (a * y1)))) / j)) - (b * y0)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(a * b) - Float64(c * i)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * t_1) - 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_2 <= Inf) tmp = t_2; else tmp = Float64(x * Float64(j * Float64(fma(i, y1, Float64(fma(y, t_1, Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) / j)) - Float64(b * y0)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$1), $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$2, Infinity], t$95$2, N[(x * N[(j * N[(N[(i * y1 + N[(N[(y * t$95$1 + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot b - c \cdot i\\
t_2 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot t\_1 - \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\_2 \leq \infty:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(j \cdot \left(\mathsf{fma}\left(i, y1, \frac{\mathsf{fma}\left(y, t\_1, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)}{j}\right) - b \cdot y0\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.1%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.2%
(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 (- (* a b) (* c i)))
(t_3
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 t_1))
(* y0 (- (* j x) (* k z))))))
(t_4 (- (* c y0) (* a y1)))
(t_5 (- (* k y2) (* j y3))))
(if (<= b -3.1e+93)
t_3
(if (<= b -5.9e-62)
(+
(* -1.0 (* y (* y4 (- (* b k) (* c y3)))))
(* t_5 (- (* y4 y1) (* y5 y0))))
(if (<= b -8.5e-170)
(* y0 (* y2 (* x (+ c (* -1.0 (/ (* k y5) x))))))
(if (<= b 4.8e-195)
(*
-1.0
(* z (- (fma t t_2 (* y3 t_4)) (* k (- (* b y0) (* i y1))))))
(if (<= b 8.2e-60)
(*
-1.0
(* y5 (- (fma i t_1 (* y0 t_5)) (* a (- (* t y2) (* y y3))))))
(if (<= b 6.2e+127)
(* x (* j (- (fma i y1 (/ (fma y t_2 (* y2 t_4)) j)) (* b y0))))
t_3))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * t) - (k * y);
double t_2 = (a * b) - (c * i);
double t_3 = b * (fma(a, ((x * y) - (t * z)), (y4 * t_1)) - (y0 * ((j * x) - (k * z))));
double t_4 = (c * y0) - (a * y1);
double t_5 = (k * y2) - (j * y3);
double tmp;
if (b <= -3.1e+93) {
tmp = t_3;
} else if (b <= -5.9e-62) {
tmp = (-1.0 * (y * (y4 * ((b * k) - (c * y3))))) + (t_5 * ((y4 * y1) - (y5 * y0)));
} else if (b <= -8.5e-170) {
tmp = y0 * (y2 * (x * (c + (-1.0 * ((k * y5) / x)))));
} else if (b <= 4.8e-195) {
tmp = -1.0 * (z * (fma(t, t_2, (y3 * t_4)) - (k * ((b * y0) - (i * y1)))));
} else if (b <= 8.2e-60) {
tmp = -1.0 * (y5 * (fma(i, t_1, (y0 * t_5)) - (a * ((t * y2) - (y * y3)))));
} else if (b <= 6.2e+127) {
tmp = x * (j * (fma(i, y1, (fma(y, t_2, (y2 * t_4)) / j)) - (b * y0)));
} else {
tmp = t_3;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * t) - Float64(k * y)) t_2 = Float64(Float64(a * b) - Float64(c * i)) t_3 = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_1)) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) t_5 = Float64(Float64(k * y2) - Float64(j * y3)) tmp = 0.0 if (b <= -3.1e+93) tmp = t_3; elseif (b <= -5.9e-62) tmp = Float64(Float64(-1.0 * Float64(y * Float64(y4 * Float64(Float64(b * k) - Float64(c * y3))))) + Float64(t_5 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (b <= -8.5e-170) tmp = Float64(y0 * Float64(y2 * Float64(x * Float64(c + Float64(-1.0 * Float64(Float64(k * y5) / x)))))); elseif (b <= 4.8e-195) tmp = Float64(-1.0 * Float64(z * Float64(fma(t, t_2, Float64(y3 * t_4)) - Float64(k * Float64(Float64(b * y0) - Float64(i * y1)))))); elseif (b <= 8.2e-60) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_1, Float64(y0 * t_5)) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (b <= 6.2e+127) tmp = Float64(x * Float64(j * Float64(fma(i, y1, Float64(fma(y, t_2, Float64(y2 * t_4)) / j)) - Float64(b * y0)))); else tmp = t_3; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -3.1e+93], t$95$3, If[LessEqual[b, -5.9e-62], N[(N[(-1.0 * N[(y * N[(y4 * N[(N[(b * k), $MachinePrecision] - N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$5 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -8.5e-170], N[(y0 * N[(y2 * N[(x * N[(c + N[(-1.0 * N[(N[(k * y5), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 4.8e-195], N[(-1.0 * N[(z * N[(N[(t * t$95$2 + N[(y3 * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-60], N[(-1.0 * N[(y5 * N[(N[(i * t$95$1 + N[(y0 * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 6.2e+127], N[(x * N[(j * N[(N[(i * y1 + N[(N[(y * t$95$2 + N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$3]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := a \cdot b - c \cdot i\\
t_3 := b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
t_4 := c \cdot y0 - a \cdot y1\\
t_5 := k \cdot y2 - j \cdot y3\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+93}:\\
\;\;\;\;t\_3\\
\mathbf{elif}\;b \leq -5.9 \cdot 10^{-62}:\\
\;\;\;\;-1 \cdot \left(y \cdot \left(y4 \cdot \left(b \cdot k - c \cdot y3\right)\right)\right) + t\_5 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;b \leq -8.5 \cdot 10^{-170}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(x \cdot \left(c + -1 \cdot \frac{k \cdot y5}{x}\right)\right)\right)\\
\mathbf{elif}\;b \leq 4.8 \cdot 10^{-195}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, t\_2, y3 \cdot t\_4\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-60}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_1, y0 \cdot t\_5\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+127}:\\
\;\;\;\;x \cdot \left(j \cdot \left(\mathsf{fma}\left(i, y1, \frac{\mathsf{fma}\left(y, t\_2, y2 \cdot t\_4\right)}{j}\right) - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_3\\
\end{array}
\end{array}
if b < -3.10000000000000019e93 or 6.2000000000000005e127 < b Initial program 23.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites58.4%
if -3.10000000000000019e93 < b < -5.9000000000000004e-62Initial program 31.2%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6437.5
Applied rewrites37.5%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.2
Applied rewrites37.2%
if -5.9000000000000004e-62 < b < -8.5e-170Initial program 33.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites32.8%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lift-*.f6429.7
Applied rewrites29.7%
if -8.5e-170 < b < 4.8e-195Initial program 35.5%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if 4.8e-195 < b < 8.20000000000000025e-60Initial program 36.7%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.8%
if 8.20000000000000025e-60 < b < 6.2000000000000005e127Initial program 30.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites44.0%
(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 -3.1e+93)
t_1
(if (<= b -1.42e-216)
(+ (* -1.0 (* y (* y4 (- (* b k) (* c y3))))) t_2)
(if (<= b 1.7e-190)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= b 3.1e-60)
(+ (* y4 (* -1.0 (* c (* t y2)))) t_2)
(if (<= b 6.2e+127)
(*
x
(*
j
(-
(fma
i
y1
(/
(fma y (- (* a b) (* c i)) (* y2 (- (* c y0) (* a y1))))
j))
(* b y0))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = 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 <= -3.1e+93) {
tmp = t_1;
} else if (b <= -1.42e-216) {
tmp = (-1.0 * (y * (y4 * ((b * k) - (c * y3))))) + t_2;
} else if (b <= 1.7e-190) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (b <= 3.1e-60) {
tmp = (y4 * (-1.0 * (c * (t * y2)))) + t_2;
} else if (b <= 6.2e+127) {
tmp = x * (j * (fma(i, y1, (fma(y, ((a * b) - (c * i)), (y2 * ((c * y0) - (a * y1)))) / j)) - (b * y0)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(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 <= -3.1e+93) tmp = t_1; elseif (b <= -1.42e-216) tmp = Float64(Float64(-1.0 * Float64(y * Float64(y4 * Float64(Float64(b * k) - Float64(c * y3))))) + t_2); elseif (b <= 1.7e-190) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (b <= 3.1e-60) tmp = Float64(Float64(y4 * Float64(-1.0 * Float64(c * Float64(t * y2)))) + t_2); elseif (b <= 6.2e+127) tmp = Float64(x * Float64(j * Float64(fma(i, y1, Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) / j)) - Float64(b * y0)))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(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, -3.1e+93], t$95$1, If[LessEqual[b, -1.42e-216], N[(N[(-1.0 * N[(y * N[(y4 * N[(N[(b * k), $MachinePrecision] - N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[b, 1.7e-190], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 3.1e-60], N[(N[(y4 * N[(-1.0 * N[(c * N[(t * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[b, 6.2e+127], N[(x * N[(j * N[(N[(i * y1 + N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\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 -3.1 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.42 \cdot 10^{-216}:\\
\;\;\;\;-1 \cdot \left(y \cdot \left(y4 \cdot \left(b \cdot k - c \cdot y3\right)\right)\right) + t\_2\\
\mathbf{elif}\;b \leq 1.7 \cdot 10^{-190}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 3.1 \cdot 10^{-60}:\\
\;\;\;\;y4 \cdot \left(-1 \cdot \left(c \cdot \left(t \cdot y2\right)\right)\right) + t\_2\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{+127}:\\
\;\;\;\;x \cdot \left(j \cdot \left(\mathsf{fma}\left(i, y1, \frac{\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)}{j}\right) - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.10000000000000019e93 or 6.2000000000000005e127 < b Initial program 23.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites58.4%
if -3.10000000000000019e93 < b < -1.42000000000000004e-216Initial program 31.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6436.6
Applied rewrites36.6%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.7
Applied rewrites36.7%
if -1.42000000000000004e-216 < b < 1.69999999999999991e-190Initial program 36.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.8%
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 1.69999999999999991e-190 < b < 3.09999999999999988e-60Initial program 36.8%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6435.3
Applied rewrites35.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6436.5
Applied rewrites36.5%
if 3.09999999999999988e-60 < b < 6.2000000000000005e127Initial program 30.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites44.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y2 (- (* c y0) (* a y1)))) (t_2 (- (* a b) (* c i))))
(if (<=
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) t_2)
(* (- (* 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))))
INFINITY)
(-
(fma
k
(* y2 (- (* y1 y4) (* y0 y5)))
(fma
x
t_1
(fma
t_2
(- (* x y) (* t z))
(* (- (* b y4) (* i y5)) (- (* j t) (* k y))))))
(fma
t
(* y2 (- (* c y4) (* a y5)))
(* (- (* b y0) (* i y1)) (- (* j x) (* k z)))))
(* x (* j (- (fma i y1 (/ (fma y t_2 t_1) j)) (* b 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 t_1 = y2 * ((c * y0) - (a * y1));
double t_2 = (a * b) - (c * i);
double tmp;
if (((((((((x * y) - (z * t)) * t_2) - (((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) INFINITY)) {
tmp = fma(k, (y2 * ((y1 * y4) - (y0 * y5))), fma(x, t_1, fma(t_2, ((x * y) - (t * z)), (((b * y4) - (i * y5)) * ((j * t) - (k * y)))))) - fma(t, (y2 * ((c * y4) - (a * y5))), (((b * y0) - (i * y1)) * ((j * x) - (k * z))));
} else {
tmp = x * (j * (fma(i, y1, (fma(y, t_2, t_1) / j)) - (b * y0)));
}
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(Float64(c * y0) - Float64(a * y1))) t_2 = Float64(Float64(a * b) - Float64(c * i)) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * t_2) - 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)))) <= Inf) tmp = Float64(fma(k, Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5))), fma(x, t_1, fma(t_2, Float64(Float64(x * y) - Float64(t * z)), Float64(Float64(Float64(b * y4) - Float64(i * y5)) * Float64(Float64(j * t) - Float64(k * y)))))) - fma(t, Float64(y2 * Float64(Float64(c * y4) - Float64(a * y5))), Float64(Float64(Float64(b * y0) - Float64(i * y1)) * Float64(Float64(j * x) - Float64(k * z))))); else tmp = Float64(x * Float64(j * Float64(fma(i, y1, Float64(fma(y, t_2, t_1) / j)) - Float64(b * y0)))); 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[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$2), $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], Infinity], N[(N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1 + N[(t$95$2 * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision] * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(y2 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(j * N[(N[(i * y1 + N[(N[(y * t$95$2 + t$95$1), $MachinePrecision] / j), $MachinePrecision]), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\\
t_2 := a \cdot b - c \cdot i\\
\mathbf{if}\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot t\_2 - \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) \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(k, y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right), \mathsf{fma}\left(x, t\_1, \mathsf{fma}\left(t\_2, x \cdot y - t \cdot z, \left(b \cdot y4 - i \cdot y5\right) \cdot \left(j \cdot t - k \cdot y\right)\right)\right)\right) - \mathsf{fma}\left(t, y2 \cdot \left(c \cdot y4 - a \cdot y5\right), \left(b \cdot y0 - i \cdot y1\right) \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(j \cdot \left(\mathsf{fma}\left(i, y1, \frac{\mathsf{fma}\left(y, t\_2, t\_1\right)}{j}\right) - b \cdot y0\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.1%
Taylor expanded in y3 around 0
Applied rewrites70.2%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.2%
(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 -3.1e+93)
t_1
(if (<= b -1.42e-216)
(+ (* -1.0 (* y (* y4 (- (* b k) (* c y3))))) t_2)
(if (<= b 1.5e-189)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= b 7.6e+87) (+ (* y4 (* b (* j t))) 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 <= -3.1e+93) {
tmp = t_1;
} else if (b <= -1.42e-216) {
tmp = (-1.0 * (y * (y4 * ((b * k) - (c * y3))))) + t_2;
} else if (b <= 1.5e-189) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (b <= 7.6e+87) {
tmp = (y4 * (b * (j * t))) + 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 <= -3.1e+93) tmp = t_1; elseif (b <= -1.42e-216) tmp = Float64(Float64(-1.0 * Float64(y * Float64(y4 * Float64(Float64(b * k) - Float64(c * y3))))) + t_2); elseif (b <= 1.5e-189) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (b <= 7.6e+87) tmp = Float64(Float64(y4 * Float64(b * Float64(j * t))) + 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, -3.1e+93], t$95$1, If[LessEqual[b, -1.42e-216], N[(N[(-1.0 * N[(y * N[(y4 * N[(N[(b * k), $MachinePrecision] - N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[b, 1.5e-189], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 7.6e+87], N[(N[(y4 * N[(b * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\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 -3.1 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.42 \cdot 10^{-216}:\\
\;\;\;\;-1 \cdot \left(y \cdot \left(y4 \cdot \left(b \cdot k - c \cdot y3\right)\right)\right) + t\_2\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-189}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 7.6 \cdot 10^{+87}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.10000000000000019e93 or 7.60000000000000022e87 < b Initial program 23.8%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites57.6%
if -3.10000000000000019e93 < b < -1.42000000000000004e-216Initial program 31.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6436.6
Applied rewrites36.6%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.7
Applied rewrites36.7%
if -1.42000000000000004e-216 < b < 1.5e-189Initial program 37.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.9%
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 1.5e-189 < b < 7.60000000000000022e87Initial program 33.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6435.4
Applied rewrites35.4%
Taylor expanded in j around inf
lower-*.f64N/A
lift-*.f6433.3
Applied rewrites33.3%
(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
(*
-1.0
(*
y5
(-
(fma i t_1 (* y0 (- (* k y2) (* j y3))))
(* a (- (* t y2) (* y y3))))))))
(if (<= y5 -2.6e+133)
t_2
(if (<= y5 6.5e+102)
(*
b
(- (fma a (- (* x y) (* t z)) (* y4 t_1)) (* y0 (- (* j x) (* k z)))))
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 = (j * t) - (k * y);
double t_2 = -1.0 * (y5 * (fma(i, t_1, (y0 * ((k * y2) - (j * y3)))) - (a * ((t * y2) - (y * y3)))));
double tmp;
if (y5 <= -2.6e+133) {
tmp = t_2;
} else if (y5 <= 6.5e+102) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_1)) - (y0 * ((j * x) - (k * z))));
} 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(j * t) - Float64(k * y)) t_2 = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_1, Float64(y0 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))) tmp = 0.0 if (y5 <= -2.6e+133) tmp = t_2; elseif (y5 <= 6.5e+102) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_1)) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); 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[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-1.0 * N[(y5 * N[(N[(i * t$95$1 + N[(y0 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -2.6e+133], t$95$2, If[LessEqual[y5, 6.5e+102], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := -1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_1, y0 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{if}\;y5 \leq -2.6 \cdot 10^{+133}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq 6.5 \cdot 10^{+102}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_1\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
\end{array}
if y5 < -2.5999999999999998e133 or 6.5000000000000004e102 < y5 Initial program 24.0%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites55.9%
if -2.5999999999999998e133 < y5 < 6.5000000000000004e102Initial program 32.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.2%
(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 -9.8e+177)
(* a (* b (- (* x y) (* t z))))
(if (<= b -2.45e+94)
(*
b
(-
(* y (fma -1.0 (* k y4) (/ (* j (* t y4)) y)))
(* y0 (- (* j x) (* k z)))))
(if (<= b -1.42e-216)
(+ (* -1.0 (* y (* y4 (- (* b k) (* c y3))))) t_1)
(if (<= b 1.5e-189)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= b 9.4e+89)
(+ (* y4 (* b (* j t))) t_1)
(* -1.0 (* k (* y0 (- (* y2 y5) (* b 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 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0));
double tmp;
if (b <= -9.8e+177) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -2.45e+94) {
tmp = b * ((y * fma(-1.0, (k * y4), ((j * (t * y4)) / y))) - (y0 * ((j * x) - (k * z))));
} else if (b <= -1.42e-216) {
tmp = (-1.0 * (y * (y4 * ((b * k) - (c * y3))))) + t_1;
} else if (b <= 1.5e-189) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (b <= 9.4e+89) {
tmp = (y4 * (b * (j * t))) + t_1;
} else {
tmp = -1.0 * (k * (y0 * ((y2 * y5) - (b * 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(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))) tmp = 0.0 if (b <= -9.8e+177) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (b <= -2.45e+94) tmp = Float64(b * Float64(Float64(y * fma(-1.0, Float64(k * y4), Float64(Float64(j * Float64(t * y4)) / y))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); elseif (b <= -1.42e-216) tmp = Float64(Float64(-1.0 * Float64(y * Float64(y4 * Float64(Float64(b * k) - Float64(c * y3))))) + t_1); elseif (b <= 1.5e-189) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (b <= 9.4e+89) tmp = Float64(Float64(y4 * Float64(b * Float64(j * t))) + t_1); else tmp = Float64(-1.0 * Float64(k * Float64(y0 * Float64(Float64(y2 * y5) - Float64(b * 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[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -9.8e+177], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -2.45e+94], N[(b * N[(N[(y * N[(-1.0 * N[(k * y4), $MachinePrecision] + N[(N[(j * N[(t * y4), $MachinePrecision]), $MachinePrecision] / y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.42e-216], N[(N[(-1.0 * N[(y * N[(y4 * N[(N[(b * k), $MachinePrecision] - N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], If[LessEqual[b, 1.5e-189], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 9.4e+89], N[(N[(y4 * N[(b * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$1), $MachinePrecision], N[(-1.0 * N[(k * N[(y0 * N[(N[(y2 * y5), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\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 -9.8 \cdot 10^{+177}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;b \leq -2.45 \cdot 10^{+94}:\\
\;\;\;\;b \cdot \left(y \cdot \mathsf{fma}\left(-1, k \cdot y4, \frac{j \cdot \left(t \cdot y4\right)}{y}\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;b \leq -1.42 \cdot 10^{-216}:\\
\;\;\;\;-1 \cdot \left(y \cdot \left(y4 \cdot \left(b \cdot k - c \cdot y3\right)\right)\right) + t\_1\\
\mathbf{elif}\;b \leq 1.5 \cdot 10^{-189}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 9.4 \cdot 10^{+89}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right) + t\_1\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(k \cdot \left(y0 \cdot \left(y2 \cdot y5 - b \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if b < -9.8000000000000003e177Initial program 22.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites62.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6449.9
Applied rewrites49.9%
if -9.8000000000000003e177 < b < -2.4499999999999999e94Initial program 26.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites53.7%
Taylor expanded in a around 0
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6447.4
Applied rewrites47.4%
Taylor expanded in y around inf
lower-*.f64N/A
lower-fma.f64N/A
lift-*.f64N/A
lower-/.f64N/A
lower-*.f64N/A
lift-*.f6446.0
Applied rewrites46.0%
if -2.4499999999999999e94 < b < -1.42000000000000004e-216Initial program 31.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6436.7
Applied rewrites36.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.8
Applied rewrites36.8%
if -1.42000000000000004e-216 < b < 1.5e-189Initial program 37.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.9%
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 1.5e-189 < b < 9.40000000000000043e89Initial program 33.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6435.4
Applied rewrites35.4%
Taylor expanded in j around inf
lower-*.f64N/A
lift-*.f6433.4
Applied rewrites33.4%
if 9.40000000000000043e89 < b Initial program 23.8%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.3%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.9
Applied rewrites36.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)))))))
(if (<= b -3.1e+93)
t_1
(if (<= b -1.3e-207)
(+
(* -1.0 (* y (* y4 (- (* b k) (* c y3)))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
(if (<= b 9.5e+125)
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 (- (* c y0) (* a y1))))
(* j (- (* b y0) (* i y1)))))
t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
double tmp;
if (b <= -3.1e+93) {
tmp = t_1;
} else if (b <= -1.3e-207) {
tmp = (-1.0 * (y * (y4 * ((b * k) - (c * y3))))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (b <= 9.5e+125) {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * ((c * y0) - (a * y1)))) - (j * ((b * y0) - (i * y1))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(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))))) tmp = 0.0 if (b <= -3.1e+93) tmp = t_1; elseif (b <= -1.3e-207) tmp = Float64(Float64(-1.0 * Float64(y * Float64(y4 * Float64(Float64(b * k) - Float64(c * y3))))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (b <= 9.5e+125) tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(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]}, If[LessEqual[b, -3.1e+93], t$95$1, If[LessEqual[b, -1.3e-207], N[(N[(-1.0 * N[(y * N[(y4 * N[(N[(b * k), $MachinePrecision] - N[(c * y3), $MachinePrecision]), $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, 9.5e+125], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\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)\\
\mathbf{if}\;b \leq -3.1 \cdot 10^{+93}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -1.3 \cdot 10^{-207}:\\
\;\;\;\;-1 \cdot \left(y \cdot \left(y4 \cdot \left(b \cdot k - c \cdot y3\right)\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;b \leq 9.5 \cdot 10^{+125}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -3.10000000000000019e93 or 9.50000000000000041e125 < b Initial program 23.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites58.3%
if -3.10000000000000019e93 < b < -1.3e-207Initial program 31.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6436.8
Applied rewrites36.8%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.8
Applied rewrites36.8%
if -1.3e-207 < b < 9.50000000000000041e125Initial program 34.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* j (* y0 (- (/ (* c y2) j) b)))))
(t_2 (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
(if (<= y0 -3.2e+183)
t_1
(if (<= y0 -2.55e+89)
(+ (* y4 (* b (* j t))) t_2)
(if (<= y0 -1.75e-270)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 1.32e-96)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= y0 9.2e+134)
(+ (* y4 (* -1.0 (* b (* k y)))) 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 = x * (j * (y0 * (((c * y2) / j) - b)));
double t_2 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0));
double tmp;
if (y0 <= -3.2e+183) {
tmp = t_1;
} else if (y0 <= -2.55e+89) {
tmp = (y4 * (b * (j * t))) + t_2;
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 1.32e-96) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (y0 <= 9.2e+134) {
tmp = (y4 * (-1.0 * (b * (k * y)))) + 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 = x * (j * (y0 * (((c * y2) / j) - b)))
t_2 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))
if (y0 <= (-3.2d+183)) then
tmp = t_1
else if (y0 <= (-2.55d+89)) then
tmp = (y4 * (b * (j * t))) + t_2
else if (y0 <= (-1.75d-270)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 1.32d-96) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (y0 <= 9.2d+134) then
tmp = (y4 * ((-1.0d0) * (b * (k * y)))) + 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 = x * (j * (y0 * (((c * y2) / j) - b)));
double t_2 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0));
double tmp;
if (y0 <= -3.2e+183) {
tmp = t_1;
} else if (y0 <= -2.55e+89) {
tmp = (y4 * (b * (j * t))) + t_2;
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 1.32e-96) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (y0 <= 9.2e+134) {
tmp = (y4 * (-1.0 * (b * (k * y)))) + 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 = x * (j * (y0 * (((c * y2) / j) - b))) t_2 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)) tmp = 0 if y0 <= -3.2e+183: tmp = t_1 elif y0 <= -2.55e+89: tmp = (y4 * (b * (j * t))) + t_2 elif y0 <= -1.75e-270: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 1.32e-96: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif y0 <= 9.2e+134: tmp = (y4 * (-1.0 * (b * (k * y)))) + 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(x * Float64(j * Float64(y0 * Float64(Float64(Float64(c * y2) / j) - b)))) t_2 = Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0))) tmp = 0.0 if (y0 <= -3.2e+183) tmp = t_1; elseif (y0 <= -2.55e+89) tmp = Float64(Float64(y4 * Float64(b * Float64(j * t))) + t_2); elseif (y0 <= -1.75e-270) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 1.32e-96) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (y0 <= 9.2e+134) tmp = Float64(Float64(y4 * Float64(-1.0 * Float64(b * Float64(k * y)))) + 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 = x * (j * (y0 * (((c * y2) / j) - b))); t_2 = ((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)); tmp = 0.0; if (y0 <= -3.2e+183) tmp = t_1; elseif (y0 <= -2.55e+89) tmp = (y4 * (b * (j * t))) + t_2; elseif (y0 <= -1.75e-270) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 1.32e-96) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (y0 <= 9.2e+134) tmp = (y4 * (-1.0 * (b * (k * y)))) + 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[(x * N[(j * N[(y0 * N[(N[(N[(c * y2), $MachinePrecision] / j), $MachinePrecision] - b), $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[y0, -3.2e+183], t$95$1, If[LessEqual[y0, -2.55e+89], N[(N[(y4 * N[(b * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], If[LessEqual[y0, -1.75e-270], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.32e-96], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 9.2e+134], N[(N[(y4 * N[(-1.0 * N[(b * N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + t$95$2), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(j \cdot \left(y0 \cdot \left(\frac{c \cdot y2}{j} - b\right)\right)\right)\\
t_2 := \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;y0 \leq -3.2 \cdot 10^{+183}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq -2.55 \cdot 10^{+89}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right) + t\_2\\
\mathbf{elif}\;y0 \leq -1.75 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 1.32 \cdot 10^{-96}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq 9.2 \cdot 10^{+134}:\\
\;\;\;\;y4 \cdot \left(-1 \cdot \left(b \cdot \left(k \cdot y\right)\right)\right) + t\_2\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -3.2000000000000002e183 or 9.1999999999999992e134 < y0 Initial program 22.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites42.5%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6448.2
Applied rewrites48.2%
if -3.2000000000000002e183 < y0 < -2.55000000000000014e89Initial program 25.3%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6435.0
Applied rewrites35.0%
Taylor expanded in j around inf
lower-*.f64N/A
lift-*.f6436.7
Applied rewrites36.7%
if -2.55000000000000014e89 < y0 < -1.74999999999999997e-270Initial program 33.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.6
Applied rewrites28.6%
if -1.74999999999999997e-270 < y0 < 1.32e-96Initial program 34.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.2
Applied rewrites28.2%
if 1.32e-96 < y0 < 9.1999999999999992e134Initial program 31.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6438.7
Applied rewrites38.7%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f6435.5
Applied rewrites35.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* j (* y0 (- (/ (* c y2) j) b))))))
(if (<= y0 -3.2e+183)
t_1
(if (<= y0 -2.55e+89)
(+
(* y4 (* b (* j t)))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))
(if (<= y0 -1.75e-270)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 9.4e-234)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= y0 1.2e+31)
(* x (* -1.0 (* y1 (- (* a y2) (* i j)))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (j * (y0 * (((c * y2) / j) - b)));
double tmp;
if (y0 <= -3.2e+183) {
tmp = t_1;
} else if (y0 <= -2.55e+89) {
tmp = (y4 * (b * (j * t))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 9.4e-234) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (y0 <= 1.2e+31) {
tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j))));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = x * (j * (y0 * (((c * y2) / j) - b)))
if (y0 <= (-3.2d+183)) then
tmp = t_1
else if (y0 <= (-2.55d+89)) then
tmp = (y4 * (b * (j * t))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
else if (y0 <= (-1.75d-270)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 9.4d-234) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (y0 <= 1.2d+31) then
tmp = x * ((-1.0d0) * (y1 * ((a * y2) - (i * j))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (j * (y0 * (((c * y2) / j) - b)));
double tmp;
if (y0 <= -3.2e+183) {
tmp = t_1;
} else if (y0 <= -2.55e+89) {
tmp = (y4 * (b * (j * t))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 9.4e-234) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (y0 <= 1.2e+31) {
tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (j * (y0 * (((c * y2) / j) - b))) tmp = 0 if y0 <= -3.2e+183: tmp = t_1 elif y0 <= -2.55e+89: tmp = (y4 * (b * (j * t))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))) elif y0 <= -1.75e-270: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 9.4e-234: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif y0 <= 1.2e+31: tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(j * Float64(y0 * Float64(Float64(Float64(c * y2) / j) - b)))) tmp = 0.0 if (y0 <= -3.2e+183) tmp = t_1; elseif (y0 <= -2.55e+89) tmp = Float64(Float64(y4 * Float64(b * Float64(j * t))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))); elseif (y0 <= -1.75e-270) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 9.4e-234) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (y0 <= 1.2e+31) tmp = Float64(x * Float64(-1.0 * Float64(y1 * Float64(Float64(a * y2) - Float64(i * j))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (j * (y0 * (((c * y2) / j) - b))); tmp = 0.0; if (y0 <= -3.2e+183) tmp = t_1; elseif (y0 <= -2.55e+89) tmp = (y4 * (b * (j * t))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); elseif (y0 <= -1.75e-270) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 9.4e-234) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (y0 <= 1.2e+31) tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j)))); 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[(x * N[(j * N[(y0 * N[(N[(N[(c * y2), $MachinePrecision] / j), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -3.2e+183], t$95$1, If[LessEqual[y0, -2.55e+89], N[(N[(y4 * N[(b * N[(j * t), $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[y0, -1.75e-270], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 9.4e-234], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.2e+31], N[(x * N[(-1.0 * N[(y1 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(j \cdot \left(y0 \cdot \left(\frac{c \cdot y2}{j} - b\right)\right)\right)\\
\mathbf{if}\;y0 \leq -3.2 \cdot 10^{+183}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq -2.55 \cdot 10^{+89}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{elif}\;y0 \leq -1.75 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 9.4 \cdot 10^{-234}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq 1.2 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -3.2000000000000002e183 or 1.19999999999999991e31 < y0 Initial program 24.2%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.7%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6443.6
Applied rewrites43.6%
if -3.2000000000000002e183 < y0 < -2.55000000000000014e89Initial program 25.3%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6435.0
Applied rewrites35.0%
Taylor expanded in j around inf
lower-*.f64N/A
lift-*.f6436.7
Applied rewrites36.7%
if -2.55000000000000014e89 < y0 < -1.74999999999999997e-270Initial program 33.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.6
Applied rewrites28.6%
if -1.74999999999999997e-270 < y0 < 9.4000000000000002e-234Initial program 34.5%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.6
Applied rewrites28.6%
if 9.4000000000000002e-234 < y0 < 1.19999999999999991e31Initial program 34.2%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= a -3.8e+126)
(* a (* b (- (* x y) (* t z))))
(if (<= a -1.4e+83)
(* x (* j (* b (- (/ (* i y1) b) y0))))
(if (<= a 1.75e-101)
(* b (- (* y4 (- (* j t) (* k y))) (* y0 (- (* j x) (* k z)))))
(if (<= a 2.5e+118)
(*
y0
(fma -1.0 (* y5 (- (* k y2) (* j y3))) (* c (- (* x y2) (* y3 z)))))
(if (<= a 1.04e+161)
(* y0 (* y2 (* x (+ c (* -1.0 (/ (* k y5) x))))))
(* x (* a (fma -1.0 (* y1 y2) (* b y))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (a <= -3.8e+126) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (a <= -1.4e+83) {
tmp = x * (j * (b * (((i * y1) / b) - y0)));
} else if (a <= 1.75e-101) {
tmp = b * ((y4 * ((j * t) - (k * y))) - (y0 * ((j * x) - (k * z))));
} else if (a <= 2.5e+118) {
tmp = y0 * fma(-1.0, (y5 * ((k * y2) - (j * y3))), (c * ((x * y2) - (y3 * z))));
} else if (a <= 1.04e+161) {
tmp = y0 * (y2 * (x * (c + (-1.0 * ((k * y5) / x)))));
} else {
tmp = x * (a * fma(-1.0, (y1 * y2), (b * y)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (a <= -3.8e+126) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (a <= -1.4e+83) tmp = Float64(x * Float64(j * Float64(b * Float64(Float64(Float64(i * y1) / b) - y0)))); elseif (a <= 1.75e-101) tmp = Float64(b * Float64(Float64(y4 * Float64(Float64(j * t) - Float64(k * y))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); elseif (a <= 2.5e+118) tmp = Float64(y0 * fma(-1.0, Float64(y5 * Float64(Float64(k * y2) - Float64(j * y3))), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))))); elseif (a <= 1.04e+161) tmp = Float64(y0 * Float64(y2 * Float64(x * Float64(c + Float64(-1.0 * Float64(Float64(k * y5) / x)))))); else tmp = Float64(x * Float64(a * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[a, -3.8e+126], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, -1.4e+83], N[(x * N[(j * N[(b * N[(N[(N[(i * y1), $MachinePrecision] / b), $MachinePrecision] - y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.75e-101], N[(b * N[(N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 2.5e+118], N[(y0 * N[(-1.0 * N[(y5 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[a, 1.04e+161], N[(y0 * N[(y2 * N[(x * N[(c + N[(-1.0 * N[(N[(k * y5), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(a * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;a \leq -3.8 \cdot 10^{+126}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;a \leq -1.4 \cdot 10^{+83}:\\
\;\;\;\;x \cdot \left(j \cdot \left(b \cdot \left(\frac{i \cdot y1}{b} - y0\right)\right)\right)\\
\mathbf{elif}\;a \leq 1.75 \cdot 10^{-101}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 2.5 \cdot 10^{+118}:\\
\;\;\;\;y0 \cdot \mathsf{fma}\left(-1, y5 \cdot \left(k \cdot y2 - j \cdot y3\right), c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;a \leq 1.04 \cdot 10^{+161}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \left(x \cdot \left(c + -1 \cdot \frac{k \cdot y5}{x}\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(a \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\end{array}
\end{array}
if a < -3.80000000000000017e126Initial program 24.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites44.7%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6443.3
Applied rewrites43.3%
if -3.80000000000000017e126 < a < -1.4e83Initial program 24.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6424.4
Applied rewrites24.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lift-*.f6427.4
Applied rewrites27.4%
if -1.4e83 < a < 1.74999999999999997e-101Initial program 34.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.5%
Taylor expanded in a around 0
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6436.5
Applied rewrites36.5%
if 1.74999999999999997e-101 < a < 2.49999999999999986e118Initial program 31.2%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.0%
Taylor expanded in b around 0
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-fma.f6433.5
Applied rewrites33.5%
if 2.49999999999999986e118 < a < 1.04e161Initial program 27.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.0%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6421.0
Applied rewrites21.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lift-*.f6422.6
Applied rewrites22.6%
if 1.04e161 < a Initial program 21.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in a around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6444.8
Applied rewrites44.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* x (* j (* y0 (- (/ (* c y2) j) b))))))
(if (<= y0 -7.5e+202)
t_1
(if (<= y0 -6.4e+97)
(* -1.0 (* k (* y0 (- (* y2 y5) (* b z)))))
(if (<= y0 -1.75e-270)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 9.4e-234)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= y0 1.2e+31)
(* x (* -1.0 (* y1 (- (* a y2) (* i j)))))
t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (j * (y0 * (((c * y2) / j) - b)));
double tmp;
if (y0 <= -7.5e+202) {
tmp = t_1;
} else if (y0 <= -6.4e+97) {
tmp = -1.0 * (k * (y0 * ((y2 * y5) - (b * z))));
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 9.4e-234) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (y0 <= 1.2e+31) {
tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j))));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = x * (j * (y0 * (((c * y2) / j) - b)))
if (y0 <= (-7.5d+202)) then
tmp = t_1
else if (y0 <= (-6.4d+97)) then
tmp = (-1.0d0) * (k * (y0 * ((y2 * y5) - (b * z))))
else if (y0 <= (-1.75d-270)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 9.4d-234) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (y0 <= 1.2d+31) then
tmp = x * ((-1.0d0) * (y1 * ((a * y2) - (i * j))))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = x * (j * (y0 * (((c * y2) / j) - b)));
double tmp;
if (y0 <= -7.5e+202) {
tmp = t_1;
} else if (y0 <= -6.4e+97) {
tmp = -1.0 * (k * (y0 * ((y2 * y5) - (b * z))));
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 9.4e-234) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (y0 <= 1.2e+31) {
tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j))));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = x * (j * (y0 * (((c * y2) / j) - b))) tmp = 0 if y0 <= -7.5e+202: tmp = t_1 elif y0 <= -6.4e+97: tmp = -1.0 * (k * (y0 * ((y2 * y5) - (b * z)))) elif y0 <= -1.75e-270: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 9.4e-234: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif y0 <= 1.2e+31: tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j)))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(x * Float64(j * Float64(y0 * Float64(Float64(Float64(c * y2) / j) - b)))) tmp = 0.0 if (y0 <= -7.5e+202) tmp = t_1; elseif (y0 <= -6.4e+97) tmp = Float64(-1.0 * Float64(k * Float64(y0 * Float64(Float64(y2 * y5) - Float64(b * z))))); elseif (y0 <= -1.75e-270) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 9.4e-234) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (y0 <= 1.2e+31) tmp = Float64(x * Float64(-1.0 * Float64(y1 * Float64(Float64(a * y2) - Float64(i * j))))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = x * (j * (y0 * (((c * y2) / j) - b))); tmp = 0.0; if (y0 <= -7.5e+202) tmp = t_1; elseif (y0 <= -6.4e+97) tmp = -1.0 * (k * (y0 * ((y2 * y5) - (b * z)))); elseif (y0 <= -1.75e-270) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 9.4e-234) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (y0 <= 1.2e+31) tmp = x * (-1.0 * (y1 * ((a * y2) - (i * j)))); 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[(x * N[(j * N[(y0 * N[(N[(N[(c * y2), $MachinePrecision] / j), $MachinePrecision] - b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -7.5e+202], t$95$1, If[LessEqual[y0, -6.4e+97], N[(-1.0 * N[(k * N[(y0 * N[(N[(y2 * y5), $MachinePrecision] - N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.75e-270], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 9.4e-234], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.2e+31], N[(x * N[(-1.0 * N[(y1 * N[(N[(a * y2), $MachinePrecision] - N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \left(j \cdot \left(y0 \cdot \left(\frac{c \cdot y2}{j} - b\right)\right)\right)\\
\mathbf{if}\;y0 \leq -7.5 \cdot 10^{+202}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq -6.4 \cdot 10^{+97}:\\
\;\;\;\;-1 \cdot \left(k \cdot \left(y0 \cdot \left(y2 \cdot y5 - b \cdot z\right)\right)\right)\\
\mathbf{elif}\;y0 \leq -1.75 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 9.4 \cdot 10^{-234}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq 1.2 \cdot 10^{+31}:\\
\;\;\;\;x \cdot \left(-1 \cdot \left(y1 \cdot \left(a \cdot y2 - i \cdot j\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -7.4999999999999999e202 or 1.19999999999999991e31 < y0 Initial program 24.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6443.6
Applied rewrites43.6%
if -7.4999999999999999e202 < y0 < -6.40000000000000032e97Initial program 25.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.5%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.4
Applied rewrites39.4%
if -6.40000000000000032e97 < y0 < -1.74999999999999997e-270Initial program 33.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.5
Applied rewrites28.5%
if -1.74999999999999997e-270 < y0 < 9.4000000000000002e-234Initial program 34.5%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.4%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.6
Applied rewrites28.6%
if 9.4000000000000002e-234 < y0 < 1.19999999999999991e31Initial program 34.2%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y))))) (t_2 (- (* y3 y5) (* b x))))
(if (<= y5 -8.2e+152)
(* y0 (* j t_2))
(if (<= y5 -4e-44)
t_1
(if (<= y5 -1.15e-200)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 8e-280)
t_1
(if (<= y5 3.5e+40)
(* x (* j (- (* i y1) (* b y0))))
(if (<= y5 2.2e+126)
(* j (* y0 t_2))
(* y3 (* y5 (- (* j y0) (* a y))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = (y3 * y5) - (b * x);
double tmp;
if (y5 <= -8.2e+152) {
tmp = y0 * (j * t_2);
} else if (y5 <= -4e-44) {
tmp = t_1;
} else if (y5 <= -1.15e-200) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 8e-280) {
tmp = t_1;
} else if (y5 <= 3.5e+40) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y5 <= 2.2e+126) {
tmp = j * (y0 * t_2);
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (y4 * ((j * t) - (k * y)))
t_2 = (y3 * y5) - (b * x)
if (y5 <= (-8.2d+152)) then
tmp = y0 * (j * t_2)
else if (y5 <= (-4d-44)) then
tmp = t_1
else if (y5 <= (-1.15d-200)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y5 <= 8d-280) then
tmp = t_1
else if (y5 <= 3.5d+40) then
tmp = x * (j * ((i * y1) - (b * y0)))
else if (y5 <= 2.2d+126) then
tmp = j * (y0 * t_2)
else
tmp = y3 * (y5 * ((j * y0) - (a * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = (y3 * y5) - (b * x);
double tmp;
if (y5 <= -8.2e+152) {
tmp = y0 * (j * t_2);
} else if (y5 <= -4e-44) {
tmp = t_1;
} else if (y5 <= -1.15e-200) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 8e-280) {
tmp = t_1;
} else if (y5 <= 3.5e+40) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y5 <= 2.2e+126) {
tmp = j * (y0 * t_2);
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * ((j * t) - (k * y))) t_2 = (y3 * y5) - (b * x) tmp = 0 if y5 <= -8.2e+152: tmp = y0 * (j * t_2) elif y5 <= -4e-44: tmp = t_1 elif y5 <= -1.15e-200: tmp = a * (b * ((x * y) - (t * z))) elif y5 <= 8e-280: tmp = t_1 elif y5 <= 3.5e+40: tmp = x * (j * ((i * y1) - (b * y0))) elif y5 <= 2.2e+126: tmp = j * (y0 * t_2) else: tmp = y3 * (y5 * ((j * y0) - (a * y))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) t_2 = Float64(Float64(y3 * y5) - Float64(b * x)) tmp = 0.0 if (y5 <= -8.2e+152) tmp = Float64(y0 * Float64(j * t_2)); elseif (y5 <= -4e-44) tmp = t_1; elseif (y5 <= -1.15e-200) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 8e-280) tmp = t_1; elseif (y5 <= 3.5e+40) tmp = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y5 <= 2.2e+126) tmp = Float64(j * Float64(y0 * t_2)); else tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * ((j * t) - (k * y))); t_2 = (y3 * y5) - (b * x); tmp = 0.0; if (y5 <= -8.2e+152) tmp = y0 * (j * t_2); elseif (y5 <= -4e-44) tmp = t_1; elseif (y5 <= -1.15e-200) tmp = a * (b * ((x * y) - (t * z))); elseif (y5 <= 8e-280) tmp = t_1; elseif (y5 <= 3.5e+40) tmp = x * (j * ((i * y1) - (b * y0))); elseif (y5 <= 2.2e+126) tmp = j * (y0 * t_2); else tmp = y3 * (y5 * ((j * y0) - (a * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -8.2e+152], N[(y0 * N[(j * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -4e-44], t$95$1, If[LessEqual[y5, -1.15e-200], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8e-280], t$95$1, If[LessEqual[y5, 3.5e+40], N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.2e+126], N[(j * N[(y0 * t$95$2), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
t_2 := y3 \cdot y5 - b \cdot x\\
\mathbf{if}\;y5 \leq -8.2 \cdot 10^{+152}:\\
\;\;\;\;y0 \cdot \left(j \cdot t\_2\right)\\
\mathbf{elif}\;y5 \leq -4 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-200}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 8 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 3.5 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 2.2 \cdot 10^{+126}:\\
\;\;\;\;j \cdot \left(y0 \cdot t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\end{array}
\end{array}
if y5 < -8.1999999999999996e152Initial program 21.3%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
if -8.1999999999999996e152 < y5 < -3.99999999999999981e-44 or -1.15000000000000004e-200 < y5 < 7.9999999999999997e-280Initial program 32.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if -3.99999999999999981e-44 < y5 < -1.15000000000000004e-200Initial program 32.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6429.6
Applied rewrites29.6%
if 7.9999999999999997e-280 < y5 < 3.4999999999999999e40Initial program 35.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.1
Applied rewrites27.1%
if 3.4999999999999999e40 < y5 < 2.19999999999999999e126Initial program 29.3%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
if 2.19999999999999999e126 < y5 Initial program 24.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6445.0
Applied rewrites45.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y)))))
(t_2 (* j (* y0 (- (* y3 y5) (* b x))))))
(if (<= y5 -1.66e+154)
t_2
(if (<= y5 -4e-44)
t_1
(if (<= y5 -1.15e-200)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 8e-280)
t_1
(if (<= y5 3.5e+40)
(* x (* j (- (* i y1) (* b y0))))
(if (<= y5 2.2e+126)
t_2
(* y3 (* y5 (- (* j y0) (* a y))))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = j * (y0 * ((y3 * y5) - (b * x)));
double tmp;
if (y5 <= -1.66e+154) {
tmp = t_2;
} else if (y5 <= -4e-44) {
tmp = t_1;
} else if (y5 <= -1.15e-200) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 8e-280) {
tmp = t_1;
} else if (y5 <= 3.5e+40) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y5 <= 2.2e+126) {
tmp = t_2;
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = b * (y4 * ((j * t) - (k * y)))
t_2 = j * (y0 * ((y3 * y5) - (b * x)))
if (y5 <= (-1.66d+154)) then
tmp = t_2
else if (y5 <= (-4d-44)) then
tmp = t_1
else if (y5 <= (-1.15d-200)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y5 <= 8d-280) then
tmp = t_1
else if (y5 <= 3.5d+40) then
tmp = x * (j * ((i * y1) - (b * y0)))
else if (y5 <= 2.2d+126) then
tmp = t_2
else
tmp = y3 * (y5 * ((j * y0) - (a * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double t_2 = j * (y0 * ((y3 * y5) - (b * x)));
double tmp;
if (y5 <= -1.66e+154) {
tmp = t_2;
} else if (y5 <= -4e-44) {
tmp = t_1;
} else if (y5 <= -1.15e-200) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 8e-280) {
tmp = t_1;
} else if (y5 <= 3.5e+40) {
tmp = x * (j * ((i * y1) - (b * y0)));
} else if (y5 <= 2.2e+126) {
tmp = t_2;
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * ((j * t) - (k * y))) t_2 = j * (y0 * ((y3 * y5) - (b * x))) tmp = 0 if y5 <= -1.66e+154: tmp = t_2 elif y5 <= -4e-44: tmp = t_1 elif y5 <= -1.15e-200: tmp = a * (b * ((x * y) - (t * z))) elif y5 <= 8e-280: tmp = t_1 elif y5 <= 3.5e+40: tmp = x * (j * ((i * y1) - (b * y0))) elif y5 <= 2.2e+126: tmp = t_2 else: tmp = y3 * (y5 * ((j * y0) - (a * y))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) t_2 = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))) tmp = 0.0 if (y5 <= -1.66e+154) tmp = t_2; elseif (y5 <= -4e-44) tmp = t_1; elseif (y5 <= -1.15e-200) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 8e-280) tmp = t_1; elseif (y5 <= 3.5e+40) tmp = Float64(x * Float64(j * Float64(Float64(i * y1) - Float64(b * y0)))); elseif (y5 <= 2.2e+126) tmp = t_2; else tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * ((j * t) - (k * y))); t_2 = j * (y0 * ((y3 * y5) - (b * x))); tmp = 0.0; if (y5 <= -1.66e+154) tmp = t_2; elseif (y5 <= -4e-44) tmp = t_1; elseif (y5 <= -1.15e-200) tmp = a * (b * ((x * y) - (t * z))); elseif (y5 <= 8e-280) tmp = t_1; elseif (y5 <= 3.5e+40) tmp = x * (j * ((i * y1) - (b * y0))); elseif (y5 <= 2.2e+126) tmp = t_2; else tmp = y3 * (y5 * ((j * y0) - (a * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.66e+154], t$95$2, If[LessEqual[y5, -4e-44], t$95$1, If[LessEqual[y5, -1.15e-200], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8e-280], t$95$1, If[LessEqual[y5, 3.5e+40], N[(x * N[(j * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.2e+126], t$95$2, N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
t_2 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{if}\;y5 \leq -1.66 \cdot 10^{+154}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y5 \leq -4 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-200}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 8 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 3.5 \cdot 10^{+40}:\\
\;\;\;\;x \cdot \left(j \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 2.2 \cdot 10^{+126}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\end{array}
\end{array}
if y5 < -1.6600000000000001e154 or 3.4999999999999999e40 < y5 < 2.19999999999999999e126Initial program 24.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.7
Applied rewrites34.7%
if -1.6600000000000001e154 < y5 < -3.99999999999999981e-44 or -1.15000000000000004e-200 < y5 < 7.9999999999999997e-280Initial program 32.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if -3.99999999999999981e-44 < y5 < -1.15000000000000004e-200Initial program 32.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6429.6
Applied rewrites29.6%
if 7.9999999999999997e-280 < y5 < 3.4999999999999999e40Initial program 35.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.1
Applied rewrites27.1%
if 2.19999999999999999e126 < y5 Initial program 24.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6445.0
Applied rewrites45.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* b (* y4 (- (* j t) (* k y))))))
(if (<= y5 -8.2e+152)
(* y0 (* j (- (* y3 y5) (* b x))))
(if (<= y5 -4e-44)
t_1
(if (<= y5 -1.15e-200)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 8e-280)
t_1
(if (<= y5 1.6e+100)
(* x (* j (* b (- (/ (* i y1) b) y0))))
(* y3 (* y5 (- (* j y0) (* a y)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double tmp;
if (y5 <= -8.2e+152) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (y5 <= -4e-44) {
tmp = t_1;
} else if (y5 <= -1.15e-200) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 8e-280) {
tmp = t_1;
} else if (y5 <= 1.6e+100) {
tmp = x * (j * (b * (((i * y1) / b) - y0)));
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
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 * (y4 * ((j * t) - (k * y)))
if (y5 <= (-8.2d+152)) then
tmp = y0 * (j * ((y3 * y5) - (b * x)))
else if (y5 <= (-4d-44)) then
tmp = t_1
else if (y5 <= (-1.15d-200)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y5 <= 8d-280) then
tmp = t_1
else if (y5 <= 1.6d+100) then
tmp = x * (j * (b * (((i * y1) / b) - y0)))
else
tmp = y3 * (y5 * ((j * y0) - (a * y)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = b * (y4 * ((j * t) - (k * y)));
double tmp;
if (y5 <= -8.2e+152) {
tmp = y0 * (j * ((y3 * y5) - (b * x)));
} else if (y5 <= -4e-44) {
tmp = t_1;
} else if (y5 <= -1.15e-200) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 8e-280) {
tmp = t_1;
} else if (y5 <= 1.6e+100) {
tmp = x * (j * (b * (((i * y1) / b) - y0)));
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = b * (y4 * ((j * t) - (k * y))) tmp = 0 if y5 <= -8.2e+152: tmp = y0 * (j * ((y3 * y5) - (b * x))) elif y5 <= -4e-44: tmp = t_1 elif y5 <= -1.15e-200: tmp = a * (b * ((x * y) - (t * z))) elif y5 <= 8e-280: tmp = t_1 elif y5 <= 1.6e+100: tmp = x * (j * (b * (((i * y1) / b) - y0))) else: tmp = y3 * (y5 * ((j * y0) - (a * y))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) tmp = 0.0 if (y5 <= -8.2e+152) tmp = Float64(y0 * Float64(j * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (y5 <= -4e-44) tmp = t_1; elseif (y5 <= -1.15e-200) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 8e-280) tmp = t_1; elseif (y5 <= 1.6e+100) tmp = Float64(x * Float64(j * Float64(b * Float64(Float64(Float64(i * y1) / b) - y0)))); else tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = b * (y4 * ((j * t) - (k * y))); tmp = 0.0; if (y5 <= -8.2e+152) tmp = y0 * (j * ((y3 * y5) - (b * x))); elseif (y5 <= -4e-44) tmp = t_1; elseif (y5 <= -1.15e-200) tmp = a * (b * ((x * y) - (t * z))); elseif (y5 <= 8e-280) tmp = t_1; elseif (y5 <= 1.6e+100) tmp = x * (j * (b * (((i * y1) / b) - y0))); else tmp = y3 * (y5 * ((j * y0) - (a * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -8.2e+152], N[(y0 * N[(j * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -4e-44], t$95$1, If[LessEqual[y5, -1.15e-200], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 8e-280], t$95$1, If[LessEqual[y5, 1.6e+100], N[(x * N[(j * N[(b * N[(N[(N[(i * y1), $MachinePrecision] / b), $MachinePrecision] - y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{if}\;y5 \leq -8.2 \cdot 10^{+152}:\\
\;\;\;\;y0 \cdot \left(j \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;y5 \leq -4 \cdot 10^{-44}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.15 \cdot 10^{-200}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 8 \cdot 10^{-280}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 1.6 \cdot 10^{+100}:\\
\;\;\;\;x \cdot \left(j \cdot \left(b \cdot \left(\frac{i \cdot y1}{b} - y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\end{array}
\end{array}
if y5 < -8.1999999999999996e152Initial program 21.3%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
if -8.1999999999999996e152 < y5 < -3.99999999999999981e-44 or -1.15000000000000004e-200 < y5 < 7.9999999999999997e-280Initial program 32.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y4 around inf
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.6
Applied rewrites26.6%
if -3.99999999999999981e-44 < y5 < -1.15000000000000004e-200Initial program 32.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6429.6
Applied rewrites29.6%
if 7.9999999999999997e-280 < y5 < 1.5999999999999999e100Initial program 34.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.2
Applied rewrites27.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lift-*.f6429.4
Applied rewrites29.4%
if 1.5999999999999999e100 < y5 Initial program 25.4%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.5%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6444.0
Applied rewrites44.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -1.2e+103)
(* b (* y0 (- (* k z) (* j x))))
(if (<= y0 -1.75e-270)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 2.55e-54)
(* a (* y3 (- (* y1 z) (* y y5))))
(* j (* y0 (- (* y3 y5) (* b x))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -1.2e+103) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.55e-54) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y0 <= (-1.2d+103)) then
tmp = b * (y0 * ((k * z) - (j * x)))
else if (y0 <= (-1.75d-270)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 2.55d-54) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else
tmp = j * (y0 * ((y3 * y5) - (b * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -1.2e+103) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.55e-54) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -1.2e+103: tmp = b * (y0 * ((k * z) - (j * x))) elif y0 <= -1.75e-270: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 2.55e-54: tmp = a * (y3 * ((y1 * z) - (y * y5))) else: tmp = j * (y0 * ((y3 * y5) - (b * x))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y0 <= -1.2e+103) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); elseif (y0 <= -1.75e-270) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 2.55e-54) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y0 <= -1.2e+103) tmp = b * (y0 * ((k * z) - (j * x))); elseif (y0 <= -1.75e-270) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 2.55e-54) tmp = a * (y3 * ((y1 * z) - (y * y5))); else tmp = j * (y0 * ((y3 * y5) - (b * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -1.2e+103], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.75e-270], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.55e-54], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -1.2 \cdot 10^{+103}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{elif}\;y0 \leq -1.75 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 2.55 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y0 < -1.1999999999999999e103Initial program 24.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.2%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6446.2
Applied rewrites46.2%
if -1.1999999999999999e103 < y0 < -1.74999999999999997e-270Initial program 33.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.5
Applied rewrites28.5%
if -1.74999999999999997e-270 < y0 < 2.55000000000000005e-54Initial program 34.3%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.8
Applied rewrites27.8%
if 2.55000000000000005e-54 < y0 Initial program 26.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites43.4%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.2
Applied rewrites34.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* y0 (- (* y3 y5) (* b x))))))
(if (<= y0 -1.1e+90)
t_1
(if (<= y0 -1.75e-270)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 2.55e-54) (* a (* y3 (- (* y1 z) (* y y5)))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * ((y3 * y5) - (b * x)));
double tmp;
if (y0 <= -1.1e+90) {
tmp = t_1;
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.55e-54) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (y0 * ((y3 * y5) - (b * x)))
if (y0 <= (-1.1d+90)) then
tmp = t_1
else if (y0 <= (-1.75d-270)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 2.55d-54) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (y0 * ((y3 * y5) - (b * x)));
double tmp;
if (y0 <= -1.1e+90) {
tmp = t_1;
} else if (y0 <= -1.75e-270) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.55e-54) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (y0 * ((y3 * y5) - (b * x))) tmp = 0 if y0 <= -1.1e+90: tmp = t_1 elif y0 <= -1.75e-270: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 2.55e-54: tmp = a * (y3 * ((y1 * z) - (y * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))) tmp = 0.0 if (y0 <= -1.1e+90) tmp = t_1; elseif (y0 <= -1.75e-270) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 2.55e-54) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (y0 * ((y3 * y5) - (b * x))); tmp = 0.0; if (y0 <= -1.1e+90) tmp = t_1; elseif (y0 <= -1.75e-270) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 2.55e-54) tmp = a * (y3 * ((y1 * z) - (y * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1.1e+90], t$95$1, If[LessEqual[y0, -1.75e-270], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.55e-54], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{if}\;y0 \leq -1.1 \cdot 10^{+90}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq -1.75 \cdot 10^{-270}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 2.55 \cdot 10^{-54}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -1.09999999999999995e90 or 2.55000000000000005e-54 < y0 Initial program 25.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.4
Applied rewrites37.4%
if -1.09999999999999995e90 < y0 < -1.74999999999999997e-270Initial program 33.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6428.6
Applied rewrites28.6%
if -1.74999999999999997e-270 < y0 < 2.55000000000000005e-54Initial program 34.3%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.8
Applied rewrites27.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -8.5e+102)
(* x (* -1.0 (* b (* j y0))))
(if (<= y0 7.8e-43)
(* a (* b (- (* x y) (* t z))))
(* y3 (* y5 (- (* j y0) (* a y)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -8.5e+102) {
tmp = x * (-1.0 * (b * (j * y0)));
} else if (y0 <= 7.8e-43) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
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 (y0 <= (-8.5d+102)) then
tmp = x * ((-1.0d0) * (b * (j * y0)))
else if (y0 <= 7.8d-43) then
tmp = a * (b * ((x * y) - (t * z)))
else
tmp = y3 * (y5 * ((j * y0) - (a * y)))
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 (y0 <= -8.5e+102) {
tmp = x * (-1.0 * (b * (j * y0)));
} else if (y0 <= 7.8e-43) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -8.5e+102: tmp = x * (-1.0 * (b * (j * y0))) elif y0 <= 7.8e-43: tmp = a * (b * ((x * y) - (t * z))) else: tmp = y3 * (y5 * ((j * y0) - (a * y))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y0 <= -8.5e+102) tmp = Float64(x * Float64(-1.0 * Float64(b * Float64(j * y0)))); elseif (y0 <= 7.8e-43) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); 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 (y0 <= -8.5e+102) tmp = x * (-1.0 * (b * (j * y0))); elseif (y0 <= 7.8e-43) tmp = a * (b * ((x * y) - (t * z))); else tmp = y3 * (y5 * ((j * y0) - (a * y))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -8.5e+102], N[(x * N[(-1.0 * N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 7.8e-43], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -8.5 \cdot 10^{+102}:\\
\;\;\;\;x \cdot \left(-1 \cdot \left(b \cdot \left(j \cdot y0\right)\right)\right)\\
\mathbf{elif}\;y0 \leq 7.8 \cdot 10^{-43}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\end{array}
\end{array}
if y0 < -8.4999999999999996e102Initial program 24.4%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6438.7
Applied rewrites38.7%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6434.0
Applied rewrites34.0%
if -8.4999999999999996e102 < y0 < 7.80000000000000001e-43Initial program 33.6%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6429.0
Applied rewrites29.0%
if 7.80000000000000001e-43 < y0 Initial program 26.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6431.2
Applied rewrites31.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -2.1e+187)
(* x (* i (* j y1)))
(if (<= j 1.12e+77)
(* a (* y3 (- (* y1 z) (* y y5))))
(if (<= j 1.05e+164)
(* x (* -1.0 (* b (* j y0))))
(* y3 (* y5 (- (* j y0) (* a y))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -2.1e+187) {
tmp = x * (i * (j * y1));
} else if (j <= 1.12e+77) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (j <= 1.05e+164) {
tmp = x * (-1.0 * (b * (j * y0)));
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
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 <= (-2.1d+187)) then
tmp = x * (i * (j * y1))
else if (j <= 1.12d+77) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else if (j <= 1.05d+164) then
tmp = x * ((-1.0d0) * (b * (j * y0)))
else
tmp = y3 * (y5 * ((j * y0) - (a * y)))
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 <= -2.1e+187) {
tmp = x * (i * (j * y1));
} else if (j <= 1.12e+77) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else if (j <= 1.05e+164) {
tmp = x * (-1.0 * (b * (j * y0)));
} else {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -2.1e+187: tmp = x * (i * (j * y1)) elif j <= 1.12e+77: tmp = a * (y3 * ((y1 * z) - (y * y5))) elif j <= 1.05e+164: tmp = x * (-1.0 * (b * (j * y0))) else: tmp = y3 * (y5 * ((j * y0) - (a * y))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -2.1e+187) tmp = Float64(x * Float64(i * Float64(j * y1))); elseif (j <= 1.12e+77) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); elseif (j <= 1.05e+164) tmp = Float64(x * Float64(-1.0 * Float64(b * Float64(j * y0)))); else tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); 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 <= -2.1e+187) tmp = x * (i * (j * y1)); elseif (j <= 1.12e+77) tmp = a * (y3 * ((y1 * z) - (y * y5))); elseif (j <= 1.05e+164) tmp = x * (-1.0 * (b * (j * y0))); else tmp = y3 * (y5 * ((j * y0) - (a * y))); 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, -2.1e+187], N[(x * N[(i * N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.12e+77], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.05e+164], N[(x * N[(-1.0 * N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.1 \cdot 10^{+187}:\\
\;\;\;\;x \cdot \left(i \cdot \left(j \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+77}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{elif}\;j \leq 1.05 \cdot 10^{+164}:\\
\;\;\;\;x \cdot \left(-1 \cdot \left(b \cdot \left(j \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\end{array}
\end{array}
if j < -2.1e187Initial program 20.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6446.8
Applied rewrites46.8%
Taylor expanded in b around 0
lower-*.f64N/A
lower-*.f6435.9
Applied rewrites35.9%
if -2.1e187 < j < 1.1199999999999999e77Initial program 32.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 1.1199999999999999e77 < j < 1.04999999999999995e164Initial program 27.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6435.3
Applied rewrites35.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6424.4
Applied rewrites24.4%
if 1.04999999999999995e164 < j Initial program 23.5%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites44.0%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.2
Applied rewrites37.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= j -2.1e+187)
(* x (* i (* j y1)))
(if (<= j 1.12e+77)
(* a (* y3 (- (* y1 z) (* y y5))))
(* x (* -1.0 (* b (* j y0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -2.1e+187) {
tmp = x * (i * (j * y1));
} else if (j <= 1.12e+77) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = x * (-1.0 * (b * (j * y0)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (j <= (-2.1d+187)) then
tmp = x * (i * (j * y1))
else if (j <= 1.12d+77) then
tmp = a * (y3 * ((y1 * z) - (y * y5)))
else
tmp = x * ((-1.0d0) * (b * (j * y0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -2.1e+187) {
tmp = x * (i * (j * y1));
} else if (j <= 1.12e+77) {
tmp = a * (y3 * ((y1 * z) - (y * y5)));
} else {
tmp = x * (-1.0 * (b * (j * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -2.1e+187: tmp = x * (i * (j * y1)) elif j <= 1.12e+77: tmp = a * (y3 * ((y1 * z) - (y * y5))) else: tmp = x * (-1.0 * (b * (j * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -2.1e+187) tmp = Float64(x * Float64(i * Float64(j * y1))); elseif (j <= 1.12e+77) tmp = Float64(a * Float64(y3 * Float64(Float64(y1 * z) - Float64(y * y5)))); else tmp = Float64(x * Float64(-1.0 * Float64(b * Float64(j * y0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -2.1e+187) tmp = x * (i * (j * y1)); elseif (j <= 1.12e+77) tmp = a * (y3 * ((y1 * z) - (y * y5))); else tmp = x * (-1.0 * (b * (j * y0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -2.1e+187], N[(x * N[(i * N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 1.12e+77], N[(a * N[(y3 * N[(N[(y1 * z), $MachinePrecision] - N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-1.0 * N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -2.1 \cdot 10^{+187}:\\
\;\;\;\;x \cdot \left(i \cdot \left(j \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 1.12 \cdot 10^{+77}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z - y \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-1 \cdot \left(b \cdot \left(j \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if j < -2.1e187Initial program 20.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6446.8
Applied rewrites46.8%
Taylor expanded in b around 0
lower-*.f64N/A
lower-*.f6435.9
Applied rewrites35.9%
if -2.1e187 < j < 1.1199999999999999e77Initial program 32.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 1.1199999999999999e77 < j Initial program 25.1%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6441.3
Applied rewrites41.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6431.5
Applied rewrites31.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= j -1.05e+126) (* x (* i (* j y1))) (if (<= j 6.8e+86) (* a (* y3 (* y1 z))) (* x (* -1.0 (* b (* j y0)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -1.05e+126) {
tmp = x * (i * (j * y1));
} else if (j <= 6.8e+86) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = x * (-1.0 * (b * (j * y0)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (j <= (-1.05d+126)) then
tmp = x * (i * (j * y1))
else if (j <= 6.8d+86) then
tmp = a * (y3 * (y1 * z))
else
tmp = x * ((-1.0d0) * (b * (j * y0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (j <= -1.05e+126) {
tmp = x * (i * (j * y1));
} else if (j <= 6.8e+86) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = x * (-1.0 * (b * (j * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if j <= -1.05e+126: tmp = x * (i * (j * y1)) elif j <= 6.8e+86: tmp = a * (y3 * (y1 * z)) else: tmp = x * (-1.0 * (b * (j * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (j <= -1.05e+126) tmp = Float64(x * Float64(i * Float64(j * y1))); elseif (j <= 6.8e+86) tmp = Float64(a * Float64(y3 * Float64(y1 * z))); else tmp = Float64(x * Float64(-1.0 * Float64(b * Float64(j * y0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (j <= -1.05e+126) tmp = x * (i * (j * y1)); elseif (j <= 6.8e+86) tmp = a * (y3 * (y1 * z)); else tmp = x * (-1.0 * (b * (j * y0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[j, -1.05e+126], N[(x * N[(i * N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[j, 6.8e+86], N[(a * N[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(-1.0 * N[(b * N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;j \leq -1.05 \cdot 10^{+126}:\\
\;\;\;\;x \cdot \left(i \cdot \left(j \cdot y1\right)\right)\\
\mathbf{elif}\;j \leq 6.8 \cdot 10^{+86}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(-1 \cdot \left(b \cdot \left(j \cdot y0\right)\right)\right)\\
\end{array}
\end{array}
if j < -1.05e126Initial program 22.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.5%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6444.2
Applied rewrites44.2%
Taylor expanded in b around 0
lower-*.f64N/A
lower-*.f6433.4
Applied rewrites33.4%
if -1.05e126 < j < 6.7999999999999995e86Initial program 33.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in y around 0
lift-*.f6417.0
Applied rewrites17.0%
if 6.7999999999999995e86 < j Initial program 24.8%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6441.7
Applied rewrites41.7%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6431.9
Applied rewrites31.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y3 -1.05e+34)
(* a (* -1.0 (* y (* y3 y5))))
(if (<= y3 1.4e-130)
(* x (* a (* b y)))
(if (<= y3 4.8e+156) (* a (* y3 (* y1 z))) (* c (* y (* y3 y4)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.05e+34) {
tmp = a * (-1.0 * (y * (y3 * y5)));
} else if (y3 <= 1.4e-130) {
tmp = x * (a * (b * y));
} else if (y3 <= 4.8e+156) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = c * (y * (y3 * y4));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y3 <= (-1.05d+34)) then
tmp = a * ((-1.0d0) * (y * (y3 * y5)))
else if (y3 <= 1.4d-130) then
tmp = x * (a * (b * y))
else if (y3 <= 4.8d+156) then
tmp = a * (y3 * (y1 * z))
else
tmp = c * (y * (y3 * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y3 <= -1.05e+34) {
tmp = a * (-1.0 * (y * (y3 * y5)));
} else if (y3 <= 1.4e-130) {
tmp = x * (a * (b * y));
} else if (y3 <= 4.8e+156) {
tmp = a * (y3 * (y1 * z));
} else {
tmp = c * (y * (y3 * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y3 <= -1.05e+34: tmp = a * (-1.0 * (y * (y3 * y5))) elif y3 <= 1.4e-130: tmp = x * (a * (b * y)) elif y3 <= 4.8e+156: tmp = a * (y3 * (y1 * z)) else: tmp = c * (y * (y3 * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y3 <= -1.05e+34) tmp = Float64(a * Float64(-1.0 * Float64(y * Float64(y3 * y5)))); elseif (y3 <= 1.4e-130) tmp = Float64(x * Float64(a * Float64(b * y))); elseif (y3 <= 4.8e+156) tmp = Float64(a * Float64(y3 * Float64(y1 * z))); else tmp = Float64(c * Float64(y * Float64(y3 * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y3 <= -1.05e+34) tmp = a * (-1.0 * (y * (y3 * y5))); elseif (y3 <= 1.4e-130) tmp = x * (a * (b * y)); elseif (y3 <= 4.8e+156) tmp = a * (y3 * (y1 * z)); else tmp = c * (y * (y3 * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y3, -1.05e+34], N[(a * N[(-1.0 * N[(y * N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.4e-130], N[(x * N[(a * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+156], N[(a * N[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y3 \leq -1.05 \cdot 10^{+34}:\\
\;\;\;\;a \cdot \left(-1 \cdot \left(y \cdot \left(y3 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 1.4 \cdot 10^{-130}:\\
\;\;\;\;x \cdot \left(a \cdot \left(b \cdot y\right)\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+156}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\end{array}
\end{array}
if y3 < -1.05000000000000009e34Initial program 24.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites48.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.6
Applied rewrites37.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -1.05000000000000009e34 < y3 < 1.40000000000000008e-130Initial program 34.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.9
Applied rewrites27.9%
Taylor expanded in y around inf
lift-*.f6418.4
Applied rewrites18.4%
if 1.40000000000000008e-130 < y3 < 4.8000000000000002e156Initial program 32.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6424.4
Applied rewrites24.4%
Taylor expanded in y around 0
lift-*.f6414.0
Applied rewrites14.0%
if 4.8000000000000002e156 < y3 Initial program 21.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites58.3%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6444.0
Applied rewrites44.0%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6433.1
Applied rewrites33.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* y (* y3 y4)))))
(if (<= y3 -6.8e+106)
t_1
(if (<= y3 1.4e-130)
(* x (* a (* b y)))
(if (<= y3 4.8e+156) (* a (* y3 (* y1 z))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (y * (y3 * y4));
double tmp;
if (y3 <= -6.8e+106) {
tmp = t_1;
} else if (y3 <= 1.4e-130) {
tmp = x * (a * (b * y));
} else if (y3 <= 4.8e+156) {
tmp = a * (y3 * (y1 * 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 = c * (y * (y3 * y4))
if (y3 <= (-6.8d+106)) then
tmp = t_1
else if (y3 <= 1.4d-130) then
tmp = x * (a * (b * y))
else if (y3 <= 4.8d+156) then
tmp = a * (y3 * (y1 * 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 = c * (y * (y3 * y4));
double tmp;
if (y3 <= -6.8e+106) {
tmp = t_1;
} else if (y3 <= 1.4e-130) {
tmp = x * (a * (b * y));
} else if (y3 <= 4.8e+156) {
tmp = a * (y3 * (y1 * 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 = c * (y * (y3 * y4)) tmp = 0 if y3 <= -6.8e+106: tmp = t_1 elif y3 <= 1.4e-130: tmp = x * (a * (b * y)) elif y3 <= 4.8e+156: tmp = a * (y3 * (y1 * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(y * Float64(y3 * y4))) tmp = 0.0 if (y3 <= -6.8e+106) tmp = t_1; elseif (y3 <= 1.4e-130) tmp = Float64(x * Float64(a * Float64(b * y))); elseif (y3 <= 4.8e+156) tmp = Float64(a * Float64(y3 * Float64(y1 * 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 = c * (y * (y3 * y4)); tmp = 0.0; if (y3 <= -6.8e+106) tmp = t_1; elseif (y3 <= 1.4e-130) tmp = x * (a * (b * y)); elseif (y3 <= 4.8e+156) tmp = a * (y3 * (y1 * 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[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -6.8e+106], t$95$1, If[LessEqual[y3, 1.4e-130], N[(x * N[(a * N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+156], N[(a * N[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{if}\;y3 \leq -6.8 \cdot 10^{+106}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 1.4 \cdot 10^{-130}:\\
\;\;\;\;x \cdot \left(a \cdot \left(b \cdot y\right)\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+156}:\\
\;\;\;\;a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -6.79999999999999989e106 or 4.8000000000000002e156 < y3 Initial program 21.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites54.4%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6441.9
Applied rewrites41.9%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6431.1
Applied rewrites31.1%
if -6.79999999999999989e106 < y3 < 1.40000000000000008e-130Initial program 34.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.7
Applied rewrites27.7%
Taylor expanded in y around inf
lift-*.f6418.3
Applied rewrites18.3%
if 1.40000000000000008e-130 < y3 < 4.8000000000000002e156Initial program 32.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6424.4
Applied rewrites24.4%
Taylor expanded in y around 0
lift-*.f6414.0
Applied rewrites14.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* a (* y3 (* y1 z))))) (if (<= z -1.05e+109) t_1 (if (<= z 2.6e+43) (* x (* i (* j y1))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y3 * (y1 * z));
double tmp;
if (z <= -1.05e+109) {
tmp = t_1;
} else if (z <= 2.6e+43) {
tmp = x * (i * (j * y1));
} 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 * (y3 * (y1 * z))
if (z <= (-1.05d+109)) then
tmp = t_1
else if (z <= 2.6d+43) then
tmp = x * (i * (j * y1))
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 * (y3 * (y1 * z));
double tmp;
if (z <= -1.05e+109) {
tmp = t_1;
} else if (z <= 2.6e+43) {
tmp = x * (i * (j * y1));
} 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 * (y3 * (y1 * z)) tmp = 0 if z <= -1.05e+109: tmp = t_1 elif z <= 2.6e+43: tmp = x * (i * (j * y1)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y3 * Float64(y1 * z))) tmp = 0.0 if (z <= -1.05e+109) tmp = t_1; elseif (z <= 2.6e+43) tmp = Float64(x * Float64(i * Float64(j * y1))); 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 * (y3 * (y1 * z)); tmp = 0.0; if (z <= -1.05e+109) tmp = t_1; elseif (z <= 2.6e+43) tmp = x * (i * (j * y1)); 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[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -1.05e+109], t$95$1, If[LessEqual[z, 2.6e+43], N[(x * N[(i * N[(j * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{if}\;z \leq -1.05 \cdot 10^{+109}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.6 \cdot 10^{+43}:\\
\;\;\;\;x \cdot \left(i \cdot \left(j \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.0500000000000001e109 or 2.60000000000000021e43 < z Initial program 24.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.1
Applied rewrites34.1%
Taylor expanded in y around 0
lift-*.f6429.6
Applied rewrites29.6%
if -1.0500000000000001e109 < z < 2.60000000000000021e43Initial program 33.7%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.9
Applied rewrites27.9%
Taylor expanded in b around 0
lower-*.f64N/A
lower-*.f6417.6
Applied rewrites17.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* a (* y3 (* y1 z))))) (if (<= z -4.2e+60) t_1 (if (<= z 1.45e-100) (* y (* y3 (* 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 = a * (y3 * (y1 * z));
double tmp;
if (z <= -4.2e+60) {
tmp = t_1;
} else if (z <= 1.45e-100) {
tmp = y * (y3 * (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 = a * (y3 * (y1 * z))
if (z <= (-4.2d+60)) then
tmp = t_1
else if (z <= 1.45d-100) then
tmp = y * (y3 * (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 = a * (y3 * (y1 * z));
double tmp;
if (z <= -4.2e+60) {
tmp = t_1;
} else if (z <= 1.45e-100) {
tmp = y * (y3 * (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 = a * (y3 * (y1 * z)) tmp = 0 if z <= -4.2e+60: tmp = t_1 elif z <= 1.45e-100: tmp = y * (y3 * (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(a * Float64(y3 * Float64(y1 * z))) tmp = 0.0 if (z <= -4.2e+60) tmp = t_1; elseif (z <= 1.45e-100) tmp = Float64(y * Float64(y3 * 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 = a * (y3 * (y1 * z)); tmp = 0.0; if (z <= -4.2e+60) tmp = t_1; elseif (z <= 1.45e-100) tmp = y * (y3 * (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[(a * N[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -4.2e+60], t$95$1, If[LessEqual[z, 1.45e-100], N[(y * N[(y3 * N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{if}\;z \leq -4.2 \cdot 10^{+60}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.45 \cdot 10^{-100}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -4.2000000000000002e60 or 1.44999999999999988e-100 < z Initial program 27.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.2%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6431.1
Applied rewrites31.1%
Taylor expanded in y around 0
lift-*.f6425.0
Applied rewrites25.0%
if -4.2000000000000002e60 < z < 1.44999999999999988e-100Initial program 33.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.6
Applied rewrites27.6%
Taylor expanded in a around 0
lift-*.f6417.6
Applied rewrites17.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* a (* y3 (* y1 z))))) (if (<= y1 -2.45e-17) t_1 (if (<= y1 1.36e+53) (* c (* y (* y3 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 * (y3 * (y1 * z));
double tmp;
if (y1 <= -2.45e-17) {
tmp = t_1;
} else if (y1 <= 1.36e+53) {
tmp = c * (y * (y3 * 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 * (y3 * (y1 * z))
if (y1 <= (-2.45d-17)) then
tmp = t_1
else if (y1 <= 1.36d+53) then
tmp = c * (y * (y3 * 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 * (y3 * (y1 * z));
double tmp;
if (y1 <= -2.45e-17) {
tmp = t_1;
} else if (y1 <= 1.36e+53) {
tmp = c * (y * (y3 * 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 * (y3 * (y1 * z)) tmp = 0 if y1 <= -2.45e-17: tmp = t_1 elif y1 <= 1.36e+53: tmp = c * (y * (y3 * 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(y3 * Float64(y1 * z))) tmp = 0.0 if (y1 <= -2.45e-17) tmp = t_1; elseif (y1 <= 1.36e+53) tmp = Float64(c * Float64(y * Float64(y3 * 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 * (y3 * (y1 * z)); tmp = 0.0; if (y1 <= -2.45e-17) tmp = t_1; elseif (y1 <= 1.36e+53) tmp = c * (y * (y3 * 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[(y3 * N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -2.45e-17], t$95$1, If[LessEqual[y1, 1.36e+53], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y3 \cdot \left(y1 \cdot z\right)\right)\\
\mathbf{if}\;y1 \leq -2.45 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq 1.36 \cdot 10^{+53}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -2.45000000000000006e-17 or 1.36e53 < y1 Initial program 25.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.5
Applied rewrites32.5%
Taylor expanded in y around 0
lift-*.f6426.9
Applied rewrites26.9%
if -2.45000000000000006e-17 < y1 < 1.36e53Initial program 34.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f64N/A
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 (let* ((t_1 (* a (* y1 (* y3 z))))) (if (<= y1 -2.45e-17) t_1 (if (<= y1 1.36e+53) (* c (* y (* y3 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 * (y1 * (y3 * z));
double tmp;
if (y1 <= -2.45e-17) {
tmp = t_1;
} else if (y1 <= 1.36e+53) {
tmp = c * (y * (y3 * 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 * (y1 * (y3 * z))
if (y1 <= (-2.45d-17)) then
tmp = t_1
else if (y1 <= 1.36d+53) then
tmp = c * (y * (y3 * 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 * (y1 * (y3 * z));
double tmp;
if (y1 <= -2.45e-17) {
tmp = t_1;
} else if (y1 <= 1.36e+53) {
tmp = c * (y * (y3 * 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 * (y1 * (y3 * z)) tmp = 0 if y1 <= -2.45e-17: tmp = t_1 elif y1 <= 1.36e+53: tmp = c * (y * (y3 * 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(y1 * Float64(y3 * z))) tmp = 0.0 if (y1 <= -2.45e-17) tmp = t_1; elseif (y1 <= 1.36e+53) tmp = Float64(c * Float64(y * Float64(y3 * 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 * (y1 * (y3 * z)); tmp = 0.0; if (y1 <= -2.45e-17) tmp = t_1; elseif (y1 <= 1.36e+53) tmp = c * (y * (y3 * 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[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -2.45e-17], t$95$1, If[LessEqual[y1, 1.36e+53], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{if}\;y1 \leq -2.45 \cdot 10^{-17}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq 1.36 \cdot 10^{+53}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y1 < -2.45000000000000006e-17 or 1.36e53 < y1 Initial program 25.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.5
Applied rewrites32.5%
Taylor expanded in y around 0
lower-*.f64N/A
lower-*.f6424.1
Applied rewrites24.1%
if -2.45000000000000006e-17 < y1 < 1.36e53Initial program 34.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f64N/A
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 (* c (* y (* y3 y4))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (y * (y3 * y4));
}
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 = c * (y * (y3 * y4))
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 c * (y * (y3 * y4));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return c * (y * (y3 * y4))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(c * Float64(y * Float64(y3 * y4))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = c * (y * (y3 * y4)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)
\end{array}
Initial program 30.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.6%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.3
Applied rewrites26.3%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
herbie shell --seed 2025110
(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)))))