Generating e^x in Visual Basic .NET - McLaurance Series?

  • Thread starter Thread starter mtanti
  • Start date Start date
  • Tags Tags
    Exponential
AI Thread Summary
To generate a very long number for e^x in Visual Basic .NET, programmers are exploring options beyond the McLaurin Series for better precision. Extended or arbitrary precision math is essential for handling calculations that require thousands of digits. Resources like Apfloat, which offers algorithms for arbitrary precision arithmetic, are suggested, although they are primarily available in C++ and Java. Additionally, searching for programs that calculate pi can yield libraries suitable for high-precision calculations. It's important to clarify whether x is an extended precision number or an integer, as this impacts the complexity of the computation.
mtanti
Messages
172
Reaction score
0
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
 
Technology news on Phys.org
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?
 
x can be very long but it isn't necessary. Can be on the order of a 12 digit number...
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top