please any one help me

i want any code to compute the factorial of high numbers like 1000000 in aspeed way & didnt cause the break down of memory

any bode cane help me

mn_fci@hotmail.com

mn_fci@yahoo.com




Answer this question

please any one help me

  • damnhippie

    How accurate do you want the final number to be If you're looking at a handful of significant digits, you can lower some accuracy and increase some speed.

  • Paulo Reichert

    I am afraid that what you are trying to compute will require exponetial time due to the memory access it requires. So, there is no "fast" way to compute this.

  • slein

    You can refer to this post over Code Project: A class for operations with Large Integer Numbers (http://www.codeproject.com/cpp/largenumber.asp) where George Anescu presents some algorithms for operations with large integer numbers in a C++ class using the STL vector container where you can then use it in your VB.net code.

    I my self will vote for usnig strings for large numbers and if you can manage it I think there is a possibility to integrate java's big number class and perhaps even karbutstra's algorithm for efficient multiplication.

    As for the time thing, I agree that there is no fast way in computing such a large number, hard luck with that!



  • please any one help me