NumPy Math Function _ function

Source: Internet
Author: User

Https://docs.scipy.org/doc/numpy/reference/routines.math.html Trigonometric Functions (trigonometric) Function Describe sin (x[, Out)) Sine cos (x[, out]) cosine tan (x[, out)) Tangent value arcsin (x[, out)) Inverse cosine arccos (x[, Out]) (arctan, out]) tangent to x[Hypot (, Out of)) (X1, x2[, out) ) Find the right-angled triangle arctan2 (x1, x2[, out]) element-wise arc Tangent of x1/x2 choosing the quadrant correctly. Degrees (x[, out]) radians angle radians (x[, out)) radians unwrap (p[, discont, Axis]) unwrap by changing deltas values to between I complement. Deg2rad (x[, out]) angle Radian rad2deg (x[, out)) Radian angle hyperbola function (hyperbolic) function Describe sinh (x[, out)) hyperbolic sine cosh (x[, out)) hyperbolic Line cosine Tanh (x[, out]) hyperbolic tangent arcsinh (x[, out]) inverse hyperbolic sine arccosh (x[, out)) inverse hyperbolic tangent rounding (Arctanh), out) inverse hyperbolic (x[) rounding n Describe Around (a[, decimals, out) rounded by a given decimal bit round_ (a[, decimals, out]) rounded to a given decimal place, equivalent to around Rint (x[, out)) rounding To Integer fix (x[, y] to 0 to take the whole, positive downward rounding, negative numbers up the whole floor (x[, out]) down to take the whole ceil (x[, out)) to take the whole trunc (x[, out) to take integral parts and, product, difference (sums, products, Dif ferences) Function Describe prod (a[, axAre, Dtype, out, keepdims]) quadrature sum (a[, axis, Dtype, out, keepdims)) summation Nanprod (a[, Axis, Dtype, out, keepdims)) quadrature, the default value is 1 NA Nsum (a[, Axis, Dtype, out, keepdims]) sum, default value is 0 cumprod (a[, Axis, Dtype, out)) cumulative cumsum (a[, Axis, Dtype, out)) tired and NANCUMPR OD (a[, axis, Dtype, out]) cumulative, defaults to 1 nancumsum (a[, Axis, Dtype, out)) tired and defaults to 0 diff (a[, n, axis)) out[n] = a[n+1]-a[n] Ediff 1d (ary[, To_end, To_begin]) The differences between consecutive of an array. Gradient (f, *varargs, **kwargs) return the gradient of the 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 rule. exponential, logarithmic functions (exponents&logarithm) function Describe exp (x[, out)) index EXPM1 (x[, Out)) exp (x)-1 Exp2 (x[, out)) 2**x log (x[, Out]) is logarithmic log10 (x[, out]) with a base logarithm of 10 log2 (x[, out)) with a base logarithm of 2. LOG1P (x[, out]) exp (x)-1 logaddexp (x1, x2[, out)) logarithm of the sum of exponentiations of the InpuTs. LOGADDEXP2 (x1, x2[, out]) logarithm of the sum of exponentiations of the inputs in base-2. Arithmetic Operation Function Describe Add (x1, x2[, out)) addition reciprocal (x[, out]) reciprocal negative (x[, out)) negative numbers multiply (x1, x2[, out)) multiplication divi De (x1, x2[, out]) Division power (X1, x2[, out)) exponentiation subtract (x1, x2[, out)) subtraction True_divide (x1, x2[, out)) True division/Floor_divide (x1, x2[, out]) takes down the divide-and-fmod (x1, x2[, out)) remainder of the MoD (x1, x2[, Out)), which is positive modf (x[, OUT1, out2]) returns integers and remainder remainder (x1, x2[, Out]) is the same as the MoD Other (miscellaneous) Function Describe convolve (A, v[, mode) Returns the discrete, linear convolution of two O Ne-dimensional sequences. Clip (A, a_min, a_max[, out]) to find a range of values sqrt (x[, out)) Open square cbrt (x[, out)) Open cubic Square (x[, out)) squared Absolute (x[, out)) Absolute fab S (x[, out]) absolute value sign (x[, out)) to mark the number of positive and negative 0 maximum (x1, x2[, out]) to find the maximum minimum (x1, x2[, out)) for the minimum Fmax (x1, x2[, out)) for maximum F Min (x1, x2[, out]) find the minimum nan_to_num (x) Replacement null value 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. Special functions floating point routines handling complex numbers

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.