Use Lookup Table Approximation Functions
The following steps summarize how to use the lookup table approximation functions.
The ideal function to approximate
xmax, over which to find X and Y data
The fixed-point implementation: data type, scaling, and rounding method
The maximum acceptable error, the maximum number of points, and the spacing
fixpt_look1_func_approxfunction to generate X and Y data.
fixpt_look1_func_plotfunction to plot the function and error between the ideal and approximated functions using the selected X and Y data, and to calculate the error and the number of points used.
Vary input criteria, such as
spacing, to produce sets of X and Y data that generate functions with varying worst-case error, number of points required, and spacing.
Compare results of the number of points required and maximum absolute error from various runs to choose the best set of X and Y data.