# US 2022/0066738 A1 · Evaluating a Mathematical Function in a Computational Environment

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0066738 A1
- Document ID: US20220066738A1
- Status: Published application
- Kind: A1
- Application number: 17/522,063
- Filed: 2021-11-09
- Published: 2022-03-03
- Earliest claimed: 2018-04-05
- Assignees: Imagination Technologies Limited
- Applicants: Imagination Technologies Limited
- Inventors: Luca Gagliano
- Web page: https://patentgrep.com/patent/US20220066738A1

## CPC

- G06F 7/548: Trigonometric functions; Co-ordinate transformations
- G06F 7/5446: {using crossaddition algorithms, e.g. CORDIC}
- G06F 17/14: Fourier, Walsh or analogous domain transformations {, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms (for correlation function computation G06F17/156; spectrum analysers G01R23/16)}
- G06F 17/17: Function evaluation by approximation methods, e.g. inter- or extrapolation, smoothing, least mean square method ({G06F17/18 takes precedence } ; interpolation for numerical control G05B19/18)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Apparatus for evaluating a mathematical function for a received input value includes a polynomial block configured to identify a domain interval containing the received input value over which the mathematical function can be evaluated, the mathematical function over the identified interval being approximated by a polynomial function; and evaluate the polynomial function for the received input value using a set of one or more stored values representing the polynomial function over the identified interval to calculate a first evaluation of the mathematical function for the received input value; and a CORDIC block for performing a CORDIC algorithm, configured to initialise the CORDIC algorithm using the first evaluation of the mathematical function for the received input value calculated by the polynomial block; and implement the CORDIC algorithm to calculate a refined evaluation of the mathematical function for the received input value.

## Claims

### Claim 1

Apparatus configured to evaluate a predetermined mathematical function for a received input value, the apparatus comprising:
a polynomial hardware block configured to:
identify a domain interval containing the received input value over which the predetermined mathematical function can be evaluated, the predetermined mathematical function over the identified interval being approximated by a polynomial function; and
evaluate the polynomial function for the received input value over the identified interval to calculate a first evaluation of the predetermined mathematical function for the received input value; and
a CORDIC hardware block for performing a CORDIC algorithm, configured to:
initialise the CORDIC algorithm using the first evaluation of the predetermined mathematical function for the received input value calculated by the polynomial block; and
implement the CORDIC algorithm to perform a plurality of iterative calculations to calculate a refined evaluation of the predetermined mathematical function for the received input value.

### Claim 2 (depends on 1)

Apparatus as claimed in claim 1, wherein the polynomial hardware block and/or the CORDIC hardware block is implemented as fixed logic circuitry.

### Claim 3 (depends on 1)

Apparatus as claimed in claim 1, further comprising a memory configured to store values representing a predetermined set of polynomial functions which approximate the predetermined mathematical function over a respective set of domain intervals; wherein values of the polynomial function are stored in the memory.

### Claim 4 (depends on 1)

Apparatus as claimed in claim 1, wherein the predetermined mathematical function is approximated over each of a plurality of domain intervals by a respective polynomial function, optionally wherein each of the polynomial functions is represented by a set of one or more stored values.

### Claim 5 (depends on 1)

Apparatus as claimed in claim 1, wherein the polynomial function is represented over the identified domain interval by a set of one or more control points, and the hardware polynomial block is configured to evaluate the polynomial function for the received input value using the set of one or more control points.

### Claim 6 (depends on 5)

Apparatus as claimed in claim 5, wherein the predetermined mathematical function is approximated over a plurality of domain intervals by a piecewise polynomial function represented by a plurality of stored control points, the predetermined mathematical function being approximated over each interval by a corresponding polynomial function, optionally wherein the piecewise polynomial function is a uniform spline function, and the control points are B-spline control points.

### Claim 7 (depends on 6)

Apparatus as claimed in claim 6, wherein the control points are stored in at least one look-up table stored in memory.

### Claim 8 (depends on 7)

Apparatus as claimed in claim 7, wherein the at least one look-up table includes a total of M+n entries each storing a single control point, where M is the number of domain intervals over which the predetermined mathematical function is approximated; and n is the order of the polynomial functions approximating the predetermined mathematical function over the intervals.

### Claim 9 (depends on 4)

Apparatus as claimed in claim 4, wherein each of the polynomial functions is represented by a respective set of one or more polynomial coefficients.

### Claim 10 (depends on 9)

Apparatus as claimed in claim 9, wherein the polynomial coefficients representing the polynomials for the domain intervals are stored in at least one look-up table stored in memory.

### Claim 11 (depends on 10)

Apparatus as claimed in claim 10, wherein the at least one look-up table includes a total of M·(n+1) entries each storing a single coefficient, where M is the number of domain intervals over which the predetermined mathematical function is approximated; and n is the order of the polynomial functions approximating the predetermined mathematical function over the intervals.

### Claim 12 (depends on 1)

Apparatus as claimed in claim 1, wherein the CORDIC hardware block is configured to implement the CORDIC algorithm by performing a plurality of iterative calculations to calculate the refined evaluation of the predetermined mathematical function ƒ(x) for the received input value x.

### Claim 13 (depends on 12)

Apparatus as claimed in claim 12, wherein the CORDIC hardware block is configured to perform each iterative calculation to calculate a refined evaluation to the predetermined mathematical function ƒ(tk) from a previous evaluation ƒ(tk−1), where tk=Σj=0kdjwj, dj∈Dp and Dp is a stored digit set, and wj are stored constants so that tk→x as k→∞.

### Claim 14 (depends on 13)

Apparatus as claimed in claim 13, wherein the CORDIC hardware block is configured to calculate tk=tk−1+dk−1wk−1.

### Claim 15 (depends on 13)

Apparatus as claimed in claim 13, wherein the CORDIC hardware block is configured to calculate tk=tk−1wk−1dk−1.

### Claim 16 (depends on 13)

Apparatus as claimed in claim 13 wherein the CORDIC hardware block is configured to initialise the CORDIC algorithm with a first evaluation of the predetermined mathematical function ƒ(tk′) determined by the polynomial hardware calculation block by evaluating the polynomial function for the received input value x.

### Claim 17 (depends on 12)

Apparatus as claimed in claim 12, wherein the CORDIC hardware block is configured to perform the first iterative calculation using the first evaluation of the predetermined mathematical function determined by the polynomial hardware block by evaluating the polynomial function for the received input value.

### Claim 18 (depends on 12)

Apparatus as claimed in claim 12, wherein the CORDIC hardware block is configured to implement the CORDIC algorithm until the difference between refined evaluations from successive iterative calculations is less than a specified value.

### Claim 19

A computer-implemented method of evaluating a predetermined mathematical function for a received input value at an apparatus comprising a polynomial hardware block and a CORDIC hardware block, the method comprising:
at the polynomial hardware block:
identifying a domain interval containing the received input value over which the predetermined mathematical function can be evaluated, the predetermined mathematical function over the identified interval being approximated by a polynomial function;
evaluating the polynomial function for the received input value using values representing the polynomial function over the identified interval to calculate a first evaluation of the predetermined mathematical function for the received input value;
at the CORDIC hardware block:
initialising a CORDIC algorithm using the first evaluation of the predetermined mathematical function for the received input value; and
implementing the CORDIC algorithm to perform a plurality of iterative calculations to calculate a refined evaluation of the predetermined mathematical function for the received input value.

### Claim 20

A non-transitory computer readable storage medium having stored thereon computer readable instructions that, when executed at a computer system, cause the computer system to perform a method of evaluating a predetermined mathematical function for a received input value, the method comprising:
identifying a domain interval containing the received input value over which the predetermined mathematical function can be evaluated, the predetermined mathematical function over the identified interval being approximated by a polynomial function;
evaluating the polynomial function for the received input value using values representing the polynomial function over the identified interval to calculate a first evaluation of the predetermined mathematical function for the received input value;
initialising a CORDIC algorithm using the first evaluation of the predetermined mathematical function for the received input value; and
implementing the CORDIC algorithm to perform a plurality of iterative calculations to calculate a refined evaluation of the predetermined mathematical function for the received input value.
