8000 Merge pull request #26645 from bmwoodruff/trapezoid-doc-update · numpy/numpy@ff2464b · GitHub
[go: up one dir, main page]

Skip to content

Commit ff2464b

Browse files
authored
Merge pull request #26645 from bmwoodruff/trapezoid-doc-update
DOC: Enable web docs for numpy.trapezoid and add back links
2 parents 977a765 + b8a5e7a commit ff2464b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/source/reference/routines.math.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Sums, products, differences
7171
ediff1d
7272
gradient
7373
cross
74+
trapezoid
7475

7576
Exponents and logarithms
7677
------------------------

numpy/_core/fromnumeric.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,6 +2355,7 @@ def sum(a, axis=None, dtype=None, out=None, keepdims=np._NoValue,
23552355
ndarray.sum : Equivalent method.
23562356
add: ``numpy.add.reduce`` equivalent function.
23572357
cumsum : Cumulative sum of array elements.
2358+
trapezoid : Integration of array values using composite trapezoidal rule.
23582359
23592360
mean, average
23602361
@@ -2681,6 +2682,7 @@ def cumsum(a, axis=None, dtype=None, out=None):
26812682
See Also
26822683
--------
26832684
sum : Sum array elements.
2685+
trapezoid : Integration of array values using composite trapezoidal rule.
26842686
diff : Calculate the n-th discrete difference along given axis.
26852687
26862688
Notes

0 commit comments

Comments
 (0)
0