Skip to content

Commit e557ae3

Browse files
committed
fix: correct mathematical notation and add return statement in README
- Changed printf format from 'logf(x;k)' to 'ln(f(x;k))' for consistency - Added missing 'return 0;' statement in C example
1 parent 7b59d77 commit e557ae3

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/dists/chi/logpdf

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/chi/logpdf/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,9 @@ int main( void ) {
222222
x = random_uniform( 0.0, 10.0 );
223223
k = random_uniform( 0.1, 10.0 );
224224
y = stdlib_base_dists_chi_logpdf( x, k );
225-
printf( "x: %lf, k: %lf, logf(x;k): %lf\n", x, k, y );
225+
printf( "x: %lf, k: %lf, ln(f(x;k)): %lf\n", x, k, y );
226226
}
227+
return 0;
227228
}
228229
```
229230

0 commit comments

Comments
 (0)