
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0))); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
Herbie found 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]
\begin{array}{l}
\\
\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)
\end{array}
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1)))
(t_2 (- (* c y4) (* a y5)))
(t_3 (- (* k y2) (* j y3)))
(t_4 (- (* j t) (* k y)))
(t_5 (- (* x y2) (* y3 z)))
(t_6 (- (* j x) (* k z)))
(t_7 (* y1 (- (fma -1.0 (* a t_5) (* y4 t_3)) (* -1.0 (* i t_6)))))
(t_8 (- (* y1 y4) (* y0 y5))))
(if (<= y1 -1.8e+193)
t_7
(if (<= y1 -2.7e+155)
(*
y
(-
(fma -1.0 (* k (- (* b y4) (* i y5))) (* x (- (* a b) (* c i))))
(* -1.0 (* y3 t_2))))
(if (<= y1 -5.3e-92)
(* y2 (- (fma k t_8 (* x t_1)) (* t t_2)))
(if (<= y1 1.8e-265)
(* y0 (- (fma -1.0 (* y5 t_3) (* c t_5)) (* b t_6)))
(if (<= y1 1.9e-194)
(*
-1.0
(* y5 (- (fma i t_4 (* y0 t_3)) (* a (- (* t y2) (* y y3))))))
(if (<= y1 4.3e+43)
(* -1.0 (* y3 (- (fma j t_8 (* z t_1)) (* y t_2))))
(if (<= y1 8.5e+176)
(* b (- (fma a (- (* x y) (* t z)) (* y4 t_4)) (* y0 t_6)))
t_7)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (c * y4) - (a * y5);
double t_3 = (k * y2) - (j * y3);
double t_4 = (j * t) - (k * y);
double t_5 = (x * y2) - (y3 * z);
double t_6 = (j * x) - (k * z);
double t_7 = y1 * (fma(-1.0, (a * t_5), (y4 * t_3)) - (-1.0 * (i * t_6)));
double t_8 = (y1 * y4) - (y0 * y5);
double tmp;
if (y1 <= -1.8e+193) {
tmp = t_7;
} else if (y1 <= -2.7e+155) {
tmp = y * (fma(-1.0, (k * ((b * y4) - (i * y5))), (x * ((a * b) - (c * i)))) - (-1.0 * (y3 * t_2)));
} else if (y1 <= -5.3e-92) {
tmp = y2 * (fma(k, t_8, (x * t_1)) - (t * t_2));
} else if (y1 <= 1.8e-265) {
tmp = y0 * (fma(-1.0, (y5 * t_3), (c * t_5)) - (b * t_6));
} else if (y1 <= 1.9e-194) {
tmp = -1.0 * (y5 * (fma(i, t_4, (y0 * t_3)) - (a * ((t * y2) - (y * y3)))));
} else if (y1 <= 4.3e+43) {
tmp = -1.0 * (y3 * (fma(j, t_8, (z * t_1)) - (y * t_2)));
} else if (y1 <= 8.5e+176) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_4)) - (y0 * t_6));
} else {
tmp = t_7;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(c * y4) - Float64(a * y5)) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(Float64(j * t) - Float64(k * y)) t_5 = Float64(Float64(x * y2) - Float64(y3 * z)) t_6 = Float64(Float64(j * x) - Float64(k * z)) t_7 = Float64(y1 * Float64(fma(-1.0, Float64(a * t_5), Float64(y4 * t_3)) - Float64(-1.0 * Float64(i * t_6)))) t_8 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (y1 <= -1.8e+193) tmp = t_7; elseif (y1 <= -2.7e+155) tmp = Float64(y * Float64(fma(-1.0, Float64(k * Float64(Float64(b * y4) - Float64(i * y5))), Float64(x * Float64(Float64(a * b) - Float64(c * i)))) - Float64(-1.0 * Float64(y3 * t_2)))); elseif (y1 <= -5.3e-92) tmp = Float64(y2 * Float64(fma(k, t_8, Float64(x * t_1)) - Float64(t * t_2))); elseif (y1 <= 1.8e-265) tmp = Float64(y0 * Float64(fma(-1.0, Float64(y5 * t_3), Float64(c * t_5)) - Float64(b * t_6))); elseif (y1 <= 1.9e-194) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_4, Float64(y0 * t_3)) - Float64(a * Float64(Float64(t * y2) - Float64(y * y3)))))); elseif (y1 <= 4.3e+43) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_8, Float64(z * t_1)) - Float64(y * t_2)))); elseif (y1 <= 8.5e+176) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_4)) - Float64(y0 * t_6))); else tmp = t_7; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(y1 * N[(N[(-1.0 * N[(a * t$95$5), $MachinePrecision] + N[(y4 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(i * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -1.8e+193], t$95$7, If[LessEqual[y1, -2.7e+155], N[(y * N[(N[(-1.0 * N[(k * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(y3 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -5.3e-92], N[(y2 * N[(N[(k * t$95$8 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e-265], N[(y0 * N[(N[(-1.0 * N[(y5 * t$95$3), $MachinePrecision] + N[(c * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.9e-194], N[(-1.0 * N[(y5 * N[(N[(i * t$95$4 + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(a * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4.3e+43], N[(-1.0 * N[(y3 * N[(N[(j * t$95$8 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 8.5e+176], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$7]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := c \cdot y4 - a \cdot y5\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := j \cdot t - k \cdot y\\
t_5 := x \cdot y2 - y3 \cdot z\\
t_6 := j \cdot x - k \cdot z\\
t_7 := y1 \cdot \left(\mathsf{fma}\left(-1, a \cdot t\_5, y4 \cdot t\_3\right) - -1 \cdot \left(i \cdot t\_6\right)\right)\\
t_8 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;y1 \leq -1.8 \cdot 10^{+193}:\\
\;\;\;\;t\_7\\
\mathbf{elif}\;y1 \leq -2.7 \cdot 10^{+155}:\\
\;\;\;\;y \cdot \left(\mathsf{fma}\left(-1, k \cdot \left(b \cdot y4 - i \cdot y5\right), x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot t\_2\right)\right)\\
\mathbf{elif}\;y1 \leq -5.3 \cdot 10^{-92}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_8, x \cdot t\_1\right) - t \cdot t\_2\right)\\
\mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-265}:\\
\;\;\;\;y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot t\_3, c \cdot t\_5\right) - b \cdot t\_6\right)\\
\mathbf{elif}\;y1 \leq 1.9 \cdot 10^{-194}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_4, y0 \cdot t\_3\right) - a \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\right)\\
\mathbf{elif}\;y1 \leq 4.3 \cdot 10^{+43}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_8, z \cdot t\_1\right) - y \cdot t\_2\right)\right)\\
\mathbf{elif}\;y1 \leq 8.5 \cdot 10^{+176}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_4\right) - y0 \cdot t\_6\right)\\
\mathbf{else}:\\
\;\;\;\;t\_7\\
\end{array}
\end{array}
if y1 < -1.8e193 or 8.4999999999999995e176 < y1 Initial program 20.2%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites60.8%
if -1.8e193 < y1 < -2.69999999999999994e155Initial program 23.1%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites32.3%
if -2.69999999999999994e155 < y1 < -5.30000000000000029e-92Initial program 31.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
if -5.30000000000000029e-92 < y1 < 1.8000000000000001e-265Initial program 36.4%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.7%
if 1.8000000000000001e-265 < y1 < 1.9000000000000001e-194Initial program 31.5%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if 1.9000000000000001e-194 < y1 < 4.3e43Initial program 33.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if 4.3e43 < y1 < 8.4999999999999995e176Initial program 26.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t y2) (* y y3)))
(t_2 (- (* k y2) (* j y3)))
(t_3
(+
(-
(+
(+
(-
(* (- (* 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_1 (- (* y4 c) (* y5 a))))
(* t_2 (- (* y4 y1) (* y5 y0))))))
(if (<= t_3 INFINITY)
t_3
(* y4 (- (fma b (- (* j t) (* k y)) (* y1 t_2)) (* 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 = (t * y2) - (y * y3);
double t_2 = (k * y2) - (j * y3);
double t_3 = (((((((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_1 * ((y4 * c) - (y5 * a)))) + (t_2 * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_3 <= ((double) INFINITY)) {
tmp = t_3;
} else {
tmp = y4 * (fma(b, ((j * t) - (k * y)), (y1 * t_2)) - (c * 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(t * y2) - Float64(y * y3)) t_2 = Float64(Float64(k * y2) - Float64(j * y3)) t_3 = 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(t_1 * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(t_2 * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) tmp = 0.0 if (t_3 <= Inf) tmp = t_3; else tmp = Float64(y4 * Float64(fma(b, Float64(Float64(j * t) - Float64(k * y)), Float64(y1 * t_2)) - Float64(c * t_1))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = 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[(t$95$1 * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(t$95$2 * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, Infinity], t$95$3, N[(y4 * N[(N[(b * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] + N[(y1 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := k \cdot y2 - j \cdot y3\\
t_3 := \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) - t\_1 \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + t\_2 \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_3 \leq \infty:\\
\;\;\;\;t\_3\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, j \cdot t - k \cdot y, y1 \cdot t\_2\right) - c \cdot t\_1\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 91.2%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 0.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* t y2) (* y y3)))
(t_2 (- (* y1 y4) (* y0 y5)))
(t_3 (- (* k y2) (* j y3)))
(t_4 (- (* c y0) (* a y1)))
(t_5 (- (* j t) (* k y)))
(t_6 (- (* c y4) (* a y5)))
(t_7 (- (* j x) (* k z))))
(if (<= y1 -7.5e+194)
(* k (* y2 t_2))
(if (<= y1 -2.7e+155)
(*
y
(-
(fma -1.0 (* k (- (* b y4) (* i y5))) (* x (- (* a b) (* c i))))
(* -1.0 (* y3 t_6))))
(if (<= y1 -5.3e-92)
(* y2 (- (fma k t_2 (* x t_4)) (* t t_6)))
(if (<= y1 1.8e-265)
(*
y0
(- (fma -1.0 (* y5 t_3) (* c (- (* x y2) (* y3 z)))) (* b t_7)))
(if (<= y1 1.9e-194)
(* -1.0 (* y5 (- (fma i t_5 (* y0 t_3)) (* a t_1))))
(if (<= y1 4.3e+43)
(* -1.0 (* y3 (- (fma j t_2 (* z t_4)) (* y t_6))))
(if (<= y1 1.1e+236)
(* b (- (fma a (- (* x y) (* t z)) (* y4 t_5)) (* y0 t_7)))
(* y4 (- (fma b t_5 (* y1 t_3)) (* 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 = (t * y2) - (y * y3);
double t_2 = (y1 * y4) - (y0 * y5);
double t_3 = (k * y2) - (j * y3);
double t_4 = (c * y0) - (a * y1);
double t_5 = (j * t) - (k * y);
double t_6 = (c * y4) - (a * y5);
double t_7 = (j * x) - (k * z);
double tmp;
if (y1 <= -7.5e+194) {
tmp = k * (y2 * t_2);
} else if (y1 <= -2.7e+155) {
tmp = y * (fma(-1.0, (k * ((b * y4) - (i * y5))), (x * ((a * b) - (c * i)))) - (-1.0 * (y3 * t_6)));
} else if (y1 <= -5.3e-92) {
tmp = y2 * (fma(k, t_2, (x * t_4)) - (t * t_6));
} else if (y1 <= 1.8e-265) {
tmp = y0 * (fma(-1.0, (y5 * t_3), (c * ((x * y2) - (y3 * z)))) - (b * t_7));
} else if (y1 <= 1.9e-194) {
tmp = -1.0 * (y5 * (fma(i, t_5, (y0 * t_3)) - (a * t_1)));
} else if (y1 <= 4.3e+43) {
tmp = -1.0 * (y3 * (fma(j, t_2, (z * t_4)) - (y * t_6)));
} else if (y1 <= 1.1e+236) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_5)) - (y0 * t_7));
} else {
tmp = y4 * (fma(b, t_5, (y1 * t_3)) - (c * 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(t * y2) - Float64(y * y3)) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(Float64(c * y0) - Float64(a * y1)) t_5 = Float64(Float64(j * t) - Float64(k * y)) t_6 = Float64(Float64(c * y4) - Float64(a * y5)) t_7 = Float64(Float64(j * x) - Float64(k * z)) tmp = 0.0 if (y1 <= -7.5e+194) tmp = Float64(k * Float64(y2 * t_2)); elseif (y1 <= -2.7e+155) tmp = Float64(y * Float64(fma(-1.0, Float64(k * Float64(Float64(b * y4) - Float64(i * y5))), Float64(x * Float64(Float64(a * b) - Float64(c * i)))) - Float64(-1.0 * Float64(y3 * t_6)))); elseif (y1 <= -5.3e-92) tmp = Float64(y2 * Float64(fma(k, t_2, Float64(x * t_4)) - Float64(t * t_6))); elseif (y1 <= 1.8e-265) tmp = Float64(y0 * Float64(fma(-1.0, Float64(y5 * t_3), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))) - Float64(b * t_7))); elseif (y1 <= 1.9e-194) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_5, Float64(y0 * t_3)) - Float64(a * t_1)))); elseif (y1 <= 4.3e+43) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_2, Float64(z * t_4)) - Float64(y * t_6)))); elseif (y1 <= 1.1e+236) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_5)) - Float64(y0 * t_7))); else tmp = Float64(y4 * Float64(fma(b, t_5, Float64(y1 * t_3)) - Float64(c * t_1))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -7.5e+194], N[(k * N[(y2 * t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -2.7e+155], N[(y * N[(N[(-1.0 * N[(k * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(y3 * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, -5.3e-92], N[(y2 * N[(N[(k * t$95$2 + N[(x * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e-265], N[(y0 * N[(N[(-1.0 * N[(y5 * t$95$3), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.9e-194], N[(-1.0 * N[(y5 * N[(N[(i * t$95$5 + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4.3e+43], N[(-1.0 * N[(y3 * N[(N[(j * t$95$2 + N[(z * t$95$4), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$6), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.1e+236], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(b * t$95$5 + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := c \cdot y0 - a \cdot y1\\
t_5 := j \cdot t - k \cdot y\\
t_6 := c \cdot y4 - a \cdot y5\\
t_7 := j \cdot x - k \cdot z\\
\mathbf{if}\;y1 \leq -7.5 \cdot 10^{+194}:\\
\;\;\;\;k \cdot \left(y2 \cdot t\_2\right)\\
\mathbf{elif}\;y1 \leq -2.7 \cdot 10^{+155}:\\
\;\;\;\;y \cdot \left(\mathsf{fma}\left(-1, k \cdot \left(b \cdot y4 - i \cdot y5\right), x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(y3 \cdot t\_6\right)\right)\\
\mathbf{elif}\;y1 \leq -5.3 \cdot 10^{-92}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_2, x \cdot t\_4\right) - t \cdot t\_6\right)\\
\mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-265}:\\
\;\;\;\;y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot t\_3, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot t\_7\right)\\
\mathbf{elif}\;y1 \leq 1.9 \cdot 10^{-194}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_5, y0 \cdot t\_3\right) - a \cdot t\_1\right)\right)\\
\mathbf{elif}\;y1 \leq 4.3 \cdot 10^{+43}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_2, z \cdot t\_4\right) - y \cdot t\_6\right)\right)\\
\mathbf{elif}\;y1 \leq 1.1 \cdot 10^{+236}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_5\right) - y0 \cdot t\_7\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_5, y1 \cdot t\_3\right) - c \cdot t\_1\right)\\
\end{array}
\end{array}
if y1 < -7.5000000000000002e194Initial program 18.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6423.7
Applied rewrites23.7%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.0
Applied rewrites39.0%
if -7.5000000000000002e194 < y1 < -2.69999999999999994e155Initial program 23.8%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites33.4%
if -2.69999999999999994e155 < y1 < -5.30000000000000029e-92Initial program 31.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
if -5.30000000000000029e-92 < y1 < 1.8000000000000001e-265Initial program 36.4%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.7%
if 1.8000000000000001e-265 < y1 < 1.9000000000000001e-194Initial program 31.5%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if 1.9000000000000001e-194 < y1 < 4.3e43Initial program 33.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if 4.3e43 < y1 < 1.09999999999999989e236Initial program 26.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
if 1.09999999999999989e236 < y1 Initial program 18.4%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites42.1%
(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 (- (* j t) (* k y)))
(t_3 (- (* y1 y4) (* y0 y5)))
(t_4 (- (* c y4) (* a y5)))
(t_5 (* -1.0 (* y3 (- (fma j t_3 (* z t_1)) (* y t_4))))))
(if (<= y3 -9.5e+110)
t_5
(if (<= y3 -7.2e-71)
(*
y4
(-
(fma b t_2 (* y1 (- (* k y2) (* j y3))))
(* c (- (* t y2) (* y y3)))))
(if (<= y3 2.25e-302)
(*
t
(-
(fma -1.0 (* z (- (* a b) (* c i))) (* j (- (* b y4) (* i y5))))
(* y2 t_4)))
(if (<= y3 1.25e-194)
(* y2 (- (fma k t_3 (* x t_1)) (* t t_4)))
(if (<= y3 4.8e+88)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 t_2))
(* y0 (- (* j x) (* k z)))))
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 = (j * t) - (k * y);
double t_3 = (y1 * y4) - (y0 * y5);
double t_4 = (c * y4) - (a * y5);
double t_5 = -1.0 * (y3 * (fma(j, t_3, (z * t_1)) - (y * t_4)));
double tmp;
if (y3 <= -9.5e+110) {
tmp = t_5;
} else if (y3 <= -7.2e-71) {
tmp = y4 * (fma(b, t_2, (y1 * ((k * y2) - (j * y3)))) - (c * ((t * y2) - (y * y3))));
} else if (y3 <= 2.25e-302) {
tmp = t * (fma(-1.0, (z * ((a * b) - (c * i))), (j * ((b * y4) - (i * y5)))) - (y2 * t_4));
} else if (y3 <= 1.25e-194) {
tmp = y2 * (fma(k, t_3, (x * t_1)) - (t * t_4));
} else if (y3 <= 4.8e+88) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_2)) - (y0 * ((j * x) - (k * z))));
} 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(j * t) - Float64(k * y)) t_3 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_4 = Float64(Float64(c * y4) - Float64(a * y5)) t_5 = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_3, Float64(z * t_1)) - Float64(y * t_4)))) tmp = 0.0 if (y3 <= -9.5e+110) tmp = t_5; elseif (y3 <= -7.2e-71) tmp = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y3 <= 2.25e-302) tmp = Float64(t * Float64(fma(-1.0, Float64(z * Float64(Float64(a * b) - Float64(c * i))), Float64(j * Float64(Float64(b * y4) - Float64(i * y5)))) - Float64(y2 * t_4))); elseif (y3 <= 1.25e-194) tmp = Float64(y2 * Float64(fma(k, t_3, Float64(x * t_1)) - Float64(t * t_4))); elseif (y3 <= 4.8e+88) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_2)) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); 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[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(-1.0 * N[(y3 * N[(N[(j * t$95$3 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -9.5e+110], t$95$5, If[LessEqual[y3, -7.2e-71], N[(y4 * N[(N[(b * t$95$2 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.25e-302], N[(t * N[(N[(-1.0 * N[(z * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(j * N[(N[(b * y4), $MachinePrecision] - N[(i * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y2 * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.25e-194], N[(y2 * N[(N[(k * t$95$3 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+88], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$5]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := j \cdot t - k \cdot y\\
t_3 := y1 \cdot y4 - y0 \cdot y5\\
t_4 := c \cdot y4 - a \cdot y5\\
t_5 := -1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_3, z \cdot t\_1\right) - y \cdot t\_4\right)\right)\\
\mathbf{if}\;y3 \leq -9.5 \cdot 10^{+110}:\\
\;\;\;\;t\_5\\
\mathbf{elif}\;y3 \leq -7.2 \cdot 10^{-71}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 2.25 \cdot 10^{-302}:\\
\;\;\;\;t \cdot \left(\mathsf{fma}\left(-1, z \cdot \left(a \cdot b - c \cdot i\right), j \cdot \left(b \cdot y4 - i \cdot y5\right)\right) - y2 \cdot t\_4\right)\\
\mathbf{elif}\;y3 \leq 1.25 \cdot 10^{-194}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_3, x \cdot t\_1\right) - t \cdot t\_4\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+88}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_2\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_5\\
\end{array}
\end{array}
if y3 < -9.49999999999999939e110 or 4.7999999999999998e88 < y3 Initial program 22.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.0%
if -9.49999999999999939e110 < y3 < -7.2e-71Initial program 33.2%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
if -7.2e-71 < y3 < 2.25000000000000005e-302Initial program 35.1%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.2%
if 2.25000000000000005e-302 < y3 < 1.2500000000000001e-194Initial program 32.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
if 1.2500000000000001e-194 < y3 < 4.7999999999999998e88Initial program 32.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 (- (* t y2) (* y y3)))
(t_2 (- (* c y0) (* a y1)))
(t_3 (- (* k y2) (* j y3)))
(t_4 (- (* c y4) (* a y5)))
(t_5 (- (* y1 y4) (* y0 y5)))
(t_6 (- (* j t) (* k y)))
(t_7 (- (* j x) (* k z))))
(if (<= y1 -5.3e-92)
(* y2 (- (fma k t_5 (* x t_2)) (* t t_4)))
(if (<= y1 1.8e-265)
(* y0 (- (fma -1.0 (* y5 t_3) (* c (- (* x y2) (* y3 z)))) (* b t_7)))
(if (<= y1 1.9e-194)
(* -1.0 (* y5 (- (fma i t_6 (* y0 t_3)) (* a t_1))))
(if (<= y1 4.3e+43)
(* -1.0 (* y3 (- (fma j t_5 (* z t_2)) (* y t_4))))
(if (<= y1 1.1e+236)
(* b (- (fma a (- (* x y) (* t z)) (* y4 t_6)) (* y0 t_7)))
(* y4 (- (fma b t_6 (* y1 t_3)) (* 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 = (t * y2) - (y * y3);
double t_2 = (c * y0) - (a * y1);
double t_3 = (k * y2) - (j * y3);
double t_4 = (c * y4) - (a * y5);
double t_5 = (y1 * y4) - (y0 * y5);
double t_6 = (j * t) - (k * y);
double t_7 = (j * x) - (k * z);
double tmp;
if (y1 <= -5.3e-92) {
tmp = y2 * (fma(k, t_5, (x * t_2)) - (t * t_4));
} else if (y1 <= 1.8e-265) {
tmp = y0 * (fma(-1.0, (y5 * t_3), (c * ((x * y2) - (y3 * z)))) - (b * t_7));
} else if (y1 <= 1.9e-194) {
tmp = -1.0 * (y5 * (fma(i, t_6, (y0 * t_3)) - (a * t_1)));
} else if (y1 <= 4.3e+43) {
tmp = -1.0 * (y3 * (fma(j, t_5, (z * t_2)) - (y * t_4)));
} else if (y1 <= 1.1e+236) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_6)) - (y0 * t_7));
} else {
tmp = y4 * (fma(b, t_6, (y1 * t_3)) - (c * 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(t * y2) - Float64(y * y3)) t_2 = Float64(Float64(c * y0) - Float64(a * y1)) t_3 = Float64(Float64(k * y2) - Float64(j * y3)) t_4 = Float64(Float64(c * y4) - Float64(a * y5)) t_5 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) t_6 = Float64(Float64(j * t) - Float64(k * y)) t_7 = Float64(Float64(j * x) - Float64(k * z)) tmp = 0.0 if (y1 <= -5.3e-92) tmp = Float64(y2 * Float64(fma(k, t_5, Float64(x * t_2)) - Float64(t * t_4))); elseif (y1 <= 1.8e-265) tmp = Float64(y0 * Float64(fma(-1.0, Float64(y5 * t_3), Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))) - Float64(b * t_7))); elseif (y1 <= 1.9e-194) tmp = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_6, Float64(y0 * t_3)) - Float64(a * t_1)))); elseif (y1 <= 4.3e+43) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_5, Float64(z * t_2)) - Float64(y * t_4)))); elseif (y1 <= 1.1e+236) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_6)) - Float64(y0 * t_7))); else tmp = Float64(y4 * Float64(fma(b, t_6, Float64(y1 * t_3)) - Float64(c * t_1))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$7 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y1, -5.3e-92], N[(y2 * N[(N[(k * t$95$5 + N[(x * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(t * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.8e-265], N[(y0 * N[(N[(-1.0 * N[(y5 * t$95$3), $MachinePrecision] + N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.9e-194], N[(-1.0 * N[(y5 * N[(N[(i * t$95$6 + N[(y0 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 4.3e+43], N[(-1.0 * N[(y3 * N[(N[(j * t$95$5 + N[(z * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y1, 1.1e+236], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$6), $MachinePrecision]), $MachinePrecision] - N[(y0 * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(N[(b * t$95$6 + N[(y1 * t$95$3), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := t \cdot y2 - y \cdot y3\\
t_2 := c \cdot y0 - a \cdot y1\\
t_3 := k \cdot y2 - j \cdot y3\\
t_4 := c \cdot y4 - a \cdot y5\\
t_5 := y1 \cdot y4 - y0 \cdot y5\\
t_6 := j \cdot t - k \cdot y\\
t_7 := j \cdot x - k \cdot z\\
\mathbf{if}\;y1 \leq -5.3 \cdot 10^{-92}:\\
\;\;\;\;y2 \cdot \left(\mathsf{fma}\left(k, t\_5, x \cdot t\_2\right) - t \cdot t\_4\right)\\
\mathbf{elif}\;y1 \leq 1.8 \cdot 10^{-265}:\\
\;\;\;\;y0 \cdot \left(\mathsf{fma}\left(-1, y5 \cdot t\_3, c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right) - b \cdot t\_7\right)\\
\mathbf{elif}\;y1 \leq 1.9 \cdot 10^{-194}:\\
\;\;\;\;-1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_6, y0 \cdot t\_3\right) - a \cdot t\_1\right)\right)\\
\mathbf{elif}\;y1 \leq 4.3 \cdot 10^{+43}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_5, z \cdot t\_2\right) - y \cdot t\_4\right)\right)\\
\mathbf{elif}\;y1 \leq 1.1 \cdot 10^{+236}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_6\right) - y0 \cdot t\_7\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_6, y1 \cdot t\_3\right) - c \cdot t\_1\right)\\
\end{array}
\end{array}
if y1 < -5.30000000000000029e-92Initial program 26.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
if -5.30000000000000029e-92 < y1 < 1.8000000000000001e-265Initial program 36.4%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.7%
if 1.8000000000000001e-265 < y1 < 1.9000000000000001e-194Initial program 31.5%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if 1.9000000000000001e-194 < y1 < 4.3e43Initial program 33.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
if 4.3e43 < y1 < 1.09999999999999989e236Initial program 26.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.8%
if 1.09999999999999989e236 < y1 Initial program 18.4%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites42.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* k y2) (* j y3)))
(t_2 (- (* j t) (* k y)))
(t_3 (- (* t y2) (* y y3)))
(t_4 (* -1.0 (* y5 (- (fma i t_2 (* y0 t_1)) (* a t_3))))))
(if (<= y5 -5e+165)
t_4
(if (<= y5 -3.8e+97)
(*
-1.0
(*
y3
(-
(fma j (- (* y1 y4) (* y0 y5)) (* z (- (* c y0) (* a y1))))
(* y (- (* c y4) (* a y5))))))
(if (<= y5 4e-115)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 t_2))
(* y0 (- (* j x) (* k z)))))
(if (<= y5 5.5e+140)
(* y4 (- (fma b t_2 (* y1 t_1)) (* c t_3)))
t_4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (k * y2) - (j * y3);
double t_2 = (j * t) - (k * y);
double t_3 = (t * y2) - (y * y3);
double t_4 = -1.0 * (y5 * (fma(i, t_2, (y0 * t_1)) - (a * t_3)));
double tmp;
if (y5 <= -5e+165) {
tmp = t_4;
} else if (y5 <= -3.8e+97) {
tmp = -1.0 * (y3 * (fma(j, ((y1 * y4) - (y0 * y5)), (z * ((c * y0) - (a * y1)))) - (y * ((c * y4) - (a * y5)))));
} else if (y5 <= 4e-115) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_2)) - (y0 * ((j * x) - (k * z))));
} else if (y5 <= 5.5e+140) {
tmp = y4 * (fma(b, t_2, (y1 * t_1)) - (c * t_3));
} else {
tmp = t_4;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(k * y2) - Float64(j * y3)) t_2 = Float64(Float64(j * t) - Float64(k * y)) t_3 = Float64(Float64(t * y2) - Float64(y * y3)) t_4 = Float64(-1.0 * Float64(y5 * Float64(fma(i, t_2, Float64(y0 * t_1)) - Float64(a * t_3)))) tmp = 0.0 if (y5 <= -5e+165) tmp = t_4; elseif (y5 <= -3.8e+97) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(z * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif (y5 <= 4e-115) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_2)) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); elseif (y5 <= 5.5e+140) tmp = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * t_1)) - Float64(c * t_3))); else tmp = t_4; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(-1.0 * N[(y5 * N[(N[(i * t$95$2 + N[(y0 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(a * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -5e+165], t$95$4, If[LessEqual[y5, -3.8e+97], N[(-1.0 * N[(y3 * N[(N[(j * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 4e-115], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.5e+140], N[(y4 * N[(N[(b * t$95$2 + N[(y1 * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(c * t$95$3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$4]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := k \cdot y2 - j \cdot y3\\
t_2 := j \cdot t - k \cdot y\\
t_3 := t \cdot y2 - y \cdot y3\\
t_4 := -1 \cdot \left(y5 \cdot \left(\mathsf{fma}\left(i, t\_2, y0 \cdot t\_1\right) - a \cdot t\_3\right)\right)\\
\mathbf{if}\;y5 \leq -5 \cdot 10^{+165}:\\
\;\;\;\;t\_4\\
\mathbf{elif}\;y5 \leq -3.8 \cdot 10^{+97}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 4 \cdot 10^{-115}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_2\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 5.5 \cdot 10^{+140}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot t\_1\right) - c \cdot t\_3\right)\\
\mathbf{else}:\\
\;\;\;\;t\_4\\
\end{array}
\end{array}
if y5 < -4.9999999999999997e165 or 5.5e140 < y5 Initial program 21.7%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.7%
if -4.9999999999999997e165 < y5 < -3.80000000000000036e97Initial program 26.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.2%
if -3.80000000000000036e97 < y5 < 4.0000000000000002e-115Initial program 32.7%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.9%
if 4.0000000000000002e-115 < y5 < 5.5e140Initial program 33.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1
(*
-1.0
(*
y3
(-
(fma j (- (* y1 y4) (* y0 y5)) (* z (- (* c y0) (* a y1))))
(* y (- (* c y4) (* a y5)))))))
(t_2 (- (* j t) (* k y))))
(if (<= y3 -9.5e+110)
t_1
(if (<= y3 -2.7e-165)
(*
y4
(-
(fma b t_2 (* y1 (- (* k y2) (* j y3))))
(* c (- (* t y2) (* y y3)))))
(if (<= y3 9.8e-260)
(* -1.0 (* z (* k (- (* i y1) (* b y0)))))
(if (<= y3 4.8e+88)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 t_2))
(* y0 (- (* 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 = -1.0 * (y3 * (fma(j, ((y1 * y4) - (y0 * y5)), (z * ((c * y0) - (a * y1)))) - (y * ((c * y4) - (a * y5)))));
double t_2 = (j * t) - (k * y);
double tmp;
if (y3 <= -9.5e+110) {
tmp = t_1;
} else if (y3 <= -2.7e-165) {
tmp = y4 * (fma(b, t_2, (y1 * ((k * y2) - (j * y3)))) - (c * ((t * y2) - (y * y3))));
} else if (y3 <= 9.8e-260) {
tmp = -1.0 * (z * (k * ((i * y1) - (b * y0))));
} else if (y3 <= 4.8e+88) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * t_2)) - (y0 * ((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(-1.0 * Float64(y3 * Float64(fma(j, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(z * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))))) t_2 = Float64(Float64(j * t) - Float64(k * y)) tmp = 0.0 if (y3 <= -9.5e+110) tmp = t_1; elseif (y3 <= -2.7e-165) tmp = Float64(y4 * Float64(fma(b, t_2, Float64(y1 * Float64(Float64(k * y2) - Float64(j * y3)))) - Float64(c * Float64(Float64(t * y2) - Float64(y * y3))))); elseif (y3 <= 9.8e-260) tmp = Float64(-1.0 * Float64(z * Float64(k * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y3 <= 4.8e+88) tmp = Float64(b * Float64(fma(a, Float64(Float64(x * y) - Float64(t * z)), Float64(y4 * t_2)) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(-1.0 * N[(y3 * N[(N[(j * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision] + N[(z * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -9.5e+110], t$95$1, If[LessEqual[y3, -2.7e-165], N[(y4 * N[(N[(b * t$95$2 + N[(y1 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 9.8e-260], N[(-1.0 * N[(z * N[(k * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.8e+88], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := -1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4 - y0 \cdot y5, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
t_2 := j \cdot t - k \cdot y\\
\mathbf{if}\;y3 \leq -9.5 \cdot 10^{+110}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -2.7 \cdot 10^{-165}:\\
\;\;\;\;y4 \cdot \left(\mathsf{fma}\left(b, t\_2, y1 \cdot \left(k \cdot y2 - j \cdot y3\right)\right) - c \cdot \left(t \cdot y2 - y \cdot y3\right)\right)\\
\mathbf{elif}\;y3 \leq 9.8 \cdot 10^{-260}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(k \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 4.8 \cdot 10^{+88}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, x \cdot y - t \cdot z, y4 \cdot t\_2\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -9.49999999999999939e110 or 4.7999999999999998e88 < y3 Initial program 22.6%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.0%
if -9.49999999999999939e110 < y3 < -2.6999999999999998e-165Initial program 33.7%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
if -2.6999999999999998e-165 < y3 < 9.8000000000000005e-260Initial program 35.2%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.2%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.5
Applied rewrites27.5%
if 9.8000000000000005e-260 < y3 < 4.7999999999999998e88Initial program 32.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* t z))) (t_2 (- (* j t) (* k y))))
(if (<= y -2.25e+97)
(* -1.0 (* i (* y5 t_2)))
(if (<= y -9.5e+17)
(* a (* b t_1))
(if (<= y 5.5e-55)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(* b (- (fma a t_1 (* y4 t_2)) (* 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) - (t * z);
double t_2 = (j * t) - (k * y);
double tmp;
if (y <= -2.25e+97) {
tmp = -1.0 * (i * (y5 * t_2));
} else if (y <= -9.5e+17) {
tmp = a * (b * t_1);
} else if (y <= 5.5e-55) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else {
tmp = b * (fma(a, t_1, (y4 * t_2)) - (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(x * y) - Float64(t * z)) t_2 = Float64(Float64(j * t) - Float64(k * y)) tmp = 0.0 if (y <= -2.25e+97) tmp = Float64(-1.0 * Float64(i * Float64(y5 * t_2))); elseif (y <= -9.5e+17) tmp = Float64(a * Float64(b * t_1)); elseif (y <= 5.5e-55) 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))))); else tmp = Float64(b * Float64(fma(a, t_1, Float64(y4 * t_2)) - 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[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y, -2.25e+97], N[(-1.0 * N[(i * N[(y5 * t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, -9.5e+17], N[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 5.5e-55], 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], N[(b * N[(N[(a * t$95$1 + N[(y4 * t$95$2), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
t_2 := j \cdot t - k \cdot y\\
\mathbf{if}\;y \leq -2.25 \cdot 10^{+97}:\\
\;\;\;\;-1 \cdot \left(i \cdot \left(y5 \cdot t\_2\right)\right)\\
\mathbf{elif}\;y \leq -9.5 \cdot 10^{+17}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\mathbf{elif}\;y \leq 5.5 \cdot 10^{-55}:\\
\;\;\;\;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{else}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_1, y4 \cdot t\_2\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\end{array}
\end{array}
if y < -2.24999999999999988e97Initial program 23.2%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in y5 around inf
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f6434.1
Applied rewrites34.1%
if -2.24999999999999988e97 < y < -9.5e17Initial program 29.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6432.6
Applied rewrites32.6%
if -9.5e17 < y < 5.4999999999999999e-55Initial program 34.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.3%
if 5.4999999999999999e-55 < y Initial program 26.9%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* y3 (fma -1.0 (* c z) (* j y5))))))
(if (<= y3 -1.9e+118)
t_1
(if (<= y3 2.2e+98)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* 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 = y0 * (y3 * fma(-1.0, (c * z), (j * y5)));
double tmp;
if (y3 <= -1.9e+118) {
tmp = t_1;
} else if (y3 <= 2.2e+98) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((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(y0 * Float64(y3 * fma(-1.0, Float64(c * z), Float64(j * y5)))) tmp = 0.0 if (y3 <= -1.9e+118) tmp = t_1; elseif (y3 <= 2.2e+98) 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_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[(y0 * N[(y3 * N[(-1.0 * N[(c * z), $MachinePrecision] + N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -1.9e+118], t$95$1, If[LessEqual[y3, 2.2e+98], 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$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, c \cdot z, j \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -1.9 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 2.2 \cdot 10^{+98}:\\
\;\;\;\;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\_1\\
\end{array}
\end{array}
if y3 < -1.90000000000000008e118 or 2.20000000000000009e98 < y3 Initial program 22.4%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6443.5
Applied rewrites43.5%
if -1.90000000000000008e118 < y3 < 2.20000000000000009e98Initial program 33.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.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)))))
(t_2 (* y1 (* z (- (* a y3) (* i k))))))
(if (<= y0 -1e+242)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y0 -5.4e+118)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y0 -1.5e+61)
t_2
(if (<= y0 -1.02e-200)
t_1
(if (<= y0 3.15e-307)
(* y1 (* y4 (- (* k y2) (* j y3))))
(if (<= y0 1.12e-38)
t_1
(if (<= y0 8.2e+83)
t_2
(if (<= y0 3.3e+220)
(* b (* y0 (- (* k z) (* j x))))
(* x (* y2 (- (* c y0) (* a 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 t_1 = a * (b * ((x * y) - (t * z)));
double t_2 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -1.5e+61) {
tmp = t_2;
} else if (y0 <= -1.02e-200) {
tmp = t_1;
} else if (y0 <= 3.15e-307) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y0 <= 1.12e-38) {
tmp = t_1;
} else if (y0 <= 8.2e+83) {
tmp = t_2;
} else if (y0 <= 3.3e+220) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else {
tmp = x * (y2 * ((c * y0) - (a * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * ((x * y) - (t * z)))
t_2 = y1 * (z * ((a * y3) - (i * k)))
if (y0 <= (-1d+242)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y0 <= (-5.4d+118)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y0 <= (-1.5d+61)) then
tmp = t_2
else if (y0 <= (-1.02d-200)) then
tmp = t_1
else if (y0 <= 3.15d-307) then
tmp = y1 * (y4 * ((k * y2) - (j * y3)))
else if (y0 <= 1.12d-38) then
tmp = t_1
else if (y0 <= 8.2d+83) then
tmp = t_2
else if (y0 <= 3.3d+220) then
tmp = b * (y0 * ((k * z) - (j * x)))
else
tmp = x * (y2 * ((c * y0) - (a * 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 t_1 = a * (b * ((x * y) - (t * z)));
double t_2 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -1.5e+61) {
tmp = t_2;
} else if (y0 <= -1.02e-200) {
tmp = t_1;
} else if (y0 <= 3.15e-307) {
tmp = y1 * (y4 * ((k * y2) - (j * y3)));
} else if (y0 <= 1.12e-38) {
tmp = t_1;
} else if (y0 <= 8.2e+83) {
tmp = t_2;
} else if (y0 <= 3.3e+220) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
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))) t_2 = y1 * (z * ((a * y3) - (i * k))) tmp = 0 if y0 <= -1e+242: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y0 <= -5.4e+118: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y0 <= -1.5e+61: tmp = t_2 elif y0 <= -1.02e-200: tmp = t_1 elif y0 <= 3.15e-307: tmp = y1 * (y4 * ((k * y2) - (j * y3))) elif y0 <= 1.12e-38: tmp = t_1 elif y0 <= 8.2e+83: tmp = t_2 elif y0 <= 3.3e+220: tmp = b * (y0 * ((k * z) - (j * x))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) 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)))) t_2 = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))) tmp = 0.0 if (y0 <= -1e+242) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y0 <= -5.4e+118) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y0 <= -1.5e+61) tmp = t_2; elseif (y0 <= -1.02e-200) tmp = t_1; elseif (y0 <= 3.15e-307) tmp = Float64(y1 * Float64(y4 * Float64(Float64(k * y2) - Float64(j * y3)))); elseif (y0 <= 1.12e-38) tmp = t_1; elseif (y0 <= 8.2e+83) tmp = t_2; elseif (y0 <= 3.3e+220) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * 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) t_1 = a * (b * ((x * y) - (t * z))); t_2 = y1 * (z * ((a * y3) - (i * k))); tmp = 0.0; if (y0 <= -1e+242) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y0 <= -5.4e+118) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y0 <= -1.5e+61) tmp = t_2; elseif (y0 <= -1.02e-200) tmp = t_1; elseif (y0 <= 3.15e-307) tmp = y1 * (y4 * ((k * y2) - (j * y3))); elseif (y0 <= 1.12e-38) tmp = t_1; elseif (y0 <= 8.2e+83) tmp = t_2; elseif (y0 <= 3.3e+220) tmp = b * (y0 * ((k * z) - (j * x))); else tmp = x * (y2 * ((c * y0) - (a * y1))); 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]}, Block[{t$95$2 = N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1e+242], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -5.4e+118], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.5e+61], t$95$2, If[LessEqual[y0, -1.02e-200], t$95$1, If[LessEqual[y0, 3.15e-307], N[(y1 * N[(y4 * N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.12e-38], t$95$1, If[LessEqual[y0, 8.2e+83], t$95$2, If[LessEqual[y0, 3.3e+220], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
t_2 := y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{if}\;y0 \leq -1 \cdot 10^{+242}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq -5.4 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq -1.5 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y0 \leq -1.02 \cdot 10^{-200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 3.15 \cdot 10^{-307}:\\
\;\;\;\;y1 \cdot \left(y4 \cdot \left(k \cdot y2 - j \cdot y3\right)\right)\\
\mathbf{elif}\;y0 \leq 1.12 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 8.2 \cdot 10^{+83}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y0 \leq 3.3 \cdot 10^{+220}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y0 < -1.00000000000000005e242Initial program 21.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6438.2
Applied rewrites38.2%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
if -1.00000000000000005e242 < y0 < -5.4e118Initial program 22.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.2
Applied rewrites36.2%
if -5.4e118 < y0 < -1.5e61 or 1.1200000000000001e-38 < y0 < 8.2000000000000002e83Initial program 30.4%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -1.5e61 < y0 < -1.02e-200 or 3.1500000000000002e-307 < y0 < 1.1200000000000001e-38Initial program 33.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.9
Applied rewrites27.9%
if -1.02e-200 < y0 < 3.1500000000000002e-307Initial program 34.2%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.1%
Taylor expanded in y1 around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.6
Applied rewrites27.6%
if 8.2000000000000002e83 < y0 < 3.30000000000000021e220Initial program 27.8%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.0%
Taylor expanded in c around inf
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f6432.5
Applied rewrites32.5%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.7
Applied rewrites35.7%
if 3.30000000000000021e220 < y0 Initial program 22.5%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6439.4
Applied rewrites39.4%
(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)))))
(t_2 (* y1 (* z (- (* a y3) (* i k))))))
(if (<= y0 -1e+242)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y0 -5.4e+118)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y0 -1.5e+61)
t_2
(if (<= y0 -4.5e-200)
t_1
(if (<= y0 3.2e-307)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y0 1.12e-38)
t_1
(if (<= y0 8.2e+83)
t_2
(if (<= y0 3.3e+220)
(* b (* y0 (- (* k z) (* j x))))
(* x (* y2 (- (* c y0) (* a 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 t_1 = a * (b * ((x * y) - (t * z)));
double t_2 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -1.5e+61) {
tmp = t_2;
} else if (y0 <= -4.5e-200) {
tmp = t_1;
} else if (y0 <= 3.2e-307) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y0 <= 1.12e-38) {
tmp = t_1;
} else if (y0 <= 8.2e+83) {
tmp = t_2;
} else if (y0 <= 3.3e+220) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else {
tmp = x * (y2 * ((c * y0) - (a * 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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * ((x * y) - (t * z)))
t_2 = y1 * (z * ((a * y3) - (i * k)))
if (y0 <= (-1d+242)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y0 <= (-5.4d+118)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y0 <= (-1.5d+61)) then
tmp = t_2
else if (y0 <= (-4.5d-200)) then
tmp = t_1
else if (y0 <= 3.2d-307) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (y0 <= 1.12d-38) then
tmp = t_1
else if (y0 <= 8.2d+83) then
tmp = t_2
else if (y0 <= 3.3d+220) then
tmp = b * (y0 * ((k * z) - (j * x)))
else
tmp = x * (y2 * ((c * y0) - (a * 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 t_1 = a * (b * ((x * y) - (t * z)));
double t_2 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -1.5e+61) {
tmp = t_2;
} else if (y0 <= -4.5e-200) {
tmp = t_1;
} else if (y0 <= 3.2e-307) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y0 <= 1.12e-38) {
tmp = t_1;
} else if (y0 <= 8.2e+83) {
tmp = t_2;
} else if (y0 <= 3.3e+220) {
tmp = b * (y0 * ((k * z) - (j * x)));
} else {
tmp = x * (y2 * ((c * y0) - (a * y1)));
}
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))) t_2 = y1 * (z * ((a * y3) - (i * k))) tmp = 0 if y0 <= -1e+242: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y0 <= -5.4e+118: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y0 <= -1.5e+61: tmp = t_2 elif y0 <= -4.5e-200: tmp = t_1 elif y0 <= 3.2e-307: tmp = t * (y2 * ((a * y5) - (c * y4))) elif y0 <= 1.12e-38: tmp = t_1 elif y0 <= 8.2e+83: tmp = t_2 elif y0 <= 3.3e+220: tmp = b * (y0 * ((k * z) - (j * x))) else: tmp = x * (y2 * ((c * y0) - (a * y1))) 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)))) t_2 = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))) tmp = 0.0 if (y0 <= -1e+242) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y0 <= -5.4e+118) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y0 <= -1.5e+61) tmp = t_2; elseif (y0 <= -4.5e-200) tmp = t_1; elseif (y0 <= 3.2e-307) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y0 <= 1.12e-38) tmp = t_1; elseif (y0 <= 8.2e+83) tmp = t_2; elseif (y0 <= 3.3e+220) tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); else tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * 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) t_1 = a * (b * ((x * y) - (t * z))); t_2 = y1 * (z * ((a * y3) - (i * k))); tmp = 0.0; if (y0 <= -1e+242) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y0 <= -5.4e+118) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y0 <= -1.5e+61) tmp = t_2; elseif (y0 <= -4.5e-200) tmp = t_1; elseif (y0 <= 3.2e-307) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (y0 <= 1.12e-38) tmp = t_1; elseif (y0 <= 8.2e+83) tmp = t_2; elseif (y0 <= 3.3e+220) tmp = b * (y0 * ((k * z) - (j * x))); else tmp = x * (y2 * ((c * y0) - (a * y1))); 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]}, Block[{t$95$2 = N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1e+242], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -5.4e+118], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.5e+61], t$95$2, If[LessEqual[y0, -4.5e-200], t$95$1, If[LessEqual[y0, 3.2e-307], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.12e-38], t$95$1, If[LessEqual[y0, 8.2e+83], t$95$2, If[LessEqual[y0, 3.3e+220], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
t_2 := y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{if}\;y0 \leq -1 \cdot 10^{+242}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq -5.4 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq -1.5 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y0 \leq -4.5 \cdot 10^{-200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 3.2 \cdot 10^{-307}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq 1.12 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 8.2 \cdot 10^{+83}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y0 \leq 3.3 \cdot 10^{+220}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\end{array}
\end{array}
if y0 < -1.00000000000000005e242Initial program 21.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6438.2
Applied rewrites38.2%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
if -1.00000000000000005e242 < y0 < -5.4e118Initial program 22.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.2
Applied rewrites36.2%
if -5.4e118 < y0 < -1.5e61 or 1.1200000000000001e-38 < y0 < 8.2000000000000002e83Initial program 30.4%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -1.5e61 < y0 < -4.5000000000000002e-200 or 3.20000000000000011e-307 < y0 < 1.1200000000000001e-38Initial program 33.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.9
Applied rewrites27.9%
if -4.5000000000000002e-200 < y0 < 3.20000000000000011e-307Initial program 34.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.1%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6425.6
Applied rewrites25.6%
if 8.2000000000000002e83 < y0 < 3.30000000000000021e220Initial program 27.8%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites47.0%
Taylor expanded in c around inf
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f6432.5
Applied rewrites32.5%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.7
Applied rewrites35.7%
if 3.30000000000000021e220 < y0 Initial program 22.5%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6439.4
Applied rewrites39.4%
(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)))))
(t_2 (* y1 (* z (- (* a y3) (* i k))))))
(if (<= y0 -1e+242)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y0 -5.4e+118)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y0 -1.5e+61)
t_2
(if (<= y0 -4.5e-200)
t_1
(if (<= y0 3.2e-307)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y0 1.12e-38)
t_1
(if (<= y0 2.25e+77)
t_2
(* 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 t_1 = a * (b * ((x * y) - (t * z)));
double t_2 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -1.5e+61) {
tmp = t_2;
} else if (y0 <= -4.5e-200) {
tmp = t_1;
} else if (y0 <= 3.2e-307) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y0 <= 1.12e-38) {
tmp = t_1;
} else if (y0 <= 2.25e+77) {
tmp = t_2;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = a * (b * ((x * y) - (t * z)))
t_2 = y1 * (z * ((a * y3) - (i * k)))
if (y0 <= (-1d+242)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y0 <= (-5.4d+118)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y0 <= (-1.5d+61)) then
tmp = t_2
else if (y0 <= (-4.5d-200)) then
tmp = t_1
else if (y0 <= 3.2d-307) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (y0 <= 1.12d-38) then
tmp = t_1
else if (y0 <= 2.25d+77) then
tmp = t_2
else
tmp = j * (y0 * ((y3 * y5) - (b * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (b * ((x * y) - (t * z)));
double t_2 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -1.5e+61) {
tmp = t_2;
} else if (y0 <= -4.5e-200) {
tmp = t_1;
} else if (y0 <= 3.2e-307) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y0 <= 1.12e-38) {
tmp = t_1;
} else if (y0 <= 2.25e+77) {
tmp = t_2;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (b * ((x * y) - (t * z))) t_2 = y1 * (z * ((a * y3) - (i * k))) tmp = 0 if y0 <= -1e+242: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y0 <= -5.4e+118: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y0 <= -1.5e+61: tmp = t_2 elif y0 <= -4.5e-200: tmp = t_1 elif y0 <= 3.2e-307: tmp = t * (y2 * ((a * y5) - (c * y4))) elif y0 <= 1.12e-38: tmp = t_1 elif y0 <= 2.25e+77: tmp = t_2 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) t_1 = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))) t_2 = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))) tmp = 0.0 if (y0 <= -1e+242) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y0 <= -5.4e+118) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y0 <= -1.5e+61) tmp = t_2; elseif (y0 <= -4.5e-200) tmp = t_1; elseif (y0 <= 3.2e-307) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y0 <= 1.12e-38) tmp = t_1; elseif (y0 <= 2.25e+77) tmp = t_2; else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (b * ((x * y) - (t * z))); t_2 = y1 * (z * ((a * y3) - (i * k))); tmp = 0.0; if (y0 <= -1e+242) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y0 <= -5.4e+118) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y0 <= -1.5e+61) tmp = t_2; elseif (y0 <= -4.5e-200) tmp = t_1; elseif (y0 <= 3.2e-307) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (y0 <= 1.12e-38) tmp = t_1; elseif (y0 <= 2.25e+77) tmp = t_2; else tmp = j * (y0 * ((y3 * y5) - (b * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1e+242], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -5.4e+118], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.5e+61], t$95$2, If[LessEqual[y0, -4.5e-200], t$95$1, If[LessEqual[y0, 3.2e-307], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.12e-38], t$95$1, If[LessEqual[y0, 2.25e+77], t$95$2, N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
t_2 := y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{if}\;y0 \leq -1 \cdot 10^{+242}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq -5.4 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq -1.5 \cdot 10^{+61}:\\
\;\;\;\;t\_2\\
\mathbf{elif}\;y0 \leq -4.5 \cdot 10^{-200}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 3.2 \cdot 10^{-307}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq 1.12 \cdot 10^{-38}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 2.25 \cdot 10^{+77}:\\
\;\;\;\;t\_2\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y0 < -1.00000000000000005e242Initial program 21.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6438.2
Applied rewrites38.2%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
if -1.00000000000000005e242 < y0 < -5.4e118Initial program 22.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.2
Applied rewrites36.2%
if -5.4e118 < y0 < -1.5e61 or 1.1200000000000001e-38 < y0 < 2.25000000000000012e77Initial program 30.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.8%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.1
Applied rewrites27.1%
if -1.5e61 < y0 < -4.5000000000000002e-200 or 3.20000000000000011e-307 < y0 < 1.1200000000000001e-38Initial program 33.0%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.9
Applied rewrites27.9%
if -4.5000000000000002e-200 < y0 < 3.20000000000000011e-307Initial program 34.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.1%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6425.6
Applied rewrites25.6%
if 2.25000000000000012e77 < y0 Initial program 25.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6440.4
Applied rewrites40.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* y3 (fma -1.0 (* c z) (* j y5))))))
(if (<= y3 -7e+113)
t_1
(if (<= y3 -5e-55)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 2.7e-253)
(* -1.0 (* z (* k (- (* i y1) (* b y0)))))
(if (<= y3 8.8e-200)
(* y2 (* k (- (* y1 y4) (* y0 y5))))
(if (<= y3 4.2e+19)
(* a (* b (- (* x y) (* t z))))
(if (<= y3 3.7e+90) (* c (* y2 (- (* x y0) (* t y4)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (y3 * fma(-1.0, (c * z), (j * y5)));
double tmp;
if (y3 <= -7e+113) {
tmp = t_1;
} else if (y3 <= -5e-55) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 2.7e-253) {
tmp = -1.0 * (z * (k * ((i * y1) - (b * y0))));
} else if (y3 <= 8.8e-200) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else if (y3 <= 4.2e+19) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y3 <= 3.7e+90) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(y3 * fma(-1.0, Float64(c * z), Float64(j * y5)))) tmp = 0.0 if (y3 <= -7e+113) tmp = t_1; elseif (y3 <= -5e-55) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 2.7e-253) tmp = Float64(-1.0 * Float64(z * Float64(k * Float64(Float64(i * y1) - Float64(b * y0))))); elseif (y3 <= 8.8e-200) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y3 <= 4.2e+19) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y3 <= 3.7e+90) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); 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[(y0 * N[(y3 * N[(-1.0 * N[(c * z), $MachinePrecision] + N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -7e+113], t$95$1, If[LessEqual[y3, -5e-55], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 2.7e-253], N[(-1.0 * N[(z * N[(k * N[(N[(i * y1), $MachinePrecision] - N[(b * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 8.8e-200], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.2e+19], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.7e+90], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, c \cdot z, j \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -7 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -5 \cdot 10^{-55}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 2.7 \cdot 10^{-253}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(k \cdot \left(i \cdot y1 - b \cdot y0\right)\right)\right)\\
\mathbf{elif}\;y3 \leq 8.8 \cdot 10^{-200}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y3 \leq 4.2 \cdot 10^{+19}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+90}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -7.0000000000000001e113 or 3.7e90 < y3 Initial program 22.5%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6443.4
Applied rewrites43.4%
if -7.0000000000000001e113 < y3 < -5.0000000000000002e-55Initial program 33.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.2
Applied rewrites28.2%
if -5.0000000000000002e-55 < y3 < 2.69999999999999999e-253Initial program 35.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if 2.69999999999999999e-253 < y3 < 8.80000000000000054e-200Initial program 29.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6428.9
Applied rewrites28.9%
if 8.80000000000000054e-200 < y3 < 4.2e19Initial program 33.7%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.0%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.7
Applied rewrites27.7%
if 4.2e19 < y3 < 3.7e90Initial program 30.0%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.5%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.3
Applied rewrites25.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y0 (* y3 (fma -1.0 (* c z) (* j y5))))))
(if (<= y3 -7e+113)
t_1
(if (<= y3 -5e-55)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y3 7.2e-245)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y3 1.05e-159)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y3 4.2e+19)
(* a (* b (- (* x y) (* t z))))
(if (<= y3 3.7e+90) (* c (* y2 (- (* x y0) (* t y4)))) t_1))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y0 * (y3 * fma(-1.0, (c * z), (j * y5)));
double tmp;
if (y3 <= -7e+113) {
tmp = t_1;
} else if (y3 <= -5e-55) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y3 <= 7.2e-245) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y3 <= 1.05e-159) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y3 <= 4.2e+19) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y3 <= 3.7e+90) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y0 * Float64(y3 * fma(-1.0, Float64(c * z), Float64(j * y5)))) tmp = 0.0 if (y3 <= -7e+113) tmp = t_1; elseif (y3 <= -5e-55) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y3 <= 7.2e-245) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y3 <= 1.05e-159) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y3 <= 4.2e+19) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y3 <= 3.7e+90) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); 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[(y0 * N[(y3 * N[(-1.0 * N[(c * z), $MachinePrecision] + N[(j * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -7e+113], t$95$1, If[LessEqual[y3, -5e-55], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 7.2e-245], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 1.05e-159], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 4.2e+19], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y3, 3.7e+90], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y0 \cdot \left(y3 \cdot \mathsf{fma}\left(-1, c \cdot z, j \cdot y5\right)\right)\\
\mathbf{if}\;y3 \leq -7 \cdot 10^{+113}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq -5 \cdot 10^{-55}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y3 \leq 7.2 \cdot 10^{-245}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y3 \leq 1.05 \cdot 10^{-159}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y3 \leq 4.2 \cdot 10^{+19}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y3 \leq 3.7 \cdot 10^{+90}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -7.0000000000000001e113 or 3.7e90 < y3 Initial program 22.5%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y3 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6443.4
Applied rewrites43.4%
if -7.0000000000000001e113 < y3 < -5.0000000000000002e-55Initial program 33.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.2
Applied rewrites28.2%
if -5.0000000000000002e-55 < y3 < 7.19999999999999999e-245Initial program 34.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.9%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.1
Applied rewrites27.1%
if 7.19999999999999999e-245 < y3 < 1.05e-159Initial program 32.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6428.5
Applied rewrites28.5%
if 1.05e-159 < y3 < 4.2e19Initial program 33.3%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.8
Applied rewrites27.8%
if 4.2e19 < y3 < 3.7e90Initial program 30.0%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.5%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.3
Applied rewrites25.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -2.4e+74)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= y5 -3.1e-258)
(* y0 (* c (- (* x y2) (* y3 z))))
(if (<= y5 2.7e-125)
(* y4 (* b (- (* j t) (* k y))))
(if (<= y5 5.8e+106)
(* y2 (* c (- (* x y0) (* t y4))))
(if (<= y5 3.5e+240)
(* y2 (* k (- (* y1 y4) (* y0 y5))))
(* i (* t (fma -1.0 (* j y5) (* c z))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -2.4e+74) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y5 <= -3.1e-258) {
tmp = y0 * (c * ((x * y2) - (y3 * z)));
} else if (y5 <= 2.7e-125) {
tmp = y4 * (b * ((j * t) - (k * y)));
} else if (y5 <= 5.8e+106) {
tmp = y2 * (c * ((x * y0) - (t * y4)));
} else if (y5 <= 3.5e+240) {
tmp = y2 * (k * ((y1 * y4) - (y0 * y5)));
} else {
tmp = i * (t * fma(-1.0, (j * y5), (c * z)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -2.4e+74) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (y5 <= -3.1e-258) tmp = Float64(y0 * Float64(c * Float64(Float64(x * y2) - Float64(y3 * z)))); elseif (y5 <= 2.7e-125) tmp = Float64(y4 * Float64(b * Float64(Float64(j * t) - Float64(k * y)))); elseif (y5 <= 5.8e+106) tmp = Float64(y2 * Float64(c * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y5 <= 3.5e+240) tmp = Float64(y2 * Float64(k * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(i * Float64(t * fma(-1.0, Float64(j * y5), Float64(c * z)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -2.4e+74], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.1e-258], N[(y0 * N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.7e-125], N[(y4 * N[(b * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 5.8e+106], N[(y2 * N[(c * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 3.5e+240], N[(y2 * N[(k * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(t * N[(-1.0 * N[(j * y5), $MachinePrecision] + N[(c * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -2.4 \cdot 10^{+74}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq -3.1 \cdot 10^{-258}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 2.7 \cdot 10^{-125}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 5.8 \cdot 10^{+106}:\\
\;\;\;\;y2 \cdot \left(c \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 3.5 \cdot 10^{+240}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(t \cdot \mathsf{fma}\left(-1, j \cdot y5, c \cdot z\right)\right)\\
\end{array}
\end{array}
if y5 < -2.40000000000000008e74Initial program 23.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6441.9
Applied rewrites41.9%
if -2.40000000000000008e74 < y5 < -3.09999999999999999e-258Initial program 33.1%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in c around inf
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f6428.1
Applied rewrites28.1%
if -3.09999999999999999e-258 < y5 < 2.6999999999999998e-125Initial program 32.7%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6426.8
Applied rewrites26.8%
if 2.6999999999999998e-125 < y5 < 5.8000000000000004e106Initial program 34.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.6%
Taylor expanded in c around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 5.8000000000000004e106 < y5 < 3.50000000000000033e240Initial program 24.8%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in k around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6432.6
Applied rewrites32.6%
if 3.50000000000000033e240 < y5 Initial program 17.5%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites43.5%
Taylor expanded in t around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6444.1
Applied rewrites44.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* z (- (* a y3) (* i k))))))
(if (<= y0 -1e+242)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y0 -5.4e+118)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y0 -2e+49)
t_1
(if (<= y0 1.12e-38)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 2.25e+77) t_1 (* 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 t_1 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -2e+49) {
tmp = t_1;
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.25e+77) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y1 * (z * ((a * y3) - (i * k)))
if (y0 <= (-1d+242)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y0 <= (-5.4d+118)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y0 <= (-2d+49)) then
tmp = t_1
else if (y0 <= 1.12d-38) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 2.25d+77) then
tmp = t_1
else
tmp = j * (y0 * ((y3 * y5) - (b * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -1e+242) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -2e+49) {
tmp = t_1;
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.25e+77) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (z * ((a * y3) - (i * k))) tmp = 0 if y0 <= -1e+242: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y0 <= -5.4e+118: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y0 <= -2e+49: tmp = t_1 elif y0 <= 1.12e-38: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 2.25e+77: tmp = t_1 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) t_1 = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))) tmp = 0.0 if (y0 <= -1e+242) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y0 <= -5.4e+118) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y0 <= -2e+49) tmp = t_1; elseif (y0 <= 1.12e-38) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 2.25e+77) tmp = t_1; else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (z * ((a * y3) - (i * k))); tmp = 0.0; if (y0 <= -1e+242) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y0 <= -5.4e+118) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y0 <= -2e+49) tmp = t_1; elseif (y0 <= 1.12e-38) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 2.25e+77) tmp = t_1; else tmp = j * (y0 * ((y3 * y5) - (b * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -1e+242], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -5.4e+118], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -2e+49], t$95$1, If[LessEqual[y0, 1.12e-38], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.25e+77], t$95$1, N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{if}\;y0 \leq -1 \cdot 10^{+242}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y0 \leq -5.4 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq -2 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 1.12 \cdot 10^{-38}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 2.25 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y0 < -1.00000000000000005e242Initial program 21.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6438.2
Applied rewrites38.2%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.9
Applied rewrites39.9%
if -1.00000000000000005e242 < y0 < -5.4e118Initial program 22.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.2
Applied rewrites36.2%
if -5.4e118 < y0 < -1.99999999999999989e49 or 1.1200000000000001e-38 < y0 < 2.25000000000000012e77Initial program 30.2%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -1.99999999999999989e49 < y0 < 1.1200000000000001e-38Initial program 33.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.7
Applied rewrites27.7%
if 2.25000000000000012e77 < y0 Initial program 25.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6440.4
Applied rewrites40.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y1 (* z (- (* a y3) (* i k))))))
(if (<= y0 -3.9e+275)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y0 -5.4e+118)
(* c (* y2 (- (* x y0) (* t y4))))
(if (<= y0 -2e+49)
t_1
(if (<= y0 1.12e-38)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 2.25e+77) t_1 (* 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 t_1 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -3.9e+275) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -2e+49) {
tmp = t_1;
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.25e+77) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y1 * (z * ((a * y3) - (i * k)))
if (y0 <= (-3.9d+275)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y0 <= (-5.4d+118)) then
tmp = c * (y2 * ((x * y0) - (t * y4)))
else if (y0 <= (-2d+49)) then
tmp = t_1
else if (y0 <= 1.12d-38) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 2.25d+77) then
tmp = t_1
else
tmp = j * (y0 * ((y3 * y5) - (b * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y1 * (z * ((a * y3) - (i * k)));
double tmp;
if (y0 <= -3.9e+275) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y0 <= -5.4e+118) {
tmp = c * (y2 * ((x * y0) - (t * y4)));
} else if (y0 <= -2e+49) {
tmp = t_1;
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.25e+77) {
tmp = t_1;
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y1 * (z * ((a * y3) - (i * k))) tmp = 0 if y0 <= -3.9e+275: tmp = k * (z * ((b * y0) - (i * y1))) elif y0 <= -5.4e+118: tmp = c * (y2 * ((x * y0) - (t * y4))) elif y0 <= -2e+49: tmp = t_1 elif y0 <= 1.12e-38: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 2.25e+77: tmp = t_1 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) t_1 = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))) tmp = 0.0 if (y0 <= -3.9e+275) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y0 <= -5.4e+118) tmp = Float64(c * Float64(y2 * Float64(Float64(x * y0) - Float64(t * y4)))); elseif (y0 <= -2e+49) tmp = t_1; elseif (y0 <= 1.12e-38) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 2.25e+77) tmp = t_1; else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y1 * (z * ((a * y3) - (i * k))); tmp = 0.0; if (y0 <= -3.9e+275) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y0 <= -5.4e+118) tmp = c * (y2 * ((x * y0) - (t * y4))); elseif (y0 <= -2e+49) tmp = t_1; elseif (y0 <= 1.12e-38) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 2.25e+77) tmp = t_1; else tmp = j * (y0 * ((y3 * y5) - (b * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -3.9e+275], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -5.4e+118], N[(c * N[(y2 * N[(N[(x * y0), $MachinePrecision] - N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -2e+49], t$95$1, If[LessEqual[y0, 1.12e-38], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.25e+77], t$95$1, N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{if}\;y0 \leq -3.9 \cdot 10^{+275}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y0 \leq -5.4 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0 - t \cdot y4\right)\right)\\
\mathbf{elif}\;y0 \leq -2 \cdot 10^{+49}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 1.12 \cdot 10^{-38}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 2.25 \cdot 10^{+77}:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y0 < -3.9e275Initial program 22.2%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6443.7
Applied rewrites43.7%
if -3.9e275 < y0 < -5.4e118Initial program 22.2%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.5
Applied rewrites36.5%
if -5.4e118 < y0 < -1.99999999999999989e49 or 1.1200000000000001e-38 < y0 < 2.25000000000000012e77Initial program 30.2%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.2%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -1.99999999999999989e49 < y0 < 1.1200000000000001e-38Initial program 33.4%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.7
Applied rewrites27.7%
if 2.25000000000000012e77 < y0 Initial program 25.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6440.4
Applied rewrites40.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -4e+173)
(* x (* y2 (- (* c y0) (* a y1))))
(if (<= y2 -1.02e+61)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(if (<= y2 -3.8e-75)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y2 2.6e+63)
(* b (* j (- (* t y4) (* x y0))))
(* t (* y2 (- (* 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 (y2 <= -4e+173) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y2 <= -1.02e+61) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y2 <= -3.8e-75) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y2 <= 2.6e+63) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = t * (y2 * ((a * y5) - (c * 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 (y2 <= (-4d+173)) then
tmp = x * (y2 * ((c * y0) - (a * y1)))
else if (y2 <= (-1.02d+61)) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else if (y2 <= (-3.8d-75)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y2 <= 2.6d+63) then
tmp = b * (j * ((t * y4) - (x * y0)))
else
tmp = t * (y2 * ((a * y5) - (c * 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 (y2 <= -4e+173) {
tmp = x * (y2 * ((c * y0) - (a * y1)));
} else if (y2 <= -1.02e+61) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else if (y2 <= -3.8e-75) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y2 <= 2.6e+63) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else {
tmp = t * (y2 * ((a * y5) - (c * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -4e+173: tmp = x * (y2 * ((c * y0) - (a * y1))) elif y2 <= -1.02e+61: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) elif y2 <= -3.8e-75: tmp = k * (z * ((b * y0) - (i * y1))) elif y2 <= 2.6e+63: tmp = b * (j * ((t * y4) - (x * y0))) else: tmp = t * (y2 * ((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 (y2 <= -4e+173) tmp = Float64(x * Float64(y2 * Float64(Float64(c * y0) - Float64(a * y1)))); elseif (y2 <= -1.02e+61) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); elseif (y2 <= -3.8e-75) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y2 <= 2.6e+63) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); else tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * 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 (y2 <= -4e+173) tmp = x * (y2 * ((c * y0) - (a * y1))); elseif (y2 <= -1.02e+61) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); elseif (y2 <= -3.8e-75) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y2 <= 2.6e+63) tmp = b * (j * ((t * y4) - (x * y0))); else tmp = t * (y2 * ((a * y5) - (c * 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[y2, -4e+173], N[(x * N[(y2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.02e+61], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -3.8e-75], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 2.6e+63], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -4 \cdot 10^{+173}:\\
\;\;\;\;x \cdot \left(y2 \cdot \left(c \cdot y0 - a \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq -1.02 \cdot 10^{+61}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{elif}\;y2 \leq -3.8 \cdot 10^{-75}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y2 \leq 2.6 \cdot 10^{+63}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if y2 < -4.0000000000000001e173Initial program 22.6%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites58.2%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6447.2
Applied rewrites47.2%
if -4.0000000000000001e173 < y2 < -1.01999999999999999e61Initial program 26.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites42.8%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.0
Applied rewrites33.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.3
Applied rewrites32.3%
if -1.01999999999999999e61 < y2 < -3.79999999999999994e-75Initial program 30.0%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.7%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6429.1
Applied rewrites29.1%
if -3.79999999999999994e-75 < y2 < 2.6000000000000001e63Initial program 34.2%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
if 2.6000000000000001e63 < y2 Initial program 24.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.4%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6439.2
Applied rewrites39.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -4.8e+233)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y0 -4e+27)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= y0 1.12e-38)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 2.25e+77)
(* y1 (* z (- (* a y3) (* i k))))
(* 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 <= -4.8e+233) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y0 <= -4e+27) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.25e+77) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y0 <= (-4.8d+233)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y0 <= (-4d+27)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (y0 <= 1.12d-38) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 2.25d+77) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = j * (y0 * ((y3 * y5) - (b * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.8e+233) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y0 <= -4e+27) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 2.25e+77) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = j * (y0 * ((y3 * y5) - (b * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -4.8e+233: tmp = k * (z * ((b * y0) - (i * y1))) elif y0 <= -4e+27: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif y0 <= 1.12e-38: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 2.25e+77: tmp = y1 * (z * ((a * y3) - (i * k))) 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 <= -4.8e+233) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y0 <= -4e+27) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (y0 <= 1.12e-38) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 2.25e+77) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = Float64(j * Float64(y0 * Float64(Float64(y3 * y5) - Float64(b * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y0 <= -4.8e+233) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y0 <= -4e+27) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (y0 <= 1.12e-38) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 2.25e+77) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = j * (y0 * ((y3 * y5) - (b * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -4.8e+233], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -4e+27], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.12e-38], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.25e+77], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(j * N[(y0 * N[(N[(y3 * y5), $MachinePrecision] - N[(b * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -4.8 \cdot 10^{+233}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y0 \leq -4 \cdot 10^{+27}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;y0 \leq 1.12 \cdot 10^{-38}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 2.25 \cdot 10^{+77}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;j \cdot \left(y0 \cdot \left(y3 \cdot y5 - b \cdot x\right)\right)\\
\end{array}
\end{array}
if y0 < -4.80000000000000005e233Initial program 21.3%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6441.6
Applied rewrites41.6%
if -4.80000000000000005e233 < y0 < -4.0000000000000001e27Initial program 25.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.9
Applied rewrites33.9%
if -4.0000000000000001e27 < y0 < 1.1200000000000001e-38Initial program 33.5%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.7
Applied rewrites27.7%
if 1.1200000000000001e-38 < y0 < 2.25000000000000012e77Initial program 30.3%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.0
Applied rewrites28.0%
if 2.25000000000000012e77 < y0 Initial program 25.6%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.8%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6440.4
Applied rewrites40.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -4.8e+233)
(* k (* z (- (* b y0) (* i y1))))
(if (<= y0 -4e+27)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= y0 1.12e-38)
(* a (* b (- (* x y) (* t z))))
(if (<= y0 8.2e+83)
(* y1 (* z (- (* a y3) (* i k))))
(* b (* y0 (- (* k z) (* j x)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.8e+233) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y0 <= -4e+27) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 8.2e+83) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = b * (y0 * ((k * z) - (j * x)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y0 <= (-4.8d+233)) then
tmp = k * (z * ((b * y0) - (i * y1)))
else if (y0 <= (-4d+27)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (y0 <= 1.12d-38) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y0 <= 8.2d+83) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = b * (y0 * ((k * z) - (j * x)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.8e+233) {
tmp = k * (z * ((b * y0) - (i * y1)));
} else if (y0 <= -4e+27) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (y0 <= 1.12e-38) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y0 <= 8.2e+83) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = b * (y0 * ((k * z) - (j * x)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -4.8e+233: tmp = k * (z * ((b * y0) - (i * y1))) elif y0 <= -4e+27: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif y0 <= 1.12e-38: tmp = a * (b * ((x * y) - (t * z))) elif y0 <= 8.2e+83: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = b * (y0 * ((k * z) - (j * x))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y0 <= -4.8e+233) tmp = Float64(k * Float64(z * Float64(Float64(b * y0) - Float64(i * y1)))); elseif (y0 <= -4e+27) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (y0 <= 1.12e-38) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y0 <= 8.2e+83) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = Float64(b * Float64(y0 * Float64(Float64(k * z) - Float64(j * x)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y0 <= -4.8e+233) tmp = k * (z * ((b * y0) - (i * y1))); elseif (y0 <= -4e+27) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (y0 <= 1.12e-38) tmp = a * (b * ((x * y) - (t * z))); elseif (y0 <= 8.2e+83) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = b * (y0 * ((k * z) - (j * x))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -4.8e+233], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -4e+27], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.12e-38], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 8.2e+83], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(y0 * N[(N[(k * z), $MachinePrecision] - N[(j * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -4.8 \cdot 10^{+233}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{elif}\;y0 \leq -4 \cdot 10^{+27}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;y0 \leq 1.12 \cdot 10^{-38}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 8.2 \cdot 10^{+83}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z - j \cdot x\right)\right)\\
\end{array}
\end{array}
if y0 < -4.80000000000000005e233Initial program 21.3%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.6%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6441.6
Applied rewrites41.6%
if -4.80000000000000005e233 < y0 < -4.0000000000000001e27Initial program 25.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6433.9
Applied rewrites33.9%
if -4.0000000000000001e27 < y0 < 1.1200000000000001e-38Initial program 33.5%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.7
Applied rewrites27.7%
if 1.1200000000000001e-38 < y0 < 8.2000000000000002e83Initial program 29.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.2%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.8
Applied rewrites27.8%
if 8.2000000000000002e83 < y0 Initial program 25.7%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites53.1%
Taylor expanded in c around inf
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f6437.7
Applied rewrites37.7%
Taylor expanded in b around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6440.6
Applied rewrites40.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* b (- (* x y) (* t z))))))
(if (<= b -2.6e+19)
t_1
(if (<= b -2.2e-272)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= b 1.95e-240)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= b 0.001) (* y1 (* z (- (* a y3) (* i k)))) 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 <= -2.6e+19) {
tmp = t_1;
} else if (b <= -2.2e-272) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (b <= 1.95e-240) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 0.001) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} 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 <= (-2.6d+19)) then
tmp = t_1
else if (b <= (-2.2d-272)) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (b <= 1.95d-240) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (b <= 0.001d0) then
tmp = y1 * (z * ((a * y3) - (i * k)))
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 <= -2.6e+19) {
tmp = t_1;
} else if (b <= -2.2e-272) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (b <= 1.95e-240) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (b <= 0.001) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} 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 <= -2.6e+19: tmp = t_1 elif b <= -2.2e-272: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif b <= 1.95e-240: tmp = y * (y3 * ((c * y4) - (a * y5))) elif b <= 0.001: tmp = y1 * (z * ((a * y3) - (i * k))) 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 <= -2.6e+19) tmp = t_1; elseif (b <= -2.2e-272) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (b <= 1.95e-240) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (b <= 0.001) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); 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 <= -2.6e+19) tmp = t_1; elseif (b <= -2.2e-272) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (b <= 1.95e-240) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (b <= 0.001) tmp = y1 * (z * ((a * y3) - (i * k))); 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, -2.6e+19], t$95$1, If[LessEqual[b, -2.2e-272], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1.95e-240], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 0.001], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{if}\;b \leq -2.6 \cdot 10^{+19}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;b \leq -2.2 \cdot 10^{-272}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;b \leq 1.95 \cdot 10^{-240}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;b \leq 0.001:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if b < -2.6e19 or 1e-3 < b Initial program 24.5%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites49.5%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6438.9
Applied rewrites38.9%
if -2.6e19 < b < -2.19999999999999988e-272Initial program 33.7%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.3%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.3
Applied rewrites26.3%
if -2.19999999999999988e-272 < b < 1.95000000000000007e-240Initial program 34.9%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.0%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6428.4
Applied rewrites28.4%
if 1.95000000000000007e-240 < b < 1e-3Initial program 35.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.2%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.1
Applied rewrites28.1%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y3 (* y5 (- (* j y0) (* a y))))))
(if (<= y5 -1.85e-10)
t_1
(if (<= y5 7.5e-150)
(* i (* z (- (* c t) (* k y1))))
(if (<= y5 1.36e-60)
(* c (* y2 (* x y0)))
(if (<= y5 2.5e+114) (* c (* y2 (* -1.0 (* t y4)))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y3 * (y5 * ((j * y0) - (a * y)));
double tmp;
if (y5 <= -1.85e-10) {
tmp = t_1;
} else if (y5 <= 7.5e-150) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (y5 <= 1.36e-60) {
tmp = c * (y2 * (x * y0));
} else if (y5 <= 2.5e+114) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = y3 * (y5 * ((j * y0) - (a * y)))
if (y5 <= (-1.85d-10)) then
tmp = t_1
else if (y5 <= 7.5d-150) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (y5 <= 1.36d-60) then
tmp = c * (y2 * (x * y0))
else if (y5 <= 2.5d+114) then
tmp = c * (y2 * ((-1.0d0) * (t * y4)))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y3 * (y5 * ((j * y0) - (a * y)));
double tmp;
if (y5 <= -1.85e-10) {
tmp = t_1;
} else if (y5 <= 7.5e-150) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (y5 <= 1.36e-60) {
tmp = c * (y2 * (x * y0));
} else if (y5 <= 2.5e+114) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = y3 * (y5 * ((j * y0) - (a * y))) tmp = 0 if y5 <= -1.85e-10: tmp = t_1 elif y5 <= 7.5e-150: tmp = i * (z * ((c * t) - (k * y1))) elif y5 <= 1.36e-60: tmp = c * (y2 * (x * y0)) elif y5 <= 2.5e+114: tmp = c * (y2 * (-1.0 * (t * y4))) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))) tmp = 0.0 if (y5 <= -1.85e-10) tmp = t_1; elseif (y5 <= 7.5e-150) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (y5 <= 1.36e-60) tmp = Float64(c * Float64(y2 * Float64(x * y0))); elseif (y5 <= 2.5e+114) tmp = Float64(c * Float64(y2 * Float64(-1.0 * Float64(t * y4)))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = y3 * (y5 * ((j * y0) - (a * y))); tmp = 0.0; if (y5 <= -1.85e-10) tmp = t_1; elseif (y5 <= 7.5e-150) tmp = i * (z * ((c * t) - (k * y1))); elseif (y5 <= 1.36e-60) tmp = c * (y2 * (x * y0)); elseif (y5 <= 2.5e+114) tmp = c * (y2 * (-1.0 * (t * y4))); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -1.85e-10], t$95$1, If[LessEqual[y5, 7.5e-150], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.36e-60], N[(c * N[(y2 * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 2.5e+114], N[(c * N[(y2 * N[(-1.0 * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{if}\;y5 \leq -1.85 \cdot 10^{-10}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 7.5 \cdot 10^{-150}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;y5 \leq 1.36 \cdot 10^{-60}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 2.5 \cdot 10^{+114}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(-1 \cdot \left(t \cdot y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y5 < -1.85000000000000007e-10 or 2.5e114 < y5 Initial program 24.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.6
Applied rewrites39.6%
if -1.85000000000000007e-10 < y5 < 7.5000000000000004e-150Initial program 33.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.1
Applied rewrites28.1%
if 7.5000000000000004e-150 < y5 < 1.3599999999999999e-60Initial program 35.4%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.5%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.3
Applied rewrites28.3%
Taylor expanded in x around inf
lift-*.f6417.2
Applied rewrites17.2%
if 1.3599999999999999e-60 < y5 < 2.5e114Initial program 31.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.5%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.2
Applied rewrites27.2%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6418.5
Applied rewrites18.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1.3e+126)
(* i (* z (- (* c t) (* k y1))))
(if (<= t -2.2e-266)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= t 2.1e+224)
(* y1 (* z (- (* a y3) (* i k))))
(* c (* y2 (* -1.0 (* t 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.3e+126) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (t <= -2.2e-266) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (t <= 2.1e+224) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = c * (y2 * (-1.0 * (t * 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 (t <= (-1.3d+126)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (t <= (-2.2d-266)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (t <= 2.1d+224) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = c * (y2 * ((-1.0d0) * (t * 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 (t <= -1.3e+126) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (t <= -2.2e-266) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (t <= 2.1e+224) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = c * (y2 * (-1.0 * (t * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -1.3e+126: tmp = i * (z * ((c * t) - (k * y1))) elif t <= -2.2e-266: tmp = y * (y3 * ((c * y4) - (a * y5))) elif t <= 2.1e+224: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = c * (y2 * (-1.0 * (t * 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.3e+126) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (t <= -2.2e-266) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (t <= 2.1e+224) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = Float64(c * Float64(y2 * Float64(-1.0 * Float64(t * 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 (t <= -1.3e+126) tmp = i * (z * ((c * t) - (k * y1))); elseif (t <= -2.2e-266) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (t <= 2.1e+224) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = c * (y2 * (-1.0 * (t * 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[t, -1.3e+126], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.2e-266], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.1e+224], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y2 * N[(-1.0 * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.3 \cdot 10^{+126}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-266}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;t \leq 2.1 \cdot 10^{+224}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(-1 \cdot \left(t \cdot y4\right)\right)\right)\\
\end{array}
\end{array}
if t < -1.3e126Initial program 21.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.3%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.9
Applied rewrites34.9%
if -1.3e126 < t < -2.2e-266Initial program 33.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.6%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.9
Applied rewrites27.9%
if -2.2e-266 < t < 2.1000000000000002e224Initial program 31.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.4%
Taylor expanded in y1 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.7
Applied rewrites27.7%
if 2.1000000000000002e224 < t Initial program 22.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6437.2
Applied rewrites37.2%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6435.7
Applied rewrites35.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= k -3.4e+149)
(* y4 (* b (* -1.0 (* k y))))
(if (<= k 4.5e-67)
(* y3 (* y5 (- (* j y0) (* a y))))
(if (<= k 1.25e+75)
(* c (* -1.0 (* t (* y2 y4))))
(* i (* k (- (* y y5) (* y1 z))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (k <= -3.4e+149) {
tmp = y4 * (b * (-1.0 * (k * y)));
} else if (k <= 4.5e-67) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (k <= 1.25e+75) {
tmp = c * (-1.0 * (t * (y2 * y4)));
} else {
tmp = i * (k * ((y * y5) - (y1 * 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 (k <= (-3.4d+149)) then
tmp = y4 * (b * ((-1.0d0) * (k * y)))
else if (k <= 4.5d-67) then
tmp = y3 * (y5 * ((j * y0) - (a * y)))
else if (k <= 1.25d+75) then
tmp = c * ((-1.0d0) * (t * (y2 * y4)))
else
tmp = i * (k * ((y * y5) - (y1 * 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 (k <= -3.4e+149) {
tmp = y4 * (b * (-1.0 * (k * y)));
} else if (k <= 4.5e-67) {
tmp = y3 * (y5 * ((j * y0) - (a * y)));
} else if (k <= 1.25e+75) {
tmp = c * (-1.0 * (t * (y2 * y4)));
} else {
tmp = i * (k * ((y * y5) - (y1 * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if k <= -3.4e+149: tmp = y4 * (b * (-1.0 * (k * y))) elif k <= 4.5e-67: tmp = y3 * (y5 * ((j * y0) - (a * y))) elif k <= 1.25e+75: tmp = c * (-1.0 * (t * (y2 * y4))) else: tmp = i * (k * ((y * y5) - (y1 * z))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (k <= -3.4e+149) tmp = Float64(y4 * Float64(b * Float64(-1.0 * Float64(k * y)))); elseif (k <= 4.5e-67) tmp = Float64(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))); elseif (k <= 1.25e+75) tmp = Float64(c * Float64(-1.0 * Float64(t * Float64(y2 * y4)))); else tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * 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 (k <= -3.4e+149) tmp = y4 * (b * (-1.0 * (k * y))); elseif (k <= 4.5e-67) tmp = y3 * (y5 * ((j * y0) - (a * y))); elseif (k <= 1.25e+75) tmp = c * (-1.0 * (t * (y2 * y4))); else tmp = i * (k * ((y * y5) - (y1 * 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[k, -3.4e+149], N[(y4 * N[(b * N[(-1.0 * N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 4.5e-67], N[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[k, 1.25e+75], N[(c * N[(-1.0 * N[(t * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;k \leq -3.4 \cdot 10^{+149}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(-1 \cdot \left(k \cdot y\right)\right)\right)\\
\mathbf{elif}\;k \leq 4.5 \cdot 10^{-67}:\\
\;\;\;\;y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{elif}\;k \leq 1.25 \cdot 10^{+75}:\\
\;\;\;\;c \cdot \left(-1 \cdot \left(t \cdot \left(y2 \cdot y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\end{array}
\end{array}
if k < -3.3999999999999998e149Initial program 21.7%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.0%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6436.3
Applied rewrites36.3%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6433.1
Applied rewrites33.1%
if -3.3999999999999998e149 < k < 4.50000000000000015e-67Initial program 33.2%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites40.3%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.7
Applied rewrites27.7%
if 4.50000000000000015e-67 < k < 1.2500000000000001e75Initial program 29.9%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.6%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6419.4
Applied rewrites19.4%
if 1.2500000000000001e75 < k Initial program 24.4%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.3%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6441.5
Applied rewrites41.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -1.7e+87)
(* k (* -1.0 (* y0 (* y2 y5))))
(if (<= y2 -4.8e-35)
(* k (* y1 (* y2 y4)))
(if (<= y2 1.28e-42)
(* i (* k (- (* y y5) (* y1 z))))
(* c (* y2 (* -1.0 (* t 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 (y2 <= -1.7e+87) {
tmp = k * (-1.0 * (y0 * (y2 * y5)));
} else if (y2 <= -4.8e-35) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= 1.28e-42) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = c * (y2 * (-1.0 * (t * 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 (y2 <= (-1.7d+87)) then
tmp = k * ((-1.0d0) * (y0 * (y2 * y5)))
else if (y2 <= (-4.8d-35)) then
tmp = k * (y1 * (y2 * y4))
else if (y2 <= 1.28d-42) then
tmp = i * (k * ((y * y5) - (y1 * z)))
else
tmp = c * (y2 * ((-1.0d0) * (t * 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 (y2 <= -1.7e+87) {
tmp = k * (-1.0 * (y0 * (y2 * y5)));
} else if (y2 <= -4.8e-35) {
tmp = k * (y1 * (y2 * y4));
} else if (y2 <= 1.28e-42) {
tmp = i * (k * ((y * y5) - (y1 * z)));
} else {
tmp = c * (y2 * (-1.0 * (t * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.7e+87: tmp = k * (-1.0 * (y0 * (y2 * y5))) elif y2 <= -4.8e-35: tmp = k * (y1 * (y2 * y4)) elif y2 <= 1.28e-42: tmp = i * (k * ((y * y5) - (y1 * z))) else: tmp = c * (y2 * (-1.0 * (t * 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 (y2 <= -1.7e+87) tmp = Float64(k * Float64(-1.0 * Float64(y0 * Float64(y2 * y5)))); elseif (y2 <= -4.8e-35) tmp = Float64(k * Float64(y1 * Float64(y2 * y4))); elseif (y2 <= 1.28e-42) tmp = Float64(i * Float64(k * Float64(Float64(y * y5) - Float64(y1 * z)))); else tmp = Float64(c * Float64(y2 * Float64(-1.0 * Float64(t * 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 (y2 <= -1.7e+87) tmp = k * (-1.0 * (y0 * (y2 * y5))); elseif (y2 <= -4.8e-35) tmp = k * (y1 * (y2 * y4)); elseif (y2 <= 1.28e-42) tmp = i * (k * ((y * y5) - (y1 * z))); else tmp = c * (y2 * (-1.0 * (t * 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[y2, -1.7e+87], N[(k * N[(-1.0 * N[(y0 * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -4.8e-35], N[(k * N[(y1 * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 1.28e-42], N[(i * N[(k * N[(N[(y * y5), $MachinePrecision] - N[(y1 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y2 * N[(-1.0 * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.7 \cdot 10^{+87}:\\
\;\;\;\;k \cdot \left(-1 \cdot \left(y0 \cdot \left(y2 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -4.8 \cdot 10^{-35}:\\
\;\;\;\;k \cdot \left(y1 \cdot \left(y2 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 1.28 \cdot 10^{-42}:\\
\;\;\;\;i \cdot \left(k \cdot \left(y \cdot y5 - y1 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(-1 \cdot \left(t \cdot y4\right)\right)\right)\\
\end{array}
\end{array}
if y2 < -1.7000000000000001e87Initial program 24.2%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6441.3
Applied rewrites41.3%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6442.0
Applied rewrites42.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6430.7
Applied rewrites30.7%
if -1.7000000000000001e87 < y2 < -4.8000000000000003e-35Initial program 28.0%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites33.6%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6424.9
Applied rewrites24.9%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6425.0
Applied rewrites25.0%
Taylor expanded in y0 around 0
lower-*.f64N/A
lift-*.f6415.3
Applied rewrites15.3%
if -4.8000000000000003e-35 < y2 < 1.27999999999999994e-42Initial program 34.6%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.0%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.0
Applied rewrites28.0%
if 1.27999999999999994e-42 < y2 Initial program 26.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites48.0%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.1
Applied rewrites36.1%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6422.5
Applied rewrites22.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y1 (* y3 z)))))
(if (<= z -2.7e+152)
t_1
(if (<= z 1.26e-301)
(* c (* y2 (* -1.0 (* t y4))))
(if (<= z 1.05e-42)
(* y4 (* b (* j t)))
(if (<= z 1.8e+92) (* c (* x (* y0 y2))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * (y3 * z));
double tmp;
if (z <= -2.7e+152) {
tmp = t_1;
} else if (z <= 1.26e-301) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else if (z <= 1.05e-42) {
tmp = y4 * (b * (j * t));
} else if (z <= 1.8e+92) {
tmp = c * (x * (y0 * y2));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y1 * (y3 * z))
if (z <= (-2.7d+152)) then
tmp = t_1
else if (z <= 1.26d-301) then
tmp = c * (y2 * ((-1.0d0) * (t * y4)))
else if (z <= 1.05d-42) then
tmp = y4 * (b * (j * t))
else if (z <= 1.8d+92) then
tmp = c * (x * (y0 * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * (y3 * z));
double tmp;
if (z <= -2.7e+152) {
tmp = t_1;
} else if (z <= 1.26e-301) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else if (z <= 1.05e-42) {
tmp = y4 * (b * (j * t));
} else if (z <= 1.8e+92) {
tmp = c * (x * (y0 * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y1 * (y3 * z)) tmp = 0 if z <= -2.7e+152: tmp = t_1 elif z <= 1.26e-301: tmp = c * (y2 * (-1.0 * (t * y4))) elif z <= 1.05e-42: tmp = y4 * (b * (j * t)) elif z <= 1.8e+92: tmp = c * (x * (y0 * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y1 * Float64(y3 * z))) tmp = 0.0 if (z <= -2.7e+152) tmp = t_1; elseif (z <= 1.26e-301) tmp = Float64(c * Float64(y2 * Float64(-1.0 * Float64(t * y4)))); elseif (z <= 1.05e-42) tmp = Float64(y4 * Float64(b * Float64(j * t))); elseif (z <= 1.8e+92) tmp = Float64(c * Float64(x * Float64(y0 * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y1 * (y3 * z)); tmp = 0.0; if (z <= -2.7e+152) tmp = t_1; elseif (z <= 1.26e-301) tmp = c * (y2 * (-1.0 * (t * y4))); elseif (z <= 1.05e-42) tmp = y4 * (b * (j * t)); elseif (z <= 1.8e+92) tmp = c * (x * (y0 * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -2.7e+152], t$95$1, If[LessEqual[z, 1.26e-301], N[(c * N[(y2 * N[(-1.0 * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e-42], N[(y4 * N[(b * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+92], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{if}\;z \leq -2.7 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.26 \cdot 10^{-301}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(-1 \cdot \left(t \cdot y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-42}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+92}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -2.70000000000000015e152 or 1.8e92 < z Initial program 22.4%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.5%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6445.3
Applied rewrites45.3%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6433.9
Applied rewrites33.9%
if -2.70000000000000015e152 < z < 1.2599999999999999e-301Initial program 32.0%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.6%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6416.2
Applied rewrites16.2%
if 1.2599999999999999e-301 < z < 1.05000000000000003e-42Initial program 35.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.6%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6428.3
Applied rewrites28.3%
Taylor expanded in y around 0
lift-*.f6417.3
Applied rewrites17.3%
if 1.05000000000000003e-42 < z < 1.8e92Initial program 31.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.6
Applied rewrites28.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6418.5
Applied rewrites18.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* a (* y1 (* y3 z)))))
(if (<= z -6.5e+152)
t_1
(if (<= z 1.12e-301)
(* c (* -1.0 (* t (* y2 y4))))
(if (<= z 1.05e-42)
(* y4 (* b (* j t)))
(if (<= z 1.8e+92) (* c (* x (* y0 y2))) t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * (y3 * z));
double tmp;
if (z <= -6.5e+152) {
tmp = t_1;
} else if (z <= 1.12e-301) {
tmp = c * (-1.0 * (t * (y2 * y4)));
} else if (z <= 1.05e-42) {
tmp = y4 * (b * (j * t));
} else if (z <= 1.8e+92) {
tmp = c * (x * (y0 * y2));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = a * (y1 * (y3 * z))
if (z <= (-6.5d+152)) then
tmp = t_1
else if (z <= 1.12d-301) then
tmp = c * ((-1.0d0) * (t * (y2 * y4)))
else if (z <= 1.05d-42) then
tmp = y4 * (b * (j * t))
else if (z <= 1.8d+92) then
tmp = c * (x * (y0 * y2))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = a * (y1 * (y3 * z));
double tmp;
if (z <= -6.5e+152) {
tmp = t_1;
} else if (z <= 1.12e-301) {
tmp = c * (-1.0 * (t * (y2 * y4)));
} else if (z <= 1.05e-42) {
tmp = y4 * (b * (j * t));
} else if (z <= 1.8e+92) {
tmp = c * (x * (y0 * y2));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = a * (y1 * (y3 * z)) tmp = 0 if z <= -6.5e+152: tmp = t_1 elif z <= 1.12e-301: tmp = c * (-1.0 * (t * (y2 * y4))) elif z <= 1.05e-42: tmp = y4 * (b * (j * t)) elif z <= 1.8e+92: tmp = c * (x * (y0 * y2)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(a * Float64(y1 * Float64(y3 * z))) tmp = 0.0 if (z <= -6.5e+152) tmp = t_1; elseif (z <= 1.12e-301) tmp = Float64(c * Float64(-1.0 * Float64(t * Float64(y2 * y4)))); elseif (z <= 1.05e-42) tmp = Float64(y4 * Float64(b * Float64(j * t))); elseif (z <= 1.8e+92) tmp = Float64(c * Float64(x * Float64(y0 * y2))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = a * (y1 * (y3 * z)); tmp = 0.0; if (z <= -6.5e+152) tmp = t_1; elseif (z <= 1.12e-301) tmp = c * (-1.0 * (t * (y2 * y4))); elseif (z <= 1.05e-42) tmp = y4 * (b * (j * t)); elseif (z <= 1.8e+92) tmp = c * (x * (y0 * y2)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[z, -6.5e+152], t$95$1, If[LessEqual[z, 1.12e-301], N[(c * N[(-1.0 * N[(t * N[(y2 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.05e-42], N[(y4 * N[(b * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.8e+92], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{if}\;z \leq -6.5 \cdot 10^{+152}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.12 \cdot 10^{-301}:\\
\;\;\;\;c \cdot \left(-1 \cdot \left(t \cdot \left(y2 \cdot y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.05 \cdot 10^{-42}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right)\\
\mathbf{elif}\;z \leq 1.8 \cdot 10^{+92}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -6.4999999999999997e152 or 1.8e92 < z Initial program 22.3%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites56.6%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6445.3
Applied rewrites45.3%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6433.9
Applied rewrites33.9%
if -6.4999999999999997e152 < z < 1.12e-301Initial program 32.0%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.6%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.4
Applied rewrites16.4%
if 1.12e-301 < z < 1.05000000000000003e-42Initial program 35.5%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.6%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6428.3
Applied rewrites28.3%
Taylor expanded in y around 0
lift-*.f6417.3
Applied rewrites17.3%
if 1.05000000000000003e-42 < z < 1.8e92Initial program 31.7%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6428.6
Applied rewrites28.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6418.5
Applied rewrites18.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y -4.2e-8)
(* y (* y3 (- (* c y4) (* a y5))))
(if (<= y 6e-296)
(* c (* y2 (* -1.0 (* t y4))))
(if (<= y 2.7e+32) (* c (* x (* y0 y2))) (* y4 (* b (* -1.0 (* 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 <= -4.2e-8) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y <= 6e-296) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else if (y <= 2.7e+32) {
tmp = c * (x * (y0 * y2));
} else {
tmp = y4 * (b * (-1.0 * (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 <= (-4.2d-8)) then
tmp = y * (y3 * ((c * y4) - (a * y5)))
else if (y <= 6d-296) then
tmp = c * (y2 * ((-1.0d0) * (t * y4)))
else if (y <= 2.7d+32) then
tmp = c * (x * (y0 * y2))
else
tmp = y4 * (b * ((-1.0d0) * (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 <= -4.2e-8) {
tmp = y * (y3 * ((c * y4) - (a * y5)));
} else if (y <= 6e-296) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else if (y <= 2.7e+32) {
tmp = c * (x * (y0 * y2));
} else {
tmp = y4 * (b * (-1.0 * (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 <= -4.2e-8: tmp = y * (y3 * ((c * y4) - (a * y5))) elif y <= 6e-296: tmp = c * (y2 * (-1.0 * (t * y4))) elif y <= 2.7e+32: tmp = c * (x * (y0 * y2)) else: tmp = y4 * (b * (-1.0 * (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 <= -4.2e-8) tmp = Float64(y * Float64(y3 * Float64(Float64(c * y4) - Float64(a * y5)))); elseif (y <= 6e-296) tmp = Float64(c * Float64(y2 * Float64(-1.0 * Float64(t * y4)))); elseif (y <= 2.7e+32) tmp = Float64(c * Float64(x * Float64(y0 * y2))); else tmp = Float64(y4 * Float64(b * Float64(-1.0 * 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 <= -4.2e-8) tmp = y * (y3 * ((c * y4) - (a * y5))); elseif (y <= 6e-296) tmp = c * (y2 * (-1.0 * (t * y4))); elseif (y <= 2.7e+32) tmp = c * (x * (y0 * y2)); else tmp = y4 * (b * (-1.0 * (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, -4.2e-8], N[(y * N[(y3 * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 6e-296], N[(c * N[(y2 * N[(-1.0 * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y, 2.7e+32], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y4 * N[(b * N[(-1.0 * N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq -4.2 \cdot 10^{-8}:\\
\;\;\;\;y \cdot \left(y3 \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{elif}\;y \leq 6 \cdot 10^{-296}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(-1 \cdot \left(t \cdot y4\right)\right)\right)\\
\mathbf{elif}\;y \leq 2.7 \cdot 10^{+32}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(-1 \cdot \left(k \cdot y\right)\right)\right)\\
\end{array}
\end{array}
if y < -4.19999999999999989e-8Initial program 25.5%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.1%
Taylor expanded in y around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6433.8
Applied rewrites33.8%
if -4.19999999999999989e-8 < y < 5.9999999999999995e-296Initial program 34.5%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.2%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6416.4
Applied rewrites16.4%
if 5.9999999999999995e-296 < y < 2.70000000000000013e32Initial program 34.2%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6417.7
Applied rewrites17.7%
if 2.70000000000000013e32 < y Initial program 24.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.0%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6434.7
Applied rewrites34.7%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6428.2
Applied rewrites28.2%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.42e+164)
(* y0 (* c (* -1.0 (* y3 z))))
(if (<= z 1.15e-301)
(* c (* y2 (* -1.0 (* t y4))))
(if (<= z 2.1e+91) (* y4 (* b (* -1.0 (* k y)))) (* a (* y1 (* y3 z)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1.42e+164) {
tmp = y0 * (c * (-1.0 * (y3 * z)));
} else if (z <= 1.15e-301) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else if (z <= 2.1e+91) {
tmp = y4 * (b * (-1.0 * (k * y)));
} else {
tmp = a * (y1 * (y3 * 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 (z <= (-1.42d+164)) then
tmp = y0 * (c * ((-1.0d0) * (y3 * z)))
else if (z <= 1.15d-301) then
tmp = c * (y2 * ((-1.0d0) * (t * y4)))
else if (z <= 2.1d+91) then
tmp = y4 * (b * ((-1.0d0) * (k * y)))
else
tmp = a * (y1 * (y3 * 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 (z <= -1.42e+164) {
tmp = y0 * (c * (-1.0 * (y3 * z)));
} else if (z <= 1.15e-301) {
tmp = c * (y2 * (-1.0 * (t * y4)));
} else if (z <= 2.1e+91) {
tmp = y4 * (b * (-1.0 * (k * y)));
} else {
tmp = a * (y1 * (y3 * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if z <= -1.42e+164: tmp = y0 * (c * (-1.0 * (y3 * z))) elif z <= 1.15e-301: tmp = c * (y2 * (-1.0 * (t * y4))) elif z <= 2.1e+91: tmp = y4 * (b * (-1.0 * (k * y))) else: tmp = a * (y1 * (y3 * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (z <= -1.42e+164) tmp = Float64(y0 * Float64(c * Float64(-1.0 * Float64(y3 * z)))); elseif (z <= 1.15e-301) tmp = Float64(c * Float64(y2 * Float64(-1.0 * Float64(t * y4)))); elseif (z <= 2.1e+91) tmp = Float64(y4 * Float64(b * Float64(-1.0 * Float64(k * y)))); else tmp = Float64(a * Float64(y1 * Float64(y3 * 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 (z <= -1.42e+164) tmp = y0 * (c * (-1.0 * (y3 * z))); elseif (z <= 1.15e-301) tmp = c * (y2 * (-1.0 * (t * y4))); elseif (z <= 2.1e+91) tmp = y4 * (b * (-1.0 * (k * y))); else tmp = a * (y1 * (y3 * 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[z, -1.42e+164], N[(y0 * N[(c * N[(-1.0 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.15e-301], N[(c * N[(y2 * N[(-1.0 * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.1e+91], N[(y4 * N[(b * N[(-1.0 * N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.42 \cdot 10^{+164}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(-1 \cdot \left(y3 \cdot z\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.15 \cdot 10^{-301}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(-1 \cdot \left(t \cdot y4\right)\right)\right)\\
\mathbf{elif}\;z \leq 2.1 \cdot 10^{+91}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(-1 \cdot \left(k \cdot y\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.41999999999999988e164Initial program 20.5%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.4%
Taylor expanded in c around inf
lift-*.f64N/A
lift-*.f64N/A
lift--.f64N/A
lift-*.f6439.4
Applied rewrites39.4%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6435.7
Applied rewrites35.7%
if -1.41999999999999988e164 < z < 1.1500000000000001e-301Initial program 31.6%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites39.4%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6416.3
Applied rewrites16.3%
if 1.1500000000000001e-301 < z < 2.10000000000000008e91Initial program 34.1%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.6%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6426.8
Applied rewrites26.8%
Taylor expanded in y around inf
lower-*.f64N/A
lift-*.f6417.6
Applied rewrites17.6%
if 2.10000000000000008e91 < z Initial program 23.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites55.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6443.2
Applied rewrites43.2%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6431.7
Applied rewrites31.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y2 -1.65e+87)
(* k (* -1.0 (* y0 (* y2 y5))))
(if (<= y2 -1.8e-74)
(* k (* y2 (* y1 y4)))
(if (<= y2 5.1e-21)
(* y4 (* b (* j t)))
(* c (* y2 (* -1.0 (* t 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 (y2 <= -1.65e+87) {
tmp = k * (-1.0 * (y0 * (y2 * y5)));
} else if (y2 <= -1.8e-74) {
tmp = k * (y2 * (y1 * y4));
} else if (y2 <= 5.1e-21) {
tmp = y4 * (b * (j * t));
} else {
tmp = c * (y2 * (-1.0 * (t * 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 (y2 <= (-1.65d+87)) then
tmp = k * ((-1.0d0) * (y0 * (y2 * y5)))
else if (y2 <= (-1.8d-74)) then
tmp = k * (y2 * (y1 * y4))
else if (y2 <= 5.1d-21) then
tmp = y4 * (b * (j * t))
else
tmp = c * (y2 * ((-1.0d0) * (t * 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 (y2 <= -1.65e+87) {
tmp = k * (-1.0 * (y0 * (y2 * y5)));
} else if (y2 <= -1.8e-74) {
tmp = k * (y2 * (y1 * y4));
} else if (y2 <= 5.1e-21) {
tmp = y4 * (b * (j * t));
} else {
tmp = c * (y2 * (-1.0 * (t * y4)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y2 <= -1.65e+87: tmp = k * (-1.0 * (y0 * (y2 * y5))) elif y2 <= -1.8e-74: tmp = k * (y2 * (y1 * y4)) elif y2 <= 5.1e-21: tmp = y4 * (b * (j * t)) else: tmp = c * (y2 * (-1.0 * (t * 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 (y2 <= -1.65e+87) tmp = Float64(k * Float64(-1.0 * Float64(y0 * Float64(y2 * y5)))); elseif (y2 <= -1.8e-74) tmp = Float64(k * Float64(y2 * Float64(y1 * y4))); elseif (y2 <= 5.1e-21) tmp = Float64(y4 * Float64(b * Float64(j * t))); else tmp = Float64(c * Float64(y2 * Float64(-1.0 * Float64(t * 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 (y2 <= -1.65e+87) tmp = k * (-1.0 * (y0 * (y2 * y5))); elseif (y2 <= -1.8e-74) tmp = k * (y2 * (y1 * y4)); elseif (y2 <= 5.1e-21) tmp = y4 * (b * (j * t)); else tmp = c * (y2 * (-1.0 * (t * 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[y2, -1.65e+87], N[(k * N[(-1.0 * N[(y0 * N[(y2 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, -1.8e-74], N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 5.1e-21], N[(y4 * N[(b * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y2 * N[(-1.0 * N[(t * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y2 \leq -1.65 \cdot 10^{+87}:\\
\;\;\;\;k \cdot \left(-1 \cdot \left(y0 \cdot \left(y2 \cdot y5\right)\right)\right)\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-74}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 5.1 \cdot 10^{-21}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(-1 \cdot \left(t \cdot y4\right)\right)\right)\\
\end{array}
\end{array}
if y2 < -1.6500000000000001e87Initial program 24.2%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.7%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6441.3
Applied rewrites41.3%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6442.0
Applied rewrites42.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6430.7
Applied rewrites30.7%
if -1.6500000000000001e87 < y2 < -1.8000000000000001e-74Initial program 29.2%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites33.0%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6423.3
Applied rewrites23.3%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6423.4
Applied rewrites23.4%
Taylor expanded in y0 around 0
lift-*.f6413.9
Applied rewrites13.9%
if -1.8000000000000001e-74 < y2 < 5.10000000000000004e-21Initial program 35.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.0
Applied rewrites27.0%
Taylor expanded in y around 0
lift-*.f6417.2
Applied rewrites17.2%
if 5.10000000000000004e-21 < y2 Initial program 25.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites48.9%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.7
Applied rewrites36.7%
Taylor expanded in x around 0
lower-*.f64N/A
lift-*.f6422.9
Applied rewrites22.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y0 -4.6e+118)
(* c (* y2 (* x y0)))
(if (<= y0 -1.15e+51)
(* a (* y1 (* y3 z)))
(if (<= y0 2.7e-22) (* a (* -1.0 (* b (* t z)))) (* c (* x (* y0 y2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.6e+118) {
tmp = c * (y2 * (x * y0));
} else if (y0 <= -1.15e+51) {
tmp = a * (y1 * (y3 * z));
} else if (y0 <= 2.7e-22) {
tmp = a * (-1.0 * (b * (t * z)));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y0 <= (-4.6d+118)) then
tmp = c * (y2 * (x * y0))
else if (y0 <= (-1.15d+51)) then
tmp = a * (y1 * (y3 * z))
else if (y0 <= 2.7d-22) then
tmp = a * ((-1.0d0) * (b * (t * z)))
else
tmp = c * (x * (y0 * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.6e+118) {
tmp = c * (y2 * (x * y0));
} else if (y0 <= -1.15e+51) {
tmp = a * (y1 * (y3 * z));
} else if (y0 <= 2.7e-22) {
tmp = a * (-1.0 * (b * (t * z)));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -4.6e+118: tmp = c * (y2 * (x * y0)) elif y0 <= -1.15e+51: tmp = a * (y1 * (y3 * z)) elif y0 <= 2.7e-22: tmp = a * (-1.0 * (b * (t * z))) else: tmp = c * (x * (y0 * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y0 <= -4.6e+118) tmp = Float64(c * Float64(y2 * Float64(x * y0))); elseif (y0 <= -1.15e+51) tmp = Float64(a * Float64(y1 * Float64(y3 * z))); elseif (y0 <= 2.7e-22) tmp = Float64(a * Float64(-1.0 * Float64(b * Float64(t * z)))); else tmp = Float64(c * Float64(x * Float64(y0 * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y0 <= -4.6e+118) tmp = c * (y2 * (x * y0)); elseif (y0 <= -1.15e+51) tmp = a * (y1 * (y3 * z)); elseif (y0 <= 2.7e-22) tmp = a * (-1.0 * (b * (t * z))); else tmp = c * (x * (y0 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -4.6e+118], N[(c * N[(y2 * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, -1.15e+51], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 2.7e-22], N[(a * N[(-1.0 * N[(b * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -4.6 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0\right)\right)\\
\mathbf{elif}\;y0 \leq -1.15 \cdot 10^{+51}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{elif}\;y0 \leq 2.7 \cdot 10^{-22}:\\
\;\;\;\;a \cdot \left(-1 \cdot \left(b \cdot \left(t \cdot z\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\end{array}
\end{array}
if y0 < -4.60000000000000032e118Initial program 22.2%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.8
Applied rewrites36.8%
Taylor expanded in x around inf
lift-*.f6432.5
Applied rewrites32.5%
if -4.60000000000000032e118 < y0 < -1.15000000000000003e51Initial program 29.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.7%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6425.7
Applied rewrites25.7%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6418.4
Applied rewrites18.4%
if -1.15000000000000003e51 < y0 < 2.7000000000000002e-22Initial program 33.5%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.1%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6428.4
Applied rewrites28.4%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.9
Applied rewrites17.9%
if 2.7000000000000002e-22 < y0 Initial program 26.8%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6432.3
Applied rewrites32.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6426.8
Applied rewrites26.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y3 (* y5 (- (* j y0) (* a y))))))
(if (<= y3 -5e+16)
t_1
(if (<= y3 2e+43) (* 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 = y3 * (y5 * ((j * y0) - (a * y)));
double tmp;
if (y3 <= -5e+16) {
tmp = t_1;
} else if (y3 <= 2e+43) {
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 = y3 * (y5 * ((j * y0) - (a * y)))
if (y3 <= (-5d+16)) then
tmp = t_1
else if (y3 <= 2d+43) 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 = y3 * (y5 * ((j * y0) - (a * y)));
double tmp;
if (y3 <= -5e+16) {
tmp = t_1;
} else if (y3 <= 2e+43) {
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 = y3 * (y5 * ((j * y0) - (a * y))) tmp = 0 if y3 <= -5e+16: tmp = t_1 elif y3 <= 2e+43: 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(y3 * Float64(y5 * Float64(Float64(j * y0) - Float64(a * y)))) tmp = 0.0 if (y3 <= -5e+16) tmp = t_1; elseif (y3 <= 2e+43) 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 = y3 * (y5 * ((j * y0) - (a * y))); tmp = 0.0; if (y3 <= -5e+16) tmp = t_1; elseif (y3 <= 2e+43) 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[(y3 * N[(y5 * N[(N[(j * y0), $MachinePrecision] - N[(a * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y3, -5e+16], t$95$1, If[LessEqual[y3, 2e+43], N[(k * N[(z * N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y3 \cdot \left(y5 \cdot \left(j \cdot y0 - a \cdot y\right)\right)\\
\mathbf{if}\;y3 \leq -5 \cdot 10^{+16}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y3 \leq 2 \cdot 10^{+43}:\\
\;\;\;\;k \cdot \left(z \cdot \left(b \cdot y0 - i \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y3 < -5e16 or 2.00000000000000003e43 < y3 Initial program 24.8%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites52.2%
Taylor expanded in y5 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.8
Applied rewrites35.8%
if -5e16 < y3 < 2.00000000000000003e43Initial program 33.8%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.5%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6428.0
Applied rewrites28.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* c (* x (* y0 y2)))))
(if (<= y2 -6.8e+87)
t_1
(if (<= y2 -1.8e-74)
(* k (* y2 (* y1 y4)))
(if (<= y2 3.5e+121) (* y4 (* b (* j t))) t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (x * (y0 * y2));
double tmp;
if (y2 <= -6.8e+87) {
tmp = t_1;
} else if (y2 <= -1.8e-74) {
tmp = k * (y2 * (y1 * y4));
} else if (y2 <= 3.5e+121) {
tmp = y4 * (b * (j * t));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (x * (y0 * y2))
if (y2 <= (-6.8d+87)) then
tmp = t_1
else if (y2 <= (-1.8d-74)) then
tmp = k * (y2 * (y1 * y4))
else if (y2 <= 3.5d+121) then
tmp = y4 * (b * (j * t))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (x * (y0 * y2));
double tmp;
if (y2 <= -6.8e+87) {
tmp = t_1;
} else if (y2 <= -1.8e-74) {
tmp = k * (y2 * (y1 * y4));
} else if (y2 <= 3.5e+121) {
tmp = y4 * (b * (j * t));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (x * (y0 * y2)) tmp = 0 if y2 <= -6.8e+87: tmp = t_1 elif y2 <= -1.8e-74: tmp = k * (y2 * (y1 * y4)) elif y2 <= 3.5e+121: tmp = y4 * (b * (j * t)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(x * Float64(y0 * y2))) tmp = 0.0 if (y2 <= -6.8e+87) tmp = t_1; elseif (y2 <= -1.8e-74) tmp = Float64(k * Float64(y2 * Float64(y1 * y4))); elseif (y2 <= 3.5e+121) tmp = Float64(y4 * Float64(b * Float64(j * t))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (x * (y0 * y2)); tmp = 0.0; if (y2 <= -6.8e+87) tmp = t_1; elseif (y2 <= -1.8e-74) tmp = k * (y2 * (y1 * y4)); elseif (y2 <= 3.5e+121) tmp = y4 * (b * (j * t)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y2, -6.8e+87], t$95$1, If[LessEqual[y2, -1.8e-74], N[(k * N[(y2 * N[(y1 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y2, 3.5e+121], N[(y4 * N[(b * N[(j * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{if}\;y2 \leq -6.8 \cdot 10^{+87}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y2 \leq -1.8 \cdot 10^{-74}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4\right)\right)\\
\mathbf{elif}\;y2 \leq 3.5 \cdot 10^{+121}:\\
\;\;\;\;y4 \cdot \left(b \cdot \left(j \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y2 < -6.8000000000000004e87 or 3.5e121 < y2 Initial program 23.6%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites54.2%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6442.5
Applied rewrites42.5%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6433.2
Applied rewrites33.2%
if -6.8000000000000004e87 < y2 < -1.8000000000000001e-74Initial program 29.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites33.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6423.4
Applied rewrites23.4%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6423.5
Applied rewrites23.5%
Taylor expanded in y0 around 0
lift-*.f6413.9
Applied rewrites13.9%
if -1.8000000000000001e-74 < y2 < 3.5e121Initial program 33.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.8%
Taylor expanded in b around inf
lower-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift--.f6427.1
Applied rewrites27.1%
Taylor expanded in y around 0
lift-*.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 (<= y0 -4.6e+118) (* c (* y2 (* x y0))) (if (<= y0 1.95e+31) (* a (* y1 (* y3 z))) (* c (* x (* y0 y2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.6e+118) {
tmp = c * (y2 * (x * y0));
} else if (y0 <= 1.95e+31) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y0 <= (-4.6d+118)) then
tmp = c * (y2 * (x * y0))
else if (y0 <= 1.95d+31) then
tmp = a * (y1 * (y3 * z))
else
tmp = c * (x * (y0 * y2))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y0 <= -4.6e+118) {
tmp = c * (y2 * (x * y0));
} else if (y0 <= 1.95e+31) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = c * (x * (y0 * y2));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y0 <= -4.6e+118: tmp = c * (y2 * (x * y0)) elif y0 <= 1.95e+31: tmp = a * (y1 * (y3 * z)) else: tmp = c * (x * (y0 * y2)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y0 <= -4.6e+118) tmp = Float64(c * Float64(y2 * Float64(x * y0))); elseif (y0 <= 1.95e+31) tmp = Float64(a * Float64(y1 * Float64(y3 * z))); else tmp = Float64(c * Float64(x * Float64(y0 * y2))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y0 <= -4.6e+118) tmp = c * (y2 * (x * y0)); elseif (y0 <= 1.95e+31) tmp = a * (y1 * (y3 * z)); else tmp = c * (x * (y0 * y2)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y0, -4.6e+118], N[(c * N[(y2 * N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y0, 1.95e+31], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y0 \leq -4.6 \cdot 10^{+118}:\\
\;\;\;\;c \cdot \left(y2 \cdot \left(x \cdot y0\right)\right)\\
\mathbf{elif}\;y0 \leq 1.95 \cdot 10^{+31}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\end{array}
\end{array}
if y0 < -4.60000000000000032e118Initial program 22.2%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites36.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6436.8
Applied rewrites36.8%
Taylor expanded in x around inf
lift-*.f6432.5
Applied rewrites32.5%
if -4.60000000000000032e118 < y0 < 1.95e31Initial program 32.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6428.4
Applied rewrites28.4%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6418.9
Applied rewrites18.9%
if 1.95e31 < y0 Initial program 26.3%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.1%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6434.2
Applied rewrites34.2%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6429.4
Applied rewrites29.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* c (* x (* y0 y2))))) (if (<= y0 -4.6e+118) t_1 (if (<= y0 1.95e+31) (* a (* y1 (* y3 z))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (x * (y0 * y2));
double tmp;
if (y0 <= -4.6e+118) {
tmp = t_1;
} else if (y0 <= 1.95e+31) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = c * (x * (y0 * y2))
if (y0 <= (-4.6d+118)) then
tmp = t_1
else if (y0 <= 1.95d+31) then
tmp = a * (y1 * (y3 * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = c * (x * (y0 * y2));
double tmp;
if (y0 <= -4.6e+118) {
tmp = t_1;
} else if (y0 <= 1.95e+31) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = c * (x * (y0 * y2)) tmp = 0 if y0 <= -4.6e+118: tmp = t_1 elif y0 <= 1.95e+31: tmp = a * (y1 * (y3 * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(c * Float64(x * Float64(y0 * y2))) tmp = 0.0 if (y0 <= -4.6e+118) tmp = t_1; elseif (y0 <= 1.95e+31) tmp = Float64(a * Float64(y1 * Float64(y3 * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = c * (x * (y0 * y2)); tmp = 0.0; if (y0 <= -4.6e+118) tmp = t_1; elseif (y0 <= 1.95e+31) tmp = a * (y1 * (y3 * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(c * N[(x * N[(y0 * y2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y0, -4.6e+118], t$95$1, If[LessEqual[y0, 1.95e+31], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot \left(x \cdot \left(y0 \cdot y2\right)\right)\\
\mathbf{if}\;y0 \leq -4.6 \cdot 10^{+118}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y0 \leq 1.95 \cdot 10^{+31}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if y0 < -4.60000000000000032e118 or 1.95e31 < y0 Initial program 24.6%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in c around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6435.3
Applied rewrites35.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f6431.4
Applied rewrites31.4%
if -4.60000000000000032e118 < y0 < 1.95e31Initial program 32.9%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6428.4
Applied rewrites28.4%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6418.9
Applied rewrites18.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* i (* k (* y y5))))) (if (<= k -1e-11) t_1 (if (<= k 1e+80) (* a (* y1 (* y3 z))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (k * (y * y5));
double tmp;
if (k <= -1e-11) {
tmp = t_1;
} else if (k <= 1e+80) {
tmp = a * (y1 * (y3 * 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 = i * (k * (y * y5))
if (k <= (-1d-11)) then
tmp = t_1
else if (k <= 1d+80) then
tmp = a * (y1 * (y3 * 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 = i * (k * (y * y5));
double tmp;
if (k <= -1e-11) {
tmp = t_1;
} else if (k <= 1e+80) {
tmp = a * (y1 * (y3 * 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 = i * (k * (y * y5)) tmp = 0 if k <= -1e-11: tmp = t_1 elif k <= 1e+80: tmp = a * (y1 * (y3 * z)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(k * Float64(y * y5))) tmp = 0.0 if (k <= -1e-11) tmp = t_1; elseif (k <= 1e+80) tmp = Float64(a * Float64(y1 * Float64(y3 * 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 = i * (k * (y * y5)); tmp = 0.0; if (k <= -1e-11) tmp = t_1; elseif (k <= 1e+80) tmp = a * (y1 * (y3 * 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[(i * N[(k * N[(y * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[k, -1e-11], t$95$1, If[LessEqual[k, 1e+80], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(k \cdot \left(y \cdot y5\right)\right)\\
\mathbf{if}\;k \leq -1 \cdot 10^{-11}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;k \leq 10^{+80}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if k < -9.99999999999999939e-12 or 1e80 < k Initial program 25.3%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.9%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6439.2
Applied rewrites39.2%
Taylor expanded in y around inf
lift-*.f6425.4
Applied rewrites25.4%
if -9.99999999999999939e-12 < k < 1e80Initial program 33.2%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.3%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.8
Applied rewrites27.8%
Taylor expanded in t around 0
lower-*.f64N/A
lift-*.f6417.9
Applied rewrites17.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(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]
\begin{array}{l}
\\
i \cdot \left(k \cdot \left(y \cdot y5\right)\right)
\end{array}
Initial program 29.7%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in k around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in y around inf
lift-*.f6416.8
Applied rewrites16.8%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* y4 c) (* y5 a)))
(t_2 (- (* x y2) (* z y3)))
(t_3 (- (* y2 t) (* y3 y)))
(t_4 (- (* k y2) (* j y3)))
(t_5 (- (* y4 b) (* y5 i)))
(t_6 (* (- (* j t) (* k y)) t_5))
(t_7 (- (* b a) (* i c)))
(t_8 (* t_7 (- (* y x) (* t z))))
(t_9 (- (* j x) (* k z)))
(t_10 (* (- (* b y0) (* i y1)) t_9))
(t_11 (* t_9 (- (* y0 b) (* i y1))))
(t_12 (- (* y4 y1) (* y5 y0)))
(t_13 (* t_4 t_12))
(t_14 (* (- (* y2 k) (* y3 j)) t_12))
(t_15
(+
(-
(-
(- (* (* k y) (* y5 i)) (* (* y b) (* y4 k)))
(* (* y5 t) (* i j)))
(- (* t_3 t_1) t_14))
(- t_8 (- t_11 (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))))
(t_16
(+
(+
(- t_6 (* (* y3 y) (- (* y5 a) (* y4 c))))
(+ (* (* y5 a) (* t y2)) t_13))
(-
(* t_2 (- (* c y0) (* a y1)))
(- t_10 (* (- (* y x) (* z t)) t_7)))))
(t_17 (- (* t y2) (* y y3))))
(if (< y4 -7.206256231996481e+60)
(- (- t_8 (- t_11 t_6)) (- (/ t_3 (/ 1.0 t_1)) t_14))
(if (< y4 -3.364603505246317e-66)
(+
(-
(- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x)))
t_10)
(-
(* (- (* y0 c) (* a y1)) t_2)
(- (* t_17 (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) t_4))))
(if (< y4 -1.2000065055686116e-105)
t_16
(if (< y4 6.718963124057495e-279)
t_15
(if (< y4 4.77962681403792e-222)
t_16
(if (< y4 2.2852241541266835e-175)
t_15
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(-
(* k (* i (* z y1)))
(+ (* j (* i (* x y1))) (* y0 (* k (* z b))))))
(-
(* z (* y3 (* a y1)))
(+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3))))))
(* (- (* t j) (* y k)) t_5))
(* t_17 t_1))
t_13)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: t_10
real(8) :: t_11
real(8) :: t_12
real(8) :: t_13
real(8) :: t_14
real(8) :: t_15
real(8) :: t_16
real(8) :: t_17
real(8) :: t_2
real(8) :: t_3
real(8) :: t_4
real(8) :: t_5
real(8) :: t_6
real(8) :: t_7
real(8) :: t_8
real(8) :: t_9
real(8) :: tmp
t_1 = (y4 * c) - (y5 * a)
t_2 = (x * y2) - (z * y3)
t_3 = (y2 * t) - (y3 * y)
t_4 = (k * y2) - (j * y3)
t_5 = (y4 * b) - (y5 * i)
t_6 = ((j * t) - (k * y)) * t_5
t_7 = (b * a) - (i * c)
t_8 = t_7 * ((y * x) - (t * z))
t_9 = (j * x) - (k * z)
t_10 = ((b * y0) - (i * y1)) * t_9
t_11 = t_9 * ((y0 * b) - (i * y1))
t_12 = (y4 * y1) - (y5 * y0)
t_13 = t_4 * t_12
t_14 = ((y2 * k) - (y3 * j)) * t_12
t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))))
t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)))
t_17 = (t * y2) - (y * y3)
if (y4 < (-7.206256231996481d+60)) then
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0d0 / t_1)) - t_14)
else if (y4 < (-3.364603505246317d-66)) then
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)))
else if (y4 < (-1.2000065055686116d-105)) then
tmp = t_16
else if (y4 < 6.718963124057495d-279) then
tmp = t_15
else if (y4 < 4.77962681403792d-222) then
tmp = t_16
else if (y4 < 2.2852241541266835d-175) then
tmp = t_15
else
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (y4 * c) - (y5 * a);
double t_2 = (x * y2) - (z * y3);
double t_3 = (y2 * t) - (y3 * y);
double t_4 = (k * y2) - (j * y3);
double t_5 = (y4 * b) - (y5 * i);
double t_6 = ((j * t) - (k * y)) * t_5;
double t_7 = (b * a) - (i * c);
double t_8 = t_7 * ((y * x) - (t * z));
double t_9 = (j * x) - (k * z);
double t_10 = ((b * y0) - (i * y1)) * t_9;
double t_11 = t_9 * ((y0 * b) - (i * y1));
double t_12 = (y4 * y1) - (y5 * y0);
double t_13 = t_4 * t_12;
double t_14 = ((y2 * k) - (y3 * j)) * t_12;
double t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a)))));
double t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7)));
double t_17 = (t * y2) - (y * y3);
double tmp;
if (y4 < -7.206256231996481e+60) {
tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14);
} else if (y4 < -3.364603505246317e-66) {
tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4)));
} else if (y4 < -1.2000065055686116e-105) {
tmp = t_16;
} else if (y4 < 6.718963124057495e-279) {
tmp = t_15;
} else if (y4 < 4.77962681403792e-222) {
tmp = t_16;
} else if (y4 < 2.2852241541266835e-175) {
tmp = t_15;
} else {
tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = (y4 * c) - (y5 * a) t_2 = (x * y2) - (z * y3) t_3 = (y2 * t) - (y3 * y) t_4 = (k * y2) - (j * y3) t_5 = (y4 * b) - (y5 * i) t_6 = ((j * t) - (k * y)) * t_5 t_7 = (b * a) - (i * c) t_8 = t_7 * ((y * x) - (t * z)) t_9 = (j * x) - (k * z) t_10 = ((b * y0) - (i * y1)) * t_9 t_11 = t_9 * ((y0 * b) - (i * y1)) t_12 = (y4 * y1) - (y5 * y0) t_13 = t_4 * t_12 t_14 = ((y2 * k) - (y3 * j)) * t_12 t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))) t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))) t_17 = (t * y2) - (y * y3) tmp = 0 if y4 < -7.206256231996481e+60: tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14) elif y4 < -3.364603505246317e-66: tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))) elif y4 < -1.2000065055686116e-105: tmp = t_16 elif y4 < 6.718963124057495e-279: tmp = t_15 elif y4 < 4.77962681403792e-222: tmp = t_16 elif y4 < 2.2852241541266835e-175: tmp = t_15 else: tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(y4 * c) - Float64(y5 * a)) t_2 = Float64(Float64(x * y2) - Float64(z * y3)) t_3 = Float64(Float64(y2 * t) - Float64(y3 * y)) t_4 = Float64(Float64(k * y2) - Float64(j * y3)) t_5 = Float64(Float64(y4 * b) - Float64(y5 * i)) t_6 = Float64(Float64(Float64(j * t) - Float64(k * y)) * t_5) t_7 = Float64(Float64(b * a) - Float64(i * c)) t_8 = Float64(t_7 * Float64(Float64(y * x) - Float64(t * z))) t_9 = Float64(Float64(j * x) - Float64(k * z)) t_10 = Float64(Float64(Float64(b * y0) - Float64(i * y1)) * t_9) t_11 = Float64(t_9 * Float64(Float64(y0 * b) - Float64(i * y1))) t_12 = Float64(Float64(y4 * y1) - Float64(y5 * y0)) t_13 = Float64(t_4 * t_12) t_14 = Float64(Float64(Float64(y2 * k) - Float64(y3 * j)) * t_12) t_15 = Float64(Float64(Float64(Float64(Float64(Float64(k * y) * Float64(y5 * i)) - Float64(Float64(y * b) * Float64(y4 * k))) - Float64(Float64(y5 * t) * Float64(i * j))) - Float64(Float64(t_3 * t_1) - t_14)) + Float64(t_8 - Float64(t_11 - Float64(Float64(Float64(y2 * x) - Float64(y3 * z)) * Float64(Float64(c * y0) - Float64(y1 * a)))))) t_16 = Float64(Float64(Float64(t_6 - Float64(Float64(y3 * y) * Float64(Float64(y5 * a) - Float64(y4 * c)))) + Float64(Float64(Float64(y5 * a) * Float64(t * y2)) + t_13)) + Float64(Float64(t_2 * Float64(Float64(c * y0) - Float64(a * y1))) - Float64(t_10 - Float64(Float64(Float64(y * x) - Float64(z * t)) * t_7)))) t_17 = Float64(Float64(t * y2) - Float64(y * y3)) tmp = 0.0 if (y4 < -7.206256231996481e+60) tmp = Float64(Float64(t_8 - Float64(t_11 - t_6)) - Float64(Float64(t_3 / Float64(1.0 / t_1)) - t_14)); elseif (y4 < -3.364603505246317e-66) tmp = Float64(Float64(Float64(Float64(Float64(Float64(t * c) * Float64(i * z)) - Float64(Float64(a * t) * Float64(b * z))) - Float64(Float64(y * c) * Float64(i * x))) - t_10) + Float64(Float64(Float64(Float64(y0 * c) - Float64(a * y1)) * t_2) - Float64(Float64(t_17 * Float64(Float64(y4 * c) - Float64(a * y5))) - Float64(Float64(Float64(y1 * y4) - Float64(y5 * y0)) * t_4)))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(k * Float64(i * Float64(z * y1))) - Float64(Float64(j * Float64(i * Float64(x * y1))) + Float64(y0 * Float64(k * Float64(z * b)))))) + Float64(Float64(z * Float64(y3 * Float64(a * y1))) - Float64(Float64(y2 * Float64(x * Float64(a * y1))) + Float64(y0 * Float64(z * Float64(c * y3)))))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * t_5)) - Float64(t_17 * t_1)) + t_13); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = (y4 * c) - (y5 * a); t_2 = (x * y2) - (z * y3); t_3 = (y2 * t) - (y3 * y); t_4 = (k * y2) - (j * y3); t_5 = (y4 * b) - (y5 * i); t_6 = ((j * t) - (k * y)) * t_5; t_7 = (b * a) - (i * c); t_8 = t_7 * ((y * x) - (t * z)); t_9 = (j * x) - (k * z); t_10 = ((b * y0) - (i * y1)) * t_9; t_11 = t_9 * ((y0 * b) - (i * y1)); t_12 = (y4 * y1) - (y5 * y0); t_13 = t_4 * t_12; t_14 = ((y2 * k) - (y3 * j)) * t_12; t_15 = (((((k * y) * (y5 * i)) - ((y * b) * (y4 * k))) - ((y5 * t) * (i * j))) - ((t_3 * t_1) - t_14)) + (t_8 - (t_11 - (((y2 * x) - (y3 * z)) * ((c * y0) - (y1 * a))))); t_16 = ((t_6 - ((y3 * y) * ((y5 * a) - (y4 * c)))) + (((y5 * a) * (t * y2)) + t_13)) + ((t_2 * ((c * y0) - (a * y1))) - (t_10 - (((y * x) - (z * t)) * t_7))); t_17 = (t * y2) - (y * y3); tmp = 0.0; if (y4 < -7.206256231996481e+60) tmp = (t_8 - (t_11 - t_6)) - ((t_3 / (1.0 / t_1)) - t_14); elseif (y4 < -3.364603505246317e-66) tmp = (((((t * c) * (i * z)) - ((a * t) * (b * z))) - ((y * c) * (i * x))) - t_10) + ((((y0 * c) - (a * y1)) * t_2) - ((t_17 * ((y4 * c) - (a * y5))) - (((y1 * y4) - (y5 * y0)) * t_4))); elseif (y4 < -1.2000065055686116e-105) tmp = t_16; elseif (y4 < 6.718963124057495e-279) tmp = t_15; elseif (y4 < 4.77962681403792e-222) tmp = t_16; elseif (y4 < 2.2852241541266835e-175) tmp = t_15; else tmp = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - ((k * (i * (z * y1))) - ((j * (i * (x * y1))) + (y0 * (k * (z * b)))))) + ((z * (y3 * (a * y1))) - ((y2 * (x * (a * y1))) + (y0 * (z * (c * y3)))))) + (((t * j) - (y * k)) * t_5)) - (t_17 * t_1)) + t_13; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(y2 * t), $MachinePrecision] - N[(y3 * y), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$4 = N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$5 = N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$6 = N[(N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]}, Block[{t$95$7 = N[(N[(b * a), $MachinePrecision] - N[(i * c), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$8 = N[(t$95$7 * N[(N[(y * x), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$9 = N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$10 = N[(N[(N[(b * y0), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision] * t$95$9), $MachinePrecision]}, Block[{t$95$11 = N[(t$95$9 * N[(N[(y0 * b), $MachinePrecision] - N[(i * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$12 = N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$13 = N[(t$95$4 * t$95$12), $MachinePrecision]}, Block[{t$95$14 = N[(N[(N[(y2 * k), $MachinePrecision] - N[(y3 * j), $MachinePrecision]), $MachinePrecision] * t$95$12), $MachinePrecision]}, Block[{t$95$15 = N[(N[(N[(N[(N[(N[(k * y), $MachinePrecision] * N[(y5 * i), $MachinePrecision]), $MachinePrecision] - N[(N[(y * b), $MachinePrecision] * N[(y4 * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y5 * t), $MachinePrecision] * N[(i * j), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 * t$95$1), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision] + N[(t$95$8 - N[(t$95$11 - N[(N[(N[(y2 * x), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision] * N[(N[(c * y0), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$16 = N[(N[(N[(t$95$6 - N[(N[(y3 * y), $MachinePrecision] * N[(N[(y5 * a), $MachinePrecision] - N[(y4 * c), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(y5 * a), $MachinePrecision] * N[(t * y2), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]), $MachinePrecision] + N[(N[(t$95$2 * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(t$95$10 - N[(N[(N[(y * x), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * t$95$7), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$17 = N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision]}, If[Less[y4, -7.206256231996481e+60], N[(N[(t$95$8 - N[(t$95$11 - t$95$6), $MachinePrecision]), $MachinePrecision] - N[(N[(t$95$3 / N[(1.0 / t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$14), $MachinePrecision]), $MachinePrecision], If[Less[y4, -3.364603505246317e-66], N[(N[(N[(N[(N[(N[(t * c), $MachinePrecision] * N[(i * z), $MachinePrecision]), $MachinePrecision] - N[(N[(a * t), $MachinePrecision] * N[(b * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y * c), $MachinePrecision] * N[(i * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - t$95$10), $MachinePrecision] + N[(N[(N[(N[(y0 * c), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision] * t$95$2), $MachinePrecision] - N[(N[(t$95$17 * N[(N[(y4 * c), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(y1 * y4), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision] * t$95$4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[Less[y4, -1.2000065055686116e-105], t$95$16, If[Less[y4, 6.718963124057495e-279], t$95$15, If[Less[y4, 4.77962681403792e-222], t$95$16, If[Less[y4, 2.2852241541266835e-175], t$95$15, N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(k * N[(i * N[(z * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(j * N[(i * N[(x * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(k * N[(z * b), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(z * N[(y3 * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(y2 * N[(x * N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y0 * N[(z * N[(c * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * t$95$5), $MachinePrecision]), $MachinePrecision] - N[(t$95$17 * t$95$1), $MachinePrecision]), $MachinePrecision] + t$95$13), $MachinePrecision]]]]]]]]]]]]]]]]]]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y4 \cdot c - y5 \cdot a\\
t_2 := x \cdot y2 - z \cdot y3\\
t_3 := y2 \cdot t - y3 \cdot y\\
t_4 := k \cdot y2 - j \cdot y3\\
t_5 := y4 \cdot b - y5 \cdot i\\
t_6 := \left(j \cdot t - k \cdot y\right) \cdot t\_5\\
t_7 := b \cdot a - i \cdot c\\
t_8 := t\_7 \cdot \left(y \cdot x - t \cdot z\right)\\
t_9 := j \cdot x - k \cdot z\\
t_10 := \left(b \cdot y0 - i \cdot y1\right) \cdot t\_9\\
t_11 := t\_9 \cdot \left(y0 \cdot b - i \cdot y1\right)\\
t_12 := y4 \cdot y1 - y5 \cdot y0\\
t_13 := t\_4 \cdot t\_12\\
t_14 := \left(y2 \cdot k - y3 \cdot j\right) \cdot t\_12\\
t_15 := \left(\left(\left(\left(k \cdot y\right) \cdot \left(y5 \cdot i\right) - \left(y \cdot b\right) \cdot \left(y4 \cdot k\right)\right) - \left(y5 \cdot t\right) \cdot \left(i \cdot j\right)\right) - \left(t\_3 \cdot t\_1 - t\_14\right)\right) + \left(t\_8 - \left(t\_11 - \left(y2 \cdot x - y3 \cdot z\right) \cdot \left(c \cdot y0 - y1 \cdot a\right)\right)\right)\\
t_16 := \left(\left(t\_6 - \left(y3 \cdot y\right) \cdot \left(y5 \cdot a - y4 \cdot c\right)\right) + \left(\left(y5 \cdot a\right) \cdot \left(t \cdot y2\right) + t\_13\right)\right) + \left(t\_2 \cdot \left(c \cdot y0 - a \cdot y1\right) - \left(t\_10 - \left(y \cdot x - z \cdot t\right) \cdot t\_7\right)\right)\\
t_17 := t \cdot y2 - y \cdot y3\\
\mathbf{if}\;y4 < -7.206256231996481 \cdot 10^{+60}:\\
\;\;\;\;\left(t\_8 - \left(t\_11 - t\_6\right)\right) - \left(\frac{t\_3}{\frac{1}{t\_1}} - t\_14\right)\\
\mathbf{elif}\;y4 < -3.364603505246317 \cdot 10^{-66}:\\
\;\;\;\;\left(\left(\left(\left(t \cdot c\right) \cdot \left(i \cdot z\right) - \left(a \cdot t\right) \cdot \left(b \cdot z\right)\right) - \left(y \cdot c\right) \cdot \left(i \cdot x\right)\right) - t\_10\right) + \left(\left(y0 \cdot c - a \cdot y1\right) \cdot t\_2 - \left(t\_17 \cdot \left(y4 \cdot c - a \cdot y5\right) - \left(y1 \cdot y4 - y5 \cdot y0\right) \cdot t\_4\right)\right)\\
\mathbf{elif}\;y4 < -1.2000065055686116 \cdot 10^{-105}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 6.718963124057495 \cdot 10^{-279}:\\
\;\;\;\;t\_15\\
\mathbf{elif}\;y4 < 4.77962681403792 \cdot 10^{-222}:\\
\;\;\;\;t\_16\\
\mathbf{elif}\;y4 < 2.2852241541266835 \cdot 10^{-175}:\\
\;\;\;\;t\_15\\
\mathbf{else}:\\
\;\;\;\;\left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(k \cdot \left(i \cdot \left(z \cdot y1\right)\right) - \left(j \cdot \left(i \cdot \left(x \cdot y1\right)\right) + y0 \cdot \left(k \cdot \left(z \cdot b\right)\right)\right)\right)\right) + \left(z \cdot \left(y3 \cdot \left(a \cdot y1\right)\right) - \left(y2 \cdot \left(x \cdot \left(a \cdot y1\right)\right) + y0 \cdot \left(z \cdot \left(c \cdot y3\right)\right)\right)\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot t\_5\right) - t\_17 \cdot t\_1\right) + t\_13\\
\end{array}
\end{array}
herbie shell --seed 2025089
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
:alt
(! :herbie-platform default (if (< y4 -7206256231996481000000000000000000000000000000000000000000000) (- (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))))) (- (/ (- (* y2 t) (* y3 y)) (/ 1 (- (* y4 c) (* y5 a)))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (if (< y4 -3364603505246317/1000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* t c) (* i z)) (* (* a t) (* b z))) (* (* y c) (* i x))) (* (- (* b y0) (* i y1)) (- (* j x) (* k z)))) (- (* (- (* y0 c) (* a y1)) (- (* x y2) (* z y3))) (- (* (- (* t y2) (* y y3)) (- (* y4 c) (* a y5))) (* (- (* y1 y4) (* y5 y0)) (- (* k y2) (* j y3)))))) (if (< y4 -3000016263921529/2500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 1343792624811499/200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (if (< y4 29872667587737/6250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (+ (- (* (- (* j t) (* k y)) (- (* y4 b) (* y5 i))) (* (* y3 y) (- (* y5 a) (* y4 c)))) (+ (* (* y5 a) (* t y2)) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* x y2) (* z y3)) (- (* c y0) (* a y1))) (- (* (- (* b y0) (* i y1)) (- (* j x) (* k z))) (* (- (* y x) (* z t)) (- (* b a) (* i c)))))) (if (< y4 4570448308253367/20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000) (+ (- (- (- (* (* k y) (* y5 i)) (* (* y b) (* y4 k))) (* (* y5 t) (* i j))) (- (* (- (* y2 t) (* y3 y)) (- (* y4 c) (* y5 a))) (* (- (* y2 k) (* y3 j)) (- (* y4 y1) (* y5 y0))))) (- (* (- (* b a) (* i c)) (- (* y x) (* t z))) (- (* (- (* j x) (* k z)) (- (* y0 b) (* i y1))) (* (- (* y2 x) (* y3 z)) (- (* c y0) (* y1 a)))))) (+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (- (* k (* i (* z y1))) (+ (* j (* i (* x y1))) (* y0 (* k (* z b)))))) (- (* z (* y3 (* a y1))) (+ (* y2 (* x (* a y1))) (* y0 (* z (* c y3)))))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))))))))
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))