Tai's formula
A Mathematical Model for the Determination of Total Area Under Glucose Tolerance and Other Metabolic Curves
tai() {
int data[2][5] = {
{0, 30, 60, 90, 120},
{95, 147, 124, 111, 101}
};
int area;
for (int i = 1; i < 5; i++) {
int X_n = data[0][i] - data[0][i-1];
area += (X_n * (data[1][i-1] + data[1][i]));
}
area *= (1.0 / 2.0);
printf("Tai's: %d\n", area);
}
Written by นักศึกษากึ่งสำเร็จรูป
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#C
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#