atrapezoid: Area of trapezoid

Description Usage Arguments Value Examples

View source: R/sbbfunction.R

Description

Compute the area of trapezoid shape

Usage

1
atrapezoid(b1, b2, h)

Arguments

b1

is the length of first parallel side

b2

is the length of second parallel side

h

is the distance (height) between the parallels

Value

The area of trapezoid

Examples

1
2
area1 <- atrapezoid(5,2,4);
area2 <- atrapezoid(8,3,1);

utaridina/pav7 documentation built on Dec. 23, 2021, 2:04 p.m.