Tue Jul 5 12:19:13 2022 triangles_test(): Python version: 3.6.9 triangles() does triangle computations. triangle_test: Measurements for equilateral triangle Vertices: [[ 0.5 0. ] [ 0. 0.8660254] [-0.5 0. ]] Graphics saved as "equilateral.png" Sides: [1. 1. 1.] Perimeter 3.0 Centroid [0. 0.28867513] Area (Euclid) 0.43301270189221924 Area (Hero) 0.43301270189221924 Area (Cross product) 0.4330127018922193 Angles in radians: [1.04719755 1.04719755 1.04719755] Angles in degrees: [60. 60. 60.] triangle_test: Measurements for obtuse triangle Vertices: [[ 0. 0.] [ 1. 0.] [-1. 1.]] Graphics saved as "obtuse.png" Sides: [1. 2.23606798 1.41421356] Perimeter 4.650281539872885 Centroid [0. 0.33333333] Area (Euclid) 0.5 Area (Hero) 0.49999999999999994 Area (Cross product) 0.5 Angles in radians: [2.35619449 0.46364761 0.32175055] Angles in degrees: [135. 26.56505118 18.43494882] triangle_test: Measurements for reference triangle Vertices: [[0. 0.] [1. 0.] [0. 1.]] Graphics saved as "reference.png" Sides: [1. 1.41421356 1. ] Perimeter 3.414213562373095 Centroid [0.33333333 0.33333333] Area (Euclid) 0.5 Area (Hero) 0.4999999999999999 Area (Cross product) 0.5 Angles in radians: [1.57079633 0.78539816 0.78539816] Angles in degrees: [90. 45. 45.] Graphics saved as "left_right.png' Graphics saved as "triangle_contains.png' triangle_integral_centroid_test(): triangle_integral_centroid() uses the centroid rule to estimate an integral f(x,y) over a triangle T. estimate error -6.333333333333333 0.16666666666666607 estimate error -346.66666666666674 35.00000000000006 triangle_integral_estimate_test(): triangle_integral_estimate() uses a Monte-Carlo approach to estimate an integral f(x,y) over a triangle T. n estimate error 10 -314.508922091518 2.8422554248513165 100 -322.3936961924661 10.727029525799423 1000 -305.16089262724 6.505774039426683 10000 -311.7914956811552 0.1248290144885118 10000 -311.8407468023878 0.17408013572111258 triangle_integral_strang_test(): triangle_integral_strang() uses a Strang rule to estimate an integral f(x,y) over a triangle T. estimate error -6.166666666666665 1.7763568394002505e-15 estimate error -311.6666666666667 0.0 triangle_integral_vertex_test(): triangle_integral_vertex() uses the vertex rule to estimate an integral f(x,y) over a triangle T. estimate error -5.666666666666667 0.5 estimate error -206.66666666666666 105.00000000000003 triangle_point_random_test(): triangle_point_random() selects random points from a triangle. Graphics saved as "triangle_point_random_test.png" triangles_test(): Normal end of execution. Tue Jul 5 12:19:14 2022