exp()

DSP related issues, mathematics, processing and techniques
Post Reply
juha_tp
Posts: 60
Joined: Fri Nov 09, 2018 10:37 pm

exp()

Post by juha_tp »

By documentation there are quite few functions offered (excl. what Ruby offers).

Would there be any point to write some approximations using DSP Code component or Assembler? Would it be much slower compared to build-in function(s)?

I was thinking some of these I've used in C++ coding (as SSE versions) :
http://www.chokkan.org/software/dist/fastexp.c.html
https://root.cern.ch/doc/v606/exp_8h_source.html
or just some simple exp approx like:

Code: Select all

return (40 * x * (x * x + 42))/(x * (x * ((x - 20) * x + 180) - 840) + 1680) + 1;
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: exp()

Post by martinvicanek »

Post Reply