rfinancial-0.1.8 has been yanked.
rfinancial
A financial crate mimicking numpy_financial in Python.
Modules
Initial Working Version
- fv - future value
- pmt - payment against loan principal plus interest
- nper - number of periodic payments
- ipmt - interest portion of a payment
- ppmt - payment against loan principal
- pv - present value
- rate - rate of interest per period
- irr - internal rate of return
- npv - net present value of a cash flow series
- mirr - modified internal rate of return
To Be Added
- amortization
Planned Improvements
- Fix
unusedwarnings - Default arguments
- Error handling
- Logging
- Performance benchmarking
- Function-based solution
- now is struct-based solution for my other project
Tests
- All or almost test cases are tested against
numpy_financial's result with some exceptions numpy_financialhas some its own issues
Examples
use *;
// fv
let fv = from_tuple;
println!;
// pmt
let pmt = from_tuple;
println!;
// nper
let nper = from_tuple;
println!;
// ipmt
let ipmt = from_tuple;
println!;
// ppmt
let ppmt = from_tuple;
println!;
// pv
let pv = from_tuple;
println!;
// rate
let rate = from_tuple;
println!;
// irr
let values: = vec!;
let irr = from_vec;
println!;
// npv
let tup = ;
let npv = from_tuple;
println!;
// mirr
let tup = ;
let mirr = from_tuple;
println!;
Future Works
- Add more functions
- Add more test cases
Contributions
- Use the crate and feedback
- Submit pull request or issues though the GitHub repository