>>> import math

>>> help(math)

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.

这个模块总是可用的。它提供了对由C标准定义的数学函数。

FUNCTIONS

acos(x, /)

Return the arc cosine (measured in radians) of x.

返回弧余弦(用弧度测量)。

acosh(x, /)

Return the inverse hyperbolic cosine of x.

返回X的逆双曲余弦。

asin(x, /)

Return the arc sine (measured in radians) of x.

返回弧的正弦(以弧度测量)。

asinh(x, /)

Return the inverse hyperbolic sine of x.

返回x的逆双曲正弦。

atan(x, /)

Return the arc tangent (measured in radians) of x.

返回X的弧切线(以弧度测量)。

atan2(y, x, /)

Return the arc tangent (measured in radians) of y/x.

返回Y/X的弧切线(以弧度测量)。

Unlike atan(y/x), the signs of both x and y are considered.

与atan(Y/X)不同,考虑了X和Y的符号。

atanh(x, /)

Return the inverse hyperbolic tangent of x.

返回x的逆双曲正切。

ceil(x, /)

Return the ceiling of x as an Integral.

将X的上限作为积分返回。

This is the smallest integer >= x.

这是最小的整数>=x。

copysign(x, y, /)

Return a float with the magnitude (absolute value) of x but the sign of y.

返回一个具有X的大小(绝对值)但Y的符号的浮标。

On platforms that support signed zeros, copysign(1.0, -0.0)

在支持符号零点的平台上,复制符号(1,-0)

returns -1.0.

返回- 1。

cos(x, /)

Return the cosine of x (measured in radians).

返回X的余弦(用弧度测量)。

cosh(x, /)

Return the hyperbolic cosine of x.

返回X的双曲余弦。

degrees(x, /)

Convert angle x from radians to degrees.

将角度X从弧度转换成度。

erf(x, /)

Error function at x.

x的误差函数。

erfc(x, /)

Complementary error function at x.

x的互补误差函数

exp(x, /)

Return e raised to the power of x.

返回E提高到X的功率。

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.

该函数避免了对小X的EXP(X)- 1的直接评价所涉及的精度损失。

fabs(x, /)

Return the absolute value of the float x.

返回浮点X的绝对值。

factorial(x, /)

Find x!.

Raise a ValueError if x is negative or non-integral.

如果x是负的或非整数的,则增加一个值错误。

floor(x, /)

Return the floor of x as an Integral.

返回X的向下取整。

This is the largest integer <= x.

这是最大的整数

fmod(x, y, /)

Return fmod(x, y), according to platform C.

返回FMOD(X,Y),根据平台C。

x % y may differ.

frexp(x, /)

Return the mantissa and exponent of x, as pair (m, e).

返回尾数和x的指数,作为对(m,e)。

m is a float and e is an int, such that x = m * 2.**e.

M是一个浮点,E是int,因此x= m * 2。

If x is 0, m and e are both 0. Else 0.5 <= abs(m) < 1.0.

如果x是0,m和e都是0。否则0.5

fsum(seq, /)

Return an accurate floating point sum of values in the iterable seq.

在迭代的SEQ中返回精确的浮点值和。

Assumes IEEE-754 floating point arithmetic.

假设IEEE-74浮点运算。

gamma(x, /)

Gamma function at x.

gcd(x, y, /)

greatest common divisor of x and y

X和Y的最大公约数

hypot(x, y, /)

Return the Euclidean distance, sqrt(x*x + y*y).

返回欧几里得距离,sqrt(x*x+y*y)。

isclose(a, b, *, rel_tol=1e-09, abs_tol=0.0)

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.

被认为是“接近”的最大差异,不管输入值的大小如果A值接近B,则返回true,否则为false。

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

INF、INF和NAN的行为类似于IEEE 754标准。那

is, NaN is not close to anything, even itself. inf and -inf are

是,楠不接近任何东西,甚至它自己。INF和INF都是

only close to themselves.

只有接近自己。

isfinite(x, /)

Return True if x is neither an infinity nor a NaN, and False otherwise.

如果x既不是无穷大也不是NA,则返回true,否则为false。

isinf(x, /)

Return True if x is a positive or negative infinity, and False otherwise.

如果x是正的或负的无穷大,则返回真,否则为假。

isnan(x, /)

Return True if x is a NaN (not a number), and False otherwise.

如果x是楠(不是数字),则返回true,否则为false。

ldexp(x, i, /)

Return x * (2**i).

返回x*(2×*i)。

This is essentially the inverse of frexp().

这基本上是FrxPh()的倒数。

lgamma(x, /)

Natural logarithm of absolute value of Gamma function at x.

X的Γ函数绝对值的自然对数。

log(...)

log(x, [base=math.e])

Return the logarithm of x to the given base.

将X的对数返回到给定的基数。

If the base not specified, returns the natural logarithm (base e) of x.

如果未指定基,则返回X的自然对数(基E)。

log10(x, /)

Return the base 10 logarithm of x.

返回x的基10对数。

log1p(x, /)

Return the natural logarithm of 1+x (base e).

返回1±x(基E)的自然对数。

The result is computed in a way which is accurate for x near zero.

结果以精确接近x的方式计算。

log2(x, /)

Return the base 2 logarithm of x.

返回x的基2对数。

modf(x, /)

Return the fractional and integer parts of x.

返回X的分数和整数部分。

Both results carry the sign of x and are floats.

两个结果都带有x的符号,并且是浮点数。

pow(x, y, /)

Return x**y (x to the power of y).

返回x**y(x到y的幂)。

radians(x, /)

Convert angle x from degrees to radians.

将角度x从度转换为弧度。

remainder(x, y, /)

Difference between x and the closest integer multiple of y.

x与y的最近整数倍之差。

Return x - n*y where n*y is the closest integer multiple of y.

返回x -n*y,其中n*y是y的最接近整数倍。

In the case where x is exactly halfway between two multiples of

在x正好介于两个倍数之间的情况下

y, the nearest even value of n is used. The result is always exact.

Y,使用n的最近偶数值。结果总是精确的。

sin(x, /)

Return the sine of x (measured in radians).

返回X的正弦(以弧度测量)。

sinh(x, /)

Return the hyperbolic sine of x.

返回x的双曲正弦。

sqrt(x, /)

Return the square root of x.

返回X的平方根。

tan(x, /)

Return the tangent of x (measured in radians).

返回X的切线(以弧度测量)。

tanh(x, /)

Return the hyperbolic tangent of x.

返回x的双曲正切。

trunc(x, /)

Truncates the Real x to the nearest Integral toward 0.

将实X截断为最近的积分,朝向0。

Uses the __trunc__ magic method.

使用γ-Trunthix-魔方法。

DATA

e = 2.718281828459045

e=2.718281828459045

inf = inf

INF=INF

nan = nan

pi = 3.141592653589793

π=3.141592653589793

tau = 6.283185307179586

τ=6.283185307179586

FILE

math属于python标准库吗_python标准库《math》相关推荐

  1. python安卓库拍照_Python Faker库的实战,用Faker库生成伪造的安卓通讯录

    老板的需求总是各种各样的,作为程序员就只能想办法实现.这不突然让帮他生成几个虚假的通讯录.具体需求是这样的:老板给我个电话簿,让我给这个电话簿添加上姓名,公司,邮箱之类的数据然后导入到安卓手机的通讯录 ...

  2. python pexpect linux安装_Python Pexpect库的使用

    简介 最近需要远程操作一个服务器并执行该服务器上的一个Python脚本,查到可以使用Pexpect这个库.记录一下. 什么是Pexpect?Pexpect能够产生子应用程序,并控制他们,并能够通过期望 ...

  3. python 图形库有哪些_python常用库有哪些

    今天将介绍20个常用工具的Python库,我相信你看完之后也会觉得离不开它们. 它们是:(推荐学习:Python视频教程) Requests.Kenneth Reitz写的最富盛名的http库.每个P ...

  4. qpython3h第三方库安装_Python第三方库安装

    Python有一个全球社区:https://pypi.org/,在这里我们可以搜索任何主题的Python第三方库.PyPI全称是Python Package Index,指的是Python包的索引,它 ...

  5. python几次方函数_Python标准库math中用来计算x的y次方的函数是pow(x,y)。

    [判断题]Python表达式int("110", 2)的值为6. [单选题]关于 Python 的复数类型,以下选项中描述错误的是( ). [判断题]现代物流管理以实现顾客满意为第 ...

  6. python标准库说明_Python标准库详细介绍与基本使用方式,超详细!

    目录: Python 标准库概览概览 操作系统接口 os 模块提供了很多与操作系统交互的函数: 应该用 import os 风格而非 from os import *.这样可以保证随操作系统不同而有所 ...

  7. python中函数包括标准库函数吗_Python标准库(一)

    Hello world, hello everybody! 我是厦门大学王亚南经济研究院2015级的一名本科生,会在项目组专栏不定期更新关于Python标准库的文章. PS. 为了让诸君能够体会徒手敲 ...

  8. python标准类型内建函数_Python 标准库系列之内建函数

    Python的强大有很大一部分是因为其庞大的标准库提供了各式各样的功能,基本上日常使用中你所需要的功能都可以从中找到,从而大大减轻开发人员的压力,节省开发人员的时间,因此,要想更好的使用python, ...

  9. random是python标准库吗_python标准库介绍——27 random 模块详解

    ==random 模块== "Anyone who considers arithmetical methods of producing random digits is, of cour ...

最新文章

  1. 那么多GAN哪个好?谷歌大脑泼来冷水:都和原版差不多
  2. sina stock历史数据
  3. 【测试点分析】1010 Radix (25 分)_37行代码AC
  4. linux shell 脚本个人规范总结
  5. ActionScript 3.0 学习笔记三
  6. java tar 安装程序_linux下jdk的安装(tar包)
  7. 这个 HTTP 实战项目,帮你理清 Go 网络编程的底层逻辑
  8. 在Windows Server2008上安装SQL2008群集
  9. Hibernate学习基本配置
  10. 【随笔】4.上海上港
  11. 浙大PAT的大量感悟
  12. python安装失败未指定_windows 7 32bit安装 python3.5.0 安装错误 0x80240017 -未指定错误...
  13. QT+CUDA7.5+UBUNTU14.04
  14. LinkedList简要分析
  15. 词法分析器java_java词法分析器简单实现
  16. Java SE、Java EE、Java ME三者之间的区别
  17. redis源码--SDS结构解析
  18. 综艺真人秀势不可挡,互联网金融也要投广告?
  19. Java根据当前日期获取年初,年末,季初,季末,月初,月末日期的方法
  20. 光纤交换机后台linux,更换光纤交换机的步骤详解

热门文章

  1. 2.图像作为函数 | 图像的量化、大小、类型、位置以及Matlab使用_4
  2. XP计算机调整对比度,Win7系统调节显示器屏幕对比度的两种方法【图文】
  3. Intel 64/x86_64/IA-32/x86处理器 - SIMD指令集 - SSE扩展(4) - 数据传输指令
  4. Intel Core Enhanced Core架构/微架构/流水线 (4) - 流水线前端概述
  5. c#时分秒毫秒微妙_C# 关于DateTime类型 精确到毫秒
  6. 浅谈K短路算法(KSP)之一(A*算法求解)
  7. python是面向什么的计算机程序设计语言_Python是一种计算机程序设计语言,python到底该怎么学习...
  8. 【转】unity开发android游戏(一)搭建Unity安卓开发环境
  9. Aspose.Cells Smart markers 基于模板导出Excel
  10. 如何判断脚本执行成功