https://docs.scipy.org/doc/numpy/reference/routines.math.html

Trigonometric functions(三角函数)

函数 描述
sin(x, /[, out, where, casting, order, …]) 正弦, element-wise.
cos(x, /[, out, where, casting, order, …]) 余弦 element-wise.
tan(x, /[, out, where, casting, order, …]) 正切 element-wise.
arcsin(x, /[, out, where, casting, order, …]) 反正弦, element-wise.
arccos(x, /[, out, where, casting, order, …]) 反余弦, element-wise.
arctan(x, /[, out, where, casting, order, …]) 反正切, element-wise.
hypot(x1, x2, /[, out, where, casting, …]) Given the “legs” of a right triangle, return its hypotenuse.
arctan2(x1, x2, /[, out, where, casting, …]) Element-wise arc tangent of x1/x2 choosing the quadrant correctly.
degrees(x, /[, out, where, casting, order, …]) 弧度转角度
radians(x, /[, out, where, casting, order, …]) 角度转弧度
unwrap(p[, discont, axis]) Unwrap by changing deltas between values to 2*pi complement.
deg2rad(x, /[, out, where, casting, order, …]) Convert angles from degrees to radians.
rad2deg(x, /[, out, where, casting, order, …]) Convert angles from radians to degrees.

Hyperbolic functions(双曲线函数)

函数 描述
sinh(x, /[, out, where, casting, order, …]) Hyperbolic sine, element-wise.
cosh(x, /[, out, where, casting, order, …]) Hyperbolic cosine, element-wise.
tanh(x, /[, out, where, casting, order, …]) Compute hyperbolic tangent element-wise.
arcsinh(x, /[, out, where, casting, order, …]) Inverse hyperbolic sine element-wise.
arccosh(x, /[, out, where, casting, order, …]) Inverse hyperbolic cosine, element-wise.
arctanh(x, /[, out, where, casting, order, …]) Inverse hyperbolic tangent element-wise.

Rounding(约数)

函数 描述
around(a[, decimals, out]) 约数
round_(a[, decimals, out]) Round an array to the given number of decimals.
rint(x, /[, out, where, casting, order, …]) 取整
fix(x[, out]) 向0取整
floor(x, /[, out, where, casting, order, …]) 向下取整,element-wise.
ceil(x, /[, out, where, casting, order, …]) 向上取整, element-wise.
trunc(x, /[, out, where, casting, order, …]) 截取整数部分,不四舍五入, element-wise.

Sums, products, differences(加法,乘法,区别)

函数 描述
prod(a[, axis, dtype, out, keepdims]) 给定方向相乘
sum(a[, axis, dtype, out, keepdims]) 给定方向相加
nanprod(a[, axis, dtype, out, keepdims]) 乎略缺失值,给定方向相乘
nansum(a[, axis, dtype, out, keepdims]) 乎略缺失值,给定方向相加
cumprod(a[, axis, dtype, out]) 给定方向,累乘
cumsum(a[, axis, dtype, out]) 给定方向,累加
nancumprod(a[, axis, dtype, out]) 乎略缺失值,给定方向,累乘
nancumsum(a[, axis, dtype, out]) 乎略缺失值,给定方向,累加
diff(a[, n, axis]) Calculate the n-th discrete difference along given axis.
ediff1d(ary[, to_end, to_begin]) The differences between consecutive elements of an array.
gradient(f, *varargs, **kwargs) Return the gradient of an N-dimensional array.
cross(a, b[, axisa, axisb, axisc, axis]) Return the cross product of two (arrays of) vectors.
trapz(y[, x, dx, axis]) Integrate along the given axis using the composite trapezoidal rule.

Exponents and logarithms(指数和对数)

函数 描述
exp(x, /[, out, where, casting, order, …]) 指数 y=exy=exy=e^x
expm1(x, /[, out, where, casting, order, …]) Calculate exp(x) - 1 for all elements in the array.
exp2(x, /[, out, where, casting, order, …]) Calculate 2**p for all p in the input array.
log(x, /[, out, where, casting, order, …]) 对数, element-wise.
log10(x, /[, out, where, casting, order, …]) Return the base 10 logarithm of the input array, element-wise.
log2(x, /[, out, where, casting, order, …]) Base-2 logarithm of x.
log1p(x, /[, out, where, casting, order, …]) Return the natural logarithm of one plus the input array, element-wise.
logaddexp(x1, x2, /[, out, where, casting, …]) Logarithm of the sum of exponentiations of the inputs.
logaddexp2(x1, x2, /[, out, where, casting, …]) Logarithm of the sum of exponentiations of the inputs in base-2.

Other special functions(其他特殊函数)

函数 描述
i0(x) Modified Bessel function of the first kind, order 0.
sinc(x) Return the sinc function.

Floating point routines(浮点路线)

函数 描述
signbit(x, /[, out, where, casting, order, …]) Returns element-wise True where signbit is set (less than zero).
copysign(x1, x2, /[, out, where, casting, …]) Change the sign of x1 to that of x2, element-wise.
frexp(x[, out1, out2], / [[, out, where, …]) Decompose the elements of x into mantissa and twos exponent.
ldexp(x1, x2, /[, out, where, casting, …]) Returns x1 * 2**x2, element-wise.
nextafter(x1, x2, /[, out, where, casting, …]) Return the next floating-point value after x1 towards x2, element-wise.
spacing(x, /[, out, where, casting, order, …]) Return the distance between x and the nearest adjacent number.

Arithmetic operations(数学函数)

函数 描述
add(x1, x2, /[, out, where, casting, order, …]) 相加element-wise.
reciprocal(x, /[, out, where, casting, …]) 倒数, element-wise.
negative(x, /[, out, where, casting, order, …]) 相反数, element-wise.
multiply(x1, x2, /[, out, where, casting, …]) 乘积 element-wise.
divide(x1, x2, /[, out, where, casting, …]) 触发 element-wise.
power(x1, x2, /[, out, where, casting, …]) 幂运算, element-wise.
subtract(x1, x2, /[, out, where, casting, …]) 相减, element-wise.
true_divide(x1, x2, /[, out, where, …]) Returns a true division of the inputs, element-wise.
floor_divide(x1, x2, /[, out, where, …]) Return the largest integer smaller or equal to the division of the inputs.
float_power(x1, x2, /[, out, where, …]) 幂运算, element-wise.
fmod(x1, x2, /[, out, where, casting, …]) 取余数,element-wise
mod(x1, x2, /[, out, where, casting, order, …]) Return element-wise remainder of division.
modf(x[, out1, out2], / [[, out, where, …]) Return the fractional and integral parts of an array, element-wise.
remainder(x1, x2, /[, out, where, casting, …]) Return element-wise remainder of division.
divmod(x1, x2[, out1, out2], / [[, out, …]) Return element-wise quotient and remainder simultaneously.

Handling complex numbers(处理复杂的数字)

函数 描述
angle(z[, deg]) Return the angle of the complex argument.
real(val) Return the real part of the complex argument.
imag(val) Return the imaginary part of the complex argument.
conj(x, /[, out, where, casting, order, …]) Return the complex conjugate, element-wise.

Miscellaneous(杂项)

函数 描述
convolve(a, v[, mode]) Returns the discrete, linear convolution of two one-dimensional sequences.
clip(a, a_min, a_max[, out]) Clip (limit) the values in an array.
sqrt(x, /[, out, where, casting, order, …]) Return the positive square-root of an array, element-wise.
cbrt(x, /[, out, where, casting, order, …]) Return the cube-root of an array, element-wise.
square(x, /[, out, where, casting, order, …]) Return the element-wise square of the input.
absolute(x, /[, out, where, casting, order, …]) Calculate the absolute value element-wise.
fabs(x, /[, out, where, casting, order, …]) Compute the absolute values element-wise.
sign(x, /[, out, where, casting, order, …]) Returns an element-wise indication of the sign of a number.
heaviside(x1, x2, /[, out, where, casting, …]) Compute the Heaviside step function.
maximum(x1, x2, /[, out, where, casting, …]) Element-wise maximum of array elements.
minimum(x1, x2, /[, out, where, casting, …]) Element-wise minimum of array elements.
fmax(x1, x2, /[, out, where, casting, …]) Element-wise maximum of array elements.
fmin(x1, x2, /[, out, where, casting, …]) Element-wise minimum of array elements.
nan_to_num(x[, copy]) Replace nan with zero and inf with finite numbers.
real_if_close(a[, tol]) If complex input returns a real array if complex parts are close to zero.
interp(x, xp, fp[, left, right, period]) One-dimensional linear interpolation.

Numpy Mathematical functions 数学函数相关推荐

  1. MySQL Mathematical Functions(数学方法)

    Name Description 例子 ABS(X) 绝对值 SELECT ABS(-32); # -> 32 ACOS(X) 反余弦 SELECT ACOS(1); # -> 0 ASI ...

  2. Python数据分析 1-5 NumPy中ufunc函数(一)主要介绍NumPy中常用的通用函数:基本数学函数、三角函数和反三角函数和统计类函数

    1 引入NumPy #引入numpy import numpy as np np.__version__ '1.20.1' 2 基本数学函数 NumPy中基本数学函数有加法.减法.乘法.除法.乘方.开 ...

  3. pythonmathcot函数_NumPy数学函数介绍和用法

    本文概述 Numpy包含大量数学函数, 可用于执行各种数学运算.数学函数包括三角函数, 算术函数和用于处理复数的函数.让我们讨论一下数学函数. 三角函数 Numpy包含三角函数, 用于计算弧度中不同角 ...

  4. Numpy入门教程:04. 数学函数

    背景 什么是 NumPy 呢? NumPy 这个词来源于两个单词 – Numerical和Python.其是一个功能强大的 Python 库,可以帮助程序员轻松地进行数值计算,通常应用于以下场景: 执 ...

  5. NumPy 数学函数

    NumPy 数学函数 NumPy 包含大量的各种数学运算的函数,包括三角函数,算术运算的函数,复数处理函数等. 三角函数 NumPy 提供了标准的三角函数:sin().cos().tan(). 实例 ...

  6. 学习Python中用numpy与matplotlib遇到的一些数学函数与函数的绘图

    学习Python中的一些数学函数与函数的绘图 主要用到numpy 与 matplotlib 如果有什么不正确,欢迎指教. 图片不知道怎样批量上传,一个一个怎么感觉很小,请见谅 自行复制拷贝,到vs,j ...

  7. [转载] Numpy 使用教程--Numpy 数学函数及代数运算

    参考链接: Python中的numpy.logaddexp Numpy 使用教程–Numpy 数学函数及代数运算 一.实验介绍 1.1 实验内容 如果你使用 Python 语言进行科学计算,那么一定会 ...

  8. [转载] python:numpy数学函数和逻辑函数

    参考链接: Python中的numpy.logical_or numpy数学函数和逻辑函数 算术运算numpy.add()numpy.subtract()numpy.multiply()numpy.d ...

  9. [转载] Numpy 数学函数及逻辑函数

    参考链接: Numpy 数学函数 目录 一.向量化和广播 二.数学函数 算数运算 numpy.add numpy.subtract numpy.multiply numpy.divide numpy. ...

最新文章

  1. oracle显示当天日期函数,oracle日期函数
  2. 中兴服务器raid配置_-服务器Raid卡更换后如何恢复硬盘Raid组信息
  3. 《货币是个什么东西》笔记
  4. C# webbrowser 代理
  5. Makefile、多Makefile编译静态库、动态库、SRC实例总结
  6. 即插即用!视频超分中的涨点神器:iSeeBetter
  7. 【计算机本科补全计划】王道单科--栈的实现以及一些性质
  8. 字节回应阿里涉侵犯男员工曾面试并通过一面;HarmonyOS 2.0用户数升至5000万|极客头条...
  9. Linux 命名空间
  10. PHP 实现Session入库/存入redis
  11. 读写锁原理 java_java多线程-读写锁原理
  12. mysql知识点拾遗梳理
  13. 坐标变换(1)—向量和坐标系
  14. 物联网技术练习题(一)——单选题与判断题
  15. cf C. Counting Kangaroos is Fun
  16. java sencha_基于SenchaCmd搭建ExtJS 6.2版本开发环境(图文教程)
  17. Linux服务器的eth,Linux服务器---网络配置
  18. 苏州嵌入式软件方向知名公司
  19. latex中的数学字体mathfont
  20. 阅读英文原版计算机书籍的一些经验

热门文章

  1. Python+OpenGL实现Liang-Barsky算法裁剪直线
  2. 微课|中学生可以这样学Python(例9.2):无界面通信录管理系统
  3. c# getresponsestream返回byte[]_C#通过SharpZipLib库创建压缩文件
  4. KMP算法经典题目--实现 strStr()
  5. php安全测试工具,免费的高级Web应用程序安全测试工具
  6. 实时帧数手机_RTX 3080 有多大升级必要?绝地求生帧数实测-RTX 3080 ——快科技(驱动之家旗下媒体)-...
  7. dos 退出mysql_【转】MySQL 一闪退出解决_MySQL
  8. .tcl文件_TCL电视自己安装的软件,有声音但没有画面?详细解决步骤奉上
  9. 严格对角占优矩阵特征值_电子科技大学矩阵理论复习笔记 第四章 特征值的估计...
  10. oracle调用MySQL函数,Oracle的INSTR函数MySQL实现