Is this a simple algorithm?
-
Ive allways liked playing around wih SetPixel and GetPixel, this time ive created a quite nice and simple pattern drawer, only using the SetPixel, GetPixel and some very simple math ( pow(), cos() sin() tan() modulo, * / + - ). It fills up the screen with varius drawing methods using a formula. Here[^] (2.49MB) is an example of my latest pattern. I wonder, can this be considerd as a simple algorithm?
//Johannes
Probably. From Wikipedia: an algorithm is a finite list of well-defined instructions for accomplishing some task that, given an initial state, will terminate in a defined end-state. Seems to match. Is it simple ?
Johpoke wrote:
some very simple math
You claim it is, so it is. But then sooner or later some one may come up with something simpler that produces the same result... :)
Luc Pattyn [My Articles] [Forum Guidelines]
-
Ive allways liked playing around wih SetPixel and GetPixel, this time ive created a quite nice and simple pattern drawer, only using the SetPixel, GetPixel and some very simple math ( pow(), cos() sin() tan() modulo, * / + - ). It fills up the screen with varius drawing methods using a formula. Here[^] (2.49MB) is an example of my latest pattern. I wonder, can this be considerd as a simple algorithm?
//Johannes
-
Ive allways liked playing around wih SetPixel and GetPixel, this time ive created a quite nice and simple pattern drawer, only using the SetPixel, GetPixel and some very simple math ( pow(), cos() sin() tan() modulo, * / + - ). It fills up the screen with varius drawing methods using a formula. Here[^] (2.49MB) is an example of my latest pattern. I wonder, can this be considerd as a simple algorithm?
//Johannes
Luc Pattyn wrote:
But then sooner or later some one may come up with something simpler that produces the same result...
I meant that i dont use any advanced functions for mathematics. the drawing code itself is kinda insane and the whole project would probably land in coding horrors if i where to release it :D
//Johannes
-
Luc Pattyn wrote:
But then sooner or later some one may come up with something simpler that produces the same result...
I meant that i dont use any advanced functions for mathematics. the drawing code itself is kinda insane and the whole project would probably land in coding horrors if i where to release it :D
//Johannes
-
...usually basic arithmetic on integers produces also real number results... (or your basic arithmetic operators are just
+
and-
}?):-DIf 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.
-
...usually basic arithmetic on integers produces also real number results... (or your basic arithmetic operators are just
+
and-
}?):-DIf 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.
-
The Grand Negus wrote:
Such is life
Maybe such is your life, not mine (maybe I live in a parallel universe... :confused:) :-D
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.
-
The Grand Negus wrote:
Such is life
Maybe such is your life, not mine (maybe I live in a parallel universe... :confused:) :-D
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.
-
Maybe you can move all your widgets to a parallel discussion board ?
Luc Pattyn [My Articles] [Forum Guidelines]
-
The Grand Negus wrote:
3.14159
It seems you already took a couple of steps inside the parallel universe...:-D
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.
-
Most people, including people who consider basic trigonomic function like sine and cosine advanced, could readily understand them if they were explained properly.
Steve
-
The Grand Negus wrote:
Nine divided by four is two with one left over.
So it seems you also believe in rational numbers. Pity real life isn't always so simple. Presenting a simple example does not negate the existence of more complex ones or the more advanced tools which may be required to deal with them.
Steve
-
The Grand Negus wrote:
Nine divided by four is two with one left over.
So it seems you also believe in rational numbers. Pity real life isn't always so simple. Presenting a simple example does not negate the existence of more complex ones or the more advanced tools which may be required to deal with them.
Steve
-
The Grand Negus wrote:
Exactly how, in your universe, do you pack nine widgets into four boxes, where each box is only big enough for two? And how does 9/4=2.25 help you do that more than 9/4=2r1?
How would you pour 9 liters of water into 4 containers ensuring each container has an equal quantity? I would pour 2.25 (9/4) liters into each glass. 9/4=2r1 is not as useful as 9/4=2.25 in this example. I’m afraid I’m not ready to give up my rational (or even real) numbers.
Steve
-
Maybe you can move all your widgets to a parallel discussion board ?
Luc Pattyn [My Articles] [Forum Guidelines]
LOL...