function [a] = log3(x)

% [a] = log3(x) calculates a values from a function based on log in base 3

a = log(abs(x))./log(3)

% end of the function definition