Sat Jul 29 22:23:55 2023
box_distance_test():
Python version: 3.8.10
Test box_distance().
For a = b = c, box_distance_mean() should be 0.661707182...
Computed value was 0.6617071822671758
Using N = 10000 sample points,
Short side a = 1.0
Medium side b = 1.0
Long side c = 1.0
Estimated mean distance = 0.6599921546957153
Exact mean distance = 0.6617071822671758
Estimated variance = 0.06365623784345292
Estimated second moment = 0.49924588210334586
Exact second moment = 0.5
Using N = 10000 sample points,
Short side a = 1.0
Medium side b = 3.0
Long side c = 5.0
Estimated mean distance = 2.1866696566781427
Exact mean distance = 2.1717733597598645
Estimated variance = 1.1226562617590583
Estimated second moment = 5.904180449195965
Exact second moment = 5.833333333333333
Graphics saved as "box_distance_histogram.png"
box_distance_test():
Normal end of execution.
Sat Jul 29 22:23:55 2023