
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (/ (- (log (- 1.0 u0))) (+ (/ cos2phi (* alphax alphax)) (/ sin2phi (* alphay alphay)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return -logf((1.0f - u0)) / ((cos2phi / (alphax * alphax)) + (sin2phi / (alphay * alphay)));
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
code = -log((1.0e0 - u0)) / ((cos2phi / (alphax * alphax)) + (sin2phi / (alphay * alphay)))
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(Float32(-log(Float32(Float32(1.0) - u0))) / Float32(Float32(cos2phi / Float32(alphax * alphax)) + Float32(sin2phi / Float32(alphay * alphay)))) end
function tmp = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = -log((single(1.0) - u0)) / ((cos2phi / (alphax * alphax)) + (sin2phi / (alphay * alphay))); end
\begin{array}{l}
\\
\frac{-\log \left(1 - u0\right)}{\frac{cos2phi}{alphax \cdot alphax} + \frac{sin2phi}{alphay \cdot alphay}}
\end{array}
Sampling outcomes in binary32 precision:
Herbie found 16 alternatives:
| Alternative | Accuracy | Speedup |
|---|
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (/ (- (log (- 1.0 u0))) (+ (/ cos2phi (* alphax alphax)) (/ sin2phi (* alphay alphay)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return -logf((1.0f - u0)) / ((cos2phi / (alphax * alphax)) + (sin2phi / (alphay * alphay)));
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
code = -log((1.0e0 - u0)) / ((cos2phi / (alphax * alphax)) + (sin2phi / (alphay * alphay)))
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(Float32(-log(Float32(Float32(1.0) - u0))) / Float32(Float32(cos2phi / Float32(alphax * alphax)) + Float32(sin2phi / Float32(alphay * alphay)))) end
function tmp = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = -log((single(1.0) - u0)) / ((cos2phi / (alphax * alphax)) + (sin2phi / (alphay * alphay))); end
\begin{array}{l}
\\
\frac{-\log \left(1 - u0\right)}{\frac{cos2phi}{alphax \cdot alphax} + \frac{sin2phi}{alphay \cdot alphay}}
\end{array}
(FPCore (alphax alphay u0 cos2phi sin2phi)
:precision binary32
(cast
(!
:precision
binary64
(/
(- (log1p (- u0)))
(+ (/ cos2phi (* alphax alphax)) (/ sin2phi (* alphay alphay)))))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
double tmp = -log1p(-((double) u0)) / ((((double) cos2phi) / (((double) alphax) * ((double) alphax))) + (((double) sin2phi) / (((double) alphay) * ((double) alphay))));
return (float) tmp;
}
function code(alphax, alphay, u0, cos2phi, sin2phi) tmp = Float64(Float64(-log1p(Float64(-Float64(u0)))) / Float64(Float64(Float64(cos2phi) / Float64(Float64(alphax) * Float64(alphax))) + Float64(Float64(sin2phi) / Float64(Float64(alphay) * Float64(alphay))))) return Float32(tmp) end
\begin{array}{l}
\\
\langle \left( \frac{-\mathsf{log1p}\left(-u0\right)}{\frac{cos2phi}{alphax \cdot alphax} + \frac{sin2phi}{alphay \cdot alphay}} \right)_{\text{binary64}} \rangle_{\text{binary32}}
\end{array}
Initial program 100.0%
Final simplification100.0%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (/ (* (* alphax alphay) (log1p (- u0))) (- (/ (* alphax (- sin2phi)) alphay) (/ (* cos2phi alphay) alphax))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return ((alphax * alphay) * log1pf(-u0)) / (((alphax * -sin2phi) / alphay) - ((cos2phi * alphay) / alphax));
}
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(Float32(Float32(alphax * alphay) * log1p(Float32(-u0))) / Float32(Float32(Float32(alphax * Float32(-sin2phi)) / alphay) - Float32(Float32(cos2phi * alphay) / alphax))) end
\begin{array}{l}
\\
\frac{\left(alphax \cdot alphay\right) \cdot \mathsf{log1p}\left(-u0\right)}{\frac{alphax \cdot \left(-sin2phi\right)}{alphay} - \frac{cos2phi \cdot alphay}{alphax}}
\end{array}
Initial program 57.5%
sub-neg57.5%
log1p-def98.5%
Simplified98.5%
clear-num98.5%
inv-pow98.5%
sqr-pow98.3%
associate-/l*98.4%
frac-2neg98.4%
distribute-frac-neg98.4%
distribute-neg-frac98.4%
div-inv98.4%
clear-num98.3%
distribute-rgt-neg-in98.3%
distribute-neg-frac98.3%
frac-2neg98.3%
metadata-eval98.3%
associate-/l*98.4%
frac-2neg98.4%
distribute-frac-neg98.4%
distribute-neg-frac98.4%
div-inv98.4%
clear-num98.4%
distribute-rgt-neg-in98.4%
distribute-neg-frac98.4%
frac-2neg98.4%
Applied egg-rr98.4%
pow-sqr98.5%
metadata-eval98.5%
unpow-198.5%
Simplified98.5%
+-commutative98.5%
associate-/r*98.5%
associate-/l/98.5%
clear-num98.5%
frac-add98.3%
associate-/r/98.5%
*-commutative98.5%
*-commutative98.5%
frac-2neg98.5%
remove-double-neg98.5%
*-commutative98.5%
fma-def98.4%
associate-*r/98.5%
*-commutative98.5%
associate-/l*98.5%
Applied egg-rr98.5%
associate-*r/98.6%
associate-/r/98.5%
*-commutative98.5%
Simplified98.5%
Taylor expanded in alphax around 0 98.6%
Final simplification98.6%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (/ (log1p (- u0)) (- (/ -1.0 (* alphax (/ alphax cos2phi))) (/ sin2phi (* alphay alphay)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return log1pf(-u0) / ((-1.0f / (alphax * (alphax / cos2phi))) - (sin2phi / (alphay * alphay)));
}
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(log1p(Float32(-u0)) / Float32(Float32(Float32(-1.0) / Float32(alphax * Float32(alphax / cos2phi))) - Float32(sin2phi / Float32(alphay * alphay)))) end
\begin{array}{l}
\\
\frac{\mathsf{log1p}\left(-u0\right)}{\frac{-1}{alphax \cdot \frac{alphax}{cos2phi}} - \frac{sin2phi}{alphay \cdot alphay}}
\end{array}
Initial program 57.5%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.5%
distribute-neg-frac98.5%
metadata-eval98.5%
Applied egg-rr98.5%
Final simplification98.5%
(FPCore (alphax alphay u0 cos2phi sin2phi)
:precision binary32
(let* ((t_0 (/ sin2phi (* alphay alphay)))
(t_1 (- (/ (/ cos2phi alphax) (- alphax)) t_0)))
(if (<= t_0 200.0)
(- (* -0.5 (/ u0 (/ t_1 u0))) (/ u0 t_1))
(* (log1p (- u0)) (* alphay (/ alphay (- sin2phi)))))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float t_0 = sin2phi / (alphay * alphay);
float t_1 = ((cos2phi / alphax) / -alphax) - t_0;
float tmp;
if (t_0 <= 200.0f) {
tmp = (-0.5f * (u0 / (t_1 / u0))) - (u0 / t_1);
} else {
tmp = log1pf(-u0) * (alphay * (alphay / -sin2phi));
}
return tmp;
}
function code(alphax, alphay, u0, cos2phi, sin2phi) t_0 = Float32(sin2phi / Float32(alphay * alphay)) t_1 = Float32(Float32(Float32(cos2phi / alphax) / Float32(-alphax)) - t_0) tmp = Float32(0.0) if (t_0 <= Float32(200.0)) tmp = Float32(Float32(Float32(-0.5) * Float32(u0 / Float32(t_1 / u0))) - Float32(u0 / t_1)); else tmp = Float32(log1p(Float32(-u0)) * Float32(alphay * Float32(alphay / Float32(-sin2phi)))); end return tmp end
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{sin2phi}{alphay \cdot alphay}\\
t_1 := \frac{\frac{cos2phi}{alphax}}{-alphax} - t_0\\
\mathbf{if}\;t_0 \leq 200:\\
\;\;\;\;-0.5 \cdot \frac{u0}{\frac{t_1}{u0}} - \frac{u0}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{log1p}\left(-u0\right) \cdot \left(alphay \cdot \frac{alphay}{-sin2phi}\right)\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 200Initial program 50.3%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.3%
distribute-lft-neg-in98.3%
remove-double-neg98.3%
distribute-rgt-neg-in98.3%
Applied egg-rr98.3%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.6%
distribute-neg-frac98.6%
metadata-eval98.6%
Applied egg-rr98.6%
Taylor expanded in u0 around 0 90.0%
+-commutative90.0%
mul-1-neg90.0%
unsub-neg90.0%
Simplified90.1%
if 200 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 64.8%
Simplified98.4%
associate-/l/98.4%
distribute-frac-neg98.4%
frac-2neg98.4%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.4%
frac-2neg98.4%
distribute-rgt-neg-out98.4%
remove-double-neg98.4%
distribute-frac-neg98.4%
clear-num98.4%
associate-*r/98.4%
distribute-neg-frac98.4%
metadata-eval98.4%
Applied egg-rr98.4%
Taylor expanded in alphax around inf 65.4%
mul-1-neg65.4%
unpow265.4%
associate-/l*64.6%
distribute-neg-frac64.6%
distribute-rgt-neg-out64.6%
sub-neg64.6%
log1p-def97.0%
Simplified97.0%
associate-/r/98.5%
distribute-rgt-neg-out98.5%
distribute-frac-neg98.5%
associate-*r/98.4%
distribute-rgt-neg-in98.4%
distribute-frac-neg98.4%
remove-double-neg98.4%
frac-2neg98.4%
Applied egg-rr98.4%
Final simplification94.2%
(FPCore (alphax alphay u0 cos2phi sin2phi)
:precision binary32
(let* ((t_0 (/ sin2phi (* alphay alphay)))
(t_1 (- (/ (/ cos2phi alphax) (- alphax)) t_0)))
(if (<= t_0 200.0)
(- (* -0.5 (/ u0 (/ t_1 u0))) (/ u0 t_1))
(* (/ alphay (- sin2phi)) (* alphay (log1p (- u0)))))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float t_0 = sin2phi / (alphay * alphay);
float t_1 = ((cos2phi / alphax) / -alphax) - t_0;
float tmp;
if (t_0 <= 200.0f) {
tmp = (-0.5f * (u0 / (t_1 / u0))) - (u0 / t_1);
} else {
tmp = (alphay / -sin2phi) * (alphay * log1pf(-u0));
}
return tmp;
}
function code(alphax, alphay, u0, cos2phi, sin2phi) t_0 = Float32(sin2phi / Float32(alphay * alphay)) t_1 = Float32(Float32(Float32(cos2phi / alphax) / Float32(-alphax)) - t_0) tmp = Float32(0.0) if (t_0 <= Float32(200.0)) tmp = Float32(Float32(Float32(-0.5) * Float32(u0 / Float32(t_1 / u0))) - Float32(u0 / t_1)); else tmp = Float32(Float32(alphay / Float32(-sin2phi)) * Float32(alphay * log1p(Float32(-u0)))); end return tmp end
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{sin2phi}{alphay \cdot alphay}\\
t_1 := \frac{\frac{cos2phi}{alphax}}{-alphax} - t_0\\
\mathbf{if}\;t_0 \leq 200:\\
\;\;\;\;-0.5 \cdot \frac{u0}{\frac{t_1}{u0}} - \frac{u0}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\frac{alphay}{-sin2phi} \cdot \left(alphay \cdot \mathsf{log1p}\left(-u0\right)\right)\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 200Initial program 50.3%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.3%
distribute-lft-neg-in98.3%
remove-double-neg98.3%
distribute-rgt-neg-in98.3%
Applied egg-rr98.3%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.6%
distribute-neg-frac98.6%
metadata-eval98.6%
Applied egg-rr98.6%
Taylor expanded in u0 around 0 90.0%
+-commutative90.0%
mul-1-neg90.0%
unsub-neg90.0%
Simplified90.1%
if 200 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 64.8%
Simplified98.4%
associate-/l/98.4%
distribute-frac-neg98.4%
frac-2neg98.4%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.4%
frac-2neg98.4%
distribute-rgt-neg-out98.4%
remove-double-neg98.4%
distribute-frac-neg98.4%
clear-num98.4%
associate-*r/98.4%
distribute-neg-frac98.4%
metadata-eval98.4%
Applied egg-rr98.4%
Taylor expanded in alphax around inf 65.4%
mul-1-neg65.4%
unpow265.4%
associate-/l*64.6%
distribute-neg-frac64.6%
distribute-rgt-neg-out64.6%
sub-neg64.6%
log1p-def97.0%
Simplified97.0%
*-commutative97.0%
div-inv96.9%
times-frac98.2%
remove-double-neg98.2%
frac-2neg98.2%
div-inv98.3%
clear-num98.5%
/-rgt-identity98.5%
Applied egg-rr98.5%
Final simplification94.2%
(FPCore (alphax alphay u0 cos2phi sin2phi)
:precision binary32
(let* ((t_0 (/ sin2phi (* alphay alphay)))
(t_1 (- (/ (/ cos2phi alphax) (- alphax)) t_0)))
(if (<= t_0 200.0)
(- (* -0.5 (/ u0 (/ t_1 u0))) (/ u0 t_1))
(* (* alphay alphay) (/ (log1p (- u0)) (- sin2phi))))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float t_0 = sin2phi / (alphay * alphay);
float t_1 = ((cos2phi / alphax) / -alphax) - t_0;
float tmp;
if (t_0 <= 200.0f) {
tmp = (-0.5f * (u0 / (t_1 / u0))) - (u0 / t_1);
} else {
tmp = (alphay * alphay) * (log1pf(-u0) / -sin2phi);
}
return tmp;
}
function code(alphax, alphay, u0, cos2phi, sin2phi) t_0 = Float32(sin2phi / Float32(alphay * alphay)) t_1 = Float32(Float32(Float32(cos2phi / alphax) / Float32(-alphax)) - t_0) tmp = Float32(0.0) if (t_0 <= Float32(200.0)) tmp = Float32(Float32(Float32(-0.5) * Float32(u0 / Float32(t_1 / u0))) - Float32(u0 / t_1)); else tmp = Float32(Float32(alphay * alphay) * Float32(log1p(Float32(-u0)) / Float32(-sin2phi))); end return tmp end
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{sin2phi}{alphay \cdot alphay}\\
t_1 := \frac{\frac{cos2phi}{alphax}}{-alphax} - t_0\\
\mathbf{if}\;t_0 \leq 200:\\
\;\;\;\;-0.5 \cdot \frac{u0}{\frac{t_1}{u0}} - \frac{u0}{t_1}\\
\mathbf{else}:\\
\;\;\;\;\left(alphay \cdot alphay\right) \cdot \frac{\mathsf{log1p}\left(-u0\right)}{-sin2phi}\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 200Initial program 50.3%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.3%
distribute-lft-neg-in98.3%
remove-double-neg98.3%
distribute-rgt-neg-in98.3%
Applied egg-rr98.3%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.6%
distribute-neg-frac98.6%
metadata-eval98.6%
Applied egg-rr98.6%
Taylor expanded in u0 around 0 90.0%
+-commutative90.0%
mul-1-neg90.0%
unsub-neg90.0%
Simplified90.1%
if 200 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 64.8%
Simplified98.4%
associate-/l/98.4%
distribute-frac-neg98.4%
frac-2neg98.4%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.4%
frac-2neg98.4%
distribute-rgt-neg-out98.4%
remove-double-neg98.4%
distribute-frac-neg98.4%
clear-num98.4%
associate-*r/98.4%
distribute-neg-frac98.4%
metadata-eval98.4%
Applied egg-rr98.4%
Taylor expanded in alphax around inf 65.4%
mul-1-neg65.4%
unpow265.4%
associate-/l*64.6%
distribute-neg-frac64.6%
distribute-rgt-neg-out64.6%
sub-neg64.6%
log1p-def97.0%
Simplified97.0%
div-inv97.0%
distribute-rgt-neg-out97.0%
distribute-lft-neg-out97.0%
clear-num98.5%
distribute-rgt-neg-in98.5%
*-commutative98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
remove-double-neg98.5%
Applied egg-rr98.5%
Final simplification94.3%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (/ (log1p (- u0)) (- (- (/ (/ cos2phi alphax) alphax)) (/ sin2phi (* alphay alphay)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return log1pf(-u0) / (-((cos2phi / alphax) / alphax) - (sin2phi / (alphay * alphay)));
}
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(log1p(Float32(-u0)) / Float32(Float32(-Float32(Float32(cos2phi / alphax) / alphax)) - Float32(sin2phi / Float32(alphay * alphay)))) end
\begin{array}{l}
\\
\frac{\mathsf{log1p}\left(-u0\right)}{\left(-\frac{\frac{cos2phi}{alphax}}{alphax}\right) - \frac{sin2phi}{alphay \cdot alphay}}
\end{array}
Initial program 57.5%
Simplified98.5%
Final simplification98.5%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (/ (- (log1p (- u0))) (+ (/ sin2phi (* alphay alphay)) (/ cos2phi (* alphax alphax)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return -log1pf(-u0) / ((sin2phi / (alphay * alphay)) + (cos2phi / (alphax * alphax)));
}
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(Float32(-log1p(Float32(-u0))) / Float32(Float32(sin2phi / Float32(alphay * alphay)) + Float32(cos2phi / Float32(alphax * alphax)))) end
\begin{array}{l}
\\
\frac{-\mathsf{log1p}\left(-u0\right)}{\frac{sin2phi}{alphay \cdot alphay} + \frac{cos2phi}{alphax \cdot alphax}}
\end{array}
Initial program 57.5%
sub-neg57.5%
log1p-def98.5%
Simplified98.5%
Final simplification98.5%
(FPCore (alphax alphay u0 cos2phi sin2phi)
:precision binary32
(let* ((t_0
(- (/ (/ cos2phi alphax) (- alphax)) (/ sin2phi (* alphay alphay)))))
(- (* -0.5 (/ u0 (/ t_0 u0))) (/ u0 t_0))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float t_0 = ((cos2phi / alphax) / -alphax) - (sin2phi / (alphay * alphay));
return (-0.5f * (u0 / (t_0 / u0))) - (u0 / t_0);
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
real(4) :: t_0
t_0 = ((cos2phi / alphax) / -alphax) - (sin2phi / (alphay * alphay))
code = ((-0.5e0) * (u0 / (t_0 / u0))) - (u0 / t_0)
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) t_0 = Float32(Float32(Float32(cos2phi / alphax) / Float32(-alphax)) - Float32(sin2phi / Float32(alphay * alphay))) return Float32(Float32(Float32(-0.5) * Float32(u0 / Float32(t_0 / u0))) - Float32(u0 / t_0)) end
function tmp = code(alphax, alphay, u0, cos2phi, sin2phi) t_0 = ((cos2phi / alphax) / -alphax) - (sin2phi / (alphay * alphay)); tmp = (single(-0.5) * (u0 / (t_0 / u0))) - (u0 / t_0); end
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{\frac{cos2phi}{alphax}}{-alphax} - \frac{sin2phi}{alphay \cdot alphay}\\
-0.5 \cdot \frac{u0}{\frac{t_0}{u0}} - \frac{u0}{t_0}
\end{array}
\end{array}
Initial program 57.5%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.5%
distribute-neg-frac98.5%
metadata-eval98.5%
Applied egg-rr98.5%
Taylor expanded in u0 around 0 89.2%
+-commutative89.2%
mul-1-neg89.2%
unsub-neg89.2%
Simplified88.9%
Final simplification88.9%
(FPCore (alphax alphay u0 cos2phi sin2phi)
:precision binary32
(if (<= (/ sin2phi (* alphay alphay)) 4.999999969612645e-9)
(/ u0 (- (/ cos2phi (* alphax alphax)) (/ (/ sin2phi alphay) (- alphay))))
(/
(* alphay (- alphay))
(-
(* sin2phi 0.5)
(+ (* u0 (* sin2phi -0.08333333333333333)) (/ sin2phi u0))))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float tmp;
if ((sin2phi / (alphay * alphay)) <= 4.999999969612645e-9f) {
tmp = u0 / ((cos2phi / (alphax * alphax)) - ((sin2phi / alphay) / -alphay));
} else {
tmp = (alphay * -alphay) / ((sin2phi * 0.5f) - ((u0 * (sin2phi * -0.08333333333333333f)) + (sin2phi / u0)));
}
return tmp;
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
real(4) :: tmp
if ((sin2phi / (alphay * alphay)) <= 4.999999969612645e-9) then
tmp = u0 / ((cos2phi / (alphax * alphax)) - ((sin2phi / alphay) / -alphay))
else
tmp = (alphay * -alphay) / ((sin2phi * 0.5e0) - ((u0 * (sin2phi * (-0.08333333333333333e0))) + (sin2phi / u0)))
end if
code = tmp
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) tmp = Float32(0.0) if (Float32(sin2phi / Float32(alphay * alphay)) <= Float32(4.999999969612645e-9)) tmp = Float32(u0 / Float32(Float32(cos2phi / Float32(alphax * alphax)) - Float32(Float32(sin2phi / alphay) / Float32(-alphay)))); else tmp = Float32(Float32(alphay * Float32(-alphay)) / Float32(Float32(sin2phi * Float32(0.5)) - Float32(Float32(u0 * Float32(sin2phi * Float32(-0.08333333333333333))) + Float32(sin2phi / u0)))); end return tmp end
function tmp_2 = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = single(0.0); if ((sin2phi / (alphay * alphay)) <= single(4.999999969612645e-9)) tmp = u0 / ((cos2phi / (alphax * alphax)) - ((sin2phi / alphay) / -alphay)); else tmp = (alphay * -alphay) / ((sin2phi * single(0.5)) - ((u0 * (sin2phi * single(-0.08333333333333333))) + (sin2phi / u0))); end tmp_2 = tmp; end
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{sin2phi}{alphay \cdot alphay} \leq 4.999999969612645 \cdot 10^{-9}:\\
\;\;\;\;\frac{u0}{\frac{cos2phi}{alphax \cdot alphax} - \frac{\frac{sin2phi}{alphay}}{-alphay}}\\
\mathbf{else}:\\
\;\;\;\;\frac{alphay \cdot \left(-alphay\right)}{sin2phi \cdot 0.5 - \left(u0 \cdot \left(sin2phi \cdot -0.08333333333333333\right) + \frac{sin2phi}{u0}\right)}\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 4.99999997e-9Initial program 46.8%
Taylor expanded in u0 around 0 80.0%
+-commutative80.0%
unpow280.0%
unpow280.0%
Simplified80.0%
associate-/r*80.2%
frac-2neg80.2%
distribute-frac-neg80.2%
Applied egg-rr80.2%
if 4.99999997e-9 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 62.9%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.5%
distribute-neg-frac98.5%
metadata-eval98.5%
Applied egg-rr98.5%
Taylor expanded in alphax around inf 62.2%
mul-1-neg62.2%
unpow262.2%
associate-/l*61.6%
distribute-neg-frac61.6%
distribute-rgt-neg-out61.6%
sub-neg61.6%
log1p-def94.3%
Simplified94.3%
Taylor expanded in u0 around 0 89.3%
associate-+r+89.3%
mul-1-neg89.3%
mul-1-neg89.3%
distribute-neg-out89.3%
distribute-rgt-out89.3%
metadata-eval89.3%
*-commutative89.3%
Simplified89.3%
Final simplification86.3%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (if (<= (/ sin2phi (* alphay alphay)) 4.999999969612645e-9) (/ u0 (- (/ cos2phi (* alphax alphax)) (/ (/ sin2phi alphay) (- alphay)))) (/ (* alphay (- alphay)) (- (* sin2phi 0.5) (/ sin2phi u0)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float tmp;
if ((sin2phi / (alphay * alphay)) <= 4.999999969612645e-9f) {
tmp = u0 / ((cos2phi / (alphax * alphax)) - ((sin2phi / alphay) / -alphay));
} else {
tmp = (alphay * -alphay) / ((sin2phi * 0.5f) - (sin2phi / u0));
}
return tmp;
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
real(4) :: tmp
if ((sin2phi / (alphay * alphay)) <= 4.999999969612645e-9) then
tmp = u0 / ((cos2phi / (alphax * alphax)) - ((sin2phi / alphay) / -alphay))
else
tmp = (alphay * -alphay) / ((sin2phi * 0.5e0) - (sin2phi / u0))
end if
code = tmp
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) tmp = Float32(0.0) if (Float32(sin2phi / Float32(alphay * alphay)) <= Float32(4.999999969612645e-9)) tmp = Float32(u0 / Float32(Float32(cos2phi / Float32(alphax * alphax)) - Float32(Float32(sin2phi / alphay) / Float32(-alphay)))); else tmp = Float32(Float32(alphay * Float32(-alphay)) / Float32(Float32(sin2phi * Float32(0.5)) - Float32(sin2phi / u0))); end return tmp end
function tmp_2 = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = single(0.0); if ((sin2phi / (alphay * alphay)) <= single(4.999999969612645e-9)) tmp = u0 / ((cos2phi / (alphax * alphax)) - ((sin2phi / alphay) / -alphay)); else tmp = (alphay * -alphay) / ((sin2phi * single(0.5)) - (sin2phi / u0)); end tmp_2 = tmp; end
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{sin2phi}{alphay \cdot alphay} \leq 4.999999969612645 \cdot 10^{-9}:\\
\;\;\;\;\frac{u0}{\frac{cos2phi}{alphax \cdot alphax} - \frac{\frac{sin2phi}{alphay}}{-alphay}}\\
\mathbf{else}:\\
\;\;\;\;\frac{alphay \cdot \left(-alphay\right)}{sin2phi \cdot 0.5 - \frac{sin2phi}{u0}}\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 4.99999997e-9Initial program 46.8%
Taylor expanded in u0 around 0 80.0%
+-commutative80.0%
unpow280.0%
unpow280.0%
Simplified80.0%
associate-/r*80.2%
frac-2neg80.2%
distribute-frac-neg80.2%
Applied egg-rr80.2%
if 4.99999997e-9 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 62.9%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.5%
distribute-neg-frac98.5%
metadata-eval98.5%
Applied egg-rr98.5%
Taylor expanded in alphax around inf 62.2%
mul-1-neg62.2%
unpow262.2%
associate-/l*61.6%
distribute-neg-frac61.6%
distribute-rgt-neg-out61.6%
sub-neg61.6%
log1p-def94.3%
Simplified94.3%
Taylor expanded in u0 around 0 86.4%
Final simplification84.3%
(FPCore (alphax alphay u0 cos2phi sin2phi)
:precision binary32
(let* ((t_0 (/ sin2phi (* alphay alphay))))
(if (<= t_0 4.999999969612645e-9)
(/ u0 (+ t_0 (/ cos2phi (* alphax alphax))))
(/ (* alphay (- alphay)) (- (* sin2phi 0.5) (/ sin2phi u0))))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float t_0 = sin2phi / (alphay * alphay);
float tmp;
if (t_0 <= 4.999999969612645e-9f) {
tmp = u0 / (t_0 + (cos2phi / (alphax * alphax)));
} else {
tmp = (alphay * -alphay) / ((sin2phi * 0.5f) - (sin2phi / u0));
}
return tmp;
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
real(4) :: t_0
real(4) :: tmp
t_0 = sin2phi / (alphay * alphay)
if (t_0 <= 4.999999969612645e-9) then
tmp = u0 / (t_0 + (cos2phi / (alphax * alphax)))
else
tmp = (alphay * -alphay) / ((sin2phi * 0.5e0) - (sin2phi / u0))
end if
code = tmp
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) t_0 = Float32(sin2phi / Float32(alphay * alphay)) tmp = Float32(0.0) if (t_0 <= Float32(4.999999969612645e-9)) tmp = Float32(u0 / Float32(t_0 + Float32(cos2phi / Float32(alphax * alphax)))); else tmp = Float32(Float32(alphay * Float32(-alphay)) / Float32(Float32(sin2phi * Float32(0.5)) - Float32(sin2phi / u0))); end return tmp end
function tmp_2 = code(alphax, alphay, u0, cos2phi, sin2phi) t_0 = sin2phi / (alphay * alphay); tmp = single(0.0); if (t_0 <= single(4.999999969612645e-9)) tmp = u0 / (t_0 + (cos2phi / (alphax * alphax))); else tmp = (alphay * -alphay) / ((sin2phi * single(0.5)) - (sin2phi / u0)); end tmp_2 = tmp; end
\begin{array}{l}
\\
\begin{array}{l}
t_0 := \frac{sin2phi}{alphay \cdot alphay}\\
\mathbf{if}\;t_0 \leq 4.999999969612645 \cdot 10^{-9}:\\
\;\;\;\;\frac{u0}{t_0 + \frac{cos2phi}{alphax \cdot alphax}}\\
\mathbf{else}:\\
\;\;\;\;\frac{alphay \cdot \left(-alphay\right)}{sin2phi \cdot 0.5 - \frac{sin2phi}{u0}}\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 4.99999997e-9Initial program 46.8%
Taylor expanded in u0 around 0 80.0%
+-commutative80.0%
unpow280.0%
unpow280.0%
Simplified80.0%
if 4.99999997e-9 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 62.9%
Simplified98.5%
associate-/l/98.5%
distribute-frac-neg98.5%
frac-2neg98.5%
div-inv98.4%
distribute-lft-neg-in98.4%
remove-double-neg98.4%
distribute-rgt-neg-in98.4%
Applied egg-rr98.4%
un-div-inv98.5%
frac-2neg98.5%
distribute-rgt-neg-out98.5%
remove-double-neg98.5%
distribute-frac-neg98.5%
clear-num98.5%
associate-*r/98.5%
distribute-neg-frac98.5%
metadata-eval98.5%
Applied egg-rr98.5%
Taylor expanded in alphax around inf 62.2%
mul-1-neg62.2%
unpow262.2%
associate-/l*61.6%
distribute-neg-frac61.6%
distribute-rgt-neg-out61.6%
sub-neg61.6%
log1p-def94.3%
Simplified94.3%
Taylor expanded in u0 around 0 86.4%
Final simplification84.2%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (if (<= (/ sin2phi (* alphay alphay)) 4.999999918875795e-18) (/ u0 (/ cos2phi (* alphax alphax))) (* alphay (* u0 (/ alphay sin2phi)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float tmp;
if ((sin2phi / (alphay * alphay)) <= 4.999999918875795e-18f) {
tmp = u0 / (cos2phi / (alphax * alphax));
} else {
tmp = alphay * (u0 * (alphay / sin2phi));
}
return tmp;
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
real(4) :: tmp
if ((sin2phi / (alphay * alphay)) <= 4.999999918875795e-18) then
tmp = u0 / (cos2phi / (alphax * alphax))
else
tmp = alphay * (u0 * (alphay / sin2phi))
end if
code = tmp
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) tmp = Float32(0.0) if (Float32(sin2phi / Float32(alphay * alphay)) <= Float32(4.999999918875795e-18)) tmp = Float32(u0 / Float32(cos2phi / Float32(alphax * alphax))); else tmp = Float32(alphay * Float32(u0 * Float32(alphay / sin2phi))); end return tmp end
function tmp_2 = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = single(0.0); if ((sin2phi / (alphay * alphay)) <= single(4.999999918875795e-18)) tmp = u0 / (cos2phi / (alphax * alphax)); else tmp = alphay * (u0 * (alphay / sin2phi)); end tmp_2 = tmp; end
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{sin2phi}{alphay \cdot alphay} \leq 4.999999918875795 \cdot 10^{-18}:\\
\;\;\;\;\frac{u0}{\frac{cos2phi}{alphax \cdot alphax}}\\
\mathbf{else}:\\
\;\;\;\;alphay \cdot \left(u0 \cdot \frac{alphay}{sin2phi}\right)\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 4.99999992e-18Initial program 49.0%
Taylor expanded in u0 around 0 77.9%
+-commutative77.9%
unpow277.9%
unpow277.9%
Simplified77.9%
+-commutative77.9%
associate-/r*77.9%
frac-add77.9%
Applied egg-rr77.9%
Taylor expanded in cos2phi around inf 57.7%
unpow257.7%
Simplified57.7%
if 4.99999992e-18 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 60.0%
Taylor expanded in u0 around 0 77.6%
+-commutative77.6%
unpow277.6%
unpow277.6%
Simplified77.6%
Taylor expanded in sin2phi around inf 71.5%
unpow271.5%
Simplified71.5%
div-inv71.5%
clear-num71.8%
associate-*l/71.9%
*-commutative71.9%
*-commutative71.9%
Applied egg-rr71.9%
add-exp-log_binary3270.0%
Applied rewrite-once70.0%
rem-exp-log71.9%
associate-*l*71.9%
Simplified71.9%
Final simplification68.7%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (if (<= (/ sin2phi (* alphay alphay)) 1.9999999996399175e-23) (/ u0 (/ (/ cos2phi alphax) alphax)) (* alphay (* u0 (/ alphay sin2phi)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
float tmp;
if ((sin2phi / (alphay * alphay)) <= 1.9999999996399175e-23f) {
tmp = u0 / ((cos2phi / alphax) / alphax);
} else {
tmp = alphay * (u0 * (alphay / sin2phi));
}
return tmp;
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
real(4) :: tmp
if ((sin2phi / (alphay * alphay)) <= 1.9999999996399175e-23) then
tmp = u0 / ((cos2phi / alphax) / alphax)
else
tmp = alphay * (u0 * (alphay / sin2phi))
end if
code = tmp
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) tmp = Float32(0.0) if (Float32(sin2phi / Float32(alphay * alphay)) <= Float32(1.9999999996399175e-23)) tmp = Float32(u0 / Float32(Float32(cos2phi / alphax) / alphax)); else tmp = Float32(alphay * Float32(u0 * Float32(alphay / sin2phi))); end return tmp end
function tmp_2 = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = single(0.0); if ((sin2phi / (alphay * alphay)) <= single(1.9999999996399175e-23)) tmp = u0 / ((cos2phi / alphax) / alphax); else tmp = alphay * (u0 * (alphay / sin2phi)); end tmp_2 = tmp; end
\begin{array}{l}
\\
\begin{array}{l}
\mathbf{if}\;\frac{sin2phi}{alphay \cdot alphay} \leq 1.9999999996399175 \cdot 10^{-23}:\\
\;\;\;\;\frac{u0}{\frac{\frac{cos2phi}{alphax}}{alphax}}\\
\mathbf{else}:\\
\;\;\;\;alphay \cdot \left(u0 \cdot \frac{alphay}{sin2phi}\right)\\
\end{array}
\end{array}
if (/.f32 sin2phi (*.f32 alphay alphay)) < 2e-23Initial program 49.3%
Taylor expanded in u0 around 0 77.2%
+-commutative77.2%
unpow277.2%
unpow277.2%
Simplified77.2%
+-commutative77.2%
associate-/r*77.2%
frac-add77.5%
Applied egg-rr77.5%
Taylor expanded in cos2phi around inf 64.8%
*-commutative64.8%
associate-/l*64.7%
unpow264.7%
associate-/r*64.8%
Simplified64.8%
if 2e-23 < (/.f32 sin2phi (*.f32 alphay alphay)) Initial program 59.0%
Taylor expanded in u0 around 0 77.8%
+-commutative77.8%
unpow277.8%
unpow277.8%
Simplified77.8%
Taylor expanded in sin2phi around inf 69.1%
unpow269.1%
Simplified69.1%
div-inv69.1%
clear-num69.4%
associate-*l/69.4%
*-commutative69.4%
*-commutative69.4%
Applied egg-rr69.4%
add-exp-log_binary3267.6%
Applied rewrite-once67.6%
rem-exp-log69.4%
associate-*l*69.4%
Simplified69.4%
Final simplification68.7%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (/ u0 (+ (/ sin2phi (* alphay alphay)) (/ cos2phi (* alphax alphax)))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return u0 / ((sin2phi / (alphay * alphay)) + (cos2phi / (alphax * alphax)));
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
code = u0 / ((sin2phi / (alphay * alphay)) + (cos2phi / (alphax * alphax)))
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(u0 / Float32(Float32(sin2phi / Float32(alphay * alphay)) + Float32(cos2phi / Float32(alphax * alphax)))) end
function tmp = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = u0 / ((sin2phi / (alphay * alphay)) + (cos2phi / (alphax * alphax))); end
\begin{array}{l}
\\
\frac{u0}{\frac{sin2phi}{alphay \cdot alphay} + \frac{cos2phi}{alphax \cdot alphax}}
\end{array}
Initial program 57.5%
Taylor expanded in u0 around 0 77.7%
+-commutative77.7%
unpow277.7%
unpow277.7%
Simplified77.7%
Final simplification77.7%
(FPCore (alphax alphay u0 cos2phi sin2phi) :precision binary32 (* alphay (* u0 (/ alphay sin2phi))))
float code(float alphax, float alphay, float u0, float cos2phi, float sin2phi) {
return alphay * (u0 * (alphay / sin2phi));
}
real(4) function code(alphax, alphay, u0, cos2phi, sin2phi)
real(4), intent (in) :: alphax
real(4), intent (in) :: alphay
real(4), intent (in) :: u0
real(4), intent (in) :: cos2phi
real(4), intent (in) :: sin2phi
code = alphay * (u0 * (alphay / sin2phi))
end function
function code(alphax, alphay, u0, cos2phi, sin2phi) return Float32(alphay * Float32(u0 * Float32(alphay / sin2phi))) end
function tmp = code(alphax, alphay, u0, cos2phi, sin2phi) tmp = alphay * (u0 * (alphay / sin2phi)); end
\begin{array}{l}
\\
alphay \cdot \left(u0 \cdot \frac{alphay}{sin2phi}\right)
\end{array}
Initial program 57.5%
Taylor expanded in u0 around 0 77.7%
+-commutative77.7%
unpow277.7%
unpow277.7%
Simplified77.7%
Taylor expanded in sin2phi around inf 61.2%
unpow261.2%
Simplified61.2%
div-inv61.2%
clear-num61.4%
associate-*l/61.5%
*-commutative61.5%
*-commutative61.5%
Applied egg-rr61.5%
add-exp-log_binary3260.0%
Applied rewrite-once60.0%
rem-exp-log61.5%
associate-*l*61.5%
Simplified61.5%
Final simplification61.5%
herbie shell --seed 2023297
(FPCore (alphax alphay u0 cos2phi sin2phi)
:name "Beckmann Distribution sample, tan2theta, alphax != alphay, u1 <= 0.5"
:precision binary32
:pre (and (and (and (and (and (<= 0.0001 alphax) (<= alphax 1.0)) (and (<= 0.0001 alphay) (<= alphay 1.0))) (and (<= 2.328306437e-10 u0) (<= u0 1.0))) (and (<= 0.0 cos2phi) (<= cos2phi 1.0))) (<= 0.0 sin2phi))
(/ (- (log (- 1.0 u0))) (+ (/ cos2phi (* alphax alphax)) (/ sin2phi (* alphay alphay)))))