how to calculate factorial or combination in NetLogo?

后端 未结 0 1892
感动是毒
感动是毒 2020-12-24 04:12

to setup clear-all ;comb 4 2

reset-ticks end

to comb [ #n #k ] ; combinations of n things k at a time, k < n let combination (reduce * n-values #k [ ? + #n

相关标签:
回答
  • 消灭零回复
提交回复
热议问题