Click here to Skip to main content
15,890,579 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Pattern Decoder Pin
hdsouza115-Oct-08 14:47
hdsouza115-Oct-08 14:47 
GeneralRe: Pattern Decoder Pin
cp987615-Oct-08 19:43
cp987615-Oct-08 19:43 
GeneralRe: Pattern Decoder Pin
darrellp28-Nov-08 21:25
darrellp28-Nov-08 21:25 
AnswerRe: Pattern Decoder Pin
cp987615-Oct-08 1:25
cp987615-Oct-08 1:25 
GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 5:22
Cosmic Egg15-Oct-08 5:22 
GeneralRe: Pattern Decoder Pin
73Zeppelin15-Oct-08 5:29
73Zeppelin15-Oct-08 5:29 
GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 5:44
Cosmic Egg15-Oct-08 5:44 
GeneralRe: Pattern Decoder Pin
CPallini15-Oct-08 5:50
mveCPallini15-Oct-08 5:50 
f(100) = 10
f(81) = 9
f(64) = 8
f(49) = 7
f(36) = 6
f(25) = 5

f(n) = 0 for all other n values


It is a perfect legal (and admittely beautiful) function. It satisfies all your requirements until you don't specify the 'square root' one.

Smile | :)

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.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 6:28
Cosmic Egg15-Oct-08 6:28 
GeneralRe: Pattern Decoder Pin
CPallini15-Oct-08 7:18
mveCPallini15-Oct-08 7:18 
GeneralRe: Pattern Decoder Pin
73Zeppelin15-Oct-08 6:11
73Zeppelin15-Oct-08 6:11 
GeneralRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 6:25
Cosmic Egg15-Oct-08 6:25 
GeneralRe: Pattern Decoder Pin
73Zeppelin15-Oct-08 6:53
73Zeppelin15-Oct-08 6:53 
GeneralRe: Pattern Decoder Pin
Roger Wright26-Oct-08 19:14
professionalRoger Wright26-Oct-08 19:14 
GeneralRe: Pattern Decoder Pin
73Zeppelin2-Nov-08 7:42
73Zeppelin2-Nov-08 7:42 
AnswerRe: Pattern Decoder Pin
Cosmic Egg15-Oct-08 5:26
Cosmic Egg15-Oct-08 5:26 
AnswerRe: Pattern Decoder Pin
Roger Wright26-Oct-08 19:28
professionalRoger Wright26-Oct-08 19:28 
GeneralRe: Pattern Decoder Pin
hdsouza127-Oct-08 1:44
hdsouza127-Oct-08 1:44 
GeneralRe: Pattern Decoder Pin
Roger Wright27-Oct-08 2:42
professionalRoger Wright27-Oct-08 2:42 
Questionunion and intersection Library Pin
mohammed zarqa12-Oct-08 3:14
mohammed zarqa12-Oct-08 3:14 
AnswerRe: union and intersection Library Pin
Mark Churchill12-Oct-08 4:15
Mark Churchill12-Oct-08 4:15 
AnswerRe: union and intersection Library Pin
Kevin McFarlane12-Oct-08 4:59
Kevin McFarlane12-Oct-08 4:59 
Questioncritical number [modified] Pin
jonig199-Oct-08 4:52
jonig199-Oct-08 4:52 
AnswerRe: critical number Pin
73Zeppelin9-Oct-08 5:47
73Zeppelin9-Oct-08 5:47 
GeneralRe: critical number Pin
Paul Conrad9-Oct-08 7:00
professionalPaul Conrad9-Oct-08 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.