|
Math Magic on Yahoo[^]
Anybody see the "trick"?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Careful - some educator may adopt it into 'New Math'. For those who haven't heard the Tom Lehrer song
New Math[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
haha,
I think i'd rather just stick with my calculator .
Mark.
|
|
|
|
|
And how do you think your calculator performs its magic ?
|
|
|
|
|
hmmm...
Is it a small black box which houses a microscopic chinese guy inside who is able to almost instantanously solve any mathematical equation you throw at him?
|
|
|
|
|
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
|
is that a regular Polish guy or a reverse Polish?
Apathy Rules - I suppose...
|
|
|
|
|
Trick? What trick? It's the same as usual, but maybe helps some people keep the columns aligned properly.
|
|
|
|
|
PIEBALDconsult wrote: It's the same as usual
Yes it is. Just a different twist to it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
The previous one was done with sticks, this one just makes it easier for the layman to understand.
"This perpetual motion machine she made is a joke. It just keeps going faster and faster. Lisa, get in here! In this house, we obey the laws of thermodynamics!" - Homer Simpson
Web - Blog - RSS - Math - LinkedIn - BM
|
|
|
|
|
That looked like a whole lot of hard work to me... just do it the normal way and be done with it!!
-------------------------------------------
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Just bugger off and leave me alone!!
|
|
|
|
|
|
I am not sure of an exact definition but as far as I am aware encoding is changing the way that the string is displayed, to mask it or change its format but is essentially in a fixed format and easily reversable. Encrypting masks the string with a key of some type (dependent on encryption type) and can usually be decrypted with the provided key.
Some encryption cannot be unencrypted, such as MD5, but the same encrypted string can be compared for validation - useful for passwords.
Not exactly a dictionary definition i know!
|
|
|
|
|
I'll add that MD5 isn't considered a strong encryption algorithm these days.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Encoding a string has to do with its internal representation. For instance, UTF8 or UNICODE maybe different internal representations of the same string.
On the other hand, encryption aims to alter the string in such way that its original content is not recognizable by unauthorized people. Usually encryption imply encoding, usually encoding doens't imply encryption.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
Hi,
encoding is the process of mapping a collection of some type1 onto a collection of some type2,
for instance you can encode the days of the week into the numbers 1 to 7; and the ASCII
character encoding maps the character set we all know to a subset of 8-bit numbers.
So it is a representation thing (a one-to-one mapping), often aiming at increasing
readability or efficiency.
encryption is the process of changing the representation in order to hide the content.
the goal is not to make things easier, smaller, more economical; it is to hide the true
meaning of things.
|
|
|
|
|
Wikipedia man!!!
Mark
|
|
|
|
|
Encrypting a file means that one is altering it in order to conceal its contents.
Encoding it means one is altering it because of technical reasons related to transmitting it (e.g., the Morse code).
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|
|
Newton Rapheson ring a bell (Goal Seek function from Excel, that's the Algo they used)? Packaged bug free code anyone?
Thanks a bunch.
|
|
|
|
|
You give no hint of what language you want, maybe Numerical Recipes is a good place to start - here is the 'c' version:
Newton-Raphson Method[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
right! Numerical Recipes! Left school for sometime totally forget about it!
|
|
|
|
|
Excellent read.[^]
The PostScript file (year 2000) is more informative.
"This perpetual motion machine she made is a joke. It just keeps going faster and faster. Lisa, get in here! In this house, we obey the laws of thermodynamics!" - Homer Simpson
Web - Blog - RSS - Math - LinkedIn - BM
|
|
|
|
|
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Regards,
Satips.
Don't walk in front of me, I may not follow;
Don't walk behind me, I may not lead;
Walk beside me, and just be my friend. - Albert Camus
|
|
|
|