Exemplo n.º 1
0
def ris_determinant_test():

    #*****************************************************************************80
    #
    ## RIS_DETERMINANT_TEST tests RIS_DETERMINANT.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    23 February 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from ris import ris
    from r8mat_print import r8mat_print

    print ''
    print 'RIS_DETERMINANT_TEST'
    print '  RIS_DETERMINANT computes the RIS determinant.'

    m = 5
    n = m

    a = ris(n)

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

    value = ris_determinant(n)

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

    print ''
    print 'RIS_DETERMINANT_TEST'
    print '  Normal end of execution.'

    return
Exemplo n.º 2
0
def ris_determinant_test ( ):

#*****************************************************************************80
#
## RIS_DETERMINANT_TEST tests RIS_DETERMINANT.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    23 February 2015
#
#  Author:
#
#    John Burkardt
#
  from ris import ris
  from r8mat_print import r8mat_print

  print ''
  print 'RIS_DETERMINANT_TEST'
  print '  RIS_DETERMINANT computes the RIS determinant.'

  m = 5
  n = m
 
  a = ris ( n )

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

  value = ris_determinant ( n )

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

  print ''
  print 'RIS_DETERMINANT_TEST'
  print '  Normal end of execution.'

  return
Exemplo n.º 3
0
def ris_test():

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

    print ''
    print 'RIS_TEST'
    print '  RIS computes the RIS matrix.'

    m = 5
    n = m

    a = ris(n)

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

    print ''
    print 'RIS_TEST'
    print '  Normal end of execution.'

    return
Exemplo n.º 4
0
def ris_test ( ):

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

  print ''
  print 'RIS_TEST'
  print '  RIS computes the RIS matrix.'

  m = 5
  n = m

  a = ris ( n )
 
  r8mat_print ( m, n, a, '  RIS matrix:' )

  print ''
  print 'RIS_TEST'
  print '  Normal end of execution.'

  return