Sunday, May 1, 2016

FPGA Design to find the Exponential function in Xilinx

The following design can calculate exponential of numbers. For greater accuracy one can change the value of constant 2. Following design is based on the power series 
e^x = \sum_{n = 0}^{\infty} {x^n \over n!} = 1 + x + {x^2 \over 2!} + {x^3 \over 3!} + {x^4 \over 4!} + \cdots
For more accurate results, upto 14 terms of series are taken. 
The value of e^x for different numbers as generate by my design is given below: 
e^x
Value obtained
1
2.718
2
7.389
3
20.09
4
54.58
5
148.1

No comments: