Cos - Analog Devices VISUALDSP++ 3.5 Manual

C/c++ compiler and library for adsp-219x processors
Hide thumbs Also See for VISUALDSP++ 3.5:
Table of Contents

Advertisement

cos

cosine
Synopsis
#include <math.h>
double cos(double);
float cosf (float);
fract16 cos_fr16 (fract16);
Description
The
function returns the cosine of the argument. The input is inter-
cos
preted as radians; the output is in the range [-1, 1].
The
cos_fr16
corresponding to [-π/2, π/2]. The domain represents half a cycle which
can be used to derive a full cycle if required (see Notes below). The result,
in radians, is in the range [-1.0, 1.0).
Error Conditions
The
function does not return an error condition.
cos
Example
#include <math.h>
double y;
y = cos(3.14159);
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
function inputs a fractional value in the range [-1.0, 1.0)
/* y = -1.0 */
C/C++ Run-Time Library
3-45

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Related Products for Analog Devices VISUALDSP++ 3.5

Table of Contents