嵌入式系统上的三角函数 [英] Trigonometric functions on embedded system
本文介绍了嵌入式系统上的三角函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
sin
and cos
functions are slow and need a lot of resources to run on embedded systems. How does one calculate sin
and cos
functions in a more resource-saving and faster way?
解决方案
To calculate a Taylor or Fourier series is always going to be time-consuming.
In an embedded system, you should think about lookup tables.
There might also be interesting information on the 'Net about how Hewlett-Packard optimised such calculations in their early scientific calculators.
I recall seeing such stuff at the time
这篇关于嵌入式系统上的三角函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文