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

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

View Full Document Right Arrow Icon
% 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
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 Right Arrow Icon
Ask a homework question - tutors are online