Skip to content

EltonMJohn/actlib_numpy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actlib_numpy

numpy custom ufunc for Actuaries

the following ufuncs are implemented.

  • cum_pv_e

    • Recursive present value of cashflow at the end of the period.

    • input x1:cashflow, x2:forwardrate

    • Equivalent code: for(i=n-1;i>=0;i--) pv[i] = (x1[i+1] + pv[i+1]) / (1 + x2[i])

  • cum_pv_s

    • Recursive present value of cashflow at the start of the period.

    • input x1:cashflow, x2:forwardrate

    • Equivalent code: for(i=n-1;i>=0;i--) pv[i] = x1[i+1] + pv[i+1] / (1 + x2[i])

About

numpy custom ufunc for Actuaries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 78.9%
  • Python 21.1%