centroid Center of the area under a curve. Syntax centroid(indep_vec, dep_vec) Argument indep_vec The independent vector. dep_vec The dependent vector. Example Templex Expression Result {centroid(0:PI:(PI/24), sin(0:PI:(PI/24)))} 1.5708, 0.392139 A plot of this example is shown below:Figure 1. Comments The centroid function returns a vector of two elements. They are the X and Y coordinates of the center of the area bounded by the curve and the independent axis, defined by: