Numeric root-finding in Python

David Monaghan monaghand.david at gmail.com
Tue Feb 21 02:33:19 CET 2012


On Sun, 12 Feb 2012 10:20:17 -0500, inq1ltd <inq1ltd at inqvista.com> wrote:

>
>
>I don't know the first thing about this math problem however,
>
>if I were to code this I might try ;
>
>   except ZeroDivisionError:
>         assert w = -1
>
>rather than;
>
>   except ZeroDivisionError:
>         assert w == -1

Why?

DM



More information about the Python-list mailing list