Post Reply 
[VA] SRC#006- Pi Day 2020 Special: A New Fast Way to Compute Pi
03-15-2020, 06:08 PM
Post: #10
RE: [VA] SRC#006- Pi Day 2020 Special: A New Fast Way to Compute Pi
Slightly optimized version, using less operations.

Code:
10 FNM(X)=X*(5-X*X*(4+16*(1-X)*(1+X)))
20 FNT(X)=X*(1-X*X*(20-X*X)/120)
30 FNS(X)=FNM(FNM(FNM(FNT(.008*X))))
40 FNP(X)=X+FNS(X)

>FNP(3)
3.14112000806
>FNP(RES)
3.14159265358
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC#006- Pi Day 2020 Special: A New Fast Way to Compute Pi - Albert Chan - 03-15-2020 06:08 PM



User(s) browsing this thread: 1 Guest(s)