Area of a Trapezoid

The area of a trapezoid relies on the fact that the trapezoid reduces to a rectangle that is the average of its two parallel sides. This function depends on an Average function.

double OR2AreaOfTrapeziod(const double & base, const double & height1, const double & height2)
   double a[2];
   a[0] = height1;
   a[1] = height2;
   return Average(a, 2)*base;
Reply Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
Like Follow
  • 2 mths agoLast active
  • 1Views
  • 1 Following