# NOT RUN {
# number of compositions of 10
ncompositions(10)
# number of compositions of 10 into 5 parts
ncompositions(10, 5)
# integer overflow
# }
# NOT RUN {
ncompositions(160)
# }
# NOT RUN {
ncompositions(160, bigz = TRUE)
# zero sized compositions
ncompositions(0)
ncompositions(5, 0)
ncompositions(5, 6)
ncompositions(0, 0)
ncompositions(0, 1)
# }
Run the code above in your browser using DataLab