cordicatan2
CORDIC ベースの 4 象限逆正接
構文
theta = cordicatan2(y,x)
theta = cordicatan2(y,x,niters)
説明
theta = cordicatan2(y,x)
は、CORDIC アルゴリズム近似を使用して、y
および x
の 4 象限逆正接を計算します。
theta = cordicatan2(y,x,niters)
では、アルゴリズムの反復が niters
回実行されます。
入力引数
|
|
|
|
出力引数
|
|
例
浮動小数点 CORDIC 逆正接の計算。
theta_cdat2_float = cordicatan2(0.5,-0.5) theta_cdat2_float = 2.3562
固定小数点 CORDIC 逆正接の計算。
theta_cdat2_fixpt = cordicatan2(fi(0.5,1,16,15),fi(-0.5,1,16,15)); theta_cdat2_fixpt = 2.3562 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13