Question
2. Let's say you want to find In (500!), that is, the natural log of 500 factorial. If you try to do this directly
2. Let's say you want to find In (500!), that is, the natural log of 500 factorial. If you try to do this directly in Matlab, as log(factorial (500)), you'll get an infinite answer because factorial (500) is too big for Matlab to handle. Please instead use a for loop to find In (500!), saving the result as x. (Hint: remember that In(ab) = ln(a)+ln(b).)
Step by Step Solution
3.38 Rating (167 Votes )
There are 3 Steps involved in it
Step: 1
Answer res0 for i1500 resreslogi end dispThe value of logfactorial500 is The value of ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Quantitative Investment Analysis
Authors: Richard A. DeFusco, Dennis W. McLeavey, Jerald E. Pinto, David E. Runkle
3rd edition
111910422X, 978-1119104544, 1119104548, 978-1119104223
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App