News:

Holy shit, it's 2018 2019 2020 2021 2022 2023 2024, and the US isn't a fascist country! What a time to be alive.

Main Menu

[JAVA] Calculate Pi!

Started by Joe, November 08, 2005, 10:10:27 PM

Previous topic - Next topic

0 Members and 7 Guests are viewing this topic.

Sidoh

Quote from: Joe[e2] on November 10, 2005, 05:05:36 PM
Sweet, I sparked a nice conversation by being an idiot!

You're actually pretty good at that, I've noticed. :P

d&q

rabbit: What do you mean Pi itself is a function?
The writ of the founders must endure.

Joe

Quote from: Deuce on November 10, 2005, 06:15:18 PM
rabbit: What do you mean Pi itself is a function?

Yeah, I don't quite get that either.
Quote from: Camel on June 09, 2009, 04:12:23 PMI'd personally do as Joe suggests

Quote from: AntiVirus on October 19, 2010, 02:36:52 PM
You might be right about that, Joe.


AntiVirus

QuoteRational Numbers- Can be written as a result of the calculation: a/b. This includes repeating decimals, such as 5/7 or 1/3.
I may be wrong.  But, don't raitonal numbers have numbers that repeat after teh decimal?  Such as .3333333 ect.  But, 5/7 doesn't fit the description, so did you mean to put that in irrational?  Or am I just wrong?
The once grove of splendor,
Aforetime crowned by lilac and lily,
Lay now forevermore slender;
And all winds that liven
Silhouette a lone existence;
A leafless oak grasping at eternity.


"They say that I must learn to kill before I can feel safe, but I rather kill myself then turn into their slave."
- The Rasmus

iago

Quote from: Brandon on November 11, 2005, 01:08:28 PM
QuoteRational Numbers- Can be written as a result of the calculation: a/b. This includes repeating decimals, such as 5/7 or 1/3.
I may be wrong.  But, don't raitonal numbers have numbers that repeat after teh decimal?  Such as .3333333 ect.  But, 5/7 doesn't fit the description, so did you mean to put that in irrational?  Or am I just wrong?
You're just wrong :-P

Rational numbers have numbers that repeat, as well as numbers that terminate (I forget what they're called), an integers, whole numbers, and natural numbers. 

Irrational numbers contain all rational numbers, and everything below it. 

d&q

Haha, 5/7 does repeat  :), there is as cool little pattern to know what any x/7 repeating decimal is.

@iago, Actually, I believe irrational numbers do not contain rational numbers, as irrational numbers cannot be written as "a/b".
The writ of the founders must endure.

MyndFyre

Quote from: Deuce on November 11, 2005, 06:23:47 PM
@iago, Actually, I believe irrational numbers do not contain rational numbers, as irrational numbers cannot be written as "a/b".
You are correct, Real numbers are the set of rational numbers plus irrationational numbers, like the set of all numbers contains real and imaginary numbers, whcih are mutually exclusive.  ;)
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

iago

Quote from: MyndFyrex86] link=topic=3640.msg37879#msg37879 date=1131753641]
Quote from: Deuce on November 11, 2005, 06:23:47 PM
@iago, Actually, I believe irrational numbers do not contain rational numbers, as irrational numbers cannot be written as "a/b".
You are correct, Real numbers are the set of rational numbers plus irrationational numbers, like the set of all numbers contains real and imaginary numbers, whcih are mutually exclusive.  ;)
Ah, you're right, I was mixing up irrational and real.  Stupid mistake :)

rabbit

#38
The first pi function (lowercase pi, as we usually see it), is the number of primes less than the argument.
IE:


The second pi function (uppercase pi) is the expression for the process of Eratosthenes' Sieve (the multiplication of all factors of the argument).
IE:

MyndFyre

Quote from: rabbit on November 12, 2005, 12:58:35 PM
The first pi function (lowercase pi, as we usually see it), is the number of primes less than the argument.
IE:


The second pi function (uppercase pi) is the expression for the process of Eratosthenes' Sieve (the multiplication of all factors of the argument).
IE:

That seems off.  Number of primes less than 60 is not 46.7 billion.  They are: 2,3,5,7,11,13,17,19,23,27,31,37,41,43,47,53,57.

The multiplication of all positive integral factors of 12 = 1 * 2 * 3 * 4 * 6 = 144.

Unless I'm misunderstanding you.
Quote from: Joe on January 23, 2011, 11:47:54 PM
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Quote from: Rule on May 26, 2009, 02:02:12 PMOur species really annoys me.

rabbit

I got it backwards!!  Whoops....fixing...

Fixed.  Even still, you should have noticed it was backwards considering I said the case of pi...and then had the different cases.

iago

But in any case, neither of those has anything to do with the constant Pi, doe they?

rabbit

Sure they do!  They are all represented by the Greek letter Pi.

Tomcat

#43
e is like pi, I believe.  My ti-83 says it's approximately 2.71828182.  If by "like infinity" you mean not a number, then no, it's a number.  It's more like Pi in that they are both irrational numbers.  I would, however, relate it more closely to phi (phi is approximately 1.618...), because both were discovered frequently in nature.  Phi is a very interresting number.

-EDIT-
Quote
The only possible way I could think to produce ∞ from an equation would be x*0=0. But as that is undefined, I do not see any other way.
x*0 equals 0.  It's defined as 0, isn't it?  anything * 0 is 0, or so I thought.

Sidoh

Quote from: Tomcat on November 14, 2005, 08:10:25 PM
e is like pi, I believe.  My ti-83 says it's approximately 2.71828182.  If by "like infinity" you mean not a number, then no, it's a number.  It's more like Pi in that they are both irrational numbers.  I would, however, relate it more closely to phi (phi is approximately 1.618...), because both were discovered frequently in nature.  Phi is a very interresting number.

-EDIT-
Quote
The only possible way I could think to produce ∞ from an equation would be x*0=0. But as that is undefined, I do not see any other way.
x*0 equals 0.  It's defined as 0, isn't it?  anything * 0 is 0, or so I thought.

I think those things have already been mentioned.  :P

x * 0 = 0 is one way to think of infinitie, but since you can't devide by zero due to mathematical laws, it's undefined, not infinite.