def cheby_van2_test ( ): #*****************************************************************************80 # ## CHEBY_VAN2_TEST tests CHEBY_VAN2. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 22 December 2014 # # Author: # # John Burkardt # from r8mat_print import r8mat_print print '' print 'CHEBY_VAN2_TEST' print ' CHEBY_VAN2 computes the CHEBY_VAN2 matrix.' m = 5 n = 5 a = cheby_van2 ( n ) r8mat_print ( m, n, a, ' CHEBY_VAN2 matrix:' ) print '' print 'CHEBY_VAN2_TEST' print ' Normal end of execution.' return
def cheby_van2_test(): #*****************************************************************************80 # ## CHEBY_VAN2_TEST tests CHEBY_VAN2. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 22 December 2014 # # Author: # # John Burkardt # from r8mat_print import r8mat_print print '' print 'CHEBY_VAN2_TEST' print ' CHEBY_VAN2 computes the CHEBY_VAN2 matrix.' m = 5 n = 5 a = cheby_van2(n) r8mat_print(m, n, a, ' CHEBY_VAN2 matrix:') print '' print 'CHEBY_VAN2_TEST' print ' Normal end of execution.' return
def cheby_van2_determinant_test ( ): #*****************************************************************************80 # ## CHEBY_VAN2_DETERMINANT_TEST tests CHEBY_VAN2_DETERMINANT. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 22 December 2014 # # Author: # # John Burkardt # from cheby_van2 import cheby_van2 from r8mat_print import r8mat_print print '' print 'CHEBY_VAN2_DETERMINANT_TEST' print ' CHEBY_VAN2_DETERMINANT computes the CHEBY_VAN2 determinant.' m = 5 n = 5 a = cheby_van2 ( n ) r8mat_print ( n, n, a, ' CHEBY_VAN2 matrix:' ) value = cheby_van2_determinant ( n ) print ' Value = %g' % ( value ) print '' print 'CHEBY_VAN2_DETERMINANT_TEST' print ' Normal end of execution.' return
def cheby_van2_determinant_test(): #*****************************************************************************80 # ## CHEBY_VAN2_DETERMINANT_TEST tests CHEBY_VAN2_DETERMINANT. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 22 December 2014 # # Author: # # John Burkardt # from cheby_van2 import cheby_van2 from r8mat_print import r8mat_print print '' print 'CHEBY_VAN2_DETERMINANT_TEST' print ' CHEBY_VAN2_DETERMINANT computes the CHEBY_VAN2 determinant.' m = 5 n = 5 a = cheby_van2(n) r8mat_print(n, n, a, ' CHEBY_VAN2 matrix:') value = cheby_van2_determinant(n) print ' Value = %g' % (value) print '' print 'CHEBY_VAN2_DETERMINANT_TEST' print ' Normal end of execution.' return