[PYTHON MATRIX-SIG] What happened to math exceptions?

Konrad Hinsen hinsen@ibs.ibs.fr
Wed, 11 Sep 96 13:07:32 +0100


Here's today's surprise:

  Python 1.4b3 (October 13 1995) [C]
  Copyright 1991-1996 Stichting Mathematisch Centrum, Amsterdam
  >>> from umath import *
  from umath import *
  >>> log(-1.)
  log(-1.)
  log: DOMAIN error
  -1.79769313486e+308
  >>>

Shouldn't umath functions raise exceptions in such cases?
I can't see any difference between umath and fast_umath for
this example.

Konrad.
-- 
-------------------------------------------------------------------------------
Konrad Hinsen                          | E-Mail: hinsen@ibs.ibs.fr
Laboratoire de Dynamique Moleculaire   | Tel.: +33-76.88.99.28
Institut de Biologie Structurale       | Fax:  +33-76.88.54.94
41, Ave. des Martyrs                   | Deutsch/Esperanto/English/
38027 Grenoble Cedex 1, France         | Nederlands/Francais
-------------------------------------------------------------------------------

=================
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================