473,408 Members | 1,749 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,408 software developers and data experts.

"best" rational number library for Python?

A guy at work asked for functionality commonly found with rational numbers,
so I said I'd find and install something. I figured gmpy would be suitable,
alas I'm having trouble successfully building the underlying GMP 4.2.1
library on a PC running Solaris 10 (won't compile with the default --host,
fails "make check" if I go the no-assembly route). Before I invest a bunch
of time into this, am I barking up the wrong tree?

Performance is, for now, certainly not an issue. Even a pure Python
rational number class would probably suffice.

Thx,

Skip
Oct 31 '06 #1
7 1585
sk**@pobox.com writes:
Performance is, for now, certainly not an issue. Even a pure Python
rational number class would probably suffice.
There are certainly some of those around, but I'm surprised there's a
problem with GMP and Solaris.
Oct 31 '06 #2

PaulThere are certainly some of those around, but I'm surprised
Paulthere's a problem with GMP and Solaris.

That was my thought as well.

Skip
Oct 31 '06 #3
A guy at work asked for functionality commonly found with rational numbers,
so I said I'd find and install something. I figured gmpy would be suitable,
alas I'm having trouble successfully building the underlying GMP 4.2.1
library on a PC running Solaris 10 (won't compile with the default --host,
fails "make check" if I go the no-assembly route). Before I invest a bunch
of time into this, am I barking up the wrong tree?
I've successfully compiled GMP 4.2.1 on Solaris 10 x86 using both the
GCC and Sun Studio compilers on AMD 32-bit platform.

I just compiled GMP 4.2.1 on a P4 using

$ CFLAGS="" CC=gcc ./configure
$ gmake; gmake check

and all tests passed.

casevh

Oct 31 '06 #4
A guy at work asked for functionality commonly found with rational numbers,
so I said I'd find and install something. I figured gmpy would be suitable,
alas I'm having trouble successfully building the underlying GMP 4.2.1
library on a PC running Solaris 10 (won't compile with the default --host,
fails "make check" if I go the no-assembly route). Before I invest a bunch
of time into this, am I barking up the wrong tree?
I've successfully compiled GMP 4.2.1 on Solaris 10 x86 using both the
GCC and Sun Studio compilers on AMD 32-bit platform.

I just compiled GMP 4.2.1 on a P4 using

$ CFLAGS="" CC=gcc ./configure
$ gmake; gmake check

and all tests passed.

casevh

Oct 31 '06 #5
Oops, on the double-post.

ca****@comcast.net wrote:
A guy at work asked for functionality commonly found with rational numbers,
so I said I'd find and install something. I figured gmpy would be suitable,
alas I'm having trouble successfully building the underlying GMP 4.2.1
library on a PC running Solaris 10 (won't compile with the default --host,
fails "make check" if I go the no-assembly route). Before I invest a bunch
of time into this, am I barking up the wrong tree?
I've successfully compiled GMP 4.2.1 on Solaris 10 x86 using both the
GCC and Sun Studio compilers on AMD 32-bit platform.

I just compiled GMP 4.2.1 on a P4 using

$ CFLAGS="" CC=gcc ./configure
$ gmake; gmake check
You must use "gmake". "make" fails during "make check"
and all tests passed.

casevh
Oct 31 '06 #6
>I just compiled GMP 4.2.1 on a P4 using

$ CFLAGS="" CC=gcc ./configure
$ gmake; gmake check
casevhYou must use "gmake". "make" fails during "make check"

Very weird:

piggy:% make -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
piggy:% gmake -v
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Nevertheless, using "gmake" instead of "make" did indeed work. Thanks for
the hint.

Skip
Oct 31 '06 #7
At Tuesday 31/10/2006 21:16, sk**@pobox.com wrote:
casevhYou must use "gmake". "make" fails during "make check"

Very weird:

piggy:% make -v
GNU Make 3.80
piggy:% gmake -v
GNU Make 3.80

Nevertheless, using "gmake" instead of "make" did indeed work. Thanks for
the hint.
Ouch! Like bash behaving different when invoked with the name "sh".
Why do those programs try to be soooo smart?
--
Gabriel Genellina
Softlab SRL

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
Nov 1 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Wm | last post by:
As an amateur wannabe-pro programmer, I am trying to learn not only how to use PHP but how to do it *efficiently*. (Trust me, you don't wanna see some of my stuff!!!) I'm noticing a number of my...
1
by: Aaron Davies | last post by:
I'm developing a collaborative whiteboard, in which all objects (shapes, clip art icons, etc.) are synchronized between all participants in a session. It's working well, but I'm running into a...
2
by: Svein Erik Storkaas | last post by:
I am about to add security to a web project for the first time, and i'm wondering what the easiest, yet a good way to do this? The page is just for personal use, so it does not need to be "ultra"...
5
by: Achim Domma | last post by:
Hi, I have to convert a string to its "best possible" ascii representation. It's clear to me that this is not possible or sense full for all unicode characters. But for most European characters...
8
by: elias.farah | last post by:
Hello Everyone, I'm having some very weird behavior on a couple of Access forms. (Not all forms, just some of them). The forms have been working for years, under Access XP/2003 etc, and last...
9
by: =?Utf-8?B?QW1tZXI=?= | last post by:
I've read many incomplete opinions about the "Best Practice" for securely accessing SQL but what I really need to find the "Best Practice" that fits my applications needs. Currently (alpha...
2
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
0
by: Russell Warren | last post by:
I'm running python 2.5.1 and it seems that SimpleXmlRpcServer is not setup to support the base datetime module in the same way xmlrpclib has been with "use_datetime". I see that someone (Virgil...
1
by: =?ISO-8859-1?Q?Andr=E9?= | last post by:
Hi everyone, I'd be interested in hearing suggestions as to the "best" way to drive a Python program step by step from another application. Details: --------- I have implemented a "Robot"...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.