From 96d6da4e252b06dcfdc041e7df23e86161c33007 Mon Sep 17 00:00:00 2001 From: rihab kouki Date: Tue, 28 Jul 2020 11:24:49 +0100 Subject: Official ARM version: v5.6.0 --- docs/DSP/html/group__cos.html | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'docs/DSP/html/group__cos.html') diff --git a/docs/DSP/html/group__cos.html b/docs/DSP/html/group__cos.html index 70ad705..bdeb501 100644 --- a/docs/DSP/html/group__cos.html +++ b/docs/DSP/html/group__cos.html @@ -32,7 +32,7 @@ Logo
CMSIS-DSP -  Version 1.5.2 +  Version 1.7.0
CMSIS DSP Software Library
@@ -127,7 +127,7 @@ Functions  

Description

-

Computes the trigonometric cosine function using a combination of table lookup and linear interpolation. There are separate functions for Q15, Q31, and floating-point data types. The input to the floating-point version is in radians and in the range [0 2*pi) while the fixed-point Q15 and Q31 have a scaled input with the range [0 +0.9999] mapping to [0 2*pi). The fixed-point range is chosen so that a value of 2*pi wraps around to 0.

+

Computes the trigonometric cosine function using a combination of table lookup and linear interpolation. There are separate functions for Q15, Q31, and floating-point data types. The input to the floating-point version is in radians while the fixed-point Q15 and Q31 have a scaled input with the range [0 +0.9999] mapping to [0 2*pi). The fixed-point range is chosen so that a value of 2*pi wraps around to 0.

The implementation is based on table lookup using 256 values together with linear interpolation. The steps used are:

  1. Calculation of the nearest integer table index
  2. @@ -136,8 +136,8 @@ Functions

where

-   b=Table[index+0];
-   c=Table[index+1];
+   b = Table[index];
+   c = Table[index+1];
 

Function Documentation

@@ -154,15 +154,11 @@ Functions
Parameters
- +
[in]xinput value in radians.
[in]xinput value in radians
-
Returns
cos(x).
- -

References FAST_MATH_TABLE_SIZE, and sinTable_f32.

- -

Referenced by main().

+
Returns
cos(x)
@@ -181,14 +177,12 @@ Functions
Parameters
- +
[in]xScaled input value in radians.
[in]xScaled input value in radians
-
Returns
cos(x).
-

The Q15 input value is in the range [0 +0.9999] and is mapped to a radian value in the range [0 2*pi).

- -

References FAST_MATH_Q15_SHIFT, and sinTable_q15.

+
Returns
cos(x)
+

The Q15 input value is in the range [0 +0.9999] and is mapped to a radian value in the range [0 2*PI).

@@ -207,14 +201,12 @@ Functions
Parameters
- +
[in]xScaled input value in radians.
[in]xScaled input value in radians
-
Returns
cos(x).
-

The Q31 input value is in the range [0 +0.9999] and is mapped to a radian value in the range [0 2*pi).

- -

References FAST_MATH_Q31_SHIFT, and sinTable_q31.

+
Returns
cos(x)
+

The Q31 input value is in the range [0 +0.9999] and is mapped to a radian value in the range [0 2*PI).

@@ -223,7 +215,7 @@ Functions