hi
how to use FIX Aand MOD functions in 28335 dsp processor for the following codes?
theta2=mod(theta1,2*pi);
k=fix(theta2/(pi/3))+1;
regards
Joseph
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
hi
how to use FIX Aand MOD functions in 28335 dsp processor for the following codes?
theta2=mod(theta1,2*pi);
k=fix(theta2/(pi/3))+1;
regards
Joseph
Hi,
for mod use modf or fmod, for fix use floor for positive arguments, ceil for negative arguments.
These fall under math.h. You will find the description for each on this page: www.cplusplus.com/.../