
(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 27 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
(+
(-
(+
(+
(-
(* (- (* x y) (* z t)) (- (* a b) (* c i)))
(* (- (* x j) (* z k)) (- (* y0 b) (* y1 i))))
(* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a))))
(* (- (* t j) (* y k)) (- (* y4 b) (* y5 i))))
(* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a))))
(* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0))))))
(if (<= t_1 INFINITY)
t_1
(*
y2
(*
t
(-
(fma
a
y5
(/ (fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1)))) t))
(* 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 t_1 = (((((((x * y) - (z * t)) * ((a * b) - (c * i))) - (((x * j) - (z * k)) * ((y0 * b) - (y1 * i)))) + (((x * y2) - (z * y3)) * ((y0 * c) - (y1 * a)))) + (((t * j) - (y * k)) * ((y4 * b) - (y5 * i)))) - (((t * y2) - (y * y3)) * ((y4 * c) - (y5 * a)))) + (((k * y2) - (j * y3)) * ((y4 * y1) - (y5 * y0)));
double tmp;
if (t_1 <= ((double) INFINITY)) {
tmp = t_1;
} else {
tmp = y2 * (t * (fma(a, y5, (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) / t)) - (c * y4)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(x * y) - Float64(z * t)) * Float64(Float64(a * b) - Float64(c * i))) - Float64(Float64(Float64(x * j) - Float64(z * k)) * Float64(Float64(y0 * b) - Float64(y1 * i)))) + Float64(Float64(Float64(x * y2) - Float64(z * y3)) * Float64(Float64(y0 * c) - Float64(y1 * a)))) + Float64(Float64(Float64(t * j) - Float64(y * k)) * Float64(Float64(y4 * b) - Float64(y5 * i)))) - Float64(Float64(Float64(t * y2) - Float64(y * y3)) * Float64(Float64(y4 * c) - Float64(y5 * a)))) + Float64(Float64(Float64(k * y2) - Float64(j * y3)) * Float64(Float64(y4 * y1) - Float64(y5 * y0)))) tmp = 0.0 if (t_1 <= Inf) tmp = t_1; else tmp = Float64(y2 * Float64(t * Float64(fma(a, y5, Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) / t)) - Float64(c * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(N[(N[(x * y), $MachinePrecision] - N[(z * t), $MachinePrecision]), $MachinePrecision] * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(x * j), $MachinePrecision] - N[(z * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * b), $MachinePrecision] - N[(y1 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(x * y2), $MachinePrecision] - N[(z * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y0 * c), $MachinePrecision] - N[(y1 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(t * j), $MachinePrecision] - N[(y * k), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * b), $MachinePrecision] - N[(y5 * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(N[(N[(t * y2), $MachinePrecision] - N[(y * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * c), $MachinePrecision] - N[(y5 * a), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(N[(N[(k * y2), $MachinePrecision] - N[(j * y3), $MachinePrecision]), $MachinePrecision] * N[(N[(y4 * y1), $MachinePrecision] - N[(y5 * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, Infinity], t$95$1, N[(y2 * N[(t * N[(N[(a * y5 + 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] / t), $MachinePrecision]), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(\left(x \cdot y - z \cdot t\right) \cdot \left(a \cdot b - c \cdot i\right) - \left(x \cdot j - z \cdot k\right) \cdot \left(y0 \cdot b - y1 \cdot i\right)\right) + \left(x \cdot y2 - z \cdot y3\right) \cdot \left(y0 \cdot c - y1 \cdot a\right)\right) + \left(t \cdot j - y \cdot k\right) \cdot \left(y4 \cdot b - y5 \cdot i\right)\right) - \left(t \cdot y2 - y \cdot y3\right) \cdot \left(y4 \cdot c - y5 \cdot a\right)\right) + \left(k \cdot y2 - j \cdot y3\right) \cdot \left(y4 \cdot y1 - y5 \cdot y0\right)\\
\mathbf{if}\;t\_1 \leq \infty:\\
\;\;\;\;t\_1\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(\mathsf{fma}\left(a, y5, \frac{\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)}{t}\right) - c \cdot y4\right)\right)\\
\end{array}
\end{array}
if (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) < +inf.0Initial program 30.1%
if +inf.0 < (+.f64 (-.f64 (+.f64 (+.f64 (-.f64 (*.f64 (-.f64 (*.f64 x y) (*.f64 z t)) (-.f64 (*.f64 a b) (*.f64 c i))) (*.f64 (-.f64 (*.f64 x j) (*.f64 z k)) (-.f64 (*.f64 y0 b) (*.f64 y1 i)))) (*.f64 (-.f64 (*.f64 x y2) (*.f64 z y3)) (-.f64 (*.f64 y0 c) (*.f64 y1 a)))) (*.f64 (-.f64 (*.f64 t j) (*.f64 y k)) (-.f64 (*.f64 y4 b) (*.f64 y5 i)))) (*.f64 (-.f64 (*.f64 t y2) (*.f64 y y3)) (-.f64 (*.f64 y4 c) (*.f64 y5 a)))) (*.f64 (-.f64 (*.f64 k y2) (*.f64 j y3)) (-.f64 (*.f64 y4 y1) (*.f64 y5 y0)))) Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* c y0) (* a y1))) (t_2 (- (* y1 y4) (* y0 y5))))
(if (<= t -4.5e+154)
(* -1.0 (* z (* t (- (* a b) (* c i)))))
(if (<= t -4.5e+109)
(* -1.0 (* y3 (- (fma j t_2 (* z t_1)) (* y (- (* c y4) (* a y5))))))
(if (<= t 3.1e+115)
(* y2 (* t (- (fma a y5 (/ (fma k t_2 (* x t_1)) t)) (* c y4))))
(* b (* t (fma -1.0 (* a z) (* j y4)))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (c * y0) - (a * y1);
double t_2 = (y1 * y4) - (y0 * y5);
double tmp;
if (t <= -4.5e+154) {
tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
} else if (t <= -4.5e+109) {
tmp = -1.0 * (y3 * (fma(j, t_2, (z * t_1)) - (y * ((c * y4) - (a * y5)))));
} else if (t <= 3.1e+115) {
tmp = y2 * (t * (fma(a, y5, (fma(k, t_2, (x * t_1)) / t)) - (c * y4)));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(Float64(c * y0) - Float64(a * y1)) t_2 = Float64(Float64(y1 * y4) - Float64(y0 * y5)) tmp = 0.0 if (t <= -4.5e+154) tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i))))); elseif (t <= -4.5e+109) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, t_2, Float64(z * t_1)) - Float64(y * Float64(Float64(c * y4) - Float64(a * y5)))))); elseif (t <= 3.1e+115) tmp = Float64(y2 * Float64(t * Float64(fma(a, y5, Float64(fma(k, t_2, Float64(x * t_1)) / t)) - Float64(c * y4)))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.5e+154], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -4.5e+109], N[(-1.0 * N[(y3 * N[(N[(j * t$95$2 + N[(z * t$95$1), $MachinePrecision]), $MachinePrecision] - N[(y * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e+115], N[(y2 * N[(t * N[(N[(a * y5 + N[(N[(k * t$95$2 + N[(x * t$95$1), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := c \cdot y0 - a \cdot y1\\
t_2 := y1 \cdot y4 - y0 \cdot y5\\
\mathbf{if}\;t \leq -4.5 \cdot 10^{+154}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t \leq -4.5 \cdot 10^{+109}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, t\_2, z \cdot t\_1\right) - y \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+115}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(\mathsf{fma}\left(a, y5, \frac{\mathsf{fma}\left(k, t\_2, x \cdot t\_1\right)}{t}\right) - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -4.50000000000000009e154Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
if -4.50000000000000009e154 < t < -4.4999999999999996e109Initial program 30.1%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.4%
if -4.4999999999999996e109 < t < 3.10000000000000005e115Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
if 3.10000000000000005e115 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1.2e+190)
(* -1.0 (* z (* t (- (* a b) (* c i)))))
(if (<= t 3.1e+115)
(*
y2
(*
t
(-
(fma
a
y5
(/ (fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1)))) t))
(* c y4))))
(* b (* t (fma -1.0 (* a z) (* j 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.2e+190) {
tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
} else if (t <= 3.1e+115) {
tmp = y2 * (t * (fma(a, y5, (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) / t)) - (c * y4)));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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.2e+190) tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i))))); elseif (t <= 3.1e+115) tmp = Float64(y2 * Float64(t * Float64(fma(a, y5, Float64(fma(k, Float64(Float64(y1 * y4) - Float64(y0 * y5)), Float64(x * Float64(Float64(c * y0) - Float64(a * y1)))) / t)) - Float64(c * y4)))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.2e+190], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.1e+115], N[(y2 * N[(t * N[(N[(a * y5 + 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] / t), $MachinePrecision]), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.2 \cdot 10^{+190}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t \leq 3.1 \cdot 10^{+115}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(\mathsf{fma}\left(a, y5, \frac{\mathsf{fma}\left(k, y1 \cdot y4 - y0 \cdot y5, x \cdot \left(c \cdot y0 - a \cdot y1\right)\right)}{t}\right) - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -1.1999999999999999e190Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
if -1.1999999999999999e190 < t < 3.10000000000000005e115Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
if 3.10000000000000005e115 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* y2 (* t (- (fma a y5 (/ (* k (* y1 y4)) t)) (* c y4))))))
(if (<= y5 -6.7e+208)
t_1
(if (<= y5 -5.5e-95)
(*
y
(-
(fma -1.0 (* b (* k y4)) (* x (- (* a b) (* c i))))
(* -1.0 (* c (* y3 y4)))))
(if (<= y5 1.15e-5)
(*
b
(-
(fma a (- (* x y) (* t z)) (* y4 (- (* j t) (* k y))))
(* y0 (- (* j x) (* k z)))))
(if (<= y5 1.35e+148)
t_1
(if (<= y5 1.96e+201)
(*
-1.0
(*
y3
(-
(fma j (* y1 y4) (* z (- (* c y0) (* a y1))))
(* c (* y y4)))))
(* a (* y (- (* b x) (* y3 y5)))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = y2 * (t * (fma(a, y5, ((k * (y1 * y4)) / t)) - (c * y4)));
double tmp;
if (y5 <= -6.7e+208) {
tmp = t_1;
} else if (y5 <= -5.5e-95) {
tmp = y * (fma(-1.0, (b * (k * y4)), (x * ((a * b) - (c * i)))) - (-1.0 * (c * (y3 * y4))));
} else if (y5 <= 1.15e-5) {
tmp = b * (fma(a, ((x * y) - (t * z)), (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
} else if (y5 <= 1.35e+148) {
tmp = t_1;
} else if (y5 <= 1.96e+201) {
tmp = -1.0 * (y3 * (fma(j, (y1 * y4), (z * ((c * y0) - (a * y1)))) - (c * (y * y4))));
} else {
tmp = a * (y * ((b * x) - (y3 * y5)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(y2 * Float64(t * Float64(fma(a, y5, Float64(Float64(k * Float64(y1 * y4)) / t)) - Float64(c * y4)))) tmp = 0.0 if (y5 <= -6.7e+208) tmp = t_1; elseif (y5 <= -5.5e-95) tmp = Float64(y * Float64(fma(-1.0, Float64(b * Float64(k * y4)), Float64(x * Float64(Float64(a * b) - Float64(c * i)))) - Float64(-1.0 * Float64(c * Float64(y3 * y4))))); elseif (y5 <= 1.15e-5) 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))))); elseif (y5 <= 1.35e+148) tmp = t_1; elseif (y5 <= 1.96e+201) tmp = Float64(-1.0 * Float64(y3 * Float64(fma(j, Float64(y1 * y4), Float64(z * Float64(Float64(c * y0) - Float64(a * y1)))) - Float64(c * Float64(y * y4))))); else tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(y2 * N[(t * N[(N[(a * y5 + N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[y5, -6.7e+208], t$95$1, If[LessEqual[y5, -5.5e-95], N[(y * N[(N[(-1.0 * N[(b * N[(k * y4), $MachinePrecision]), $MachinePrecision] + N[(x * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(-1.0 * N[(c * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.15e-5], N[(b * N[(N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision] + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.35e+148], t$95$1, If[LessEqual[y5, 1.96e+201], N[(-1.0 * N[(y3 * N[(N[(j * N[(y1 * y4), $MachinePrecision] + N[(z * N[(N[(c * y0), $MachinePrecision] - N[(a * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(c * N[(y * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := y2 \cdot \left(t \cdot \left(\mathsf{fma}\left(a, y5, \frac{k \cdot \left(y1 \cdot y4\right)}{t}\right) - c \cdot y4\right)\right)\\
\mathbf{if}\;y5 \leq -6.7 \cdot 10^{+208}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq -5.5 \cdot 10^{-95}:\\
\;\;\;\;y \cdot \left(\mathsf{fma}\left(-1, b \cdot \left(k \cdot y4\right), x \cdot \left(a \cdot b - c \cdot i\right)\right) - -1 \cdot \left(c \cdot \left(y3 \cdot y4\right)\right)\right)\\
\mathbf{elif}\;y5 \leq 1.15 \cdot 10^{-5}:\\
\;\;\;\;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{elif}\;y5 \leq 1.35 \cdot 10^{+148}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;y5 \leq 1.96 \cdot 10^{+201}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(\mathsf{fma}\left(j, y1 \cdot y4, z \cdot \left(c \cdot y0 - a \cdot y1\right)\right) - c \cdot \left(y \cdot y4\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -6.6999999999999998e208 or 1.15e-5 < y5 < 1.35000000000000009e148Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift-*.f6432.8
Applied rewrites32.8%
if -6.6999999999999998e208 < y5 < -5.50000000000000003e-95Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites33.9%
if -5.50000000000000003e-95 < y5 < 1.15e-5Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
if 1.35000000000000009e148 < y5 < 1.95999999999999993e201Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
if 1.95999999999999993e201 < y5 Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -2.9e+180)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -3.4e+63)
(* y0 (- (* c (- (* x y2) (* y3 z))) (* b (- (* j x) (* k z)))))
(if (<= z -3e+19)
(* -1.0 (* y3 (* y4 (- (* j y1) (* c y)))))
(if (<= z 1.3e+243)
(* y2 (* t (- (fma a y5 (/ (* k (* y1 y4)) t)) (* c y4))))
(* -1.0 (* z (* y0 (- (* c y3) (* b k))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -2.9e+180) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -3.4e+63) {
tmp = y0 * ((c * ((x * y2) - (y3 * z))) - (b * ((j * x) - (k * z))));
} else if (z <= -3e+19) {
tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))));
} else if (z <= 1.3e+243) {
tmp = y2 * (t * (fma(a, y5, ((k * (y1 * y4)) / t)) - (c * y4)));
} else {
tmp = -1.0 * (z * (y0 * ((c * y3) - (b * k))));
}
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 <= -2.9e+180) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -3.4e+63) tmp = Float64(y0 * Float64(Float64(c * Float64(Float64(x * y2) - Float64(y3 * z))) - Float64(b * Float64(Float64(j * x) - Float64(k * z))))); elseif (z <= -3e+19) tmp = Float64(-1.0 * Float64(y3 * Float64(y4 * Float64(Float64(j * y1) - Float64(c * y))))); elseif (z <= 1.3e+243) tmp = Float64(y2 * Float64(t * Float64(fma(a, y5, Float64(Float64(k * Float64(y1 * y4)) / t)) - Float64(c * y4)))); else tmp = Float64(-1.0 * Float64(z * Float64(y0 * Float64(Float64(c * y3) - Float64(b * k))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -2.9e+180], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3.4e+63], N[(y0 * N[(N[(c * N[(N[(x * y2), $MachinePrecision] - N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(b * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e+19], N[(-1.0 * N[(y3 * N[(y4 * N[(N[(j * y1), $MachinePrecision] - N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+243], N[(y2 * N[(t * N[(N[(a * y5 + N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(z * N[(y0 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -2.9 \cdot 10^{+180}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -3.4 \cdot 10^{+63}:\\
\;\;\;\;y0 \cdot \left(c \cdot \left(x \cdot y2 - y3 \cdot z\right) - b \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;z \leq -3 \cdot 10^{+19}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+243}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(\mathsf{fma}\left(a, y5, \frac{k \cdot \left(y1 \cdot y4\right)}{t}\right) - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(y0 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\right)\\
\end{array}
\end{array}
if z < -2.90000000000000007e180Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -2.90000000000000007e180 < z < -3.3999999999999999e63Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6434.8
Applied rewrites34.8%
if -3.3999999999999999e63 < z < -3e19Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if -3e19 < z < 1.29999999999999998e243Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift-*.f6432.8
Applied rewrites32.8%
if 1.29999999999999998e243 < z Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (- (* x y) (* t z))))
(if (<= b -1.25e+54)
(*
b
(- (fma a t_1 (* y4 (- (* j t) (* k y)))) (* y0 (- (* j x) (* k z)))))
(if (<= b 1e+157)
(*
y2
(-
(fma k (- (* y1 y4) (* y0 y5)) (* x (- (* c y0) (* a y1))))
(* t (- (* c y4) (* a y5)))))
(* a (* b t_1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = (x * y) - (t * z);
double tmp;
if (b <= -1.25e+54) {
tmp = b * (fma(a, t_1, (y4 * ((j * t) - (k * y)))) - (y0 * ((j * x) - (k * z))));
} else if (b <= 1e+157) {
tmp = y2 * (fma(k, ((y1 * y4) - (y0 * y5)), (x * ((c * y0) - (a * y1)))) - (t * ((c * y4) - (a * y5))));
} else {
tmp = a * (b * 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(x * y) - Float64(t * z)) tmp = 0.0 if (b <= -1.25e+54) tmp = Float64(b * Float64(fma(a, t_1, Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))) - Float64(y0 * Float64(Float64(j * x) - Float64(k * z))))); elseif (b <= 1e+157) 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(a * Float64(b * 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[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[b, -1.25e+54], N[(b * N[(N[(a * t$95$1 + N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[(y0 * N[(N[(j * x), $MachinePrecision] - N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[b, 1e+157], 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[(a * N[(b * t$95$1), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot y - t \cdot z\\
\mathbf{if}\;b \leq -1.25 \cdot 10^{+54}:\\
\;\;\;\;b \cdot \left(\mathsf{fma}\left(a, t\_1, y4 \cdot \left(j \cdot t - k \cdot y\right)\right) - y0 \cdot \left(j \cdot x - k \cdot z\right)\right)\\
\mathbf{elif}\;b \leq 10^{+157}:\\
\;\;\;\;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}:\\
\;\;\;\;a \cdot \left(b \cdot t\_1\right)\\
\end{array}
\end{array}
if b < -1.25000000000000001e54Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
if -1.25000000000000001e54 < b < 9.99999999999999983e156Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
if 9.99999999999999983e156 < b Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1e+182)
(* i (* z (- (* c t) (* k y1))))
(if (<= z -6.2e+72)
(* a (* z (fma -1.0 (* b t) (* y1 y3))))
(if (<= z -3e+19)
(* -1.0 (* y3 (* y4 (- (* j y1) (* c y)))))
(if (<= z 1.3e+243)
(* y2 (* t (- (fma a y5 (/ (* k (* y1 y4)) t)) (* c y4))))
(* -1.0 (* z (* y0 (- (* c y3) (* b k))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (z <= -1e+182) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= -6.2e+72) {
tmp = a * (z * fma(-1.0, (b * t), (y1 * y3)));
} else if (z <= -3e+19) {
tmp = -1.0 * (y3 * (y4 * ((j * y1) - (c * y))));
} else if (z <= 1.3e+243) {
tmp = y2 * (t * (fma(a, y5, ((k * (y1 * y4)) / t)) - (c * y4)));
} else {
tmp = -1.0 * (z * (y0 * ((c * y3) - (b * k))));
}
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 <= -1e+182) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= -6.2e+72) tmp = Float64(a * Float64(z * fma(-1.0, Float64(b * t), Float64(y1 * y3)))); elseif (z <= -3e+19) tmp = Float64(-1.0 * Float64(y3 * Float64(y4 * Float64(Float64(j * y1) - Float64(c * y))))); elseif (z <= 1.3e+243) tmp = Float64(y2 * Float64(t * Float64(fma(a, y5, Float64(Float64(k * Float64(y1 * y4)) / t)) - Float64(c * y4)))); else tmp = Float64(-1.0 * Float64(z * Float64(y0 * Float64(Float64(c * y3) - Float64(b * k))))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[z, -1e+182], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -6.2e+72], N[(a * N[(z * N[(-1.0 * N[(b * t), $MachinePrecision] + N[(y1 * y3), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, -3e+19], N[(-1.0 * N[(y3 * N[(y4 * N[(N[(j * y1), $MachinePrecision] - N[(c * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 1.3e+243], N[(y2 * N[(t * N[(N[(a * y5 + N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(z * N[(y0 * N[(N[(c * y3), $MachinePrecision] - N[(b * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1 \cdot 10^{+182}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq -6.2 \cdot 10^{+72}:\\
\;\;\;\;a \cdot \left(z \cdot \mathsf{fma}\left(-1, b \cdot t, y1 \cdot y3\right)\right)\\
\mathbf{elif}\;z \leq -3 \cdot 10^{+19}:\\
\;\;\;\;-1 \cdot \left(y3 \cdot \left(y4 \cdot \left(j \cdot y1 - c \cdot y\right)\right)\right)\\
\mathbf{elif}\;z \leq 1.3 \cdot 10^{+243}:\\
\;\;\;\;y2 \cdot \left(t \cdot \left(\mathsf{fma}\left(a, y5, \frac{k \cdot \left(y1 \cdot y4\right)}{t}\right) - c \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(y0 \cdot \left(c \cdot y3 - b \cdot k\right)\right)\right)\\
\end{array}
\end{array}
if z < -1.0000000000000001e182Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.0000000000000001e182 < z < -6.19999999999999977e72Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in z around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -6.19999999999999977e72 < z < -3e19Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.6
Applied rewrites27.6%
if -3e19 < z < 1.29999999999999998e243Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites41.6%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift-*.f6432.8
Applied rewrites32.8%
if 1.29999999999999998e243 < z Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.7
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1.4e+149)
(* -1.0 (* z (* t (- (* a b) (* c i)))))
(if (<= t -3.8e-52)
(* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
(if (<= t 9.8e-154)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= t 1.7e+94)
(* y2 (- (* k (* y1 y4)) (* t (- (* c y4) (* a y5)))))
(* b (* t (fma -1.0 (* a z) (* j 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.4e+149) {
tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
} else if (t <= -3.8e-52) {
tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
} else if (t <= 9.8e-154) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (t <= 1.7e+94) {
tmp = y2 * ((k * (y1 * y4)) - (t * ((c * y4) - (a * y5))));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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.4e+149) tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i))))); elseif (t <= -3.8e-52) tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5))))); elseif (t <= 9.8e-154) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (t <= 1.7e+94) tmp = Float64(y2 * Float64(Float64(k * Float64(y1 * y4)) - Float64(t * Float64(Float64(c * y4) - Float64(a * y5))))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.4e+149], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e-52], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 9.8e-154], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.7e+94], N[(y2 * N[(N[(k * N[(y1 * y4), $MachinePrecision]), $MachinePrecision] - N[(t * N[(N[(c * y4), $MachinePrecision] - N[(a * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+149}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-52}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\
\mathbf{elif}\;t \leq 9.8 \cdot 10^{-154}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 1.7 \cdot 10^{+94}:\\
\;\;\;\;y2 \cdot \left(k \cdot \left(y1 \cdot y4\right) - t \cdot \left(c \cdot y4 - a \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -1.4e149Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
if -1.4e149 < t < -3.8000000000000003e-52Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -3.8000000000000003e-52 < t < 9.79999999999999993e-154Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 9.79999999999999993e-154 < t < 1.7000000000000001e94Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift-*.f6430.4
Applied rewrites30.4%
if 1.7000000000000001e94 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -4500000000000.0)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y5 -2.9e-95)
(* c (* y (* y3 y4)))
(if (<= y5 -1.02e-305)
(* b (* t (fma -1.0 (* a z) (* j y4))))
(if (<= y5 7e-130)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 1.35e+157)
(* y2 (* y4 (- (* k y1) (* c t))))
(* y2 (* y0 (fma -1.0 (* k y5) (* c 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 (y5 <= -4500000000000.0) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -2.9e-95) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -1.02e-305) {
tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
} else if (y5 <= 7e-130) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 1.35e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = y2 * (y0 * fma(-1.0, (k * y5), (c * 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 (y5 <= -4500000000000.0) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y5 <= -2.9e-95) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y5 <= -1.02e-305) tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); elseif (y5 <= 7e-130) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 1.35e+157) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t)))); else tmp = Float64(y2 * Float64(y0 * fma(-1.0, Float64(k * y5), Float64(c * x)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -4500000000000.0], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.9e-95], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.02e-305], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7e-130], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 1.35e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y2 * N[(y0 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -4500000000000:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -2.9 \cdot 10^{-95}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -1.02 \cdot 10^{-305}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 7 \cdot 10^{-130}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 1.35 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\
\end{array}
\end{array}
if y5 < -4.5e12Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6426.0
Applied rewrites26.0%
if -4.5e12 < y5 < -2.90000000000000002e-95Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -2.90000000000000002e-95 < y5 < -1.01999999999999994e-305Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
if -1.01999999999999994e-305 < y5 < 6.9999999999999998e-130Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if 6.9999999999999998e-130 < y5 < 1.35e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 1.35e157 < y5 Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -4500000000000.0)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y5 -2.9e-95)
(* c (* y (* y3 y4)))
(if (<= y5 -1.02e-305)
(* b (* t (fma -1.0 (* a z) (* j y4))))
(if (<= y5 7e-130)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 6e+157)
(* y2 (* y4 (- (* k y1) (* c t))))
(* a (* y (- (* b x) (* y3 y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -4500000000000.0) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -2.9e-95) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -1.02e-305) {
tmp = b * (t * fma(-1.0, (a * z), (j * y4)));
} else if (y5 <= 7e-130) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 6e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((b * x) - (y3 * y5)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -4500000000000.0) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y5 <= -2.9e-95) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y5 <= -1.02e-305) tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); elseif (y5 <= 7e-130) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 6e+157) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t)))); else tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -4500000000000.0], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -2.9e-95], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.02e-305], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7e-130], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -4500000000000:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -2.9 \cdot 10^{-95}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -1.02 \cdot 10^{-305}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq 7 \cdot 10^{-130}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 6 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -4.5e12Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6426.0
Applied rewrites26.0%
if -4.5e12 < y5 < -2.90000000000000002e-95Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -2.90000000000000002e-95 < y5 < -1.01999999999999994e-305Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
if -1.01999999999999994e-305 < y5 < 6.9999999999999998e-130Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if 6.9999999999999998e-130 < y5 < 6.00000000000000021e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 6.00000000000000021e157 < y5 Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -4500000000000.0)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y5 -3.1e-97)
(* c (* y (* y3 y4)))
(if (<= y5 -1.85e-175)
(* b (* y4 (- (* j t) (* k y))))
(if (<= y5 6.8e-130)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= y5 6e+157)
(* y2 (* y4 (- (* k y1) (* c t))))
(* a (* y (- (* b x) (* y3 y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -4500000000000.0) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -3.1e-97) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -1.85e-175) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (y5 <= 6.8e-130) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (y5 <= 6e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((b * x) - (y3 * y5)));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -4500000000000.0) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y5 <= -3.1e-97) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y5 <= -1.85e-175) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (y5 <= 6.8e-130) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (y5 <= 6e+157) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t)))); else tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -4500000000000.0], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -3.1e-97], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -1.85e-175], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6.8e-130], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -4500000000000:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -3.1 \cdot 10^{-97}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -1.85 \cdot 10^{-175}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 6.8 \cdot 10^{-130}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;y5 \leq 6 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -4.5e12Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6426.0
Applied rewrites26.0%
if -4.5e12 < y5 < -3.10000000000000002e-97Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -3.10000000000000002e-97 < y5 < -1.84999999999999999e-175Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.0
Applied rewrites27.0%
if -1.84999999999999999e-175 < y5 < 6.8000000000000001e-130Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 6.8000000000000001e-130 < y5 < 6.00000000000000021e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 6.00000000000000021e157 < y5 Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y5 -4500000000000.0)
(* t (* y2 (- (* a y5) (* c y4))))
(if (<= y5 -7.2e-94)
(* c (* y (* y3 y4)))
(if (<= y5 -6.6e-306)
(* b (* j (- (* t y4) (* x y0))))
(if (<= y5 7e-130)
(* a (* b (- (* x y) (* t z))))
(if (<= y5 6e+157)
(* y2 (* y4 (- (* k y1) (* c t))))
(* a (* y (- (* b x) (* y3 y5))))))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -4500000000000.0) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -7.2e-94) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -6.6e-306) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y5 <= 7e-130) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 6e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((b * x) - (y3 * y5)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y5 <= (-4500000000000.0d0)) then
tmp = t * (y2 * ((a * y5) - (c * y4)))
else if (y5 <= (-7.2d-94)) then
tmp = c * (y * (y3 * y4))
else if (y5 <= (-6.6d-306)) then
tmp = b * (j * ((t * y4) - (x * y0)))
else if (y5 <= 7d-130) then
tmp = a * (b * ((x * y) - (t * z)))
else if (y5 <= 6d+157) then
tmp = y2 * (y4 * ((k * y1) - (c * t)))
else
tmp = a * (y * ((b * x) - (y3 * y5)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y5 <= -4500000000000.0) {
tmp = t * (y2 * ((a * y5) - (c * y4)));
} else if (y5 <= -7.2e-94) {
tmp = c * (y * (y3 * y4));
} else if (y5 <= -6.6e-306) {
tmp = b * (j * ((t * y4) - (x * y0)));
} else if (y5 <= 7e-130) {
tmp = a * (b * ((x * y) - (t * z)));
} else if (y5 <= 6e+157) {
tmp = y2 * (y4 * ((k * y1) - (c * t)));
} else {
tmp = a * (y * ((b * x) - (y3 * y5)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y5 <= -4500000000000.0: tmp = t * (y2 * ((a * y5) - (c * y4))) elif y5 <= -7.2e-94: tmp = c * (y * (y3 * y4)) elif y5 <= -6.6e-306: tmp = b * (j * ((t * y4) - (x * y0))) elif y5 <= 7e-130: tmp = a * (b * ((x * y) - (t * z))) elif y5 <= 6e+157: tmp = y2 * (y4 * ((k * y1) - (c * t))) else: tmp = a * (y * ((b * x) - (y3 * y5))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y5 <= -4500000000000.0) tmp = Float64(t * Float64(y2 * Float64(Float64(a * y5) - Float64(c * y4)))); elseif (y5 <= -7.2e-94) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (y5 <= -6.6e-306) tmp = Float64(b * Float64(j * Float64(Float64(t * y4) - Float64(x * y0)))); elseif (y5 <= 7e-130) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); elseif (y5 <= 6e+157) tmp = Float64(y2 * Float64(y4 * Float64(Float64(k * y1) - Float64(c * t)))); else tmp = Float64(a * Float64(y * Float64(Float64(b * x) - Float64(y3 * y5)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y5 <= -4500000000000.0) tmp = t * (y2 * ((a * y5) - (c * y4))); elseif (y5 <= -7.2e-94) tmp = c * (y * (y3 * y4)); elseif (y5 <= -6.6e-306) tmp = b * (j * ((t * y4) - (x * y0))); elseif (y5 <= 7e-130) tmp = a * (b * ((x * y) - (t * z))); elseif (y5 <= 6e+157) tmp = y2 * (y4 * ((k * y1) - (c * t))); else tmp = a * (y * ((b * x) - (y3 * y5))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y5, -4500000000000.0], N[(t * N[(y2 * N[(N[(a * y5), $MachinePrecision] - N[(c * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -7.2e-94], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, -6.6e-306], N[(b * N[(j * N[(N[(t * y4), $MachinePrecision] - N[(x * y0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 7e-130], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y5, 6e+157], N[(y2 * N[(y4 * N[(N[(k * y1), $MachinePrecision] - N[(c * t), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(y * N[(N[(b * x), $MachinePrecision] - N[(y3 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y5 \leq -4500000000000:\\
\;\;\;\;t \cdot \left(y2 \cdot \left(a \cdot y5 - c \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -7.2 \cdot 10^{-94}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;y5 \leq -6.6 \cdot 10^{-306}:\\
\;\;\;\;b \cdot \left(j \cdot \left(t \cdot y4 - x \cdot y0\right)\right)\\
\mathbf{elif}\;y5 \leq 7 \cdot 10^{-130}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{elif}\;y5 \leq 6 \cdot 10^{+157}:\\
\;\;\;\;y2 \cdot \left(y4 \cdot \left(k \cdot y1 - c \cdot t\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(y \cdot \left(b \cdot x - y3 \cdot y5\right)\right)\\
\end{array}
\end{array}
if y5 < -4.5e12Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6426.0
Applied rewrites26.0%
if -4.5e12 < y5 < -7.2e-94Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if -7.2e-94 < y5 < -6.6000000000000002e-306Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in j around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.3
Applied rewrites27.3%
if -6.6000000000000002e-306 < y5 < 6.9999999999999998e-130Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if 6.9999999999999998e-130 < y5 < 6.00000000000000021e157Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if 6.00000000000000021e157 < y5 Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in y around inf
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.5
Applied rewrites26.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1.4e+149)
(* -1.0 (* z (* t (- (* a b) (* c i)))))
(if (<= t -3.8e-52)
(* y2 (* -1.0 (* a (- (* x y1) (* t y5)))))
(if (<= t 1.45e-152)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= t 1.9e+93)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* b (* t (fma -1.0 (* a z) (* j 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.4e+149) {
tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
} else if (t <= -3.8e-52) {
tmp = y2 * (-1.0 * (a * ((x * y1) - (t * y5))));
} else if (t <= 1.45e-152) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (t <= 1.9e+93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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.4e+149) tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i))))); elseif (t <= -3.8e-52) tmp = Float64(y2 * Float64(-1.0 * Float64(a * Float64(Float64(x * y1) - Float64(t * y5))))); elseif (t <= 1.45e-152) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (t <= 1.9e+93) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -1.4e+149], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -3.8e-52], N[(y2 * N[(-1.0 * N[(a * N[(N[(x * y1), $MachinePrecision] - N[(t * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e-152], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e+93], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.4 \cdot 10^{+149}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t \leq -3.8 \cdot 10^{-52}:\\
\;\;\;\;y2 \cdot \left(-1 \cdot \left(a \cdot \left(x \cdot y1 - t \cdot y5\right)\right)\right)\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-152}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+93}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -1.4e149Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
if -1.4e149 < t < -3.8000000000000003e-52Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in a around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.2
Applied rewrites26.2%
if -3.8000000000000003e-52 < t < 1.4500000000000001e-152Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 1.4500000000000001e-152 < t < 1.8999999999999999e93Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.6
Applied rewrites27.6%
if 1.8999999999999999e93 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -3e+156)
(* -1.0 (* z (* t (- (* a b) (* c i)))))
(if (<= t -2.2e-118)
(* y2 (* y0 (fma -1.0 (* k y5) (* c x))))
(if (<= t 1.45e-152)
(* a (* x (fma -1.0 (* y1 y2) (* b y))))
(if (<= t 1.9e+93)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* b (* t (fma -1.0 (* a z) (* j 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 <= -3e+156) {
tmp = -1.0 * (z * (t * ((a * b) - (c * i))));
} else if (t <= -2.2e-118) {
tmp = y2 * (y0 * fma(-1.0, (k * y5), (c * x)));
} else if (t <= 1.45e-152) {
tmp = a * (x * fma(-1.0, (y1 * y2), (b * y)));
} else if (t <= 1.9e+93) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (t * fma(-1.0, (a * z), (j * 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 <= -3e+156) tmp = Float64(-1.0 * Float64(z * Float64(t * Float64(Float64(a * b) - Float64(c * i))))); elseif (t <= -2.2e-118) tmp = Float64(y2 * Float64(y0 * fma(-1.0, Float64(k * y5), Float64(c * x)))); elseif (t <= 1.45e-152) tmp = Float64(a * Float64(x * fma(-1.0, Float64(y1 * y2), Float64(b * y)))); elseif (t <= 1.9e+93) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(b * Float64(t * fma(-1.0, Float64(a * z), Float64(j * y4)))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[t, -3e+156], N[(-1.0 * N[(z * N[(t * N[(N[(a * b), $MachinePrecision] - N[(c * i), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, -2.2e-118], N[(y2 * N[(y0 * N[(-1.0 * N[(k * y5), $MachinePrecision] + N[(c * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.45e-152], N[(a * N[(x * N[(-1.0 * N[(y1 * y2), $MachinePrecision] + N[(b * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 1.9e+93], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(t * N[(-1.0 * N[(a * z), $MachinePrecision] + N[(j * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -3 \cdot 10^{+156}:\\
\;\;\;\;-1 \cdot \left(z \cdot \left(t \cdot \left(a \cdot b - c \cdot i\right)\right)\right)\\
\mathbf{elif}\;t \leq -2.2 \cdot 10^{-118}:\\
\;\;\;\;y2 \cdot \left(y0 \cdot \mathsf{fma}\left(-1, k \cdot y5, c \cdot x\right)\right)\\
\mathbf{elif}\;t \leq 1.45 \cdot 10^{-152}:\\
\;\;\;\;a \cdot \left(x \cdot \mathsf{fma}\left(-1, y1 \cdot y2, b \cdot y\right)\right)\\
\mathbf{elif}\;t \leq 1.9 \cdot 10^{+93}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(t \cdot \mathsf{fma}\left(-1, a \cdot z, j \cdot y4\right)\right)\\
\end{array}
\end{array}
if t < -3e156Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
if -3e156 < t < -2.19999999999999984e-118Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.0
Applied rewrites27.0%
if -2.19999999999999984e-118 < t < 1.4500000000000001e-152Initial program 30.1%
Taylor expanded in a around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites35.6%
Taylor expanded in x around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 1.4500000000000001e-152 < t < 1.8999999999999999e93Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.6
Applied rewrites27.6%
if 1.8999999999999999e93 < t Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in t around inf
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6427.4
Applied rewrites27.4%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.75e+193)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 2.85e-151)
(* b (* y4 (- (* j t) (* k y))))
(if (<= z 7.2e-13)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* b (* a (- (* x y) (* t 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.75e+193) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 2.85e-151) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 7.2e-13) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (a * ((x * y) - (t * 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.75d+193)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 2.85d-151) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (z <= 7.2d-13) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else
tmp = b * (a * ((x * y) - (t * 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.75e+193) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 2.85e-151) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 7.2e-13) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = b * (a * ((x * y) - (t * 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.75e+193: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 2.85e-151: tmp = b * (y4 * ((j * t) - (k * y))) elif z <= 7.2e-13: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) else: tmp = b * (a * ((x * y) - (t * 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.75e+193) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 2.85e-151) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (z <= 7.2e-13) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(b * Float64(a * Float64(Float64(x * y) - Float64(t * 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.75e+193) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 2.85e-151) tmp = b * (y4 * ((j * t) - (k * y))); elseif (z <= 7.2e-13) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); else tmp = b * (a * ((x * y) - (t * 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.75e+193], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.85e-151], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 7.2e-13], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(b * N[(a * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{+193}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 2.85 \cdot 10^{-151}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 7.2 \cdot 10^{-13}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;b \cdot \left(a \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.75000000000000007e193Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.75000000000000007e193 < z < 2.84999999999999994e-151Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.0
Applied rewrites27.0%
if 2.84999999999999994e-151 < z < 7.1999999999999996e-13Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.6
Applied rewrites27.6%
if 7.1999999999999996e-13 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.7
Applied rewrites26.7%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.75e+193)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 2.85e-151)
(* b (* y4 (- (* j t) (* k y))))
(if (<= z 5.6e-13)
(* k (* y2 (- (* y1 y4) (* y0 y5))))
(* a (* b (- (* x y) (* t 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.75e+193) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 2.85e-151) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 5.6e-13) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = a * (b * ((x * y) - (t * 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.75d+193)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 2.85d-151) then
tmp = b * (y4 * ((j * t) - (k * y)))
else if (z <= 5.6d-13) then
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)))
else
tmp = a * (b * ((x * y) - (t * 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.75e+193) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 2.85e-151) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else if (z <= 5.6e-13) {
tmp = k * (y2 * ((y1 * y4) - (y0 * y5)));
} else {
tmp = a * (b * ((x * y) - (t * 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.75e+193: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 2.85e-151: tmp = b * (y4 * ((j * t) - (k * y))) elif z <= 5.6e-13: tmp = k * (y2 * ((y1 * y4) - (y0 * y5))) else: tmp = a * (b * ((x * y) - (t * 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.75e+193) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 2.85e-151) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); elseif (z <= 5.6e-13) tmp = Float64(k * Float64(y2 * Float64(Float64(y1 * y4) - Float64(y0 * y5)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * 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.75e+193) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 2.85e-151) tmp = b * (y4 * ((j * t) - (k * y))); elseif (z <= 5.6e-13) tmp = k * (y2 * ((y1 * y4) - (y0 * y5))); else tmp = a * (b * ((x * y) - (t * 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.75e+193], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 2.85e-151], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.6e-13], N[(k * N[(y2 * N[(N[(y1 * y4), $MachinePrecision] - N[(y0 * y5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{+193}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 2.85 \cdot 10^{-151}:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{elif}\;z \leq 5.6 \cdot 10^{-13}:\\
\;\;\;\;k \cdot \left(y2 \cdot \left(y1 \cdot y4 - y0 \cdot y5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.75000000000000007e193Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.75000000000000007e193 < z < 2.84999999999999994e-151Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.0
Applied rewrites27.0%
if 2.84999999999999994e-151 < z < 5.6000000000000004e-13Initial program 30.1%
Taylor expanded in y2 around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.0%
Taylor expanded in k around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6427.6
Applied rewrites27.6%
if 5.6000000000000004e-13 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= z -1.75e+193)
(* i (* z (- (* c t) (* k y1))))
(if (<= z 0.165)
(* b (* y4 (- (* j t) (* k y))))
(* a (* b (- (* x y) (* t 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.75e+193) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 0.165) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = a * (b * ((x * y) - (t * 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.75d+193)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (z <= 0.165d0) then
tmp = b * (y4 * ((j * t) - (k * y)))
else
tmp = a * (b * ((x * y) - (t * 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.75e+193) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (z <= 0.165) {
tmp = b * (y4 * ((j * t) - (k * y)));
} else {
tmp = a * (b * ((x * y) - (t * 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.75e+193: tmp = i * (z * ((c * t) - (k * y1))) elif z <= 0.165: tmp = b * (y4 * ((j * t) - (k * y))) else: tmp = a * (b * ((x * y) - (t * 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.75e+193) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (z <= 0.165) tmp = Float64(b * Float64(y4 * Float64(Float64(j * t) - Float64(k * y)))); else tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * 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.75e+193) tmp = i * (z * ((c * t) - (k * y1))); elseif (z <= 0.165) tmp = b * (y4 * ((j * t) - (k * y))); else tmp = a * (b * ((x * y) - (t * 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.75e+193], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 0.165], N[(b * N[(y4 * N[(N[(j * t), $MachinePrecision] - N[(k * y), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -1.75 \cdot 10^{+193}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;z \leq 0.165:\\
\;\;\;\;b \cdot \left(y4 \cdot \left(j \cdot t - k \cdot y\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\end{array}
\end{array}
if z < -1.75000000000000007e193Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.75000000000000007e193 < z < 0.165000000000000008Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y4 around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6427.0
Applied rewrites27.0%
if 0.165000000000000008 < z Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y1 5.3e+115) (* a (* b (- (* x y) (* t z)))) (* i (* z (- (* c t) (* k y1))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= 5.3e+115) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y1 <= 5.3d+115) then
tmp = a * (b * ((x * y) - (t * z)))
else
tmp = i * (z * ((c * t) - (k * y1)))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= 5.3e+115) {
tmp = a * (b * ((x * y) - (t * z)));
} else {
tmp = i * (z * ((c * t) - (k * y1)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= 5.3e+115: tmp = a * (b * ((x * y) - (t * z))) else: tmp = i * (z * ((c * t) - (k * y1))) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y1 <= 5.3e+115) tmp = Float64(a * Float64(b * Float64(Float64(x * y) - Float64(t * z)))); else tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y1 <= 5.3e+115) tmp = a * (b * ((x * y) - (t * z))); else tmp = i * (z * ((c * t) - (k * y1))); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, 5.3e+115], N[(a * N[(b * N[(N[(x * y), $MachinePrecision] - N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq 5.3 \cdot 10^{+115}:\\
\;\;\;\;a \cdot \left(b \cdot \left(x \cdot y - t \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\end{array}
\end{array}
if y1 < 5.29999999999999965e115Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in a around inf
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f6426.9
Applied rewrites26.9%
if 5.29999999999999965e115 < y1 Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -1.35e-9)
(* i (* z (- (* c t) (* k y1))))
(if (<= t 3.6e+96)
(* y1 (* z (- (* a y3) (* i k))))
(* -1.0 (* a (* b (* t 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 (t <= -1.35e-9) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (t <= 3.6e+96) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = -1.0 * (a * (b * (t * 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 (t <= (-1.35d-9)) then
tmp = i * (z * ((c * t) - (k * y1)))
else if (t <= 3.6d+96) then
tmp = y1 * (z * ((a * y3) - (i * k)))
else
tmp = (-1.0d0) * (a * (b * (t * 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 (t <= -1.35e-9) {
tmp = i * (z * ((c * t) - (k * y1)));
} else if (t <= 3.6e+96) {
tmp = y1 * (z * ((a * y3) - (i * k)));
} else {
tmp = -1.0 * (a * (b * (t * z)));
}
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.35e-9: tmp = i * (z * ((c * t) - (k * y1))) elif t <= 3.6e+96: tmp = y1 * (z * ((a * y3) - (i * k))) else: tmp = -1.0 * (a * (b * (t * 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 (t <= -1.35e-9) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); elseif (t <= 3.6e+96) tmp = Float64(y1 * Float64(z * Float64(Float64(a * y3) - Float64(i * k)))); else tmp = Float64(-1.0 * Float64(a * Float64(b * Float64(t * 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 (t <= -1.35e-9) tmp = i * (z * ((c * t) - (k * y1))); elseif (t <= 3.6e+96) tmp = y1 * (z * ((a * y3) - (i * k))); else tmp = -1.0 * (a * (b * (t * 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[t, -1.35e-9], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 3.6e+96], N[(y1 * N[(z * N[(N[(a * y3), $MachinePrecision] - N[(i * k), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(b * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -1.35 \cdot 10^{-9}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{elif}\;t \leq 3.6 \cdot 10^{+96}:\\
\;\;\;\;y1 \cdot \left(z \cdot \left(a \cdot y3 - i \cdot k\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if t < -1.3500000000000001e-9Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if -1.3500000000000001e-9 < t < 3.60000000000000013e96Initial program 30.1%
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-*.f6426.4
Applied rewrites26.4%
if 3.60000000000000013e96 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= t -4.3e+155)
(* i (* c (* t z)))
(if (<= t 2.45e-19)
(* c (* y (* y3 y4)))
(if (<= t 2.2e+111) (* b (* y0 (* k z))) (* -1.0 (* a (* b (* t 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 (t <= -4.3e+155) {
tmp = i * (c * (t * z));
} else if (t <= 2.45e-19) {
tmp = c * (y * (y3 * y4));
} else if (t <= 2.2e+111) {
tmp = b * (y0 * (k * z));
} else {
tmp = -1.0 * (a * (b * (t * 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 (t <= (-4.3d+155)) then
tmp = i * (c * (t * z))
else if (t <= 2.45d-19) then
tmp = c * (y * (y3 * y4))
else if (t <= 2.2d+111) then
tmp = b * (y0 * (k * z))
else
tmp = (-1.0d0) * (a * (b * (t * 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 (t <= -4.3e+155) {
tmp = i * (c * (t * z));
} else if (t <= 2.45e-19) {
tmp = c * (y * (y3 * y4));
} else if (t <= 2.2e+111) {
tmp = b * (y0 * (k * z));
} else {
tmp = -1.0 * (a * (b * (t * z)));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if t <= -4.3e+155: tmp = i * (c * (t * z)) elif t <= 2.45e-19: tmp = c * (y * (y3 * y4)) elif t <= 2.2e+111: tmp = b * (y0 * (k * z)) else: tmp = -1.0 * (a * (b * (t * 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 (t <= -4.3e+155) tmp = Float64(i * Float64(c * Float64(t * z))); elseif (t <= 2.45e-19) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (t <= 2.2e+111) tmp = Float64(b * Float64(y0 * Float64(k * z))); else tmp = Float64(-1.0 * Float64(a * Float64(b * Float64(t * 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 (t <= -4.3e+155) tmp = i * (c * (t * z)); elseif (t <= 2.45e-19) tmp = c * (y * (y3 * y4)); elseif (t <= 2.2e+111) tmp = b * (y0 * (k * z)); else tmp = -1.0 * (a * (b * (t * 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[t, -4.3e+155], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.45e-19], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 2.2e+111], N[(b * N[(y0 * N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(-1.0 * N[(a * N[(b * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;t \leq -4.3 \cdot 10^{+155}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{elif}\;t \leq 2.45 \cdot 10^{-19}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 2.2 \cdot 10^{+111}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;-1 \cdot \left(a \cdot \left(b \cdot \left(t \cdot z\right)\right)\right)\\
\end{array}
\end{array}
if t < -4.3000000000000002e155Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -4.3000000000000002e155 < t < 2.44999999999999996e-19Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if 2.44999999999999996e-19 < t < 2.19999999999999999e111Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.1
Applied rewrites27.1%
Taylor expanded in x around 0
lift-*.f6417.3
Applied rewrites17.3%
if 2.19999999999999999e111 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lift--.f64N/A
lift-*.f64N/A
lift-*.f6426.4
Applied rewrites26.4%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(if (<= y4 -1.8e+84)
(* -1.0 (* j (* y1 (* y3 y4))))
(if (<= y4 1.25e+197)
(* i (* z (- (* c t) (* k y1))))
(* c (* y (* y3 y4))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -1.8e+84) {
tmp = -1.0 * (j * (y1 * (y3 * y4)));
} else if (y4 <= 1.25e+197) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = c * (y * (y3 * y4));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y4 <= (-1.8d+84)) then
tmp = (-1.0d0) * (j * (y1 * (y3 * y4)))
else if (y4 <= 1.25d+197) then
tmp = i * (z * ((c * t) - (k * y1)))
else
tmp = c * (y * (y3 * y4))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y4 <= -1.8e+84) {
tmp = -1.0 * (j * (y1 * (y3 * y4)));
} else if (y4 <= 1.25e+197) {
tmp = i * (z * ((c * t) - (k * y1)));
} else {
tmp = c * (y * (y3 * y4));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y4 <= -1.8e+84: tmp = -1.0 * (j * (y1 * (y3 * y4))) elif y4 <= 1.25e+197: tmp = i * (z * ((c * t) - (k * y1))) else: tmp = c * (y * (y3 * y4)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y4 <= -1.8e+84) tmp = Float64(-1.0 * Float64(j * Float64(y1 * Float64(y3 * y4)))); elseif (y4 <= 1.25e+197) tmp = Float64(i * Float64(z * Float64(Float64(c * t) - Float64(k * y1)))); else tmp = Float64(c * Float64(y * Float64(y3 * y4))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y4 <= -1.8e+84) tmp = -1.0 * (j * (y1 * (y3 * y4))); elseif (y4 <= 1.25e+197) tmp = i * (z * ((c * t) - (k * y1))); else tmp = c * (y * (y3 * y4)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y4, -1.8e+84], N[(-1.0 * N[(j * N[(y1 * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[y4, 1.25e+197], N[(i * N[(z * N[(N[(c * t), $MachinePrecision] - N[(k * y1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y4 \leq -1.8 \cdot 10^{+84}:\\
\;\;\;\;-1 \cdot \left(j \cdot \left(y1 \cdot \left(y3 \cdot y4\right)\right)\right)\\
\mathbf{elif}\;y4 \leq 1.25 \cdot 10^{+197}:\\
\;\;\;\;i \cdot \left(z \cdot \left(c \cdot t - k \cdot y1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\end{array}
\end{array}
if y4 < -1.8e84Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in j around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.9
Applied rewrites17.9%
if -1.8e84 < y4 < 1.25000000000000002e197Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
if 1.25000000000000002e197 < y4 Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* c (* t z)))))
(if (<= t -4.3e+155)
t_1
(if (<= t 2.45e-19)
(* c (* y (* y3 y4)))
(if (<= t 6.2e+164) (* b (* y0 (* 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 = i * (c * (t * z));
double tmp;
if (t <= -4.3e+155) {
tmp = t_1;
} else if (t <= 2.45e-19) {
tmp = c * (y * (y3 * y4));
} else if (t <= 6.2e+164) {
tmp = b * (y0 * (k * z));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (c * (t * z))
if (t <= (-4.3d+155)) then
tmp = t_1
else if (t <= 2.45d-19) then
tmp = c * (y * (y3 * y4))
else if (t <= 6.2d+164) then
tmp = b * (y0 * (k * z))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (c * (t * z));
double tmp;
if (t <= -4.3e+155) {
tmp = t_1;
} else if (t <= 2.45e-19) {
tmp = c * (y * (y3 * y4));
} else if (t <= 6.2e+164) {
tmp = b * (y0 * (k * z));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (c * (t * z)) tmp = 0 if t <= -4.3e+155: tmp = t_1 elif t <= 2.45e-19: tmp = c * (y * (y3 * y4)) elif t <= 6.2e+164: tmp = b * (y0 * (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(i * Float64(c * Float64(t * z))) tmp = 0.0 if (t <= -4.3e+155) tmp = t_1; elseif (t <= 2.45e-19) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (t <= 6.2e+164) tmp = Float64(b * Float64(y0 * Float64(k * z))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (c * (t * z)); tmp = 0.0; if (t <= -4.3e+155) tmp = t_1; elseif (t <= 2.45e-19) tmp = c * (y * (y3 * y4)); elseif (t <= 6.2e+164) tmp = b * (y0 * (k * z)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+155], t$95$1, If[LessEqual[t, 2.45e-19], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 6.2e+164], N[(b * N[(y0 * N[(k * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.45 \cdot 10^{-19}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 6.2 \cdot 10^{+164}:\\
\;\;\;\;b \cdot \left(y0 \cdot \left(k \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.3000000000000002e155 or 6.2000000000000003e164 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -4.3000000000000002e155 < t < 2.44999999999999996e-19Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if 2.44999999999999996e-19 < t < 6.2000000000000003e164Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.1
Applied rewrites27.1%
Taylor expanded in x around 0
lift-*.f6417.3
Applied rewrites17.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:precision binary64
(let* ((t_1 (* i (* c (* t z)))))
(if (<= t -4.3e+155)
t_1
(if (<= t 2.5e-19)
(* c (* y (* y3 y4)))
(if (<= t 4.8e+136) (* b (* k (* y0 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 * (c * (t * z));
double tmp;
if (t <= -4.3e+155) {
tmp = t_1;
} else if (t <= 2.5e-19) {
tmp = c * (y * (y3 * y4));
} else if (t <= 4.8e+136) {
tmp = b * (k * (y0 * 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 * (c * (t * z))
if (t <= (-4.3d+155)) then
tmp = t_1
else if (t <= 2.5d-19) then
tmp = c * (y * (y3 * y4))
else if (t <= 4.8d+136) then
tmp = b * (k * (y0 * 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 * (c * (t * z));
double tmp;
if (t <= -4.3e+155) {
tmp = t_1;
} else if (t <= 2.5e-19) {
tmp = c * (y * (y3 * y4));
} else if (t <= 4.8e+136) {
tmp = b * (k * (y0 * 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 * (c * (t * z)) tmp = 0 if t <= -4.3e+155: tmp = t_1 elif t <= 2.5e-19: tmp = c * (y * (y3 * y4)) elif t <= 4.8e+136: tmp = b * (k * (y0 * 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(c * Float64(t * z))) tmp = 0.0 if (t <= -4.3e+155) tmp = t_1; elseif (t <= 2.5e-19) tmp = Float64(c * Float64(y * Float64(y3 * y4))); elseif (t <= 4.8e+136) tmp = Float64(b * Float64(k * Float64(y0 * 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 * (c * (t * z)); tmp = 0.0; if (t <= -4.3e+155) tmp = t_1; elseif (t <= 2.5e-19) tmp = c * (y * (y3 * y4)); elseif (t <= 4.8e+136) tmp = b * (k * (y0 * 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[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+155], t$95$1, If[LessEqual[t, 2.5e-19], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t, 4.8e+136], N[(b * N[(k * N[(y0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 2.5 \cdot 10^{-19}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{elif}\;t \leq 4.8 \cdot 10^{+136}:\\
\;\;\;\;b \cdot \left(k \cdot \left(y0 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.3000000000000002e155 or 4.8000000000000001e136 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -4.3000000000000002e155 < t < 2.5000000000000002e-19Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
if 2.5000000000000002e-19 < t < 4.8000000000000001e136Initial program 30.1%
Taylor expanded in b around inf
lower-*.f64N/A
lower--.f64N/A
Applied rewrites38.0%
Taylor expanded in y0 around inf
lower-*.f64N/A
lower--.f64N/A
lift-*.f64N/A
lift-*.f6427.1
Applied rewrites27.1%
Taylor expanded in x around 0
lower-*.f64N/A
lower-*.f6417.3
Applied rewrites17.3%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (let* ((t_1 (* i (* c (* t z))))) (if (<= t -4.3e+155) t_1 (if (<= t 1.96e+15) (* c (* y (* y3 y4))) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (c * (t * z));
double tmp;
if (t <= -4.3e+155) {
tmp = t_1;
} else if (t <= 1.96e+15) {
tmp = c * (y * (y3 * y4));
} else {
tmp = t_1;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: t_1
real(8) :: tmp
t_1 = i * (c * (t * z))
if (t <= (-4.3d+155)) then
tmp = t_1
else if (t <= 1.96d+15) then
tmp = c * (y * (y3 * y4))
else
tmp = t_1
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double t_1 = i * (c * (t * z));
double tmp;
if (t <= -4.3e+155) {
tmp = t_1;
} else if (t <= 1.96e+15) {
tmp = c * (y * (y3 * y4));
} else {
tmp = t_1;
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): t_1 = i * (c * (t * z)) tmp = 0 if t <= -4.3e+155: tmp = t_1 elif t <= 1.96e+15: tmp = c * (y * (y3 * y4)) else: tmp = t_1 return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = Float64(i * Float64(c * Float64(t * z))) tmp = 0.0 if (t <= -4.3e+155) tmp = t_1; elseif (t <= 1.96e+15) tmp = Float64(c * Float64(y * Float64(y3 * y4))); else tmp = t_1; end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) t_1 = i * (c * (t * z)); tmp = 0.0; if (t <= -4.3e+155) tmp = t_1; elseif (t <= 1.96e+15) tmp = c * (y * (y3 * y4)); else tmp = t_1; end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := Block[{t$95$1 = N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t, -4.3e+155], t$95$1, If[LessEqual[t, 1.96e+15], N[(c * N[(y * N[(y3 * y4), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\mathbf{if}\;t \leq -4.3 \cdot 10^{+155}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;t \leq 1.96 \cdot 10^{+15}:\\
\;\;\;\;c \cdot \left(y \cdot \left(y3 \cdot y4\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if t < -4.3000000000000002e155 or 1.96e15 < t Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
if -4.3000000000000002e155 < t < 1.96e15Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in y around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6417.5
Applied rewrites17.5%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (if (<= y1 -5.6e+34) (* a (* y1 (* y3 z))) (* i (* c (* t z)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= -5.6e+34) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = i * (c * (t * z));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
real(8) :: tmp
if (y1 <= (-5.6d+34)) then
tmp = a * (y1 * (y3 * z))
else
tmp = i * (c * (t * z))
end if
code = tmp
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
double tmp;
if (y1 <= -5.6e+34) {
tmp = a * (y1 * (y3 * z));
} else {
tmp = i * (c * (t * z));
}
return tmp;
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): tmp = 0 if y1 <= -5.6e+34: tmp = a * (y1 * (y3 * z)) else: tmp = i * (c * (t * z)) return tmp
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0 if (y1 <= -5.6e+34) tmp = Float64(a * Float64(y1 * Float64(y3 * z))); else tmp = Float64(i * Float64(c * Float64(t * z))); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = 0.0; if (y1 <= -5.6e+34) tmp = a * (y1 * (y3 * z)); else tmp = i * (c * (t * z)); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := If[LessEqual[y1, -5.6e+34], N[(a * N[(y1 * N[(y3 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y1 \leq -5.6 \cdot 10^{+34}:\\
\;\;\;\;a \cdot \left(y1 \cdot \left(y3 \cdot z\right)\right)\\
\mathbf{else}:\\
\;\;\;\;i \cdot \left(c \cdot \left(t \cdot z\right)\right)\\
\end{array}
\end{array}
if y1 < -5.60000000000000016e34Initial program 30.1%
Taylor expanded in y5 around 0
Applied rewrites32.0%
Taylor expanded in y3 around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites34.2%
Taylor expanded in a around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.6
Applied rewrites16.6%
if -5.60000000000000016e34 < y1 Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* i (* c (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (c * (t * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = i * (c * (t * z))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return i * (c * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return i * (c * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(i * Float64(c * Float64(t * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = i * (c * (t * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(i * N[(c * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
i \cdot \left(c \cdot \left(t \cdot z\right)\right)
\end{array}
Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f6417.0
Applied rewrites17.0%
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5) :precision binary64 (* c (* i (* t z))))
double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8), intent (in) :: t
real(8), intent (in) :: a
real(8), intent (in) :: b
real(8), intent (in) :: c
real(8), intent (in) :: i
real(8), intent (in) :: j
real(8), intent (in) :: k
real(8), intent (in) :: y0
real(8), intent (in) :: y1
real(8), intent (in) :: y2
real(8), intent (in) :: y3
real(8), intent (in) :: y4
real(8), intent (in) :: y5
code = c * (i * (t * z))
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i, double j, double k, double y0, double y1, double y2, double y3, double y4, double y5) {
return c * (i * (t * z));
}
def code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5): return c * (i * (t * z))
function code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) return Float64(c * Float64(i * Float64(t * z))) end
function tmp = code(x, y, z, t, a, b, c, i, j, k, y0, y1, y2, y3, y4, y5) tmp = c * (i * (t * z)); end
code[x_, y_, z_, t_, a_, b_, c_, i_, j_, k_, y0_, y1_, y2_, y3_, y4_, y5_] := N[(c * N[(i * N[(t * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
c \cdot \left(i \cdot \left(t \cdot z\right)\right)
\end{array}
Initial program 30.1%
Taylor expanded in z around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
Applied rewrites37.8%
Taylor expanded in i around -inf
lower-*.f64N/A
lower-*.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6426.9
Applied rewrites26.9%
Taylor expanded in t around inf
lower-*.f64N/A
lower-*.f64N/A
lower-*.f6416.8
Applied rewrites16.8%
herbie shell --seed 2025142
(FPCore (x y z t a b c i j k y0 y1 y2 y3 y4 y5)
:name "Linear.Matrix:det44 from linear-1.19.1.3"
:precision binary64
(+ (- (+ (+ (- (* (- (* x y) (* z t)) (- (* a b) (* c i))) (* (- (* x j) (* z k)) (- (* y0 b) (* y1 i)))) (* (- (* x y2) (* z y3)) (- (* y0 c) (* y1 a)))) (* (- (* t j) (* y k)) (- (* y4 b) (* y5 i)))) (* (- (* t y2) (* y y3)) (- (* y4 c) (* y5 a)))) (* (- (* k y2) (* j y3)) (- (* y4 y1) (* y5 y0)))))