# \[Bug #783\] mathn $B$7$?\>l9g$N(B \*\* $B$N?6Iq$$$K0l4S@-$,$J$$(B

**URL:** <https://www.ruby-forum.com/t/bug-783-mathn-b-7-l9g-n-b-b-n-6iq-k0l4s-j-b/153998>\
**Category:** Development\
**Created:** [November 24, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/bug-783-mathn-b-7-l9g-n-b-b-n-6iq-k0l4s-j-b/153998 "2008-11-24T13:27:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tadayoshi\_funaba](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/f0a364/32.png) [@tadayoshi\_funaba](https://www.ruby-forum.com/u/tadayoshi_funaba)\
**Post date:** [November 24, 2008, 1:27pm UTC](https://www.ruby-forum.com/t/bug-783-mathn-b-7-l9g-n-b-b-n-6iq-k0l4s-j-b/153998/1 "2008-11-24T13:27:35Z")

</div>

Bug #783: mathn e$B$7$?\>l9g$Ne(B \*\* e$B$N?6Iq$$$K0l4S@-$,$J$$e(B  
[http://redmine.ruby-lang.org/issues/show/783](http://redmine.ruby-lang.org/issues/show/783)

e$B5/I\<\<Te(B: tadayoshi funaba  
e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal

$ ./ruby -r mathn -e ‘p (-8)\*\*(1/3)’  
Complex(1.0, 1.73205080756888)

e$B0J2\<$b\>e$HF1$8$h$&$J7k2L$K$J$k$Y$-$@$H;W$$$^$9!#e(B

$ ./ruby -r mathn -e ‘p (-8.0)\*\*(1/3)’  
NaN

$ ./ruby -r mathn -e ‘p (-8)\*\*(1.0/3)’  
NaN
