Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended 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

More Books

Students also viewed these Programming questions

Question

19. What does fMRI measure?

Answered: 1 week ago