financebanking

interest Effective

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 3.60
sub units 0.00
add a commercial licence to your cart
0
viewed 1907 times and licensed 8 times
www.codecogs.com/d-ox/finance/banking/interesteffective.php
Controller: CodeCogs    Contact Controller

Interface

#include <codecogs/finance/banking/interesteffective.h>

using namespace Finance::Banking;

double interestEffective (double rate, int npery)
Returns the effective annual interest rate. Excel: EFFECT
Click for details on using CodeCogs in ExcelReal cc_interestEffective (Real rate, Integer npery)
This function is available as a Microsoft Excel add-in.

Function Documentation

Interest Effective Calculator

  

Add calculator to your site or email
 
doubleinterestEffectivedoublerate
intnpery )
This function computes the effective annual interest rate, based on the nominal interest rate and the number of compounding periods per year.

It is based on the following equation,
(1)
\displaystyle \left ( 1 + \frac{rate}{npery} \right ) ^ {npery} - 1
where expressed as an integer.
Example:
#include <stdio.h>
#include <codecogs/finance/banking/interesteffective.h>
 
int main()
{
  int i;
  float f = 4.25;
   
  printf("      Rate    NPery   Effective\n");
  for (i=3;i<10;++i)
  {
    printf("    %f      %d      %f\n",f,i,Finance::Banking::interestEffective(f,i));
    ++f;
  }
  return 0;
}
Output
 Rate          NPery     Effective
 4.250000        3       0.043105
 5.250000        4       0.053542
 6.250000        5       0.064083
 7.250000        6       0.074726
 8.250000        7       0.085475
 9.250000        8       0.096331
 10.250000       9       0.107296
Parameters:
rateis the nominal interest rate, expressed as a double type. If less than or equal to 0, effect will return -1
npery
Note:
It is assumed that no withdrawls are made on the sum.
Authors:
Alwyn Tan (Mar 2005) James Warren (August 2005)
Source Code:
Register

- To get code register with CodeCogs. Already a Member, then Login.


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2008-05-09 13:00:21

Page Comments

  You must login to leave a messge


Valid CSS!   Valid XHTML 1.0 Transitional