Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

sin

Returns the sine of its argument (in radians).

Returns the sine of EXPR (interpreted as an angle in radians), or $_ if omitted. The argument is coerced to Nv (f64). Always returns an Nv.

Synopsis

my $s = sin(3.14159);  # ~0
my $s = sin($radians);
my $s = sin;           # sin($_)

See Also

cos, atan2