• 大小: 2KB
    文件类型: .c
    金币: 1
    下载: 0 次
    发布日期: 2021-06-19
  • 语言: 其他
  • 标签: 反正切  

资源简介

利用查表法实现反正切值计算角度,适合那些没有浮点运算功能的单片机

资源截图

代码片段和文件信息

#include “stdio.h“
#include “math.h“
float tanArray[89] = {
0.0174551      0.0349208      0.0524078      0.0699268      0.0874887      0.105104       0.122785       0.140541       0.158384       0.176327

0.19438        0.212557       0.230868       0.249328       0.267949       0.286745       0.305731       0.32492        0.344328       0.36397

0.383864       0.404026       0.424475       0.445229       0.466308       0.487733       0.509525       0.531709       0.554309       0.57735

0.600861       0.624869       0.649408       0.674509       0.700208       0.726543       0.753554       0.781286       0.809784       0.8391

0.869287       0.900404       0.932515       0.965689       1              1.03553        1.07237        1.11061        1.15037        1.19175

1.2349         1.27994        1.32704        1.37638        1.42815        1.48256        1.53986        1.60033        1.66428        1.73205

1.80405        1.88073        1.96261        2.0503         2.14451        2.24604        2.35585        2.47509        2.60509        2.74748

2.90421        3.07768        3.27085        3.48741   

评论

共有 条评论