def smooth_differentiation(x, y, weigths=None, order=<NUM_LIT:5>, smoothness=<NUM_LIT:3>, derivation=<NUM_LIT:1>):
if (len(x) != len(y)):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>f = splrep(x, y, w=weigths, k=order, s=smoothness)  <EOL>return splev(x, f, der=derivation)<EOL>
Returns the dy/dx(x) with the fit and differentiation of a spline curve

    Parameters
    ----------
    x : array like
    y : array like

    Returns
    -------
    dy/dx : array like