[VA] SRC #017 - April 1st, 2024 Spring Special
|
04-06-2024, 01:16 AM
Post: #8
|
|||
|
|||
RE: [VA] SRC #017 - April 1st, 2024 Spring Special
For the function S(X); notice that:
1). 2^(12N+4) = 2^(12N)*16, so 16 can go outside the summation. 2). 2^(12(N+1))/2^(12N) = 2^12 = 4096. 3). COMB(2N, N) = (2*N)!/(N!^2). COMB(2(N+1), N+1)/COMB(2N, N) = ((2*(N+1))!/((N+1)!^2))/((2*N)!/(N!^2)) = (4*N+2)/(N+1) = 2*(2-1/(N+1)). Having (COMB(2N, N)^3)/(2^(12N)) stored in register 03, you can get to (COMB(2(N+1), N+1)^3)/(2^(12(N+1)) by multiplying register 03 by ((2*(2-1/(N+1)))^3)/4096 = ((2-1/(N+1))^3)/512. With X in register 01, N+1 in register 02 and summation in register 04, we have the next program for the free42: PHP Code: 01 LBL “S” wow, pi again! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)