Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Ocean tides in Perl

by pvaldes (Chaplain)
on Oct 31, 2011 at 20:54 UTC ( #934967=note: print w/ replies, xml ) Need Help??


in reply to Ocean tides in Perl

mmmh, you really have my interest, please elaborate the idea. Of course is possible and you'll probably want:

use strict; use warnings; use Astro::MoonPhase; use Math::Trig; # you will need the cosine function # print cos X ; # where X in radians; my $date = time(); my @dataphase = phase($date); print "Distance to the Moon at this day: ", $dataphase[3], " Km";


Comment on Re: Ocean tides in Perl
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934967]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (18)
As of 2015-07-07 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls