Project

General

Profile

Actions

Bug #913

closed

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

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

Status:
Closed
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

Like0
Like0Like0Like0Like0Like0Like0Like0