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. The Lounge
  3. Mathy Question: decimal exponents with the cordic method

Mathy Question: decimal exponents with the cordic method

Scheduled Pinned Locked Moved The Lounge
questionhelp
8 Posts 4 Posters 0 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.
  • S Offline
    S Offline
    Selevercin
    wrote on last edited by
    #1

    Hi everyone! I'm trying to figure out how calculators calculate x^y where y is a non-integer. I've learned that they use the cordic method, but does anyone have any idea how this method works on exponents? I've seen examples with square roots and trig functions, but no exponential. A good link or simple explanation would be great if anyone knows of one. Thanks! If you have a problem with my spelling, just remember that's not my fault. I (as well as everyone else who learned to spell after 1976) blame it on Robert A. Kolpek for U.S. Patent 4,136,395.

    P 1 Reply Last reply
    0
    • S Selevercin

      Hi everyone! I'm trying to figure out how calculators calculate x^y where y is a non-integer. I've learned that they use the cordic method, but does anyone have any idea how this method works on exponents? I've seen examples with square roots and trig functions, but no exponential. A good link or simple explanation would be great if anyone knows of one. Thanks! If you have a problem with my spelling, just remember that's not my fault. I (as well as everyone else who learned to spell after 1976) blame it on Robert A. Kolpek for U.S. Patent 4,136,395.

      P Offline
      P Offline
      peterchen
      wrote on last edited by
      #2

      They use the identity x^y = e ^ (y ln x) ln(x) and and e^x can be approximated by a infinite sum.


      we are here to help each other get through this thing, whatever it is Vonnegut jr.
      sighist || Agile Programming | doxygen

      J 1 Reply Last reply
      0
      • P peterchen

        They use the identity x^y = e ^ (y ln x) ln(x) and and e^x can be approximated by a infinite sum.


        we are here to help each other get through this thing, whatever it is Vonnegut jr.
        sighist || Agile Programming | doxygen

        J Offline
        J Offline
        Jorgen Sigvardsson
        wrote on last edited by
        #3

        peterchen wrote: ln(x) and and e^x can be approximated by a infinite sum. Or... you can utilize your FPU to do the calculations. :-D Anyhow, it's a really cool math trick! :cool: -- Arigato gozaimashita!

        P 1 Reply Last reply
        0
        • J Jorgen Sigvardsson

          peterchen wrote: ln(x) and and e^x can be approximated by a infinite sum. Or... you can utilize your FPU to do the calculations. :-D Anyhow, it's a really cool math trick! :cool: -- Arigato gozaimashita!

          P Offline
          P Offline
          peterchen
          wrote on last edited by
          #4

          Jörgen Sigvardsson wrote: Or... you can utilize your FPU to do the calculations. ...which does the same :rolleyes:


          we are here to help each other get through this thing, whatever it is Vonnegut jr.
          sighist || Agile Programming | doxygen

          J 1 Reply Last reply
          0
          • P peterchen

            Jörgen Sigvardsson wrote: Or... you can utilize your FPU to do the calculations. ...which does the same :rolleyes:


            we are here to help each other get through this thing, whatever it is Vonnegut jr.
            sighist || Agile Programming | doxygen

            J Offline
            J Offline
            Jorgen Sigvardsson
            wrote on last edited by
            #5

            I figured as much. But I view the FPU as a black box, so to me it's as if there's a mathematician inside who calculates an exact value which it rounds. I wonder how they squeezed the mathematician into the FPU, and isn't that illegal? :~ :-D -- Arigato gozaimashita!

            W 1 Reply Last reply
            0
            • J Jorgen Sigvardsson

              I figured as much. But I view the FPU as a black box, so to me it's as if there's a mathematician inside who calculates an exact value which it rounds. I wonder how they squeezed the mathematician into the FPU, and isn't that illegal? :~ :-D -- Arigato gozaimashita!

              W Offline
              W Offline
              wrykyn
              wrote on last edited by
              #6

              Jörgen Sigvardsson wrote: I wonder how they squeezed the mathematician into the FPU, and isn't that illegal? Martial arts techniques perhaps ? :) "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

              J 1 Reply Last reply
              0
              • W wrykyn

                Jörgen Sigvardsson wrote: I wonder how they squeezed the mathematician into the FPU, and isn't that illegal? Martial arts techniques perhaps ? :) "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

                J Offline
                J Offline
                Jorgen Sigvardsson
                wrote on last edited by
                #7

                I think Marshalling Arts would be more handy for squeezing someone into an FPU. :-D -- Arigato gozaimashita!

                W 1 Reply Last reply
                0
                • J Jorgen Sigvardsson

                  I think Marshalling Arts would be more handy for squeezing someone into an FPU. :-D -- Arigato gozaimashita!

                  W Offline
                  W Offline
                  wrykyn
                  wrote on last edited by
                  #8

                  :-D "One of the Georges," said Psmith, "I forget which, once said that a certain number of hours' sleep a day--I cannot recall for the moment how many--made a man something, which for the time being has slipped my memory."

                  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