def parter_test ( ): #*****************************************************************************80 # ## PARTER_TEST tests PARTER. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 26 January 2015 # # Author: # # John Burkardt # from r8mat_print import r8mat_print print '' print 'PARTER_TEST' print ' PARTER computes the PARTER matrix.' m = 4 n = m a = parter ( m, n ) r8mat_print ( m, n, a, ' PARTER matrix:' ) print '' print 'PARTER_TEST' print ' Normal end of execution.' return
def parter_test(): #*****************************************************************************80 # ## PARTER_TEST tests PARTER. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 26 January 2015 # # Author: # # John Burkardt # from r8mat_print import r8mat_print print '' print 'PARTER_TEST' print ' PARTER computes the PARTER matrix.' m = 4 n = m a = parter(m, n) r8mat_print(m, n, a, ' PARTER matrix:') print '' print 'PARTER_TEST' print ' Normal end of execution.' return
def parter_determinant_test ( ): #*****************************************************************************80 # ## PARTER_DETERMINANT_TEST tests PARTER_DETERMINANT. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 20 February 2015 # # Author: # # John Burkardt # from parter import parter from r8mat_print import r8mat_print print '' print 'PARTER_DETERMINANT_TEST' print ' PARTER_DETERMINANT computes the determinant of the PARTER matrix.' print '' m = 4 n = m a = parter ( m, n ) r8mat_print ( m, n, a, ' PARTER matrix:' ) value = parter_determinant ( n ) print '' print ' Value = %g' % ( value ) print '' print 'PARTER_DETERMINANT_TEST' print ' Normal end of execution.' return
def parter_determinant_test(): #*****************************************************************************80 # ## PARTER_DETERMINANT_TEST tests PARTER_DETERMINANT. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 20 February 2015 # # Author: # # John Burkardt # from parter import parter from r8mat_print import r8mat_print print '' print 'PARTER_DETERMINANT_TEST' print ' PARTER_DETERMINANT computes the determinant of the PARTER matrix.' print '' m = 4 n = m a = parter(m, n) r8mat_print(m, n, a, ' PARTER matrix:') value = parter_determinant(n) print '' print ' Value = %g' % (value) print '' print 'PARTER_DETERMINANT_TEST' print ' Normal end of execution.' return