# Why we add math to word embedding

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhy-we-add-math-to-word-embedding%2F15641%3E%5C
**Category:** 🤗Transformers\
**Created:** [March 13, 2022, 12:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhy-we-add-math-to-word-embedding%2F15641 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMahdiA)%5C
**Post date:** [March 13, 2022, 12:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwhy-we-add-math-to-word-embedding%2F15641%2F1 "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

```
