area_trapezoid: Calculate the area of a trapezoid.

Description Usage Arguments Value Examples

Description

Calculate the area of a trapezoid.

Usage

1
area_trapezoid(b1, b2, h)

Arguments

b1

bottom base of a trapezoid.

b2

top base of a trapezoid.

h

height of a trapezoid.

Value

The area of the trapezoid.

Examples

1
2
area_trapezoid(3, 5, 16)
area_trapezoid(0.5, 0.5, 2)

katiesocolow/Week_2_Project_Package documentation built on May 12, 2019, 10:33 p.m.