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. C / C++ / MFC
  4. taylor formula

taylor formula

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
4 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.
  • M Offline
    M Offline
    me_101
    wrote on last edited by
    #1

    i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz

    eva

    L M CPalliniC 3 Replies Last reply
    0
    • M me_101

      i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz

      eva

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      If you are not Kyle we care even less. I realize you have no idea what I am talking about because you have not read any of the posting guidelines for the site. Good luck with your studies and homework assignments. It's seems you will need it.

      led mike

      1 Reply Last reply
      0
      • M me_101

        i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz

        eva

        M Offline
        M Offline
        malaugh
        wrote on last edited by
        #3

        I cannot guarenee its right, you will have to debug it yourself, but something to get you started #include int main(void) { double current = 1; double old = 0; int n = 1; int factorial = 1; while(fabs(current - old) > 0.05/100) { old = current; factorial *= ++n; current = pow(old, n) / factorial; } }

        1 Reply Last reply
        0
        • M me_101

          i need c++ code for aprogram that find e^0.5 using taylor formula with tolerance of 0.05%. knowing that taylor formula for e^x=1+x+x2/2!+.......+x^n/n! plzzzzzzzzzz i need this code if any one could help me and thanx alot. aneet it before this monday plzzzzzzzzz

          eva

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          Well, you know the formula...What is your trouble about?

          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

          In testa che avete, signor di Ceprano?

          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