Project

General

Profile

Actions

Bug #913

closed

mathn した場合、sqrt(NaN) が複素数になる

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

Status:
Closed
Priority:
Normal
ruby -v:
Backport:

Description

=begin
main@191-20081221> nan = 0.0/0
#=> NaN
main@191-20081221> Math.sqrt(nan)
#=> NaN
main@191-20081221> require 'mathn'
#=> true
main@191-20081221> Math.sqrt(nan)
#=> (0+NaN*i)
=end

Actions

Also available in: Atom PDF