This article mainly introduces the sorting of common mathematical functions in the math module of Python, and lists the operation priorities of operators, for more information, see the next article. This article mainly describes the common
This article mainly introduces the mathematical functions of the math module in Python, and also makes a list of operator priority, the need for friends can refer to the following
In mathematics, in addition to subtraction arithmetic-this is
The mathematical constants provided by the Python standard library Mathmath
Pi
Mathematical constant Pi, the variable space belongs to the standard library math
E
The mathematical constant e,e is the
* Mathematical Functions1,abs () to find the absolute value2,ceil () into a method to take the whole3,floor () de-rounding4,fmod () to take a floating-point number for example Fmod (5.7,1.3)5,pow () returns the n-th square pow (1,20)6,round ()
ABS ()
Seek absolute value
ACOs ()
Seeking the inverse cosine
ASIN ()
Ask for the inverse of the string
Atan ()
Ask for anyway cut
ATAN2 ()
To find the tangent, to
In the actual work, some programs inevitably need to use mathematical functions to calculate, such as the geographical coordinates of the map program to map coordinate transformation. Objective-c, as an extension of ANSI C, uses the mathematical
PHP 5Math function
Introduction to PHP MathThe Math function can handle values in the range of integers and float.
InstallationThe PHP Math function is part of the PHP core. These functions can be used without installation.
PHP 5
11029-leading and trailingtime limit:3.000 secondsApart from the novice programmers, all others know so you can ' t exactly represent numbers raisedTo some high power. For example, the C function pow (125456, 455) can is represented in double
1. Trigonometric functionDouble sin (double); sineDouble cos (double); cosineDouble tan (double); tangent2, Inverse trigonometric functionsDouble asin (double); Results between [-PI/2, PI/2]Double ACOs (double); Results between [0, PI]Double Atan
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.