This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const paymentFactor = 0.0068; | |
const duration = 180; | |
const f = ((p, n) => x => | |
Math.pow(1 + x, n + 1) - (1 + p) * Math.pow(1 + x, n) + p)( | |
paymentFactor, | |
duration | |
); | |
const derivative = ((p, n) => x => |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const math = require('mathjs'); | |
const last = require('lodash/last'); | |
const range = (n) => new Array(n).fill(0); | |
const duration = 238; | |
const monthlyRate = 0.0549 / 12; | |
const amount = 40020 * Math.pow(1 + monthlyRate, 2); | |
const coefMatrix = math.matrix( |