Skip to content

Instantly share code, notes, and snippets.

@chepe263
Created September 25, 2019 01:55
Show Gist options
  • Save chepe263/1314c62ab8ca1c977385370bfc4138f1 to your computer and use it in GitHub Desktop.
Save chepe263/1314c62ab8ca1c977385370bfc4138f1 to your computer and use it in GitHub Desktop.
Funciones para ingenieria economica
function factor_pf(capital,interest, years){
return capital / (Math.pow(1+interest, years))
}
function factor_pa(capital,interest, years){
var one_i = Math.pow(1+interest, years);
return capital * ( ( one_i - 1 ) / (interest * one_i) )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment