Solved

Programing with very LARGE Numbers

Posted on 2002-06-30
9
213 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
  • 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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use conditional statements in the C programming language.

705 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now