function [muu] = murelaxed(A1,A2,betai,betac)

muu = A1*betai+betac*A2;
if isnan(muu) || isinf(muu)
    disp('MY_RELAXED IS NAN OR INF -> SETTING TO ZERO!')
    muu = 0;
end
