Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

exponential for FPGA target

For FPGA target, you can compute exponential using High Throughput Exponential Function.
but computes e raised to the power of x. The value of x must be in the range [–1, 1].
This VI can compute exponential value exceeds the range.

Comments
bhel@6121489
Member
Member
on

Thank you for the VI, however, it does not give any ouput for x greater than or equal to 22.2, what can be the reason for that?

Aalso any other way to implement exponential in FPGA for any range of x?

Will_S.
Active Participant Active Participant
Active Participant
on

For anyone still searching for this answer, see the bottom of the help on the High Throughput Exponential Function (http://zone.ni.com/reference/en-XX/help/371599P-01/lvfpga/ht_exponential/)

Computing exp(x) When x is Outside the Valid Range

x must be in the range [–1, 1). To compute exp(x) when x is outside this range, find an integer q and a real number r, where r is in the range [0, ln(2)), such that x = q × ln(2) + r. You then can compute 2^q × exp(r), which is equivalent to exp(x). Because r is in the valid range of [–1, 1), you can use this function to compute exp(r).

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
Contributors