Merge pull request #116 from aepsil0n/frac2pi

frac_2_sqrt_pi renaming
This commit is contained in:
Eduard Bopp 2015-04-04 17:19:16 +02:00
commit f4aadb79ae

View File

@ -36,7 +36,7 @@ pub trait BaseFloat: Float + Cast<f64> + BaseNum {
/// 2.0 / pi. /// 2.0 / pi.
fn frac_2_pi() -> Self; fn frac_2_pi() -> Self;
/// 2.0 / sqrt(pi). /// 2.0 / sqrt(pi).
fn frac_2_sqrtpi() -> Self; fn frac_2_sqrt_pi() -> Self;
/// Euler's number. /// Euler's number.
fn e() -> Self; fn e() -> Self;
@ -424,8 +424,8 @@ macro_rules! impl_base_float(
} }
/// 2.0 / sqrt(pi). /// 2.0 / sqrt(pi).
fn frac_2_sqrtpi() -> $n { fn frac_2_sqrt_pi() -> $n {
$n::consts::FRAC_2_SQRTPI $n::consts::FRAC_2_SQRT_PI
} }