Newbie Programming Confusion
|
08-22-2015, 06:44 PM
Post: #1
|
|||
|
|||
Newbie Programming Confusion
Hello all,
As a newbie with my Prime, I am slowly attempting different things to learn how to do programming on it (I'm having great fun with this!). For most of my programs so far, I have dug out old BASIC programs that I have had running before on other vintage computer systems that I have. My latest program is a simple one that calculates the value of Pi by adding up the sides of a polygon inscribed within a circle. This program comes from an old article from Creative Computing back in 1978: Calc-Pi.pdf (Size: 2.54 MB / Downloads: 33) Anyway, I am surprised that the author's original method of building up the equation to find the length of a side of the polygon does not work properly in my program. I have built a couple of more equations to compute the side length that work properly, but I remain confused why the original method used by the author of the article does not work properly. Here's my code: Code: EXPORT CalcPi() Please take a look (if you want) and if there is something obvious that I'm missing, please let me know. TIA, smp |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Newbie Programming Confusion - smp - 08-22-2015 06:44 PM
RE: Newbie Programming Confusion - Thomas_Sch - 08-22-2015, 08:10 PM
RE: Newbie Programming Confusion - smp - 08-22-2015, 09:35 PM
RE: Newbie Programming Confusion - Tim Wessman - 08-22-2015, 08:18 PM
RE: Newbie Programming Confusion - smp - 08-22-2015, 09:43 PM
RE: Newbie Programming Confusion - Thomas Klemm - 08-22-2015, 09:30 PM
|
User(s) browsing this thread: 1 Guest(s)