From: Yusuke ENDOH Date: 2009-11-01T14:13:53+09:00 Subject: [ruby-core:26466] Re: [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error Hi, 2009/11/1 Marc-Andre Lafortune : > A mechanism could be implemented with a thread local option, say Math.raise_on_pole = true/false, or even hook, say for example: > Math.on_pole=lambda{|object, operator, arguments, result| ... } How about Math.log_with_pole_check()? > Quote from SUSv3: A "pole error" occurs if the mathematical result of the function is an exact infinity (for example, log(0.0)). > Since it is possible to return this "exact mathematical result", I strongly believe that Ruby should return the right Infinity. +1 Just my 2 cents, -- Yusuke ENDOH