import math

def length(x):
    return math.sqrt(x[0]*x[0] + x[1]*x[1])

def cosine_similarity(x, y):
    return (x[0]*y[0] + x[1]*y[1])/length(x)/length(y)

def cosine_distance(x, y):
    return 1 - cosine_similarity(x, y)

print cosine_distance([6.0, 6.0], [9.0, 9.0]) < 0