Complex#scalar? returns false

e$B$`$i$?$G$9!%e(B

Complex#scalar? e$B$,e(B false
e$B$rJV$9$h$&$G$9!%%I%-%e%a%s%H$r8+$k$He(B

http://doc.loveruby.net/refm/api/view/method/Numeric/i/scalar=3f

e$B<+?H$,e(B Complex e$B$+$=$N%5%V%/%i%9$N%$%s%9%?%s%9$G$J$$>l9g$Ke(B true e$B$rJV$7$^$9!#e(B
e$B$=$&$G$J$$>l9g$Ke(B false e$B$rJV$7$^$9!#e(B

e$B$H=q$+$l$F$$$F!$%a%=%C%IL>$H;EMM$,9g$C$F$J$$$h$&$K;W$($^$9!%e(B

e$B;EMM$r$=$N$^$^%a%=%C%IL>$K$9$k$He(B Numeric#complex?
e$B$K$J$j$^$;$s$+!)e(B
Numeric#scalar?
e$B$H$$$&L>A0$+$i$O!$%*%V%8%’%/%H$,%Y%/%H%k$G$J$$>l9g$Ke(B
true e$B$rJV$9$3$H$,4|BT$5$l$k$H;W$$$^$9!%e(B
e$B$G$9$+$i!$L>A0$rJQ99$9$k$+!$;EMM$rJQ99$9$k$+!$$I$A$i$+$,I,MW$G$O$J$$$G$7$g$&$+!%e(B

e$B$b$&2?G/$bA0$KDI2C$5$l$?%a%=%C%I$N;EMM$r:#:">x$7JV$7$F?=$7$o$1$"$j$^$;$s!%e(B
e$B$h$m$7$/$*4j$$$7$^$9!%e(B

[email protected]$G$9!#e(B

At Thu, 10 Apr 2008 16:42:10 +0900,
Kenta M. wrote in [ruby-dev:34285]:

Complex#scalar? e$B$,e(B false e$B$rJV$9$h$&$G$9!%%I%-%e%a%s%H$r8+$k$He(B

http://doc.loveruby.net/refm/api/view/method/Numeric/i/scalar=3f

e$B<+?H$,e(B Complex e$B$+$=$N%5%V%/%i%9$N%$%s%9%?%s%9$G$J$$>l9g$Ke(B true e$B$rJV$7$^$9!#e(B
e$B$=$&$G$J$$>l9g$Ke(B false e$B$rJV$7$^$9!#e(B

e$B$H=q$+$l$F$$$F!$%a%=%C%IL>$H;EMM$,9g$C$F$J$$$h$&$K;W$($^$9!%e(B

e$B!Ve(BComplexe$B$+$=$N%5%V%/%i%9$N%$%s%9%?%s%9$N>l9g$K$Oe(Bfalsee$B$rJV$7$^$9!We(B
e$B$H$$$&$3$H$G$9$+$i!"9g$C$F$$$k$N$G$O!#e(B

e$B;EMM$r$=$N$^$^%a%=%C%IL>$K$9$k$He(B Numeric#complex? e$B$K$J$j$^$;$s$+!)e(B
Numeric#scalar? e$B$H$$$&L>A0$+$i$O!$%*%V%8%’%/%H$,%Y%/%H%k$G$J$$>l9g$Ke(B
true e$B$rJV$9$3$H$,4|BT$5$l$k$H;W$$$^$9!%e(B

e$BJ#AG?t$r%Y%/%H%k$H$7$F07$&$3$H$OB?$$$s$8$c$J$$$G$7$g$&$+!#e(B

e$B$`$i$?$G$9!%e(B

2008/4/10 Nobuyoshi N. [email protected]:

Complex#scalar? e$B$,e(B false e$B$rJV$9$h$&$G$9!%%I%-%e%a%s%H$r8+$k$He(B

http://doc.loveruby.net/refm/api/view/method/Numeric/i/scalar=3f

e$B<+?H$,e(B Complex e$B$+$=$N%5%V%/%i%9$N%$%s%9%?%s%9$G$J$$>l9g$Ke(B true e$B$rJV$7$^$9!#e(B
e$B$=$&$G$J$$>l9g$Ke(B false e$B$rJV$7$^$9!#e(B

e$B$H=q$+$l$F$$$F!$%a%=%C%IL>$H;EMM$,9g$C$F$J$$$h$&$K;W$($^$9!%e(B

e$B!Ve(BComplexe$B$+$=$N%5%V%/%i%9$N%$%s%9%?%s%9$N>l9g$K$Oe(Bfalsee$B$rJV$7$^$9!We(B
e$B$H$$$&$3$H$G$9$+$i!"9g$C$F$$$k$N$G$O!#e(B

e$BJ#AG?t$O%9%+%i$G$9$h$M!%$=$7$F!$e(Bscalar? e$B$H$$$&L>A0$+$i$O!$e(B
e$B!V%Y%/%H%k$+%9%+%i$+!W$rEz$($k=R8l$G$"$k$h$&$K;W$($^$9!%e(B

e$BJ#AG?t$r%Y%/%H%k$H$7$F07$&$3$H$OB?$$$s$8$c$J$$$G$7$g$&$+!#e(B

e$B$=$l$O!$%Y%/%H%k!V$H$7$F!W07$C$F$$$k$o$1$G$O$J$/$F!$e(B
e$BJ#AGJ?LL>e$G%Y%/%H%k!V$N$h$&$K8+$([email protected]@$rJ,$+$j$d$9$/e(B
e$B$9$k$?$a$K%Y%/%H%[email protected]@[email protected][email protected]$H;W$C$F$$$?$N$G$9$,!%e(B

e$BJ#AG?te(B a + bi e$B$O$=$N1i;;5,B’$+$i%Y%/%H%k$h$j$O$`$7$me(B

[ a -b ]
[ b a ]

e$B$H$$$&7A$Ne(B2e$B<[email protected]}9TNs$HF1$8$b$N$K$J$j$^$9$h$M!%e(B

e$B$`$i$?$G$9!%e(B

e$B4V0c$($^$7$?e(B >_<

2008/4/10 Kenta M. [email protected]:

e$B$=$l$O!$%Y%/%H%k!V$H$7$F!W07$C$F$$$k$o$1$G$O$J$/$F!$e(B
e$BJ#AGJ?LL>e$G%Y%/%H%k!V$N$h$&$K8+$([email protected]@$rJ,$+$j$d$9$/e(B
e$B$9$k$?$a$K%Y%/%H%[email protected]@[email protected][email protected]$H;W$C$F$$$?$N$G$9$,!%e(B

e$B$3$l$O13$G$9!%J#AG?t$N=89g$b%Y%/%H%k6u4V$N8xM}$rK~$?$7$F$k$N$G!$e(B
e$BJ#AG?t$r%Y%/%H%k$H$7$F07$&$3$H$,$G$-$^$9!%?=$7J,$1$"$j$^$;$s!%e(B

[email protected]$G$9!#e(B

At Thu, 10 Apr 2008 17:21:05 +0900,
Kenta M. wrote in [ruby-dev:34289]:

e$BJ#AG?t$O%9%+%i$G$9$h$M!%$=$7$F!$e(Bscalar? e$B$H$$$&L>A0$+$i$O!$e(B
e$B!V%Y%/%H%k$+%9%+%i$+!W$rEz$($k=R8l$G$"$k$h$&$K;W$($^$9!%e(B

e$B%Y%/%H%[email protected]$H;W$C$F$^$7$?!#%9%+%[email protected]$H;W$C$?$3$H$O$"$j$^$;$s!#e(B

e$B$`$i$?$G$9!%e(B

2008/4/11 Nobuyoshi N. [email protected]:

[email protected]$G$9!#e(B

At Thu, 10 Apr 2008 17:21:05 +0900,
Kenta M. wrote in [ruby-dev:34289]:

e$BJ#AG?t$O%9%+%i$G$9$h$M!%$=$7$F!$e(Bscalar? e$B$H$$$&L>A0$+$i$O!$e(B
e$B!V%Y%/%H%k$+%9%+%i$+!W$rEz$($k=R8l$G$"$k$h$&$K;W$($^$9!%e(B

e$B%Y%/%H%[email protected]$H;W$C$F$^$7$?!#%9%+%[email protected]$H;W$C$?$3$H$O$"$j$^$;$s!#e(B

[email protected]$N%a!<%k$K$b=q$$$?$h$&$K!$%Y%/%H%k$N8xM}$rK~$?$7$F$$$^$9$+$ie(B
e$B%Y%/%H%k$H$7$F07$C$F$b9=$o$J$$$H;W$$$^$9!%e(B

e$B$7$+$7!$;d$O%Y%/%H%k$H$7$F$G$O$J$/!$%9%+%i$H$7$F07$o$l$F$$$kNc$7$+e(B
e$B8+$?$3$H$,$"$j$^$;$s!%J#AG%Y%/%H%k>l!$J#AG%9%+%i>l$H$$$&[email protected]$,$"$j!$e(B
e$BA0<T$G$b8e<T$G$bJ#AG?t$O%9%+%i$G$9!%J#AG?t$,%Y%/%H%k$H$7$F07$o$l$ke(B
e$BNc$O8f:B$$$^$9$+!)e(B

e$B86$G$9!#e(B

e$B%Y%/%H%[email protected]$H;W$C$F$^$7$?!#%9%+%[email protected]$H;W$C$?$3$H$O$"$j$^$;$s!#e(B

[email protected]$N%a!<%k$K$b=q$$$?$h$&$K!$%Y%/%H%k$N8xM}$rK~$?$7$F$$$^$9$+$ie(B
e$B%Y%/%H%k$H$7$F07$C$F$b9=$o$J$$$H;W$$$^$9!%e(B

e$B$7$+$7!$;d$O%Y%/%H%k$H$7$F$G$O$J$/!$%9%+%i$H$7$F07$o$l$F$$$kNc$7$+e(B
e$B8+$?$3$H$,$"$j$^$;$s!%J#AG%Y%/%H%k>l!$J#AG%9%+%i>l$H$$$&[email protected]$,$"$j!$e(B
e$BA0<T$G$b8e<T$G$bJ#AG?t$O%9%+%i$G$9!%J#AG?t$,%Y%/%H%k$H$7$F07$o$l$ke(B
e$BNc$O8f:B$$$^$9$+!)e(B

e$B$`$i$?$5$s$N$*$C$7$c$kDL$j!"!VJ#AG?t!W$O%9%+%i!<$H$7$F07$&%1!<%9$OB?$$e(B
e$B$G$9!#!V%Y%/%H%k>[email protected]$&$H!"$^$?$A$g$C$H!V%Y%/%H%k!W$N0UL#$,0c$&$+e(B
e$B$H;W$$$^$9$,!#e(B

e$B$^$?!“87L)$K$O!“2?$,%9%+%i!<$+$O!VDj5A$K$h$k!W$N$G!”$”$k$b$N$rC1FH$G<he(B
e$B$j=P$7$F%9%+%i!<$G$"$k$+H]$+$OLd$($^$;$s!#e(B

e$BJQ$JNc$r;}$A=P$9$H!"<B?t$rM-M}?t>e$N%Y%/%H%k6u4V$H;W$&$H!"!VM-M}?t$,%9e(B
e$B%+%i!<$G!"<B?t$,%Y%/%H%k!W$K$J$k!"$H$+!#e(B

e$B0J>e$O?t3X$NOC$G!"e(BRuby e$B$NOC$KLa$9$H!"e(B1.9 e$B$Ne(B complex.rb
e$B$Ke(B scalar? e$B$,Dje(B
e$B5A$5$l$F$$$k$N$G$9$M!#e(Bscalar? e$B$O!“e(Breal?
e$B$”$k$$$O!"e(Breal_number? e$B$H$$$&L>e(B
e$BA0$K$7$?$I$&$G$7$g$&$+$M!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs