ISSDK
1.8
IoT Sensing Software Development Kit
algorithms
sensorfusion
sources
approximations.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3
* Copyright 2016-2017 NXP
4
* All rights reserved.
5
*
6
* SPDX-License-Identifier: BSD-3-Clause
7
*/
8
9
10
#ifndef APPROXIMATIONS_H
11
#define APPROXIMATIONS_H
12
13
/*! \file approximations.h
14
\brief Math approximations file
15
16
Significant efficiencies were found by creating a set of trig functions
17
which trade off precision for improved power/CPU performance. Full details
18
are included in Application Note AN5015: Trigonometry Approximations
19
*/
20
21
// function prototypes
22
float
fasin_deg
(
float
x);
23
float
facos_deg
(
float
x);
24
float
fatan_deg
(
float
x);
25
float
fatan2_deg
(
float
y,
float
x);
26
float
fatan_15deg
(
float
x);
27
28
#endif // APPROXIMATIONS_H
fatan2_deg
float fatan2_deg(float y, float x)
Definition:
approximations.c:109
fatan_15deg
float fatan_15deg(float x)
Definition:
approximations.c:139
fasin_deg
float fasin_deg(float x)
Definition:
approximations.c:28
facos_deg
float facos_deg(float x)
Definition:
approximations.c:43
fatan_deg
float fatan_deg(float x)
Definition:
approximations.c:59
© Copyright 2016-2020 NXP. All Rights Reserved.