calc

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forecast

func Forecast(current, rate, period float64) float64

Forecast of how much a current number will grow at a given rate after a certain period (days, weeks, years, ...).

func Forecast3D

func Forecast3D(current, rate, rateOfRate, period float64) float64

Forecast3D it's like Forecast but the rate varies at its own rate (rateOfRate).

func Period

func Period(current, final, rate float64) float64

Period (days, weeks, years, ...) that a current number will take to reach a final number at a given growth rate.

func Rate

func Rate(past, current, period float64) float64

Rate at which a current number is growing, coming from a past number in a given period (days, weeks, years, ...).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL