Derivative of an array in python?

后端 未结 3 1083
刺人心
刺人心 2021-01-01 01:58

Currently I have two numpy arrays: x and y of the same size.

I would like to write a function (possibly calling numpy/scipy... functions if

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-01 02:18

    The findiff project is a Python package that can do derivatives of arrays of any dimension with any desired accuracy order (of course depending on your hardware restrictions). It can handle arrays on uniform as well as non-uniform grids and also create generalizations of derivatives, i.e. general linear combinations of partial derivatives with constant and variable coefficients.

提交回复
热议问题