def Test_RandomSystem(): print("###################################################") p1 = pl.Plane([1, 2, 3], 10) p2 = pl.Plane([4, 5, 6], 11) p3 = pl.Plane([7, 8, 9], 12) lSys = ls.LinearSystem([p1, p2, p3]) lSys.SolveSystem() print(str(lSys))
def Test_InfiniteSolutions_2(): print("###################################################") p1 = pl.Plane([1, 2, 1], -1) p2 = pl.Plane([3, 6, 2], 1) p3 = pl.Plane([-1, -2, -1], 1) lSys = ls.LinearSystem([p1, p2, p3]) lSys.SolveSystem() print(str(lSys))
def Test_InfiniteSolutions_1(): print("###################################################") p1 = pl.Plane([1, -2, 1], 1) p2 = pl.Plane([1, 0, -2], 2) p3 = pl.Plane([-1, 4, -4], 0) lSys = ls.LinearSystem([p1, p2, p3]) lSys.SolveSystem() print(str(lSys))
def TestUnique_1(): print("###################################################") p1 = pl.Plane([-1, 1, 1], -2) p2 = pl.Plane([1, -4, 4], 21) p3 = pl.Plane([7, -5, -11], 0) lSys = ls.LinearSystem([p1, p2, p3]) lSys.SolveSystem() print(str(lSys))
def TestUnique_3(): print("###################################################") p1 = pl.Plane([0, 1, -1], 2) p2 = pl.Plane([1, -1, 1], 2) p3 = pl.Plane([3, -4, 1], 1) lSys = ls.LinearSystem([p1, p2, p3]) lSys.SolveSystem() print(str(lSys))
def TestUnique_2(): print("###################################################") p1 = pl.Plane([1, 1, 0], 1) p2 = pl.Plane([0, 1, 1], 0) p3 = pl.Plane([0, 0, 1], -1) lSys = ls.LinearSystem([p1, p2, p3]) lSys.SolveSystem() print(str(lSys))