I want to calculate the modulus of complex symbolic expression but I do not get explicit results:
syms a b;
z = a + sqrt(-1)*b;
zabs = abs(z)
I was expecting zabs = (a^2 +b^2)^(1/2). How do I get the result I want?