• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

Programing with very LARGE Numbers

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
ody13
Asked:
ody13
  • 2
  • 2
  • 2
  • +3
1 Solution
 
ct.smithCommented:
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
 
ody13Author Commented:
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
 
ct.smithCommented:
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
KuppingerCole Reviews AlgoSec in Executive Report

Leading analyst firm, KuppingerCole reviews AlgoSec's Security Policy Management Solution, and the security challenges faced by companies today in their Executive View report.

 
mattjsimpsCommented:
Maple should be able to do it. Its a long time since i used it, but it is a very poerful program.
0
 
SteveGTRCommented:
Code Projects has "A class for operations with Large Integer Numbers" article:

http://www.codeproject.com/cpp/largenumber.asp
0
 
oleberCommented:
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
 
ody13Author Commented:
Oleber and SteveGTR,

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

Thanks,
Ody
0
 
oleberCommented:
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
 
jonninCommented:
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

Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

  • 2
  • 2
  • 2
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now