programming-examples/perl/SystemFunction/Create arsine value.pl
2019-11-15 12:59:38 +01:00

7 lines
167 B
Perl

$asine = POSIX::asin $sine;
$reconversion = 180 / 3.14159265358979;
$degrees = $asine * $reconversion;
print "The arcsine of $sine = ", $degrees, " degrees.";