Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 7e93ce9

Browse files
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.
1 parent dc82800 commit 7e93ce9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/math/erf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ pub fn erf(x: f64) -> f64 {
263263
}
264264
}
265265

266-
/// Error function (f64)
266+
/// Complementary error function (f64)
267267
///
268268
/// Calculates the complementary probability.
269269
/// Is `1 - erf(x)`. Is computed directly, so that you can use it to avoid

src/math/erff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub fn erff(x: f32) -> f32 {
174174
}
175175
}
176176

177-
/// Error function (f32)
177+
/// Complementary error function (f32)
178178
///
179179
/// Calculates the complementary probability.
180180
/// Is `1 - erf(x)`. Is computed directly, so that you can use it to avoid

0 commit comments

Comments
 (0)