22# -*- coding: utf-8 -*-
33"""
44Base module for Barycentric Lagrange Approximation, based on `[Berrut & Trefethen, 2004] <https://doi.org/10.1137/S0036144502417715>`_.
5- Allows to easily build integration / interpolation / derivation matrices, from any list of node points.
5+ Allows to easily build integration / interpolation / derivative matrices, from any list of node points.
66
77Examples
88--------
2222>>> # Alternative interpolation using the object as a function
2323>>> uFine = approx(fGrid)
2424>>>
25- >>> # Derivation
26- >>> D = approx.getDerivationMatrix ()
25+ >>> # Derivative
26+ >>> D = approx.getDerivativeMatrix ()
2727>>> du = D @ u
2828"""
2929import numpy as np
@@ -437,9 +437,9 @@ def getIntegrationMatrix(self, intervals, numQuad='FEJER', duplicates=True):
437437
438438 return Q
439439
440- def getDerivationMatrix (self , order = 1 , duplicates = True ):
440+ def getDerivativeMatrix (self , order = 1 , duplicates = True ):
441441 r"""
442- Generate derivation matrix of first or second order (or both) based on
442+ Generate derivative matrix of first or second order (or both) based on
443443 the Lagrange interpolant.
444444 The first order differentiation matrix :math:`D^{(1)}` approximates
445445
@@ -473,11 +473,11 @@ def getDerivationMatrix(self, order=1, duplicates=True):
473473 .. math::
474474 D^{(2)}_{jj} = -\sum_{i \neq j} D^{(2)}_{ij}
475475
476- ⚠️ If you want a derivation matrix with many points (~1000 or more),
476+ ⚠️ If you want a derivative matrix with many points (~1000 or more),
477477 favor the use of `weightComputation="STABLE"` when initializing
478478 the `LagrangeApproximation` object. If not, some (very small) weights
479479 could be approximated by zeros, which would make the computation
480- of the derivation matrices fail ...
480+ of the derivative matrices fail ...
481481
482482 Note
483483 ----
@@ -487,7 +487,7 @@ def getDerivationMatrix(self, order=1, duplicates=True):
487487 Parameters
488488 ----------
489489 order : int or str, optional
490- The order of the derivation matrix, use "ALL" to retrieve both.
490+ The order of the derivative matrix, use "ALL" to retrieve both.
491491 The default is 1.
492492 duplicates : bool
493493 Wether or not take into account duplicates in the points.
@@ -497,8 +497,8 @@ def getDerivationMatrix(self, order=1, duplicates=True):
497497 Returns
498498 -------
499499 D : np.2darray or tuple of np.2darray
500- Derivation matrix. If order="ALL", return a tuple containing all
501- derivations matrix in increasing derivation order.
500+ Derivative matrix. If order="ALL", return a tuple containing all
501+ derivative matrices in increasing derivative order.
502502 """
503503 if order not in [1 , 2 , "ALL" ]:
504504 raise NotImplementedError (f"order={ order } " )
0 commit comments