On Tue, Feb 7, 2012 at 8:11 AM, javier <vengor...@gmail.com> wrote:
> How about testig for the desired mathematical properties? If this is a
> Gram-Schmidt test, the resulting matrix M should be orthogonal, so we
> can test for M*M.transpose() being the identity matrix (up to
> numerical accuracy). Of course, this type of indirect test should
> belong to the test section, not to the examples section.

+1, this is the best way to test it. However, this kind of of indirect
test is exactly the thing that *should* go in the examples section
(whether or not it's needed for testing), as it is a good illustration
of what the expected mathematical properties are. (In fact I consider
tests like this to be much better than "here's the answer" tests; one
could take the Gram-Schmidt of a random 100x100 matrix and verify it's
"nearly" orthogonal rather than print out the meaningless coefficients
themselves.)

- Robert

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to