Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #29150

Re: What's wrong with my arc tangens calculation?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'python': 0.09; 'lookup': 0.09; 'notation': 0.09; 'python:': 0.09; 'sep': 0.09; '(last': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'values:': 0.16; 'wrote:': 0.17; 'math': 0.20; 'import': 0.21; 'received:209.85.214.174': 0.21; "i've": 0.23; 'header:In-Reply- To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; '>>>>': 0.29; 'fri,': 0.30; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'pm,': 0.35; 'table': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'but': 0.36; 'subject:with': 0.36; 'should': 0.36; 'received:209': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'header:Received:5': 0.40; 'your': 0.60; 'skip:6 10': 0.63; 'more': 0.63; 'paper': 0.78; 'agreement.': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FPlnUFA+DUMBdzJF/du8qxScTx4fxZayzM+qbteNfYE=; b=mXaC58liL9xrqhMWvRftrEy0iYJmy5Gp9XzFQkIDbEr9cspAt/MAAII1LCV0OZ49UU AhnATELUDvquNfRvtXjEU8tmTrXA1eidfMkGHWzAojmjpidVykLkgSeOgy+0aAvIUj15 TqdEOekdlByJuhLEXcjuhtnrg89N8mEIndHT1VPNjpPG0POAFGmIntSzIe8xIXQCW8Cx fv4p/T5SjtM8BGBkbqNHo0tWehSvFEbM+doeSEwlH3hA02rEwbvPy7Z0IRK2VfQ+zVsx J2OTWXBJHltaCmZFqq8wFBbzDuA1wGX6yyDTSBmAyRMJR92AnfXxlVgDaYoYL6bUv+VO 1e7A==
MIME-Version 1.0
In-Reply-To <ba77717e-d812-4132-b477-cc3a79c41476@googlegroups.com>
References <ba77717e-d812-4132-b477-cc3a79c41476@googlegroups.com>
Date Fri, 14 Sep 2012 20:54:15 +1000
Subject Re: What's wrong with my arc tangens calculation?
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
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.693.1347620057.27098.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1347620058 news.xs4all.nl 6894 [2001:888:2000:d::a6]:58503
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29150

Show key headers only | View raw


On Fri, Sep 14, 2012 at 8:49 PM, xliiv <tymoteusz.jankowski@gmail.com> wrote:
> I do some math with python:
>
> import math as m
> m.degrees(m.atan(2))
>>>> 63.43494882292201
>
> but when i lookup tg in a paper table (last decade math book) i've got these values:
>
> tg(63'10'') = 1.9768
> tg(63'20'') = 1.9912
> tg(63'30'') = 2.0057
>
> For me python should return something more like 63'2x'' than 63'4x''(becasue 63'30'' is higher than 2.0)

According to Google:
.43494882292201 degrees = 26.0969294 arcminutes

So I would say that your table and Python are in agreement. Do you
know what the notation 63'30" means?

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

What's wrong with my arc tangens calculation? xliiv <tymoteusz.jankowski@gmail.com> - 2012-09-14 03:49 -0700
  Re: What's wrong with my arc tangens calculation? Chris Angelico <rosuav@gmail.com> - 2012-09-14 20:54 +1000
  Re: What's wrong with my arc tangens calculation? Laszlo Nagy <gandalf@shopzeus.com> - 2012-09-14 12:54 +0200
    Re: What's wrong with my arc tangens calculation? xliiv <tymoteusz.jankowski@gmail.com> - 2012-09-14 04:18 -0700
    Re: What's wrong with my arc tangens calculation? xliiv <tymoteusz.jankowski@gmail.com> - 2012-09-14 04:18 -0700
  Re: What's wrong with my arc tangens calculation? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-09-14 14:13 +0100
  Re: What's wrong with my arc tangens calculation? Chris Angelico <rosuav@gmail.com> - 2012-09-14 23:17 +1000

csiph-web