Basic mathematical functions provided in the Math module in Python:python

Source: Internet
Author: User
Tags mathematical functions

Sin (x): Finding the sine of X

cos (x): Finding the cosine of X

ASIN (x): Finding the inverse of X

ACOs (x): Finding the inverse cosine of x

Tan (x): Find the tangent of X

Atan (x): To find the inverse tangent of X

Hypot (x, y): To find the hypotenuse length of right triangle

Fmod (x, y): Find the remainder of X/y

Ceil (x): Take the smallest integer not less than X

Floor (x): A chia integer not greater than X

Fabs (x): Absolute value

EXP (x): x power of E

Pow (x, y): The Y power of X

LOG10 (x): The logarithm of 10-bit base for X

sqrt (x): Find the square root of X

The value of the pi:π

Basic mathematical functions provided in the Math module in Python:python

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.