<div dir="ltr">Not sure whether to laugh or cry.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 11, 2015 at 12:11 AM, Sturla Molden <span dir="ltr"><<a href="mailto:sturla.molden@gmail.com" target="_blank">sturla.molden@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 11/03/15 00:23, fizyxnrd wrote:<br>
<br>
> It appears that there is more use for the current form than I have come<br>
> across with my adventures in positive-definite quantities.  Is there<br>
> room for a keyword e.g., unsorted ( so that the call is trapz(y, x=None,<br>
> dx = 1.0, axis=-1, unsorted=False) where if unsorted is set to True, the<br>
> data is automatically sorted before integration?<br>
<br>
</span>I think a numerical integral routine should only return an approximation<br>
to the integral. If you sort the data the trapz function is no longer<br>
returning an approximation to the integral.<br>
<span class="HOEnZb"><font color="#888888"><br>
Sturla<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
SciPy-Dev mailing list<br>
<a href="mailto:SciPy-Dev@scipy.org">SciPy-Dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/scipy-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/scipy-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><br>* * * * * * * * <a href="http://www.mssl.ucl.ac.uk/~npmk/" target="_blank">http://www.mssl.ucl.ac.uk/~npmk/</a> * * * *<br>Dr. N.P.M. Kuin      (<a href="mailto:n.kuin@ucl.ac.uk" target="_blank">n.kuin@ucl.ac.uk</a>)      <br>phone +44-(0)1483 (prefix) -204927 (work) <br>mobile +44(0)7806985366  skype ID: npkuin<br>Mullard Space Science Laboratory  – University College London  –<br>Holmbury St Mary – Dorking – Surrey RH5 6NT–  U.K.</div></div>
</div>