Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 New Math contest!!! (10 bits)
Index -> Contests
Goto page 1, 2  Next
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Corybu




PostPosted: Fri Oct 03, 2003 1:25 am   Post subject: New Math contest!!! (10 bits)

Ok, whoever gets this first wins.

Theres a catch though, it has to be submitted in a turing program! Just cause you all seem to dislike turing, lol.

What is 2.... +..... 3?


*DUNDUNDUNnnnnnnNNNNnnnnn* *Thunder crackles*

Tough one eh?

GET ON IT!!!!

And neatness counts for the program! I want comments, and it has to have some form of eye candy. Smile lol.
Sponsor
Sponsor
Sponsor
sponsor
Homer_simpson




PostPosted: Fri Oct 03, 2003 8:22 pm   Post subject: Re: New Math contest!!! (10 bits)

Corybu wrote:
Ok, whoever gets this first wins.

Theres a catch though, it has to be submitted in a turing program! Just cause you all seem to dislike turing, lol.

What is 2.... +..... 3?


*DUNDUNDUNnnnnnnNNNNnnnnn* *Thunder crackles*

Tough one eh?

GET ON IT!!!!

And neatness counts for the program! I want comments, and it has to have some form of eye candy. Smile lol.


what da hell does 2.... +..... 3 mean anyway?!
Corybu




PostPosted: Fri Oct 03, 2003 10:20 pm   Post subject: (No subject)

the ....'s represent a dramatic pause... the question is 2+3.

and nobody wants to do it apparently, lol.
Tony




PostPosted: Fri Oct 03, 2003 11:50 pm   Post subject: (No subject)

and tony takes the lead!
code:

const answer:int := 5

put "2+2 = " + answer
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Corybu




PostPosted: Sat Oct 04, 2003 12:44 am   Post subject: (No subject)

tony wrote:
and tony takes the lead!
code:

const answer:int := 5

put "2+2 = " + answer


And tony fails basic math!!!

Wait, lets quote that, just one more time!

Quote:
put "2+2 = " + answer


Ouch. That has to hurt. Sorry tony, you fail. (and Wheres the eye candy?)
(and a more simple approach...
code:
put 2+3

one line. nice, neat, simple... still no eye candy though)
Tony




PostPosted: Sat Oct 04, 2003 12:51 am   Post subject: (No subject)

oh, boo hoo
code:

assuming that x=a, continue calculations:

x^2 = ax

x^2 - a^2 = ax - a^2

(x+a)(x-a) = a(x-a)

divide both sides by (x-a)

x+a = a

since x=a

x+x = x

2x = x
Divide both sides by x

2 = 1

add 3 to both sides

5 = 4

5 = 2 + 2


So in reality, 2 + 2 does in fact equals to 5 Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Corybu




PostPosted: Sat Oct 04, 2003 1:43 am   Post subject: (No subject)

Aside from most of that being entirely pointless...

Quote:
x+x = x


Therefore x must equal 0... and 2x would equal 0 as well.

using that 'formula' if you can call it that... you could say that any number equals any other number...

ie where it says add 3 to each side, you could add any number... say you add 4, it would be 6=5 so then you could argue that my origional question's answer would be 6... (6=5 which equals 6=2+3)

So... it doesnt make sense, lol.

Usually I tell people that I can proove that 2+2=5 and then they tall me to proove it, so I ask for a valuable item of theirs, and tell them if they want it back, then 2+2=5. Very Happy it works everytime, lol.
Catalyst




PostPosted: Sat Oct 04, 2003 1:51 am   Post subject: (No subject)

first line gives it away

Quote:

x^2=ax


since a=x

x^2=x^2
x=x (what a discovery Laughing )
Tony




PostPosted: Sat Oct 04, 2003 2:49 am   Post subject: (No subject)

well x^2=ax is needed for the following line

cuz on the next line we basically take away itself from both sides, bringing them both to zero.

x^2-a^2 = ax-a^2

is same as

x^2-x^2 = ax-ax

so both sides equals zero... then we take those zeros, divide them by zeros and we get some crazy results Laughing

The whole point of introducing A into the equation was in hopes of throwing people of guard during -a^2 line.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Corybu




PostPosted: Sat Oct 04, 2003 3:58 pm   Post subject: (No subject)

Lol, it was a good try.

you still loose though.
DanShadow




PostPosted: Thu Dec 11, 2003 4:53 pm   Post subject: ..

Hmm...Hey Corybu...seeing as nobody actually answered the question correctly... here it is:
2+3=5
muahaha!

code:

%Makes variable 'answer' an integer, and equal to five (5)
var answer : int := 5
%Puts '2+3=' then the puts the answer variable, which is five (5)
put "2+3=", answer
%Puts my rants
put "Muaha, correct! OR is it? (Yes it is)"
%Makes 'answer' variable equal to 2+3
answer := 2+3
%Puts 'Answer=' then puts the new answer, which is also five (5)
put "Answer= ",answer

Woot, got it! 10 bits, or no, heh. Very Happy
CITC




PostPosted: Sun Jan 11, 2004 6:46 pm   Post subject: (No subject)

um, so what was the actual point of this post?
poly




PostPosted: Sun Jan 11, 2004 6:50 pm   Post subject: (No subject)

to write a code in turing to get the answer and to get some bits
w00rm




PostPosted: Mon Feb 16, 2004 7:34 pm   Post subject: (No subject)

sorry to bust your bubble dude buy your equation is completly wrong, if a=x then there is no way you can change the value of the variables just by manipulating by using squares and dividing
Mazer




PostPosted: Mon Feb 16, 2004 7:55 pm   Post subject: (No subject)

Yes, I'm pretty sure that was just a joke. Tony likes to prove 0 = 1 and stuff like that, it's fun. But we know the difference between jokes and mathematical discoveries... in fact, we knew the difference on Saturday October the fourth, in the year 2003 at 2:49 in the morning WHEN HE POSTED THAT!

I don't mean to sound pissed off but how far back did you have to go to dig up this thread?
Display posts from previous:   
   Index -> Contests
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 2  [ 19 Posts ]
Goto page 1, 2  Next
Jump to:   


Style:  
Search: