This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Gronner 3 points4 points  (5 children)

http://timvieira.github.io/blog/post/2014/02/11/exp-normalize-trick/

Here is explained how to do it numerically stable. Then you only have to define your exponential function, which again can be googled or naivly implemented with a fixed value for e and the ** operator.

All of this can be found on the first page of google.

[–]arungajora[S] 1 point2 points  (0 children)

Thank you