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 29