Logistic Function General Form