Jump to content

Trigonometric functions: Difference between revisions

m
→‎{{header|Perl 6}}: only radians accepted
m (→‎{{header|Perl 6}}: only radians accepted)
Line 3,235:
 
=={{header|Perl 6}}==
{{works with|Rakudo|#22 "Thousand Oaks"2016.01}}
 
<lang perl6>say sin(pi/3), ' ', sin 60, 'd'; # 'g' (gradians) and 1 (circles)
say cos(pi/4), ' ', cos 45, 'd'; # are also recognized.
say tan(pi/6), ' ', tan 30, 'd';
 
say asin(sqrt(3)/2), ' ', asin sqrt(3)/2, 'd';
say acos(1/sqrt 2), ' ', acos 1/sqrt(2), 'd';
say atan(1/sqrt 3), ' ', atan 1/sqrt(3), 'd';</lang>
 
=={{header|PL/I}}==
2,392

edits

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