# 618 - 0.0627 0.0590 0.0557 Columns 17 through 24 0.0528...

This preview shows pages 1–3. Sign up to view the full content.

6.18 (b) Using forward recursion. function E = forward(n,Ezero) E = zeros(1,n); E(1) = 1 - Ezero; for k=2:n E(k) = 1 - k * E(k-1); end function E = backward(N) E = zeros(1,N); for k=N:-1:2 E(k-1) = (1-E(k))/k; end >> Ef = forward(20,Ezero) Ef = Columns 1 through 8 0.3679 0.2642 0.2073 0.1709 0.1455 0.1268 0.1124 0.1009 Columns 9 through 16 0.0916 0.0839 0.0774 0.0718 0.0669 0.0627 0.0590 0.0555 Columns 17 through 20 0.0572 -0.0295 1.5596 -30.1924 >> Eb = backward(32) Eb = Columns 1 through 8 0.3679 0.2642 0.2073 0.1709 0.1455 0.1268 0.1124 0.1009 Columns 9 through 16 0.0916 0.0839 0.0774 0.0718 0.0669

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 0.0627 0.0590 0.0557 Columns 17 through 24 0.0528 0.0501 0.0477 0.0455 0.0436 0.0417 0.0401 0.0385 Columns 25 through 32 0.0371 0.0358 0.0345 0.0334 0.0323 0.0313 0.0313 >> Ef' ans = 0.3679 0.2642 0.2073 0.1709 0.1455 0.1268 0.1124 0.1009 0.0916 0.0839 0.0774 0.0718 0.0669 0.0627 0.0590 0.0555 0.0572-0.0295 1.5596-30.1924 >> Eb' ans = 0.3679 0.2642 0.2073 0.1709 0.1455 0.1268 0.1124 0.1009 0.0916 0.0839 0.0774 0.0718 0.0669 0.0627 0.0590 0.0557 0.0528 0.0501 0.0477 0.0455 0.0436 0.0417 0.0401 0.0385 0.0371 0.0358 0.0345 0.0334 0.0323 0.0313 0.0313...
View Full Document

## This note was uploaded on 04/13/2009 for the course EE EE 110 taught by Professor Gupta during the Spring '09 term at UCLA.

### Page1 / 3

618 - 0.0627 0.0590 0.0557 Columns 17 through 24 0.0528...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online