# Is there a fast way to evaluate the exp() function in Julia?

**URL:** <https://discourse.julialang.org/t/is-there-a-fast-way-to-evaluate-the-exp-function-in-julia/76287>\
**Category:** Performance\
**Tags:** question\
**Created:** [February 12, 2022, 8:08am UTC](https://discourse.julialang.org/t/is-there-a-fast-way-to-evaluate-the-exp-function-in-julia/76287 "2022-02-12T08:08:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 12, 2022, 8:45am UTC](https://discourse.julialang.org/t/is-there-a-fast-way-to-evaluate-the-exp-function-in-julia/76287/2 "2022-02-12T08:45:20Z")

</div>

Isn’t this the same question you asked a few hours ago in

> [@Accelerate pairwise damage computation](https://discourse.julialang.org/t/accelerate-pairwise-damage-computation/76278):
>
> Can someone help me to accelerate the pairwise damage computation? This problem is very similar to the one in [Accelerate pairwise L-J force computation](https://discourse.julialang.org/t/accelerate-pairwise-lennard-jones-force-computation/67321/46). And I adopted the conclusion that the pairlist should be sorted first to have a better performance. The following codes are modified based on the one in [Accelerate pairwise Lennard-Jones force computation](https://discourse.julialang.org/t/accelerate-pairwise-lennard-jones-force-computation/67321/46) given by @ [lmiq](https://discourse.julialang.org/u/lmiq) using BenchmarkTools using StaticArrays const λ = 1.0E-6 @inline @fastmath function damage\_pair!(f,x,y,i,j,d) new\_d = 0.0…

Please don’t double post

---

_[View the full topic](https://discourse.julialang.org/t/is-there-a-fast-way-to-evaluate-the-exp-function-in-julia/76287)._
