Esempio n. 1
0
def wilk21_determinant_test ( ):

#*****************************************************************************80
#
## WILK21_DETERMINANT_TEST tests WILK21_DETERMINANT.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    27 February 2015
#
#  Author:
#
#    John Burkardt
#
  from wilk21 import wilk21
  from r8mat_print import r8mat_print

  print ''
  print 'WILK21_DETERMINANT_TEST'
  print '  WILK21_DETERMINANT computes the WILK21 determinant.'

  m = 5
  n = m
 
  a = wilk21 ( n )

  r8mat_print ( m, n, a, '  WILK21 matrix:' )

  value = wilk21_determinant ( n )

  print ''
  print '  Value =  %g' % ( value )

  print ''
  print 'WILK21_DETERMINANT_TEST'
  print '  Normal end of execution.'

  return
Esempio n. 2
0
def wilk21_determinant_test():

    #*****************************************************************************80
    #
    ## WILK21_DETERMINANT_TEST tests WILK21_DETERMINANT.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    27 February 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from wilk21 import wilk21
    from r8mat_print import r8mat_print

    print ''
    print 'WILK21_DETERMINANT_TEST'
    print '  WILK21_DETERMINANT computes the WILK21 determinant.'

    m = 5
    n = m

    a = wilk21(n)

    r8mat_print(m, n, a, '  WILK21 matrix:')

    value = wilk21_determinant(n)

    print ''
    print '  Value =  %g' % (value)

    print ''
    print 'WILK21_DETERMINANT_TEST'
    print '  Normal end of execution.'

    return
Esempio n. 3
0
def wilk21_test ( ):

#*****************************************************************************80
#
## WILK21_TEST tests WILK21.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    27 February 2015
#
#  Author:
#
#    John Burkardt
#
  from r8mat_print import r8mat_print

  print ''
  print 'WILK21_TEST'
  print '  WILK21 computes the WILK21 matrix.'

  m = 5
  n = m

  a = wilk21 ( n )
 
  r8mat_print ( m, n, a, '  WILK21 matrix:' )

  print ''
  print 'WILK21_TEST'
  print '  Normal end of execution.'

  return
Esempio n. 4
0
def wilk21_test():

    #*****************************************************************************80
    #
    ## WILK21_TEST tests WILK21.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    27 February 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from r8mat_print import r8mat_print

    print ''
    print 'WILK21_TEST'
    print '  WILK21 computes the WILK21 matrix.'

    m = 5
    n = m

    a = wilk21(n)

    r8mat_print(m, n, a, '  WILK21 matrix:')

    print ''
    print 'WILK21_TEST'
    print '  Normal end of execution.'

    return