From: usa@... Date: 2014-07-02T07:20:49+00:00 Subject: [ruby-core:63500] [ruby-trunk - Bug #9797] Math::log - missing domain error check Issue #9797 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN to 2.0.0: WONTFIX, 2.1: UNKNOWN ---------------------------------------- Bug #9797: Math::log - missing domain error check https://bugs.ruby-lang.org/issues/9797#change-47548 * Author: cremno phobia * Status: Closed * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: ruby 2.2.0dev (2014-05-03) [x64-mswin64_120] * Backport: 2.0.0: WONTFIX, 2.1: UNKNOWN ---------------------------------------- `Math::log` with a negative `base` should raise a `Math::DomainError`. ~~~ruby Math.log(-1.0) # raises Math::DomainError Math.log( 1.0, -1.0) # doesn't (but calls `log(-1.0)` internally!) ~~~ -- https://bugs.ruby-lang.org/