Fix descriptions of erfc and erfcf
As described in the second paragraph of the docs for these functions, they are the complementary error function, not the error function.
This commit is contained in:
+1
-1
@@ -263,7 +263,7 @@ pub fn erf(x: f64) -> f64 {
|
||||
}
|
||||
}
|
||||
|
||||
/// Error function (f64)
|
||||
/// Complementary error function (f64)
|
||||
///
|
||||
/// Calculates the complementary probability.
|
||||
/// Is `1 - erf(x)`. Is computed directly, so that you can use it to avoid
|
||||
|
||||
+1
-1
@@ -174,7 +174,7 @@ pub fn erff(x: f32) -> f32 {
|
||||
}
|
||||
}
|
||||
|
||||
/// Error function (f32)
|
||||
/// Complementary error function (f32)
|
||||
///
|
||||
/// Calculates the complementary probability.
|
||||
/// Is `1 - erf(x)`. Is computed directly, so that you can use it to avoid
|
||||
|
||||
Reference in New Issue
Block a user