Connexions

You are here: Home » Content » Cálculo de constante K para el encontrar los valores de sqrt(x^2 +y^2) y atan(y/x)
Content Actions

Cálculo de constante K para el encontrar los valores de sqrt(x^2 +y^2) y atan(y/x)

Module by: Luis Moreno

Summary: Calculation of constant K to perform the calculus of sqrt(x^2 +y^2) and atan(y/x) of a vector (x,y)

lightgraygray0.5

Contents

  • Numero de iteraciones
  • n iteraciones
  • Grafica de K en funcion de n
  • Referencias
% Calculo de constante de normalizacion K
% para el calculo de sqrt(x^2+ y^2) y atan(y/x)
% Programador: Ing. Luis Moreno Yaguana
% UTPL-GESE
% ISTEC-RedDSP
clc
K=1;
K1=0;

Numero de iteraciones

n=19;

n iteraciones

for i=0:n-1
    temp=sqrt(1+2^(-2*i));
    K=temp*K;
    K1=[K1 K];
end
K1=K1(2:end);

Grafica de K en funcion de n

plot(0:n-1,K1)
xlabel('n','FontWeight','Bold');
yt=ylabel('Value of K','FontWeight','Bold');
grid on
axis([0 n min(K1) max(K1)+0.05])
K
lightgray
K =
 
    1.6468
 
black
calcK_01.png
Figura 1

Referencias

Jack E. Volder The CORDIC Trigonometric Computing Technique IRE Transcactions EC-8, 1959, 330-334

Comments, questions, feedback, criticisms?

Send feedback