When trying to compute this sequence I get an error
syms n
limit(((-3)^n)/factorial(n),inf)
Error using factorial (line 17)
N must be a matrix of non-negative integers.
Error in (line 9)
How do you fix this or specify the matrix they want?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The factorial function wasn’t designed for use of symbolic references, and often chokes on them. It might work if you have a new enough version (2012b claims it works), but I don’t think it’ll necessarily work with older versions, I’ve found some documents claiming it won’t in fact. The following two methods have been suggested to work around the problem.