Python ASIN () function

Source: Internet
Author: User
Tags asin
Describe

ASIN () returns the arc value of the sine of X.

Grammar

The following is the syntax for the ASIN () method:

Import Mathmath.asin (x)

Note:ASIN () is not directly accessible, you need to import the math module, and then call the method through the math static object.

Parameters
  • X---values from 1 to 1. If x is greater than 1, an error is generated.
return value

Returns the arc value of the arc sine of X.

Instance

The following shows an example of using the ASIN () method:

#!/usr/bin/python3import Mathprint ("ASIN (0.64):",  Math.asin (0.64)) print ("ASIN (0):",  math.asin (0)) print ( "ASIN ( -1):",  Math.asin ( -1)) print ("ASIN (1):",  math.asin (1))

When the above instance is run, the output is:

ASIN (0.64):  0.694498265626556asin (0):  0.0asin ( -1):  -1.5707963267948966asin (1):  1.5707963267948966

Python ASIN () function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.