完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
本帖最后由 一只耳朵怪 于 2018-6-14 09:51 编辑
asin_report.c中的数据是 float asin_expected[BUFFER_SIZE]=[ 1.570796, 1.393789, 1.320141, 1.263401, 1.215375, 1.172892, 1.134327, 1.098718, 1.065436, 1.034046, 1.004232, 0.9757544, 0.9484279, 0.9221048, 0.8966658, 0.8720123, 0.8480621, 0.8247454, 0.8020028, 0.7797828, 0.7580408, 0.7367374, 0.7158381, 0.6953120, 0.6751316, 0.6552721, 0.6357113, 0.6164289, 0.5974064, 0.5786270, 0.5600753, 0.5417370, 0.5235988, 0.5056486, 0.4878751, 0.4702678, 0.4528166, 0.4355124, 0.4183464, 0.4013104, 0.3843968, 0.3675981, 0.3509074, 0.3343180, 0.3178237, 0.3014185, 0.2850964, 0.2688521, 0.2526802, 0.2365756, 0.2205333, 0.2045484, 0.1886164, 0.1727327, 0.1568929, 0.1410927, 0.1253278, 0.1095943, 0.09388787, 0.07820469, 0.06254076, 0.04689218, 0.03125509, 0.01562564 ]; asin_shared_data.c float CLAasinTable[]=[ 0.0, 1.0, 0.0, 0.000000636202, 0.999877862610, 0.007815361896, 0.000005099694, 0.999510644409, 0.015647916155, 0.000017268312, 0.998895919094, 0.023514960332, 0.000041121765, 0.998029615282, 0.031434003631, 0.000080794520, 0.996905974725, 0.039422875916, 0.000140631089, 0.995517492804, 0.047499840611, 0.000225244584, 0.993854840311, 0.055683712914, 0.000339579512, 0.991906765146, 0.063993984848, 0.000488979852, 0.989659972212, 0.072450958820, 0.000679263611, 0.987098979366, 0.081075891529, 0.000916805182, 0.984205946802, 0.089891150305, 0.001208627040, 0.980960476685, 0.098920384204, 0.001562502549, 0.977339379243, 0.108188712551, 0.001987071928, 0.973316400729, 0.117722933997, 0.002491973784, 0.968861907789, 0.127551759665, 0.003087995053, 0.963942521723, 0.137706074532, 0.003787242692, 0.958520694794, 0.148219231941, 0.004603341138, 0.952554219267, 0.159127386977, 0.005551660294, 0.945995657913, 0.170469875522, 0.006649579796, 0.938791682505, 0.182289647088, 0.007916796475, 0.930882303984, 0.194633761132, 0.009375683410, 0.922199974574, 0.207553958472, 0.011051710808, 0.912668537890, 0.221107321885, 0.012973941175, 0.902201997769, 0.235357042896, 0.015175614174, 0.890703070035, 0.250373315541, 0.017694840102, 0.878061473098, 0.266234382514, 0.020575425537, 0.864151902887, 0.283027765009, 0.023867860513, 0.848831624374, 0.300851714968, 0.027630504055, 0.831937595031, 0.319816937941, 0.031931014547, 0.813283013821, 0.340048646894, 0.036848083955, 0.792653161200, 0.361689022958, 0.042473551274, 0.769800358920, 0.384900179460, 0.048914992206, 0.744437830278, 0.409867752228, 0.056298910750, 0.716232177740, 0.436805274317, 0.064774696786, 0.684794109766, 0.465959540059, 0.074519565699, 0.649666934178, 0.497617226179, 0.085744766889, 0.610312179660, 0.532113122767, 0.098703445606, 0.566091493186, 0.569840443472, 0.113700678529, 0.516243664372, 0.611263845480, 0.131106395009, 0.459855210927, 0.656936015611, 0.151372169232, 0.395822366759, 0.707518998893, 0.175053263659, 0.322801460177, 0.763811905770, 0.202837883870, 0.239143420888, 0.826787304376, 0.235586468765, 0.142806299514, 0.897639596948, 0.274385149825, 0.031236880585, 0.977850174820, 0.320619535938, -0.098791845166, 1.069276441800, 0.376078169620, -0.251407364538, 1.174275392129, 0.443100143614, -0.431959397725, 1.295878193174, 0.524789871827, -0.647485610469, 1.438041695773, 0.625336471263, -0.907400624736, 1.606018804842, 0.750500589935, -1.224540947101, 1.806917563896, 0.908377657341, -1.616794995066, 2.050569262035, 1.110633894185, -2.109729648039, 2.350920816737, 1.374584721437, -2.740985157716, 2.728353889708, 1.726848242753, -3.567962877198, 3.213722960014, 2.210117561056, -4.682006534082, 3.855770086891, 2.896554011854, -6.236312386687, 4.735651038017, 3.916505715382, -8.505488022524, 5.997790945975, 5.526855868703, -12.026617159136, 7.922628470498, 8.298197116322, -17.983705080358, 11.123941286820, 13.741706072449, -29.488929624542, 17.203344479111, 27.202707817485, -57.466598393615, 31.741016484669, 83.158101335898, -171.803399517566, 90.149831709374 ]; 这些代码有什么用 |
|
相关推荐
5个回答
|
|
用于做sine计算查表对比使用。
|
|
|
|
|
|
|
|
在这个例程中是这样的。具体功能如下。 /Task 1 : Calculate asin(X) // Description: // Step(1): Calculate absolute of the input X // // Step(2): Use the upper 6-bits of input "X" value as an // index into the table to obtain the coefficients // for a second order equation: // // _FPUasinTable: // CoeffA0[0] // CoeffA1[0] // CoeffA2[0] // . // . // CoeffA0[63] // CoeffA1[63] // CoeffA2[63] // // Step(3): Calculate the angle using the folowing equation: // // arctan(Ratio) = A0 + A1*Ratio + A2*Ratio*Ratio // arctan(Ratio) = A0 + Ratio(A1 + A2*Ratio) // // Step(4): The final angle is determined as follows: // // if( X < 0 ) // Angle = -Angle |
|
|
|
我要怎么样可以直观的看出计算出的 asin(X)值是正确的。需要添加什么代码,能给个较为简单且详细的步骤么 |
|
|
|
您好: 这个是根据我们的值取查找我们实际的角度吗?那么我已经知道角度怎么去求幅值呢? |
|
|
|
只有小组成员才能发言,加入小组>>
340 浏览 1 评论
533 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
777 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
653 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1132 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
65浏览 29评论
170浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
255浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
205浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
60浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-24 05:00 , Processed in 0.852496 second(s), Total 56, Slave 50 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号