Shoutbox

Maths Help (for the know alls :P) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: General Chit Chat (/forumdisplay.php?fid=14)
+----- Thread: Maths Help (for the know alls :P) (/showthread.php?tid=41632)

Maths Help (for the know alls :P) by Ash_ on 03-31-2005 at 12:55 PM

ok well, im wokring on an assignment, and its asked.

The sum of a number and it's reciprocal is 30. Find the number.

please _dont_ do it for me but can someone show me how to work out the answer with say a different number.

thanks.

edit: dont' do it for me


RE: Maths Help (for the know alls :P) by John Anderton on 03-31-2005 at 01:00 PM

quote:
Originally posted by Ash_
The sum of a number and it's reciprocal is 30. Find the number.
x+1/x=30
x^2 + 1 = 30x
X^2 - 30x +1 = 0
A x^2 + B x + C = 0
Is a fraction ok ?? Cause its gotta be :S
Use [-B +- (B^2 - 4 AC)1/2] / 2A = Roots
ie roots are [-B + (B^2 - 4 AC)^1/2] / 2A And [-B + (B^2 - 4 AC)1/2] / 2A
Ill work it out ;)
RE: RE: Maths Help (for the know alls :P) by Ash_ on 03-31-2005 at 01:03 PM

rofl yeh fractions are ok.

that crap looks like a different language.

i obviously wasnt paying attention when he showed us the example :P.


*is thinking about deleting the Elisha pics on his phone :P


RE: Maths Help (for the know alls :P) by mad_onion on 03-31-2005 at 02:07 PM

no how is that bragging?
i dont understand what JA wrote it looks really complicated. is it supposed to be a joke cause it is scaring me that i dont know how to do it at all?


RE: Maths Help (for the know alls :P) by Ash_ on 03-31-2005 at 02:25 PM

hold on. i took what you said the wrong way, i thought you were saying that i was stupid because i didnt understand it. sorry lol.

umm on MSN he told me its his formula. so maybe thats why it looks so complex because its like a custom one ?

sorry again for the misunderstanding :P


RE: Maths Help (for the know alls :P) by John Anderton on 03-31-2005 at 02:26 PM

Ya i was just helping him with maths. If i can help then why not ... :)
What i said was this.
let the no be "x"
The no+its reciprocal is x+1/x ... and that should be 30
So x+1/x=30
Multiply throughout by x
x^2+1=30x
Note:- x^2 means x raised to the power 2 or x square
so the eq is x^2 - 30x + 1=0
Now we need to factorise this into 2 numbers such that the product is 1 and the sum is 30
WTF thats not possible :|
The sum is wrong :P

quote:
Originally posted by Ash_
i obviously wasnt paying attention when he showed us the example .
The example must be different cause i was dwelling on it while i was playing soccer for the past hour or so and ... not possible :S
U need to get the question again :D Call someone up :)
RE: Maths Help (for the know alls :P) by CookieRevised on 03-31-2005 at 02:34 PM

Well, I hate to repeat stuff, but maybe this looks a bit less like 'Chinees' (no punn intended to the Chinees people :D):

Given:
  x + reciprocal(x) = 30
  (where reciprocal(x) = 1/x)

Search: x

Solution:
  x + reciprocal(x) = 30
  => x + 1/x = 30
  => (x + 1/x) * x = 30 * x
  => x² + 1 = 30 * x
  => x² - 30x + 1 = 0

this is a normal quadratic equation in the form of:
  ax² + bx + c = 0     this formula is basic knowledge!
so:
  a = 1   ,   b = -30   ,   c = 1

and to find x:

[Image: eq0288M.gif]     this formula is basic knowledge!

(mind the ± in front of the square root, this means there are two possible solutions)

^^ now solve that normal equation:

the discriminate (b² - 4ac):
  => b² - 4ac = (-30)² - 4 * 1 * 1
  => b² - 4ac = 896
the discriminate is positive so we will get a 'real' number. (dunno if you already studied 'complex' numbers or also called 'imaginary' numbers. But if the discriminate is negative you will take the square root out of a negative number, resulting in a complex (or imaginary) solution for x.

now to go further with calculating x:
  => x = [ 30 ± sqr(896) ] / 2
  => x = 30 / 2 ± sqr(896) / 2
  => x = 15 ± sqr(896) / sqr(4)
  => x = 15 ± sqr(896 / 4)
  => x = 15 ± sqr(224)

solution 1:  x = 15 + sqr(224)
solution 2:  x = 15 - sqr(224)


-------

PS: John Anderton, you made a big mistake; you forgot the square root in your formula!
"Use [-B +- (B^2 - 4 AC)^1/2] / 2A"


RE: Maths Help (for the know alls :P) by John Anderton on 03-31-2005 at 02:39 PM

quote:
Originally posted by CookieRevised

PS: John Anderton, you made a big mistake; you forgot the square root in your formula!
"Use [-B +- (B^2 - 4 AC)^1/2] / 2A"
That was a typo ... and i told u the eqn doesnt have any real roots only such odd irrational ... 8-) (4go what they r called; they aint irrational) numbers.
:)
EDIT :-
quote:
Originally posted by Hobbes

whats a reciprocol? Is it like the reciprocol of 2 is 1/2?
Reciprocal is any number taken as 1/
Yes the reicprocal of 2 is 1/2 and vice versa ....
Divide the number by 1 and it becomes (is called actually) its reciprocal.
RE: Maths Help (for the know alls :P) by CookieRevised on 03-31-2005 at 02:52 PM

quote:
Originally posted by John Anderton
quote:
Originally posted by CookieRevised
PS: John Anderton, you made a big mistake; you forgot the square root in your formula!
"Use [-B +- (B^2 - 4 AC)^1/2] / 2A"
That was a typo ...
a massive typo if I made add :D

quote:
Originally posted by John Anderton
and i told u the eqn doesnt have any real roots only such odd irrational ... 8-) (4go what they r called; they aint irrational) numbers.
the solution does have 2 real numbers...
(and what you mean are complex numbers or imaginary numbers)
RE: Maths Help (for the know alls :P) by .Roy on 03-31-2005 at 02:56 PM

Cookie is right. I just started studying this equation with 2 answers.

any problem that is like

ax^2 + bx + c  = 0

you can find two answers for. There is more then one equation to do so. But the one Cookie posted is a better one for this equation.


RE: Maths Help (for the know alls :P) by John Anderton on 03-31-2005 at 02:59 PM

quote:
Originally posted by CookieRevised
a massive typo if I made add :D
;)
Clarified everything over msn ... whole concept so no harm done :dodgyomar:

quote:
Originally posted by CookieRevised
(and what you mean are complex numbers or imaginary numbers)
(-2)^1/2 is a complex number.
Square of 2 and - 2 is 4 .... so there isnt really a square root of -2 or any other -ve no .... a calci will show it as E (infinity :|)
So we write it as 2i where i=(-1)^1/2

So acutally 2i+3 means (-2)^1/2+3 :D
Thats a complex / imaginary number.
Was that a question or did i say that somewhere ?
I dont think i did :S ^o) So that must be a question :)

[b]EDIT :-[/b]
quote:
Originally posted by Hobbes
Cookie is right. I just started studying this equation with 2 answers.

any problem that is like

ax^2 + bx + c  = 0

you can find two answers for. There is more then one equation to do so. But the one Cookie posted is a better one for this equation.
:S WTF ... both of us said the same thing ... mine had a typo which was corrected :S
He said it in detail ... i just multiplied and showed it cause i was in a hurry ... i didnt show the answer as it wasnt a perfect whole number :P I told all this on msn :P
RE: Maths Help (for the know alls :P) by CookieRevised on 03-31-2005 at 03:02 PM

quote:
Originally posted by John Anderton
and i told u the eqn doesnt have any real roots only such odd irrational ... 8-) (4go what they r called; they aint irrational) numbers.
so that clearly states: "tell me what the heck they were called" :D

So to sum up and to explain properly:

rational numbers:
numbers having a terminating decimal point.
in other words, numbers which can be written as a fraction.
eg: 9/4 = 2.25

irrational numbers:
numbers which don't have a terminating decimal point.
in other words, numbers which can not be written as a fraction.
eg: pi = 3.14159265359....

complex/imaginary numbers:
Contrary to what some people might tell you, 'imaginary' numbers are not numbers that only exist in the brains of weird people. Or maybe they are :D; all numbers in math are "imaginary" in the sense that you can't touch them or experience them directly. But this is not what people mean when they talk about 'imaginary' numbers. Imaginary numbers are numbers that can be written as a real number times i, where i=sqr(-1)
It was invented to be able to calculate with numbers which can't exist.

eg: 5i = 5 * sqr(-1)

complex numbers are numbers like 3 + 5i; they are a real number plus an imaginary number.

-----------

quote:
Originally posted by John Anderton
He said it in detail ... i just multiplied and showed it cause i was in a hurry ... i didnt show the answer as it wasnt a perfect whole number I told all this on msn
tbh, I don't care what is said on msn. This is a forum, everybody can read this, so either take your time and explain it correctly and detailed (especially in math cases) or don't :XP:

(this whole thread could be as small as a post or 3 when things were explained correctly and detailed in the first place)

;)
RE: Maths Help (for the know alls :P) by John Anderton on 03-31-2005 at 03:08 PM

quote:
Originally posted by CookieRevised
(4go what they r called; they aint irrational) numbers.
What i meant was they aint whole numbers .....
An irrational number is a number that cannot be expressed as p/q (a fraction) for any integers p and q. Irrational numbers have decimal expansions that neither terminate nor become periodic.
Imaginary numbers = complex numbers = definition already explained :)
Btw ... i knew the definition of irrational numbers but i was too lazy to type it so got it here :P

EDIT:-
quote:
Originally posted by CookieRevised
tbh, I don't care what is said on msn. This is a forum, everybody can read this, so either explain it correctly (especially in such math cases) or don't

(this whole thread could be as small as a post or 3 when things were explained correctly and detailed in the first place)

Sorry :'(
* John Anderton cries and runs as he is no match for the Cookie's reply to series :)
* John Anderton is a cookie fan btw :)

quote:
Originally posted by CookieRevised

But this is not what people mean when they talk about imaginary numbers. Imaginary numbers are numbers that can be written as a real number times i, where i=sqr(-2)
:S i = sqr (-1) .....
Thats what i learnt last year and i am sure it is correct
Sqr of a -ve no is an imaginary number and its combination with a real number is a complex number :)

EDIT 2:-
Ok here is that sqr(-1) i was saying ....
Wolfram research - MathWorld - Imaginary Numbers
RE: Maths Help (for the know alls :P) by CookieRevised on 03-31-2005 at 03:14 PM

I already posted the proper and simple definitions of the namings of numbers 15 minutes ago... (and moved them to my previous post)... So reload the thread before answering...

quote:
Originally posted by John Anderton
i = sqr (-1) .....
PS: yeah, my typo :D, it is -1

because the confussing thread I got confussed too :P but -1 or -2 doesn't matter in the OP's question at all.....



(lol @ my own reply, always something to say back... /me slaps himself...... I'll sush now)
RE: Maths Help (for the know alls :P) by mad_onion on 03-31-2005 at 06:39 PM

oh ok i think i see what you are doing a bit more i have used that equation. and dont worry about the misunderstanding Ash i do it all the time :)


RE: Maths Help (for the know alls :P) by John Anderton on 04-01-2005 at 11:49 AM

Ok i have a maths problem .... Its a sum of probability .... I got the answer but probability is a bit dodgy and its so easy to make a mistake .... Can some one also try this problem

There is a dictionary containing only 5 letter words and there are only 4 letters viz. a, b, c, d, e.
The 1st word is aaaaa the second is aaaab the third is aaaac and so on.
Now we need to find the position of the word "adbca"

The answer i worked out is 216 .... can someone back up my answer ...... none of my friends have solved it ..... plus group solving aint allowed (if caught then im screwed :dodgy:)


RE: Maths Help (for the know alls :P) by Banks on 04-01-2005 at 08:44 PM

a   b   c   d   e
0   1   2   3   4

adbca
03120

(0*5^4)+(3*5^3)+(1*5^2)+(2*5^1)+(0*5^0)
(0*625)+(3*125)+(1*25)+(2*5)+(0*1)
0+375+25+10+0
410

410/5 82 R 0
82/5 16 R 2
16/5 3 R 1
3/5 0 R 3

3120


RE: Maths Help (for the know alls :P) by Chrono on 04-01-2005 at 09:12 PM

quote:
Originally posted by CookieRevised
Well, I hate to repeat stuff, but maybe this looks a bit less like 'Chinees' (no punn intended to the Chinees people :D):

Given:
  x + reciprocal(x) = 30
  (where reciprocal(x) = 1/x)

Search: x

Solution:
  x + reciprocal(x) = 30
  => x + 1/x = 30
  => (x + 1/x) * x = 30 * x
  => x² + 1 = 30 * x
  => x² - 30x + 1 = 0

this is a normal quadratic equation in the form of:
  ax² + bx + c = 0     this formula is basic knowledge!
so:
  a = 1   ,   b = -30   ,   c = 1

and to find x:

[Image: eq0288M.gif]     this formula is basic knowledge!

(mind the ± in front of the square root, this means there are two possible solutions)

^^ now solve that normal equation:

the discriminate (b² - 4ac):
  => b² - 4ac = (-30)² - 4 * 1 * 1
  => b² - 4ac = 896
the discriminate is positive so we will get a 'real' number. (dunno if you already studied 'complex' numbers or also called 'imaginary' numbers. But if the discriminate is negative you will take the square root out of a negative number, resulting in a complex (or imaginary) solution for x.

now to go further with calculating x:
  => x = [ 30 ± sqr(896) ] / 2
  => x = 30 / 2 ± sqr(896) / 2
  => x = 15 ± sqr(896) / sqr(4)
  => x = 15 ± sqr(896 / 4)
  => x = 15 ± sqr(224)

solution 1:  x = 15 + sqr(224)
solution 2:  x = 15 - sqr(224)


-------

PS: John Anderton, you made a big mistake; you forgot the square root in your formula!
"Use [-B +- (B^2 - 4 AC)^1/2] / 2A"
oh thakns cookie, yu are so brilliant :O

now help me please with this problem:

[Image: attachment.php?pid=426407]

(its not hard, but i would love to see how does he manage to write the solution here :lol:)
RE: Maths Help (for the know alls :P) by CookieRevised on 04-01-2005 at 09:48 PM

quote:
Originally posted by John Anderton
Ok i have a maths problem .... Its a sum of probability .... I got the answer but probability is a bit dodgy and its so easy to make a mistake .... Can some one also try this problem

There is a dictionary containing only 5 letter words and there are only 4 letters viz. a, b, c, d, e. The 1st word is aaaaa the second is aaaab the third is aaaac and so on. Now we need to find the position of the word "adbca"
as far as I'm understanding your question this has nothing to do with probability at all. This is pure base conversion from base 5 to base 10.
quote:
Originally posted by John Anderton
(...) and there are only 4 letters viz. a, b, c, d, e.
a, b, c, d, e are 5 letters... and what is "viz"?
quote:
Originally posted by John Anderton
The answer i worked out is 216 .... can someone back up my answer
Your own answer is also wrong.


Let me explain:

Given:
  5 letters: a b c d e
  dictionary:
    aaaaa
    aaaab
    aaaac
    aaaad
    aaaae
    aaaba
    aaabb
    aaabc
    (...)

Question: what position is "adbca" in?

Solution:

Look at the dictionary. This is just a simple count up, but instead of 10 numbers, they've used 5 letters. So replace every letter with a number: a = 0    b = 1   c = 2   d = 3   e = 4:
  aaaaa     00000
  aaaab     00001
  aaaac     00002
  aaaad     00003
  aaaae     00004
  aaaba     00010 note the "jump" from 04 to 10
  aaabb     00011
  aaabc     00012
  (...)       (...)

5 different letters numbers means this is base 5.
base 10 is what we know as our normal number system: When we come to the number after 9, we add a digit and start counting again from 0 for the least significant digit: 00 01 02 (...) 08 09 10 11 12 etc...

So, add an index to the dictionary and you'll see that you only have to convert the base 5 number to a base 10 number to know it's value aka position (first position is called position 0):

  dictionary | base 5 number | base 10 number (aka position)
  aaaaa          00000               0
  aaaab          00001               1
  aaaac          00002               2
  aaaad          00003               3
  aaaae          00004               4
  aaaba          00010               5
  aaabb          00011               6
  aaabc          00012               7
  (...)            (...)                (...)


Thus adbca = 03120

So all this to explain the simple following formula:

To calculate the equivalent base ten number:
= 0 * 5^4   +   3 * 5^3   +   1 * 5^2   +   2 * 5^1   +   0 * 5^0
= 410

This is not yet the answer! Now it is time to read the question again. They asked what position the number is in. And positions useually start at 1. To make no confusion say this also in your answer ;):

= 411 (with first position being 1)


-------------------------------


quote:
Originally posted by Chrono
oh thakns cookie, yu are so brilliant :O
now help me please with this problem:

[Image: attachment.php?pid=426407]

(its not hard, but i would love to see how does he manage to write the solution here :lol:)
:refuck:
RE: Maths Help (for the know alls :P) by John Anderton on 04-03-2005 at 11:50 AM

sorry that should have been 4 letters .... a,b,c,d and e
viz. = namely .... :undecided:
Its not probability .... its using permutation and combination :D

quote:
Originally posted by CookieRevised
To calculate the equivalent base ten number:
= 0 * 5^4   +   3 * 5^3   +   1 * 5^2   +   2 * 5^1   +   0 * 5^0
= 410
:undecided:
quote:
Originally posted by John Anderton
The answer i worked out is 216
I dunno that formula that u r using .... can u do the same question with permutation and combination ..... i have used a simple logic .... i hope u understand ... her it goes.
1st word aaaaa
2nd         aaaab
3             aaaac
4             aaaad
5             aaaba

Ok so 4 changes r possible in the 1st letter (from the right) (like units place in numbers) ....
5th change will make the 2nd letter from the right change once.
So When the 1st letter changes 25 times (5*5) then the 3rd letter from the right will change.
When the 1st letter changes 125 times then the 4th letter changes once .....
the 4th letter from the right changes 3 times (a -> b -> c ->d) thus ..... 125*3 = 375

Now the 3rd letter from the right needs to change 1 time (a -> b) so ..... so the 1st letter needs to change 25 times .... {Total of 375 + 25 = 400 words have passed}

Now the 2nd letter from the left needs to change 2 times (a -> b -> c) so the 1st letter needs to change 5 * 2 = 10 times {so a total of 410 words have passed and we have reached adbca}

So shouldnt that be the answer :S
... :O our ans are almost the same but urs is 411 :S.
Where did i go wrong ^o)
I started my counting from one :(

The earlier ans i got was different as i had taken the factor as 4 ie. for every 4 changes of the 1st letter the next one changes once.
RE: Maths Help (for the know alls :P) by Banks on 04-03-2005 at 03:25 PM

quote:
Originally posted by John Anderton
Where did i go wrong
quote:
Originally posted by CookieRevised
This is not yet the answer! Now it is time to read the question again. They asked what position the number is in. And positions useually start at 1. To make no confusion say this also in your answer :

= 411 (with first position being 1)


RE: RE: Maths Help (for the know alls :P) by CookieRevised on 04-03-2005 at 04:04 PM

quote:
Originally posted by John Anderton
sorry that should have been 4 letters .... a,b,c,d and e
a,b,c,d and e are still 5 letters. Make up your mind :P

quote:
Originally posted by John Anderton
I dunno that formula that u r using .... can u do the same question with permutation and combination .....
perhaps, but that is a very very confusing and long long way to do it.

quote:
Originally posted by John Anderton
1st word aaaaa
2nd        aaaab
3           aaaac
4           aaaad
5           aaaba
So now you're saying only 4 letters are possible??? a, b, c, d? In that case:

adbca = 03120

To calculate from a base 4 number to the equivalent base ten number:
= 0 * 4^4   +   3 * 4^3   +   1 * 4^2   +   2 * 4^1   +   0 * 4^0[/b]
= 216

or 217, considering the first position is position 1.

I'm not going to repeat the whole thing again though, see my previous reply in how you calculate this and the simple logic behind it. And follow the method with a piece of paper and create the tables on paper.

The important part is (for 5 possible letters): a, b, c, d, e
  dictionary | base 5 number | base 10 number (aka position-1)
  aaaaa          00000               0
  aaaab          00001               1
  aaaac          00002               2
  aaaad          00003               3
  aaaae          00004               4
  aaaba          00010               5
  aaabb          00011               6
  aaabc          00012               7
  aaabd          00013               8
  aaabe          00014               9
  aaaca          00020               10
  (...)            (...)                (...)

The important part is (for 4 possible letters): a, b, c, d
  dictionary | base 4 number | base 10 number (aka position-1)
  aaaaa          00000               0
  aaaab          00001               1
  aaaac          00002               2
  aaaad          00003               3
  aaaba          00010               4
  aaabb          00011               5
  aaabc          00012               6
  aaabd          00013               7
  aaaca          00020               8
  (...)            (...)                (...)


quote:
Originally posted by John Anderton
Ok so 4 changes r possible in the 1st letter (from the right) (like units place in numbers) ....
Wrong... looking at your dictionary you just posted:
1st word aaaaa => no change!
2nd        aaaab => 1st change
3           aaaac => 2nd change
4           aaaad => 3rd change
5           aaaba => 4th change, we go to the next unit

I see only 3 possible changes for the first unit!!! a->b  b->c  c->d

As I say, don't use the method your using, it is very very long and very very confusing and you bound to make (logic) errors.

Look at "adbca" as a code, a series of numbers, thus convert it to numbers first. Not as some string where you calculate the "changes"...


quote:
Originally posted by John Anderton
5th change (note: this is wrong if there are only 4 possible letters... it's the 4th change!!! see above) will make the 2nd letter from the right change once. So When the 1st letter changes 25 times (5*5) then the 3rd letter from the right will change. When the 1st letter changes 125 times then the 4th letter changes once .....
the 4th letter from the right changes 3 times (a -> b -> c ->d) thus ..... 125*3 = 375
Revise what you just told here and put it in simple maths:

for each unit: "number of changes" * "total possible numbers" ^ "position of unit"

note: in maths we start counting at 0, not 1!! 0 is also a number, the first number.

eg 1:
- total numbers = 5 possible letters: a, b, c, d, e
- number of changes (value of the letter) for unit 0 in "adbca" = 0  => 0 * 5 ^ 0
- number of changes (value of the letter) for unit 1 in "adbca" = 2  => 2 * 5 ^ 1
- number of changes (value of the letter) for unit 2 in "adbca" = 1  => 1 * 5 ^ 2
- number of changes (value of the letter) for unit 3 in "adbca" = 3  => 3 * 5 ^ 3
- number of changes (value of the letter) for unit 4 in "adbca" = 0  => 0 * 5 ^ 4
- 0*5^4 + 3*5^3 + 1*5^2 + 2*5^1 + 0*5^0 = 410


eg 2:
- total numbers = 4 possible letters: a, b, c, d
- number of changes (value of the letter) for unit 0 in "adbca" = 0  => 0 * 4 ^ 0
- number of changes (value of the letter) for unit 1 in "adbca" = 2  => 2 * 4 ^ 1
- number of changes (value of the letter) for unit 2 in "adbca" = 1  => 1 * 4 ^ 2
- number of changes (value of the letter) for unit 3 in "adbca" = 3  => 3 * 4 ^ 3
- number of changes (value of the letter) for unit 4 in "adbca" = 0  => 0 * 4 ^ 4
- 0*4^4 + 3*4^3 + 1*4^2 + 2*4^1 + 0*4^0 = 216



eg 3 ("special" case: 10 possible numbers, in other words, convert from base 10 (=a decimal number) to base 10 (=a decimal number), aka there is no change at all):
- total numbers = 10 possible letters: a, b, c, d, e, f, g, h, i, j
- number of changes (value of the letter) for unit 0 in "adbca" = 0  => 0 * 10 ^ 0
- number of changes (value of the letter) for unit 1 in "adbca" = 2  => 2 * 10 ^ 1
- number of changes (value of the letter) for unit 2 in "adbca" = 1  => 1 * 10 ^ 2
- number of changes (value of the letter) for unit 3 in "adbca" = 3  => 3 * 10 ^ 3
- number of changes (value of the letter) for unit 4 in "adbca" = 0  => 0 * 10 ^ 4
- 0*10^4 + 3*10^3 + 1*10^2 + 2*10^1 + 0*10^0 = 3120


eg 4 ("special" case: 2 possible numbers, in other words, convert from base 2 to base 10, aka convert a binary number to a decimal number):
- total numbers = 2 possible letters: a, b       so lets take the string "ababa" as an example
- number of changes (value of the letter) for unit 0 in "ababa" = 0  => 0 * 2 ^ 0
- number of changes (value of the letter) for unit 1 in "ababa" = 1  => 1 * 2 ^ 1
- number of changes (value of the letter) for unit 2 in "ababa" = 0  => 0 * 2 ^ 2
- number of changes (value of the letter) for unit 3 in "ababa" = 1  => 1 * 2 ^ 3
- number of changes (value of the letter) for unit 4 in "ababa" = 0  => 0 * 2 ^ 4
- 0*2^4 + 1*2^3 + 0*2^2 + 1*2^1 + 0*2^0 = 10

=> this last example can easly be done totaly on paper (only 11 rows to be made in the table), so do this to understand the whole thing:
  dictionary | base 2 number | base 10 number (aka position-1)
  aaaaa          00000               0
  aaaab          00001               1
  aaaba          00010               2
  aaabb          00011               3
  aabaa          00100               4
  aabab          00101               5
  aabba          00110               6
  aabbb          00111               7
  abaaa          01000               8
  abaab          01001               9
  ababa         01010              10   < =row/position 11
  (...)            (...)                (...)



quote:
Originally posted by John Anderton
so a total of 410 words have passed and we have reached adbca. So shouldnt that be the answer :S
Read what you just said ;) we have passed 410 words, so we are at position 411...
(provided there are 5 possible letters (a, b, c, d, e)! Which is apparently not what you've showed in your last dictionary in your last post, so make up your mind on the number of possible letters.)





RE: Maths Help (for the know alls :P) by John Anderton on 04-03-2005 at 05:35 PM

quote:
Originally posted by CookieRevised
(provided there are 5 possible letters (a, b, c, d, e)! Which is apparently not what you've showed in your last dictionary in your last post, so make up your mind on the number of possible letters.)
Damn dodgy typos :dodgy:
Sorry ....
4 letters .... a, b, c and d :P
Now the answer is ^o)
Ohh ... i give up :P
RE: Maths Help (for the know alls :P) by CookieRevised on 04-04-2005 at 04:04 AM

the answer is:

- total numbers = 4 possible letters: a, b, c, d
- number of changes (value of the letter) for unit 0 in "adbca" = 0  => 0 * 4 ^ 0
- number of changes (value of the letter) for unit 1 in "adbca" = 2  => 2 * 4 ^ 1
- number of changes (value of the letter) for unit 2 in "adbca" = 1  => 1 * 4 ^ 2
- number of changes (value of the letter) for unit 3 in "adbca" = 3  => 3 * 4 ^ 3
- number of changes (value of the letter) for unit 4 in "adbca" = 0  => 0 * 4 ^ 4
- 0*4^4 + 3*4^3 + 1*4^2 + 2*4^1 + 0*4^0 = 216

=> position or row number 217


RE: Maths Help (for the know alls :P) by user2319 on 04-04-2005 at 05:49 PM

Cookie, explain how you can have the square root of minus 1?!? I mean, I thought/think that the square root is like the opposite of ^2, as + is opposite to -. Since x^2 = x*x, the answer is always positive ( -3 * -3 = 9 and 3 * 3 = 9). So you can't have [something]^2 and then get -1, so you can't do sqrt(-1) either. That's what I learned anyway.. :dodgy: Dutch schools :P (or :dodgy: Cookie)


RE: Maths Help (for the know alls :P) by CookieRevised on 04-05-2005 at 02:07 AM

Excellent and interesting question though. But, you will learn that in the futur. It's the same as you didn't learn about integrals and deviations yet. Everything will come in time, and you first need to understand other things before you can understand this ;)

Anyways, here is a shot (and some interesting history of maths)...

No, taking a square root of a negative number is, as you pointed out, impossible in the real world. However, that doesn't mean you can't do maths with the "impossible". It's something like the number "infinity". Infinity doesn't exist in real life, everything is limited. But you still need something to do maths with and to represent "something" beyond our scope of thinking.

This is the same for taking a square root of a negative number. In some calculations like quadratic and cubic equations (like used ealier in this thread) you will see that you can have a result which actually can't exist, but still it _is_ a result.

In the past, people stopped there, they couldn't go further. But one day, somebody said, what if we just invent a new number, and lets call it i (from "imaginary number"), i would be equal to the square root to -1. From that time on people could do maths and work out solutions further where they were stuck in the past.

note: such things happened in the past also (and still are happening now). It is only since the 13th century that negative numbers were slowly considered real numbers in the Western world. Before that, anything lower then 0 simpy didn't exist.

So, a whole new group of numbers emerged, the "complex numbers" written as "(x, y)" where x is a real number and y the imaginary number. So the complex number (5, 4) means 5+4i or 5+4*SQR(-1)...

So you can do maths with them too of course:
(5, 4) + (5, 4) = 5+4i + 5+4i = 10 + 8i

And you can even solve this strange question: divide the number 10 into two parts so that their product is 40! Impossible you would think, well not with complex numbers, the solution: 5+SQR(–15) and 5–SQR(–15). The proof:

[5+SQR(–15)]  +  [5–SQR(–15)]
=>  5 + 5 + SQR(–15) - SQR(–15)
=>  5 + 5
=>  10, hey presto!

[5+SQR(–15)]  *  [5–SQR(–15)]
=>  5²  -  5*SQR(–15)  +  5*SQR(–15)  -  SQR(–15)²
=>  25  -  -15
=>  25  +  15
=>  40, hey presto!

Note: this is actually a "famous" calculation/question from Cardano (16th century). He didn't actualy invented the imaginary number i and also didn't do anything further with this calculation or understood what he just found. This was actually the result of a competition to solve the cubic equation. Which was thought to be impossible. Cardona solved it by using negative numbers (a great controversy in that time) and this "complex" number thing was only a small byproduct of it.

Cardano did not go further into this, and it is only later that they were called complex numbers. A few years later Bombelli gave several examples involving these new type of numbers.

eg:

One of Cardano's cubic formulas gives the solution to the equation:
x³ = cx + d
as
x = SQR³[d/2 + SQR(e)] + SQR³[d/2 – SQR(e)]    where e = (d/2)² – (c/3)³
I've used "SQR³(x)" to indicate the third root of x

The 'problem' is that e could be negative, but there isn't any real number which you can multipy by itself and get a negative number, so Cardano was stuck there. Nevertheless Bombelli used this formula to solve the equation:
x³ = 15x + 4

according to Cardano's formula:
c = 15
d = 4
thus e = (4/2)² – (15/3)³  =>  2² - 5³  =>  -121  (a negative number no less!!!)
and thus x = SQR³[2 + SQR(–121)] + SQR³[2 – SQR(–121)]

Now, the square root of –121 is not a real number; it's neither positive, negative, nor zero. Nevertheless, Bombelli continued to work with this expression until he found equations that lead him to the solution 4, a real number!
So there _is_ a real solution eventhough SQR(–121) can't exist.

This shows nicely how complex numbers do have their use to solve things, even though they can't exist. Prior to the discovery of this, people said there was no solution. Although 4³ is equal to 15 * 4 + 4....


There is more detail to this story though:

When cubic formulas were a big hush-hush in the 16th century, Cardano noted that the sum of the three solutions to a cubic equation (x³ + bx² + cx + d = 0) is –b, the negation of the coefficient of x².

By the 17th century the theory of equations had developed so far so that someone called Girard developped a principle of algebra out of this. He also said that an nth degree equation always had n solutions. This is what we now call "the fundamental theorem of algebra". But He never was able to proof this principle though, just because some solutions couldn't "exist".

Another guy also studied this relation between solutions and coefficients, and was able to show that Cardano and Girard were right if you disregarded negative solutions as "false" and those other impossible solutions as "imaginary".

And slowly negative numbers became a common good and raised in status (by the results and efforts of other people), but it was not until the 18th century that complex numbers became in real use, roughly 200 years after their first "discovery" . They weren't considered to be real numbers though, but they were useful in the theories and formulas back in that time.

But still nobody was able to proof the fundamental theorem of algebra which stated that there are n solutions of an nth degree equation. So, although the complex numbers were not fully understood, the square root of -1 was being used more and more.

By the end of the 18th century numbers of the form x + yi were used pretty often by research mathematicians. For example Euler, a very influencial mathematician used it often in his trigonometric functions. And because of this and his influences, it was Gauss, and others like Wessel and Argand, who began to study complex numbers in function of xy-planes (as coordinates of planes) and that complex numbers were fully understood. And thus in 1799, Gauss published the first proof to the Girard's principle of algebra.

(You might know Gauss from the "Gauss-curve", it's the same one. And Euler is also a name which you certainly will hear in the next years in school, if you already didn't. And this whole deal with complex numbers will certainly be on the agenda and you'll notice that it will all start with talk about coördinates of planes and the polar coördinates system ;))


RE: Maths Help (for the know alls :P) by Fredzz on 04-05-2005 at 11:26 AM

holy shit... [Image: train.gif]



im suuuuuuuch an asshole for not understanding a  thing of this ! *cries*


RE: Maths Help (for the know alls :P) by gif83 on 04-05-2005 at 11:33 AM

a quote from one of my maths proffessors...

"life is complex....
...it has real and imaginary parts"


RE: Maths Help (for the know alls :P) by John Anderton on 04-05-2005 at 11:37 AM

quote:
Originally posted by Fredzz
im suuuuuuuch an asshole for not understanding a  thing of this ! *cries*
Its an imaginary number :D
quote:
Originally posted by CookieRevised
- 0*4^4 + 3*4^3 + 1*4^2 + 2*4^1 + 0*4^0 = 216
=> position or row number 217
So i got the 1st one correct ... my ans at 1st was correct ... but the question i typed wasnt :P
But by the method i use .... i count only the changes ... oh i get it ...
i got the no of changes as 216 so the position is 217 ;)
thanks cookie :)
RE: Maths Help (for the know alls :P) by user2319 on 04-05-2005 at 02:00 PM

Thanks aswell Cookie.


RE: Maths Help (for the know alls :P) by sasquatch on 04-06-2005 at 01:33 AM

Just out of curiosity, what is the solution to the integral problem posted by cookie above? I hate calculus...


RE: Maths Help (for the know alls :P) by Dane on 04-06-2005 at 04:43 AM

lol.

* Dane found the answer

I hate Math. Evidently Plus! does too :P.  Ask a smart person like wtbw or Cookie or Patchou or Time or Matty or Someone else I havent listed :-P!