Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > IEEE special values

Reply
Thread Tools

IEEE special values

 
 
Norbert Nemec
Guest
Posts: n/a
 
      08-16-2003
Hi there,

is there any simple reason why IEEE special values are so poorly supported
in python? Are there any serious efforts to change that? NaN and Inf are an
extremely useful concept for numerical calculations and they would mix
perfectly with the concepts in NumPy, anyhow, the support seems to be
absolutely minimal.

(The ideas in PEP 754 do not really change much: There is little use in easy
access to those values, if the math functions don't accept them as input
but break down.)

Ciao,
Nobbi
 
Reply With Quote
 
 
 
 
John Roth
Guest
Posts: n/a
 
      08-16-2003

"Norbert Nemec" <nobbi_at_theorie3.physik.uni-> wrote
in message news:bhl7bi$ggg$...
> Hi there,
>
> is there any simple reason why IEEE special values are so poorly supported
> in python? Are there any serious efforts to change that? NaN and Inf are

an
> extremely useful concept for numerical calculations and they would mix
> perfectly with the concepts in NumPy, anyhow, the support seems to be
> absolutely minimal.
>
> (The ideas in PEP 754 do not really change much: There is little use in

easy
> access to those values, if the math functions don't accept them as input
> but break down.)


Like a lot of things, Python's math functions are a rather thin layer
on top of the native C library's math functions. If the C library's
math functions, to use the vernacular, suck, then Python's math
functions will do likewise.

One of the essential problems is that every library does certain
things differently, like deciding whether it's going to start up with
silent or signaling NaN's, or what the actual string values are for
NaN, infinity and so forth.

It takes developer time to clean up that situation. I suspect
that volunteers would be very welcome.

John Roth

>
> Ciao,
> Nobbi



 
Reply With Quote
 
 
 
 
Terry Reedy
Guest
Posts: n/a
 
      08-16-2003

"Norbert Nemec" <nobbi_at_theorie3.physik.uni->
wrote in message news:bhl7bi$ggg$...

> is there any simple reason why IEEE special values are so poorly

supported
> in python?


A. They are poorly, and just as importantly, inconsistently supported
in C.
B. Python's floating point arithmetic and standard functions are thin
wrappers of the C layer.

TJR


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Report: How special are you? Death from Above MCSE 2 03-19-2007 07:22 PM
Extended deadline: CfP IEEE Software Special Issueon Rapid Application Development withDynamically Typed Languages Laurence Tratt Ruby 0 01-29-2007 09:28 PM
CfP: IEEE Software Special Issue on Rapid Application Development with Dynamically Typed Languages Laurence Tratt Ruby 1 09-26-2006 06:50 PM
Special editions and Deluxe special edition dvd question. Rclrk43 DVD Video 8 12-29-2004 07:32 PM
Special ascii values _libra_ C Programming 35 04-19-2004 05:40 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57