示例#1
0
def ijfact1_determinant_test():

    #*****************************************************************************80
    #
    ## IJFACT1_DETERMINANT_TEST tests IJFACT1_DETERMINANT.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    15 February 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from ijfact1 import ijfact1
    from r8mat_print import r8mat_print

    print ''
    print 'IJFACT1_DETERMINANT_TEST'
    print '  IJFACT1_DETERMINANT computes the IJFACT1 determinant.'

    m = 5
    n = m

    a = ijfact1(n)

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

    value = ijfact1_determinant(n)

    print '  Value =  %g' % (value)

    print ''
    print 'IJFACT1_DETERMINANT_TEST'
    print '  Normal end of execution.'

    return
示例#2
0
def ijfact1_determinant_test ( ):

#*****************************************************************************80
#
## IJFACT1_DETERMINANT_TEST tests IJFACT1_DETERMINANT.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    15 February 2015
#
#  Author:
#
#    John Burkardt
#
  from ijfact1 import ijfact1
  from r8mat_print import r8mat_print

  print ''
  print 'IJFACT1_DETERMINANT_TEST'
  print '  IJFACT1_DETERMINANT computes the IJFACT1 determinant.'

  m = 5
  n = m
 
  a = ijfact1 ( n )

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

  value = ijfact1_determinant ( n )

  print '  Value =  %g' % ( value )

  print ''
  print 'IJFACT1_DETERMINANT_TEST'
  print '  Normal end of execution.'

  return
示例#3
0
def ijfact1_test():

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

    print ''
    print 'IJFACT1_TEST'
    print '  IJFACT1 computes the IJFACT1 matrix.'

    m = 5
    n = m

    a = ijfact1(n)

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

    print ''
    print 'IJFACT1_TEST'
    print '  Normal end of execution.'

    return
示例#4
0
def ijfact1_test ( ):

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

  print ''
  print 'IJFACT1_TEST'
  print '  IJFACT1 computes the IJFACT1 matrix.'

  m = 5
  n = m

  a = ijfact1 ( n )
 
  r8mat_print ( m, n, a, '  IJFACT1 matrix:' )

  print ''
  print 'IJFACT1_TEST'
  print '  Normal end of execution.'

  return