在C6747中,使用sin()函数的时候为什么会出现三角波,而不是正弦波呢?
float test_2[256];
unsigned int test_1;
for(test_1=0;test_1<256;test_1++)
{
test_2[test_1] = sin(test_1*2*pi/256);
test_1++;
}
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
直接添加头文件和库,然后就可以调用里面的API函数了。注意看C:\mathlib_c674x_3_1_0_0\docs路径里面的资料,来查函数使用说明。
Add calls to MATHLIB kernels within the system source code as necessary. Any system source file that contains calls to an MATHLIB kernel will require that the MATHLIB header file mathlib.h is included. See the MATHLIB Function Reference for details on individual kernel APIs.