We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tgammaf
1 parent a498d47 commit 9899d00Copy full SHA for 9899d00
libm/crates/libm-test/src/precision.rs
@@ -44,7 +44,6 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
44
45
// Operations that aren't required to be exact, but our implementations are.
46
Bn::Cbrt if ctx.fn_ident != Id::Cbrt => 0,
47
- Bn::Tgamma if ctx.fn_ident != Id::Tgamma => 0,
48
49
// Bessel functions have large inaccuracies.
50
Bn::J0 | Bn::J1 | Bn::Y0 | Bn::Y1 | Bn::Jn | Bn::Yn => 8_000_000,
@@ -78,6 +77,8 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
78
77
Bn::Sinh => 2,
79
Bn::Tan => 1,
80
Bn::Tanh => 2,
+ // tgammaf has higher accuracy than tgamma.
81
+ Bn::Tgamma if ctx.fn_ident != Id::Tgamma => 1,
82
Bn::Tgamma => 20,
83
};
84
0 commit comments