Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Mathimatics-Numerical algorithms matlab
Title: distribute_balls Download
 Description: Write a program that calculates the n (eg 6) pellets into four boxes given number of balls 4 in a box, for example, n1 = 3, n2 = 2, n3 = 1, n4 = 0 total How many different discharge method X? That input n1, n2, n3, n4, output method number X Hint: Consider the n balls into the two boxes in the case of write mathematical formulas calculated the number of X (similar to the number of combinations) to expand n fixed, converting different input parameters n1, n2, n3, n4, and when the maximum X? A fixed number of boxes, graphically shows the change in the law (with the plot command) Xmax with n of
 Downloaders recently: [More information of uploader yuyi]
 To Search:
File list (Check if you may need any files):
 

distribute_balls
................\fun1.m
................\max1.m
................\myfactorial.m
................\plot1.m
................\关于盒子区分定义.txt
    

CodeBus www.codebus.net