硬汉嵌入式论坛

 找回密码
 立即注册
查看: 444|回复: 1
收起左侧

[DSP] 请问关于反正切函数的具体使用方法!

[复制链接]

3

主题

4

回帖

13

积分

新手上路

积分
13
发表于 2023-5-29 09:23:05 | 显示全部楼层 |阅读模式
arm_status arm_atan2_f32(float32_t y,float32_t x,float32_t *result)



  Computing Arc tangent only using the ratio y/x is not enough to determine the angle
  since there is an indeterminacy. Opposite quadrants are giving the same ratio.

  ArcTan2 is not using y/x to compute the angle but y and x and use the sign of y and x
  to determine the quadrant.


这里说明的是,是确定象限的,请问一下,各位知道这个具体的使用方法是怎么样的吗?

回复

使用道具 举报

1万

主题

6万

回帖

10万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
106590
QQ
发表于 2023-5-29 10:11:34 | 显示全部楼层
和C库的atan2一样。区别C是返回值值,ARM库这个是形参返回。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2024-4-26 04:17 , Processed in 0.219670 second(s), 26 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表