Modified the consistency tests math_fns code.
This is a copy of the 1.2 line code without the 'cos' import and with updated copyrights.
Authored by: semor 2008-01-07
Parent: [r4465]
Child: [r4467]