开发者

calculation using formula in iPhone [closed]

开发者 https://www.devze.com 2023-03-22 19:25 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. 开发者_StackOverflow中文版
Closed. This question needs details or clarity. It is not currently accepting answers. 开发者_StackOverflow中文版

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 9 years ago.

Improve this question

I am working with Humidity calculator where I have to do one equation that is:

e  = 6.1078 * 10 ** ((TD * A)/(TD + B));

but its not working. Any ideas why?


Maybe by the "**" operator you mean the exponential operator. In that case you might want to use the function exp() with the proper corrections (exp() uses the natural number as its base).


Why there is 2 *s in that equation?

e = 6.1078 * 10 * ((TD * A)/(TD + B));

This should work. Also , considering TD and B, (TD + B) should not be zero.

0

精彩评论

暂无评论...
验证码 换一张
取 消