是真的吗: F#中没有小数幂单位
最佳答案
除了已经说过的以外,关于(不仅仅是)F#度量单位的信息的最佳资源是Andrew Kennedy's PhD thesis,他实际上是设计F#单位的。他提到分数单位:
The most important decision is whether or not to allow fractional exponents of dimensions. The argument against them is philosophical: a quantity with a dimension such as M1/2 makes no sense physically, and if such a thing arose, it would suggest revision of the set of base dimensions rather than a re-evaluation of integral exponents. The argument in favour is pragmatic: sometimes it is easier to write program code which temporarily creates a value whose dimension has fractional exponents. In this dissertation the former view prevails, and fractional exponents are not considered. However, most of the theory would apply just the same; any potential differences are highlighted as they arise.
我认为这实质上是F#没有分数单位的原因,因为F#设计非常接近Andrew Kennedy的工作,以确保声音合理。
更新:在F#4.0中,对小数指数的支持已成为implemented
关于f# - F#中的度量单位的分数幂,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11333135/