Question: Finding the Real part of Complex Expression

One of our users asks how they can find the Re ( sqrt(a+I*b)) where a, b are real.

They had tried entering the latter as "assume", without any luck. 

We told them that it may not be very intuitive, but such expressions can be evaluated by wrapping into evalc which implicitly assumes that free parameters are real-valued:

evalc(Re(sqrt(a+I*b)));
Please Wait...