Jump to content

Active object: Difference between revisions

m
→‎{{header|Perl 6}}: use full (non-simplified ) function for sine
(→‎{{header|Perl 6}}: Add a Perl 6 example)
m (→‎{{header|Perl 6}}: use full (non-simplified ) function for sine)
Line 1,668:
my $a = Integrator.new;
 
$a.Input( sub ($t) { sin(pi2 * π * .5 * $t) } );
 
say "Initial value: ", $a.Output;
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.