正切反正切在线计算器
http://www.ab126.com/geometric/2080.html
紫杰 10:48:21
Some microprocessors can not perform a direct arc-tangent function because they are lacking a floating point function. These microprocessors must then create an arc-tangent look-up table at the required compass resolution. The good news is that the arc-tangent values repeat in 90 degree segments with just polarity needing to be adjusted for each segment. So the look-up table needs only the solutions for heading over 90 degrees. For a one degree resolution compass, only 88 segment solutions plus the 4-cardinal point solutions are mapped in memory for look-up. For a 0.1 degree resolution compass, 898 arctan solutions plus the 4-cardinal point solutions are mapped.
紫杰 10:48:28
有空没?翻译下
紫杰 10:48:35
陪我翻译下
牛志伟 10:49:10
等会可以不?
牛志伟 10:49:15
我有点事
紫杰 10:49:19
一些微处理器(单片机)不能直接执行反正切
紫杰 10:49:21
OK
牛志伟 10:49:31
你急着用么?
紫杰 10:49:49
这段对我很有用,所以我要翻译好
紫杰 10:50:20
要翻译好,我就喜欢有人陪我一起翻译
牛志伟 10:50:52
哦,这样啊,我很荣幸啊,嘿嘿
紫杰 10:52:16
一些微处理器(单片机)由于不支持浮点运算,故不能直接执行反正切函数。这样,就必须创建一个反正切查询表(这是指南针解决方案所必须的)。庆幸的是,
牛志伟 10:53:52
哦,我还没看了,有个同学在问我点事,我正在和她商量,忙完我找你哈,嘿嘿
紫杰 10:55:12
反正切的值每90度就重复,每段只要调整下极性就OK了。
紫杰 10:57:21
所以查询表只要列出前90度的值就可以了。
紫杰 10:57:56
对于分辨率是1度的指南针来说,
紫杰 11:00:48
这样,就必须创建一个反正切查询表(这是指南针解决方案所必须的)。改为------这样,就必须根据指南针所需要的分辨率来创建一个反正切查询表
紫杰 11:05:37
对于分辨率是1度的指南针来说,只要88段+4个主要的点映射到内存中以便查询即可。
紫杰 11:06:45
对于分辨率是0.1度的指南针来说,则要898段+4个主要的点
1度,2度,……89度,180度,269度,0度(360度),所对应的tan
{
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, 3.73205, 4.01078, 4.33148, 4.70463, 5.14455, 5.67128,
6.31375, 7.11537, 8.14434, 9.51436, 11.43, 14.3007, 19.0811, 28.6362, 57.2899, 0 57.2897,0
}
四象限中,正,负,正负。并且绝对值关于Y轴对称。即,89度,91度的绝对值一样。269 271也一样。