Numeric root-finding in Python
d at davea.name
Sun Feb 12 18:00:33 CET 2012
On 02/12/2012 10:20 AM, inq1ltd 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
You top-posted. Please type your response after whatever you're
quoting. In my case, I only need a portion of what you said, and my
remarks are following it.
assert takes an expression, so the one above is just wrong.
Fortunately, Python would tell you with
SyntaxError: invalid syntax
More information about the Python-list