How to write ray in mathematical symbols

Hello all,
I want to learn how to write ray symbol in desmos
[AB is not accepted and it corrects this as [AB] automatically.
How can I get rid of the second paranthesis?
Thank you

\vec{AB} Should work for what you need. Make sure you use math format.

Thank you for your help, it worked