# Why we add math to word embedding

**URL:** <https://discuss.huggingface.co/t/why-we-add-math-to-word-embedding/15641>\
**Category:** 🤗Transformers\
**Created:** [March 13, 2022, 12:02am UTC](https://discuss.huggingface.co/t/why-we-add-math-to-word-embedding/15641 "2022-03-13T00:02:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MahdiA](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mahdia/32/2700_2.png) [@MahdiA](https://discuss.huggingface.co/u/MahdiA)\
**Post date:** [March 13, 2022, 12:02am UTC](https://discuss.huggingface.co/t/why-we-add-math-to-word-embedding/15641/1 "2022-03-13T00:02:08Z")

</div>

During the positional encoding why we need to add some math results like sqrt tonword embedding part

```auto
Positional_encoding = word_embedding * sqrt + position_vector

```
