Skip to content

Commit 1b0a660

Browse files
add math/base/special/logitf
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: passed - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent 501ef98 commit 1b0a660

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

lib/node_modules/@stdlib/math/base/special/logitf/docs/repl.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
Returns
1616
-------
1717
y: number
18-
Function value.
18+
Function value.
19+
1920

2021
Examples
2122
--------
@@ -32,4 +33,3 @@
3233

3334
See Also
3435
--------
35-

lib/node_modules/@stdlib/math/base/special/logitf/examples/c/example.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
#include <stdio.h>
2222

2323
int main( void ) {
24-
float x;
25-
float v;
26-
int i;
24+
float x;
25+
float v;
26+
int i;
2727

28-
for ( i = 0; i < 100; i++ ) {
29-
x = (float)rand() / (float)RAND_MAX;
30-
v = stdlib_base_logitf( x );
31-
printf( "logitf(%f) = %f\n", x, v );
32-
}
28+
for ( i = 0; i < 100; i++ ) {
29+
x = (float)rand() / (float)RAND_MAX;
30+
v = stdlib_base_logitf( x );
31+
printf( "logitf(%f) = %f\n", x, v );
32+
}
3333
}

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
3434
* // returns ~-1.386
3535
*/
3636
float stdlib_base_logitf( const float p ) {
37-
if ( stdlib_base_is_nanf( p ) ) {
38-
return 0.0 / 0.0; // NaN
39-
}
40-
if ( !stdlib_base_is_probabilityf( p ) ) {
41-
return 0.0 / 0.0; // NaN
42-
}
43-
if ( p == 0.0 ) {
44-
return STDLIB_CONSTANT_FLOAT32_NINF;
45-
}
46-
if ( p == 1.0 ) {
47-
return STDLIB_CONSTANT_FLOAT32_PINF;
48-
}
49-
return stdlib_base_lnf( p / ( 1.0 - p ) );
37+
if ( stdlib_base_is_nanf( p ) ) {
38+
return 0.0 / 0.0; // NaN
39+
}
40+
if ( !stdlib_base_is_probabilityf( p ) ) {
41+
return 0.0 / 0.0; // NaN
42+
}
43+
if ( p == 0.0 ) {
44+
return STDLIB_CONSTANT_FLOAT32_NINF;
45+
}
46+
if ( p == 1.0 ) {
47+
return STDLIB_CONSTANT_FLOAT32_PINF;
48+
}
49+
return stdlib_base_lnf( p / ( 1.0 - p ) );
5050
}

lib/node_modules/@stdlib/math/base/special/logitf/test/fixtures/python/large.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/logitf/test/fixtures/python/medium_above.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/logitf/test/fixtures/python/medium_below.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/node_modules/@stdlib/math/base/special/logitf/test/fixtures/python/small.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)