1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Long Exponential

  1. Jul 14, 2006 #1
    Hello fellow programmers,
    I need to generate a very long number for e^x. On the order of thousands of digits. How do I do that in Visual Basic .NET?

    Is there some other more precise way to do it rather than McLaurance Series?

    Marc
     
  2. jcsd
  3. Jul 18, 2006 #2

    rcgldr

    User Avatar
    Homework Helper

    Extended / arbitrary precision math can get really tricky as some pretty clever algorithms have been developed. Here is one example with source and documentation: http://www.apfloat.org, but it's a C++ program (also Java).

    If you do a web search for programs to calculate pi, you'll find a lot of hits for programs / libraries that do this type of stuff.

    What you didn't mention when calculating e^x, is if x is also an extended precision number (thousands of digits), or is it an integer?
     
  4. Aug 18, 2006 #3
    x can be very long but it isn't necessary. Can be on the order of a 12 digit number...
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?