CNLMath : Special Functions : depreciation_syd
depreciation_syd
Evaluates the depreciation of an asset using the sum-of-years digits method.
Synopsis
#include <imsl.h>
float imsl_f_depreciation_syd (float cost, float salvage, int life, int period)
The type double function is imsl_d_depreciation_syd.
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.
int period (Input)
Period for which the depreciation is to be computed. period cannot be greater than life.
Return Value
The sum-of-years digits depreciation of an asset for a specified period. If no result can be computed, NaN is returned.
Description
Function imsl_f_depreciation_syd computes the sum-of-years digits depreciation of an asset for a specified period.
It is computed using the following:
Example
In this example, imsl_f_depreciation_syd computes the depreciation of an asset, which costs $25,000 initially, lasts 15 years and a salvage value of $5,000, for the 14th year.
 
#include <stdio.h>
#include <imsl.h>
 
int main()
{
float cost = 25000;
float salvage = 5000;
int life = 15;
int period = 14;
float depreciation_syd;
 
depreciation_syd = imsl_f_depreciation_syd (cost, salvage, life, period);
printf ("The depreciation allowance for the 14th year ");
printf ("is $%.2f.\n", depreciation_syd);
}
Output
 
The depreciation allowance for the 14th year is $333.33.