473,320 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1353

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jussi Mononen | last post by:
Hi, I'm having problems to successfully execute the test scripts on a Compaq host ( OSF1 tr51bdev V5.1 2650 alpha ). Almost all tests end up with the following error message "PARI: *** ...
8
by: Sensei | last post by:
I have a quick question about the math library included in the standard C90 (and 99). The gcc, xlc and possibly other compilers/linkers on some unix platforms cannot use any math functions in...
21
by: Rich | last post by:
I was considering C# for developing a scientific application, but I have noticed a ~30% difference between VC++ .NET and C# on the same machine, under identical conditions: double a = 0,b = 0, c...
3
by: DrJRice | last post by:
I have just switched from VB6 to vb .net. In Vosual Studio.net I am missing the reference to System.Math and can not find it anywhere. I assume is is System.Math.dll. Where the hell is it? ...
6
by: Mitchell Vincent | last post by:
Just making sure I'm not missing the boat here, but are there any special routines for doing currency math (fixed precision stuff) in .NET? The wonderful problems of doing math on decimals tend...
110
by: Gregory Pietsch | last post by:
I'm writing a portable implementation of the C standard library for http://www.clc-wiki.net and I was wondering if someone could check the functions in math.h for sanity/portability/whatever. I'm...
7
by: Dew | last post by:
Hi All The problem is related to strtod()/atof()'s well known behaviour. strtod()/atof() add some extra digits at the end of precision while converting from string to double. Becasue...
15
by: Chris | last post by:
>>from math import * 0.0 1.2246063538223773e-016 -2.4492127076447545e-016 1.0 -1.0 1.0 The cosine function works fine, but I'm getting weird answers for sine. Is this a bug? Am I doing...
5
by: aguirre.adolfo | last post by:
Hi, I am a very newbie who would very much appreciate some hints. Python 2.52. on Windows XP for now. Soon on Ubuntu 8 I am teaching myself Python following free tutorials. I can solve...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.