Invalid quadratic form: product is complex

Hi all, did you get the solution following the Michael’s answer ? I got the same error but when I tried with Real, it doesn’t work.