Comment about Math#asin

e$B1sF#$H?=$7$^$9!#e(B

Math#asin e$B$O%3%a%s%H$K$h$k$He(B 0…PI
e$B$NCM$rJV$9$3$H$K$J$C$F$$$^$9$,e(B
e$B<B:]$K$Oe(B -{PI/2} … {PI/2} e$B$@$H;W$$$^$9!#e(B

e$B8H$$?$$$J%D%C%3%$P$+$j$G$9$_$^$;$se(B (e$B>Pe(B)

Index: math.c

— math.c (revision 15174)
+++ math.c (working copy)
@@ -128,7 +128,7 @@

  • call-seq:
  • Math.asin(x)    => float
    
    • Computes the arc sine of x. Returns 0…PI.
    • Computes the arc sine of x. Returns -{PI/2} … {PI/2}.
      */

static VALUE

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:33276] comment about Math#asin”
on Tue, 22 Jan 2008 23:28:05 +0900, “Yusuke ENDOH” [email protected]
writes:

|Math#asin e$B$O%3%a%s%H$K$h$k$He(B 0…PI e$B$NCM$rJV$9$3$H$K$J$C$F$$$^$9$,e(B
|e$B<B:]$K$Oe(B -{PI/2} … {PI/2} e$B$@$H;W$$$^$9!#e(B
|
|# e$B8H$$?$$$J%D%C%3%$P$+$j$G$9$_$^$;$se(B (e$B>Pe(B)

e$B$$$($$$(!"=u$+$j$^$9!#%3%_%C%H$7$F$$$?$@$1$^$;$s$+!)e(B

At Tue, 22 Jan 2008 23:28:05 +0900,
Yusuke ENDOH wrote:

é è—¤ã¨ç”³ã—ã¾ã™ã€‚

Math#asin はコメントによると 0…PI の値を返すことになっていますが
実際には -{PI/2} … {PI/2} だと思います。

 ruby_1_8 ブランチについてもお願いします。