mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/mathn.rb: Math.sqrt(NaN) should be NaN. [ruby-dev:37537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20938 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									1bd7257dc8
								
							
						
					
					
						commit
						99825ae914
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Tue Dec 23 15:46:43 2008  Yuki Sonoda (Yugui)  <yugui@yugui.jp>
 | 
			
		||||
 | 
			
		||||
	* lib/mathn.rb: Math.sqrt(NaN) should be NaN. [ruby-dev:37537]
 | 
			
		||||
 | 
			
		||||
Tue Dec 23 15:46:47 2008  Eric Hodel  <drbrain@segment7.net>
 | 
			
		||||
	* gem_prelude.rb:  Match full RubyGems behavior when a gem can't be
 | 
			
		||||
	  found.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -134,6 +134,8 @@ module Math
 | 
			
		|||
      else
 | 
			
		||||
	Complex(x, -y)
 | 
			
		||||
      end
 | 
			
		||||
    elsif a.respond_to?(:nan?) and a.nan?
 | 
			
		||||
      a
 | 
			
		||||
    elsif a >= 0
 | 
			
		||||
      rsqrt(a)
 | 
			
		||||
    else
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue