#! /usr/bin/env python # def triangle_monte_carlo_tests ( ): #*****************************************************************************80 # ## TRIANGLE_MONTE_CARLO_TESTS tests the TRIANGLE_MONTE_CARLO library. # # Licensing: # # This code is distributed under the GNU LGPL license. # # Modified: # # 18 July 2018 # # Author: # # John Burkardt # import platform from reference_to_physical_t3 import reference_to_physical_t3_test from triangle_area import triangle_area_test from triangle_monte_carlo import triangle_monte_carlo_test from triangle_monte_carlo_test01 import triangle_monte_carlo_test01 from triangle_monte_carlo_test02 import triangle_monte_carlo_test02 from triangle01_sample import triangle01_sample_test print ( '' ) print ( 'TRIANGLE_MONTE_CARLO_TEST@' ) print ( ' Python version: %s' % ( platform.python_version ( ) ) ) print ( ' Test the TRIANGLE_MONTE_CARLO library.' ) triangle_area_test reference_to_physical_t3_test ( ) triangle01_sample_test ( ) triangle_monte_carlo_test ( ) # # Sample on the unit triangle, integrating XY^3. # triangle_monte_carlo_test01 ( ) # # Sample on a general triangle, integrating X*Y^3. # triangle_monte_carlo_test02 ( ) # # Terminate. # print ( '' ) print ( 'TRIANGLE_MONTE_CARLO_TESTS:' ) print ( ' Normal end of execution.' ) return if ( __name__ == '__main__' ): from timestamp import timestamp timestamp ( ) triangle_monte_carlo_tests ( ) timestamp ( )