The Math Help Topic

For everything not related to either Rayman or Pirate-Community.
Forum rules
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
Tobbe
Death Fairy
Posts: 7902
Joined: Fri Dec 10, 2004 4:16 pm
Location: Namsos, Norway
Tings: 292131

Re: The Math Help Topic

Post by Tobbe »

Jewish Candy wrote:
Tobbe wrote:Good Sir, your argumentation is flawed. That's rather like saying that without raw eggs there wouldn't be any cake, therefore raw eggs own cake. Yet I am sure that we all agree that we would feel slightly disappointed when, come dessert, we were served raw eggs.
That's the best allegory I've ever heard for anything. What a shame it's wrong. :mrgreen:
Just because we like the taste of cake more than that of raw egg doesn't mean cake owns raw egg. The purpose of cake is to be eaten; the purpose of raw egg is to make up for the fact that it never became a chicken by existing. If the two were in a fight, the raw egg's insides would end up over the cake, rendering it inedible. Result - raw egg godpawns cake every time.
My head hurts.
I'm afraid it is you who are wrong, my friend. The scenario you describe is impossible, as both cakes and raw eggs are non-sentient, immobile objects without the ability to fight each other. Furthermore, since you are so interested in so-called purposes: It's neither the purpose of cake nor raw eggs to participate in fights, therefore the outcome of a so-called "fight" between the two is irrelevant to this discussion.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The Math Help Topic

Post by DesLife »

Jewish Candy wrote:
DesLife wrote:You should become French and rule the world with us.
I am nationless - and I likes it that way. Thanks for the offer though :wink:

EDIT: You're probably not talking to me. Sowwi.
Yes I was, but it seems you leave me no choice...
PluMGMK wrote:
DesLife wrote:(well Raylex's an exception :mrgreen: ) !
Yeah, but he does have more powers than English mods.
Yup, but his powers will be mine.
Jewish Candy
Creveton (good)
Posts: 7031
Joined: Fri Jun 18, 2010 2:13 pm
Tings: 28664

Re: The Math Help Topic

Post by Jewish Candy »

DesLife wrote:
Jewish Candy wrote:
DesLife wrote:You should become French and rule the world with us.
I am nationless - and I likes it that way. Thanks for the offer though :wink:

EDIT: You're probably not talking to me. Sowwi.
Yes I was, but it seems you leave me no choice...
No choice about... what...? :sad:
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The Math Help Topic

Post by Matyuv »

Physics studies a lot of very interesting concepts, to which maths is often applied; same goes for computer science, chemistry etc. Maths is the "root of awesome", if you will... now what is it based on? Pure human thought, power of the brain... Physics is too, but not quite as much, I believe.
PluMGMK
Annetta Fish
Posts: 40514
Joined: Fri Jul 31, 2009 9:00 pm
Location: https://www.youtube.com/watch?v=cErgMJSgpv0
Contact:
Tings: 136636

Re: The Math Help Topic

Post by PluMGMK »

DesLife wrote:
PluMGMK wrote:
DesLife wrote:(well Raylex's an exception :mrgreen: ) !
Yeah, but he does have more powers than English mods.
Yup, but his powers will be mine.
When though?
Raylex
Eig
Posts: 16811
Joined: Wed Jul 27, 2005 12:22 pm
Tings: 43081

Re: The Math Help Topic

Post by Raylex »

Jewish Candy wrote:
DesLife wrote:Because we're way awesomer (well Raylex's an exception :mrgreen: ) !
Agreed there. 8)
You can't agree with this jerk! God dam' yal! :pascontent:
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The Math Help Topic

Post by DesLife »

Of course they can.
Plum : soon.
Jewish Candy
Creveton (good)
Posts: 7031
Joined: Fri Jun 18, 2010 2:13 pm
Tings: 28664

Re: The Math Help Topic

Post by Jewish Candy »

Raylex wrote:
Jewish Candy wrote:
DesLife wrote:Because we're way awesomer (well Raylex's an exception :mrgreen: ) !
Agreed there. 8)
You can't agree with this jerk! God dam' yal! :pascontent:
I was under the impression he was complimentin' ya. :| You're a global mod, right?
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The Math Help Topic

Post by DesLife »

Jewish Candy wrote:I was under the impression he was complimentin' ya. :| You're a global mod, right?
Ahah I love teasing him. Yup, unfortunately, he's a global mod. :mrgreen:
Raylex
Eig
Posts: 16811
Joined: Wed Jul 27, 2005 12:22 pm
Tings: 43081

Re: The Math Help Topic

Post by Raylex »

Jewish Candy wrote:
Raylex wrote:
Jewish Candy wrote:
DesLife wrote:Because we're way awesomer (well Raylex's an exception :mrgreen: ) !
Agreed there. 8)
You can't agree with this jerk! God dam' yal! :pascontent:
I was under the impression he was complimentin' ya. :| You're a global mod, right?
Yeah, I'm the boss 8)
DesLife is just a Iznogoud-like idiot! :P
Jewish Candy
Creveton (good)
Posts: 7031
Joined: Fri Jun 18, 2010 2:13 pm
Tings: 28664

Re: The Math Help Topic

Post by Jewish Candy »

Raylex wrote: Yeah, I'm the boss 8)
DesLife is just a Iznogoud-like idiot! :P
Aww, harsh... still, if you're the boss you have a right to say whatever. :wink:
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The Math Help Topic

Post by DesLife »

Raylex wrote:Yeah, I'm the boss 8)
DesLife is just a Iznogoud-like idiot! :P
Just you wait, you silly Caliph.
PluMGMK
Annetta Fish
Posts: 40514
Joined: Fri Jul 31, 2009 9:00 pm
Location: https://www.youtube.com/watch?v=cErgMJSgpv0
Contact:
Tings: 136636

Re: The Math Help Topic

Post by PluMGMK »

DesLife wrote:Plum : soon.
Ah, but how soon is soon?
Acarr
Electoon
Posts: 18436
Joined: Fri Jul 18, 2008 10:49 am
Location: In a galaxy far far away
Tings: 0

Re: The Math Help Topic

Post by Acarr »

Anyone good at biology here...?

Which of the following processes requires infolding (?) of the cell membrane?

1. Diffusion
2. Phagocytosis
3. Active Transport
4. Osmosis
Rayfist
Edith Up
Posts: 12553
Joined: Wed Jul 07, 2010 8:36 pm
Location: Right here, right now!
Tings: 176605

Re: The Math Help Topic

Post by Rayfist »

A topic for HOMEWORK HELP!? You guys are the coolest. I start school soon.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The Math Help Topic

Post by DesLife »

PluMGMK wrote:
DesLife wrote:Plum : soon.
Ah, but how soon is soon?
6 months.

Instead of posting this in the You Game, because I'm sure no one is interested in this awesome convo, I suggest we continue here, mat.

Code: Select all

bool is_prime(int n)
{
	int start = 5;
	if (n==1)   return false;
	if (n<4)    return true;
	if (n%2==0) return false;
	if (n<9)    return true;
	if (n%3==0) return false;
	while (start <= sqrt((double)n))
	{
		if (n%start==0) return false;
		if (n%(start+2)==0) return false;
		start += 6;
	}
	return true;
}
I guess % stands for mod. What's ((double)n) though ? And start +=6 means start:=start+6 I assume. So you reduce the number of calculations needed.
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The Math Help Topic

Post by Matyuv »

% stands for mod yeah.

(double)n is just a type conversion from an integer to a floating point number (so called "double"), because sqrt() doesn't take integers as arguments. It's a language technicality that has nothing to do with the problem itself...
start +=6 means start:=start+6 I assume
Yeah. I'm using the fact that all primes over 3 are of form 6k+1 or 6k-1.

I wonder if there's a more efficient way to do this..


btw orsum bump.
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The Math Help Topic

Post by DesLife »

Matyuv wrote:because sqrt() doesn't take integers as arguments.
Ahahah that's stupid.
Matyuv wrote:Yeah. I'm using the fact that all primes over 3 are of form 6k+1 or 6k-1.
I wonder if there's a more efficient way to do this...
I didn't know that ! Now this program makes perfect sense. And it seems good, but I'll do some research about such functions.

Btw, what have you studied this year so far ?
Matyuv
Gangsta Globox
Posts: 21362
Joined: Thu Apr 29, 2004 10:22 am
Tings: 54431

Re: The Math Help Topic

Post by Matyuv »

Vector calculus, functions of a complex variable, complex integration, series, function series, binary relations, boolean algebgra, graph theory... That's it, I think. You?
DesLife
Foutch
Posts: 19946
Joined: Sat Jun 12, 2004 12:42 pm
Tings: 186263

Re: The Math Help Topic

Post by DesLife »

Some new stuff about algebraic structures (like ideal rings), normed vector spaces, integration, series, function series, power series, diagonalisation and trigonalisation, Fourier series, multivariable calculus, pre-Hilbert spaces.
Post Reply