3-31-11 notes

3-31-11 notes - %end % %writing summation of 2x^2+3x from...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% 3/31/2011 % Topic: Recursive (iteration) % %writing summation of 2x+n from 5 to 10 as a function: %function out = fact(n) %if n == 4 % out = 0; %else % out = 2*n + n + fact(n-1);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: %end % %writing summation of 2x^2+3x from -7 to 10 as a function: %function out = fact(n) %if n == -8 % out = 0; %else % out = (2*n^2+3*n) + fact(n-1); %end...
View Full Document

This note was uploaded on 05/01/2011 for the course HCSC 110 taught by Professor Amosjohnson during the Spring '11 term at Morehouse.

Ask a homework question - tutors are online