# Trig functions very slow

**URL:** <https://discourse.julialang.org/t/trig-functions-very-slow/15335>\
**Category:** Performance\
**Created:** [September 22, 2018, 10:58am UTC](https://discourse.julialang.org/t/trig-functions-very-slow/15335 "2018-09-22T10:58:02Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [September 22, 2018, 12:14pm UTC](https://discourse.julialang.org/t/trig-functions-very-slow/15335/5 "2018-09-22T12:14:30Z")

</div>

Re: complex exponentials: also see [Why is this Julia code considerably slower than Matlab](https://discourse.julialang.org/t/why-is-this-julia-code-considerably-slower-than-matlab/2365).

> As I understand, Julia uses a custom implementation of trig functions instead of optimized libraries, can it be the reason?

As of 0.7, Julia does use native Julia versions of trigonometric functions, ported from openlibm. This generally caused speedups, not slowdowns over 0.6, but openlibm’s implementations are definitely not the fastest.

---

_[View the full topic](https://discourse.julialang.org/t/trig-functions-very-slow/15335)._
