Active object: Difference between revisions
m
→{{header|Perl 6}}: use full (non-simplified ) function for sine
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Add a Perl 6 example) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: use full (non-simplified ) function for sine) |
||
Line 1,668:
my $a = Integrator.new;
$a.Input( sub ($t) { sin(
say "Initial value: ", $a.Output;
|