from vector import Vector

# Quiz 01.
# Test basic operations on Vectors

def main():
    # test addition 
    x = Vector([8.128, -9.341])
    y = Vector([-1.129, 2.111])
    print x.add(y)

    #test subtraction
    x = Vector([7.119,8.215])
    y = Vector([-8.223,0.878])
    print x.subtract(y)

    #test scalar multiplication
    x = Vector([1.671,-1.012,-0.318])
    s = 7.41
    print x.scalar_multiply(s)


if __name__ == "__main__":
    main()
