Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #29149 > unrolled thread
| Started by | xliiv <tymoteusz.jankowski@gmail.com> |
|---|---|
| First post | 2012-09-14 03:49 -0700 |
| Last post | 2012-09-14 23:17 +1000 |
| Articles | 7 — 4 participants |
Back to article view | Back to comp.lang.python
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
| From | xliiv <tymoteusz.jankowski@gmail.com> |
|---|---|
| Date | 2012-09-14 03:49 -0700 |
| Subject | What's wrong with my arc tangens calculation? |
| Message-ID | <ba77717e-d812-4132-b477-cc3a79c41476@googlegroups.com> |
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) what's wrong?
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2012-09-14 20:54 +1000 |
| Message-ID | <mailman.693.1347620057.27098.python-list@python.org> |
| In reply to | #29149 |
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
[toc] | [prev] | [next] | [standalone]
| From | Laszlo Nagy <gandalf@shopzeus.com> |
|---|---|
| Date | 2012-09-14 12:54 +0200 |
| Message-ID | <mailman.694.1347620106.27098.python-list@python.org> |
| In reply to | #29149 |
> 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!)
[toc] | [prev] | [next] | [standalone]
| From | xliiv <tymoteusz.jankowski@gmail.com> |
|---|---|
| Date | 2012-09-14 04:18 -0700 |
| Message-ID | <95bea1d5-ccbd-4987-9b64-6555075a3c1b@googlegroups.com> |
| In reply to | #29151 |
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.
[toc] | [prev] | [next] | [standalone]
| From | xliiv <tymoteusz.jankowski@gmail.com> |
|---|---|
| Date | 2012-09-14 04:18 -0700 |
| Message-ID | <mailman.696.1347621517.27098.python-list@python.org> |
| In reply to | #29151 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2012-09-14 14:13 +0100 |
| Message-ID | <mailman.701.1347628381.27098.python-list@python.org> |
| In reply to | #29149 |
On 14/09/2012 11:54, Chris Angelico wrote: > 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 > Somebody or something has a length, height or width of 63 feet 30 inches? :) -- Cheers. Mark Lawrence.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2012-09-14 23:17 +1000 |
| Message-ID | <mailman.702.1347628665.27098.python-list@python.org> |
| In reply to | #29149 |
On Fri, Sep 14, 2012 at 11:13 PM, Mark Lawrence <breamoreboy@yahoo.co.uk> wrote: > Somebody or something has a length, height or width of 63 feet 30 inches? :) Sounds like the height of a building with a barometer. The thirty inches, of course, being the height of the barometer. ChrisA (big, big barometer)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web