Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   Scientific Notation Conversion (http://www.velocityreviews.com/forums/t593003-scientific-notation-conversion.html)

N1GHTS 02-20-2008 05:28 PM

Scientific Notation Conversion
 
Hi, I am new here and I found this site from a reply on 2005 in the python forum about a similar problem I am having, only it was a bit different.

I need a procedure to convert extremely large numbers from scientific notation to a large area of memory. The numbers are as large as 60111^9888777 and obviously to re-multiply 60111 nearly 10 million times sounds like something a supercomputer must do first, but for my specific situation a regular PC must be able to do it.

I am creating a calculator emulator at assembly level since the math processing on my 32 bit computer will not work. So since I am going to be working with this number at low level binary, I was hoping for some kind of shortcut, perhaps mathematical, that would convert the result with significantly less processing at an emulation level.

I am asking in a C++ forum because most of the program is written in that language with inline asm where it needs to be.

Thanks in advance for your help.

N1GHTS 02-20-2008 07:22 PM

I figured out the answer on my own, and I also realized that this forum is not an appropriate place to ask this question because the answer is heavily in the realm of mathematics and not in C++ specific syntax as this forum seems to focus on.

For any of you who are interested in the answer, there is a couple of good examples of techniques that reduce the amount of multiplication needed to compute the power of numbers on wikipedia under the keyword "exponent".


All times are GMT. The time now is 02:44 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57