financial

package
v0.0.0-...-246c98e Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2015 License: MIT Imports: 4 Imported by: 0

README

Financial Functions

These functions perform many of the commonly used financial calculations, such as the calculation of yield, interest rates, investment valuations and asset depreciation. Ref

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Effect

func Effect(npery, nominalrate float64) (float64, error)

Effect Function The Effective Annual Interest Rate is a measure of interest, that incorporates the compounding of interest and is frequently used to compare financial loans with different compounding terms.

func Nominal

func Nominal(npery, nominalrate float64) float64

Nominal returns the nominal interest rate for a given effective interest rate and number of compounding periods per year.

Types

type EffectStruct

type EffectStruct struct {
	Npery       float64 `validate:"required"`
	NominalRate float64 `validate:"gte=0"`
}

EffectStruct syntax has the following arguments: Nominal_rate Required. The nominal interest rate. Npery Required. The number of compounding periods per year.

type NominalStruct

type NominalStruct struct {
	Npery      float64 `validate:"required"`
	EffectRate float64 `validate:"gte=0"`
}

NominalStruct syntax has the following arguments: Effect_rate Required. The effective interest rate. Npery Required. The number of compounding periods per year.

Jump to

Keyboard shortcuts

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