function [ f ] = flogi( x ) %UNTITLED4 Summary of this function goes here % Detailed explanation goes here global a k; f = a*(1-x/k)*x; end