【求助】 在Arduino中如何计算 atan(4/8)呢 ?
求助如上???函数名: atan
功 能: 反正切函数
用 法: double atan(double x);
程序例:
#include <stdio.h>
#include <math.h>
int main(void)
{
double result;
double x = 0.5;
result = atan(x);
printf("The arc tangent of %lf is %lf\n", x, result);
return(0);
} arduino也认这个函数 Cain 发表于 2015-3-3 16:51
函数名: atan
功 能: 反正切函数
用 法: double atan(double x);
谢谢,我的问题已解决了:)
我把变量数组定义成 float型的数组,这样atan()运算的就是小数弧度了。。。 :loveliness::loveliness:
页:
[1]