Forum Discussion
Altera_Forum
Honored Contributor
14 years agoDepending on what you are doing you might be able to reduce the amount of maths required!
If you only need limited precision use a lookup table and linear interpolation (and maybe a single newton-raphson step). If you are generating values in sequence (eg tone generation) then use the equality: sin(a+b) = 2sin(a)cos(b) - sin(a-b) Use fixed-point maths (in integers) rather than floating point.