depreciationSln

Evaluates the depreciation of an asset using the straight-line method.

Synopsis

depreciationSln (cost, salvage, life)

Required Arguments

float cost (Input)
Initial value of the asset.
float salvage (Input)
The value of an asset at the end of its depreciation period.
int life (Input)
Number of periods over which the asset is being depreciated.

Return Value

The straight line depreciation of an asset for its life. If no result can be computed, NaN is returned.

Description

Function depreciationSln computes the straight line depreciation of an asset for its life.

It is computed using the following:

\[\left(\mathrm{cost}-\mathrm{salvage}\right)/\mathrm{life}\]

Example

In this example, depreciationSln computes the depreciation of an asset, which costs $2,500 initially, lasts 24 periods and a salvage value of $500.

from __future__ import print_function
from numpy import *
from pyimsl.math.depreciationSln import depreciationSln

cost = 2500
salvage = 500
life = 24

depreciation_sln = depreciationSln(cost, salvage, life)
print("The straight line depreciation of the asset", end=' ')
print("for one period is $%.2f." % (depreciation_sln))

Output

The straight line depreciation of the asset for one period is $83.33.