Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/pi_bigint.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function calc_pi(prec) {
const CHUD_B = 545140134n;
const CHUD_C = 640320n;
const CHUD_C3 = 10939058860032000n; /* C^3/24 */
const CHUD_BITS_PER_TERM = 47.11041313821584202247; /* log2(C/12)*3 */
const CHUD_BITS_PER_TERM = 47.11041313821584; /* log2(C/12)*3 */

/* return [P, Q, G] */
function chud_bs(a, b, need_G) {
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bigint.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function calc_pi(prec) {
const CHUD_B = 545140134n;
const CHUD_C = 640320n;
const CHUD_C3 = 10939058860032000n; /* C^3/24 */
const CHUD_BITS_PER_TERM = 47.11041313821584202247; /* log2(C/12)*3 */
const CHUD_BITS_PER_TERM = 47.11041313821584; /* log2(C/12)*3 */

/* return [P, Q, G] */
function chud_bs(a, b, need_G) {
Expand Down