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 Jun 27, 2019, 6:38 a.m. EDT

Please login with a confirmed email address before reporting spam

Posted: 5 years ago Jun 27, 2019, 6:38 a.m. EDT
Updated: 5 years ago Jun 27, 2019, 6:40 a.m. EDT

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.