This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import random | |
import sys | |
def main(argv): | |
if len(argv) != 2: | |
sys.stderr.write(argv[0] + " number_of_tests") | |
exit(1) | |
N = int(argv[1]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
import sys | |
from math import acos, sqrt, pi | |
import numpy | |
from scipy.spatial import ConvexHull | |
class Vec: | |
def __init__(self, x, y, z): | |
self.x = x |