
(FPCore (x y z) :precision binary64 (/ (* x y) (* (* z z) (+ z 1.0))))
double code(double x, double y, double z) {
return (x * y) / ((z * z) * (z + 1.0));
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * y) / ((z * z) * (z + 1.0d0))
end function
public static double code(double x, double y, double z) {
return (x * y) / ((z * z) * (z + 1.0));
}
def code(x, y, z): return (x * y) / ((z * z) * (z + 1.0))
function code(x, y, z) return Float64(Float64(x * y) / Float64(Float64(z * z) * Float64(z + 1.0))) end
function tmp = code(x, y, z) tmp = (x * y) / ((z * z) * (z + 1.0)); end
code[x_, y_, z_] := N[(N[(x * y), $MachinePrecision] / N[(N[(z * z), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y}{\left(z \cdot z\right) \cdot \left(z + 1\right)}
\end{array}
Herbie found 11 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (x y z) :precision binary64 (/ (* x y) (* (* z z) (+ z 1.0))))
double code(double x, double y, double z) {
return (x * y) / ((z * z) * (z + 1.0));
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = (x * y) / ((z * z) * (z + 1.0d0))
end function
public static double code(double x, double y, double z) {
return (x * y) / ((z * z) * (z + 1.0));
}
def code(x, y, z): return (x * y) / ((z * z) * (z + 1.0))
function code(x, y, z) return Float64(Float64(x * y) / Float64(Float64(z * z) * Float64(z + 1.0))) end
function tmp = code(x, y, z) tmp = (x * y) / ((z * z) * (z + 1.0)); end
code[x_, y_, z_] := N[(N[(x * y), $MachinePrecision] / N[(N[(z * z), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x \cdot y}{\left(z \cdot z\right) \cdot \left(z + 1\right)}
\end{array}
(FPCore (x y z) :precision binary64 (/ (* (/ y z) (/ x z)) (- z -1.0)))
double code(double x, double y, double z) {
return ((y / z) * (x / z)) / (z - -1.0);
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((y / z) * (x / z)) / (z - (-1.0d0))
end function
public static double code(double x, double y, double z) {
return ((y / z) * (x / z)) / (z - -1.0);
}
def code(x, y, z): return ((y / z) * (x / z)) / (z - -1.0)
function code(x, y, z) return Float64(Float64(Float64(y / z) * Float64(x / z)) / Float64(z - -1.0)) end
function tmp = code(x, y, z) tmp = ((y / z) * (x / z)) / (z - -1.0); end
code[x_, y_, z_] := N[(N[(N[(y / z), $MachinePrecision] * N[(x / z), $MachinePrecision]), $MachinePrecision] / N[(z - -1.0), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{y}{z} \cdot \frac{x}{z}}{z - -1}
\end{array}
Initial program 82.8%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
times-fracN/A
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6487.3
lift-+.f64N/A
add-flipN/A
lower--.f64N/A
metadata-eval87.3
Applied rewrites87.3%
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
associate-/l*N/A
lift-*.f64N/A
times-fracN/A
lift-/.f64N/A
lift-/.f64N/A
lower-*.f6496.8
Applied rewrites96.8%
(FPCore (x y z) :precision binary64 (* (/ (/ x z) (- z -1.0)) (/ y z)))
double code(double x, double y, double z) {
return ((x / z) / (z - -1.0)) * (y / z);
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x / z) / (z - (-1.0d0))) * (y / z)
end function
public static double code(double x, double y, double z) {
return ((x / z) / (z - -1.0)) * (y / z);
}
def code(x, y, z): return ((x / z) / (z - -1.0)) * (y / z)
function code(x, y, z) return Float64(Float64(Float64(x / z) / Float64(z - -1.0)) * Float64(y / z)) end
function tmp = code(x, y, z) tmp = ((x / z) / (z - -1.0)) * (y / z); end
code[x_, y_, z_] := N[(N[(N[(x / z), $MachinePrecision] / N[(z - -1.0), $MachinePrecision]), $MachinePrecision] * N[(y / z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{z}}{z - -1} \cdot \frac{y}{z}
\end{array}
Initial program 82.8%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lift-+.f64N/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f6494.2
Applied rewrites94.2%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
lift-fma.f64N/A
distribute-lft1-inN/A
add-flipN/A
metadata-evalN/A
lift--.f64N/A
times-fracN/A
lift-/.f64N/A
lower-*.f64N/A
lower-/.f6496.2
Applied rewrites96.2%
(FPCore (x y z) :precision binary64 (/ (* (/ x z) y) (fma z z z)))
double code(double x, double y, double z) {
return ((x / z) * y) / fma(z, z, z);
}
function code(x, y, z) return Float64(Float64(Float64(x / z) * y) / fma(z, z, z)) end
code[x_, y_, z_] := N[(N[(N[(x / z), $MachinePrecision] * y), $MachinePrecision] / N[(z * z + z), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x}{z} \cdot y}{\mathsf{fma}\left(z, z, z\right)}
\end{array}
Initial program 82.8%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
times-fracN/A
associate-*r/N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6487.3
lift-+.f64N/A
add-flipN/A
lower--.f64N/A
metadata-eval87.3
Applied rewrites87.3%
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
associate-/l*N/A
lift-*.f64N/A
times-fracN/A
lift-/.f64N/A
lift-/.f64N/A
lower-*.f6496.8
Applied rewrites96.8%
lift-/.f64N/A
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
lift-*.f64N/A
associate-/l/N/A
*-commutativeN/A
lift--.f64N/A
metadata-evalN/A
add-flipN/A
distribute-lft1-inN/A
lift-fma.f64N/A
lower-/.f6494.2
lift-*.f64N/A
lift-/.f64N/A
associate-*l/N/A
associate-/l*N/A
lift-/.f64N/A
*-commutativeN/A
lower-*.f6494.2
Applied rewrites94.2%
(FPCore (x y z) :precision binary64 (* (/ x z) (/ y (fma z z z))))
double code(double x, double y, double z) {
return (x / z) * (y / fma(z, z, z));
}
function code(x, y, z) return Float64(Float64(x / z) * Float64(y / fma(z, z, z))) end
code[x_, y_, z_] := N[(N[(x / z), $MachinePrecision] * N[(y / N[(z * z + z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{x}{z} \cdot \frac{y}{\mathsf{fma}\left(z, z, z\right)}
\end{array}
Initial program 82.8%
lift-/.f64N/A
lift-*.f64N/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
times-fracN/A
lower-*.f64N/A
lower-/.f64N/A
lower-/.f64N/A
lift-+.f64N/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f6494.2
Applied rewrites94.2%
(FPCore (x y z) :precision binary64 (if (<= (/ (* x y) (* (* z z) (+ z 1.0))) 2e+66) (* (/ y (* (fma z z z) z)) x) (/ y (* z (/ (* 1.0 z) x)))))
double code(double x, double y, double z) {
double tmp;
if (((x * y) / ((z * z) * (z + 1.0))) <= 2e+66) {
tmp = (y / (fma(z, z, z) * z)) * x;
} else {
tmp = y / (z * ((1.0 * z) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(x * y) / Float64(Float64(z * z) * Float64(z + 1.0))) <= 2e+66) tmp = Float64(Float64(y / Float64(fma(z, z, z) * z)) * x); else tmp = Float64(y / Float64(z * Float64(Float64(1.0 * z) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(x * y), $MachinePrecision] / N[(N[(z * z), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 2e+66], N[(N[(y / N[(N[(z * z + z), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision] * x), $MachinePrecision], N[(y / N[(z * N[(N[(1.0 * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x \cdot y}{\left(z \cdot z\right) \cdot \left(z + 1\right)} \leq 2 \cdot 10^{+66}:\\
\;\;\;\;\frac{y}{\mathsf{fma}\left(z, z, z\right) \cdot z} \cdot x\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z \cdot \frac{1 \cdot z}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 x y) (*.f64 (*.f64 z z) (+.f64 z #s(literal 1 binary64)))) < 1.99999999999999989e66Initial program 82.8%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6484.4
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f64N/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f6484.4
Applied rewrites84.4%
if 1.99999999999999989e66 < (/.f64 (*.f64 x y) (*.f64 (*.f64 z z) (+.f64 z #s(literal 1 binary64)))) Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6472.3
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.3
Applied rewrites72.3%
lift-*.f64N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lift-/.f64N/A
associate-/r/N/A
lift-/.f64N/A
lift-/.f64N/A
associate-/l/N/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-/.f64N/A
associate-/l*N/A
lift-*.f64N/A
lower-*.f64N/A
lower-/.f6475.3
Applied rewrites75.3%
(FPCore (x y z) :precision binary64 (if (<= (/ (* x y) (* (* z z) (+ z 1.0))) 1e+246) (* y (/ x (* (fma z z z) z))) (/ y (* z (/ (* 1.0 z) x)))))
double code(double x, double y, double z) {
double tmp;
if (((x * y) / ((z * z) * (z + 1.0))) <= 1e+246) {
tmp = y * (x / (fma(z, z, z) * z));
} else {
tmp = y / (z * ((1.0 * z) / x));
}
return tmp;
}
function code(x, y, z) tmp = 0.0 if (Float64(Float64(x * y) / Float64(Float64(z * z) * Float64(z + 1.0))) <= 1e+246) tmp = Float64(y * Float64(x / Float64(fma(z, z, z) * z))); else tmp = Float64(y / Float64(z * Float64(Float64(1.0 * z) / x))); end return tmp end
code[x_, y_, z_] := If[LessEqual[N[(N[(x * y), $MachinePrecision] / N[(N[(z * z), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1e+246], N[(y * N[(x / N[(N[(z * z + z), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y / N[(z * N[(N[(1.0 * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x \cdot y}{\left(z \cdot z\right) \cdot \left(z + 1\right)} \leq 10^{+246}:\\
\;\;\;\;y \cdot \frac{x}{\mathsf{fma}\left(z, z, z\right) \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{y}{z \cdot \frac{1 \cdot z}{x}}\\
\end{array}
\end{array}
if (/.f64 (*.f64 x y) (*.f64 (*.f64 z z) (+.f64 z #s(literal 1 binary64)))) < 1.00000000000000007e246Initial program 82.8%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6484.5
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
lift-+.f64N/A
distribute-lft-inN/A
*-rgt-identityN/A
lower-fma.f6484.5
Applied rewrites84.5%
if 1.00000000000000007e246 < (/.f64 (*.f64 x y) (*.f64 (*.f64 z z) (+.f64 z #s(literal 1 binary64)))) Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6472.3
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.3
Applied rewrites72.3%
lift-*.f64N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lift-/.f64N/A
associate-/r/N/A
lift-/.f64N/A
lift-/.f64N/A
associate-/l/N/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-/.f64N/A
associate-/l*N/A
lift-*.f64N/A
lower-*.f64N/A
lower-/.f6475.3
Applied rewrites75.3%
(FPCore (x y z) :precision binary64 (/ y (* z (/ (* 1.0 z) x))))
double code(double x, double y, double z) {
return y / (z * ((1.0 * z) / x));
}
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)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = y / (z * ((1.0d0 * z) / x))
end function
public static double code(double x, double y, double z) {
return y / (z * ((1.0 * z) / x));
}
def code(x, y, z): return y / (z * ((1.0 * z) / x))
function code(x, y, z) return Float64(y / Float64(z * Float64(Float64(1.0 * z) / x))) end
function tmp = code(x, y, z) tmp = y / (z * ((1.0 * z) / x)); end
code[x_, y_, z_] := N[(y / N[(z * N[(N[(1.0 * z), $MachinePrecision] / x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{y}{z \cdot \frac{1 \cdot z}{x}}
\end{array}
Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
associate-/l*N/A
*-commutativeN/A
lower-*.f64N/A
lower-/.f6472.3
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.3
Applied rewrites72.3%
lift-*.f64N/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
lift-/.f64N/A
associate-/r/N/A
lift-/.f64N/A
lift-/.f64N/A
associate-/l/N/A
lower-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-*l*N/A
lift-/.f64N/A
associate-/l*N/A
lift-*.f64N/A
lower-*.f64N/A
lower-/.f6475.3
Applied rewrites75.3%
(FPCore (x y z) :precision binary64 (if (<= (* x y) 5e-66) (* (/ y z) (/ x (* 1.0 z))) (* y (/ x (* (* 1.0 z) z)))))
double code(double x, double y, double z) {
double tmp;
if ((x * y) <= 5e-66) {
tmp = (y / z) * (x / (1.0 * z));
} else {
tmp = y * (x / ((1.0 * z) * z));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x * y) <= 5d-66) then
tmp = (y / z) * (x / (1.0d0 * z))
else
tmp = y * (x / ((1.0d0 * z) * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x * y) <= 5e-66) {
tmp = (y / z) * (x / (1.0 * z));
} else {
tmp = y * (x / ((1.0 * z) * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x * y) <= 5e-66: tmp = (y / z) * (x / (1.0 * z)) else: tmp = y * (x / ((1.0 * z) * z)) return tmp
function code(x, y, z) tmp = 0.0 if (Float64(x * y) <= 5e-66) tmp = Float64(Float64(y / z) * Float64(x / Float64(1.0 * z))); else tmp = Float64(y * Float64(x / Float64(Float64(1.0 * z) * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x * y) <= 5e-66) tmp = (y / z) * (x / (1.0 * z)); else tmp = y * (x / ((1.0 * z) * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[N[(x * y), $MachinePrecision], 5e-66], N[(N[(y / z), $MachinePrecision] * N[(x / N[(1.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(y * N[(x / N[(N[(1.0 * z), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq 5 \cdot 10^{-66}:\\
\;\;\;\;\frac{y}{z} \cdot \frac{x}{1 \cdot z}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{\left(1 \cdot z\right) \cdot z}\\
\end{array}
\end{array}
if (*.f64 x y) < 4.99999999999999962e-66Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
times-fracN/A
lift-/.f64N/A
lower-*.f64N/A
lower-/.f64N/A
*-commutativeN/A
lower-*.f6474.7
Applied rewrites74.7%
if 4.99999999999999962e-66 < (*.f64 x y) Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
(FPCore (x y z) :precision binary64 (if (<= (* x y) 5e-323) (* x (/ (/ y z) (* 1.0 z))) (if (<= (* x y) 1e-51) (/ (/ (* x y) z) z) (* y (/ x (* (* 1.0 z) z))))))
double code(double x, double y, double z) {
double tmp;
if ((x * y) <= 5e-323) {
tmp = x * ((y / z) / (1.0 * z));
} else if ((x * y) <= 1e-51) {
tmp = ((x * y) / z) / z;
} else {
tmp = y * (x / ((1.0 * z) * z));
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if ((x * y) <= 5d-323) then
tmp = x * ((y / z) / (1.0d0 * z))
else if ((x * y) <= 1d-51) then
tmp = ((x * y) / z) / z
else
tmp = y * (x / ((1.0d0 * z) * z))
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if ((x * y) <= 5e-323) {
tmp = x * ((y / z) / (1.0 * z));
} else if ((x * y) <= 1e-51) {
tmp = ((x * y) / z) / z;
} else {
tmp = y * (x / ((1.0 * z) * z));
}
return tmp;
}
def code(x, y, z): tmp = 0 if (x * y) <= 5e-323: tmp = x * ((y / z) / (1.0 * z)) elif (x * y) <= 1e-51: tmp = ((x * y) / z) / z else: tmp = y * (x / ((1.0 * z) * z)) return tmp
function code(x, y, z) tmp = 0.0 if (Float64(x * y) <= 5e-323) tmp = Float64(x * Float64(Float64(y / z) / Float64(1.0 * z))); elseif (Float64(x * y) <= 1e-51) tmp = Float64(Float64(Float64(x * y) / z) / z); else tmp = Float64(y * Float64(x / Float64(Float64(1.0 * z) * z))); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if ((x * y) <= 5e-323) tmp = x * ((y / z) / (1.0 * z)); elseif ((x * y) <= 1e-51) tmp = ((x * y) / z) / z; else tmp = y * (x / ((1.0 * z) * z)); end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[N[(x * y), $MachinePrecision], 5e-323], N[(x * N[(N[(y / z), $MachinePrecision] / N[(1.0 * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], If[LessEqual[N[(x * y), $MachinePrecision], 1e-51], N[(N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision] / z), $MachinePrecision], N[(y * N[(x / N[(N[(1.0 * z), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;x \cdot y \leq 5 \cdot 10^{-323}:\\
\;\;\;\;x \cdot \frac{\frac{y}{z}}{1 \cdot z}\\
\mathbf{elif}\;x \cdot y \leq 10^{-51}:\\
\;\;\;\;\frac{\frac{x \cdot y}{z}}{z}\\
\mathbf{else}:\\
\;\;\;\;y \cdot \frac{x}{\left(1 \cdot z\right) \cdot z}\\
\end{array}
\end{array}
if (*.f64 x y) < 4.94066e-323Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
lift-*.f64N/A
lift-/.f64N/A
associate-*r/N/A
lift-*.f64N/A
*-commutativeN/A
frac-timesN/A
lift-/.f64N/A
associate-/l*N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6473.6
Applied rewrites73.6%
if 4.94066e-323 < (*.f64 x y) < 1e-51Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
associate-*l/N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6474.6
Applied rewrites74.6%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6470.8
Applied rewrites70.8%
if 1e-51 < (*.f64 x y) Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
(FPCore (x y z) :precision binary64 (if (<= (/ (* x y) (* (* z z) (+ z 1.0))) 5000.0) (* y (/ x (* (* 1.0 z) z))) (/ (/ (* x y) z) z)))
double code(double x, double y, double z) {
double tmp;
if (((x * y) / ((z * z) * (z + 1.0))) <= 5000.0) {
tmp = y * (x / ((1.0 * z) * z));
} else {
tmp = ((x * y) / z) / z;
}
return tmp;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
real(8) :: tmp
if (((x * y) / ((z * z) * (z + 1.0d0))) <= 5000.0d0) then
tmp = y * (x / ((1.0d0 * z) * z))
else
tmp = ((x * y) / z) / z
end if
code = tmp
end function
public static double code(double x, double y, double z) {
double tmp;
if (((x * y) / ((z * z) * (z + 1.0))) <= 5000.0) {
tmp = y * (x / ((1.0 * z) * z));
} else {
tmp = ((x * y) / z) / z;
}
return tmp;
}
def code(x, y, z): tmp = 0 if ((x * y) / ((z * z) * (z + 1.0))) <= 5000.0: tmp = y * (x / ((1.0 * z) * z)) else: tmp = ((x * y) / z) / z return tmp
function code(x, y, z) tmp = 0.0 if (Float64(Float64(x * y) / Float64(Float64(z * z) * Float64(z + 1.0))) <= 5000.0) tmp = Float64(y * Float64(x / Float64(Float64(1.0 * z) * z))); else tmp = Float64(Float64(Float64(x * y) / z) / z); end return tmp end
function tmp_2 = code(x, y, z) tmp = 0.0; if (((x * y) / ((z * z) * (z + 1.0))) <= 5000.0) tmp = y * (x / ((1.0 * z) * z)); else tmp = ((x * y) / z) / z; end tmp_2 = tmp; end
code[x_, y_, z_] := If[LessEqual[N[(N[(x * y), $MachinePrecision] / N[(N[(z * z), $MachinePrecision] * N[(z + 1.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 5000.0], N[(y * N[(x / N[(N[(1.0 * z), $MachinePrecision] * z), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision] / z), $MachinePrecision]]
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{x \cdot y}{\left(z \cdot z\right) \cdot \left(z + 1\right)} \leq 5000:\\
\;\;\;\;y \cdot \frac{x}{\left(1 \cdot z\right) \cdot z}\\
\mathbf{else}:\\
\;\;\;\;\frac{\frac{x \cdot y}{z}}{z}\\
\end{array}
\end{array}
if (/.f64 (*.f64 x y) (*.f64 (*.f64 z z) (+.f64 z #s(literal 1 binary64)))) < 5e3Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
if 5e3 < (/.f64 (*.f64 x y) (*.f64 (*.f64 z z) (+.f64 z #s(literal 1 binary64)))) Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
associate-*l/N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6474.6
Applied rewrites74.6%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6470.8
Applied rewrites70.8%
(FPCore (x y z) :precision binary64 (/ (/ (* x y) z) z))
double code(double x, double y, double z) {
return ((x * y) / z) / z;
}
module fmin_fmax_functions
implicit none
private
public fmax
public fmin
interface fmax
module procedure fmax88
module procedure fmax44
module procedure fmax84
module procedure fmax48
end interface
interface fmin
module procedure fmin88
module procedure fmin44
module procedure fmin84
module procedure fmin48
end interface
contains
real(8) function fmax88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(4) function fmax44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, max(x, y), y /= y), x /= x)
end function
real(8) function fmax84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, max(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmax48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), max(dble(x), y), y /= y), x /= x)
end function
real(8) function fmin88(x, y) result (res)
real(8), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(4) function fmin44(x, y) result (res)
real(4), intent (in) :: x
real(4), intent (in) :: y
res = merge(y, merge(x, min(x, y), y /= y), x /= x)
end function
real(8) function fmin84(x, y) result(res)
real(8), intent (in) :: x
real(4), intent (in) :: y
res = merge(dble(y), merge(x, min(x, dble(y)), y /= y), x /= x)
end function
real(8) function fmin48(x, y) result(res)
real(4), intent (in) :: x
real(8), intent (in) :: y
res = merge(y, merge(dble(x), min(dble(x), y), y /= y), x /= x)
end function
end module
real(8) function code(x, y, z)
use fmin_fmax_functions
real(8), intent (in) :: x
real(8), intent (in) :: y
real(8), intent (in) :: z
code = ((x * y) / z) / z
end function
public static double code(double x, double y, double z) {
return ((x * y) / z) / z;
}
def code(x, y, z): return ((x * y) / z) / z
function code(x, y, z) return Float64(Float64(Float64(x * y) / z) / z) end
function tmp = code(x, y, z) tmp = ((x * y) / z) / z; end
code[x_, y_, z_] := N[(N[(N[(x * y), $MachinePrecision] / z), $MachinePrecision] / z), $MachinePrecision]
\begin{array}{l}
\\
\frac{\frac{x \cdot y}{z}}{z}
\end{array}
Initial program 82.8%
Taylor expanded in z around 0
Applied rewrites70.2%
lift-/.f64N/A
lift-*.f64N/A
*-commutativeN/A
associate-/l*N/A
lower-*.f64N/A
lower-/.f6472.7
lift-*.f64N/A
lift-*.f64N/A
associate-*l*N/A
*-commutativeN/A
lower-*.f64N/A
*-commutativeN/A
lower-*.f6472.7
Applied rewrites72.7%
lift-*.f64N/A
*-commutativeN/A
lift-/.f64N/A
lift-*.f64N/A
associate-/r*N/A
associate-*l/N/A
lower-/.f64N/A
lower-*.f64N/A
lower-/.f6474.6
Applied rewrites74.6%
Taylor expanded in z around 0
lower-/.f64N/A
lower-*.f6470.8
Applied rewrites70.8%
herbie shell --seed 2025142
(FPCore (x y z)
:name "Statistics.Distribution.Beta:$cvariance from math-functions-0.1.5.2"
:precision binary64
(/ (* x y) (* (* z z) (+ z 1.0))))