Numeric root-finding in Python

David Monaghan monaghand.david at gmail.com
Mon Feb 20 20:33:19 EST 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