how to code factorial in stan?
gamma(x + 1);
factorial(8)
[1] 40320
it is right in the rstudio,but it’s wrong in file.stan,like:
SYNTAX ERROR, MESSAGE(S) FROM PARSER:
No matches for:
factorial(int)
Function factorial not found.
i get you ,thank you
SYNTAX ERROR, MESSAGE(S) FROM PARSER:
No matches for:
gamma(int)
Function gamma not found.
still wrong
I mean to say tgamma(x + 1);
.
2 Likes
thank you