|
Re: speed of math.h trig functions?
I don't have specific timing numbers, but considering that each time I go through the user_routine event loop our team's code currently calls
sin() four times
cos() four times
atan2() twice
asin() twice
acos() twice
sqrt() four times
and it runs without problems and without taking up sufficient code space, so I decided it wasn't worth messing with CORDIC functions and called the floating point routines "fast enough".
If I have a chance I'll set up a test loop to compare the methods, but it hasn't been a priority.
|