Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52723
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <antoon.pardon@rece.vub.ac.be> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.048 |
| X-Spam-Evidence | '*H*': 0.90; '*S*': 0.00; 'argument': 0.05; 'received:134': 0.05; 'arguments': 0.09; 'calculating': 0.09; 'modulo': 0.09; 'useless': 0.09; 'mardi': 0.16; 'subject:non': 0.16; 'value.': 0.19; '>>>': 0.22; 'example': 0.22; 'header:User- Agent:1': 0.23; 'typical': 0.24; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'expansion': 0.30; 'usually': 0.31; 'post.': 0.31; 'really,': 0.31; 'reduced': 0.31; 'steven': 0.31; '-----': 0.33; 'not.': 0.33; 'something': 0.35; 'point.': 0.35; 'but': 0.35; 'there': 0.35; 'adjust': 0.36; 'cancel': 0.36; 'subject:skip:d 10': 0.36; 'subject:?': 0.36; 'changing': 0.37; 'two': 0.37; 'to:addr:python-list': 0.38; 'previous': 0.38; 'to:addr:python.org': 0.39; 'first': 0.61; 'email addr:gmail.com': 0.63; 'more': 0.64; 'relatively': 0.65; 'within': 0.65; 'series': 0.66; 'yes': 0.68; 'pardon': 0.84; 'reducing': 0.93; '2013': 0.98 |
| X-IronPort-Anti-Spam-Filtered | true |
| X-IronPort-Anti-Spam-Result | AqAEAGYgE1KGuA9G/2dsb2JhbABZhyW8LIE3gxkBBSMPAUURCxoCBRYLAgIJAwIBAgEPNhMGAgKHegMPoQ6IUw1XgSmBKYw7gn8WglKBKgOVe4FphhaGF4Uogx4 |
| Date | Tue, 20 Aug 2013 09:55:44 +0200 |
| From | Antoon Pardon <antoon.pardon@rece.vub.ac.be> |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Importing variables non-deterministic? |
| References | <a75383ec-b363-4ad4-9703-ca5d8ea614df@googlegroups.com> <520f9054$0$30000$c3e8da3$5496439d@news.astraweb.com> <5211C5BD.5040209@rece.vub.ac.be> <kusidq$kaa$1@ger.gmane.org> <5211D464.5090303@rece.vub.ac.be> <mailman.17.1376901181.19984.python-list@python.org> <52125071$0$29986$c3e8da3$5496439d@news.astraweb.com> <mailman.40.1376944517.19984.python-list@python.org> <52130335$0$29885$c3e8da3$5496439d@news.astraweb.com> <mailman.49.1376981719.19984.python-list@python.org> <c5e3e122-06df-49d0-846d-365525cd6380@googlegroups.com> |
| In-Reply-To | <c5e3e122-06df-49d0-846d-365525cd6380@googlegroups.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| 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.51.1376985351.19984.python-list@python.org> (permalink) |
| Lines | 46 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1376985351 news.xs4all.nl 15893 [2001:888:2000:d::a6]:56929 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52723 |
Show key headers only | View raw
Op 20-08-13 09:31, wxjmfauth@gmail.com schreef: > Le mardi 20 août 2013 08:55:18 UTC+2, Antoon Pardon a écrit : >> >>> >> > >> >> >> >>> If you consider the implementation of sin and cos functions, they usually >> >>> reduce the argument modulo π to something in the first quadrant, and then >> >>> use symmetry to adjust the value. So changing the value of pi could, in >> >>> principle, change the implementation of sin, cos and tan. >> >> >> >> Yes there is this aspect, which is a fair point. >> >> >> >> -- >> >> Antoon Pardon > > ----- > > Not really, see my previous post. This is only a geometric > interpretation, useless for calculation. No it is not. Steven is correct that if for example you want the value of sin(10), that in a typical implementation this will be reduced to calculating -sin(10 - 3π). This for two reasons. It is faster to first reduce the argument within the first kwadrant, do the series expansion and then correct for sign than to expand the series with the original argument and it is more acurate because first reducing asures that all terms will stay relatively small while using the original arguments can intrduce some large terms that will have to cancel each other but that will reduce acuracy. -- Antoon Pardon
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Importing variables non-deterministic? tmellman@googlemail.com - 2013-08-17 07:25 -0700
Re: Importing variables non-deterministic? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-17 15:01 +0000
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 09:14 +0200
Re: Importing variables non-deterministic? Dave Angel <davea@davea.name> - 2013-08-19 07:45 +0000
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 10:16 +0200
Re: Importing variables non-deterministic? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-19 16:57 +0000
Re: Importing variables non-deterministic? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-19 17:16 +0000
Re: Importing variables non-deterministic? Chris Angelico <rosuav@gmail.com> - 2013-08-19 18:25 +0100
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 19:40 +0200
Re: Importing variables non-deterministic? Chris Angelico <rosuav@gmail.com> - 2013-08-19 09:32 +0100
Re: Importing variables non-deterministic? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-19 17:05 +0000
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 22:34 +0200
Re: Importing variables non-deterministic? Steven D'Aprano <steve@pearwood.info> - 2013-08-20 05:48 +0000
Re: Importing variables non-deterministic? wxjmfauth@gmail.com - 2013-08-19 23:40 -0700
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-20 08:55 +0200
Re: Importing variables non-deterministic? wxjmfauth@gmail.com - 2013-08-20 00:31 -0700
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-20 09:55 +0200
Re: Importing variables non-deterministic? wxjmfauth@gmail.com - 2013-08-20 02:15 -0700
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 11:03 +0200
Re: Importing variables non-deterministic? Chris Angelico <rosuav@gmail.com> - 2013-08-19 10:18 +0100
Re: Importing variables non-deterministic? Peter Otten <__peter__@web.de> - 2013-08-19 11:49 +0200
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 13:54 +0200
Re: Importing variables non-deterministic? Dave Angel <davea@davea.name> - 2013-08-19 12:33 +0000
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 16:55 +0200
Re: Importing variables non-deterministic? Chris Angelico <rosuav@gmail.com> - 2013-08-19 16:04 +0100
Re: Importing variables non-deterministic? Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-08-19 19:25 +0200
Re: Importing variables non-deterministic? Ben Finney <ben+python@benfinney.id.au> - 2013-08-20 11:14 +1000
csiph-web