Re: Floating point subtraction rounding error (NOT display error)

2007-12-14 Thread J. Robertson
Keflavich wrote: > [snip] > > I feel fairly certain, however, that floats are exactly what I want > for my purposes: I need moderately high precision and I'm not > concerned about the least-significant-bit errors except when they > violate function domains. I guess the overriding lesson is that e

Re: GUI development with 3D view

2007-12-10 Thread J. Robertson
Méta-MCI (MVP) wrote: >> no idea how it works with windows. > > On XP: fine. > On Vista: very difficult... Hello Captain Obvious :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI development with 3D view

2007-12-10 Thread J. Robertson
Diez B. Roggisch wrote: > Achim Domma wrote: > [snip] >> >> Is there an alternative to wx+pyOpenGL? > > The usual suspects - mainly Qt, possibly Tk (not sure if there is a > python-available version of open gl canvasses for Tk) > > Diez togl is a Tk/OpenGL widget that can be used with python as

Re: Science list

2007-11-30 Thread J. Robertson
Hi, A.T.Hofkamp wrote: > So what is the focus in the list? > > I think 'science' is both too broad and in many cases not at all relevant for > the problem at hand. > > [snip] > > Any particular brand of science (CS, Math, Physics, Bio, Chemistry, other)? > > Should I use Python for programmin

How to suggest a new Python list? Was: Science list

2007-11-29 Thread J. Robertson
Francesco Pietra wrote: > I was trying to suggest a more specific mail-list in order not to be floaded. > I > am the opinion that python-list@python.org is very informative and useful, > though it is hard to find the time for so many mails. > f. > I agree with Francesco: Python is increasingly

Re: Seeking Python Developer

2007-11-15 Thread J. Robertson
[EMAIL PROTECTED] wrote: > Hi, I work for an IT company in Phoenix, AZ and am trying to find an > experienced python developer in the area. Can anyone help? Hi, There's a Python job board at http://www.python.org/community/jobs/ The first link on the page documents how to get your ad listed. j.

Re: Problem using os.environ.get

2007-11-14 Thread J. Robertson
[EMAIL PROTECTED] wrote: > > > # echo $HOSTTYPE > x86_64 > # python import os print os.environ.get('HOSTTYPE') > None > > If I do the same thing with a different variable (XILINX, in this > case), it works fine. bash documentation indicates that HOSTTYPE (and a few others: OSTYPE, MA

Re: Loop three lists at the same time?

2007-11-13 Thread J. Robertson
Davy wrote: > Hi all, > > I have three lists with the same length. Is there any method to loop > the three lists without a loop counter? > > Best regards, > Davy > Hello, the zip function? >>> list1 = [1,2,3] >>> list2 = [4,5,6] >>> list3 = [7,8,9] >>> for a,b,c in zip(list1,list2,list3): ...

Re: Can you determine the sign of the polar form of a complex number?

2007-10-17 Thread J. Robertson
[EMAIL PROTECTED] wrote: > Just to clarify what I'm after: > > If you plot (-3)^n where n is a set of negative real numbers between 0 > and -20 for example, then you get a discontinuos line due to the > problem mentioned above with fractional exponents. > > .. > It looks like you crash-landed

Re: Co-developers wanted: document markup language

2007-08-24 Thread J. Robertson
olive wrote: >>> [snip] > > But few people are used to Plain Text Markup (excepted in some > scientific area maybe) and it is error prone. > It looks very much like Gummi's authors and target audience actually are part of the few people you are talking about: i.e. console-happy folks that ar

Re: Need to generate some functions.

2007-08-17 Thread J. Robertson
you can use the dictionary returned by the built in function vars, along the lines of >>> vars()["foo"] = lambda x: 3*x >>> foo(2) 6 but polluting your name space with data counts as bad style and will probably bite you at some point -- you probably are better of putting closures in a dictio

Re: Determinant of Large Matrix

2007-06-06 Thread J. Robertson
James Stroud wrote: > Hello All, > > I'm using numpy to calculate determinants of matrices that look like > this (13x13): > > [[ 0. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.] [snip] > But I have a feeling I'm exceeding the capacity of floats here. Does > anyone have an idea for how to

Re: How to calculate definite integral with python

2007-05-15 Thread J. Robertson
[EMAIL PROTECTED] wrote: > I'm trying to do some integral calculation. I have searched the web, but > haven't found any useful information. Will somebody point me to the > right resources on the web for this job ? > > Thanks a lot. > > ps. Can numpy be used for this job?* > * It can be done wi