Jump to content

Almkvist-Giullera formula for pi: Difference between revisions

m
Minor formatting of code.
(New post.)
m (Minor formatting of code.)
Line 1,550:
n += 1;
pi = BigDecimal.ONE.divide(sum, mathContext).sqrt(mathContext);
}
System.out.println(System.lineSeparator() + "pi to 70 decimal places:");
System.out.println(pi);
894

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.