<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <id>tag:www.refactormycode.com,2007:users81</id>
  <link type="application/atom+xml" href="http://www.refactormycode.com/users/81" rel="self"/>
  <title>bauser</title>
  <updated>Sun Sep 30 16:29:08 -0700 2007</updated>
  <entry>
    <id>tag:www.refactormycode.com,2007:Refactor140</id>
    <published>2007-09-30T16:29:08-07:00</published>
    <title>[Ruby] On compound interest</title>
    <content type="html">&lt;p&gt;I'm not sure what you are trying to do, but if you wanted to keep track of the values, you could do something like...
&lt;/p&gt;

&lt;pre&gt;a = (0..8).inject([]) {|a, i| a &amp;lt;&amp;lt; (v += (v/100) * cap_growth)}&lt;/pre&gt;</content>
    <author>
      <name>bauser</name>
      <email></email>
    </author>
    <link type="text/html" href="http://www.refactormycode.com/codes/34-compound-interest/refactors/140" rel="alternate"/>
  </entry>
</feed>

