By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,091 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,091 IT Pros & Developers. It's quick & easy.

Looking for math library

P: n/a
Hi,

I am looking for a math library which enables
the calculation of rational numbers.

Michael Mueller
Nov 5 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a

Michael Mueller wrote:
Hi,

I am looking for a math library which enables
the calculation of rational numbers.

Michael Mueller
what's wrong with standard C library? I am afraid you have to be more
speciic about your library needs if standard C library is not suitable
for you.

Nov 5 '06 #2

P: n/a
"fermineutron" <fr**********@yahoo.comwrites:
Michael Mueller wrote:
>I am looking for a math library which enables
the calculation of rational numbers.
what's wrong with standard C library? I am afraid you have to be more
speciic about your library needs if standard C library is not suitable
for you.
The standard C library has no support for rational numbers (numbers
represented as ratios of integers).

I think the Gnu MP library supports arithmetic on arbitrary-precision
rational numbers.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 5 '06 #3

P: n/a

Keith Thompson wrote:
"fermineutron" <fr**********@yahoo.comwrites:
Michael Mueller wrote:
I am looking for a math library which enables
the calculation of rational numbers.
what's wrong with standard C library? I am afraid you have to be more
speciic about your library needs if standard C library is not suitable
for you.

The standard C library has no support for rational numbers (numbers
represented as ratios of integers).

I think the Gnu MP library supports arithmetic on arbitrary-precision
rational numbers.
Yes, it does. And not just supports them, but will
automatically reduce to lowest terms, so that

5/6 + 5/6 = 5/3

Highly recommended.
>
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 5 '06 #4

P: n/a
me********@aol.com wrote:
>>I think the Gnu MP library supports arithmetic on arbitrary-precision
rational numbers.


Yes, it does. And not just supports them, but will
automatically reduce to lowest terms, so that

5/6 + 5/6 = 5/3

Highly recommended.
Thank you very much.

That is exactly what I am looking for.

Michael Mueller
Nov 5 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.