How to write this formula in Latex?
I tried this, but it does not work and I dont know why nor k=how to improve it.
$frac{$$w$^{$T$}\times($x$ - $x$)$\}{$w$}$
Moreover, I dont know how to prite the Xpos and Xneg and the ||w||.
Can you help me please?


\documentclass{...}and ending with\end{document}.• Note this is a Q&A site, not a please do this for me service. What do you have so far.
– albert Sep 04 '20 at 09:05$\frac{w^{T}(x_{\mathrm{pos}}-x_{\mathrm{neg}})}{\lVert w\rVert} = \frac{2}{\lVert w\rVert}$– daleif Sep 04 '20 at 09:17