[phobos] Proposed changes to std.math + introduce std.mathspecial

Jonathan M Davis jmdavisProg at gmx.com
Wed Nov 17 13:41:15 PST 2010


On Wednesday 17 November 2010 13:09:10 Don Clugston wrote:
> I have a pile of functions I wrote for Tango, most of which are part
> of C99. I'd like to move them into Phobos. In the process, I'd like to
> clean up a few things in std.math.
> 
> The main idea is that a new module, std.mathspecial, will contain
> mathematical Special Functions. In the long term, there could be quite
> a large number of these, but I think it will still be OK to have all
> of them declared in a single module.
> The implementations of these functions will mostly reside in
> std.internal.math.XXX. In many cases, the implementations are quite
> large.

Is there a particular reason not to just put them all in std.math? It at least 
seems like it would be simpler to do that - particularly from a usage 
standpoint. I take it that there's some reason why that's undesirable?

- Jonathan M Davis


More information about the phobos mailing list