function f = getrslt(x,a) % this is a simple function that accepts two inputs, plugs them into the following equation and spits out the result % which is then returned to the calling function. f = -x/(x^2+a^2); %function ends