473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Calculating Large Factorials

3
Hey everyone I just registered. Seems like a nice community and all the other sentimental BS :). So my problem in a nutshell is I wanna write a programme that calculates Large factorials (lets say 1000!) using linked lists(to store the numbers like 4 digits in each node). My problem is putting the result of such large factorials in Linked Lists so if you know how to give me an Idea about it pretty pretty thank you with a cherry on top. (If you don't have anything useful to say with all due respect keep your mouth shut.)
Jan 12 '08 #1
4 4251
sicarie
4,677 Expert Mod 4TB
Wow, as incredibly pleasant as you are, and all that BS, did you try Googling this? There are several math libraries that you can include to store large numbers.

Like in this thread...
Jan 12 '08 #2
Voltem
3
Wow, as incredibly pleasant as you are, and all that BS, did you try Googling this? There are several math libraries that you can include to store large numbers.

Like in this thread...
Well I wanted to prevent the posts like yours that's why I said those precautionary things. Yes, I've tried googling the answer to My question not yours and haven't found anything useful. Did you even read my post? Did I tell you my problem is storing large numbers? or did I tell it is storing large numbers IN LINKED LISTS. Thank you very much as incredibly smart as you are.
Jan 19 '08 #3
sicarie
4,677 Expert Mod 4TB
Well I wanted to prevent the posts like yours that's why I said those precautionary things. Yes, I've tried googling the answer to My question not yours and haven't found anything useful.
You wanted to stop people from posting useful links that related to your issue? Oh, sorry for trying to help, I guess you're good enough to be able to figure all this stuff out on your own... (not entirely sure why you're posting, then, but whatever)

Did you even read my post? Did I tell you my problem is storing large numbers? or did I tell it is storing large numbers IN LINKED LISTS. Thank you very much as incredibly smart as you are.
I did read your post. That's why I linked you to the thread with a link to a collection of mathematical libraries, including ones that will allow you to store large numbers (greater than those of an unsigned int).

And if you can't Google search "linked list c (or c++)," then I'm wasting my time anyway. So I'm done, best of luck figuring this out on your own.

Next time, it might be worth it to be nicer to the people offering help - and it might pay to read the things they post all the way through. (And to that end - the Guidelines for the site, which, had you read, would have made it clear that unless you had posted what you had tried, you would have gotten the standard answer I posted from any and every other person.)
Jan 19 '08 #4
Hey everyone I just registered. Seems like a nice community and all the other sentimental BS :). So my problem in a nutshell is I wanna write a programme that calculates Large factorials (lets say 1000!) using linked lists(to store the numbers like 4 digits in each node). My problem is putting the result of such large factorials in Linked Lists so if you know how to give me an Idea about it pretty pretty thank you with a cherry on top. (If you don't have anything useful to say with all due respect keep your mouth shut.)

For a big number you can find the factorial of big number by Sterling approximation formula.
n! ~ e^(-n)*n^n*Sqrt(2*PI*n)

Note: For very big number this approximation formula acuurate calculate as computer tolerate negligable.


If you wanna compute factorial by program then use this code
Expand|Select|Wrap|Line Numbers
  1. Code removed per posting guidelines
  2.  

Asadullah Ansari
Jan 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ron Adam | last post by:
Hi, I'm having fun learning Python and want to say thanks to everyone here for a great programming language. Below is my first Python program (not my first program) and I'd apreciate any...
3
by: julry | last post by:
I need to compute factorials, but I hit a limit around 170!. Is there anyway to handle numbers larger than the float data type can handle? Thanks.
2
by: Tim Marshall | last post by:
Wondering if anyone has any suggestions for this. Sometimes in the form reports my users run, a data sheet subform on a main form, with totals in text boxes with calculated controlsources...
13
by: bob | last post by:
If you were designing a class to represent very large integers in C++, what kind of internal representation would be best?
5
by: skyline789 | last post by:
Hello guys! Just started learning java and kind of struggling my way through the code of factorials. Well, basically we were asked to write a code that displays the factorials of numbers from 1 to...
10
by: Lisa | last post by:
In translating the formula for calculating lottery odds for various conditions into a Visual Basic Program, I have apparently missed something in that I get errors in the part of the calculation...
59
by: Py-Fun | last post by:
I'm stuck trying to write a function that generates a factorial of a number using iteration and not recursion. Any simple ideas would be appreciated.
11
by: ladan | last post by:
hi i have to write a c++ program that can calculate big factorials using a vector sized 17(for example c)and c can hold 8 digits i need help plz help me
4
by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= | last post by:
Say I have a class like, class Sample { public decimal first = 10; public decimal second = 20; } I have initialized it
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.