View source: R/stat.mech.functions.R
multinom | R Documentation |
This function computes the multinomial coefficient
multinom(x, logQ = F)
x |
a macrostate, i.e. a vector of one-particle state occupancies |
logQ |
whether or not to return the log of the multinomial coefficient. Default is FALSE |
This is a function computes the multinomial coefficient.
multinomial coefficient.
library(che302r)
x <- c(3,2,8,0,0,1,0,0)
N <- sum(x)
factorial(N)/prod(factorial(x))
multinom(x)
multinom(c(3,3,7,0,0,1,0,0))
multinom(c(2,4,1,2,2,0,1,2), logQ = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.