diff options
author | Peter Zhu <[email protected]> | 2022-04-13 13:30:31 -0400 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-04-18 10:29:25 +0900 |
commit | c69bdcf80c1711dc3bff0037333393c844186a57 (patch) | |
tree | c15d5752d0020d4e961ac7b1db2ecbe1318dc774 /ext/bigdecimal | |
parent | 92361ad9c68d82fe7de554999b2f9de8be5821bb (diff) |
[ruby/bigdecimal] Fix docs
rdoc parses f[i] as a link, which results in a broken link.
https://github.com/ruby/bigdecimal/commit/a18522e9ca
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r-- | ext/bigdecimal/lib/bigdecimal/jacobian.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/jacobian.rb b/ext/bigdecimal/lib/bigdecimal/jacobian.rb index 5e29304299..4448024c74 100644 --- a/ext/bigdecimal/lib/bigdecimal/jacobian.rb +++ b/ext/bigdecimal/lib/bigdecimal/jacobian.rb @@ -42,8 +42,8 @@ module Jacobian end - # Computes the derivative of f[i] at x[i]. - # fx is the value of f at x. + # Computes the derivative of +f[i]+ at +x[i]+. + # +fx+ is the value of +f+ at +x+. def dfdxi(f,fx,x,i) nRetry = 0 n = x.size @@ -75,7 +75,7 @@ module Jacobian deriv end - # Computes the Jacobian of f at x. fx is the value of f at x. + # Computes the Jacobian of +f+ at +x+. +fx+ is the value of +f+ at +x+. def jacobian(f,fx,x) n = x.size dfdx = Array.new(n*n) |