I am trying to use bigdecimal/newton for an implementation of XIRR. A
copy of the code I am trying to run can be found here:
When I run the code (Ruby 1.9.2 on Mac OS X 10.6), I get the following
div': wrong number of arguments(2 for 1) (ArgumentError) from /opt/local/lib/ruby1.9/1.9.1/bigdecimal/ludcmp.rb:84:inblock in
downto' from /opt/local/lib/ruby1.9/1.9.1/bigdecimal/ludcmp.rb:78:inlusolve’
nlsolve' from gistfile1.rb:52:in’
Is this because of an error in my program, or something in the
Any assistance in debugging this would be greatly appreciated.