# TimLinHW03 - % % % % % % % % % % % % BEE 1510 Introduction...

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

% BEE 1510 Introduction to Computer Programming % Homework Exercise 03: Repetitive Control Structures % Timothy Lin % TA: Celina % % This script file first asks for the gender and size of the population to % be simulated. Then, for each individual in the population, the heart % parameters are randomized. If the difference between the right and left % boundary is greater than the tolerance, that means that the intercept has % not been found. As the script loops, if the difference is still greater % than the tolerance, the script will perform the bisection to find the % root of the CO-VR function until the heart rate for the individual is % found. % Record of revisions: % original code: October 8, 2008 % last modified: October 9, 2008 % % Variable Dictionary % cardiac_output(array) = function file that calculates blood flow rate % from the heart % venous_return(array) = function file that calculates blood flow rate % through organs and tissues back to right atrium % gender = menu choice of gender: 1 = male, 2 = female % size = population size inputted by user % index = all of the population that must be put through bisection % co_max = the maximum value of cardiac output, 1/min % del_co_max = decimal variation of maximum value of cardiac output % co_max_ind = individual values of maximum value of cardiac output % k = a scaling parameter, mm HG % del_k = decimal variation of scaling parameter % k_ind = individual values of scaling parameter % Prao = the minimum pressure at the right atrium resulting in flow, mm Hg

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.

## This note was uploaded on 09/28/2009 for the course BEE 1510 taught by Professor Staff during the Fall '05 term at Cornell University (Engineering School).

### Page1 / 4

TimLinHW03 - % % % % % % % % % % % % BEE 1510 Introduction...

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

View Full Document
Ask a homework question - tutors are online