qitar888 (Chia-sheng Chen)
- Login: qitar888
- Registered on: 07/22/2016
- Last sign in: 07/27/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
07/27/2019
-
05:46 AM Ruby Bug #16024: String#split with block. cannot use Regexp in the block.
- tksotn (TAKASHI OOTANI) wrote:
> $ ruby -v
> ...
Hi,
I tried with `str.split().each &block` and things work just fine for me.
02/11/2017
-
07:54 PM Ruby Feature #13208 (Closed): Vector.zero(n) and vector.zero?
- Found that I need this recently, and class `Matrix` has these two function while `Vector` not.
So I add two function based on `Matrix` counterpart and also add test.
Usage
``` ruby
require 'matrix'
v = Vector.zero(3) # => Vecto...
08/02/2016
-
09:02 AM Ruby Feature #12647 (Closed): Make tanh faster when it lacks of HAVE_TANH
- I found tanh(x) in math.c return sinh(x) / cosh(x), which function call is a waist of time.
So I changed to (exp(2*x) - 1) / (exp(2*x) + 1), the extract form of tanh().
But if HAVE_SINH and HAVE_COSH are defined, only HAVE_TANH und...