spinn_common 7.3.1
Support code for SpiNNaker applications.
Loading...
Searching...
No Matches
Functions
sincos.h File Reference

Trigonometric functions for fixed point. More...

#include <stdfix-full-iso.h>

Go to the source code of this file.

Functions

s1615 sink (s1615 x)
 This function calculates the sin function for the s1615 type.
 
s1615 cosk (s1615 x)
 This function calculates the cos function for the s1615 type.
 

Detailed Description

Trigonometric functions for fixed point.

Function Documentation

◆ sink()

s1615 sink ( s1615  x)

This function calculates the sin function for the s1615 type.

Parameters
[in]xis positive value represented as an s1615.
Returns
A value representing sin(x) in s1615 format.

◆ cosk()

s1615 cosk ( s1615  x)

This function calculates the cos function for the s1615 type.

Parameters
[in]xis positive value represented as an s1615.
Returns
A value representing cos(x) in s1615 format.