math.h

来自「AVR系列单片机ATMEGA64开发的LED显示屏程序 内容包括ATMEGA6」· C头文件 代码 · 共 60 行

H
60
字号
#ifndef __MATH_H
#define __MATH_H

#define _PI	3.1415926	/* ..535897932 */

#if defined(_M8C) && defined(_LMM)
#define fabs fabsLMM
#endif

#if !defined(_HC11) && !defined(_HC16)
float fabs(float x);
float frexp(float x, int *eptr);
float tanh(float x);
float sin(float x);
float atan(float x);
float atan2(float y, float x);
float asin(float x);
float exp10(float x);
float log10(float x);
float fmod(float y, float z);
float sqrt(float x);
float cos(float x);
float ldexp(float d, int n);
float modf(float y, float *i);
float floor(float y);
float ceil(float y);
float fround(float d);
float tan(float x);
float acos(float x);
float exp(float x);
float log(float x);
float pow(float x,float y);
float sinh(float x);
float cosh(float x);
#else

double exp10(double x);				/* 10 ** x */
double exp(double x);				/* e ** x */
double log(double x);				/* ln x */
double log10(double x);				/* log 10 of x */
double pow(double x, double y);		/* x ** y */
double fabs(double);
double fmod(double, double);
double sqrt(double x);

/* Note that these functions now use RADIAN arguments, as
 * per ANSI C rules
 */
double sin(double x);
double cos(double x);
double tan(double x);
double asin(double x);
double acos(double x);
double atan(double x);
double degree_to_radian(double);
double radian_to_degree(double);

#endif
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?