def f(x):
    return -0.3*x*x+2*x+1

def coef(a):
    h = a
    while (h > 0):
        m = ( f(a+h) - f(a) ) / h
        print('h =' , h , ',' , 'm =', m)
        h = h - 0.01

coef(1)
