Issue #10487 has been updated by gogo tanaka.

File modify_cmath_rb_v2.patch added

@Ayumu AIZAWA san

Thank you so much! Here you are.

----------------------------------------
Bug #10487: [PATCH 3/3] More than 3 arguments Passing to CMath.log doesn't make sense.
https://bugs.ruby-lang.org/issues/10487#change-51233

* Author: gogo tanaka
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: 2.2.0dev
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Hi, there. 

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.

## Before
```
CMath.log(1i,1,1,1,1,1,1,1,1)
# => (NaN+Infinity*i)
```

## After
```
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 `log(num)` equal `log(num, E)`

and checking second argument passing or not takes pain.

Thanks. gogo.

---Files--------------------------------
modify_cmath.rb.patch (1.15 KB)
adjust_test_complex.rb.patch (955 Bytes)
update_NEWS.patch (629 Bytes)
modify_cmath_rb_v2.patch (1.16 KB)


-- 
https://bugs.ruby-lang.org/