diff options
| author | St33v <st33v@woodenspoon.net> | 2013-05-16 18:30:10 +1000 |
|---|---|---|
| committer | St33v <st33v@woodenspoon.net> | 2013-05-16 18:30:10 +1000 |
| commit | 5bdaeca7deca9682afc37bf9e976ceef5e862e38 (patch) | |
| tree | c654c065ed2d0f2e1fca5e9562017726a153f5f9 | |
| parent | 6bb0e534e8a2619e2a339598fd035868c3390a38 (diff) | |
Update conversion
added exponential conversion pair of equations.
| -rw-r--r-- | conversion | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -16,3 +16,16 @@ f2c <- function(deg, sc='F', string=FALSE){ round(deg, 0), sc, round(res, 0), to) return(res) } + +########### Exponential growth functions ############################# + +####################################################################### +# convert growth rate ('interest rate' version) to doubling time +dblTime <- function(x) { + return(log(2)/log(1 + x)) +} +####################################################################### +# convert doubling time to 'interest rate' +intRate <- function(x) { + return((exp(log(2)/x))-1) +} |
