在目标c上需要帮助 [英] need help on objective c

查看:94
本文介绍了在目标c上需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个代码,要求我嵌入三角学公式.实际上我有公式,但是我很困惑如何在我的代码中实现它.我也得到了,但并没有得到我真正需要的东西.该公式就像

I am working on a code that requires me to embed trignometry formula. actually i have the formula but i am confused how to implement that into my code.i am trying to find out everywhere & i am getting too but not getting exactly what i need.the formula is like

Axh = Ax cos θz 
Ayh = Ay cos θy

|AI | =sqrt(|Axh|^2 + |Ayh|^2)

α = arccos(Axh/|AI|) β = arccos(Ayh/|AI |)

Alat =Axh sin α+ Ayh sin β



这些是公式,因此任何人都可以通过我可以从中学习的几何编码或任何简单项目来帮助我..谢谢



these are formulas so anyone out there can help me with geometric coding or any simple project from where i can learn.. thanks

推荐答案

看看这篇文章,我在哪里有很多公式,必须转换为代码,好吧,它不是objective-c,但可能会给您有关任务的想法.

记住,要保持简单,然后将每个部分分解为各个组成部分.

数据历史学家-您购买了它,使用它!真实示例 [^ ]
Have a look at this article where I had a bunch of formula, and had to translate to code, ok, its not objective-c, but might give you ideas on the task.

Remember, keep it simple and break each part down to its component parts.

Data Historians - You Bought It, Use It! Real World Example[^]


AFAIK Objective C具有与C编程语言相同的数学功能,因此您拥有所需的全部内容(请查看math.h标头).
例如第一行是
AFAIK Objective C has the same mathematical functions of the C programming language, hence you have all you need (have a look at math.h header).
For instance first line would be
double Axh = Ax * cos(Thetaz)


等等.


这篇关于在目标c上需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆