Fix parameter order, and change to be a unit test.

svn path=/trunk/libs/math/; revision=82784