Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ah, pi.
#1
I made my pi formula at http://www.geocities.com/pisforpi/ into a program.

CLS
n% = 21
IF n% = 0 THEN SYSTEM
j# = 0
FOR I% = 1 TO n% - 1
j# = (2 + j#) ^ .5
NEXT I%
j# = (2 - j#) ^ .5 * 2 ^ n%
PRINT j#
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#2
Wrong.

Pi is:
3.1415926535897932384626433832...

All of that from my memory Tongue

::EDIT::
pi# = 4 * ATAN(1)
am an asshole. Get used to it.
Reply
#3
Rounding error. Try n = 16.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Reply
#4
hmm here's a way i just thought of

Pi# = COS(2) * -7.5492358222#
Print Pi#

altho it's slightly inaccurate, but heh it's original Tongue
very F***ing song remains the same
To everyone who sucks-up for the fame
Out of strength you know we speak the truth
Every trend that dies is living proof

MasterMinds Software
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)