Eric Wong wrote: > I don't use CMath, but I suggest a deprecation period since it appears > ... Thanks for comment! I suppose these methods(Math.cos!, sin!..) got public by accident, but your point dose really make sense. Here is a...gogotanaka (Kazuki Tanaka)
Hi, now I’d like to remove methods with `!`( `sin!`, `cos!`…) from `CMath`, for the following reasons. * wanna keep CMath minimal. `CMath#sin` should be superset of `CMath#sin!` or `Math#sin` is enough. * [rdoc for CMath seems brok...gogotanaka (Kazuki Tanaka)
Hi! As https://github.com/ruby/ruby/pull/756/, it can make users a little bit confused. Even some of them can think it's a mistake of documentation. so I wanna commit this patch(using_rb_define_method_for_rbHash.patch), is there a...gogotanaka (Kazuki Tanaka)
Applied in changeset r49818. ---------- * math.c (num2dbl_with_to_f): direct casting from Rational to double. [Feature #10909]gogotanaka (Kazuki Tanaka)
I can find this proposal makes `Math` faster more than 2 times at most. $ cat bench.rb ```ruby require 'benchmark' puts Benchmark.measure { 10_000_000.times { Math.cos 1 } } puts Benchmark.measure { 10_000_000....gogotanaka (Kazuki Tanaka)