Project

General

Profile

Actions

Bug #783

closed

mathn した場合の ** の振舞いに一貫性がない

Added by tadf (tadayoshi funaba) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
-

Description

=begin
$ ./ruby -r mathn -e 'p (-8)**(1/3)'
Complex(1.0, 1.73205080756888)

以下も上と同じような結果になるべきだと思います。

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

$ ./ruby -r mathn -e 'p (-8)**(1.0/3)'
NaN
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0