[ruby-list:37738] Re: missing/erf.c

From: matz@... (Yukihiro Matsumoto)
Date: 2003-05-30 15:19:45 UTC
List: ruby-list #37738
まつもと ゆきひろです

In message "[ruby-list:37737] missing/erf.c"
    on 03/05/30, NISHIMATSU Takeshi <t-nissie@imr.tohoku.ac.jp> writes:

|数学関数について <ruby-talk:37737> でまつもとさんは
|> These functions and constants are defined under difference standards.
|> POSIX, SVID, SVIF, etc.  I'm not sure how far we should go, and how we
|> treat undefined functions (yet).
|と書かれていますが, missing/foo.c があればパッチを
|受け付けていただけるかなと思い, とりあえず誤差関数の
|erf, erfc のために missing/erf.c を書きました.

厳密に言うとPOSIXに入ってないものに関してはちょっと慎重にな
ろうと思っています。ですから、 j0, j1, jn, y0, y1, yn の方が
取り込みやすいですね。

また、missing/*.cはRuby固有の関数を含まないことが望ましいで
すから(他の状況でも使えるように)、

|今回の missing/erf.c の中には
|    rb_raise(rb_eRuntimeError, "missing/erf.c:q_gamma(): could not converge.");
|があります. よいでしょうか.

はちょっとよくないです。

In This Thread