Rational numbers in D
Jonathan M Davis
jmdavisProg at gmx.com
Sun Jun 10 12:22:46 PDT 2012
On Sunday, June 10, 2012 21:05:18 Paul D. Anderson wrote:
> It seems like we ought to have rational numbers in Phobos along
> with other number types. Something like this:
>
> std.number.rational;
> std.number.decimal;
> std.number.integer; (fixed-size signed and unsigned integers,
> "safe" integers that throw on overflow or rollover, like Andrei's
> CheckedInt module, etc.
> std.number.complex; (I know, I know)
> std.number.quaternion;
> std.number.fixedpoint;
> std.number.interval (Interval arithmetic on floating-point
> numbers)
>
> We also need compatible scalar, vector, matrix, multiarray
> modules, etc.
>
> Many of these exist, but aren't incorporated in Phobos. I think
> we need to be more aggressive in recruiting functionality for
> Phobos. There are a lot of talented coders out there.
I am frequently amazed at what other programmers find useful or not.
Personally, I don't think that I would ever have any use for _any_ of these
modules. That's not to say that they wouldn't be worth having. I just find it
interesting what others think would be useful (especially what they think are
"must haves") - particularly when it's stuff that I'd never use.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list