mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/bigdecimal/lib/bigdecimal/jacobian.rb: Document isEqual. Patch
by Kuba Fietkiewicz. [Ruby 1.9 - Bug #4744] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c38c0537e0
commit
18d29d79a2
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat May 21 02:44:10 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
|
* ext/bigdecimal/lib/bigdecimal/jacobian.rb: Document isEqual. Patch
|
||||||
|
by Kuba Fietkiewicz. [Ruby 1.9 - Bug #4744]
|
||||||
|
|
||||||
Sat May 21 02:22:34 2011 Eric Hodel <drbrain@segment7.net>
|
Sat May 21 02:22:34 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* ext/date/lib/date/format.rb: Document date formats. Patch by
|
* ext/date/lib/date/format.rb: Document date formats. Patch by
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
module Jacobian
|
module Jacobian
|
||||||
module_function
|
module_function
|
||||||
|
|
||||||
#--
|
# Determines the equality of two numbers by comparing to zero, or using the epsilon value
|
||||||
def isEqual(a,b,zero=0.0,e=1.0e-8)
|
def isEqual(a,b,zero=0.0,e=1.0e-8)
|
||||||
aa = a.abs
|
aa = a.abs
|
||||||
bb = b.abs
|
bb = b.abs
|
||||||
|
@ -37,7 +37,7 @@ module Jacobian
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
#++
|
|
||||||
|
|
||||||
# Computes the derivative of f[i] at x[i].
|
# Computes the derivative of f[i] at x[i].
|
||||||
# fx is the value of f at x.
|
# fx is the value of f at x.
|
||||||
|
|
Loading…
Add table
Reference in a new issue