Skip to content

Commit 7b59d77

Browse files
committed
fix: use correct mathematical notation ln(f(x;k)) in C example
Changed printf format from 'logf(x;k)' to 'ln(f(x;k))' to match standard mathematical notation for natural logarithm of PDF.
1 parent bbe3a0a commit 7b59d77

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/stats/base/dists/chi/logpdf/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ int main( void ) {
3535
x = random_uniform( 0.0, 10.0 );
3636
k = random_uniform( 0.1, 10.0 );
3737
y = stdlib_base_dists_chi_logpdf( x, k );
38-
printf( "x: %lf, k: %lf, logf(x;k): %lf\n", x, k, y );
38+
printf( "x: %lf, k: %lf, ln(f(x;k)): %lf\n", x, k, y );
3939
}
4040
return 0;
4141
}

0 commit comments

Comments
 (0)