<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 6 February 2017 at 20:29, M.-A. Lemburg <span dir="ltr"><<a href="mailto:mal@egenix.com" target="_blank">mal@egenix.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 04.02.2017 12:59, Stephan Houben wrote:<br>
> Hi all,<br>
><br>
> Visual C++ 2015 supports this one:<br>
><br>
> <a href="https://msdn.microsoft.com/en-us/library/h0dff77w.aspx" rel="noreferrer" target="_blank">https://msdn.microsoft.com/en-<wbr>us/library/h0dff77w.aspx</a><br>
><br>
> In any case, this is easy to implement an efficient fallback in C, unlike<br>
> the fma() function we discussed some time ago.<br>
><br>
> To put this in a bit wider perspective: would it be useful to investigate<br>
> how much of the C99 math library could<br>
> be supported in Python in general?<br>
<br>
</span>+1 from me for those features which can be emulated for<br>
platforms which don't have the math lib function<br>
available and are not too esoteric (though many of those<br>
have already been added), e.g. cbt() may be useful.<br>
<br>
Now, with respect to the one mentioned in the subject,<br>
I'm not sure how useful this would be in the stdlib,<br>
since it's very much tied to whatever float type Python<br>
happens to use on a platform.<br></blockquote><br></div><div class="gmail_quote">Just from an API point of view, a more idiomatically-Pythonic concept seems to me to be a "floatrange()" construct, where the default step was defined by the internal representation (i.e. it would increment by the smallest possible value).<br><br></div><div class="gmail_quote">I'm not sure of any use cases outside exploring the behaviour of numerical algorithm implementations in the presence of mathematical discontinuities, though.<br></div><br></div><div class="gmail_extra">Cheers,<br></div><div class="gmail_extra">Nick.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Nick Coghlan | <a href="mailto:ncoghlan@gmail.com" target="_blank">ncoghlan@gmail.com</a> | Brisbane, Australia</div>
</div></div>