
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
Herbie found 37 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* j t) (* k y)))
(t_2 (- (* x y) (* t z)))
(t_3 (- (* j x) (* k z)))
(t_4 (* b (- (fma a t_2 (* y4 t_1)) (* y0 t_3)))))
(if (<= b -2.15e+29)
t_4
(if (<= b -2.1e-136)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(if (<= b -4.2e-255)
(*
-1.0
(*
y5
(-
(fma i t_1 (* y0 (- (* k y2) (* j y3))))
(* a (- (* t y2) (* y y3))))))
(if (<= b 1.25e-244)
(* j (* -1.0 (* y1 (- (* y3 y4) (* i x)))))
(if (<= b 8.2e-107)
(* -1.0 (* i (- (fma c t_2 (* y5 t_1)) (* y1 t_3))))
(if (<= b 2.6e+76)
(* y2 (* t (* y4 (- (/ (* a y5) y4) c))))
t_4))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (j * t) - (k * y);
double t_2 = (x * y) - (t * z);
double t_3 = (j * x) - (k * z);
double t_4 = b * (fma(a, t_2, (y4 * t_1)) - (y0 * t_3));
double tmp;
if (b <= -2.15e+29) {
tmp = t_4;
} else if (b <= -2.1e-136) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else if (b <= -4.2e-255) {
tmp = -1.0 * (y5 * (fma(i, t_1, (y0 * ((k * y2) - (j * y3)))) - (a * ((t * y2) - (y * y3)))));
} else if (b <= 1.25e-244) {
tmp = j * (-1.0 * (y1 * ((y3 * y4) - (i * x))));
} else if (b <= 8.2e-107) {
tmp = -1.0 * (i * (fma(c, t_2, (y5 * t_1)) - (y1 * t_3)));
} else if (b <= 2.6e+76) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} else {
tmp = t_4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(j * t) - Float64(k * y)) t_2 = Float64(Float64(x * y) - Float64(t * z)) t_3 = Float64(Float64(j * x) - Float64(k * z)) t_4 = Float64(b * Float64(fma(a, t_2, Float64(y4 * t_1)) - Float64(y0 * t_3))) tmp = 0.0 if (b <= -2.15e+29) tmp = t_4; elseif (b <= -2.1e-136) tmp = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); elseif (b <= -4.2e-255) tmp = 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)))))); elseif (b <= 1.25e-244) tmp = Float64(j * Float64(-1.0 * Float64(y1 * Float64(Float64(y3 * y4) - Float64(i * x))))); elseif (b <= 8.2e-107) tmp = Float64(-1.0 * Float64(i * Float64(fma(c, t_2, Float64(y5 * t_1)) - Float64(y1 * t_3)))); elseif (b <= 2.6e+76) tmp = Float64(y2 * Float64(t * Float64(y4 * Float64(Float64(Float64(a * y5) / y4) - c)))); else tmp = t_4; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(b * N[(N[(a * t$95$2 + N[(y4 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -2.15e+29], t$95$4, If[LessEqual[b, -2.1e-136], N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.2e-255], 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[b, 1.25e-244], N[(j * N[(-1.0 * N[(y1 * N[(N[(y3 * y4), $MachinePrecision] - N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e-107], N[(-1.0 * N[(i * N[(N[(c * t$95$2 + N[(y5 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+76], N[(y2 * N[(t * N[(y4 * N[(N[(N[(a * y5), $MachinePrecision] / y4), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]]]
\begin{array}{l}
t_1 := j \cdot t - k \cdot y\\
t_2 := x \cdot y - t \cdot z\\
t_3 := j \cdot x - k \cdot z\\
t_4 := b \cdot \left(\mathsf{fma}\left(a, t\_2, y4 \cdot t\_1\right) - y0 \cdot t\_3\right)\\
\mathbf{if}\;b \leq -2.15 \cdot 10^{+29}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;b \leq -2.1 \cdot 10^{-136}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq -4.2 \cdot 10^{-255}:\\
\;\;\;\;-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{elif}\;b \leq 1.25 \cdot 10^{-244}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{-107}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(\mathsf{fma}\left(c, t\_2, y5 \cdot t\_1\right) - y1 \cdot t\_3\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+76}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(y4 \cdot \left(\frac{a \cdot y5}{y4} - c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
if b < -2.1500000000000001e29 or 2.5999999999999999e76 < b Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
if -2.1500000000000001e29 < b < -2.0999999999999999e-136Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if -2.0999999999999999e-136 < b < -4.1999999999999999e-255Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
if -4.1999999999999999e-255 < b < 1.24999999999999999e-244Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if 1.24999999999999999e-244 < b < 8.1999999999999998e-107Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if 8.1999999999999998e-107 < b < 2.5999999999999999e76Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y4 around inf
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
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3 (- (* a b) (* c i)))
(t_4 (- (* b y4) (* i y5)))
(t_5
(*
k
(-
(fma -1.0 (* y t_4) (* y2 t_2))
(* -1.0 (* z (- (* b y0) (* i y1)))))))
(t_6 (- (* c y4) (* a y5))))
(if (<= k -1.2e+154)
t_5
(if (<= k -1.6e-154)
(* t (- (fma -1.0 (* z t_3) (* j t_4)) (* y2 t_6)))
(if (<= k -4.3e-184)
(* b (* x (- (* a y) (* j y0))))
(if (<= k 9.2e-146)
(* y2 (- (fma k t_2 (* x t_1)) (* t t_6)))
(if (<= k 3.2e+123) (* -1.0 (* z (fma t t_3 (* y3 t_1)))) 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 = (c * y0) - (a * y1);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = (a * b) - (c * i);
double t_4 = (b * y4) - (i * y5);
double t_5 = k * (fma(-1.0, (y * t_4), (y2 * t_2)) - (-1.0 * (z * ((b * y0) - (i * y1)))));
double t_6 = (c * y4) - (a * y5);
double tmp;
if (k <= -1.2e+154) {
tmp = t_5;
} else if (k <= -1.6e-154) {
tmp = t * (fma(-1.0, (z * t_3), (j * t_4)) - (y2 * t_6));
} else if (k <= -4.3e-184) {
tmp = b * (x * ((a * y) - (j * y0)));
} else if (k <= 9.2e-146) {
tmp = y2 * (fma(k, t_2, (x * t_1)) - (t * t_6));
} else if (k <= 3.2e+123) {
tmp = -1.0 * (z * fma(t, t_3, (y3 * t_1)));
} 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(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(Float64(a * b) - Float64(c * i)) t_4 = Float64(Float64(b * y4) - Float64(i * y5)) t_5 = Float64(k * Float64(fma(-1.0, Float64(y * t_4), Float64(y2 * t_2)) - Float64(-1.0 * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))))) t_6 = Float64(Float64(c * y4) - Float64(a * y5)) tmp = 0.0 if (k <= -1.2e+154) tmp = t_5; elseif (k <= -1.6e-154) tmp = Float64(t * Float64(fma(-1.0, Float64(z * t_3), Float64(j * t_4)) - Float64(y2 * t_6))); elseif (k <= -4.3e-184) tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0)))); elseif (k <= 9.2e-146) tmp = Float64(y2 * Float64(fma(k, t_2, Float64(x * t_1)) - Float64(t * t_6))); elseif (k <= 3.2e+123) tmp = Float64(-1.0 * Float64(z * fma(t, t_3, Float64(y3 * t_1)))); 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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(k * N[(N[(-1.0 * N[(y * t$95$4), $MachinePrecision] + N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1.2e+154], t$95$5, If[LessEqual[k, -1.6e-154], N[(t * N[(N[(-1.0 * N[(z * t$95$3), $MachinePrecision] + N[(j * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(y2 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, -4.3e-184], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 9.2e-146], N[(y2 * N[(N[(k * t$95$2 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 3.2e+123], N[(-1.0 * N[(z * N[(t * t$95$3 + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]]
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := a \cdot b - c \cdot i\\
t_4 := b \cdot y4 - i \cdot y5\\
t_5 := k \cdot \left(\mathsf{fma}\left(-1, y \cdot t\_4, y2 \cdot t\_2\right) - -1 \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)\\
t_6 := c \cdot y4 - a \cdot y5\\
\mathbf{if}\;k \leq -1.2 \cdot 10^{+154}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;k \leq -1.6 \cdot 10^{-154}:\\
\;\;\;\;t \cdot \left(\mathsf{fma}\left(-1, z \cdot t\_3, j \cdot t\_4\right) - y2 \cdot t\_6\right)\\
\mathbf{elif}\;k \leq -4.3 \cdot 10^{-184}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
\mathbf{elif}\;k \leq 9.2 \cdot 10^{-146}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_2, x \cdot t\_1\right) - t \cdot t\_6\right)\\
\mathbf{elif}\;k \leq 3.2 \cdot 10^{+123}:\\
\;\;\;\;-1 \cdot \left(z \cdot \mathsf{fma}\left(t, t\_3, y3 \cdot t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
if k < -1.20000000000000007e154 or 3.20000000000000005e123 < k Initial program 29.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
if -1.20000000000000007e154 < k < -1.60000000000000002e-154Initial program 29.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
if -1.60000000000000002e-154 < k < -4.30000000000000007e-184Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if -4.30000000000000007e-184 < k < 9.2000000000000003e-146Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if 9.2000000000000003e-146 < k < 3.20000000000000005e123Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around 0
lower-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.0
Applied rewrites35.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))
(if (<= t_1 INFINITY)
t_1
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(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))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(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]]]
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;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)\\
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 29.9%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z)))))))
(if (<= b -8e+22)
t_2
(if (<= b -5.5e-60)
(* -1.0 (* y3 (* z t_1)))
(if (<= b -3.9e-179)
(*
x
(-
(fma y (- (* a b) (* c i)) (* y2 t_1))
(* j (- (* b y0) (* i y1)))))
(if (<= b -5.3e-272)
(* y0 (* y2 (fma -1.0 (* k y5) (* c x))))
(if (<= b 2.6e+76)
(* y2 (* t (* y4 (- (/ (* a y5) y4) c))))
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 = (c * y0) - (a * y1);
double t_2 = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
double tmp;
if (b <= -8e+22) {
tmp = t_2;
} else if (b <= -5.5e-60) {
tmp = -1.0 * (y3 * (z * t_1));
} else if (b <= -3.9e-179) {
tmp = x * (fma(y, ((a * b) - (c * i)), (y2 * t_1)) - (j * ((b * y0) - (i * y1))));
} else if (b <= -5.3e-272) {
tmp = y0 * (y2 * fma(-1.0, (k * y5), (c * x)));
} else if (b <= 2.6e+76) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} 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(c * y0) - Float64(a * y1)) t_2 = 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 <= -8e+22) tmp = t_2; elseif (b <= -5.5e-60) tmp = Float64(-1.0 * Float64(y3 * Float64(z * t_1))); elseif (b <= -3.9e-179) tmp = Float64(x * Float64(fma(y, Float64(Float64(a * b) - Float64(c * i)), Float64(y2 * t_1)) - Float64(j * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (b <= -5.3e-272) tmp = Float64(y0 * Float64(y2 * fma(-1.0, Float64(k * y5), Float64(c * x)))); elseif (b <= 2.6e+76) tmp = Float64(y2 * Float64(t * Float64(y4 * Float64(Float64(Float64(a * y5) / y4) - c)))); 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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = 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, -8e+22], t$95$2, If[LessEqual[b, -5.5e-60], N[(-1.0 * N[(y3 * N[(z * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -3.9e-179], N[(x * N[(N[(y * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(j * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -5.3e-272], N[(y0 * N[(y2 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+76], N[(y2 * N[(t * N[(y4 * N[(N[(N[(a * y5), $MachinePrecision] / y4), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$2]]]]]]]
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := 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 -8 \cdot 10^{+22}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;b \leq -5.5 \cdot 10^{-60}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(z \cdot t\_1\right)\right)\\
\mathbf{elif}\;b \leq -3.9 \cdot 10^{-179}:\\
\;\;\;\;x \cdot \left(\mathsf{fma}\left(y, a \cdot b - c \cdot i, y2 \cdot t\_1\right) - j \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;b \leq -5.3 \cdot 10^{-272}:\\
\;\;\;\;y0 \cdot \left(y2 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+76}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(y4 \cdot \left(\frac{a \cdot y5}{y4} - c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_2\\
\end{array}
if b < -8e22 or 2.5999999999999999e76 < b Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
if -8e22 < b < -5.4999999999999997e-60Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -5.4999999999999997e-60 < b < -3.9000000000000003e-179Initial program 29.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if -3.9000000000000003e-179 < b < -5.3e-272Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if -5.3e-272 < b < 2.5999999999999999e76Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y4 around inf
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
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x t_1))
(* t (- (* c y4) (* a y5)))))))
(if (<= y2 -1.3e+56)
t_2
(if (<= y2 -5.5e-108)
(*
-1.0
(*
z
(-
(fma t (- (* a b) (* c i)) (* y3 t_1))
(* k (- (* b y0) (* i y1))))))
(if (<= y2 1.95e+17)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* 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 = (c * y0) - (a * y1);
double t_2 = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_1)) - (t * ((c * y4) - (a * y5))));
double tmp;
if (y2 <= -1.3e+56) {
tmp = t_2;
} else if (y2 <= -5.5e-108) {
tmp = -1.0 * (z * (fma(t, ((a * b) - (c * i)), (y3 * t_1)) - (k * ((b * y0) - (i * y1)))));
} else if (y2 <= 1.95e+17) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (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(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_1)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))) tmp = 0.0 if (y2 <= -1.3e+56) tmp = t_2; elseif (y2 <= -5.5e-108) tmp = Float64(-1.0 * Float64(z * Float64(fma(t, Float64(Float64(a * b) - Float64(c * i)), Float64(y3 * t_1)) - Float64(k * Float64(Float64(b * y0) - Float64(i * y1)))))); elseif (y2 <= 1.95e+17) tmp = 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))))); 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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -1.3e+56], t$95$2, If[LessEqual[y2, -5.5e-108], N[(-1.0 * N[(z * N[(N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(k * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.95e+17], 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], t$95$2]]]]]
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -1.3 \cdot 10^{+56}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -5.5 \cdot 10^{-108}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(\mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot t\_1\right) - k \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\right)\\
\mathbf{elif}\;y2 \leq 1.95 \cdot 10^{+17}:\\
\;\;\;\;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{else}:\\
\;\;\;\;t\_2\\
\end{array}
if y2 < -1.30000000000000005e56 or 1.95e17 < y2 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if -1.30000000000000005e56 < y2 < -5.50000000000000031e-108Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if -5.50000000000000031e-108 < y2 < 1.95e17Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (* -1.0 (* z (fma t (- (* a b) (* c i)) (* y3 t_1))))))
(if (<= z -9.5e+89)
t_2
(if (<= z -1e-6)
(* i (* t (fma -1.0 (* j y5) (* c z))))
(if (<= z -1.06e-254)
(* j (- (* -1.0 (* y1 (* y3 y4))) (* x (- (* b y0) (* i y1)))))
(if (<= z 2.25e-91)
(* x (* y2 t_1))
(if (<= z 0.0016)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 1.7e+231)
t_2
(if (<= z 1.9e+282)
(* y2 (* t (* y4 (- (/ (* a y5) y4) c))))
(* t (* c (- (* i z) (* y2 y4)))))))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = -1.0 * (z * fma(t, ((a * b) - (c * i)), (y3 * t_1)));
double tmp;
if (z <= -9.5e+89) {
tmp = t_2;
} else if (z <= -1e-6) {
tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
} else if (z <= -1.06e-254) {
tmp = j * ((-1.0 * (y1 * (y3 * y4))) - (x * ((b * y0) - (i * y1))));
} else if (z <= 2.25e-91) {
tmp = x * (y2 * t_1);
} else if (z <= 0.0016) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1.7e+231) {
tmp = t_2;
} else if (z <= 1.9e+282) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} else {
tmp = t * (c * ((i * z) - (y2 * y4)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(-1.0 * Float64(z * fma(t, Float64(Float64(a * b) - Float64(c * i)), Float64(y3 * t_1)))) tmp = 0.0 if (z <= -9.5e+89) tmp = t_2; elseif (z <= -1e-6) tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))); elseif (z <= -1.06e-254) tmp = Float64(j * Float64(Float64(-1.0 * Float64(y1 * Float64(y3 * y4))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))); elseif (z <= 2.25e-91) tmp = Float64(x * Float64(y2 * t_1)); elseif (z <= 0.0016) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 1.7e+231) tmp = t_2; elseif (z <= 1.9e+282) tmp = Float64(y2 * Float64(t * Float64(y4 * Float64(Float64(Float64(a * y5) / y4) - c)))); else tmp = Float64(t * Float64(c * Float64(Float64(i * z) - Float64(y2 * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -9.5e+89], t$95$2, If[LessEqual[z, -1e-6], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.06e-254], N[(j * N[(N[(-1.0 * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e-91], N[(x * N[(y2 * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.0016], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.7e+231], t$95$2, If[LessEqual[z, 1.9e+282], N[(y2 * N[(t * N[(y4 * N[(N[(N[(a * y5), $MachinePrecision] / y4), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := -1 \cdot \left(z \cdot \mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot t\_1\right)\right)\\
\mathbf{if}\;z \leq -9.5 \cdot 10^{+89}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq -1 \cdot 10^{-6}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -1.06 \cdot 10^{-254}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-91}:\\
\;\;\;\;x \cdot \left(y2 \cdot t\_1\right)\\
\mathbf{elif}\;z \leq 0.0016:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 1.7 \cdot 10^{+231}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+282}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(y4 \cdot \left(\frac{a \cdot y5}{y4} - c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot \left(i \cdot z - y2 \cdot y4\right)\right)\\
\end{array}
if z < -9.5000000000000003e89 or 0.00160000000000000008 < z < 1.7e231Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around 0
lower-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.0
Applied rewrites35.0%
if -9.5000000000000003e89 < z < -9.99999999999999955e-7Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if -9.99999999999999955e-7 < z < -1.0600000000000001e-254Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6432.5
Applied rewrites32.5%
if -1.0600000000000001e-254 < z < 2.24999999999999988e-91Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 2.24999999999999988e-91 < z < 0.00160000000000000008Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 1.7e231 < z < 1.9e282Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6427.8
Applied rewrites27.8%
if 1.9e282 < z Initial program 29.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x t_1))
(* t (- (* c y4) (* a y5)))))))
(if (<= y2 -2.2e+32)
t_2
(if (<= y2 -7e-109)
(* -1.0 (* z (fma t (- (* a b) (* c i)) (* y3 t_1))))
(if (<= y2 1.95e+17)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* 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 = (c * y0) - (a * y1);
double t_2 = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * t_1)) - (t * ((c * y4) - (a * y5))));
double tmp;
if (y2 <= -2.2e+32) {
tmp = t_2;
} else if (y2 <= -7e-109) {
tmp = -1.0 * (z * fma(t, ((a * b) - (c * i)), (y3 * t_1)));
} else if (y2 <= 1.95e+17) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (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(c * y0) - Float64(a * y1)) t_2 = Float64(y2 * Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * t_1)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))) tmp = 0.0 if (y2 <= -2.2e+32) tmp = t_2; elseif (y2 <= -7e-109) tmp = Float64(-1.0 * Float64(z * fma(t, Float64(Float64(a * b) - Float64(c * i)), Float64(y3 * t_1)))); elseif (y2 <= 1.95e+17) tmp = 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))))); 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[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y2 * N[(N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -2.2e+32], t$95$2, If[LessEqual[y2, -7e-109], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y3 * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.95e+17], 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], t$95$2]]]]]
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y2 \cdot \left(\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot t\_1\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{if}\;y2 \leq -2.2 \cdot 10^{+32}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y2 \leq -7 \cdot 10^{-109}:\\
\;\;\;\;-1 \cdot \left(z \cdot \mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot t\_1\right)\right)\\
\mathbf{elif}\;y2 \leq 1.95 \cdot 10^{+17}:\\
\;\;\;\;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{else}:\\
\;\;\;\;t\_2\\
\end{array}
if y2 < -2.20000000000000001e32 or 1.95e17 < y2 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if -2.20000000000000001e32 < y2 < -7e-109Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around 0
lower-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.0
Applied rewrites35.0%
if -7e-109 < y2 < 1.95e17Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
(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 -3e+24)
t_1
(if (<= b -6.2e-110)
(* -1.0 (* z (fma t (- (* a b) (* c i)) (* y3 (- (* c y0) (* a y1))))))
(if (<= b -1.7e-271)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= b 2.6e+76) (* y2 (* t (* y4 (- (/ (* a y5) y4) c)))) 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 <= -3e+24) {
tmp = t_1;
} else if (b <= -6.2e-110) {
tmp = -1.0 * (z * fma(t, ((a * b) - (c * i)), (y3 * ((c * y0) - (a * y1)))));
} else if (b <= -1.7e-271) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 2.6e+76) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} 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 <= -3e+24) tmp = t_1; elseif (b <= -6.2e-110) tmp = Float64(-1.0 * Float64(z * fma(t, Float64(Float64(a * b) - Float64(c * i)), Float64(y3 * Float64(Float64(c * y0) - Float64(a * y1)))))); elseif (b <= -1.7e-271) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (b <= 2.6e+76) tmp = Float64(y2 * Float64(t * Float64(y4 * Float64(Float64(Float64(a * y5) / y4) - c)))); 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, -3e+24], t$95$1, If[LessEqual[b, -6.2e-110], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision] + N[(y3 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-271], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+76], N[(y2 * N[(t * N[(y4 * N[(N[(N[(a * y5), $MachinePrecision] / y4), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
t_1 := b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{if}\;b \leq -3 \cdot 10^{+24}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -6.2 \cdot 10^{-110}:\\
\;\;\;\;-1 \cdot \left(z \cdot \mathsf{fma}\left(t, a \cdot b - c \cdot i, y3 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-271}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+76}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(y4 \cdot \left(\frac{a \cdot y5}{y4} - c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -2.99999999999999995e24 or 2.5999999999999999e76 < b Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
if -2.99999999999999995e24 < b < -6.20000000000000014e-110Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around 0
lower-*.f64N/A
lower-fma.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.0
Applied rewrites35.0%
if -6.20000000000000014e-110 < b < -1.7e-271Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -1.7e-271 < b < 2.5999999999999999e76Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y4 around inf
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 (<= t -1.02e+109)
(* i (* t (fma -1.0 (* j y5) (* c z))))
(if (<= t -4.6e+24)
(* a (* b (- (* x y) (* t z))))
(if (<= t -6.4e-57)
(* j (* -1.0 (* y1 (- (* y3 y4) (* i x)))))
(if (<= t -1.02e-167)
(* i (* y (fma -1.0 (* c x) (* k y5))))
(if (<= t -9.5e-272)
(* -1.0 (* y3 (* z (- (* c y0) (* a y1)))))
(if (<= t 1.6e-59)
(* y2 (* y0 (fma -1.0 (* k y5) (* c x))))
(if (<= t 1.35e+77)
(* y2 (* k (- (* y1 y4) (* y0 y5))))
(if (<= t 1.65e+153)
(* j (* x (- (* i y1) (* b y0))))
(* y2 (* t (- (* a y5) (* c 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 (t <= -1.02e+109) {
tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
} else if (t <= -4.6e+24) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (t <= -6.4e-57) {
tmp = j * (-1.0 * (y1 * ((y3 * y4) - (i * x))));
} else if (t <= -1.02e-167) {
tmp = i * (y * fma(-1.0, (c * x), (k * y5)));
} else if (t <= -9.5e-272) {
tmp = -1.0 * (y3 * (z * ((c * y0) - (a * y1))));
} else if (t <= 1.6e-59) {
tmp = y2 * (y0 * fma(-1.0, (k * y5), (c * x)));
} else if (t <= 1.35e+77) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else if (t <= 1.65e+153) {
tmp = j * (x * ((i * y1) - (b * y0)));
} else {
tmp = y2 * (t * ((a * y5) - (c * 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 (t <= -1.02e+109) tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))); elseif (t <= -4.6e+24) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (t <= -6.4e-57) tmp = Float64(j * Float64(-1.0 * Float64(y1 * Float64(Float64(y3 * y4) - Float64(i * x))))); elseif (t <= -1.02e-167) tmp = Float64(i * Float64(y * fma(-1.0, Float64(c * x), Float64(k * y5)))); elseif (t <= -9.5e-272) tmp = Float64(-1.0 * Float64(y3 * Float64(z * Float64(Float64(c * y0) - Float64(a * y1))))); elseif (t <= 1.6e-59) tmp = Float64(y2 * Float64(y0 * fma(-1.0, Float64(k * y5), Float64(c * x)))); elseif (t <= 1.35e+77) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (t <= 1.65e+153) tmp = Float64(j * Float64(x * Float64(Float64(i * y1) - Float64(b * y0)))); else tmp = Float64(y2 * Float64(t * Float64(Float64(a * y5) - Float64(c * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.02e+109], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.6e+24], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -6.4e-57], N[(j * N[(-1.0 * N[(y1 * N[(N[(y3 * y4), $MachinePrecision] - N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -1.02e-167], N[(i * N[(y * N[(-1.0 * N[(c * x), $MachinePrecision] + N[(k * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -9.5e-272], N[(-1.0 * N[(y3 * N[(z * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.6e-59], N[(y2 * N[(y0 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.35e+77], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.65e+153], N[(j * N[(x * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]
\begin{array}{l}
\mathbf{if}\;t \leq -1.02 \cdot 10^{+109}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -4.6 \cdot 10^{+24}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq -6.4 \cdot 10^{-57}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4 - i \cdot x\right)\right)\right)\\
\mathbf{elif}\;t \leq -1.02 \cdot 10^{-167}:\\
\;\;\;\;i \cdot \left(y \cdot \mathsf{fma}\left(-1, c \cdot x, k \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq -9.5 \cdot 10^{-272}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(z \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.6 \cdot 10^{-59}:\\
\;\;\;\;y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\
\mathbf{elif}\;t \leq 1.35 \cdot 10^{+77}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 1.65 \cdot 10^{+153}:\\
\;\;\;\;j \cdot \left(x \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
if t < -1.01999999999999994e109Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if -1.01999999999999994e109 < t < -4.5999999999999998e24Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -4.5999999999999998e24 < t < -6.4000000000000002e-57Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if -6.4000000000000002e-57 < t < -1.0199999999999999e-167Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.1
Applied rewrites26.1%
if -1.0199999999999999e-167 < t < -9.50000000000000024e-272Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -9.50000000000000024e-272 < t < 1.6e-59Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if 1.6e-59 < t < 1.3499999999999999e77Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
if 1.3499999999999999e77 < t < 1.64999999999999997e153Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 1.64999999999999997e153 < t Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.25e+85)
(* j (* y0 (- (* y3 y5) (* b x))))
(if (<= b -1.5e-65)
(* a (* b (- (* x y) (* t z))))
(if (<= b -1.7e-271)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= b 8.5e+75)
(* y2 (* t (* y4 (- (/ (* a y5) y4) c))))
(if (<= b 2.4e+153)
(* y2 (* k (- (* y1 y4) (* y0 y5))))
(if (<= b 1e+198)
(* -1.0 (* i (* j (- (* t y5) (* x y1)))))
(* j (* x (* -1.0 (* 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 tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -1.7e-271) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 8.5e+75) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} else if (b <= 2.4e+153) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else if (b <= 1e+198) {
tmp = -1.0 * (i * (j * ((t * y5) - (x * y1))));
} else {
tmp = j * (x * (-1.0 * (b * y0)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (b <= (-1.25d+85)) then
tmp = j * (y0 * ((y3 * y5) - (b * x)))
else if (b <= (-1.5d-65)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (b <= (-1.7d-271)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (b <= 8.5d+75) then
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)))
else if (b <= 2.4d+153) then
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)))
else if (b <= 1d+198) then
tmp = (-1.0d0) * (i * (j * ((t * y5) - (x * y1))))
else
tmp = j * (x * ((-1.0d0) * (b * y0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -1.7e-271) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 8.5e+75) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} else if (b <= 2.4e+153) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else if (b <= 1e+198) {
tmp = -1.0 * (i * (j * ((t * y5) - (x * y1))));
} else {
tmp = j * (x * (-1.0 * (b * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -1.25e+85: tmp = j * (y0 * ((y3 * y5) - (b * x))) elif b <= -1.5e-65: tmp = a * (b * ((x * y) - (t * z))) elif b <= -1.7e-271: tmp = y * (y5 * ((i * k) - (a * y3))) elif b <= 8.5e+75: tmp = y2 * (t * (y4 * (((a * y5) / y4) - c))) elif b <= 2.4e+153: tmp = y2 * (k * ((y1 * y4) - (y0 * y5))) elif b <= 1e+198: tmp = -1.0 * (i * (j * ((t * y5) - (x * y1)))) else: tmp = j * (x * (-1.0 * (b * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -1.25e+85) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (b <= -1.5e-65) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (b <= -1.7e-271) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (b <= 8.5e+75) tmp = Float64(y2 * Float64(t * Float64(y4 * Float64(Float64(Float64(a * y5) / y4) - c)))); elseif (b <= 2.4e+153) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (b <= 1e+198) tmp = Float64(-1.0 * Float64(i * Float64(j * Float64(Float64(t * y5) - Float64(x * y1))))); else tmp = Float64(j * Float64(x * Float64(-1.0 * Float64(b * y0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (b <= -1.25e+85) tmp = j * (y0 * ((y3 * y5) - (b * x))); elseif (b <= -1.5e-65) tmp = a * (b * ((x * y) - (t * z))); elseif (b <= -1.7e-271) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (b <= 8.5e+75) tmp = y2 * (t * (y4 * (((a * y5) / y4) - c))); elseif (b <= 2.4e+153) tmp = y2 * (k * ((y1 * y4) - (y0 * y5))); elseif (b <= 1e+198) tmp = -1.0 * (i * (j * ((t * y5) - (x * y1)))); else tmp = j * (x * (-1.0 * (b * y0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.25e+85], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.5e-65], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-271], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.5e+75], N[(y2 * N[(t * N[(y4 * N[(N[(N[(a * y5), $MachinePrecision] / y4), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e+153], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e+198], N[(-1.0 * N[(i * N[(j * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(x * N[(-1.0 * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+85}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-65}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-271}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 8.5 \cdot 10^{+75}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(y4 \cdot \left(\frac{a \cdot y5}{y4} - c\right)\right)\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+153}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 10^{+198}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(j \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(x \cdot \left(-1 \cdot \left(b \cdot y0\right)\right)\right)\\
\end{array}
if b < -1.25e85Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
if -1.25e85 < b < -1.49999999999999999e-65Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -1.49999999999999999e-65 < b < -1.7e-271Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -1.7e-271 < b < 8.4999999999999993e75Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6427.8
Applied rewrites27.8%
if 8.4999999999999993e75 < b < 2.39999999999999992e153Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
if 2.39999999999999992e153 < b < 1.00000000000000002e198Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 1.00000000000000002e198 < b Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.25e+85)
(* j (* y0 (- (* y3 y5) (* b x))))
(if (<= b -1.5e-65)
(* a (* b (- (* x y) (* t z))))
(if (<= b -4.4e-272)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= b 8.2e+75)
(* y2 (* t (- (* a y5) (* c y4))))
(if (<= b 2.4e+153)
(* y2 (* k (- (* y1 y4) (* y0 y5))))
(if (<= b 1e+198)
(* -1.0 (* i (* j (- (* t y5) (* x y1)))))
(* j (* x (* -1.0 (* 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 tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -4.4e-272) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 8.2e+75) {
tmp = y2 * (t * ((a * y5) - (c * y4)));
} else if (b <= 2.4e+153) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else if (b <= 1e+198) {
tmp = -1.0 * (i * (j * ((t * y5) - (x * y1))));
} else {
tmp = j * (x * (-1.0 * (b * y0)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (b <= (-1.25d+85)) then
tmp = j * (y0 * ((y3 * y5) - (b * x)))
else if (b <= (-1.5d-65)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (b <= (-4.4d-272)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (b <= 8.2d+75) then
tmp = y2 * (t * ((a * y5) - (c * y4)))
else if (b <= 2.4d+153) then
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)))
else if (b <= 1d+198) then
tmp = (-1.0d0) * (i * (j * ((t * y5) - (x * y1))))
else
tmp = j * (x * ((-1.0d0) * (b * y0)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -4.4e-272) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 8.2e+75) {
tmp = y2 * (t * ((a * y5) - (c * y4)));
} else if (b <= 2.4e+153) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else if (b <= 1e+198) {
tmp = -1.0 * (i * (j * ((t * y5) - (x * y1))));
} else {
tmp = j * (x * (-1.0 * (b * y0)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -1.25e+85: tmp = j * (y0 * ((y3 * y5) - (b * x))) elif b <= -1.5e-65: tmp = a * (b * ((x * y) - (t * z))) elif b <= -4.4e-272: tmp = y * (y5 * ((i * k) - (a * y3))) elif b <= 8.2e+75: tmp = y2 * (t * ((a * y5) - (c * y4))) elif b <= 2.4e+153: tmp = y2 * (k * ((y1 * y4) - (y0 * y5))) elif b <= 1e+198: tmp = -1.0 * (i * (j * ((t * y5) - (x * y1)))) else: tmp = j * (x * (-1.0 * (b * y0))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -1.25e+85) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (b <= -1.5e-65) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (b <= -4.4e-272) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (b <= 8.2e+75) tmp = Float64(y2 * Float64(t * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (b <= 2.4e+153) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (b <= 1e+198) tmp = Float64(-1.0 * Float64(i * Float64(j * Float64(Float64(t * y5) - Float64(x * y1))))); else tmp = Float64(j * Float64(x * Float64(-1.0 * Float64(b * y0)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (b <= -1.25e+85) tmp = j * (y0 * ((y3 * y5) - (b * x))); elseif (b <= -1.5e-65) tmp = a * (b * ((x * y) - (t * z))); elseif (b <= -4.4e-272) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (b <= 8.2e+75) tmp = y2 * (t * ((a * y5) - (c * y4))); elseif (b <= 2.4e+153) tmp = y2 * (k * ((y1 * y4) - (y0 * y5))); elseif (b <= 1e+198) tmp = -1.0 * (i * (j * ((t * y5) - (x * y1)))); else tmp = j * (x * (-1.0 * (b * y0))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.25e+85], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.5e-65], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -4.4e-272], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+75], N[(y2 * N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.4e+153], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e+198], N[(-1.0 * N[(i * N[(j * N[(N[(t * y5), $MachinePrecision] - N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(x * N[(-1.0 * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+85}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-65}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-272}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+75}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 2.4 \cdot 10^{+153}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 10^{+198}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(j \cdot \left(t \cdot y5 - x \cdot y1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(x \cdot \left(-1 \cdot \left(b \cdot y0\right)\right)\right)\\
\end{array}
if b < -1.25e85Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
if -1.25e85 < b < -1.49999999999999999e-65Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -1.49999999999999999e-65 < b < -4.39999999999999976e-272Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -4.39999999999999976e-272 < b < 8.1999999999999997e75Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
if 8.1999999999999997e75 < b < 2.39999999999999992e153Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
if 2.39999999999999992e153 < b < 1.00000000000000002e198Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 1.00000000000000002e198 < b Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -8.2e+95)
(* a (* b (- (* x y) (* t z))))
(if (<= z -1.5e-227)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= z 2.25e-91)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= z 1.16e-9)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 1.55e+158)
(* b (* x (- (* a y) (* j y0))))
(if (<= z 8.2e+212)
(* i (* y1 (- (* j x) (* k z))))
(* t (* c (- (* i z) (* y2 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 (z <= -8.2e+95) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (z <= -1.5e-227) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.25e-91) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (z <= 1.16e-9) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1.55e+158) {
tmp = b * (x * ((a * y) - (j * y0)));
} else if (z <= 8.2e+212) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = t * (c * ((i * z) - (y2 * 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 (z <= (-8.2d+95)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (z <= (-1.5d-227)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (z <= 2.25d-91) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (z <= 1.16d-9) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (z <= 1.55d+158) then
tmp = b * (x * ((a * y) - (j * y0)))
else if (z <= 8.2d+212) then
tmp = i * (y1 * ((j * x) - (k * z)))
else
tmp = t * (c * ((i * z) - (y2 * 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 (z <= -8.2e+95) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (z <= -1.5e-227) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.25e-91) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (z <= 1.16e-9) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1.55e+158) {
tmp = b * (x * ((a * y) - (j * y0)));
} else if (z <= 8.2e+212) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = t * (c * ((i * z) - (y2 * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -8.2e+95: tmp = a * (b * ((x * y) - (t * z))) elif z <= -1.5e-227: tmp = y * (y5 * ((i * k) - (a * y3))) elif z <= 2.25e-91: tmp = x * (y2 * ((c * y0) - (a * y1))) elif z <= 1.16e-9: tmp = a * (y5 * ((t * y2) - (y * y3))) elif z <= 1.55e+158: tmp = b * (x * ((a * y) - (j * y0))) elif z <= 8.2e+212: tmp = i * (y1 * ((j * x) - (k * z))) else: tmp = t * (c * ((i * z) - (y2 * 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 (z <= -8.2e+95) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (z <= -1.5e-227) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (z <= 2.25e-91) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (z <= 1.16e-9) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 1.55e+158) tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0)))); elseif (z <= 8.2e+212) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); else tmp = Float64(t * Float64(c * Float64(Float64(i * z) - Float64(y2 * 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 (z <= -8.2e+95) tmp = a * (b * ((x * y) - (t * z))); elseif (z <= -1.5e-227) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (z <= 2.25e-91) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (z <= 1.16e-9) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (z <= 1.55e+158) tmp = b * (x * ((a * y) - (j * y0))); elseif (z <= 8.2e+212) tmp = i * (y1 * ((j * x) - (k * z))); else tmp = t * (c * ((i * z) - (y2 * 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[z, -8.2e+95], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.5e-227], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e-91], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.16e-9], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+158], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.2e+212], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(c * N[(N[(i * z), $MachinePrecision] - N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+95}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-227}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-91}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 1.16 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+158}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
\mathbf{elif}\;z \leq 8.2 \cdot 10^{+212}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(c \cdot \left(i \cdot z - y2 \cdot y4\right)\right)\\
\end{array}
if z < -8.19999999999999972e95Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -8.19999999999999972e95 < z < -1.5e-227Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -1.5e-227 < z < 2.24999999999999988e-91Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 2.24999999999999988e-91 < z < 1.15999999999999992e-9Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 1.15999999999999992e-9 < z < 1.5500000000000001e158Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if 1.5500000000000001e158 < z < 8.19999999999999978e212Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 8.19999999999999978e212 < z Initial program 29.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= b -1.25e+85)
(* j (* y0 (- (* y3 y5) (* b x))))
(if (<= b -1.5e-65)
(* a (* b (- (* x y) (* t z))))
(if (<= b -1.7e-271)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= b 1.22e+76)
(* y2 (* t (* y4 (- (/ (* a y5) y4) c))))
(* j (- (* -1.0 (* y1 (* y3 y4))) (* x (- (* b y0) (* i y1))))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -1.7e-271) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 1.22e+76) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} else {
tmp = j * ((-1.0 * (y1 * (y3 * y4))) - (x * ((b * y0) - (i * y1))));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (b <= (-1.25d+85)) then
tmp = j * (y0 * ((y3 * y5) - (b * x)))
else if (b <= (-1.5d-65)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (b <= (-1.7d-271)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (b <= 1.22d+76) then
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)))
else
tmp = j * (((-1.0d0) * (y1 * (y3 * y4))) - (x * ((b * y0) - (i * y1))))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (b <= -1.7e-271) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 1.22e+76) {
tmp = y2 * (t * (y4 * (((a * y5) / y4) - c)));
} else {
tmp = j * ((-1.0 * (y1 * (y3 * y4))) - (x * ((b * y0) - (i * y1))));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if b <= -1.25e+85: tmp = j * (y0 * ((y3 * y5) - (b * x))) elif b <= -1.5e-65: tmp = a * (b * ((x * y) - (t * z))) elif b <= -1.7e-271: tmp = y * (y5 * ((i * k) - (a * y3))) elif b <= 1.22e+76: tmp = y2 * (t * (y4 * (((a * y5) / y4) - c))) else: tmp = j * ((-1.0 * (y1 * (y3 * y4))) - (x * ((b * y0) - (i * y1)))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (b <= -1.25e+85) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (b <= -1.5e-65) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (b <= -1.7e-271) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (b <= 1.22e+76) tmp = Float64(y2 * Float64(t * Float64(y4 * Float64(Float64(Float64(a * y5) / y4) - c)))); else tmp = Float64(j * Float64(Float64(-1.0 * Float64(y1 * Float64(y3 * y4))) - Float64(x * Float64(Float64(b * y0) - Float64(i * y1))))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (b <= -1.25e+85) tmp = j * (y0 * ((y3 * y5) - (b * x))); elseif (b <= -1.5e-65) tmp = a * (b * ((x * y) - (t * z))); elseif (b <= -1.7e-271) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (b <= 1.22e+76) tmp = y2 * (t * (y4 * (((a * y5) / y4) - c))); else tmp = j * ((-1.0 * (y1 * (y3 * y4))) - (x * ((b * y0) - (i * y1)))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[b, -1.25e+85], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.5e-65], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.7e-271], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.22e+76], N[(y2 * N[(t * N[(y4 * N[(N[(N[(a * y5), $MachinePrecision] / y4), $MachinePrecision] - c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(N[(-1.0 * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(x * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\mathbf{if}\;b \leq -1.25 \cdot 10^{+85}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-65}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;b \leq -1.7 \cdot 10^{-271}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 1.22 \cdot 10^{+76}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(y4 \cdot \left(\frac{a \cdot y5}{y4} - c\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right) - x \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\end{array}
if b < -1.25e85Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
if -1.25e85 < b < -1.49999999999999999e-65Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -1.49999999999999999e-65 < b < -1.7e-271Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -1.7e-271 < b < 1.22000000000000002e76Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-/.f64N/A
lower-*.f6427.8
Applied rewrites27.8%
if 1.22000000000000002e76 < b Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6432.5
Applied rewrites32.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* t z))))))
(if (<= b -1.25e+85)
(* j (* y0 (- (* y3 y5) (* b x))))
(if (<= b -1.5e-65)
t_1
(if (<= b -4.4e-272)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= b 8.2e+75)
(* y2 (* t (- (* a y5) (* c y4))))
(if (<= b 2.6e+152) (* y2 (* k (- (* y1 y4) (* y0 y5)))) t_1)))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (t * z)));
double tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = t_1;
} else if (b <= -4.4e-272) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 8.2e+75) {
tmp = y2 * (t * ((a * y5) - (c * y4)));
} else if (b <= 2.6e+152) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (b * ((x * y) - (t * z)))
if (b <= (-1.25d+85)) then
tmp = j * (y0 * ((y3 * y5) - (b * x)))
else if (b <= (-1.5d-65)) then
tmp = t_1
else if (b <= (-4.4d-272)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (b <= 8.2d+75) then
tmp = y2 * (t * ((a * y5) - (c * y4)))
else if (b <= 2.6d+152) then
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (t * z)));
double tmp;
if (b <= -1.25e+85) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else if (b <= -1.5e-65) {
tmp = t_1;
} else if (b <= -4.4e-272) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (b <= 8.2e+75) {
tmp = y2 * (t * ((a * y5) - (c * y4)));
} else if (b <= 2.6e+152) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (t * z))) tmp = 0 if b <= -1.25e+85: tmp = j * (y0 * ((y3 * y5) - (b * x))) elif b <= -1.5e-65: tmp = t_1 elif b <= -4.4e-272: tmp = y * (y5 * ((i * k) - (a * y3))) elif b <= 8.2e+75: tmp = y2 * (t * ((a * y5) - (c * y4))) elif b <= 2.6e+152: tmp = y2 * (k * ((y1 * y4) - (y0 * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))) tmp = 0.0 if (b <= -1.25e+85) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); elseif (b <= -1.5e-65) tmp = t_1; elseif (b <= -4.4e-272) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (b <= 8.2e+75) tmp = Float64(y2 * Float64(t * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (b <= 2.6e+152) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (t * z))); tmp = 0.0; if (b <= -1.25e+85) tmp = j * (y0 * ((y3 * y5) - (b * x))); elseif (b <= -1.5e-65) tmp = t_1; elseif (b <= -4.4e-272) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (b <= 8.2e+75) tmp = y2 * (t * ((a * y5) - (c * y4))); elseif (b <= 2.6e+152) tmp = y2 * (k * ((y1 * y4) - (y0 * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+85], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, -1.5e-65], t$95$1, If[LessEqual[b, -4.4e-272], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8.2e+75], N[(y2 * N[(t * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 2.6e+152], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+85}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{elif}\;b \leq -1.5 \cdot 10^{-65}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -4.4 \cdot 10^{-272}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;b \leq 8.2 \cdot 10^{+75}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;b \leq 2.6 \cdot 10^{+152}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -1.25e85Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
if -1.25e85 < b < -1.49999999999999999e-65 or 2.6000000000000001e152 < b Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -1.49999999999999999e-65 < b < -4.39999999999999976e-272Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -4.39999999999999976e-272 < b < 8.1999999999999997e75Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
if 8.1999999999999997e75 < b < 2.6000000000000001e152Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -8.2e+95)
(* a (* b (- (* x y) (* t z))))
(if (<= z -1.5e-227)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= z 2.25e-91)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= z 1.16e-9)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 1.55e+158)
(* b (* x (- (* a y) (* j y0))))
(* i (* z (- (* c t) (* k y1))))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -8.2e+95) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (z <= -1.5e-227) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.25e-91) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (z <= 1.16e-9) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1.55e+158) {
tmp = b * (x * ((a * y) - (j * y0)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (z <= (-8.2d+95)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (z <= (-1.5d-227)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (z <= 2.25d-91) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (z <= 1.16d-9) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (z <= 1.55d+158) then
tmp = b * (x * ((a * y) - (j * y0)))
else
tmp = i * (z * ((c * t) - (k * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -8.2e+95) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (z <= -1.5e-227) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.25e-91) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (z <= 1.16e-9) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 1.55e+158) {
tmp = b * (x * ((a * y) - (j * y0)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -8.2e+95: tmp = a * (b * ((x * y) - (t * z))) elif z <= -1.5e-227: tmp = y * (y5 * ((i * k) - (a * y3))) elif z <= 2.25e-91: tmp = x * (y2 * ((c * y0) - (a * y1))) elif z <= 1.16e-9: tmp = a * (y5 * ((t * y2) - (y * y3))) elif z <= 1.55e+158: tmp = b * (x * ((a * y) - (j * y0))) else: tmp = i * (z * ((c * t) - (k * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -8.2e+95) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (z <= -1.5e-227) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (z <= 2.25e-91) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (z <= 1.16e-9) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 1.55e+158) tmp = Float64(b * Float64(x * Float64(Float64(a * y) - Float64(j * y0)))); else tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (z <= -8.2e+95) tmp = a * (b * ((x * y) - (t * z))); elseif (z <= -1.5e-227) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (z <= 2.25e-91) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (z <= 1.16e-9) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (z <= 1.55e+158) tmp = b * (x * ((a * y) - (j * y0))); else tmp = i * (z * ((c * t) - (k * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -8.2e+95], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -1.5e-227], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.25e-91], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.16e-9], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.55e+158], N[(b * N[(x * N[(N[(a * y), $MachinePrecision] - N[(j * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\mathbf{if}\;z \leq -8.2 \cdot 10^{+95}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -1.5 \cdot 10^{-227}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 2.25 \cdot 10^{-91}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 1.16 \cdot 10^{-9}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 1.55 \cdot 10^{+158}:\\
\;\;\;\;b \cdot \left(x \cdot \left(a \cdot y - j \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\end{array}
if z < -8.19999999999999972e95Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -8.19999999999999972e95 < z < -1.5e-227Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -1.5e-227 < z < 2.24999999999999988e-91Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 2.24999999999999988e-91 < z < 1.15999999999999992e-9Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 1.15999999999999992e-9 < z < 1.5500000000000001e158Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if 1.5500000000000001e158 < z Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -5.2e+133)
(* y2 (* y0 (fma -1.0 (* k y5) (* c x))))
(if (<= y0 -1.05e-56)
(* y2 (* k (- (* y1 y4) (* y0 y5))))
(if (<= y0 1.7e-94)
(* t (- (* c (* i z)) (* y2 (- (* c y4) (* a 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 <= -5.2e+133) {
tmp = y2 * (y0 * fma(-1.0, (k * y5), (c * x)));
} else if (y0 <= -1.05e-56) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= 1.7e-94) {
tmp = t * ((c * (i * z)) - (y2 * ((c * y4) - (a * 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 <= -5.2e+133) tmp = Float64(y2 * Float64(y0 * fma(-1.0, Float64(k * y5), Float64(c * x)))); elseif (y0 <= -1.05e-56) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y0 <= 1.7e-94) tmp = Float64(t * Float64(Float64(c * Float64(i * z)) - Float64(y2 * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -5.2e+133], N[(y2 * N[(y0 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.05e-56], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.7e-94], N[(t * N[(N[(c * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(y2 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\mathbf{if}\;y0 \leq -5.2 \cdot 10^{+133}:\\
\;\;\;\;y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\
\mathbf{elif}\;y0 \leq -1.05 \cdot 10^{-56}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq 1.7 \cdot 10^{-94}:\\
\;\;\;\;t \cdot \left(c \cdot \left(i \cdot z\right) - y2 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
if y0 < -5.1999999999999995e133Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if -5.1999999999999995e133 < y0 < -1.05000000000000003e-56Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.6
Applied rewrites26.6%
if -1.05000000000000003e-56 < y0 < 1.6999999999999999e-94Initial program 29.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f6430.8
Applied rewrites30.8%
if 1.6999999999999999e-94 < y0 Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2.5e+181)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= y -2.05e-142)
(* a (* b (- (* x y) (* t z))))
(if (<= y 2.85e-201)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y 8.2e+45)
(* j (* y0 (- (* y3 y5) (* b x))))
(* b (* y4 (- (* j t) (* k 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 (y <= -2.5e+181) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y <= -2.05e-142) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y <= 2.85e-201) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 8.2e+45) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else {
tmp = b * (y4 * ((j * t) - (k * 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 (y <= (-2.5d+181)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (y <= (-2.05d-142)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y <= 2.85d-201) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y <= 8.2d+45) then
tmp = j * (y0 * ((y3 * y5) - (b * x)))
else
tmp = b * (y4 * ((j * t) - (k * 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 (y <= -2.5e+181) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y <= -2.05e-142) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y <= 2.85e-201) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 8.2e+45) {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
} else {
tmp = b * (y4 * ((j * t) - (k * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -2.5e+181: tmp = y * (y5 * ((i * k) - (a * y3))) elif y <= -2.05e-142: tmp = a * (b * ((x * y) - (t * z))) elif y <= 2.85e-201: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y <= 8.2e+45: tmp = j * (y0 * ((y3 * y5) - (b * x))) else: tmp = b * (y4 * ((j * t) - (k * 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 (y <= -2.5e+181) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (y <= -2.05e-142) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y <= 2.85e-201) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y <= 8.2e+45) tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); else tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * 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 (y <= -2.5e+181) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (y <= -2.05e-142) tmp = a * (b * ((x * y) - (t * z))); elseif (y <= 2.85e-201) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y <= 8.2e+45) tmp = j * (y0 * ((y3 * y5) - (b * x))); else tmp = b * (y4 * ((j * t) - (k * 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[y, -2.5e+181], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.05e-142], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.85e-201], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 8.2e+45], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+181}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-142}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y \leq 2.85 \cdot 10^{-201}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 8.2 \cdot 10^{+45}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\end{array}
if y < -2.5000000000000002e181Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -2.5000000000000002e181 < y < -2.05e-142Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -2.05e-142 < y < 2.85e-201Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if 2.85e-201 < y < 8.20000000000000025e45Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.9
Applied rewrites25.9%
if 8.20000000000000025e45 < y Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -2.5e+181)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= y -2.05e-142)
(* a (* b (- (* x y) (* t z))))
(if (<= y 7.5e-32)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y 1e+45)
(* j (* x (* -1.0 (* b y0))))
(* b (* y4 (- (* j t) (* k 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 (y <= -2.5e+181) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y <= -2.05e-142) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y <= 7.5e-32) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1e+45) {
tmp = j * (x * (-1.0 * (b * y0)));
} else {
tmp = b * (y4 * ((j * t) - (k * 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 (y <= (-2.5d+181)) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (y <= (-2.05d-142)) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y <= 7.5d-32) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y <= 1d+45) then
tmp = j * (x * ((-1.0d0) * (b * y0)))
else
tmp = b * (y4 * ((j * t) - (k * 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 (y <= -2.5e+181) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (y <= -2.05e-142) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y <= 7.5e-32) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y <= 1e+45) {
tmp = j * (x * (-1.0 * (b * y0)));
} else {
tmp = b * (y4 * ((j * t) - (k * y)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y <= -2.5e+181: tmp = y * (y5 * ((i * k) - (a * y3))) elif y <= -2.05e-142: tmp = a * (b * ((x * y) - (t * z))) elif y <= 7.5e-32: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y <= 1e+45: tmp = j * (x * (-1.0 * (b * y0))) else: tmp = b * (y4 * ((j * t) - (k * 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 (y <= -2.5e+181) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (y <= -2.05e-142) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y <= 7.5e-32) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y <= 1e+45) tmp = Float64(j * Float64(x * Float64(-1.0 * Float64(b * y0)))); else tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * 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 (y <= -2.5e+181) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (y <= -2.05e-142) tmp = a * (b * ((x * y) - (t * z))); elseif (y <= 7.5e-32) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y <= 1e+45) tmp = j * (x * (-1.0 * (b * y0))); else tmp = b * (y4 * ((j * t) - (k * 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[y, -2.5e+181], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -2.05e-142], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 7.5e-32], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 1e+45], N[(j * N[(x * N[(-1.0 * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\mathbf{if}\;y \leq -2.5 \cdot 10^{+181}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;y \leq -2.05 \cdot 10^{-142}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y \leq 7.5 \cdot 10^{-32}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 10^{+45}:\\
\;\;\;\;j \cdot \left(x \cdot \left(-1 \cdot \left(b \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\end{array}
if y < -2.5000000000000002e181Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -2.5000000000000002e181 < y < -2.05e-142Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -2.05e-142 < y < 7.49999999999999953e-32Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
if 7.49999999999999953e-32 < y < 9.9999999999999993e44Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
if 9.9999999999999993e44 < y Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* t z))))))
(if (<= z -8.2e+95)
t_1
(if (<= z 5.2e-293)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= z 2.4e+101)
(* b (* y4 (- (* j t) (* k y))))
(if (<= z 8.4e+132) (* k (* z (- (* 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 = a * (b * ((x * y) - (t * z)));
double tmp;
if (z <= -8.2e+95) {
tmp = t_1;
} else if (z <= 5.2e-293) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.4e+101) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 8.4e+132) {
tmp = k * (z * ((b * y0) - (i * 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 * (b * ((x * y) - (t * z)))
if (z <= (-8.2d+95)) then
tmp = t_1
else if (z <= 5.2d-293) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (z <= 2.4d+101) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (z <= 8.4d+132) then
tmp = k * (z * ((b * y0) - (i * 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 * (b * ((x * y) - (t * z)));
double tmp;
if (z <= -8.2e+95) {
tmp = t_1;
} else if (z <= 5.2e-293) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.4e+101) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 8.4e+132) {
tmp = k * (z * ((b * y0) - (i * 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 * (b * ((x * y) - (t * z))) tmp = 0 if z <= -8.2e+95: tmp = t_1 elif z <= 5.2e-293: tmp = y * (y5 * ((i * k) - (a * y3))) elif z <= 2.4e+101: tmp = b * (y4 * ((j * t) - (k * y))) elif z <= 8.4e+132: tmp = k * (z * ((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(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))) tmp = 0.0 if (z <= -8.2e+95) tmp = t_1; elseif (z <= 5.2e-293) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (z <= 2.4e+101) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (z <= 8.4e+132) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * 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 * (b * ((x * y) - (t * z))); tmp = 0.0; if (z <= -8.2e+95) tmp = t_1; elseif (z <= 5.2e-293) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (z <= 2.4e+101) tmp = b * (y4 * ((j * t) - (k * y))); elseif (z <= 8.4e+132) tmp = k * (z * ((b * y0) - (i * 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[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.2e+95], t$95$1, If[LessEqual[z, 5.2e-293], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e+101], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.4e+132], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -8.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.2 \cdot 10^{-293}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{+101}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 8.4 \cdot 10^{+132}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -8.19999999999999972e95 or 8.39999999999999973e132 < z Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -8.19999999999999972e95 < z < 5.1999999999999996e-293Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if 5.1999999999999996e-293 < z < 2.39999999999999988e101Initial program 29.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 2.39999999999999988e101 < z < 8.39999999999999973e132Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* t z))))))
(if (<= z -8.2e+95)
t_1
(if (<= z 2.8e-291)
(* y (* y5 (- (* i k) (* a y3))))
(if (<= z 2.4e-132)
(* i (* y1 (- (* j x) (* k z))))
(if (<= z 4.5e+101)
(* a (* y5 (- (* t y2) (* y y3))))
(if (<= z 8.4e+132) (* k (* z (- (* 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 = a * (b * ((x * y) - (t * z)));
double tmp;
if (z <= -8.2e+95) {
tmp = t_1;
} else if (z <= 2.8e-291) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.4e-132) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (z <= 4.5e+101) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 8.4e+132) {
tmp = k * (z * ((b * y0) - (i * 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 * (b * ((x * y) - (t * z)))
if (z <= (-8.2d+95)) then
tmp = t_1
else if (z <= 2.8d-291) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else if (z <= 2.4d-132) then
tmp = i * (y1 * ((j * x) - (k * z)))
else if (z <= 4.5d+101) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else if (z <= 8.4d+132) then
tmp = k * (z * ((b * y0) - (i * 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 * (b * ((x * y) - (t * z)));
double tmp;
if (z <= -8.2e+95) {
tmp = t_1;
} else if (z <= 2.8e-291) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else if (z <= 2.4e-132) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else if (z <= 4.5e+101) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else if (z <= 8.4e+132) {
tmp = k * (z * ((b * y0) - (i * 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 * (b * ((x * y) - (t * z))) tmp = 0 if z <= -8.2e+95: tmp = t_1 elif z <= 2.8e-291: tmp = y * (y5 * ((i * k) - (a * y3))) elif z <= 2.4e-132: tmp = i * (y1 * ((j * x) - (k * z))) elif z <= 4.5e+101: tmp = a * (y5 * ((t * y2) - (y * y3))) elif z <= 8.4e+132: tmp = k * (z * ((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(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))) tmp = 0.0 if (z <= -8.2e+95) tmp = t_1; elseif (z <= 2.8e-291) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); elseif (z <= 2.4e-132) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); elseif (z <= 4.5e+101) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); elseif (z <= 8.4e+132) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * 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 * (b * ((x * y) - (t * z))); tmp = 0.0; if (z <= -8.2e+95) tmp = t_1; elseif (z <= 2.8e-291) tmp = y * (y5 * ((i * k) - (a * y3))); elseif (z <= 2.4e-132) tmp = i * (y1 * ((j * x) - (k * z))); elseif (z <= 4.5e+101) tmp = a * (y5 * ((t * y2) - (y * y3))); elseif (z <= 8.4e+132) tmp = k * (z * ((b * y0) - (i * 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[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -8.2e+95], t$95$1, If[LessEqual[z, 2.8e-291], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.4e-132], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 4.5e+101], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 8.4e+132], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;z \leq -8.2 \cdot 10^{+95}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 2.8 \cdot 10^{-291}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 2.4 \cdot 10^{-132}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;z \leq 4.5 \cdot 10^{+101}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq 8.4 \cdot 10^{+132}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if z < -8.19999999999999972e95 or 8.39999999999999973e132 < z Initial program 29.9%
Taylor expanded in b around inf
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-*.f6426.2
Applied rewrites26.2%
if -8.19999999999999972e95 < z < 2.8e-291Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if 2.8e-291 < z < 2.40000000000000015e-132Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
if 2.40000000000000015e-132 < z < 4.5000000000000002e101Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 4.5000000000000002e101 < z < 8.39999999999999973e132Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y (* y5 (- (* i k) (* a y3))))))
(if (<= y5 -1.3e+76)
t_1
(if (<= y5 -1.52e-150)
(* k (* y2 (* y1 y4)))
(if (<= y5 2600000000.0)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y5 9.2e+157) t_1 (* -1.0 (* i (* j (* t y5))))))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y5 * ((i * k) - (a * y3)));
double tmp;
if (y5 <= -1.3e+76) {
tmp = t_1;
} else if (y5 <= -1.52e-150) {
tmp = k * (y2 * (y1 * y4));
} else if (y5 <= 2600000000.0) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y5 <= 9.2e+157) {
tmp = t_1;
} else {
tmp = -1.0 * (i * (j * (t * y5)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y * (y5 * ((i * k) - (a * y3)))
if (y5 <= (-1.3d+76)) then
tmp = t_1
else if (y5 <= (-1.52d-150)) then
tmp = k * (y2 * (y1 * y4))
else if (y5 <= 2600000000.0d0) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y5 <= 9.2d+157) then
tmp = t_1
else
tmp = (-1.0d0) * (i * (j * (t * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y * (y5 * ((i * k) - (a * y3)));
double tmp;
if (y5 <= -1.3e+76) {
tmp = t_1;
} else if (y5 <= -1.52e-150) {
tmp = k * (y2 * (y1 * y4));
} else if (y5 <= 2600000000.0) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y5 <= 9.2e+157) {
tmp = t_1;
} else {
tmp = -1.0 * (i * (j * (t * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y * (y5 * ((i * k) - (a * y3))) tmp = 0 if y5 <= -1.3e+76: tmp = t_1 elif y5 <= -1.52e-150: tmp = k * (y2 * (y1 * y4)) elif y5 <= 2600000000.0: tmp = k * (z * ((b * y0) - (i * y1))) elif y5 <= 9.2e+157: tmp = t_1 else: tmp = -1.0 * (i * (j * (t * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))) tmp = 0.0 if (y5 <= -1.3e+76) tmp = t_1; elseif (y5 <= -1.52e-150) tmp = Float64(k * Float64(y2 * Float64(y1 * y4))); elseif (y5 <= 2600000000.0) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y5 <= 9.2e+157) tmp = t_1; else tmp = Float64(-1.0 * Float64(i * Float64(j * Float64(t * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y * (y5 * ((i * k) - (a * y3))); tmp = 0.0; if (y5 <= -1.3e+76) tmp = t_1; elseif (y5 <= -1.52e-150) tmp = k * (y2 * (y1 * y4)); elseif (y5 <= 2600000000.0) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y5 <= 9.2e+157) tmp = t_1; else tmp = -1.0 * (i * (j * (t * y5))); 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[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.3e+76], t$95$1, If[LessEqual[y5, -1.52e-150], N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2600000000.0], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 9.2e+157], t$95$1, N[(-1.0 * N[(i * N[(j * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
t_1 := y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{if}\;y5 \leq -1.3 \cdot 10^{+76}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -1.52 \cdot 10^{-150}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 2600000000:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 9.2 \cdot 10^{+157}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(j \cdot \left(t \cdot y5\right)\right)\right)\\
\end{array}
if y5 < -1.3e76 or 2.6e9 < y5 < 9.20000000000000015e157Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -1.3e76 < y5 < -1.51999999999999988e-150Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -1.51999999999999988e-150 < y5 < 2.6e9Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.0
Applied rewrites26.0%
if 9.20000000000000015e157 < y5 Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in x around 0
lower-*.f6417.1
Applied rewrites17.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y1 -2.85e+230)
(* k (* y2 (* y1 y4)))
(if (<= y1 1.8e-61)
(* y (* y5 (- (* i k) (* a y3))))
(* i (* y1 (- (* j x) (* k z)))))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= -2.85e+230) {
tmp = k * (y2 * (y1 * y4));
} else if (y1 <= 1.8e-61) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = i * (y1 * ((j * x) - (k * z)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y1 <= (-2.85d+230)) then
tmp = k * (y2 * (y1 * y4))
else if (y1 <= 1.8d-61) then
tmp = y * (y5 * ((i * k) - (a * y3)))
else
tmp = i * (y1 * ((j * x) - (k * z)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= -2.85e+230) {
tmp = k * (y2 * (y1 * y4));
} else if (y1 <= 1.8e-61) {
tmp = y * (y5 * ((i * k) - (a * y3)));
} else {
tmp = i * (y1 * ((j * x) - (k * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= -2.85e+230: tmp = k * (y2 * (y1 * y4)) elif y1 <= 1.8e-61: tmp = y * (y5 * ((i * k) - (a * y3))) else: tmp = i * (y1 * ((j * x) - (k * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y1 <= -2.85e+230) tmp = Float64(k * Float64(y2 * Float64(y1 * y4))); elseif (y1 <= 1.8e-61) tmp = Float64(y * Float64(y5 * Float64(Float64(i * k) - Float64(a * y3)))); else tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y1 <= -2.85e+230) tmp = k * (y2 * (y1 * y4)); elseif (y1 <= 1.8e-61) tmp = y * (y5 * ((i * k) - (a * y3))); else tmp = i * (y1 * ((j * x) - (k * z))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, -2.85e+230], N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e-61], N[(y * N[(y5 * N[(N[(i * k), $MachinePrecision] - N[(a * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;y1 \leq -2.85 \cdot 10^{+230}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-61}:\\
\;\;\;\;y \cdot \left(y5 \cdot \left(i \cdot k - a \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\end{array}
if y1 < -2.8500000000000001e230Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -2.8500000000000001e230 < y1 < 1.80000000000000007e-61Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if 1.80000000000000007e-61 < y1 Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (* -1.0 (* b y0))))))
(if (<= b -1.25e+85)
t_1
(if (<= b 6.2e-124)
(* i (* k (- (* y y5) (* y1 z))))
(if (<= b 8e+127) (* a (* y5 (- (* t y2) (* y y3)))) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * (-1.0 * (b * y0)));
double tmp;
if (b <= -1.25e+85) {
tmp = t_1;
} else if (b <= 6.2e-124) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else if (b <= 8e+127) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (x * ((-1.0d0) * (b * y0)))
if (b <= (-1.25d+85)) then
tmp = t_1
else if (b <= 6.2d-124) then
tmp = i * (k * ((y * y5) - (y1 * z)))
else if (b <= 8d+127) then
tmp = a * (y5 * ((t * y2) - (y * y3)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * (-1.0 * (b * y0)));
double tmp;
if (b <= -1.25e+85) {
tmp = t_1;
} else if (b <= 6.2e-124) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else if (b <= 8e+127) {
tmp = a * (y5 * ((t * y2) - (y * y3)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (x * (-1.0 * (b * y0))) tmp = 0 if b <= -1.25e+85: tmp = t_1 elif b <= 6.2e-124: tmp = i * (k * ((y * y5) - (y1 * z))) elif b <= 8e+127: tmp = a * (y5 * ((t * y2) - (y * y3))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(x * Float64(-1.0 * Float64(b * y0)))) tmp = 0.0 if (b <= -1.25e+85) tmp = t_1; elseif (b <= 6.2e-124) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))); elseif (b <= 8e+127) tmp = Float64(a * Float64(y5 * Float64(Float64(t * y2) - Float64(y * y3)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (x * (-1.0 * (b * y0))); tmp = 0.0; if (b <= -1.25e+85) tmp = t_1; elseif (b <= 6.2e-124) tmp = i * (k * ((y * y5) - (y1 * z))); elseif (b <= 8e+127) tmp = a * (y5 * ((t * y2) - (y * y3))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(x * N[(-1.0 * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+85], t$95$1, If[LessEqual[b, 6.2e-124], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 8e+127], N[(a * N[(y5 * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(-1 \cdot \left(b \cdot y0\right)\right)\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 6.2 \cdot 10^{-124}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 8 \cdot 10^{+127}:\\
\;\;\;\;a \cdot \left(y5 \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -1.25e85 or 7.99999999999999964e127 < b Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
if -1.25e85 < b < 6.1999999999999996e-124Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 6.1999999999999996e-124 < b < 7.99999999999999964e127Initial program 29.9%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (* -1.0 (* b y0))))))
(if (<= b -1.25e+85)
t_1
(if (<= b 2.3e-200)
(* i (* k (- (* y y5) (* y1 z))))
(if (<= b 5.6e+197) (* i (* y1 (- (* j x) (* k z)))) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * (-1.0 * (b * y0)));
double tmp;
if (b <= -1.25e+85) {
tmp = t_1;
} else if (b <= 2.3e-200) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else if (b <= 5.6e+197) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = j * (x * ((-1.0d0) * (b * y0)))
if (b <= (-1.25d+85)) then
tmp = t_1
else if (b <= 2.3d-200) then
tmp = i * (k * ((y * y5) - (y1 * z)))
else if (b <= 5.6d+197) then
tmp = i * (y1 * ((j * x) - (k * z)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * (-1.0 * (b * y0)));
double tmp;
if (b <= -1.25e+85) {
tmp = t_1;
} else if (b <= 2.3e-200) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else if (b <= 5.6e+197) {
tmp = i * (y1 * ((j * x) - (k * z)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = j * (x * (-1.0 * (b * y0))) tmp = 0 if b <= -1.25e+85: tmp = t_1 elif b <= 2.3e-200: tmp = i * (k * ((y * y5) - (y1 * z))) elif b <= 5.6e+197: tmp = i * (y1 * ((j * x) - (k * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(x * Float64(-1.0 * Float64(b * y0)))) tmp = 0.0 if (b <= -1.25e+85) tmp = t_1; elseif (b <= 2.3e-200) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))); elseif (b <= 5.6e+197) tmp = Float64(i * Float64(y1 * Float64(Float64(j * x) - Float64(k * z)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = j * (x * (-1.0 * (b * y0))); tmp = 0.0; if (b <= -1.25e+85) tmp = t_1; elseif (b <= 2.3e-200) tmp = i * (k * ((y * y5) - (y1 * z))); elseif (b <= 5.6e+197) tmp = i * (y1 * ((j * x) - (k * z))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(j * N[(x * N[(-1.0 * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+85], t$95$1, If[LessEqual[b, 2.3e-200], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 5.6e+197], N[(i * N[(y1 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(-1 \cdot \left(b \cdot y0\right)\right)\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 2.3 \cdot 10^{-200}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 5.6 \cdot 10^{+197}:\\
\;\;\;\;i \cdot \left(y1 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -1.25e85 or 5.5999999999999997e197 < b Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
if -1.25e85 < b < 2.30000000000000007e-200Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if 2.30000000000000007e-200 < b < 5.5999999999999997e197Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.4
Applied rewrites26.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* j (* x (* -1.0 (* b y0))))))
(if (<= b -1.25e+85)
t_1
(if (<= b 3.35e+27) (* i (* k (- (* y y5) (* y1 z)))) t_1))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = j * (x * (-1.0 * (b * y0)));
double tmp;
if (b <= -1.25e+85) {
tmp = t_1;
} else if (b <= 3.35e+27) {
tmp = i * (k * ((y * y5) - (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 = j * (x * ((-1.0d0) * (b * y0)))
if (b <= (-1.25d+85)) then
tmp = t_1
else if (b <= 3.35d+27) then
tmp = i * (k * ((y * y5) - (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 = j * (x * (-1.0 * (b * y0)));
double tmp;
if (b <= -1.25e+85) {
tmp = t_1;
} else if (b <= 3.35e+27) {
tmp = i * (k * ((y * y5) - (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 = j * (x * (-1.0 * (b * y0))) tmp = 0 if b <= -1.25e+85: tmp = t_1 elif b <= 3.35e+27: tmp = i * (k * ((y * y5) - (y1 * z))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(j * Float64(x * Float64(-1.0 * Float64(b * y0)))) tmp = 0.0 if (b <= -1.25e+85) tmp = t_1; elseif (b <= 3.35e+27) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - 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 = j * (x * (-1.0 * (b * y0))); tmp = 0.0; if (b <= -1.25e+85) tmp = t_1; elseif (b <= 3.35e+27) tmp = i * (k * ((y * y5) - (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[(j * N[(x * N[(-1.0 * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+85], t$95$1, If[LessEqual[b, 3.35e+27], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := j \cdot \left(x \cdot \left(-1 \cdot \left(b \cdot y0\right)\right)\right)\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+85}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq 3.35 \cdot 10^{+27}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if b < -1.25e85 or 3.34999999999999989e27 < b Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
if -1.25e85 < b < 3.34999999999999989e27Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y2 (* y1 y4)))))
(if (<= y1 -3.9e+61)
t_1
(if (<= y1 -1.1e-199)
(* y2 (* t (* a y5)))
(if (<= y1 2.9e-7) (* j (* x (* -1.0 (* 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 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -3.9e+61) {
tmp = t_1;
} else if (y1 <= -1.1e-199) {
tmp = y2 * (t * (a * y5));
} else if (y1 <= 2.9e-7) {
tmp = j * (x * (-1.0 * (b * y0)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y2 * (y1 * y4))
if (y1 <= (-3.9d+61)) then
tmp = t_1
else if (y1 <= (-1.1d-199)) then
tmp = y2 * (t * (a * y5))
else if (y1 <= 2.9d-7) then
tmp = j * (x * ((-1.0d0) * (b * y0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -3.9e+61) {
tmp = t_1;
} else if (y1 <= -1.1e-199) {
tmp = y2 * (t * (a * y5));
} else if (y1 <= 2.9e-7) {
tmp = j * (x * (-1.0 * (b * y0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * (y1 * y4)) tmp = 0 if y1 <= -3.9e+61: tmp = t_1 elif y1 <= -1.1e-199: tmp = y2 * (t * (a * y5)) elif y1 <= 2.9e-7: tmp = j * (x * (-1.0 * (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(k * Float64(y2 * Float64(y1 * y4))) tmp = 0.0 if (y1 <= -3.9e+61) tmp = t_1; elseif (y1 <= -1.1e-199) tmp = Float64(y2 * Float64(t * Float64(a * y5))); elseif (y1 <= 2.9e-7) tmp = Float64(j * Float64(x * Float64(-1.0 * Float64(b * y0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * (y1 * y4)); tmp = 0.0; if (y1 <= -3.9e+61) tmp = t_1; elseif (y1 <= -1.1e-199) tmp = y2 * (t * (a * y5)); elseif (y1 <= 2.9e-7) tmp = j * (x * (-1.0 * (b * y0))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.9e+61], t$95$1, If[LessEqual[y1, -1.1e-199], N[(y2 * N[(t * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 2.9e-7], N[(j * N[(x * N[(-1.0 * N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{if}\;y1 \leq -3.9 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -1.1 \cdot 10^{-199}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq 2.9 \cdot 10^{-7}:\\
\;\;\;\;j \cdot \left(x \cdot \left(-1 \cdot \left(b \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y1 < -3.89999999999999987e61 or 2.8999999999999998e-7 < y1 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -3.89999999999999987e61 < y1 < -1.0999999999999999e-199Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
Taylor expanded in a around inf
lower-*.f6416.9
Applied rewrites16.9%
if -1.0999999999999999e-199 < y1 < 2.8999999999999998e-7Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f6416.7
Applied rewrites16.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y2 (* y1 y4)))))
(if (<= y1 -3.9e+61)
t_1
(if (<= y1 -1.1e-199)
(* y2 (* t (* a y5)))
(if (<= y1 4e-8) (* j (* -1.0 (* b (* x y0)))) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -3.9e+61) {
tmp = t_1;
} else if (y1 <= -1.1e-199) {
tmp = y2 * (t * (a * y5));
} else if (y1 <= 4e-8) {
tmp = j * (-1.0 * (b * (x * y0)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y2 * (y1 * y4))
if (y1 <= (-3.9d+61)) then
tmp = t_1
else if (y1 <= (-1.1d-199)) then
tmp = y2 * (t * (a * y5))
else if (y1 <= 4d-8) then
tmp = j * ((-1.0d0) * (b * (x * y0)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -3.9e+61) {
tmp = t_1;
} else if (y1 <= -1.1e-199) {
tmp = y2 * (t * (a * y5));
} else if (y1 <= 4e-8) {
tmp = j * (-1.0 * (b * (x * y0)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * (y1 * y4)) tmp = 0 if y1 <= -3.9e+61: tmp = t_1 elif y1 <= -1.1e-199: tmp = y2 * (t * (a * y5)) elif y1 <= 4e-8: tmp = j * (-1.0 * (b * (x * y0))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * Float64(y1 * y4))) tmp = 0.0 if (y1 <= -3.9e+61) tmp = t_1; elseif (y1 <= -1.1e-199) tmp = Float64(y2 * Float64(t * Float64(a * y5))); elseif (y1 <= 4e-8) tmp = Float64(j * Float64(-1.0 * Float64(b * Float64(x * y0)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * (y1 * y4)); tmp = 0.0; if (y1 <= -3.9e+61) tmp = t_1; elseif (y1 <= -1.1e-199) tmp = y2 * (t * (a * y5)); elseif (y1 <= 4e-8) tmp = j * (-1.0 * (b * (x * y0))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.9e+61], t$95$1, If[LessEqual[y1, -1.1e-199], N[(y2 * N[(t * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4e-8], N[(j * N[(-1.0 * N[(b * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{if}\;y1 \leq -3.9 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -1.1 \cdot 10^{-199}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq 4 \cdot 10^{-8}:\\
\;\;\;\;j \cdot \left(-1 \cdot \left(b \cdot \left(x \cdot y0\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y1 < -3.89999999999999987e61 or 4.0000000000000001e-8 < y1 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -3.89999999999999987e61 < y1 < -1.0999999999999999e-199Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
Taylor expanded in a around inf
lower-*.f6416.9
Applied rewrites16.9%
if -1.0999999999999999e-199 < y1 < 4.0000000000000001e-8Initial program 29.9%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* (* (* (- y4) c) t) y2)))
(if (<= c -8e+83)
t_1
(if (<= c -1.85e-261)
(* k (* y2 (* y1 y4)))
(if (<= c 5.1e+112) (* k (* y2 (* -1.0 (* y0 y5)))) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((-y4 * c) * t) * y2;
double tmp;
if (c <= -8e+83) {
tmp = t_1;
} else if (c <= -1.85e-261) {
tmp = k * (y2 * (y1 * y4));
} else if (c <= 5.1e+112) {
tmp = k * (y2 * (-1.0 * (y0 * y5)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = ((-y4 * c) * t) * y2
if (c <= (-8d+83)) then
tmp = t_1
else if (c <= (-1.85d-261)) then
tmp = k * (y2 * (y1 * y4))
else if (c <= 5.1d+112) then
tmp = k * (y2 * ((-1.0d0) * (y0 * y5)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = ((-y4 * c) * t) * y2;
double tmp;
if (c <= -8e+83) {
tmp = t_1;
} else if (c <= -1.85e-261) {
tmp = k * (y2 * (y1 * y4));
} else if (c <= 5.1e+112) {
tmp = k * (y2 * (-1.0 * (y0 * y5)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = ((-y4 * c) * t) * y2 tmp = 0 if c <= -8e+83: tmp = t_1 elif c <= -1.85e-261: tmp = k * (y2 * (y1 * y4)) elif c <= 5.1e+112: tmp = k * (y2 * (-1.0 * (y0 * y5))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(-y4) * c) * t) * y2) tmp = 0.0 if (c <= -8e+83) tmp = t_1; elseif (c <= -1.85e-261) tmp = Float64(k * Float64(y2 * Float64(y1 * y4))); elseif (c <= 5.1e+112) tmp = Float64(k * Float64(y2 * Float64(-1.0 * Float64(y0 * y5)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = ((-y4 * c) * t) * y2; tmp = 0.0; if (c <= -8e+83) tmp = t_1; elseif (c <= -1.85e-261) tmp = k * (y2 * (y1 * y4)); elseif (c <= 5.1e+112) tmp = k * (y2 * (-1.0 * (y0 * y5))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[((-y4) * c), $MachinePrecision] * t), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[c, -8e+83], t$95$1, If[LessEqual[c, -1.85e-261], N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[c, 5.1e+112], N[(k * N[(y2 * N[(-1.0 * N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := \left(\left(\left(-y4\right) \cdot c\right) \cdot t\right) \cdot y2\\
\mathbf{if}\;c \leq -8 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq -1.85 \cdot 10^{-261}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{elif}\;c \leq 5.1 \cdot 10^{+112}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(-1 \cdot \left(y0 \cdot y5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if c < -8.00000000000000025e83 or 5.10000000000000011e112 < c Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6416.2
Applied rewrites16.2%
if -8.00000000000000025e83 < c < -1.8500000000000001e-261Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -1.8500000000000001e-261 < c < 5.10000000000000011e112Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y5 -2.05e+71) (* i (* (* k y5) y)) (if (<= y5 3.5e+53) (* k (* y2 (* y1 y4))) (* -1.0 (* i (* j (* t y5)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.05e+71) {
tmp = i * ((k * y5) * y);
} else if (y5 <= 3.5e+53) {
tmp = k * (y2 * (y1 * y4));
} else {
tmp = -1.0 * (i * (j * (t * y5)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-2.05d+71)) then
tmp = i * ((k * y5) * y)
else if (y5 <= 3.5d+53) then
tmp = k * (y2 * (y1 * y4))
else
tmp = (-1.0d0) * (i * (j * (t * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.05e+71) {
tmp = i * ((k * y5) * y);
} else if (y5 <= 3.5e+53) {
tmp = k * (y2 * (y1 * y4));
} else {
tmp = -1.0 * (i * (j * (t * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -2.05e+71: tmp = i * ((k * y5) * y) elif y5 <= 3.5e+53: tmp = k * (y2 * (y1 * y4)) else: tmp = -1.0 * (i * (j * (t * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -2.05e+71) tmp = Float64(i * Float64(Float64(k * y5) * y)); elseif (y5 <= 3.5e+53) tmp = Float64(k * Float64(y2 * Float64(y1 * y4))); else tmp = Float64(-1.0 * Float64(i * Float64(j * Float64(t * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -2.05e+71) tmp = i * ((k * y5) * y); elseif (y5 <= 3.5e+53) tmp = k * (y2 * (y1 * y4)); else tmp = -1.0 * (i * (j * (t * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -2.05e+71], N[(i * N[(N[(k * y5), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.5e+53], N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(i * N[(j * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.05 \cdot 10^{+71}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y5\right) \cdot y\right)\\
\mathbf{elif}\;y5 \leq 3.5 \cdot 10^{+53}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(j \cdot \left(t \cdot y5\right)\right)\right)\\
\end{array}
if y5 < -2.0500000000000001e71Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
if -2.0500000000000001e71 < y5 < 3.50000000000000019e53Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if 3.50000000000000019e53 < y5 Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in x around 0
lower-*.f6417.1
Applied rewrites17.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 (* y1 y4)))))
(if (<= y1 -3.9e+61)
t_1
(if (<= y1 -4.7e-206)
(* y2 (* t (* a y5)))
(if (<= y1 1.3e-32) (* i (* (* k y5) y)) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -3.9e+61) {
tmp = t_1;
} else if (y1 <= -4.7e-206) {
tmp = y2 * (t * (a * y5));
} else if (y1 <= 1.3e-32) {
tmp = i * ((k * y5) * y);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y2 * (y1 * y4))
if (y1 <= (-3.9d+61)) then
tmp = t_1
else if (y1 <= (-4.7d-206)) then
tmp = y2 * (t * (a * y5))
else if (y1 <= 1.3d-32) then
tmp = i * ((k * y5) * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -3.9e+61) {
tmp = t_1;
} else if (y1 <= -4.7e-206) {
tmp = y2 * (t * (a * y5));
} else if (y1 <= 1.3e-32) {
tmp = i * ((k * y5) * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * (y1 * y4)) tmp = 0 if y1 <= -3.9e+61: tmp = t_1 elif y1 <= -4.7e-206: tmp = y2 * (t * (a * y5)) elif y1 <= 1.3e-32: tmp = i * ((k * y5) * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * Float64(y1 * y4))) tmp = 0.0 if (y1 <= -3.9e+61) tmp = t_1; elseif (y1 <= -4.7e-206) tmp = Float64(y2 * Float64(t * Float64(a * y5))); elseif (y1 <= 1.3e-32) tmp = Float64(i * Float64(Float64(k * y5) * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * (y1 * y4)); tmp = 0.0; if (y1 <= -3.9e+61) tmp = t_1; elseif (y1 <= -4.7e-206) tmp = y2 * (t * (a * y5)); elseif (y1 <= 1.3e-32) tmp = i * ((k * y5) * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -3.9e+61], t$95$1, If[LessEqual[y1, -4.7e-206], N[(y2 * N[(t * N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.3e-32], N[(i * N[(N[(k * y5), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{if}\;y1 \leq -3.9 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -4.7 \cdot 10^{-206}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(a \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq 1.3 \cdot 10^{-32}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y5\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y1 < -3.89999999999999987e61 or 1.2999999999999999e-32 < y1 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -3.89999999999999987e61 < y1 < -4.6999999999999999e-206Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
Taylor expanded in a around inf
lower-*.f6416.9
Applied rewrites16.9%
if -4.6999999999999999e-206 < y1 < 1.2999999999999999e-32Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* k (* y2 (* y1 y4)))))
(if (<= y1 -4.2e+61)
t_1
(if (<= y1 -4.7e-206)
(* y2 (* a (* t y5)))
(if (<= y1 1.12e-26) (* i (* (* k y5) y)) t_1)))))double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -4.2e+61) {
tmp = t_1;
} else if (y1 <= -4.7e-206) {
tmp = y2 * (a * (t * y5));
} else if (y1 <= 1.12e-26) {
tmp = i * ((k * y5) * y);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y2 * (y1 * y4))
if (y1 <= (-4.2d+61)) then
tmp = t_1
else if (y1 <= (-4.7d-206)) then
tmp = y2 * (a * (t * y5))
else if (y1 <= 1.12d-26) then
tmp = i * ((k * y5) * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -4.2e+61) {
tmp = t_1;
} else if (y1 <= -4.7e-206) {
tmp = y2 * (a * (t * y5));
} else if (y1 <= 1.12e-26) {
tmp = i * ((k * y5) * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * (y1 * y4)) tmp = 0 if y1 <= -4.2e+61: tmp = t_1 elif y1 <= -4.7e-206: tmp = y2 * (a * (t * y5)) elif y1 <= 1.12e-26: tmp = i * ((k * y5) * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * Float64(y1 * y4))) tmp = 0.0 if (y1 <= -4.2e+61) tmp = t_1; elseif (y1 <= -4.7e-206) tmp = Float64(y2 * Float64(a * Float64(t * y5))); elseif (y1 <= 1.12e-26) tmp = Float64(i * Float64(Float64(k * y5) * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * (y1 * y4)); tmp = 0.0; if (y1 <= -4.2e+61) tmp = t_1; elseif (y1 <= -4.7e-206) tmp = y2 * (a * (t * y5)); elseif (y1 <= 1.12e-26) tmp = i * ((k * y5) * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -4.2e+61], t$95$1, If[LessEqual[y1, -4.7e-206], N[(y2 * N[(a * N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.12e-26], N[(i * N[(N[(k * y5), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{if}\;y1 \leq -4.2 \cdot 10^{+61}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq -4.7 \cdot 10^{-206}:\\
\;\;\;\;y2 \cdot \left(a \cdot \left(t \cdot y5\right)\right)\\
\mathbf{elif}\;y1 \leq 1.12 \cdot 10^{-26}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y5\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y1 < -4.2000000000000002e61 or 1.12e-26 < y1 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -4.2000000000000002e61 < y1 < -4.6999999999999999e-206Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -4.6999999999999999e-206 < y1 < 1.12e-26Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* (* (* (- y4) c) t) y2))) (if (<= c -8e+83) t_1 (if (<= c 1.42e+76) (* k (* y1 (* y2 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 = ((-y4 * c) * t) * y2;
double tmp;
if (c <= -8e+83) {
tmp = t_1;
} else if (c <= 1.42e+76) {
tmp = k * (y1 * (y2 * 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 = ((-y4 * c) * t) * y2
if (c <= (-8d+83)) then
tmp = t_1
else if (c <= 1.42d+76) then
tmp = k * (y1 * (y2 * 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 = ((-y4 * c) * t) * y2;
double tmp;
if (c <= -8e+83) {
tmp = t_1;
} else if (c <= 1.42e+76) {
tmp = k * (y1 * (y2 * 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 = ((-y4 * c) * t) * y2 tmp = 0 if c <= -8e+83: tmp = t_1 elif c <= 1.42e+76: tmp = k * (y1 * (y2 * 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(Float64(Float64(Float64(-y4) * c) * t) * y2) tmp = 0.0 if (c <= -8e+83) tmp = t_1; elseif (c <= 1.42e+76) tmp = Float64(k * Float64(y1 * Float64(y2 * 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 = ((-y4 * c) * t) * y2; tmp = 0.0; if (c <= -8e+83) tmp = t_1; elseif (c <= 1.42e+76) tmp = k * (y1 * (y2 * 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[(N[(N[((-y4) * c), $MachinePrecision] * t), $MachinePrecision] * y2), $MachinePrecision]}, If[LessEqual[c, -8e+83], t$95$1, If[LessEqual[c, 1.42e+76], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := \left(\left(\left(-y4\right) \cdot c\right) \cdot t\right) \cdot y2\\
\mathbf{if}\;c \leq -8 \cdot 10^{+83}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;c \leq 1.42 \cdot 10^{+76}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if c < -8.00000000000000025e83 or 1.41999999999999996e76 < c Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.8
Applied rewrites25.8%
Taylor expanded in a around 0
lower-*.f64N/A
lower-*.f6416.2
Applied rewrites16.2%
lift-*.f64N/A
*-commutativeN/A
lower-*.f6416.2
Applied rewrites16.2%
if -8.00000000000000025e83 < c < 1.41999999999999996e76Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f64N/A
lower-*.f6417.9
Applied rewrites17.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* k (* y2 (* y1 y4))))) (if (<= y1 -8e-48) t_1 (if (<= y1 1.12e-26) (* i (* (* k y5) y)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -8e-48) {
tmp = t_1;
} else if (y1 <= 1.12e-26) {
tmp = i * ((k * y5) * y);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y2 * (y1 * y4))
if (y1 <= (-8d-48)) then
tmp = t_1
else if (y1 <= 1.12d-26) then
tmp = i * ((k * y5) * y)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y2 * (y1 * y4));
double tmp;
if (y1 <= -8e-48) {
tmp = t_1;
} else if (y1 <= 1.12e-26) {
tmp = i * ((k * y5) * y);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y2 * (y1 * y4)) tmp = 0 if y1 <= -8e-48: tmp = t_1 elif y1 <= 1.12e-26: tmp = i * ((k * y5) * y) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y2 * Float64(y1 * y4))) tmp = 0.0 if (y1 <= -8e-48) tmp = t_1; elseif (y1 <= 1.12e-26) tmp = Float64(i * Float64(Float64(k * y5) * y)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y2 * (y1 * y4)); tmp = 0.0; if (y1 <= -8e-48) tmp = t_1; elseif (y1 <= 1.12e-26) tmp = i * ((k * y5) * y); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -8e-48], t$95$1, If[LessEqual[y1, 1.12e-26], N[(i * N[(N[(k * y5), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{if}\;y1 \leq -8 \cdot 10^{-48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y1 \leq 1.12 \cdot 10^{-26}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y5\right) \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y1 < -7.9999999999999998e-48 or 1.12e-26 < y1 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f6417.7
Applied rewrites17.7%
if -7.9999999999999998e-48 < y1 < 1.12e-26Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* k (* y1 (* y2 y4))))) (if (<= y4 -1.4e-48) t_1 (if (<= y4 9e+38) (* i (* (* k y) y5)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y1 * (y2 * y4));
double tmp;
if (y4 <= -1.4e-48) {
tmp = t_1;
} else if (y4 <= 9e+38) {
tmp = i * ((k * y) * y5);
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = k * (y1 * (y2 * y4))
if (y4 <= (-1.4d-48)) then
tmp = t_1
else if (y4 <= 9d+38) then
tmp = i * ((k * y) * y5)
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = k * (y1 * (y2 * y4));
double tmp;
if (y4 <= -1.4e-48) {
tmp = t_1;
} else if (y4 <= 9e+38) {
tmp = i * ((k * y) * y5);
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = k * (y1 * (y2 * y4)) tmp = 0 if y4 <= -1.4e-48: tmp = t_1 elif y4 <= 9e+38: tmp = i * ((k * y) * y5) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(k * Float64(y1 * Float64(y2 * y4))) tmp = 0.0 if (y4 <= -1.4e-48) tmp = t_1; elseif (y4 <= 9e+38) tmp = Float64(i * Float64(Float64(k * y) * y5)); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = k * (y1 * (y2 * y4)); tmp = 0.0; if (y4 <= -1.4e-48) tmp = t_1; elseif (y4 <= 9e+38) tmp = i * ((k * y) * y5); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y4, -1.4e-48], t$95$1, If[LessEqual[y4, 9e+38], N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
t_1 := k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{if}\;y4 \leq -1.4 \cdot 10^{-48}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y4 \leq 9 \cdot 10^{+38}:\\
\;\;\;\;i \cdot \left(\left(k \cdot y\right) \cdot y5\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
if y4 < -1.40000000000000002e-48 or 8.99999999999999961e38 < y4 Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
Taylor expanded in y0 around 0
lower-*.f64N/A
lower-*.f6417.9
Applied rewrites17.9%
if -1.40000000000000002e-48 < y4 < 8.99999999999999961e38Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
lower-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* (* k y5) y)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * ((k * y5) * y);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * ((k * y5) * y)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * ((k * y5) * y);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * ((k * y5) * y)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(Float64(k * y5) * y)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * ((k * y5) * y); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(N[(k * y5), $MachinePrecision] * y), $MachinePrecision]), $MachinePrecision]
i \cdot \left(\left(k \cdot y5\right) \cdot y\right)
Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
lift-*.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*r*N/A
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* (* k y) y5)))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * ((k * y) * y5);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * ((k * y) * y5)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * ((k * y) * y5);
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * ((k * y) * y5)
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(Float64(k * y) * y5)) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * ((k * y) * y5); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(N[(k * y), $MachinePrecision] * y5), $MachinePrecision]), $MachinePrecision]
i \cdot \left(\left(k \cdot y\right) \cdot y5\right)
Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
lift-*.f64N/A
lift-*.f64N/A
associate-*r*N/A
lift-*.f64N/A
lower-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* k (* y y5))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (k * (y * y5));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * (k * (y * y5))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (k * (y * y5));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * (k * (y * y5))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(k * Float64(y * y5))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * (k * (y * y5)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
i \cdot \left(k \cdot \left(y \cdot y5\right)\right)
Initial program 29.9%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f6416.9
Applied rewrites16.9%
herbie shell --seed 2025172
(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)))))