Skip to content

Commit b91954a

Browse files
committed
Document afrq example origin and expected output
1 parent bb55df5 commit b91954a

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

rosalind/afrq-grondilu.pl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
use v6;
22

3+
=begin pod
4+
5+
Counting Disease Carriers
6+
7+
http://rosalind.info/problems/afrq/
8+
9+
Expected output from default input data:
10+
11+
0.532 0.75 0.914
12+
13+
=end pod
14+
315
sub MAIN($data-string = "0.1 0.25 0.5") {
416
my @A = $data-string.split(' '.Num;
517

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

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

11-
# 0.532 0.75 0.914
12-
1323
# vim: expandtab shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)