Home  > Language reference > Functions > sin
Perl 5 version 32.0 documentation

sin

Perl functions A-Z | Perl functions by category | The 'perlfunc' manpage
  • sin EXPR

  • sin

    Returns the sine of EXPR (expressed in radians). If EXPR is omitted, returns sine of $_ .

    For the inverse sine operation, you may use the Math::Trig::asin function, or use this relation:

    1. sub asin { atan2($_[0], sqrt(1 - $_[0] * $_[0])) }
  • Site info

  • Docs mantained by Perl 5 Porters
  • Perldoc site development sponsored by OpusVL Logo
  • About PerlDOC
  • Manuals

  • Overview
  • Tutorials
  • FAQs
  • Changes
  • Reference

  • Language
  • Functions
  • Operators
  • Variables
  • Modules

  • Modules
  • Pragmas
  • Utilities
  • Misc

  • License
  • Internals
  • Platforms
  • About
perldoc.perl.org - Official documentation for the Perl programming language
This website is a Beta release. For any issues please raise a ticket on GitHub