Jump to content

Formal power series: Difference between revisions

m
→‎{{header|Perl 6}}: spaces after commas
m (→‎{{header|Perl 6}}: Set the topic directly in the for loop.)
m (→‎{{header|Perl 6}}: spaces after commas)
Line 1,177:
my $tan = $sin / $cos;
 
say 'sin(x) ≈ ', $sin.pretty(10);
say 'cos(x) ≈ ', $cos.pretty(10);
say 'tan(x) ≈ ', $tan.pretty(10);
</lang>
 
57

edits

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