468,291 Members | 1,482 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,291 developers. It's quick & easy.

Looking for math library

Hi,

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

Michael Mueller
Nov 5 '06 #1
4 1155

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
"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

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
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.

Similar topics

reply views Thread by Jussi Mononen | last post: by
8 posts views Thread by Sensei | last post: by
3 posts views Thread by DrJRice | last post: by
6 posts views Thread by Mitchell Vincent | last post: by
110 posts views Thread by Gregory Pietsch | last post: by
15 posts views Thread by Chris | last post: by
5 posts views Thread by aguirre.adolfo | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.