Wallis' product exploration
|
02-11-2020, 12:53 AM
Post: #15
|
|||
|
|||
RE: Wallis' product exploration
(02-09-2020 10:58 PM)Gerson W. Barbosa Wrote: Convergence gets worse as n increases, but it won’t take long before you can recognize the constant. This is better: Code:
19 XEQ WALLIS -> 3.1415926535(94170710602783580375138) 1000 XEQ WALLIS -> 3.14159265358979323846264(8085575516) The first program should be changed accordingly. After 15 iterations a physical 42S will return 3.14159265353. The correction factor is (n (n (512 n + 832) + 592) + 167)/(n (n (512 n + 704) + 464) + 105) That’s five terms of a continued fraction in Horner form. I have yet to check whether it generalizes for infinite terms or not. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)