diff options
| author | Joelle Maslak <jmaslak@antelope.net> | 2019-04-29 00:11:16 -0600 |
|---|---|---|
| committer | Joelle Maslak <jmaslak@antelope.net> | 2019-04-29 00:11:16 -0600 |
| commit | cafb5ec400a92beb13c03ceb88e071b4d1bffdc2 (patch) | |
| tree | f34b6fa99a5a51685cacae7c6adf5359b34990db | |
| parent | f5603bb8366797ae519bb8f1e7a3a4bbb257c15a (diff) | |
| download | perlweeklychallenge-club-cafb5ec400a92beb13c03ceb88e071b4d1bffdc2.tar.gz perlweeklychallenge-club-cafb5ec400a92beb13c03ceb88e071b4d1bffdc2.tar.bz2 perlweeklychallenge-club-cafb5ec400a92beb13c03ceb88e071b4d1bffdc2.zip | |
Add a bit of comment
| -rwxr-xr-x | challenge-006/joelle-maslak/perl5/ch-2.pl | 3 | ||||
| -rwxr-xr-x | challenge-006/joelle-maslak/perl6/ch-2.p6 | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/challenge-006/joelle-maslak/perl5/ch-2.pl b/challenge-006/joelle-maslak/perl5/ch-2.pl index 7ae8f0c9bc..b11ad31428 100755 --- a/challenge-006/joelle-maslak/perl5/ch-2.pl +++ b/challenge-006/joelle-maslak/perl5/ch-2.pl @@ -6,7 +6,7 @@ use warnings; use bignum; # -# Copyright © 2019 Joelle Maslak +# Copyright (C) 2019 Joelle Maslak # All Rights Reserved - See License # # I am assuming that we really wanted Ramanujan's Constant, and not the @@ -16,5 +16,6 @@ use bignum; # Checked against http://oeis.org/A060295 # We'll give *33* digits of precison, not 32. ;) +# Formula is from the Wiki page. :) It's accurate to 33 digits. say substr(640320**3 + 744 - 196844/(640320**3 + 744), 0, 34); diff --git a/challenge-006/joelle-maslak/perl6/ch-2.p6 b/challenge-006/joelle-maslak/perl6/ch-2.p6 index 01632f9cc7..da44856b14 100755 --- a/challenge-006/joelle-maslak/perl6/ch-2.p6 +++ b/challenge-006/joelle-maslak/perl6/ch-2.p6 @@ -12,5 +12,6 @@ use v6; # Checked against http://oeis.org/A060295 # We'll give *33* digits of precison, not 32. ;) +# Formula is from the Wiki page. :) It's accurate to 33 digits. say (640320³ + 744 - 196844.FatRat/(640320³ + 744)).Str.substr(0,34); |
