diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-01-09 10:20:55 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-01-09 10:22:01 -0700 |
commit | a8c97b94c7a8d41fa9a887d64b25b5253dd2ef4b (patch) | |
tree | 29688365e24f307ecd8d8a8cc0961756df8e12ed /numpy/lib/function_base.py | |
parent | 6f1da5f8f5db99e7ca8397d925c8d2a013a305e0 (diff) | |
download | numpy-a8c97b94c7a8d41fa9a887d64b25b5253dd2ef4b.tar.gz |
DOC: Update trapz docstring.
[ci skip]
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 299af66a9..9bc128f92 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -3646,11 +3646,13 @@ def trapz(y, x=None, dx=1.0, axis=-1): y : array_like Input array to integrate. x : array_like, optional - If `x` is None, then spacing between all `y` elements is `dx`. + The sample points corresponding to the `y` values. If `x` is None, + the sample points are assumed to be evenly spaced `dx` apart. The + default is None. dx : scalar, optional - If `dx` is None, spacing given by `x` is assumed. Default is 1. + The spacing between sample points when `x` is None. The default is 1. axis : int, optional - Specify the axis. + The axis along which to integrate. Returns ------- |