def logistfun(b,a): """Вычисление логистической функции""" import math return a/(1+math.exp(-b)) v,w=1,0.7; z=logistfun(w,v) print(z)