OK, here is a mini-challenge. Let's say you design a mixed analog/digital detector. You read in the X & R signals to the micro, and at some point you want to calculate the magnitude and phase. Mathematically, they are:

)
However, these can be slow calculations in a micro. The challenge is this: Come up with magnitude and phase calculations which seek to minimize both execution time and memory requirement, and produce acceptably accurate results. "Acceptably accurate" is up to you to define, and to explain and rationalize if necessary.
I have possible solutions but will wait to see what others come up with.
However, these can be slow calculations in a micro. The challenge is this: Come up with magnitude and phase calculations which seek to minimize both execution time and memory requirement, and produce acceptably accurate results. "Acceptably accurate" is up to you to define, and to explain and rationalize if necessary.
I have possible solutions but will wait to see what others come up with.
Comment