Tool/software:
I am trying to create 2 optimized function Sin and Cos in Simulink MBD environment so that it takes minimum amount of exeution time.
I can think of following solutions but I am not sure which one of these will be most efficient for embedded target controller. Any guidance will be appreciated.
- Solution 1: Use 1D lookup table for both Sin and Cos
- Solution 2: Use 1D lookup table for Sin and use cos formula

- Solution 3: Use 1D table for 0-90 degree and then use the quadrature symmetry formula for both sin and cos

- Solution 4: Use tailor series approximation

