Fixed-Point Blockset    

Parameters for fixpt_look1_func_approx

To use the function fixpt_look1_func_approx, you must first define its parameters. The required parameters for the function are

In addition there are three optional parameters:

You must use at least one of the parameters errmax and nptsmax. The next section Setting Function Parameters for the Lookup Table gives typical settings for these parameters.

Using Only errmax

If you use only the errmax parameter, without nptsmax, the function creates a lookup table with the fewest points, for which the worst case error is at most errmax. See Example 1: Using errmax with Unrestricted Spacing.

Using Only nptsmax

If you use only the nptsmax parameter without errmax, the function creates a lookup table with at most nptsmax points, which has the smallest worse case error. See Example 2: Using nptsmax with Unrestricted Spacing.

The section Specifying Both errmax and nptsmax describes how the function behaves when you specify both errmax and nptsmax.

Spacing

You can use the optional spacing parameter to restrict the spacing between breakpoints of the lookup table. The options are

The section Restricting the Spacing and the examples that follow it explain how to use the spacing parameter.


  Creating Lookup Tables for a Sine Function Setting Function Parameters for the Lookup Table