/************************************************************ * * * Permission is hereby granted to any individual or * * institution for use, copying, or redistribution of * * this code and associated documentation, provided * * that such code and documentation are not sold for * * profit and the following copyright notice is retained * * in the code and documentation: * * Copyright (c) held by Dianne Cook * * All Rights Reserved. * * * * Questions and comments are welcome, and I request * * that you share any modifications with me. * * * * Dianne Cook * * dicook@iastate.edu * * * ************************************************************/ #define _UTIL_C #include "util.h" float max_vec(float *x, int n) { int i; float max1 = x[0]; for (i=1; i max1) max1 = x[i]; return(max1); } float min_vec(float *x, int n) { int i; float min1 = x[0]; for (i=1; i