Math

From Compsci.ca Wiki

Revision as of 02:40, 17 January 2006 by 69.198.211.152 (Talk)
Jump to: navigation, search

Some examples to show how messed up our math system is:

[01:39:40] <Ultrahex> .calc 1/9
[01:39:41] <X3> �Ultrahex�: 0.111111
[01:39:49] <Ultrahex> .calc 0.111111*9
[01:39:49] <X3> �Ultrahex�: 1
[01:39:52] <Ultrahex> hmmm
[01:39:52] <Ultrahex> lol
[01:39:59] <TheFerret> lol
[01:40:07] <Ultrahex> ive been doing math wrong for years
[01:47:23] <Hikaru79> Haha
[01:47:35] <Lotho> Hikaru79, did that code make sense?
[01:48:19] <Hikaru79> Lotho, surprisingly yes.
[01:48:39] <Hikaru79> The last arg is the method's body?
[01:48:55] <Lotho> yep
[01:49:06] <Hikaru79> That explains why you've been slicing args size -2
[01:49:10] <Hikaru79> I was meaning to ask about that. But now I get it.
[01:49:15] <Hikaru79> Yes, I understand that code now :D
[01:49:20] <Lotho> it's an unevaluated message, so doMessage... well, you likely get the picture
[01:52:52] <Ultrahex> YA
[01:53:02] <TheFerret> NO
[01:53:04] <TheFerret> hehe
[01:53:24] * Hikaru79 is now known as Hikaru79|Zzz
[01:53:29] <Ultrahex> 1=0.999999999999999999999999999
[01:53:30] <Ultrahex> hmmmm
[01:53:31] <Hikaru79|Zzz> I'm drifting off x-x Can't stay up anymore.
[01:53:35] <Ultrahex> i think we have a problem
[01:53:36] <Ultrahex> lol
[01:54:39] <Ultrahex> .calc 0.999999999999999999999999999/9
[01:54:39] <X3> �Ultrahex�: 0.111111
[01:54:56] <Ultrahex> .calc 1/7
[01:54:56] <X3> �Ultrahex�: 0.142857
[01:55:03] <Ultrahex> .calc 0.142856*7
[01:55:03] <X3> �Ultrahex�: 1
[01:55:06] <Ultrahex> hmmm wtf
[01:55:10] <TheFerret> lol
[01:55:50] <Ultrahex> this world i think might be falling apart
[01:55:50] <Ultrahex> lol
[01:55:56] <Ultrahex> 10/9
[01:55:59] <Ultrahex> .calc 109
[01:56:00] <X3> �Ultrahex�: 109
[01:56:02] <Ultrahex> .calc 10/
[01:56:02] <X3> �Ultrahex�: Value expected
[01:56:04] <Ultrahex> .calc 10/9
[01:56:04] <X3> �Ultrahex�: 1.111111
[01:56:15] <Ultrahex> *9 = 9.999999
[01:56:18] <Ultrahex> so 10 = 9.999999
[01:56:18] <Ultrahex> hmmmm
[01:56:19] <Ultrahex> lol
[01:56:29] <TheFerret> heh
[01:56:38] <Ultrahex> no wonder my math teacher said i was wrong
[01:57:03] <TheFerret> .calc e^e
[01:57:04] <X3> �TheFerret�: 15.154262
[01:57:29] <TheFerret> weird
[01:57:48] <TheFerret> its a face upside down
[01:58:01] <Ultrahex> e = 2.71828183
[01:58:03] <Ultrahex> ....
[01:58:15] <TheFerret> e^e   <-face upside down
[01:58:27] <Ultrahex> ya ya ya
[01:58:28] <Ultrahex> :P
[01:58:33] <TheFerret> lol... heheh
[01:58:39] <Ultrahex> .calc :P
[01:58:39] <X3> �Ultrahex�: Unknown character in expression
[01:58:44] <Ultrahex> fails miserably
[01:58:47] <TheFerret> lol
[01:59:01] <TheFerret> it would be more like this...
[01:59:07] <TheFerret> .calc pie
[01:59:07] <X3> �TheFerret�: Unexpected Identifier
[01:59:11] <TheFerret> .calc p
[01:59:11] <X3> �TheFerret�: Unexpected Identifier
[01:59:14] <Ultrahex> .calc the world round
[01:59:15] <X3> �Ultrahex�: Unexpected Identifier
[01:59:18] <TheFerret> .calc pi
[01:59:18] <X3> �TheFerret�: 3.141593
[01:59:20] <Ultrahex> .calc the sqrt of pi
[01:59:20] <X3> �Ultrahex�: Unexpected Identifier
[01:59:22] <TheFerret> lol, mmm ppie
[01:59:26] <Ultrahex> GOD DAMNIT!
[01:59:36] <TheFerret> .calc pi^(1/2)
[01:59:36] <X3> �TheFerret�: 1.772454
[01:59:37] <TheFerret> ha
[01:59:43] <Ultrahex> .calc find something good to eat and see how many times you can eat it before turning into poo
[01:59:43] <X3> �Ultrahex�: Unexpected Identifier
[01:59:56] <TheFerret> .calc 1.772454*1.772454
[01:59:56] <X3> �TheFerret�: 3.141593
[01:59:57] <Ultrahex> stupid calculator
[02:00:30] <TheFerret> .calc (-pi)^(1/3)
[02:00:30] <X3> �TheFerret�: 0.682784
[02:00:35] <TheFerret> .calc (-pi)^(1/2)
[02:00:35] <X3> �TheFerret�: 0.564190
[02:00:41] <TheFerret> wtf
[02:01:00] <TheFerret> you cant have a square root of a negative #
[02:01:34] <Ultrahex> x = 1
[02:01:34] <TheFerret> MUHAHAHA, ive broken math
[02:01:41] <Ultrahex> x^2=1
[02:01:50] <Ultrahex> x^2-1=0
[02:01:52] <TheFerret> .calc 1/pi
[02:01:53] <X3> �TheFerret�: 0.318310
[02:02:01] <Ultrahex> x^2=0
[02:02:02] <Ultrahex> hmmm
[02:02:12] <Ultrahex> oh ya forgot to expand
[02:02:12] <Ultrahex> lol
[02:02:15] <TheFerret> lol
[02:02:20] <Ultrahex> x=1
[02:02:23] <Ultrahex> x^2=1
[02:02:34] <Ultrahex> x^2-1=1^2-1
[02:02:55] <TheFerret> heh, so hard reading and doing math on irc
[02:03:01] <Ultrahex> (x^2-1)(x^2-1) = 0
[02:03:08] <Ultrahex> lol i did that wrng
[02:03:09] <Ultrahex> ROFL
[02:03:10] <Ultrahex> ROFL
[02:03:10] <Ultrahex> ROFL
[02:03:11] <TheFerret> lol
[02:03:18] <Ultrahex> (x-1)(x-1)=0
[02:03:20] <Ultrahex> anyhow
[02:03:25] <TheFerret> so you want x^2-1 expanded>
[02:03:28] <Ultrahex> you understand how i got to that :P
[02:03:34] <TheFerret> no
[02:03:35] <TheFerret> lol
[02:03:45] <Ultrahex> oh ok
[02:03:47] <Ultrahex> ill redo it
[02:03:53] <Ultrahex> ill just do x2 for x^2 ok ?
[02:03:57] <TheFerret> k
[02:04:00] <Ultrahex> x=1
[02:04:13] <Ultrahex> x2=12
[02:04:18] <Ultrahex> x2=1
[02:04:26] <Ultrahex> right?
[02:04:35] <TheFerret> ya, so x = 1
[02:04:50] <Ultrahex> ok now minus 1 from both sides
[02:04:53] <Ultrahex> x2-1=0
[02:04:57] <Ultrahex> factor
[02:05:07] <Ultrahex> (x-1)(x+1)=0
[02:05:22] <TheFerret> x = +-1
[02:05:34] <TheFerret> x = -1 is extranous
[02:06:05] <Ultrahex> hehe yup
[02:06:09] <Ultrahex> really funny though
[02:06:09] <Ultrahex> :)
[02:06:14] <Ultrahex> but you could do thsi way 2
[02:06:15] <TheFerret> yeah
[02:06:19] <Ultrahex> x=1 and x2 = 1
[02:06:22] <TheFerret> we did that is math
[02:06:24] <TheFerret> this year
[02:06:33] <Ultrahex> x2-1 = x-1
[02:06:58] <Ultrahex> (x-1)(x+1) = x-1
[02:08:01] <Ultrahex> then x+1=1 (divide by x-1)
[02:08:04] <TheFerret> x+1 = 12
[02:08:05] <Ultrahex> x=2
[02:08:07] <Ultrahex> hmmmmmm
[02:08:19] <Ultrahex> so 1=2
[02:08:20] <TheFerret> yah, i made a type
[02:08:29] <TheFerret> typo*... lol
[02:08:34] <Ultrahex> so many ways to do it
[02:08:35] <Ultrahex> :)
[02:09:01] <Ultrahex> i cant find the other one yet
[02:09:16] <Ultrahex> there is this other math one where its like how sqrt will never work
[02:09:18] <Ultrahex> its weird
[02:09:23] <Ultrahex> and i cant figure it out
[02:09:38] <TheFerret> square root of negative # in the real number system :P
[02:09:46] <Ultrahex> ya i know
[02:10:01] <Ultrahex> it uses imaginary numbers
[02:10:07] <Ultrahex> but something goes weird
[02:10:08] <Ultrahex> hmmm
[02:10:52] <TheFerret> doesnt seem to be on good
[02:10:55] <TheFerret> google*
[02:11:24] <Ultrahex> x=1
[02:11:40] <Ultrahex> -x=-1
[02:11:47] <Ultrahex> bah i cant think of it lol
[02:11:50] <TheFerret> lol
[02:12:23] <Ultrahex> what do you call those things?
[02:12:26] <Ultrahex> math theories or something
[02:12:42] <TheFerret> something like that
[02:14:57] <TheFerret> what a cool eq^n: ( n +1)^2  = n^2  + n  + ( n +1)
[02:16:09] <TheFerret> .calc (4+1)^2
[02:16:09] <X3> �TheFerret�: 25
[02:16:25] <TheFerret> .calc 4^2 + 4 + 5
[02:16:25] <X3> �TheFerret�: 25
[02:16:32] <TheFerret> lol
[02:16:40] <Ultrahex> lol
[02:16:52] <Ultrahex> (n+1)(n+1) = (n+1)^2
[02:17:03] <TheFerret> i found  that off some website
[02:17:08] <Ultrahex> n^2 + n + n + 1
[02:17:14] <Ultrahex> n^2 + 2n + 1
[02:17:19] <Ultrahex> :P Quadratics dumbass :P
[02:17:30] <TheFerret> http://www.google.com/url?sa=t&ct=res&cd=2&url=http%3A//www.embedded.com/98/9802fe2.htm&ei=b8a8Q5S9BISo-gH3pInKDg&sig2=-yLeCSQEIROpjHqCundlYQ
[02:17:51] <TheFerret> friden algo
[02:18:08] <Ultrahex> ^ i just prove the freaking thing above
[02:18:08] <Ultrahex> lol
[02:18:16] <Ultrahex> except its less
[02:18:17] <TheFerret> you did
[02:18:17] <Ultrahex> lol
[02:18:40] <TheFerret> HAHAHAH: Method to Find Square Root of Pi
[02:18:40] <TheFerret> Date: 03/30/97 at 18:36:36
[02:18:40] <TheFerret> From: Jeff Houk
[02:18:40] <TheFerret> Subject: Method to Find Square Root of Pi
[02:18:40] <TheFerret> What is the square root of Pi? I tried using a calculator, but 
[02:18:40] <TheFerret> that didn't work. I tried trial and error and Guess and Check, 
[02:18:40] <TheFerret> but neither of those helped either.  HELP!
[02:18:54] <Ultrahex> !!
[02:18:55] <Ultrahex> ROFL
[02:18:59] <Ultrahex> .calc sqrt [ pi ]
[02:19:00] <X3> �Ultrahex�: 1.772454
[02:19:00] <Ultrahex> :P
[02:19:02] <TheFerret> http://mathforum.org/library/drmath/view/58261.html
[02:19:47] <Ultrahex> im thinking along the lines of
[02:20:06] <Ultrahex> sqrt[-1] = i
[02:20:10] <Ultrahex> right?
[02:20:17] <Ultrahex> i^2 = 1
[02:20:20] <TheFerret> ya
[02:20:26] <Ultrahex> so hmmm
[02:20:32] <TheFerret> i think thats right
[02:20:43] <Ultrahex> x = -1
[02:20:50] <Ultrahex> sqrt[x] = i
[02:21:11] <Ultrahex> x = 1
[02:21:13] <Ultrahex> ya
[02:21:13] <Ultrahex> hmm
[02:21:16] <Ultrahex> -1 = 1
[02:21:22] <TheFerret> weird
[02:21:40] <Ultrahex> cant prove that wrong
[02:21:41] <Ultrahex> lol
[02:21:54] <Ultrahex> but i guess +- x = 1
[02:22:02] <TheFerret> ya
[02:22:02] <Ultrahex> but the thing is .... then 1 = -1
[02:22:04] <Ultrahex> :///
[02:22:09] <Ultrahex> 2 = -2
[02:22:15] <Ultrahex> oh my GOD
[02:22:16] <Ultrahex> lol
[02:22:20] <TheFerret> lol
[02:22:30] <Ultrahex> x = -2
[02:22:44] <Ultrahex> sqrt [ x ] = sqrt [ -2 ]
[02:22:48] <Ultrahex> whats sqrt of -2
[02:22:53] <Ultrahex> 2i ?
[02:22:56] <TheFerret> ya
[02:23:06] <Ultrahex> sqrt [ x ] = 2 i
[02:23:19] <Ultrahex> x = 2
[02:23:20] <Ultrahex> hmmm
[02:23:23] <Ultrahex> GOD DAMNIT
[02:23:24] <Ultrahex> lol
[02:23:25] <TheFerret> you did it wrong
[02:23:32] <Ultrahex> where?
[02:23:47] <TheFerret> it should be sqrt (x) = sqrt (2)i
[02:24:12] <Ultrahex> no
[02:24:18] <TheFerret> yes
[02:24:28] <Ultrahex> ..... how would i get i without sqrooting
[02:24:29] <Ultrahex> lol
[02:24:38] <TheFerret> i = -1
[02:24:58] <Ultrahex> you are forgetting something
[02:25:09] <TheFerret> .calc 2^(1/2)
[02:25:09] <X3> �TheFerret�: 1.414214
[02:25:13] <Ultrahex> ill do it again
[02:25:22] <Ultrahex> x = -2
[02:25:32] <TheFerret> .calc 1.414214 * 1.414214
[02:25:32] <X3> �TheFerret�: 2
[02:25:38] <Ultrahex> sqrt [ x ] = sqrt [ -2 ] (Square Root Both Sides)
[02:25:39] <TheFerret> x=-2
[02:25:46] <Ultrahex> sqrt [ x ] = 2i
[02:25:52] <Ultrahex> 2*i = -2
[02:26:03] <Ultrahex> 2i^2 = 2
[02:26:16] <Ultrahex> :P
[02:26:27] <Ultrahex> yet again 2=-2
[02:26:29] <Ultrahex> 3=-3
[02:26:31] <Ultrahex> ...
[02:26:34] <TheFerret> if you were to square both sides, the roots drop and all you are left with is x=2
[02:26:38] <TheFerret> x=-2*
[02:26:43] <TheFerret> lol
[02:26:50] <Ultrahex> GOD DAMNIT
[02:26:51] <Ultrahex> yes
[02:26:56] <Ultrahex> but im not simplifying yet
[02:26:56] <Ultrahex> lol
[02:27:01] <TheFerret> lol
[02:27:13] <Ultrahex> i change to imaginary numbers because sqrt of a negative number
[02:27:20] <TheFerret> good ole messed up math system
[02:27:23] <Ultrahex> yup
[02:27:57] <TheFerret> isnt i^2, `
[02:27:59] <TheFerret> 1*
[02:28:01] <Ultrahex> yes
[02:28:05] <Ultrahex> thats the point
[02:28:06] <Ultrahex> lol
[02:28:23] <TheFerret> so it would be 2(-1)^2=2
[02:28:40] <Ultrahex> no
[02:28:42] <Ultrahex> it would be
[02:28:50] <Ultrahex> 2(sqrt[-1])^2
[02:28:59] <Ultrahex> so it would be 2
[02:29:06] <TheFerret> where did the root come from
[02:29:08] <Ultrahex> i = sqrt[-1]
[02:29:14] <Ultrahex> i^2=1
[02:29:31] <Ultrahex> i^2=-1***
[02:29:40] <TheFerret> yeah
[02:29:48] <Ultrahex> hmmm whats going on now im so confused
[02:29:48] <Ultrahex> lol
[02:30:25] <TheFerret> so its 2(sqrt-1) * 2(sqrt-1) =2
[02:30:48] <TheFerret> or 2i *2i =2
[02:31:09] <TheFerret> i*i=1
[02:31:10] <Ultrahex> i dont even know anymore lol
[02:31:16] <Ultrahex> !!!
[02:31:19] <Ultrahex> i^2=-1
[02:31:20] <TheFerret> i^2=1
[02:31:27] <TheFerret> lol
[02:31:27] <Ultrahex> no its negative 1
[02:31:29] <Ultrahex> lol
[02:31:30] <TheFerret> its one
[02:31:32] <Ultrahex> WTF is going on
[02:31:40] <Ultrahex> sqrt[-1] = i
[02:31:50] <Ultrahex> that doesn't work man
[02:31:51] <Ultrahex> lol
[02:31:56] <TheFerret> ok, it is -1
[02:31:57] <Ultrahex> fuck i told you 1=-1
[02:32:00] <TheFerret> lol
[02:32:04] <Ultrahex> 2=-2
[02:32:09] <Ultrahex> jeez this is taking to long
[02:32:10] <Ultrahex> lol
[02:32:12] <TheFerret> lol
[02:32:22] <Ultrahex> i better go to bed soon
[02:32:23] <Ultrahex> lol
[02:32:24] <TheFerret> heh
[02:32:35] <TheFerret> how did i get i^2 to =1 then
[02:32:36] <TheFerret> lol
[02:32:41] <Ultrahex> exactly
[02:32:42] <Ultrahex> lol
[02:33:23] <TheFerret> wait for that it would be (-1)*(-1)=1 which is true
[02:33:36] <TheFerret> so i proved that you are right
[02:33:53] <Ultrahex> hmmm now to just document it
[02:33:55] <Ultrahex> and sell on ebay
[02:33:55] <Ultrahex> loo
[02:34:02] <Ultrahex> l
[02:36:44] <Ultrahex> in Imaginary Numbers
[02:36:44] <Ultrahex> i = sqrt[-1]
[02:36:44] <Ultrahex> so (Since squareroot cancels out)
[02:36:44] <Ultrahex> i^2 = -1
[02:36:44] <Ultrahex> x=-1
[02:36:45] <Ultrahex> sqrt[x] = sqrt[-1]
[02:36:50] <Ultrahex> sqrt[x] = i
[02:36:52] <Ultrahex> x = i^2
[02:36:54] <Ultrahex> x = sqrt[-1]^2
[02:36:56] <Ultrahex> x = -1
[02:36:58] <Ultrahex> you must covert to sqrt[-1] otherwise....
[02:37:00] <Ultrahex> x = i^2
[02:37:01] <Ultrahex> x = 1^2
[02:37:04] <Ultrahex> x = 1
[02:37:18] <Ultrahex> minute wtf
[02:37:21] <Ultrahex> i did something wrong?
[02:37:31] <TheFerret> lol
[02:37:52] <Ultrahex> i^2 = -1 not 1
[02:37:53] <Ultrahex> thats why
[02:37:54] <Ultrahex> :P
[02:37:58] <Ultrahex> we fucked up really good
[02:37:59] <Ultrahex> lol
[02:38:03] <Ultrahex> we r dumbass
[02:38:04] <Ultrahex> lol
[02:38:04] <TheFerret> heh, did we... lol
[02:38:20] <Ultrahex> now i really gotta find it online

but we like it this way better...

( 21:42:28 ) ( @Ultrahex ) -1/1 = 1/-1 ( 21:42:33 ) ( @Ultrahex ) sqrt(-1/1) = sqrt(1/-1) ( 21:42:37 ) ( @Ultrahex ) sqrt(-1) / sqrt(1) = sqrt(1) / sqrt(-1) ( 21:42:41 ) ( @Ultrahex ) i/1 = 1/i. ( 21:42:44 ) ( @Ultrahex ) i / 2 = 1 / (2i), ( 21:42:48 ) ( @Ultrahex ) i/2 + 3/(2i) = 1/(2i) + 3/(2i), ( 21:42:53 ) ( @Ultrahex ) i (i/2 + 3/(2i) ) = i ( 1/(2i) + 3/(2i) ), ( 21:42:56 ) ( @Ultrahex ) (i^2)/2 + (3i)/2i = i/(2i) + (3i)/(2i), ( 21:43:00 ) ( @Ultrahex ) (-1)/2 + 3/2 = 1/2 + 3/2, ( 21:43:03 ) ( @Ultrahex ) 1=2.

Personal tools