用3位点配方计算身体密度(女性) [英] Calculating body density with 3-site formula (female)

查看:134
本文介绍了用3位点配方计算身体密度(女性)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





女性身体密度等式如下,



女:1.0994921 - .0009929 (3个站点的总和)+ .0000023(3个站点的总和)^ 2 - .000139(年龄)



我使用上面的等式来计算密度,如下所示,



int iAge = 48;



十进制SevenSK = 43;

十进制密度= 0;



密度= Convert.ToDecimal(1.0994921) - (Convert.ToDecimal(0.0009929)* SevenSK)+(Convert.ToDecimal(0.0000023)* SevenSK * SevenSK) - (Convert.ToDecimal(0.000139)* iAge);





我想得到密度= 1.032。但得到1.0543781。为什么? :(



谢谢。

Hi,

female body density equation as below,

female: 1.0994921 - .0009929(sum of 3 sites) + .0000023 (sum of 3 sites)^2 - .000139(age)

I am using above equation to calculate density as below,

int iAge = 48;

decimal SevenSK =43;
decimal density = 0;

density = Convert.ToDecimal(1.0994921) - (Convert.ToDecimal(0.0009929) * SevenSK) + (Convert.ToDecimal(0.0000023) * SevenSK * SevenSK) - (Convert.ToDecimal(0.000139) * iAge);


I want to get density = 1.032. but getting as 1.0543781. why? :(

Thanks.

推荐答案

检查你的数字和你的公式。没有明显的计算使用那些导致1.032的值。

您可以使用十进制值获得1.0543781,或者使用double或float:但是没有什么能够使您的值符合您的等式,从而获得您想要的结果。



所以这三个中的一个是有效的:



1)你的等式是错误的。

2)你的价值观错了。

3)你对1.032的期望是错误的。



无论哪种方式,这是一个你必须解决的问题!
Check your figures, and your formula. There is no obvious calculation using those values that results in 1.032.
You can get 1.0543781 using decimal values, or double, or float: but there is nothing that fits your values into your equation that will give you the result you want.

So one of these three is valid:

1) Your equation is wrong.
2) Your values are wrong.
3) Your expectation of 1.032 as a result is wrong.

Either way, it's a problem you will have to solve!


这篇关于用3位点配方计算身体密度(女性)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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