General

Profile

GSnyder (Garth Snyder)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

06/20/2013

04:34 PM Ruby Bug #8542: BigMath::exp modifies its first argument
In the original report, I stated that the answer was wrong; that is incorrect. It's wrong (in the current trunk) if the first argument is a negative, immediate type, but BigDecimal arguments give correct answers. They just become modifie... GSnyder (Garth Snyder)

06/19/2013

08:55 AM Ruby Bug #8542: BigMath::exp modifies its first argument
It appears that the iteration loop in BigMath_s_exp is just calculating the series expansion (X ** N) / N! from N = 0 until the incremental term vanishes below the precision threshold. I don't see any reason this would not be equally val... GSnyder (Garth Snyder)
08:27 AM Ruby Bug #8542 (Closed): BigMath::exp modifies its first argument
=begin
I noticed this when creating the patch at https://github.com/ruby/ruby/pull/332. I believe it affects everything from ruby 1.8 up.
BigMath::exp is implemented for negative numbers according to the identity E ** -x == 1 / (E **...
GSnyder (Garth Snyder)

Also available in: Atom