Skip to content

Commit 5a0da6c

Browse files
add math/base/special/logitf
1 parent 30fe769 commit 5a0da6c

File tree

1 file changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/math/base/special/logitf/src

1 file changed

+5
-5
lines changed

lib/node_modules/@stdlib/math/base/special/logitf/src/main.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@
3535
*/
3636
float stdlib_base_logitf( const float p ) {
3737
if ( stdlib_base_is_nanf( p ) ) {
38-
return 0.0 / 0.0; // NaN
38+
return 0.0f / 0.0f; // NaN
3939
}
4040
if ( !stdlib_base_is_probabilityf( p ) ) {
41-
return 0.0 / 0.0; // NaN
41+
return 0.0f / 0.0f; // NaN
4242
}
43-
if ( p == 0.0 ) {
43+
if ( p == 0.0f ) {
4444
return STDLIB_CONSTANT_FLOAT32_NINF;
4545
}
46-
if ( p == 1.0 ) {
46+
if ( p == 1.0f ) {
4747
return STDLIB_CONSTANT_FLOAT32_PINF;
4848
}
49-
return stdlib_base_lnf( p / ( 1.0 - p ) );
49+
return stdlib_base_lnf( p / ( 1.0f - p ) );
5050
}

0 commit comments

Comments
 (0)