036. harmonic mean 定义为: The reciprocal of the arithmetic mean of the reciprocals of a specified set of numbers. 求数列2, 4, 6, 12的harmonic mean.
Ans: 4
思路:
简单题目, 上面调和平均数的定义摘自美国传统字典, 计算一下就可以
------- 这道题, 我按照The reciprocal of the arithmetic mean of the reciprocals of a specified set of numbers. 算出来是 1
和答案不一样.. 请教
举报
(1/2+1/4+1/6+1/12)/4=1/4,答案再倒一下就是等于4了.
我在网上查到得就是这样做
我的理解:请NN指正
调和平均数的含义:The reciprocal of the arithmetic mean of the reciprocals of a specified set of numbers.
“一堆数的倒数的平均值”的倒数。
1/2+1/4+1/6+1/12=1,
平均值是1/4,
1/4的倒数是4.
关键在于理解题目中几个of的关系。
明白啦, 谢谢
楼上的
发表回复
手机版|ChaseDream|GMT+8, 2025-12-7 04:13 京公网安备11010202008513号 京ICP证101109号 京ICP备12012021号
ChaseDream 论坛
© 2003-2025 ChaseDream.com. All Rights Reserved.