Edit online

功能描述

3 Mar 2025
Read time: 1 minute(s)

CORDIC 函数列表

CORDIC 数学加速模块主要支持下表的数学函数,其中参数 1 和参数 2 为函数的输入参数,结果 1 和结果 2 为函数输出的计算结果,部分函数可以输出两个结果,可以减小冗余的计算。
1. CORDIC 函数列表

Function

参数 1

参数 2

结果 1

结果 2

Cos 余弦

角度 θ

模 A

A × cosθ

A × sinθ

Sin 正弦

角度 θ

模 A

A × sinθ

A × cosθ

Phase 相位

x

y

Arctan (y ÷ x)

x 2 + y 2

Mod 求模

x

y

x 2 + y 2

Arctan (y ÷ x)

Arctan 反正切

x

-

Arctan (x)

-

Cosh 双曲余弦

x

-

Cosh (2 × x) ÷ 2

-

Sinh 双曲正弦

x

-

Sinh (2 × x) ÷ 2

-

Atanh 双曲反正切

x

-

Atanh (2 × x) ÷ 2

-

Square root 开方

a

-

a

-

Atan2

x

y

Atanh (y,x)

x 2 + y 2