# Sinc function - and sinc neural networks - and function approximation for the former

**URL:** <https://discourse.julialang.org/t/sinc-function-and-sinc-neural-networks-and-function-approximation-for-the-former/46483>\
**Category:** General Usage\
**Created:** [September 11, 2020, 10:17pm UTC](https://discourse.julialang.org/t/sinc-function-and-sinc-neural-networks-and-function-approximation-for-the-former/46483 "2020-09-11T22:17:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [September 12, 2020, 3:44pm UTC](https://discourse.julialang.org/t/sinc-function-and-sinc-neural-networks-and-function-approximation-for-the-former/46483/6 "2020-09-12T15:44:15Z")

</div>

The key difference between your version and the Base version is that your version only works for small `x` values. For example, `my_sinc(10)` is about `-130` instead of the correct answer of `0`. Making `sinc` fast and correct for the whole range pretty much requires calling `sinpi` which is going to be slow.

---

_[View the full topic](https://discourse.julialang.org/t/sinc-function-and-sinc-neural-networks-and-function-approximation-for-the-former/46483)._
