
(FPCore (alpha u0) :precision binary32 (* (* (- alpha) alpha) (log (- 1.0 u0))))
float code(float alpha, float u0) {
return (-alpha * alpha) * logf((1.0f - u0));
}
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(4) function code(alpha, u0)
use fmin_fmax_functions
real(4), intent (in) :: alpha
real(4), intent (in) :: u0
code = (-alpha * alpha) * log((1.0e0 - u0))
end function
function code(alpha, u0) return Float32(Float32(Float32(-alpha) * alpha) * log(Float32(Float32(1.0) - u0))) end
function tmp = code(alpha, u0) tmp = (-alpha * alpha) * log((single(1.0) - u0)); end
\begin{array}{l}
\\
\left(\left(-\alpha\right) \cdot \alpha\right) \cdot \log \left(1 - u0\right)
\end{array}
Herbie found 6 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (alpha u0) :precision binary32 (* (* (- alpha) alpha) (log (- 1.0 u0))))
float code(float alpha, float u0) {
return (-alpha * alpha) * logf((1.0f - u0));
}
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(4) function code(alpha, u0)
use fmin_fmax_functions
real(4), intent (in) :: alpha
real(4), intent (in) :: u0
code = (-alpha * alpha) * log((1.0e0 - u0))
end function
function code(alpha, u0) return Float32(Float32(Float32(-alpha) * alpha) * log(Float32(Float32(1.0) - u0))) end
function tmp = code(alpha, u0) tmp = (-alpha * alpha) * log((single(1.0) - u0)); end
\begin{array}{l}
\\
\left(\left(-\alpha\right) \cdot \alpha\right) \cdot \log \left(1 - u0\right)
\end{array}
(FPCore (alpha u0) :precision binary32 (* (* (- alpha) alpha) (log1p (- u0))))
float code(float alpha, float u0) {
return (-alpha * alpha) * log1pf(-u0);
}
function code(alpha, u0) return Float32(Float32(Float32(-alpha) * alpha) * log1p(Float32(-u0))) end
\begin{array}{l}
\\
\left(\left(-\alpha\right) \cdot \alpha\right) \cdot \mathsf{log1p}\left(-u0\right)
\end{array}
Initial program 55.4%
lift-log.f32N/A
lift--.f32N/A
sub-flipN/A
lower-log1p.f32N/A
lower-neg.f3299.0
Applied rewrites99.0%
(FPCore (alpha u0)
:precision binary32
(let* ((t_0 (log (- 1.0 u0))))
(if (<= t_0 -0.004999999888241291)
(* (* (- alpha) alpha) t_0)
(* (* u0 (+ alpha (* 0.5 (* alpha u0)))) alpha))))
float code(float alpha, float u0) {
float t_0 = logf((1.0f - u0));
float tmp;
if (t_0 <= -0.004999999888241291f) {
tmp = (-alpha * alpha) * t_0;
} else {
tmp = (u0 * (alpha + (0.5f * (alpha * u0)))) * alpha;
}
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(4) function code(alpha, u0)
use fmin_fmax_functions
real(4), intent (in) :: alpha
real(4), intent (in) :: u0
real(4) :: t_0
real(4) :: tmp
t_0 = log((1.0e0 - u0))
if (t_0 <= (-0.004999999888241291e0)) then
tmp = (-alpha * alpha) * t_0
else
tmp = (u0 * (alpha + (0.5e0 * (alpha * u0)))) * alpha
end if
code = tmp
end function
function code(alpha, u0) t_0 = log(Float32(Float32(1.0) - u0)) tmp = Float32(0.0) if (t_0 <= Float32(-0.004999999888241291)) tmp = Float32(Float32(Float32(-alpha) * alpha) * t_0); else tmp = Float32(Float32(u0 * Float32(alpha + Float32(Float32(0.5) * Float32(alpha * u0)))) * alpha); end return tmp end
function tmp_2 = code(alpha, u0) t_0 = log((single(1.0) - u0)); tmp = single(0.0); if (t_0 <= single(-0.004999999888241291)) tmp = (-alpha * alpha) * t_0; else tmp = (u0 * (alpha + (single(0.5) * (alpha * u0)))) * alpha; end tmp_2 = tmp; end
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(1 - u0\right)\\
\mathbf{if}\;t\_0 \leq -0.004999999888241291:\\
\;\;\;\;\left(\left(-\alpha\right) \cdot \alpha\right) \cdot t\_0\\
\mathbf{else}:\\
\;\;\;\;\left(u0 \cdot \left(\alpha + 0.5 \cdot \left(\alpha \cdot u0\right)\right)\right) \cdot \alpha\\
\end{array}
\end{array}
if (log.f32 (-.f32 #s(literal 1 binary32) u0)) < -0.00499999989Initial program 55.4%
if -0.00499999989 < (log.f32 (-.f32 #s(literal 1 binary32) u0)) Initial program 55.4%
Taylor expanded in u0 around 0
lower-*.f3275.0
Applied rewrites75.0%
lift-*.f32N/A
*-commutativeN/A
lift-*.f32N/A
associate-*r*N/A
lower-*.f32N/A
lower-*.f3275.0
lift-*.f32N/A
mul-1-negN/A
lift-neg.f3275.0
Applied rewrites75.0%
Taylor expanded in u0 around 0
lower-*.f32N/A
lower-+.f32N/A
lower-*.f32N/A
lower-*.f3287.8
Applied rewrites87.8%
(FPCore (alpha u0)
:precision binary32
(let* ((t_0 (log (- 1.0 u0))))
(if (<= t_0 -0.004999999888241291)
(- (* alpha (* t_0 alpha)))
(* (* u0 (+ alpha (* 0.5 (* alpha u0)))) alpha))))
float code(float alpha, float u0) {
float t_0 = logf((1.0f - u0));
float tmp;
if (t_0 <= -0.004999999888241291f) {
tmp = -(alpha * (t_0 * alpha));
} else {
tmp = (u0 * (alpha + (0.5f * (alpha * u0)))) * alpha;
}
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(4) function code(alpha, u0)
use fmin_fmax_functions
real(4), intent (in) :: alpha
real(4), intent (in) :: u0
real(4) :: t_0
real(4) :: tmp
t_0 = log((1.0e0 - u0))
if (t_0 <= (-0.004999999888241291e0)) then
tmp = -(alpha * (t_0 * alpha))
else
tmp = (u0 * (alpha + (0.5e0 * (alpha * u0)))) * alpha
end if
code = tmp
end function
function code(alpha, u0) t_0 = log(Float32(Float32(1.0) - u0)) tmp = Float32(0.0) if (t_0 <= Float32(-0.004999999888241291)) tmp = Float32(-Float32(alpha * Float32(t_0 * alpha))); else tmp = Float32(Float32(u0 * Float32(alpha + Float32(Float32(0.5) * Float32(alpha * u0)))) * alpha); end return tmp end
function tmp_2 = code(alpha, u0) t_0 = log((single(1.0) - u0)); tmp = single(0.0); if (t_0 <= single(-0.004999999888241291)) tmp = -(alpha * (t_0 * alpha)); else tmp = (u0 * (alpha + (single(0.5) * (alpha * u0)))) * alpha; end tmp_2 = tmp; end
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \log \left(1 - u0\right)\\
\mathbf{if}\;t\_0 \leq -0.004999999888241291:\\
\;\;\;\;-\alpha \cdot \left(t\_0 \cdot \alpha\right)\\
\mathbf{else}:\\
\;\;\;\;\left(u0 \cdot \left(\alpha + 0.5 \cdot \left(\alpha \cdot u0\right)\right)\right) \cdot \alpha\\
\end{array}
\end{array}
if (log.f32 (-.f32 #s(literal 1 binary32) u0)) < -0.00499999989Initial program 55.4%
lift-*.f32N/A
lift-*.f32N/A
associate-*l*N/A
lift-neg.f32N/A
distribute-lft-neg-outN/A
lower-neg.f32N/A
lower-*.f32N/A
*-commutativeN/A
lower-*.f3255.4
Applied rewrites55.4%
if -0.00499999989 < (log.f32 (-.f32 #s(literal 1 binary32) u0)) Initial program 55.4%
Taylor expanded in u0 around 0
lower-*.f3275.0
Applied rewrites75.0%
lift-*.f32N/A
*-commutativeN/A
lift-*.f32N/A
associate-*r*N/A
lower-*.f32N/A
lower-*.f3275.0
lift-*.f32N/A
mul-1-negN/A
lift-neg.f3275.0
Applied rewrites75.0%
Taylor expanded in u0 around 0
lower-*.f32N/A
lower-+.f32N/A
lower-*.f32N/A
lower-*.f3287.8
Applied rewrites87.8%
(FPCore (alpha u0) :precision binary32 (* (* u0 (+ alpha (* 0.5 (* alpha u0)))) alpha))
float code(float alpha, float u0) {
return (u0 * (alpha + (0.5f * (alpha * u0)))) * alpha;
}
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(4) function code(alpha, u0)
use fmin_fmax_functions
real(4), intent (in) :: alpha
real(4), intent (in) :: u0
code = (u0 * (alpha + (0.5e0 * (alpha * u0)))) * alpha
end function
function code(alpha, u0) return Float32(Float32(u0 * Float32(alpha + Float32(Float32(0.5) * Float32(alpha * u0)))) * alpha) end
function tmp = code(alpha, u0) tmp = (u0 * (alpha + (single(0.5) * (alpha * u0)))) * alpha; end
\begin{array}{l}
\\
\left(u0 \cdot \left(\alpha + 0.5 \cdot \left(\alpha \cdot u0\right)\right)\right) \cdot \alpha
\end{array}
Initial program 55.4%
Taylor expanded in u0 around 0
lower-*.f3275.0
Applied rewrites75.0%
lift-*.f32N/A
*-commutativeN/A
lift-*.f32N/A
associate-*r*N/A
lower-*.f32N/A
lower-*.f3275.0
lift-*.f32N/A
mul-1-negN/A
lift-neg.f3275.0
Applied rewrites75.0%
Taylor expanded in u0 around 0
lower-*.f32N/A
lower-+.f32N/A
lower-*.f32N/A
lower-*.f3287.8
Applied rewrites87.8%
(FPCore (alpha u0) :precision binary32 (* (* (- alpha) alpha) (- u0)))
float code(float alpha, float u0) {
return (-alpha * alpha) * -u0;
}
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(4) function code(alpha, u0)
use fmin_fmax_functions
real(4), intent (in) :: alpha
real(4), intent (in) :: u0
code = (-alpha * alpha) * -u0
end function
function code(alpha, u0) return Float32(Float32(Float32(-alpha) * alpha) * Float32(-u0)) end
function tmp = code(alpha, u0) tmp = (-alpha * alpha) * -u0; end
\begin{array}{l}
\\
\left(\left(-\alpha\right) \cdot \alpha\right) \cdot \left(-u0\right)
\end{array}
Initial program 55.4%
Taylor expanded in u0 around 0
lower-*.f3275.0
Applied rewrites75.0%
lift-*.f32N/A
mul-1-negN/A
lift-neg.f3275.0
Applied rewrites75.0%
(FPCore (alpha u0) :precision binary32 (* (* alpha u0) alpha))
float code(float alpha, float u0) {
return (alpha * u0) * alpha;
}
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(4) function code(alpha, u0)
use fmin_fmax_functions
real(4), intent (in) :: alpha
real(4), intent (in) :: u0
code = (alpha * u0) * alpha
end function
function code(alpha, u0) return Float32(Float32(alpha * u0) * alpha) end
function tmp = code(alpha, u0) tmp = (alpha * u0) * alpha; end
\begin{array}{l}
\\
\left(\alpha \cdot u0\right) \cdot \alpha
\end{array}
Initial program 55.4%
Taylor expanded in u0 around 0
lower-*.f3275.0
Applied rewrites75.0%
lift-*.f32N/A
*-commutativeN/A
lift-*.f32N/A
associate-*r*N/A
lower-*.f32N/A
lower-*.f3275.0
lift-*.f32N/A
mul-1-negN/A
lift-neg.f3275.0
Applied rewrites75.0%
Taylor expanded in u0 around 0
lower-*.f3275.0
Applied rewrites75.0%
herbie shell --seed 2025140
(FPCore (alpha u0)
:name "Beckmann Distribution sample, tan2theta, alphax == alphay"
:precision binary32
:pre (and (and (<= 0.0001 alpha) (<= alpha 1.0)) (and (<= 2.328306437e-10 u0) (<= u0 1.0)))
(* (* (- alpha) alpha) (log (- 1.0 u0))))