Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Algorithms
  4. Is this a simple algorithm?

Is this a simple algorithm?

Scheduled Pinned Locked Moved Algorithms
graphicsalgorithmsregextutorialquestion
17 Posts 7 Posters 12 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Johpoke

    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

    J Offline
    J Offline
    Johpoke
    wrote on last edited by
    #4

    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

    1 1 Reply Last reply
    0
    • J Johpoke

      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

      1 Offline
      1 Offline
      123 0
      wrote on last edited by
      #5

      [Message Deleted]

      C C S 3 Replies Last reply
      0
      • 1 123 0

        [Message Deleted]

        C Offline
        C Offline
        cjengler
        wrote on last edited by
        #6

        If I recall correctly, Trig is high school level mathematics which does not make it advanced by today's standards.

        1 Reply Last reply
        0
        • 1 123 0

          [Message Deleted]

          C Offline
          C Offline
          CPallini
          wrote on last edited by
          #7

          ...usually basic arithmetic on integers produces also real number results... (or your basic arithmetic operators are just + and -}?):-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.

          1 1 Reply Last reply
          0
          • C CPallini

            ...usually basic arithmetic on integers produces also real number results... (or your basic arithmetic operators are just + and -}?):-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.

            1 Offline
            1 Offline
            123 0
            wrote on last edited by
            #8

            [Message Deleted]

            C S 2 Replies Last reply
            0
            • 1 123 0

              [Message Deleted]

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #9

              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.

              1 1 Reply Last reply
              0
              • C CPallini

                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.

                1 Offline
                1 Offline
                123 0
                wrote on last edited by
                #10

                [Message Deleted]

                L C S 3 Replies Last reply
                0
                • 1 123 0

                  [Message Deleted]

                  L Offline
                  L Offline
                  Luc Pattyn
                  wrote on last edited by
                  #11

                  Maybe you can move all your widgets to a parallel discussion board ?

                  Luc Pattyn [My Articles] [Forum Guidelines]

                  J 1 Reply Last reply
                  0
                  • 1 123 0

                    [Message Deleted]

                    C Offline
                    C Offline
                    CPallini
                    wrote on last edited by
                    #12

                    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.

                    1 Reply Last reply
                    0
                    • 1 123 0

                      [Message Deleted]

                      S Offline
                      S Offline
                      Stephen Hewitt
                      wrote on last edited by
                      #13

                      Most people, including people who consider basic trigonomic function like sine and cosine advanced, could readily understand them if they were explained properly.

                      Steve

                      1 Reply Last reply
                      0
                      • 1 123 0

                        [Message Deleted]

                        S Offline
                        S Offline
                        Stephen Hewitt
                        wrote on last edited by
                        #14

                        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

                        C 1 Reply Last reply
                        0
                        • S Stephen Hewitt

                          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

                          C Offline
                          C Offline
                          CPallini
                          wrote on last edited by
                          #15

                          Actually he believe in a discrete 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.

                          1 Reply Last reply
                          0
                          • 1 123 0

                            [Message Deleted]

                            S Offline
                            S Offline
                            Stephen Hewitt
                            wrote on last edited by
                            #16

                            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

                            1 Reply Last reply
                            0
                            • L Luc Pattyn

                              Maybe you can move all your widgets to a parallel discussion board ?

                              Luc Pattyn [My Articles] [Forum Guidelines]

                              J Offline
                              J Offline
                              Jeffrey Walton
                              wrote on last edited by
                              #17

                              LOL...

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups