From: matz@... (Yukihiro Matsumoto) Date: 2003-05-31T00:19:45+09:00 Subject: [ruby-list:37738] Re: missing/erf.c まつもと ゆきひろです In message "[ruby-list:37737] missing/erf.c" on 03/05/30, NISHIMATSU Takeshi writes: |数学関数について でまつもとさんは |> 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."); |があります. よいでしょうか. はちょっとよくないです。