1. Engineering
  2. Computer Science
  3. evaluation issues we want to evaluate the following expression k...

Question: evaluation issues we want to evaluate the following expression k...

Question details

Evaluation Issues We want to evaluate the following expression: k! Evaluate it for k-130 and 2-400 a) First, try a direct evaluation with Matlab(i.e., set up k and lambda as variables in your code, then calculate p in a one-line step as written here). What do you get? Hmm. b) Next, try to evaluate it by writing some code that calculates p in an iterative way (hint: maybe set up a loop over k, and calculate p(k)-p(k-1)*something start with p(1) and iterate until you get p(k)). You might want to be clever about e as well. Think about what we did in class on Monday.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution