=1B$B$`$i$?$G$9!#=1B(B

On 2010/08/11, at 1:08, Yusuke ENDOH wrote:

> 2010=1B$BG/=1B(B8=1B$B7n=1B(B10=1B$BF|=1B(B23:22 Tadayoshi Funaba =
<tadf / dotrb.org>:
>>> =
=1B$B8=3D:_$N=1B(BCMath.cbrt(-8)=1B$B$N7k2L$O=1B(B-2=1B$B$G!"$3$l$O=1B(B3=1B=
$B>h$9$k$H=1B(B-8=1B$B$K$J$k$H$$=1B(B
>>> =
=1B$B$&0UL#$G@5$7$$CM$K;W$($k$N$G$9$,!#=1B(BCmath.cbrt(-8)=1B$B$,JV$9$Y$-=1B=
(B
>>> =1B$B!V@5$7$$!WCM$O$J$s$@$H$*9M$($G$9$+!)=1B(B
>>=20
>> =1B$B@dBPE*$K@5$7$$CM$O$J$$$H;W$$$^$9$,!"$*$*$h$=3D!"=1B(BComplex(-8) =
** (1.0/3) =1B$B$G=1B(B
>> =1B$B$"$k=1B(B (1.0+1.73205080756888i) =1B$B$G$O$J$$$G$7$g$&$+!#=1B(B
>=20
> =1B$B9b9;%l%Y%k$NJ#AG?t$NCN<1$7$+$J$$$N$G!"=1B(BComplex#**(Rational) =
=1B$B$,=1B(B
> n =1B$B>h:,$N$I$l$rJV$9$+$OITDj$@$H;W$C$F$$$^$7$?!#=1B(B
> =1B$B6D3Q$,@5$G:G>.$N$b$N$,!V$*$*$h$=3D@5$7$$!W$s$G$9$+$M!#=1B(B

=1B$B6D3Q$,@5$G:G>.$N$b$N$r<gCM=1B(B (principal value) =1B$B$H8@$$!"=1B(B
=1B$BB?2A4X?t$r0l2A4X?t$H$9$k$?$a$K;HMQ$5$l$^$9!#=1B(B
http://ja.wikipedia.org/wiki/%E4%B8%BB%E5%80%A4

n=1B$B>h:,$N<gCM$O=1B(B1=1B$B$N86;O=1B(Bn=1B$B>h:,$N<B?tG\$K$J$C$F$$$^$9!#=
=1B(B
http://ja.wikipedia.org/wiki/1%E3%81%AE%E5%86%AA%E6%A0%B9

=1B$B$4B8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C$=3D=1B(B CMath =1B$B$H=1B(B Math =
=1B$B$rE}9g$7$F$7$^$&$N$b0l$D$NJ}K!$@$H;W$$$^$9!#=1B(B


> =1B$B>/$J$/$H$b=1B(B Complex#** =
=1B$B$N;EMM$H$7$F7h$^$C$F$$$k$J$i!"$G$-$l$P=1B(B
> rdoc =1B$B$K=3Dq$$$F$*$$$FM_$7$$$G$9!#=1B(B

=1B$B;d$O=1B(B ** =1B$B$N7k2L$O<gCM$K$J$C$F$$$k$[$&$,NI$$$H9M$($^$9!#=1B(B=

=1B$BM}M3$O$$$/$D$+$"$C$F!"=1B(B

(1) 1=1B$B$N86;O=1B(B3=1B$B>h:,$N<B?tG\$H$$$&?t3XE*$KFCJL$G$"$k=1B(B
(2) =1B$B%l%7!<%P$,=1B(B Complex =
=1B$B$J$s$@$+$i!"0lHL$K<B2r$O4|BT$G$-$J$$=1B(B
(3) Mathematica =1B$B$,$=3D$&$J$C$F$$$k=1B(B

=1B$B$J$I$G$9!#$J$*=1B(B Mathematica =1B$B$N5sF0$O=1B(B Wolfram|Alpha =
=1B$B$G8!>Z$G$-$^$9!#=1B(B
http://www.wolframalpha.com/input/?i=3D(-27)^(1/3)


--
Kenta Murata
OpenPGP FP =3D 1D69 ADDE 081C 9CC2 2E54  98C1 CEFE 8AFB 6081 B062

=1B$BK\$r=3Dq$-$^$7$?=1B(B!!
=1B$B!X=1B(BRuby =1B$B5U0z$-%l%7%T!Y=1B(B =
http://www.amazon.co.jp/dp/4798119881/mrkn-22

E-mail: mrkn / mrkn.jp
twitter: http://twitter.com/mrkn/
blog: http://d.hatena.ne.jp/mrkn/