Skip to content

Commit a6c9e81

Browse files
Name what ln_gamma does
The previous description omitted some important details.
1 parent e97bb2f commit a6c9e81

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

std/src/f32.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,9 @@ impl f32 {
978978
unsafe { cmath::tgammaf(self) }
979979
}
980980

981-
/// Returns the natural logarithm of the gamma function.
981+
/// Natural logarithm of the absolute value of the gamma function
982+
///
983+
/// The integer part of the tuple indicates the sign of the gamma function.
982984
///
983985
/// # Examples
984986
///

std/src/f64.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,9 @@ impl f64 {
978978
unsafe { cmath::tgamma(self) }
979979
}
980980

981-
/// Returns the natural logarithm of the gamma function.
981+
/// Natural logarithm of the absolute value of the gamma function
982+
///
983+
/// The integer part of the tuple indicates the sign of the gamma function.
982984
///
983985
/// # Examples
984986
///

0 commit comments

Comments
 (0)