[Tex/LaTex] How to type \sim above another symbol x

symbols

I want to put a "~" above x, just like \hat x but replacing \hat with \sim.

How to do that?

Best Answer

I think you're after \tilde x.