Bug #783

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

Added by tadf (tadayoshi funaba) over 3 years ago. Updated about 1 year ago.

Status:Closed Start date:11/24/2008
Priority:Normal Due date:
Assignee:keiju (Keiju Ishitsuka) % Done:

0%

Category:lib
Target version:Ruby 1.8.8
ruby -v:-

Description

$ ./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

History

Updated by shyouhei (Shyouhei Urabe) over 3 years ago

  • Assignee set to keiju (Keiju Ishitsuka)

Updated by marcandre (Marc-Andre Lafortune) over 2 years ago

  • Category set to lib
  • Status changed from Open to Closed
  • Target version set to Ruby 1.8.8
  • ruby -v set to -
Fixed in r25068.

Also available in: Atom PDF