Skip to content

Correct PI constant precision in stochMath#25

Open
OldCrow wants to merge 1 commit intoKorfLab:masterfrom
OldCrow:fix/pi-constant-precision
Open

Correct PI constant precision in stochMath#25
OldCrow wants to merge 1 commit intoKorfLab:masterfrom
OldCrow:fix/pi-constant-precision

Conversation

@OldCrow
Copy link
Copy Markdown

@OldCrow OldCrow commented Apr 24, 2026

Summary

  • Correct PI in src/stochMath.h from 3.145926535897932 to 3.141592653589793238463

Why

Several PDF normalizations (including Gaussian) depend on this constant. Using a more accurate value removes a deterministic log-space offset in downstream likelihood calculations.

Co-Authored-By: Oz oz-agent@warp.dev

Update PI to 3.141592653589793238463 so Gaussian normalization uses an accurate constant.

Co-Authored-By: Oz <oz-agent@warp.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant