[PATCH 3/3] More than 3 arguments Passing to CMath.log doesn't make sense.
I was wondering which is prefer reporting this issue as bugs or feature.
Finally I decided to report as bugs because I thought such a issue being totally unexpected can be called bugs.
Aside from that, let me show the before my patch and after my patch.
CMath.log(1i,1,1,1,1,1,1,1,1) # => (NaN+Infinity*i)
CMath.log(1i,1,1,1,1,1,1,1,1) # => ArgumentError: wrong number of arguments (9 for 1..2)
def log(z, b=E) may look little bit strange, but I assert for all num
and checking second argument passing or not takes pain.
- lib/cmath.rb (log): raise ArgumentError when more than 2 arguments are passed. [ruby-core:66143] [Bug #10487]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e