financial_math 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +20 -1
- data/lib/financial_math/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fa4602831d3bf20fee3b85417d5b72a755de53a2c8216189d53858679cff872
|
|
4
|
+
data.tar.gz: 40949a7b823d6254e3412e3d329dc525f465bfaa1260ad805cf80fa123801c94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e9372da941991e343e13f4b698d69e0905fb20fb7420d137114c9ec3ffc1a8abd8a3713abfdb4d3e69f9add02897aad4659525809aac16bf933afa3ac118109d
|
|
7
|
+
data.tar.gz: 654f067d488d83e1fbcddaee46e1cdebe07e891e6ece8335007f9a74c68a4da0ccc9e58323ae19573f51431e5f76b794d7758a697c843cd130bc253b668f3818
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -24,6 +24,22 @@ Or install it yourself as:
|
|
|
24
24
|
|
|
25
25
|
$ gem install financial_math
|
|
26
26
|
|
|
27
|
+
## Content
|
|
28
|
+
|
|
29
|
+
This cover the next topics in financial math:
|
|
30
|
+
|
|
31
|
+
* Geometric Progression
|
|
32
|
+
* Arithemetic Progression
|
|
33
|
+
* Simple Interest
|
|
34
|
+
* Compound Interest
|
|
35
|
+
|
|
36
|
+
More content will be added, soon, like:
|
|
37
|
+
|
|
38
|
+
* Annuities
|
|
39
|
+
* Valuation
|
|
40
|
+
* Amortization
|
|
41
|
+
* Stock market math
|
|
42
|
+
|
|
27
43
|
## Usage
|
|
28
44
|
|
|
29
45
|
To calculate the last item of a geometric progression:
|
|
@@ -31,7 +47,7 @@ To calculate the last item of a geometric progression:
|
|
|
31
47
|
```ruby
|
|
32
48
|
args = { initial_value: 1100, ratio: 1.1, times: 5 }
|
|
33
49
|
geometric_progression = FinancialMath::GeometricProgression.new(args)
|
|
34
|
-
|
|
50
|
+
geometric_progression.last_item
|
|
35
51
|
```
|
|
36
52
|
|
|
37
53
|
To calculate the future value:
|
|
@@ -41,6 +57,7 @@ args = { present_value: 100_000.0, interest_rate: 0.05, periods: 3 }
|
|
|
41
57
|
simple_interest = FinancialMath::SimpleInterest.new(args)
|
|
42
58
|
simple_interest.future_value
|
|
43
59
|
```
|
|
60
|
+
|
|
44
61
|
## Development
|
|
45
62
|
|
|
46
63
|
If want test this gem without clone this repo, type:
|
|
@@ -53,6 +70,8 @@ This command will get the development dependencies installed too.
|
|
|
53
70
|
|
|
54
71
|
## Release History
|
|
55
72
|
|
|
73
|
+
* 0.4.1
|
|
74
|
+
* CHANGE: Update docs (module code remains unchanged)
|
|
56
75
|
* 0.4.0
|
|
57
76
|
* ADD: Add `CompoundInterest` class
|
|
58
77
|
* 0.3.1
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: financial_math
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Omar Vergara Pérez
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|