在Java数学中组合'N选择R'? [英] Combinatoric 'N choose R' in java math?
本文介绍了在Java数学中组合'N选择R'?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在java库中是否有内置方法可以为任何N计算'N choose R'?
Is there a built in method in a java library that can compute 'N choose R' for any N, R?
推荐答案
apache-commonsMath在
中支持这个 org.apache.commons.math4.util.CombinatoricsUtils
The apache-commons "Math" supports this in org.apache.commons.math4.util.CombinatoricsUtils
这篇关于在Java数学中组合'N选择R'?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文