% Online source www.appliedmathematics.info/software/mfiles/vecsize.m
% Online user guide www.appliedmathematics.info/software/mfiles/GEOM_m.htm

% function size: Returns the modulus of a 2D or 3D vector. Requires 
% the external module ssize (supplied).
function modulus=vecsize(vec)
    modulus = sqrt(svecsize(vec));
end 