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 2 1910
"Norbert Nemec" <no**************************************@NOSPAM.C OM> wrote
in message news:bh**********@rznews2.rrze.uni-erlangen.de... 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
"Norbert Nemec" <no**************************************@NOSPAM.C OM>
wrote in message news:bh**********@rznews2.rrze.uni-erlangen.de... 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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: i_vincent |
last post by:
Hi all,
Newbie Python programmer here, so please be patient. I have spent all
day googling for an answer to my problem, but everything I try fails to
work (or works from the Interpreter with a...
|
by: franzkowiak |
last post by:
Hello,
I've read some bytes from a file and just now I can't interpret 4 bytes
in this dates like a real value.
An extract from my program
def l32(c):
return ord(c) + (ord(c)<<8) +...
|
by: Lionel B |
last post by:
Greetings,
Using gcc (GCC) 3.3.3 (cygwin special) on Win2K
Does anyone know if there is a convenient mechanism to cause a C++
exception to be thrown whenever a IEEE 754 floating-point...
|
by: GooglePoster |
last post by:
Hello,
I am looking for a function/utility to read in an IEEE value and
convert this to decimal, for testing purposes. Also, I need to
convert decimal values to IEEE values to send out on a...
|
by: Andy |
last post by:
Hi,
I don't know if this is the correct group to post this, but
when I multiply a huge floating point value by a really
small (non-zero) floating point value, I get 0 (zero) for the result.
This...
|
by: Benjamin Rutt |
last post by:
Does anyone have C code laying around to do this?
I have to read in some binary data files that contains some 4-byte
IBM/370 floating point values. I would like a function to convert
4-byte...
|
by: Nick Maclaren |
last post by:
The numerical robustness of Python is very poor - this is not its fault,
but that of IEEE 754 and (even more) C99. In particular, erroneous
numerical operations often create apparently valid...
|
by: revuesbio |
last post by:
Hi
Does anyone have the python version of the conversion from msbin to
ieee?
Thank u
|
by: ms292606 |
last post by:
Hi,
I am currently working on a program to decode data that is collected on a gps receiver and i've ran into a problem. Some of the data is encoded in IEEE 754. I wrote the following functions to...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
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...
|
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...
|
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)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
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
|
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...
| |