topic How to realize exp() function or sigmoid() function in S12 / MagniV Microcontrollers
https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-realize-exp-function-or-sigmoid-function/m-p/1287805#M17890
<P>Hi</P><P> I want to implement the sigmoid function，but, It appears that the function does not exist in the library，</P><P> I use the Automotive Math and Motor Control Library Set for NXP MC9S12ZVM devices.</P><P> Does the exp()function exist in the library? or，How should I implement it with other tools</P><P> This algorithm, I hope to have as fast calculation speed as possible。</P><P> thank you </P>Sat, 05 Jun 2021 08:49:02 GMTmaxxu2021-06-05T08:49:02ZHow to realize exp() function or sigmoid() function
https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-realize-exp-function-or-sigmoid-function/m-p/1287805#M17890
<P>Hi</P><P> I want to implement the sigmoid function，but, It appears that the function does not exist in the library，</P><P> I use the Automotive Math and Motor Control Library Set for NXP MC9S12ZVM devices.</P><P> Does the exp()function exist in the library? or，How should I implement it with other tools</P><P> This algorithm, I hope to have as fast calculation speed as possible。</P><P> thank you </P>Sat, 05 Jun 2021 08:49:02 GMThttps://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-realize-exp-function-or-sigmoid-function/m-p/1287805#M17890maxxu2021-06-05T08:49:02ZRe: How to realize exp() function or sigmoid() function
https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-realize-exp-function-or-sigmoid-function/m-p/1291110#M17898
<P>Can someone help me？</P>Fri, 11 Jun 2021 06:15:09 GMThttps://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-realize-exp-function-or-sigmoid-function/m-p/1291110#M17898maxxu2021-06-11T06:15:09ZRe: How to realize exp() function or sigmoid() function
https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-realize-exp-function-or-sigmoid-function/m-p/1293088#M17905
<P>Hello,</P>
<P>if you don't care about CPU load, then I would follow standard programming patterns for math implementation. Otherwise, I'd recommend to calculate a lookup table offline (e.g. using MS Excel) and then use it in the MCU. Polynomial approximation is also an option. The two techniques mentioned can be realized with support of the AMMCLib (GFLIB_Lut1D and MLIB functions such as Mul, Add, etc.).</P>
<P>Best regards,</P>
<P>Matej</P>Wed, 16 Jun 2021 08:13:54 GMThttps://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-realize-exp-function-or-sigmoid-function/m-p/1293088#M17905pachamatej2021-06-16T08:13:54Z