#! /usr/bin/env python # def line01_length ( ): #*****************************************************************************80 # ## LINE01_LENGTH: length of the unit line in 1D. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 22 June 2015 # # Author: # # John Burkardt # # Parameters: # # Output, real VALUE, the length. # value = 1.0 return value def line01_length_test ( ) : #*****************************************************************************80 # ## LINE01_LENGTH_TEST tests LINE01_LENGTH. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 22 June 2015 # # Author: # # John Burkardt # import platform print ( '' ) print ( 'LINE01_LENGTH_TEST' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' LINE01_LENGTH returns the length of the unit line.' ) value = line01_length ( ) print ( '' ) print ( ' LINE01_LENGTH() = %g' % ( value ) ) # # Terminate. # print ( '' ) print ( 'LINE01_LENGTH_TEST' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) line01_length_test ( ) timestamp ( )