Help on built-in module math:
NAME
math
DESCRIPTION
This module is always available. It provides access to the
mathematical functions defined by the C standard.
FUNCTIONS
acos(...)
acos(x) Return the arc cosine (measured in radians) of x. acosh(...)
acosh(x) Return the inverse hyperbolic cosine of x. asin(...)
asin(x) Return the arc sine (measured in radians) of x. asinh(...)
asinh(x) Return the inverse hyperbolic sine of x. atan(...)
atan(x) Return the arc tangent (measured in radians) of x. atan2(...)
atan2(y, x) Return the arc tangent (measured in radians) of y/x.
Unlike atan(y/x), the signs of both x and y are considered. atanh(...)
atanh(x) Return the inverse hyperbolic tangent of x. ceil(...)
ceil(x) Return the ceiling of x as an Integral.
This is the smallest integer >= x. copysign(...)
copysign(x, y) Return a float with the magnitude (absolute value) of x but the sign
of y. On platforms that support signed zeros, copysign(1.0, -0.0)
returns -1.0. cos(...)
cos(x) Return the cosine of x (measured in radians). cosh(...)
cosh(x) Return the hyperbolic cosine of x. degrees(...)
degrees(x) Convert angle x from radians to degrees. erf(...)
erf(x) Error function at x. erfc(...)
erfc(x) Complementary error function at x. exp(...)
exp(x) Return e raised to the power of x. expm1(...)
expm1(x) Return exp(x)-1.
This function avoids the loss of precision involved in the direct evaluation of exp(x)-1 for small x. fabs(...)
fabs(x) Return the absolute value of the float x. factorial(...)
factorial(x) -> Integral Find x!. Raise a ValueError if x is negative or non-integral. floor(...)
floor(x) Return the floor of x as an Integral.
This is the largest integer <= x. fmod(...)
fmod(x, y) Return fmod(x, y), according to platform C. x % y may differ. frexp(...)
frexp(x) Return the mantissa and exponent of x, as pair (m, e).
m is a float and e is an int, such that x = m * 2.**e.
If x is 0, m and e are both 0. Else 0.5 <= abs(m) < 1.0. fsum(...)
fsum(iterable) Return an accurate floating point sum of values in the iterable.
Assumes IEEE-754 floating point arithmetic. gamma(...)
gamma(x) Gamma function at x. gcd(...)
gcd(x, y) -> int
greatest common divisor of x and y hypot(...)
hypot(x, y) Return the Euclidean distance, sqrt(x*x + y*y). isclose(...)
isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0) -> bool Determine whether two floating point numbers are close in value. rel_tol
maximum difference for being considered "close", relative to the
magnitude of the input values
abs_tol
maximum difference for being considered "close", regardless of the
magnitude of the input values Return True if a is close in value to b, and False otherwise. For the values to be considered close, the difference between them
must be smaller than at least one of the tolerances. -inf, inf and NaN behave similarly to the IEEE 754 Standard. That
is, NaN is not close to anything, even itself. inf and -inf are
only close to themselves. isfinite(...)
isfinite(x) -> bool Return True if x is neither an infinity nor a NaN, and False otherwise. isinf(...)
isinf(x) -> bool Return True if x is a positive or negative infinity, and False otherwise. isnan(...)
isnan(x) -> bool Return True if x is a NaN (not a number), and False otherwise. ldexp(...)
ldexp(x, i) Return x * (2**i). lgamma(...)
lgamma(x) Natural logarithm of absolute value of Gamma function at x. log(...)
log(x[, base]) Return the logarithm of x to the given base.
If the base not specified, returns the natural logarithm (base e) of x. log10(...)
log10(x) Return the base 10 logarithm of x. log1p(...)
log1p(x) Return the natural logarithm of 1+x (base e).
The result is computed in a way which is accurate for x near zero. log2(...)
log2(x) Return the base 2 logarithm of x. modf(...)
modf(x) Return the fractional and integer parts of x. Both results carry the sign
of x and are floats. pow(...)
pow(x, y) Return x**y (x to the power of y). radians(...)
radians(x) Convert angle x from degrees to radians. sin(...)
sin(x) Return the sine of x (measured in radians). sinh(...)
sinh(x) Return the hyperbolic sine of x. sqrt(...)
sqrt(x) Return the square root of x. tan(...)
tan(x) Return the tangent of x (measured in radians). tanh(...)
tanh(x) Return the hyperbolic tangent of x. trunc(...)
trunc(x:Real) -> Integral Truncates x to the nearest Integral toward 0. Uses the __trunc__ magic method.
DATA
e = 2.718281828459045
inf = inf
nan = nan
pi = 3.141592653589793
tau = 6.283185307179586
FILE
(built-in)

Python——built-in module Help: math的更多相关文章

  1. python - ImportError: No module named http.cookies error when installing cherrypy 3.2 - Stack Overflow

    python - ImportError: No module named http.cookies error when installing cherrypy 3.2 - Stack Overfl ...

  2. Python ImportError: No module named 'requests'的解决方法

    import requests报错 Python ImportError: No module named 'requests'可能是requests没有安装 安装流程 1.cmd 2.cd D:\p ...

  3. 关于python中的module

    python中的module(模块),关于这个概念以及使用时主要有以下几点需要注意: (1)import xx时,会首先将这个xx module中的代码执行一遍(且仅执行一遍): 例如: (2)模块包 ...

  4. fatal: [db01]: FAILED! => {"changed": false, "msg": "The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required."}

    centos7.5 使用ansible中的role安装mariadb创建用户报错 错误: [root@m01 roles]# ansible-playbook site.yml TASK [mysql ...

  5. Python ImportError: No module named Image

    /********************************************************************************* * Python ImportEr ...

  6. python 3 serial module install

    /************************************************************************* * python 3 serial module ...

  7. 转载:关于 python ImportError: No module named 的问题

    关于 python ImportError: No module named 的问题 今天在 centos 下安装 python setup.py install 时报错:ImportError: N ...

  8. Python报错module 'scipy.misc' has no attribute 'xxx'

    Python报错module 'scipy.misc' has no attribute 'imresize' 解决办法: 安装Pillow包,命令如下: pip install Pillow 然后重 ...

  9. Python- 【python无法更新pip】提示python.exe: No module named pip

    用Anaconda安装的python 版本无法更新pip导致不能安装第三方库: 用Anaconda Prompt安装第三方库: python -m pip install --upgrade pip ...

随机推荐

  1. springboot整合shiro应用

    1.Shiro是Apache下的一个开源项目,我们称之为Apache Shiro.它是一个很易用与Java项目的的安全框架,提供了认证.授权.加密.会话管理,与spring Security 一样都是 ...

  2. Windonws基本命令手册

    1. gpedit.msc-----组策略  2. sndrec32-------录音机 3. Nslookup-------IP地址侦测器 4. explorer-------打开资源管理器 5. ...

  3. 前端之DOM

    老师的博客:https://www.cnblogs.com/liwenzhou/p/8011504.html DOM(Document Object Model)是一套对文档的内容进行抽象和概念化的方 ...

  4. WPF的架构分析

    首先,在这里我要说明的是:这里的例子,都是通过控制台程序来创建WPF应用,而非使用现成的WPF模版.因为WPF模版封装了创建WPF应用所需要的各种基本元素,并不利于我们学习. 创建一个WPF需要引用的 ...

  5. icpc南宁站赛后总结

    11月24号,我们经过26个小时的火车来到了广西南宁,一场漫长的过程. 24号晚到达南宁,做地铁到达学校,找到住的地方,南宁的天真是让人无奈. 25号,上午去广西大学体育馆报道,然后回去好好整理了一下 ...

  6. Manifest merger failed : Attribute application@icon value=(@mipmap/ic_launcher) from AndroidManifest

    情况是这样子的,导入一个比较老的项目(两年前),它依赖于一个 Libraray,已经先导入了 library,现在导入项目的时候出了错 (1) Android Studio 目前提供将 SDK包成 . ...

  7. DAY30、网络编程

    一.网络编程 软件开发 c/s架构 c:客户端 s:服务端 b/s架构 b:浏览器 s:服务端 本质:b/s其实也是c/s 服务端:24小时不间断提供服务,谁来救服务谁 客户端:想什么时候体验服务,就 ...

  8. java工程师的成长历程

    2019年2月 这是我站在刚入行的角度,对自己未来的发展做出的初步的规划,以后慢慢调整 一. 初级java工程师 1.熟悉java的基本语法,拥有面向对象的思维,熟悉javaSE的核心类库 2.学习j ...

  9. [转载] .NET 中可以有类似 JVM 的幻像引用吗?

    近日发现一篇不错的文章,文中列举了一些 GC 场景,探讨了 在 .NET 中是需要实现像 JVM 的中的幻像引用.有人质疑其不切实际,也有像 Ayende 大神一言不合就自己做了个 demo. Do ...

  10. [File transfer]Syncthing

    https://syncthing.net/ 另外两种1.filezila 2.python -m http