Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #20280
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.042 |
| X-Spam-Evidence | '*H*': 0.92; '*S*': 0.00; 'subject:Python': 0.05; 'python': 0.08; 'assert': 0.09; 'am,': 0.12; 'expression,': 0.16; 'syntaxerror:': 0.16; 'cc:addr:python-list': 0.16; 'syntax': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply- To:1': 0.22; 'math': 0.24; 'code': 0.26; 'invalid': 0.28; 'problem': 0.29; 'cc:addr:python.org': 0.29; 'header:User- Agent:1': 0.33; 'it.': 0.33; 'however,': 0.35; 'response': 0.36; 'cc:2**1': 0.36; 'received:192': 0.38; 'portion': 0.38; 'except': 0.39; 'might': 0.40; 'type': 0.61; 'your': 0.61; 'header:Reply- To:1': 0.70; 'reply-to:no real name:2**0': 0.72; '10:20': 0.84; 'quoting.': 0.84; 'remarks': 0.84 |
| Date | Sun, 12 Feb 2012 12:00:33 -0500 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111109 Thunderbird/3.1.16 |
| MIME-Version | 1.0 |
| To | inq1ltd <inq1ltd@inqvista.com> |
| Subject | Re: Numeric root-finding in Python |
| References | <4f375f0f$0$29986$c3e8da3$5496439d@news.astraweb.com> <2276591.XVerqeASP3@mach-114-20> |
| In-Reply-To | <2276591.XVerqeASP3@mach-114-20> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:nRBCAUvmzuzgfeCsvVt+KEYew78tHsFZvWNcCw3KueZ RUUt9WFlhZPo993ompx1yCbyGASTRpyH49yKcugXRHkpQTTIm7 RTo5GQVB5OR+3NK/HIeXLZ9HHeveAY5+vUdcRu2/O67JJQKkPW xy3gAwMyvs2N1iolOd8povoTg91apl1X63szfAHysLyaQEoVkA KAdAZ8yl4IPEpmlyKz2as5kL48zZh7IdGQYi4zflMX77gsl+cY iYkq+svAd72ihv+YoM7qdQHnfg1Z3U9A2bJ/rd8B/BILwqPX3G x8bwzZZID1HUnPJpVSQsYP/mSzhU3j0pfhV7l2z8EfeGtlCjXH 8l4X7k4CLy6QUyeGnyNA= |
| Cc | python-list@python.org, Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| Reply-To | d@davea.name |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5732.1329066049.27778.python-list@python.org> (permalink) |
| Lines | 24 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1329066049 news.xs4all.nl 6861 [2001:888:2000:d::a6]:46172 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:20280 |
Show key headers only | View raw
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
--
DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Numeric root-finding in Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-12 06:41 +0000
Re: Numeric root-finding in Python Eelco <hoogendoorn.eelco@gmail.com> - 2012-02-12 02:10 -0800
Re: Numeric root-finding in Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-02-12 13:39 +0000
Re: Numeric root-finding in Python Terry Reedy <tjreedy@udel.edu> - 2012-02-12 16:19 -0500
Re: Numeric root-finding in Python 88888 Dihedral <dihedral88888@googlemail.com> - 2012-02-12 05:13 -0800
Re: Numeric root-finding in Python Robert Kern <robert.kern@gmail.com> - 2012-02-12 13:52 +0000
Re: Numeric root-finding in Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-12 22:53 +0000
Re: Numeric root-finding in Python inq1ltd <inq1ltd@inqvista.com> - 2012-02-12 10:20 -0500
Re: Numeric root-finding in Python David Monaghan <monaghand.david@gmail.com> - 2012-02-21 01:33 +0000
Re: Numeric root-finding in Python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-02-21 02:21 +0000
Re: Numeric root-finding in Python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-02-12 11:47 -0500
Re: Numeric root-finding in Python Dave Angel <d@davea.name> - 2012-02-12 12:00 -0500
Re: Numeric root-finding in Python Mark Dickinson <mdickinson@enthought.com> - 2012-02-12 12:18 -0800
Re: Numeric root-finding in Python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-02-12 23:05 +0000
Re: Numeric root-finding in Python Dave Angel <d@davea.name> - 2012-02-12 18:52 -0500
csiph-web