Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.

Factorial Operator in COMSOL

Please login with a confirmed email address before reporting spam

Hello, I am trying implement a function that contains the factorial operator: n! = (n)(n-1)(n-2)...(1), where n is a positive integer.

I cannot find this in the "Operators, Functions, and Constants" section of the Reference Manual. Does COMSOL have this mathematical operator built-in?


1 Reply Last Post 27.06.2019, 06:38 GMT-4

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 27.06.2019, 06:38 GMT-4
Updated: 5 years ago 27.06.2019, 06:40 GMT-4

Answered my own question: Use the implemented gamma function, as gamma(n+1)

Answered my own question: Use the implemented gamma function, as gamma(n+1)

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.