
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
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)
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
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b)
:precision binary64
(+
x
(/
(*
y
(+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b))
(+
(* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z)
0.607771387771))))
double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
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)
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
code = x + ((y * ((((((((z * 3.13060547623d0) + 11.1667541262d0) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407d0) * z) + 31.4690115749d0) * z) + 11.9400905721d0) * z) + 0.607771387771d0))
end function
public static double code(double x, double y, double z, double t, double a, double b) {
return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771));
}
def code(x, y, z, t, a, b): return x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))
function code(x, y, z, t, a, b) return Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) end
function tmp = code(x, y, z, t, a, b) tmp = x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771)); end
code[x_, y_, z_, t_, a_, b_] := N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771}
\end{array}
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(fma (fma (- z -15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771)))
(if (<=
(+
x
(/
(*
y
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)))
INFINITY)
(fma
y
(* z (/ (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) t_1))
(fma b (/ y t_1) x))
(fma
(+
3.13060547623
(*
-1.0
(/ (+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z))) z)))
y
x))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma(fma(fma((z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771);
double tmp;
if ((x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= ((double) INFINITY)) {
tmp = fma(y, (z * (fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a) / t_1)), fma(b, (y / t_1), x));
} else {
tmp = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(fma(fma(Float64(z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771) tmp = 0.0 if (Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= Inf) tmp = fma(y, Float64(z * Float64(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a) / t_1)), fma(b, Float64(y / t_1), x)); else tmp = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(N[(N[(z - -15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]}, If[LessEqual[N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(y * N[(z * N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] / t$95$1), $MachinePrecision]), $MachinePrecision] + N[(b * N[(y / t$95$1), $MachinePrecision] + x), $MachinePrecision]), $MachinePrecision], N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)\\
\mathbf{if}\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(y, z \cdot \frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right)}{t\_1}, \mathsf{fma}\left(b, \frac{y}{t\_1}, x\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) < +inf.0Initial program 58.7%
Applied rewrites63.3%
if +inf.0 < (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(+
x
(/
(*
y
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)))
INFINITY)
(fma
(/
(fma (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) z b)
(fma
(fma (fma (- z -15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(fma
(+
3.13060547623
(*
-1.0
(/ (+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z))) z)))
y
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= ((double) INFINITY)) {
tmp = fma((fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma((z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= Inf) tmp = fma(Float64(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b) / fma(fma(fma(Float64(z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(z - -15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) < +inf.0Initial program 58.7%
Applied rewrites60.9%
if +inf.0 < (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
(FPCore (x y z t a b)
:precision binary64
(if (<=
(+
x
(/
(*
y
(+
(* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z)
b))
(+
(*
(+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721)
z)
0.607771387771)))
INFINITY)
(fma
(/
(fma (fma (fma (* 3.13060547623 z) z t) z a) z b)
(fma
(fma (fma (- z -15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(fma
(+
3.13060547623
(*
-1.0
(/ (+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z))) z)))
y
x)))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if ((x + ((y * ((((((((z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / (((((((z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= ((double) INFINITY)) {
tmp = fma((fma(fma(fma((3.13060547623 * z), z, t), z, a), z, b) / fma(fma(fma((z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (Float64(x + Float64(Float64(y * Float64(Float64(Float64(Float64(Float64(Float64(Float64(Float64(z * 3.13060547623) + 11.1667541262) * z) + t) * z) + a) * z) + b)) / Float64(Float64(Float64(Float64(Float64(Float64(Float64(z + 15.234687407) * z) + 31.4690115749) * z) + 11.9400905721) * z) + 0.607771387771))) <= Inf) tmp = fma(Float64(fma(fma(fma(Float64(3.13060547623 * z), z, t), z, a), z, b) / fma(fma(fma(Float64(z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[N[(x + N[(N[(y * N[(N[(N[(N[(N[(N[(N[(N[(z * 3.13060547623), $MachinePrecision] + 11.1667541262), $MachinePrecision] * z), $MachinePrecision] + t), $MachinePrecision] * z), $MachinePrecision] + a), $MachinePrecision] * z), $MachinePrecision] + b), $MachinePrecision]), $MachinePrecision] / N[(N[(N[(N[(N[(N[(N[(z + 15.234687407), $MachinePrecision] * z), $MachinePrecision] + 31.4690115749), $MachinePrecision] * z), $MachinePrecision] + 11.9400905721), $MachinePrecision] * z), $MachinePrecision] + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], Infinity], N[(N[(N[(N[(N[(N[(3.13060547623 * z), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] / N[(N[(N[(N[(z - -15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x + \frac{y \cdot \left(\left(\left(\left(z \cdot 3.13060547623 + 11.1667541262\right) \cdot z + t\right) \cdot z + a\right) \cdot z + b\right)}{\left(\left(\left(z + 15.234687407\right) \cdot z + 31.4690115749\right) \cdot z + 11.9400905721\right) \cdot z + 0.607771387771} \leq \infty:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623 \cdot z, z, t\right), z, a\right), z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\end{array}
\end{array}
if (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) < +inf.0Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around inf
lower-*.f6460.6
Applied rewrites60.6%
if +inf.0 < (+.f64 x (/.f64 (*.f64 y (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 z #s(literal 313060547623/100000000000 binary64)) #s(literal 55833770631/5000000000 binary64)) z) t) z) a) z) b)) (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 (*.f64 (+.f64 z #s(literal 15234687407/1000000000 binary64)) z) #s(literal 314690115749/10000000000 binary64)) z) #s(literal 119400905721/10000000000 binary64)) z) #s(literal 607771387771/1000000000000 binary64)))) Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(+
3.13060547623
(*
-1.0
(/
(+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z)))
z)))
y
x)))
(if (<= z -1.85e+36)
t_1
(if (<= z 1.9e+20)
(-
x
(/
(* (fma (fma t z a) z b) y)
(fma
(fma (fma (- -15.234687407 z) z -31.4690115749) z -11.9400905721)
z
-0.607771387771)))
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
double tmp;
if (z <= -1.85e+36) {
tmp = t_1;
} else if (z <= 1.9e+20) {
tmp = x - ((fma(fma(t, z, a), z, b) * y) / fma(fma(fma((-15.234687407 - z), z, -31.4690115749), z, -11.9400905721), z, -0.607771387771));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x) tmp = 0.0 if (z <= -1.85e+36) tmp = t_1; elseif (z <= 1.9e+20) tmp = Float64(x - Float64(Float64(fma(fma(t, z, a), z, b) * y) / fma(fma(fma(Float64(-15.234687407 - z), z, -31.4690115749), z, -11.9400905721), z, -0.607771387771))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -1.85e+36], t$95$1, If[LessEqual[z, 1.9e+20], N[(x - N[(N[(N[(N[(t * z + a), $MachinePrecision] * z + b), $MachinePrecision] * y), $MachinePrecision] / N[(N[(N[(N[(-15.234687407 - z), $MachinePrecision] * z + -31.4690115749), $MachinePrecision] * z + -11.9400905721), $MachinePrecision] * z + -0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -1.85 \cdot 10^{+36}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 1.9 \cdot 10^{+20}:\\
\;\;\;\;x - \frac{\mathsf{fma}\left(\mathsf{fma}\left(t, z, a\right), z, b\right) \cdot y}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(-15.234687407 - z, z, -31.4690115749\right), z, -11.9400905721\right), z, -0.607771387771\right)}\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -1.85000000000000014e36 or 1.9e20 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
if -1.85000000000000014e36 < z < 1.9e20Initial program 58.7%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6462.7
Applied rewrites62.7%
Applied rewrites61.6%
lift-fma.f64N/A
lift-*.f64N/A
associate-*l*N/A
lift-*.f64N/A
*-commutativeN/A
distribute-lft-outN/A
*-commutativeN/A
lower-*.f64N/A
lower-fma.f6461.8
Applied rewrites61.8%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(+
3.13060547623
(*
-1.0
(/
(+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z)))
z)))
y
x)))
(if (<= z -7e+32)
t_1
(if (<= z -7e-15)
(fma
(/
(fma a z b)
(fma
(fma (- z -15.234687407) z 31.4690115749)
(* z z)
(fma 11.9400905721 z 0.607771387771)))
y
x)
(if (<= z 5.7e+19)
(fma
(fma (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) z b)
(* (- y) -1.6453555072203998)
x)
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
double tmp;
if (z <= -7e+32) {
tmp = t_1;
} else if (z <= -7e-15) {
tmp = fma((fma(a, z, b) / fma(fma((z - -15.234687407), z, 31.4690115749), (z * z), fma(11.9400905721, z, 0.607771387771))), y, x);
} else if (z <= 5.7e+19) {
tmp = fma(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b), (-y * -1.6453555072203998), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x) tmp = 0.0 if (z <= -7e+32) tmp = t_1; elseif (z <= -7e-15) tmp = fma(Float64(fma(a, z, b) / fma(fma(Float64(z - -15.234687407), z, 31.4690115749), Float64(z * z), fma(11.9400905721, z, 0.607771387771))), y, x); elseif (z <= 5.7e+19) tmp = fma(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b), Float64(Float64(-y) * -1.6453555072203998), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -7e+32], t$95$1, If[LessEqual[z, -7e-15], N[(N[(N[(a * z + b), $MachinePrecision] / N[(N[(N[(z - -15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * N[(z * z), $MachinePrecision] + N[(11.9400905721 * z + 0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 5.7e+19], N[(N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] * N[((-y) * -1.6453555072203998), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -7 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-15}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(a, z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z \cdot z, \mathsf{fma}\left(11.9400905721, z, 0.607771387771\right)\right)}, y, x\right)\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right), \left(-y\right) \cdot -1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.0000000000000002e32 or 5.7e19 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
if -7.0000000000000002e32 < z < -7.0000000000000001e-15Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
lift-fma.f64N/A
*-commutativeN/A
lift-fma.f64N/A
distribute-rgt-inN/A
associate-+l+N/A
*-commutativeN/A
associate-*l*N/A
lower-fma.f64N/A
lower-*.f64N/A
*-commutativeN/A
lower-fma.f6467.2
Applied rewrites67.2%
if -7.0000000000000001e-15 < z < 5.7e19Initial program 58.7%
Applied rewrites60.6%
Taylor expanded in z around 0
Applied rewrites55.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(+
3.13060547623
(*
-1.0
(/
(+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z)))
z)))
y
x)))
(if (<= z -7e+32)
t_1
(if (<= z -7e-15)
(fma
(/
(fma a z b)
(fma
(fma (fma (- z -15.234687407) z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
(if (<= z 5.7e+19)
(fma
(fma (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) z b)
(* (- y) -1.6453555072203998)
x)
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
double tmp;
if (z <= -7e+32) {
tmp = t_1;
} else if (z <= -7e-15) {
tmp = fma((fma(a, z, b) / fma(fma(fma((z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else if (z <= 5.7e+19) {
tmp = fma(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b), (-y * -1.6453555072203998), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x) tmp = 0.0 if (z <= -7e+32) tmp = t_1; elseif (z <= -7e-15) tmp = fma(Float64(fma(a, z, b) / fma(fma(fma(Float64(z - -15.234687407), z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); elseif (z <= 5.7e+19) tmp = fma(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b), Float64(Float64(-y) * -1.6453555072203998), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -7e+32], t$95$1, If[LessEqual[z, -7e-15], N[(N[(N[(a * z + b), $MachinePrecision] / N[(N[(N[(N[(z - -15.234687407), $MachinePrecision] * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 5.7e+19], N[(N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] * N[((-y) * -1.6453555072203998), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -7 \cdot 10^{+32}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -7 \cdot 10^{-15}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(a, z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(z - -15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right), \left(-y\right) \cdot -1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -7.0000000000000002e32 or 5.7e19 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
if -7.0000000000000002e32 < z < -7.0000000000000001e-15Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
if -7.0000000000000001e-15 < z < 5.7e19Initial program 58.7%
Applied rewrites60.6%
Taylor expanded in z around 0
Applied rewrites55.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(+
3.13060547623
(*
-1.0
(/
(+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z)))
z)))
y
x)))
(if (<= z -0.06)
t_1
(if (<= z 5.7e+19)
(fma
(fma (fma (fma (fma 3.13060547623 z 11.1667541262) z t) z a) z b)
(* (- y) -1.6453555072203998)
x)
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
double tmp;
if (z <= -0.06) {
tmp = t_1;
} else if (z <= 5.7e+19) {
tmp = fma(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b), (-y * -1.6453555072203998), x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x) tmp = 0.0 if (z <= -0.06) tmp = t_1; elseif (z <= 5.7e+19) tmp = fma(fma(fma(fma(fma(3.13060547623, z, 11.1667541262), z, t), z, a), z, b), Float64(Float64(-y) * -1.6453555072203998), x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -0.06], t$95$1, If[LessEqual[z, 5.7e+19], N[(N[(N[(N[(N[(3.13060547623 * z + 11.1667541262), $MachinePrecision] * z + t), $MachinePrecision] * z + a), $MachinePrecision] * z + b), $MachinePrecision] * N[((-y) * -1.6453555072203998), $MachinePrecision] + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -0.06:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(3.13060547623, z, 11.1667541262\right), z, t\right), z, a\right), z, b\right), \left(-y\right) \cdot -1.6453555072203998, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -0.059999999999999998 or 5.7e19 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
if -0.059999999999999998 < z < 5.7e19Initial program 58.7%
Applied rewrites60.6%
Taylor expanded in z around 0
Applied rewrites55.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(+
3.13060547623
(*
-1.0
(/
(+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z)))
z)))
y
x)))
(if (<= z -13.0)
t_1
(if (<= z -2.5e-127)
(-
x
(/
(fma (* y (fma t z a)) z (* b y))
(fma -11.9400905721 z -0.607771387771)))
(if (<= z 5.7e+19)
(fma
(/
(fma a z b)
(fma (fma 31.4690115749 z 11.9400905721) z 0.607771387771))
y
x)
t_1)))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
double tmp;
if (z <= -13.0) {
tmp = t_1;
} else if (z <= -2.5e-127) {
tmp = x - (fma((y * fma(t, z, a)), z, (b * y)) / fma(-11.9400905721, z, -0.607771387771));
} else if (z <= 5.7e+19) {
tmp = fma((fma(a, z, b) / fma(fma(31.4690115749, z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x) tmp = 0.0 if (z <= -13.0) tmp = t_1; elseif (z <= -2.5e-127) tmp = Float64(x - Float64(fma(Float64(y * fma(t, z, a)), z, Float64(b * y)) / fma(-11.9400905721, z, -0.607771387771))); elseif (z <= 5.7e+19) tmp = fma(Float64(fma(a, z, b) / fma(fma(31.4690115749, z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -13.0], t$95$1, If[LessEqual[z, -2.5e-127], N[(x - N[(N[(N[(y * N[(t * z + a), $MachinePrecision]), $MachinePrecision] * z + N[(b * y), $MachinePrecision]), $MachinePrecision] / N[(-11.9400905721 * z + -0.607771387771), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 5.7e+19], N[(N[(N[(a * z + b), $MachinePrecision] / N[(N[(31.4690115749 * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -13:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq -2.5 \cdot 10^{-127}:\\
\;\;\;\;x - \frac{\mathsf{fma}\left(y \cdot \mathsf{fma}\left(t, z, a\right), z, b \cdot y\right)}{\mathsf{fma}\left(-11.9400905721, z, -0.607771387771\right)}\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(a, z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(31.4690115749, z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -13 or 5.7e19 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
if -13 < z < -2.4999999999999999e-127Initial program 58.7%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6462.7
Applied rewrites62.7%
Applied rewrites61.6%
Taylor expanded in z around 0
Applied rewrites56.1%
if -2.4999999999999999e-127 < z < 5.7e19Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around 0
Applied rewrites65.0%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(+
3.13060547623
(*
-1.0
(/
(+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z)))
z)))
y
x)))
(if (<= z -13.0)
t_1
(if (<= z 5.7e+19)
(fma
(/
(fma a z b)
(fma
(fma (fma 15.234687407 z 31.4690115749) z 11.9400905721)
z
0.607771387771))
y
x)
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
double tmp;
if (z <= -13.0) {
tmp = t_1;
} else if (z <= 5.7e+19) {
tmp = fma((fma(a, z, b) / fma(fma(fma(15.234687407, z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x) tmp = 0.0 if (z <= -13.0) tmp = t_1; elseif (z <= 5.7e+19) tmp = fma(Float64(fma(a, z, b) / fma(fma(fma(15.234687407, z, 31.4690115749), z, 11.9400905721), z, 0.607771387771)), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -13.0], t$95$1, If[LessEqual[z, 5.7e+19], N[(N[(N[(a * z + b), $MachinePrecision] / N[(N[(N[(15.234687407 * z + 31.4690115749), $MachinePrecision] * z + 11.9400905721), $MachinePrecision] * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -13:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(a, z, b\right)}{\mathsf{fma}\left(\mathsf{fma}\left(\mathsf{fma}\left(15.234687407, z, 31.4690115749\right), z, 11.9400905721\right), z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -13 or 5.7e19 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
if -13 < z < 5.7e19Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around 0
Applied rewrites64.9%
(FPCore (x y z t a b)
:precision binary64
(let* ((t_1
(fma
(+
3.13060547623
(*
-1.0
(/
(+ 36.52704169880642 (* -1.0 (/ (+ 457.9610022158428 t) z)))
z)))
y
x)))
(if (<= z -13.0)
t_1
(if (<= z 5.7e+19)
(fma (/ (fma a z b) (fma 11.9400905721 z 0.607771387771)) y x)
t_1))))
double code(double x, double y, double z, double t, double a, double b) {
double t_1 = fma((3.13060547623 + (-1.0 * ((36.52704169880642 + (-1.0 * ((457.9610022158428 + t) / z))) / z))), y, x);
double tmp;
if (z <= -13.0) {
tmp = t_1;
} else if (z <= 5.7e+19) {
tmp = fma((fma(a, z, b) / fma(11.9400905721, z, 0.607771387771)), y, x);
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b) t_1 = fma(Float64(3.13060547623 + Float64(-1.0 * Float64(Float64(36.52704169880642 + Float64(-1.0 * Float64(Float64(457.9610022158428 + t) / z))) / z))), y, x) tmp = 0.0 if (z <= -13.0) tmp = t_1; elseif (z <= 5.7e+19) tmp = fma(Float64(fma(a, z, b) / fma(11.9400905721, z, 0.607771387771)), y, x); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_] := Block[{t$95$1 = N[(N[(3.13060547623 + N[(-1.0 * N[(N[(36.52704169880642 + N[(-1.0 * N[(N[(457.9610022158428 + t), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision]}, If[LessEqual[z, -13.0], t$95$1, If[LessEqual[z, 5.7e+19], N[(N[(N[(a * z + b), $MachinePrecision] / N[(11.9400905721 * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(3.13060547623 + -1 \cdot \frac{36.52704169880642 + -1 \cdot \frac{457.9610022158428 + t}{z}}{z}, y, x\right)\\
\mathbf{if}\;z \leq -13:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;z \leq 5.7 \cdot 10^{+19}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(a, z, b\right)}{\mathsf{fma}\left(11.9400905721, z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if z < -13 or 5.7e19 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around -inf
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower-+.f6455.8
Applied rewrites55.8%
if -13 < z < 5.7e19Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around 0
Applied rewrites63.4%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.7)
(-
x
(fma
-3.13060547623
y
(* -1.0 (/ (- (* 11.1667541262 y) (* 47.69379582500642 y)) z))))
(if (<= z 6.2e+27)
(fma (/ (fma a z b) (fma 11.9400905721 z 0.607771387771)) y x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.7) {
tmp = x - fma(-3.13060547623, y, (-1.0 * (((11.1667541262 * y) - (47.69379582500642 * y)) / z)));
} else if (z <= 6.2e+27) {
tmp = fma((fma(a, z, b) / fma(11.9400905721, z, 0.607771387771)), y, x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.7) tmp = Float64(x - fma(-3.13060547623, y, Float64(-1.0 * Float64(Float64(Float64(11.1667541262 * y) - Float64(47.69379582500642 * y)) / z)))); elseif (z <= 6.2e+27) tmp = fma(Float64(fma(a, z, b) / fma(11.9400905721, z, 0.607771387771)), y, x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.7], N[(x - N[(-3.13060547623 * y + N[(-1.0 * N[(N[(N[(11.1667541262 * y), $MachinePrecision] - N[(47.69379582500642 * y), $MachinePrecision]), $MachinePrecision] / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(N[(a * z + b), $MachinePrecision] / N[(11.9400905721 * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.7:\\
\;\;\;\;x - \mathsf{fma}\left(-3.13060547623, y, -1 \cdot \frac{11.1667541262 \cdot y - 47.69379582500642 \cdot y}{z}\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(a, z, b\right)}{\mathsf{fma}\left(11.9400905721, z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -0.69999999999999996Initial program 58.7%
Taylor expanded in z around 0
lower-fma.f64N/A
lower-*.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-*.f6462.7
Applied rewrites62.7%
Applied rewrites61.6%
Taylor expanded in z around -inf
lower-fma.f64N/A
lower-*.f64N/A
lower-/.f64N/A
lower--.f64N/A
lower-*.f64N/A
lower-*.f6459.0
Applied rewrites59.0%
if -0.69999999999999996 < z < 6.19999999999999992e27Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around 0
Applied rewrites63.4%
if 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.7)
(fma (- 3.13060547623 (* 36.52704169880642 (/ 1.0 z))) y x)
(if (<= z 6.2e+27)
(fma (/ (fma a z b) (fma 11.9400905721 z 0.607771387771)) y x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.7) {
tmp = fma((3.13060547623 - (36.52704169880642 * (1.0 / z))), y, x);
} else if (z <= 6.2e+27) {
tmp = fma((fma(a, z, b) / fma(11.9400905721, z, 0.607771387771)), y, x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.7) tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 * Float64(1.0 / z))), y, x); elseif (z <= 6.2e+27) tmp = fma(Float64(fma(a, z, b) / fma(11.9400905721, z, 0.607771387771)), y, x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.7], N[(N[(3.13060547623 - N[(36.52704169880642 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(N[(a * z + b), $MachinePrecision] / N[(11.9400905721 * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.7:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - 36.52704169880642 \cdot \frac{1}{z}, y, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\frac{\mathsf{fma}\left(a, z, b\right)}{\mathsf{fma}\left(11.9400905721, z, 0.607771387771\right)}, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -0.69999999999999996Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
lower--.f64N/A
lower-*.f64N/A
lower-/.f6459.0
Applied rewrites59.0%
if -0.69999999999999996 < z < 6.19999999999999992e27Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around 0
Applied rewrites63.4%
if 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3100.0)
(fma (- 3.13060547623 (* 36.52704169880642 (/ 1.0 z))) y x)
(if (<= z 6.2e+27)
(fma (/ 1.0 0.607771387771) (* y (fma a z b)) x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3100.0) {
tmp = fma((3.13060547623 - (36.52704169880642 * (1.0 / z))), y, x);
} else if (z <= 6.2e+27) {
tmp = fma((1.0 / 0.607771387771), (y * fma(a, z, b)), x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3100.0) tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 * Float64(1.0 / z))), y, x); elseif (z <= 6.2e+27) tmp = fma(Float64(1.0 / 0.607771387771), Float64(y * fma(a, z, b)), x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3100.0], N[(N[(3.13060547623 - N[(36.52704169880642 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(1.0 / 0.607771387771), $MachinePrecision] * N[(y * N[(a * z + b), $MachinePrecision]), $MachinePrecision] + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3100:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - 36.52704169880642 \cdot \frac{1}{z}, y, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\frac{1}{0.607771387771}, y \cdot \mathsf{fma}\left(a, z, b\right), x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -3100Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
lower--.f64N/A
lower-*.f64N/A
lower-/.f6459.0
Applied rewrites59.0%
if -3100 < z < 6.19999999999999992e27Initial program 58.7%
Applied rewrites63.3%
Taylor expanded in z around 0
Applied rewrites55.1%
Taylor expanded in z around 0
Applied rewrites54.3%
Taylor expanded in z around 0
Applied rewrites59.3%
lift-fma.f64N/A
lift-fma.f64N/A
associate-+r+N/A
Applied rewrites59.7%
if 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -3100.0)
(fma (- 3.13060547623 (* 36.52704169880642 (/ 1.0 z))) y x)
(if (<= z 6.2e+27)
(+ (/ (* y (fma a z b)) 0.607771387771) x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -3100.0) {
tmp = fma((3.13060547623 - (36.52704169880642 * (1.0 / z))), y, x);
} else if (z <= 6.2e+27) {
tmp = ((y * fma(a, z, b)) / 0.607771387771) + x;
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -3100.0) tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 * Float64(1.0 / z))), y, x); elseif (z <= 6.2e+27) tmp = Float64(Float64(Float64(y * fma(a, z, b)) / 0.607771387771) + x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -3100.0], N[(N[(3.13060547623 - N[(36.52704169880642 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(N[(y * N[(a * z + b), $MachinePrecision]), $MachinePrecision] / 0.607771387771), $MachinePrecision] + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -3100:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - 36.52704169880642 \cdot \frac{1}{z}, y, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\frac{y \cdot \mathsf{fma}\left(a, z, b\right)}{0.607771387771} + x\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -3100Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
lower--.f64N/A
lower-*.f64N/A
lower-/.f6459.0
Applied rewrites59.0%
if -3100 < z < 6.19999999999999992e27Initial program 58.7%
Applied rewrites63.3%
Taylor expanded in z around 0
Applied rewrites55.1%
Taylor expanded in z around 0
Applied rewrites54.3%
Taylor expanded in z around 0
Applied rewrites59.3%
lift-fma.f64N/A
lift-fma.f64N/A
associate-+r+N/A
lower-+.f64N/A
Applied rewrites59.7%
if 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.55)
(fma (- 3.13060547623 (* 36.52704169880642 (/ 1.0 z))) y x)
(if (<= z 6.2e+27)
(fma (/ y (fma 11.9400905721 z 0.607771387771)) b x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.55) {
tmp = fma((3.13060547623 - (36.52704169880642 * (1.0 / z))), y, x);
} else if (z <= 6.2e+27) {
tmp = fma((y / fma(11.9400905721, z, 0.607771387771)), b, x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.55) tmp = fma(Float64(3.13060547623 - Float64(36.52704169880642 * Float64(1.0 / z))), y, x); elseif (z <= 6.2e+27) tmp = fma(Float64(y / fma(11.9400905721, z, 0.607771387771)), b, x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.55], N[(N[(3.13060547623 - N[(36.52704169880642 * N[(1.0 / z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] * y + x), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(y / N[(11.9400905721 * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * b + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.55:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623 - 36.52704169880642 \cdot \frac{1}{z}, y, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{\mathsf{fma}\left(11.9400905721, z, 0.607771387771\right)}, b, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -0.55000000000000004Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
lower--.f64N/A
lower-*.f64N/A
lower-/.f6459.0
Applied rewrites59.0%
if -0.55000000000000004 < z < 6.19999999999999992e27Initial program 58.7%
Taylor expanded in z around 0
Applied rewrites64.2%
Applied rewrites65.2%
Taylor expanded in z around 0
Applied rewrites63.3%
if 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -0.55)
(fma 3.13060547623 y x)
(if (<= z 6.2e+27)
(fma (/ y (fma 11.9400905721 z 0.607771387771)) b x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -0.55) {
tmp = fma(3.13060547623, y, x);
} else if (z <= 6.2e+27) {
tmp = fma((y / fma(11.9400905721, z, 0.607771387771)), b, x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -0.55) tmp = fma(3.13060547623, y, x); elseif (z <= 6.2e+27) tmp = fma(Float64(y / fma(11.9400905721, z, 0.607771387771)), b, x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -0.55], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(y / N[(11.9400905721 * z + 0.607771387771), $MachinePrecision]), $MachinePrecision] * b + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -0.55:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(\frac{y}{\mathsf{fma}\left(11.9400905721, z, 0.607771387771\right)}, b, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -0.55000000000000004 or 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
if -0.55000000000000004 < z < 6.19999999999999992e27Initial program 58.7%
Taylor expanded in z around 0
Applied rewrites64.2%
Applied rewrites65.2%
Taylor expanded in z around 0
Applied rewrites63.3%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -620.0)
(fma 3.13060547623 y x)
(if (<= z 6.2e+27)
(fma (* 1.6453555072203998 b) y x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -620.0) {
tmp = fma(3.13060547623, y, x);
} else if (z <= 6.2e+27) {
tmp = fma((1.6453555072203998 * b), y, x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -620.0) tmp = fma(3.13060547623, y, x); elseif (z <= 6.2e+27) tmp = fma(Float64(1.6453555072203998 * b), y, x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -620.0], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(1.6453555072203998 * b), $MachinePrecision] * y + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -620:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(1.6453555072203998 \cdot b, y, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -620 or 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
if -620 < z < 6.19999999999999992e27Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
lower-*.f6460.0
Applied rewrites60.0%
(FPCore (x y z t a b)
:precision binary64
(if (<= z -620.0)
(fma 3.13060547623 y x)
(if (<= z 6.2e+27)
(fma (* 1.6453555072203998 y) b x)
(fma 3.13060547623 y x))))
double code(double x, double y, double z, double t, double a, double b) {
double tmp;
if (z <= -620.0) {
tmp = fma(3.13060547623, y, x);
} else if (z <= 6.2e+27) {
tmp = fma((1.6453555072203998 * y), b, x);
} else {
tmp = fma(3.13060547623, y, x);
}
return tmp;
}
function code(x, y, z, t, a, b) tmp = 0.0 if (z <= -620.0) tmp = fma(3.13060547623, y, x); elseif (z <= 6.2e+27) tmp = fma(Float64(1.6453555072203998 * y), b, x); else tmp = fma(3.13060547623, y, x); end return tmp end
code[x_, y_, z_, t_, a_, b_] := If[LessEqual[z, -620.0], N[(3.13060547623 * y + x), $MachinePrecision], If[LessEqual[z, 6.2e+27], N[(N[(1.6453555072203998 * y), $MachinePrecision] * b + x), $MachinePrecision], N[(3.13060547623 * y + x), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;z \leq -620:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\mathbf{elif}\;z \leq 6.2 \cdot 10^{+27}:\\
\;\;\;\;\mathsf{fma}\left(1.6453555072203998 \cdot y, b, x\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(3.13060547623, y, x\right)\\
\end{array}
\end{array}
if z < -620 or 6.19999999999999992e27 < z Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
if -620 < z < 6.19999999999999992e27Initial program 58.7%
Taylor expanded in z around 0
Applied rewrites64.2%
Applied rewrites65.2%
Taylor expanded in z around 0
lower-*.f6460.0
Applied rewrites60.0%
(FPCore (x y z t a b) :precision binary64 (fma 3.13060547623 y x))
double code(double x, double y, double z, double t, double a, double b) {
return fma(3.13060547623, y, x);
}
function code(x, y, z, t, a, b) return fma(3.13060547623, y, x) end
code[x_, y_, z_, t_, a_, b_] := N[(3.13060547623 * y + x), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(3.13060547623, y, x\right)
\end{array}
Initial program 58.7%
Applied rewrites60.9%
Taylor expanded in z around 0
Applied rewrites67.3%
Taylor expanded in z around inf
Applied rewrites62.8%
herbie shell --seed 2025154
(FPCore (x y z t a b)
:name "Numeric.SpecFunctions:logGamma from math-functions-0.1.5.2, D"
:precision binary64
(+ x (/ (* y (+ (* (+ (* (+ (* (+ (* z 3.13060547623) 11.1667541262) z) t) z) a) z) b)) (+ (* (+ (* (+ (* (+ z 15.234687407) z) 31.4690115749) z) 11.9400905721) z) 0.607771387771))))