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


Groups > comp.lang.python > #29154

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!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tymoteusz.jankowski@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'python': 0.09; 'friday,': 0.09; 'lookup': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr :python-list': 0.10; '(last': 0.16; '30"': 0.16; 'values:': 0.16; 'wrote:': 0.17; 'thanks,': 0.18; 'math': 0.20; 'cc:2**0': 0.23; '(you': 0.23; 'minutes.': 0.23; "python's": 0.23; "i've": 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header :In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'all.': 0.28; 'arc': 0.29; 'function': 0.30; 'received:google.com': 0.34; 'wrong': 0.34; '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; 'nothing': 0.38; 'skip:6 10': 0.63; 'more': 0.63; 'paper': 0.78; '(according': 0.84; 'nagy': 0.84
Newsgroups comp.lang.python
Date Fri, 14 Sep 2012 04:18:33 -0700 (PDT)
In-Reply-To <mailman.694.1347620106.27098.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=87.205.25.132; posting-account=SsjJvwoAAAAbGEB6oRibqD8UwTelug2W
References <ba77717e-d812-4132-b477-cc3a79c41476@googlegroups.com> <mailman.694.1347620106.27098.python-list@python.org>
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-IP 87.205.25.132
MIME-Version 1.0
Subject Re: What's wrong with my arc tangens calculation?
From xliiv <tymoteusz.jankowski@gmail.com>
To comp.lang.python@googlegroups.com
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
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>
Message-ID <mailman.696.1347621517.27098.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1347621517 news.xs4all.nl 6933 [2001:888:2000:d::a6]:39685
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:29154

Show key headers only | View raw


On Friday, September 14, 2012 12:55:06 PM UTC+2, Laszlo Nagy wrote:
> > 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)
> 
> >
> 
> > what's wrong?
> 
> >
> 
> 63� 30" is 63.5�. So nothing is wrong. (You know, 1� = 60 arc second!)

So the wrong part is me ;)
The python's 63.43494882292201 is degrees (according to function math.degrees)
but book's value is in minutes. Clearified Thanks, all.

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