[SciPy-Dev] Code review for trapz update

Paul Kuin npkuin at gmail.com
Tue Mar 10 21:07:23 EDT 2015


Not sure whether to laugh or cry.


On Wed, Mar 11, 2015 at 12:11 AM, Sturla Molden <sturla.molden at gmail.com>
wrote:

> On 11/03/15 00:23, fizyxnrd wrote:
>
> > It appears that there is more use for the current form than I have come
> > across with my adventures in positive-definite quantities.  Is there
> > room for a keyword e.g., unsorted ( so that the call is trapz(y, x=None,
> > dx = 1.0, axis=-1, unsorted=False) where if unsorted is set to True, the
> > data is automatically sorted before integration?
>
> I think a numerical integral routine should only return an approximation
> to the integral. If you sort the data the trapz function is no longer
> returning an approximation to the integral.
>
> Sturla
>
>
>
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev
>



-- 

* * * * * * * * http://www.mssl.ucl.ac.uk/~npmk/ * * * *
Dr. N.P.M. Kuin      (n.kuin at ucl.ac.uk)
phone +44-(0)1483 (prefix) -204927 (work)
mobile +44(0)7806985366  skype ID: npkuin
Mullard Space Science Laboratory  – University College London  –
Holmbury St Mary – Dorking – Surrey RH5 6NT–  U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scipy-dev/attachments/20150311/db1e1f2d/attachment.html>


More information about the SciPy-Dev mailing list