Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Calculating pi in pascal

Name: Anonymous 2018-09-01 18:29

I need help writing a program that calculates pi in pascal. How do I start?

Name: Anonymous 2018-09-01 18:36

don't math libraries have pi already? no need to calculate it

for example, in java, it's just Math.PI

Name: Anonymous 2018-09-01 19:55

>>2
I want to do it for the learning part.

Name: Anonymous 2018-09-01 19:58

Divide 22 by 7.

Name: Anonymous 2018-09-01 19:58

>>4
common misconception

Name: Anonymous 2018-09-01 20:01

all trolled

Name: Anonymous 2018-09-01 20:02

>>5
misconception is what happened to you when you were born

Name: Anonymous 2018-09-01 20:10

>>6
``I was only pretending to be retarded''

Name: Anonymous 2018-09-01 21:16

>>5
Truncate after the 2nd decimal digit.

Name: Anonymous 2018-09-02 1:37

Start with a diamond

Name: Anonymous 2018-09-02 2:11

>>9
well how is double pi = 22.0/7.0 any better than double pi = 3.14?

Name: Anonymous 2018-09-02 3:49

Name: Cudder !cXCudderUE 2018-09-02 4:48

Name: Anonymous 2018-09-02 9:17

>>11
22/7 is not in a normal form, thus it can be calculated, unlike 3.14 which is already in a normal form.

Name: Anonymous 2018-09-02 12:41

Why do you need pi for? If it’

Name: Anonymous 2018-09-02 21:16

bumping

Name: Anonymous 2018-09-02 21:25

>>14
that's like saying 2.0 + 1.14 is better because you're calculating it

evaluation of an approximation != actual calculation of pi

Name: Anonymous 2018-09-03 2:01

>>17
Assuming that pi is actually infinite in length, you can't calculate it so I can only assume that >>1-kun wants an approximation instead.

Name: Anonymous 2018-09-03 3:15

I have approximated dubs. 19 is almost 22, right?

See, shitty approximation is not good enough. 22/7 is not close enough.

Name: Anonymous 2018-09-03 5:20

#define PI 3 //good enough approximation
int pi=PI;

Name: Anonymous 2018-09-03 5:24

>>19
Your argument is not even relevant to mine..

Name: Anonymous 2018-09-03 6:57

>>21
check dubs

Don't change these.
Name: Email:
Entire Thread Thread List