area_2d: computes the area of a square

View source: R/area_2d.R

area_2dR Documentation

computes the area of a square

Description

computes the area of a square

Usage

area_2d(l, w)

Arguments

l

a numeric that represents the length

w

a numeric that represents the width

Value

a numeric that is the area of two numbers

Examples

l <- 5
w <- 2
area_2d(l,w)
area_2d(0,0)
area_2d(2,0)

tonyliang19/mathFun documentation built on April 24, 2022, 12:17 a.m.