MATLAB: Trying to figure out how to get the correct answer with an anonymous function

anonymous functionincorrect output

I am not sure why I am getting the output that I am. Any help would be great thanks!

Best Answer

LC < D
sqrt(of a negative number) gives complex value