
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
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)
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
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Herbie found 19 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
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)
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
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
(FPCore (x y z t a b c i) :precision binary64 (+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
}
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)
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
code = (((((x * log(y)) + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
end function
public static double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return (((((x * Math.log(y)) + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
}
def code(x, y, z, t, a, b, c, i): return (((((x * math.log(y)) + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i)
function code(x, y, z, t, a, b, c, i) return Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) end
function tmp = code(x, y, z, t, a, b, c, i) tmp = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i
\end{array}
Initial program 99.8%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (fma i y (fma x (log y) (* (log c) (- b 0.5))))))
(if (<=
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i))
-2e+14)
(+ t (+ z t_1))
(+ a (+ t t_1)))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = fma(i, y, fma(x, log(y), (log(c) * (b - 0.5))));
double tmp;
if (((((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i)) <= -2e+14) {
tmp = t + (z + t_1);
} else {
tmp = a + (t + t_1);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = fma(i, y, fma(x, log(y), Float64(log(c) * Float64(b - 0.5)))) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) <= -2e+14) tmp = Float64(t + Float64(z + t_1)); else tmp = Float64(a + Float64(t + t_1)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(i * y + N[(x * N[Log[y], $MachinePrecision] + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], -2e+14], N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \mathsf{fma}\left(i, y, \mathsf{fma}\left(x, \log y, \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{if}\;\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \leq -2 \cdot 10^{+14}:\\
\;\;\;\;t + \left(z + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + t\_1\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e14Initial program 99.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.5
Applied rewrites84.5%
if -2e14 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
Taylor expanded in z around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.4
Applied rewrites84.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5)))
(t_2 (fma x (log y) t_1))
(t_3
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (<= t_3 -1e+307)
(+ a (+ t (+ z (fma i y t_1))))
(if (<= t_3 -5e+56) (+ t (+ z t_2)) (+ a (+ t (fma i y t_2)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double t_2 = fma(x, log(y), t_1);
double t_3 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_3 <= -1e+307) {
tmp = a + (t + (z + fma(i, y, t_1)));
} else if (t_3 <= -5e+56) {
tmp = t + (z + t_2);
} else {
tmp = a + (t + fma(i, y, t_2));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) t_2 = fma(x, log(y), t_1) t_3 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_3 <= -1e+307) tmp = Float64(a + Float64(t + Float64(z + fma(i, y, t_1)))); elseif (t_3 <= -5e+56) tmp = Float64(t + Float64(z + t_2)); else tmp = Float64(a + Float64(t + fma(i, y, t_2))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[Log[y], $MachinePrecision] + t$95$1), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -1e+307], N[(a + N[(t + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, -5e+56], N[(t + N[(z + t$95$2), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(i * y + t$95$2), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
t_2 := \mathsf{fma}\left(x, \log y, t\_1\right)\\
t_3 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_3 \leq -1 \cdot 10^{+307}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, t\_1\right)\right)\right)\\
\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{+56}:\\
\;\;\;\;t + \left(z + t\_2\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \mathsf{fma}\left(i, y, t\_2\right)\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -9.99999999999999986e306Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
if -9.99999999999999986e306 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -5.00000000000000024e56Initial program 99.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.5
Applied rewrites84.5%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.4
Applied rewrites61.4%
if -5.00000000000000024e56 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
Taylor expanded in z around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.4
Applied rewrites84.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))) (t_2 (fma x (log y) t_1)))
(if (<= x -1.36e+129)
(+ a (+ t t_2))
(if (<= x 1.25e+140) (+ a (+ t (+ z (fma i y t_1)))) (+ t (+ z t_2))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double t_2 = fma(x, log(y), t_1);
double tmp;
if (x <= -1.36e+129) {
tmp = a + (t + t_2);
} else if (x <= 1.25e+140) {
tmp = a + (t + (z + fma(i, y, t_1)));
} else {
tmp = t + (z + t_2);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) t_2 = fma(x, log(y), t_1) tmp = 0.0 if (x <= -1.36e+129) tmp = Float64(a + Float64(t + t_2)); elseif (x <= 1.25e+140) tmp = Float64(a + Float64(t + Float64(z + fma(i, y, t_1)))); else tmp = Float64(t + Float64(z + t_2)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[Log[y], $MachinePrecision] + t$95$1), $MachinePrecision]}, If[LessEqual[x, -1.36e+129], N[(a + N[(t + t$95$2), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+140], N[(a + N[(t + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(z + t$95$2), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
t_2 := \mathsf{fma}\left(x, \log y, t\_1\right)\\
\mathbf{if}\;x \leq -1.36 \cdot 10^{+129}:\\
\;\;\;\;a + \left(t + t\_2\right)\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+140}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, t\_1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t + \left(z + t\_2\right)\\
\end{array}
\end{array}
if x < -1.3599999999999999e129Initial program 99.8%
Taylor expanded in z around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.4
Applied rewrites84.4%
Taylor expanded in y around 0
lower-+.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.4
Applied rewrites61.4%
if -1.3599999999999999e129 < x < 1.25000000000000002e140Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
if 1.25000000000000002e140 < x Initial program 99.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.5
Applied rewrites84.5%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.4
Applied rewrites61.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5))))
(if (<= x -1.1e+221)
(+ (/ 1.0 (/ 1.0 (* x (log y)))) (* y i))
(if (<= x 1.25e+140)
(+ a (+ t (+ z (fma i y t_1))))
(+ t (+ z (fma x (log y) t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double tmp;
if (x <= -1.1e+221) {
tmp = (1.0 / (1.0 / (x * log(y)))) + (y * i);
} else if (x <= 1.25e+140) {
tmp = a + (t + (z + fma(i, y, t_1)));
} else {
tmp = t + (z + fma(x, log(y), t_1));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) tmp = 0.0 if (x <= -1.1e+221) tmp = Float64(Float64(1.0 / Float64(1.0 / Float64(x * log(y)))) + Float64(y * i)); elseif (x <= 1.25e+140) tmp = Float64(a + Float64(t + Float64(z + fma(i, y, t_1)))); else tmp = Float64(t + Float64(z + fma(x, log(y), t_1))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.1e+221], N[(N[(1.0 / N[(1.0 / N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[x, 1.25e+140], N[(a + N[(t + N[(z + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(t + N[(z + N[(x * N[Log[y], $MachinePrecision] + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
\mathbf{if}\;x \leq -1.1 \cdot 10^{+221}:\\
\;\;\;\;\frac{1}{\frac{1}{x \cdot \log y}} + y \cdot i\\
\mathbf{elif}\;x \leq 1.25 \cdot 10^{+140}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, t\_1\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t + \left(z + \mathsf{fma}\left(x, \log y, t\_1\right)\right)\\
\end{array}
\end{array}
if x < -1.1e221Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
lift-/.f64N/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
Applied rewrites69.7%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-log.f6439.1
Applied rewrites39.1%
if -1.1e221 < x < 1.25000000000000002e140Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
if 1.25000000000000002e140 < x Initial program 99.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.5
Applied rewrites84.5%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.4
Applied rewrites61.4%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (+ (/ 1.0 (/ 1.0 (* x (log y)))) (* y i))))
(if (<= x -1.1e+221)
t_1
(if (<= x 4.2e+219)
(+ a (+ t (+ z (fma i y (* (log c) (- b 0.5))))))
t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (1.0 / (1.0 / (x * log(y)))) + (y * i);
double tmp;
if (x <= -1.1e+221) {
tmp = t_1;
} else if (x <= 4.2e+219) {
tmp = a + (t + (z + fma(i, y, (log(c) * (b - 0.5)))));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(1.0 / Float64(1.0 / Float64(x * log(y)))) + Float64(y * i)) tmp = 0.0 if (x <= -1.1e+221) tmp = t_1; elseif (x <= 4.2e+219) tmp = Float64(a + Float64(t + Float64(z + fma(i, y, Float64(log(c) * Float64(b - 0.5)))))); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(1.0 / N[(1.0 / N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -1.1e+221], t$95$1, If[LessEqual[x, 4.2e+219], N[(a + N[(t + N[(z + N[(i * y + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \frac{1}{\frac{1}{x \cdot \log y}} + y \cdot i\\
\mathbf{if}\;x \leq -1.1 \cdot 10^{+221}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 4.2 \cdot 10^{+219}:\\
\;\;\;\;a + \left(t + \left(z + \mathsf{fma}\left(i, y, \log c \cdot \left(b - 0.5\right)\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -1.1e221 or 4.19999999999999976e219 < x Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
lift-/.f64N/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
Applied rewrites69.7%
Taylor expanded in x around inf
lower-/.f64N/A
lower-*.f64N/A
lower-log.f6439.1
Applied rewrites39.1%
if -1.1e221 < x < 4.19999999999999976e219Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5)))
(t_2 (* x (log y)))
(t_3 (+ (+ (+ (+ (+ t_2 z) t) a) (* (- b 0.5) (log c))) (* y i))))
(if (<= t_3 -5e+303)
(+ (/ (* t t_2) t) (* y i))
(if (<= t_3 -5e+56) (+ a (+ t (+ z t_1))) (+ a (+ t (fma i y t_1)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double t_2 = x * log(y);
double t_3 = ((((t_2 + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_3 <= -5e+303) {
tmp = ((t * t_2) / t) + (y * i);
} else if (t_3 <= -5e+56) {
tmp = a + (t + (z + t_1));
} else {
tmp = a + (t + fma(i, y, t_1));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) t_2 = Float64(x * log(y)) t_3 = Float64(Float64(Float64(Float64(Float64(t_2 + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_3 <= -5e+303) tmp = Float64(Float64(Float64(t * t_2) / t) + Float64(y * i)); elseif (t_3 <= -5e+56) tmp = Float64(a + Float64(t + Float64(z + t_1))); else tmp = Float64(a + Float64(t + fma(i, y, t_1))); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$3 = N[(N[(N[(N[(N[(t$95$2 + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$3, -5e+303], N[(N[(N[(t * t$95$2), $MachinePrecision] / t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$3, -5e+56], N[(a + N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(a + N[(t + N[(i * y + t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
t_2 := x \cdot \log y\\
t_3 := \left(\left(\left(\left(t\_2 + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_3 \leq -5 \cdot 10^{+303}:\\
\;\;\;\;\frac{t \cdot t\_2}{t} + y \cdot i\\
\mathbf{elif}\;t\_3 \leq -5 \cdot 10^{+56}:\\
\;\;\;\;a + \left(t + \left(z + t\_1\right)\right)\\
\mathbf{else}:\\
\;\;\;\;a + \left(t + \mathsf{fma}\left(i, y, t\_1\right)\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -4.9999999999999997e303Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower-log.f6434.7
Applied rewrites34.7%
if -4.9999999999999997e303 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -5.00000000000000024e56Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.2
Applied rewrites61.2%
if -5.00000000000000024e56 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
Taylor expanded in z around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.4
Applied rewrites84.4%
Taylor expanded in x around 0
lower-*.f64N/A
lower-log.f64N/A
lower--.f6469.2
Applied rewrites69.2%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* x (log y)))
(t_2 (+ (+ (+ (+ (+ t_1 z) t) a) (* (- b 0.5) (log c))) (* y i))))
(if (<= t_2 -5e+303)
(+ (/ (* t t_1) t) (* y i))
(if (<= t_2 1e+283)
(+ a (+ t (+ z (* (log c) (- b 0.5)))))
(+ (/ 1.0 (/ 1.0 a)) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double t_2 = ((((t_1 + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_2 <= -5e+303) {
tmp = ((t * t_1) / t) + (y * i);
} else if (t_2 <= 1e+283) {
tmp = a + (t + (z + (log(c) * (b - 0.5))));
} else {
tmp = (1.0 / (1.0 / a)) + (y * i);
}
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)
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) :: t_1
real(8) :: t_2
real(8) :: tmp
t_1 = x * log(y)
t_2 = ((((t_1 + z) + t) + a) + ((b - 0.5d0) * log(c))) + (y * i)
if (t_2 <= (-5d+303)) then
tmp = ((t * t_1) / t) + (y * i)
else if (t_2 <= 1d+283) then
tmp = a + (t + (z + (log(c) * (b - 0.5d0))))
else
tmp = (1.0d0 / (1.0d0 / a)) + (y * i)
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 t_1 = x * Math.log(y);
double t_2 = ((((t_1 + z) + t) + a) + ((b - 0.5) * Math.log(c))) + (y * i);
double tmp;
if (t_2 <= -5e+303) {
tmp = ((t * t_1) / t) + (y * i);
} else if (t_2 <= 1e+283) {
tmp = a + (t + (z + (Math.log(c) * (b - 0.5))));
} else {
tmp = (1.0 / (1.0 / a)) + (y * i);
}
return tmp;
}
def code(x, y, z, t, a, b, c, i): t_1 = x * math.log(y) t_2 = ((((t_1 + z) + t) + a) + ((b - 0.5) * math.log(c))) + (y * i) tmp = 0 if t_2 <= -5e+303: tmp = ((t * t_1) / t) + (y * i) elif t_2 <= 1e+283: tmp = a + (t + (z + (math.log(c) * (b - 0.5)))) else: tmp = (1.0 / (1.0 / a)) + (y * i) return tmp
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) t_2 = Float64(Float64(Float64(Float64(Float64(t_1 + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_2 <= -5e+303) tmp = Float64(Float64(Float64(t * t_1) / t) + Float64(y * i)); elseif (t_2 <= 1e+283) tmp = Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(Float64(1.0 / Float64(1.0 / a)) + Float64(y * i)); end return tmp end
function tmp_2 = code(x, y, z, t, a, b, c, i) t_1 = x * log(y); t_2 = ((((t_1 + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i); tmp = 0.0; if (t_2 <= -5e+303) tmp = ((t * t_1) / t) + (y * i); elseif (t_2 <= 1e+283) tmp = a + (t + (z + (log(c) * (b - 0.5)))); else tmp = (1.0 / (1.0 / a)) + (y * i); end tmp_2 = tmp; end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(t$95$1 + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+303], N[(N[(N[(t * t$95$1), $MachinePrecision] / t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+283], N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[(1.0 / a), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
t_2 := \left(\left(\left(\left(t\_1 + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{+303}:\\
\;\;\;\;\frac{t \cdot t\_1}{t} + y \cdot i\\
\mathbf{elif}\;t\_2 \leq 10^{+283}:\\
\;\;\;\;a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{a}} + y \cdot i\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -4.9999999999999997e303Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in x around inf
lower-*.f64N/A
lower-*.f64N/A
lower-log.f6434.7
Applied rewrites34.7%
if -4.9999999999999997e303 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < 9.99999999999999955e282Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.2
Applied rewrites61.2%
if 9.99999999999999955e282 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
lift-/.f64N/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
Applied rewrites69.7%
Taylor expanded in a around inf
lower-/.f6439.0
Applied rewrites39.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (<= t_1 -5e+303)
(fma (/ z t) t (* i y))
(if (<= t_1 1e+283)
(+ a (+ t (+ z (* (log c) (- b 0.5)))))
(+ (/ 1.0 (/ 1.0 a)) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_1 <= -5e+303) {
tmp = fma((z / t), t, (i * y));
} else if (t_1 <= 1e+283) {
tmp = a + (t + (z + (log(c) * (b - 0.5))));
} else {
tmp = (1.0 / (1.0 / a)) + (y * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_1 <= -5e+303) tmp = fma(Float64(z / t), t, Float64(i * y)); elseif (t_1 <= 1e+283) tmp = Float64(a + Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5))))); else tmp = Float64(Float64(1.0 / Float64(1.0 / a)) + Float64(y * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+303], N[(N[(z / t), $MachinePrecision] * t + N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, 1e+283], N[(a + N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[(1.0 / a), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+303}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, i \cdot y\right)\\
\mathbf{elif}\;t\_1 \leq 10^{+283}:\\
\;\;\;\;a + \left(t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{a}} + y \cdot i\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -4.9999999999999997e303Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in z around inf
lower-/.f6432.3
Applied rewrites32.3%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6432.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6432.3
Applied rewrites32.3%
if -4.9999999999999997e303 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < 9.99999999999999955e282Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.2
Applied rewrites61.2%
if 9.99999999999999955e282 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
lift-/.f64N/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
Applied rewrites69.7%
Taylor expanded in a around inf
lower-/.f6439.0
Applied rewrites39.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1 (* (log c) (- b 0.5)))
(t_2
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (<= t_2 -5e+303)
(fma (/ z t) t (* i y))
(if (<= t_2 -2e+14)
(+ t (+ z t_1))
(if (<= t_2 1e+283) (+ a (+ t t_1)) (+ (/ 1.0 (/ 1.0 a)) (* y i)))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = log(c) * (b - 0.5);
double t_2 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_2 <= -5e+303) {
tmp = fma((z / t), t, (i * y));
} else if (t_2 <= -2e+14) {
tmp = t + (z + t_1);
} else if (t_2 <= 1e+283) {
tmp = a + (t + t_1);
} else {
tmp = (1.0 / (1.0 / a)) + (y * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(log(c) * Float64(b - 0.5)) t_2 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_2 <= -5e+303) tmp = fma(Float64(z / t), t, Float64(i * y)); elseif (t_2 <= -2e+14) tmp = Float64(t + Float64(z + t_1)); elseif (t_2 <= 1e+283) tmp = Float64(a + Float64(t + t_1)); else tmp = Float64(Float64(1.0 / Float64(1.0 / a)) + Float64(y * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]}, Block[{t$95$2 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$2, -5e+303], N[(N[(z / t), $MachinePrecision] * t + N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, -2e+14], N[(t + N[(z + t$95$1), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$2, 1e+283], N[(a + N[(t + t$95$1), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[(1.0 / a), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \log c \cdot \left(b - 0.5\right)\\
t_2 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_2 \leq -5 \cdot 10^{+303}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, i \cdot y\right)\\
\mathbf{elif}\;t\_2 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;t + \left(z + t\_1\right)\\
\mathbf{elif}\;t\_2 \leq 10^{+283}:\\
\;\;\;\;a + \left(t + t\_1\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{a}} + y \cdot i\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -4.9999999999999997e303Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in z around inf
lower-/.f6432.3
Applied rewrites32.3%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6432.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6432.3
Applied rewrites32.3%
if -4.9999999999999997e303 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e14Initial program 99.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.5
Applied rewrites84.5%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.4
Applied rewrites61.4%
Taylor expanded in x around 0
lower-*.f64N/A
lower-log.f64N/A
lower--.f6446.5
Applied rewrites46.5%
if -2e14 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < 9.99999999999999955e282Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.2
Applied rewrites61.2%
Taylor expanded in z around 0
lower-+.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6446.4
Applied rewrites46.4%
if 9.99999999999999955e282 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
lift-/.f64N/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
Applied rewrites69.7%
Taylor expanded in a around inf
lower-/.f6439.0
Applied rewrites39.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (<= t_1 -5e+303)
(fma (/ z t) t (* i y))
(if (<= t_1 -2e+14)
(+ t (+ z (* (log c) (- b 0.5))))
(+ (/ 1.0 (/ 1.0 a)) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_1 <= -5e+303) {
tmp = fma((z / t), t, (i * y));
} else if (t_1 <= -2e+14) {
tmp = t + (z + (log(c) * (b - 0.5)));
} else {
tmp = (1.0 / (1.0 / a)) + (y * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_1 <= -5e+303) tmp = fma(Float64(z / t), t, Float64(i * y)); elseif (t_1 <= -2e+14) tmp = Float64(t + Float64(z + Float64(log(c) * Float64(b - 0.5)))); else tmp = Float64(Float64(1.0 / Float64(1.0 / a)) + Float64(y * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -5e+303], N[(N[(z / t), $MachinePrecision] * t + N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e+14], N[(t + N[(z + N[(N[Log[c], $MachinePrecision] * N[(b - 0.5), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[(1.0 / a), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_1 \leq -5 \cdot 10^{+303}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, i \cdot y\right)\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;t + \left(z + \log c \cdot \left(b - 0.5\right)\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{a}} + y \cdot i\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -4.9999999999999997e303Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in z around inf
lower-/.f6432.3
Applied rewrites32.3%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6432.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6432.3
Applied rewrites32.3%
if -4.9999999999999997e303 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e14Initial program 99.8%
Taylor expanded in a around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.5
Applied rewrites84.5%
Taylor expanded in y around 0
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-log.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6461.4
Applied rewrites61.4%
Taylor expanded in x around 0
lower-*.f64N/A
lower-log.f64N/A
lower--.f6446.5
Applied rewrites46.5%
if -2e14 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
lift-/.f64N/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
Applied rewrites69.7%
Taylor expanded in a around inf
lower-/.f6439.0
Applied rewrites39.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (<= t_1 -2e+242)
(fma (/ z t) t (* i y))
(if (<= t_1 -2e+14)
(+ (/ (* t z) t) (* y i))
(+ (/ 1.0 (/ 1.0 a)) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_1 <= -2e+242) {
tmp = fma((z / t), t, (i * y));
} else if (t_1 <= -2e+14) {
tmp = ((t * z) / t) + (y * i);
} else {
tmp = (1.0 / (1.0 / a)) + (y * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_1 <= -2e+242) tmp = fma(Float64(z / t), t, Float64(i * y)); elseif (t_1 <= -2e+14) tmp = Float64(Float64(Float64(t * z) / t) + Float64(y * i)); else tmp = Float64(Float64(1.0 / Float64(1.0 / a)) + Float64(y * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+242], N[(N[(z / t), $MachinePrecision] * t + N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e+14], N[(N[(N[(t * z), $MachinePrecision] / t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(1.0 / N[(1.0 / a), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+242}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, i \cdot y\right)\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\frac{t \cdot z}{t} + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{a}} + y \cdot i\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2.0000000000000001e242Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in z around inf
lower-/.f6432.3
Applied rewrites32.3%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6432.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6432.3
Applied rewrites32.3%
if -2.0000000000000001e242 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e14Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in z around inf
lower-*.f6434.3
Applied rewrites34.3%
if -2e14 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
lift-/.f64N/A
div-flipN/A
lower-unsound-/.f64N/A
lower-unsound-/.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
lift-fma.f64N/A
*-commutativeN/A
lower-fma.f6469.7
Applied rewrites69.7%
Taylor expanded in a around inf
lower-/.f6439.0
Applied rewrites39.0%
(FPCore (x y z t a b c i)
:precision binary64
(let* ((t_1
(+
(+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c)))
(* y i))))
(if (<= t_1 -2e+242)
(fma (/ z t) t (* i y))
(if (<= t_1 -2e+14)
(+ (/ (* t z) t) (* y i))
(+ (/ (* a t) t) (* y i))))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = (((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i);
double tmp;
if (t_1 <= -2e+242) {
tmp = fma((z / t), t, (i * y));
} else if (t_1 <= -2e+14) {
tmp = ((t * z) / t) + (y * i);
} else {
tmp = ((a * t) / t) + (y * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) tmp = 0.0 if (t_1 <= -2e+242) tmp = fma(Float64(z / t), t, Float64(i * y)); elseif (t_1 <= -2e+14) tmp = Float64(Float64(Float64(t * z) / t) + Float64(y * i)); else tmp = Float64(Float64(Float64(a * t) / t) + Float64(y * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$1, -2e+242], N[(N[(z / t), $MachinePrecision] * t + N[(i * y), $MachinePrecision]), $MachinePrecision], If[LessEqual[t$95$1, -2e+14], N[(N[(N[(t * z), $MachinePrecision] / t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * t), $MachinePrecision] / t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := \left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i\\
\mathbf{if}\;t\_1 \leq -2 \cdot 10^{+242}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, i \cdot y\right)\\
\mathbf{elif}\;t\_1 \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\frac{t \cdot z}{t} + y \cdot i\\
\mathbf{else}:\\
\;\;\;\;\frac{a \cdot t}{t} + y \cdot i\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2.0000000000000001e242Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in z around inf
lower-/.f6432.3
Applied rewrites32.3%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6432.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6432.3
Applied rewrites32.3%
if -2.0000000000000001e242 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e14Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in z around inf
lower-*.f6434.3
Applied rewrites34.3%
if -2e14 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in a around inf
lower-*.f6434.7
Applied rewrites34.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (<=
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i))
-2e+14)
(fma (/ z t) t (* i y))
(fma y i (/ (* a t) t))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i)) <= -2e+14) {
tmp = fma((z / t), t, (i * y));
} else {
tmp = fma(y, i, ((a * t) / t));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) <= -2e+14) tmp = fma(Float64(z / t), t, Float64(i * y)); else tmp = fma(y, i, Float64(Float64(a * t) / t)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], -2e+14], N[(N[(z / t), $MachinePrecision] * t + N[(i * y), $MachinePrecision]), $MachinePrecision], N[(y * i + N[(N[(a * t), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(y, i, \frac{a \cdot t}{t}\right)\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e14Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in z around inf
lower-/.f6432.3
Applied rewrites32.3%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6432.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6432.3
Applied rewrites32.3%
if -2e14 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in a around inf
lower-*.f6434.7
Applied rewrites34.7%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f6434.7
Applied rewrites34.7%
(FPCore (x y z t a b c i)
:precision binary64
(if (<=
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i))
-2e+14)
(fma (/ z t) t (* i y))
(+ (/ (* a t) t) (* y i))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (((((((x * log(y)) + z) + t) + a) + ((b - 0.5) * log(c))) + (y * i)) <= -2e+14) {
tmp = fma((z / t), t, (i * y));
} else {
tmp = ((a * t) / t) + (y * i);
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (Float64(Float64(Float64(Float64(Float64(Float64(x * log(y)) + z) + t) + a) + Float64(Float64(b - 0.5) * log(c))) + Float64(y * i)) <= -2e+14) tmp = fma(Float64(z / t), t, Float64(i * y)); else tmp = Float64(Float64(Float64(a * t) / t) + Float64(y * i)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[N[(N[(N[(N[(N[(N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision] + z), $MachinePrecision] + t), $MachinePrecision] + a), $MachinePrecision] + N[(N[(b - 0.5), $MachinePrecision] * N[Log[c], $MachinePrecision]), $MachinePrecision]), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision], -2e+14], N[(N[(z / t), $MachinePrecision] * t + N[(i * y), $MachinePrecision]), $MachinePrecision], N[(N[(N[(a * t), $MachinePrecision] / t), $MachinePrecision] + N[(y * i), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\left(\left(\left(\left(x \cdot \log y + z\right) + t\right) + a\right) + \left(b - 0.5\right) \cdot \log c\right) + y \cdot i \leq -2 \cdot 10^{+14}:\\
\;\;\;\;\mathsf{fma}\left(\frac{z}{t}, t, i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;\frac{a \cdot t}{t} + y \cdot i\\
\end{array}
\end{array}
if (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) < -2e14Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in z around inf
lower-/.f6432.3
Applied rewrites32.3%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6432.3
lift-*.f64N/A
*-commutativeN/A
lower-*.f6432.3
Applied rewrites32.3%
if -2e14 < (+.f64 (+.f64 (+.f64 (+.f64 (+.f64 (*.f64 x (log.f64 y)) z) t) a) (*.f64 (-.f64 b #s(literal 1/2 binary64)) (log.f64 c))) (*.f64 y i)) Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in a around inf
lower-*.f6434.7
Applied rewrites34.7%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (* x (log y)))) (if (<= x -5.8e+89) t_1 (if (<= x 9e+139) (fma y i (/ (* a t) t)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double tmp;
if (x <= -5.8e+89) {
tmp = t_1;
} else if (x <= 9e+139) {
tmp = fma(y, i, ((a * t) / t));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -5.8e+89) tmp = t_1; elseif (x <= 9e+139) tmp = fma(y, i, Float64(Float64(a * t) / t)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.8e+89], t$95$1, If[LessEqual[x, 9e+139], N[(y * i + N[(N[(a * t), $MachinePrecision] / t), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -5.8 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 9 \cdot 10^{+139}:\\
\;\;\;\;\mathsf{fma}\left(y, i, \frac{a \cdot t}{t}\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.80000000000000051e89 or 8.9999999999999999e139 < x Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6416.5
Applied rewrites16.5%
if -5.80000000000000051e89 < x < 8.9999999999999999e139Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
lift-*.f64N/A
lift-+.f64N/A
lift-/.f64N/A
add-to-fractionN/A
associate-*l/N/A
lower-/.f64N/A
Applied rewrites69.9%
Taylor expanded in a around inf
lower-*.f6434.7
Applied rewrites34.7%
lift-+.f64N/A
lift-*.f64N/A
*-commutativeN/A
+-commutativeN/A
*-commutativeN/A
lower-fma.f6434.7
Applied rewrites34.7%
(FPCore (x y z t a b c i) :precision binary64 (let* ((t_1 (* x (log y)))) (if (<= x -5.5e+89) t_1 (if (<= x 1.16e+114) (fma 1.0 t (* i y)) t_1))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double t_1 = x * log(y);
double tmp;
if (x <= -5.5e+89) {
tmp = t_1;
} else if (x <= 1.16e+114) {
tmp = fma(1.0, t, (i * y));
} else {
tmp = t_1;
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) t_1 = Float64(x * log(y)) tmp = 0.0 if (x <= -5.5e+89) tmp = t_1; elseif (x <= 1.16e+114) tmp = fma(1.0, t, Float64(i * y)); else tmp = t_1; end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := Block[{t$95$1 = N[(x * N[Log[y], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[x, -5.5e+89], t$95$1, If[LessEqual[x, 1.16e+114], N[(1.0 * t + N[(i * y), $MachinePrecision]), $MachinePrecision], t$95$1]]]
\begin{array}{l}
\\
\begin{array}{l}
t_1 := x \cdot \log y\\
\mathbf{if}\;x \leq -5.5 \cdot 10^{+89}:\\
\;\;\;\;t\_1\\
\mathbf{elif}\;x \leq 1.16 \cdot 10^{+114}:\\
\;\;\;\;\mathsf{fma}\left(1, t, i \cdot y\right)\\
\mathbf{else}:\\
\;\;\;\;t\_1\\
\end{array}
\end{array}
if x < -5.49999999999999976e89 or 1.15999999999999994e114 < x Initial program 99.8%
Taylor expanded in x around 0
lower-+.f64N/A
lower-+.f64N/A
lower-+.f64N/A
lower-fma.f64N/A
lower-*.f64N/A
lower-log.f64N/A
lower--.f6484.3
Applied rewrites84.3%
Taylor expanded in x around inf
lower-*.f64N/A
lower-log.f6416.5
Applied rewrites16.5%
if -5.49999999999999976e89 < x < 1.15999999999999994e114Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in t around inf
Applied rewrites38.8%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6438.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6438.8
Applied rewrites38.8%
(FPCore (x y z t a b c i) :precision binary64 (if (<= y 4.2e+56) (* b (log c)) (fma 1.0 t (* i y))))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
double tmp;
if (y <= 4.2e+56) {
tmp = b * log(c);
} else {
tmp = fma(1.0, t, (i * y));
}
return tmp;
}
function code(x, y, z, t, a, b, c, i) tmp = 0.0 if (y <= 4.2e+56) tmp = Float64(b * log(c)); else tmp = fma(1.0, t, Float64(i * y)); end return tmp end
code[x_, y_, z_, t_, a_, b_, c_, i_] := If[LessEqual[y, 4.2e+56], N[(b * N[Log[c], $MachinePrecision]), $MachinePrecision], N[(1.0 * t + N[(i * y), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;y \leq 4.2 \cdot 10^{+56}:\\
\;\;\;\;b \cdot \log c\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(1, t, i \cdot y\right)\\
\end{array}
\end{array}
if y < 4.20000000000000034e56Initial program 99.8%
Taylor expanded in b around inf
lower-*.f64N/A
lower-log.f6416.5
Applied rewrites16.5%
if 4.20000000000000034e56 < y Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in t around inf
Applied rewrites38.8%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6438.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6438.8
Applied rewrites38.8%
(FPCore (x y z t a b c i) :precision binary64 (fma 1.0 t (* i y)))
double code(double x, double y, double z, double t, double a, double b, double c, double i) {
return fma(1.0, t, (i * y));
}
function code(x, y, z, t, a, b, c, i) return fma(1.0, t, Float64(i * y)) end
code[x_, y_, z_, t_, a_, b_, c_, i_] := N[(1.0 * t + N[(i * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\mathsf{fma}\left(1, t, i \cdot y\right)
\end{array}
Initial program 99.8%
lift-+.f64N/A
lift-+.f64N/A
associate-+l+N/A
lift-+.f64N/A
+-commutativeN/A
associate-+l+N/A
sum-to-multN/A
lower-unsound-*.f64N/A
Applied rewrites73.4%
Taylor expanded in t around inf
Applied rewrites38.8%
lift-+.f64N/A
lift-*.f64N/A
lower-fma.f6438.8
lift-*.f64N/A
*-commutativeN/A
lower-*.f6438.8
Applied rewrites38.8%
herbie shell --seed 2025159
(FPCore (x y z t a b c i)
:name "Numeric.SpecFunctions:logBeta from math-functions-0.1.5.2, B"
:precision binary64
(+ (+ (+ (+ (+ (* x (log y)) z) t) a) (* (- b 0.5) (log c))) (* y i)))