def getdifflist(inputlist):
    """returns a list of length-1 relative to the input list
list values are the differential of the inputlist [n+1]-[n]"""
    difflist=[inputlist[i+1]-inputlist[i]
              for i in range(len(inputlist)-1)]
    return difflist