How can this assert() ever trigger?

Alain Ketterlin alain at dpt-info.u-strasbg.fr
Sat May 10 11:56:58 EDT 2014


albert at spenarnc.xs4all.nl (Albert van der Horst) writes:

[...]
> Now on some matrices the assert triggers, meaning that nom is zero.
> How can that ever happen? mon start out as 1. and gets multiplied

[several times]

> with a number that is asserted to be not zero.

Finite precision. Try: 1.*1e-162*1e-162. Equals zero.

-- Alain.



More information about the Python-list mailing list