def linspace(start,stop,num):
    """Return a list of floats linearly spaced from start to stop (inclusive).
    List has num elements."""
    return [i*(stop-start)/(num-1)+start for i in range(num)]