I want to write this simple equation in latex
In which |w| is the norm of w,,
I tried with
And get error "Missing $ inserted"
then I use this
And still get same error..
Does someone know how to solve this problem??