This project has moved and is read-only. For the latest updates, please go here.

Idea: Use BCL BigRational for arbitrary precision unit testing

Apr 13, 2010 at 11:21 PM

The BCL team has recently released a beta of a BigRational class. I was thinking that at some point we could use this class to implement arbitrary precision versions of our numerical functions and use them to unit test our float and double implementations. Right now, unit testing happens with the mpmath library in python.

Jurgen

Apr 13, 2010 at 11:22 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Apr 13, 2010 at 11:35 PM
Edited Apr 13, 2010 at 11:37 PM

Sounds good!

We could even include these implementations as part of the library itself (instead of just hidden in the unit tests). In the same spirit we may also want to extend the NumberTheory namespace with support for the new BigInteger class.

Apr 14, 2010 at 4:28 AM

Should we just bite the bullet and make this a .NET 4 project (use its parallel classes, complex, etc.)? .NET 2.0 user could either Iridium or dnA. 

Apr 14, 2010 at 8:20 PM

I'd be perfectly fine with that. It means less maintainenance from our point of view (wrt the parallelism). The better interop with Complex is a plus as well.

Apr 15, 2010 at 7:04 PM

+1

Apr 16, 2010 at 8:55 PM

Does that mean we're also happy transitioning to VS2010?

J

Apr 20, 2010 at 7:28 AM

>Does that mean we're also happy transitioning to VS2010?

I think we'd have to.  I'll make the switch this weekend.