def linspace(a, b, num_points):
    """ return a list of linearly spaced values
    between a and b having num_points points
    """
    inc = (float(b) - float(a))/(num_points-1)
    ret_ar = []
    for i in range(num_points):
        ret_ar.append(a + i*inc)
    return ret_ar