exponential_growth: Function to calculate exponential growth.

View source: R/exponential_growth.R

exponential_growthR Documentation

Function to calculate exponential growth.

Description

Exponential growth is also called geometric growth and has the property of the rate of change is proportional to the quantity itself.

Usage

exponential_growth(start, rate, steps = 1)

Arguments

start

The starting condition where exponential growth begins.

rate

The growth rate or exponent to represent growth.

steps

The number of discrete growth iterations.

Value

Numeric vector.

Author(s)

Stuart K. Grange

Examples


# Starting condition of 10000 with a low value for the exponential growth
exponential_growth(start = 10000, rate = 1.1, steps = 6)

# The same starting condition but with twice the growth rate, a huge change
exponential_growth(start = 10000, rate = 1.1 * 2, steps = 6)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.