Altera_Forum
Honored Contributor
16 years agoDownscaling
Hi all,
Im trying to implement an arctan function in Quartus II using a Chebyshev approximation algorithm. The problem is that it only accepts numbers between -1 and 1 as arguments(including fractions) and my data goes as high as 20. Im using this arctan to get the phase between my in-phase and quadrature channels and the quotient samples of the Q/I are higher than/lower than -1 and 1(up to +-20). How can I scale this data down to be a valid input for the arctan since the division megafunction doesnt give desirable results?