Solved

Programing with very LARGE Numbers

Posted on 2002-06-30
9
253 Views
Last Modified: 2010-04-15
Can I use C to do calculations with very large numbers ( like 2^(10^10) ). If yes what math libraries should I be using? And what is the best software (at a reasonable price, prefferably freeware) that I can use  to write C on Win 98?

If no, what language should I use and what is the best software (at a reasonable price, prefferably freeware) that I can use  to write this language on Win 98?


Thanks!
0
Comment
Question by:ody13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 4

Expert Comment

by:ct.smith
ID: 7120994
Not sure about Windows, but on most UNIX plartforms, you'll find a header mp.h that does multiple precision (ie. big numbers).

However, when doing these things, I prefer to have some sort of straight forward built-in type in the language.  Then, a language like Python (has such a built-in type) is useful.  Also, most math scripting environments have this too (ie. Octave, Mathematica, etc.).
0
 

Author Comment

by:ody13
ID: 7121060
Thanks for your answer.

Could you please clarify a little more about what I need to do on a UNIX platform (what is the command and where I add it?)

Also, do you think Maple could also do what I am looking for?

BTW, Are you familiar with Maple?


Thanks again,
Ody
0
 
LVL 4

Expert Comment

by:ct.smith
ID: 7121064
As for using the mp library, it's been a while since I've used it.  So I'll have to tell you to check the man page.

As for Maple, I've never used it. If it's as good a math package as people say it is, then there will be no problem handling large numbers with it.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Expert Comment

by:mattjsimps
ID: 7121190
Maple should be able to do it. Its a long time since i used it, but it is a very poerful program.
0
 
LVL 30

Expert Comment

by:SteveGTR
ID: 7121643
Code Projects has "A class for operations with Large Integer Numbers" article:

http://www.codeproject.com/cpp/largenumber.asp
0
 
LVL 10

Expert Comment

by:oleber
ID: 7121880
I never test this code but it have some time.

search in http://www.snippets.org/snippets/portable/portable.php3

for "unsigned integer math"
0
 

Author Comment

by:ody13
ID: 7124949
Oleber and SteveGTR,

what program should I use in Win98 to run the codes that the websites that you suggested have?

Thanks,
Ody
0
 
LVL 10

Accepted Solution

by:
oleber earned 200 total points
ID: 7124990
The code is C standard. Any compiler must work.

Try http://www.borland.com/products/downloads/download_cbuilder.html maybe works and is free

0
 
LVL 2

Expert Comment

by:jonnin
ID: 7126766
cygwin is a unix shell under win32, has most common functions, includes gcc. Its not the greatest, but its a free compiler and if you are used to unix...
There are many other free ones, other ports of gcc, borland has a free one (no IDE if memory serves). Search on google. There are a lot of free C compilers for windows...




0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question