what is the MATLAB function to evaluate ncr value when n is real
Mostrar comentarios más antiguos
what is the MATLAB function to evaluate ncr value when n is real
6 comentarios
Kaushik Lakshminarasimhan
el 25 de Ag. de 2018
What is ncr?
Walter Roberson
el 25 de Ag. de 2018
Number of combinations??
You can easily transform the traditional factorial definition of combinations to use the GAMMA function, but as soon as you go for negative values you have a problem that GAMMA of negative values is infinite.
PJS KUMAR
el 25 de Ag. de 2018
Walter Roberson
el 25 de Ag. de 2018
What result are you expecting for nCr(-3,pi) ?
PJS KUMAR
el 25 de Ag. de 2018
Walter Roberson
el 25 de Ag. de 2018
What numeric values do you expect for the cases nCr(0.5,2) and nCr(-3,2) ? Number of combinations is only defined for positive integers.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
