Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document afrq example origin and expected output
  • Loading branch information
Paul Cochrane committed Feb 28, 2015
1 parent bb55df5 commit b91954a
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rosalind/afrq-grondilu.pl
@@ -1,5 +1,17 @@
use v6;

=begin pod
Counting Disease Carriers
http://rosalind.info/problems/afrq/
Expected output from default input data:
0.532 0.75 0.914
=end pod

sub MAIN($data-string = "0.1 0.25 0.5") {
my @A = $data-string.split(' '.Num;

Expand All @@ -8,6 +20,4 @@ ($data-string = "0.1 0.25 0.5")

sub afrq($r) { 1 - (1 - sqrt $r)**2 }

# 0.532 0.75 0.914

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit b91954a

Please sign in to comment.