Aldebaran has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
When did fall begin? Is there only one answer to that question? I'm honestly not sure. Let me describe the scene in terms of the dynamics of gilligan's island, because if we can't generalize to the arbitrary location in the pacific, then this isn't much of a script. 'MaryAnn' and I found ourselves on an island with a west wind coming in that made it hard to stand. It was 9/11, and our phones were gone. The Gilligan in me savors being lost, but we were up against the elements, and knowing west was important. In such conditions, we hunkered down, stayed close, estimated waves, and watched events along the ecliptic.
Several days after the ordeal, we're looking at the sunset, talking about the onset of fall, and this time with perl at hand...didn't want to donate my computer to the Columbia. I looked at the sky maps and realized that fall occurs exactly when the sun sets in the west. Maryann's question was "how long was the day today?" I'd like to be informed by my compiler. Output precedes code.
C:\Users\Fred\Desktop>perl fall1.pl cos tau = - tan phi * tan delta onset of fall ==> delta equal zero delta is 0 phi is latitude: 45 in portland (close enough) phi is 0.785398163397448 rhs is 0 tau is 1.5707963267949 degrees is 90
C:\Users\Fred\Desktop>type fall1.pl #!/usr/bin/perl -w use strict; use 5.010; use Math::Trig; use Math::Trig ':pi'; say "cos tau = - tan phi * tan delta"; say "onset of fall ==> delta equal zero"; my $delta = tan( 0); say "delta is $delta"; say "phi is latitude: 45 in portland (close enough)"; my $phi = deg2rad(45); say "phi is $phi"; my $rhs = - tan ($phi) * tan ($delta); say "rhs is $rhs"; my $tau = acos($rhs); say "tau is $tau"; my $degrees = rad2deg($tau); say "degrees is $degrees";
I'm given to believe that the output in degrees is a measurement of time. I've read two differing treatments on how it is *exactly* so, both of which differ, and are wrong. The better one gets to 1.3%. That's not good enough for an oblate spheroid, unless I can't come up with better. What's more, the entire scenario makes me think of re-creating giant wheels, and history is replete with able people who have been making this a thing for much longer than I have.
My question is: when did fall hit you?
Счастливая осень!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: calculate length of day as function of space at onset of fall
by haukex (Archbishop) on Sep 24, 2016 at 11:01 UTC | |
by Aldebaran (Curate) on Sep 28, 2016 at 08:01 UTC | |
|
Re: calculate length of day as function of space at onset of fall
by Linicks (Scribe) on Sep 24, 2016 at 07:58 UTC | |
by soonix (Chancellor) on Sep 26, 2016 at 09:18 UTC | |
by Aldebaran (Curate) on Sep 27, 2016 at 10:38 UTC | |
|
Re: calculate length of day as function of space at onset of fall
by CountZero (Bishop) on Sep 26, 2016 at 19:51 UTC | |
by Aldebaran (Curate) on Sep 28, 2016 at 10:38 UTC | |
|
Re: calculate length of day as function of space at onset of fall
by Linicks (Scribe) on Oct 29, 2016 at 12:49 UTC |