| MATLAB Function Reference | ![]() |
Syntax
H = invhilb(n)
Description
H = invhilb(n)
當 n 小於 15 時,回傳 Hilbert 矩陣的反矩陣。當 n 大於 15 時,invhilb(n) 回傳一個相近的反矩陣。
Limitations
Hilbert 矩陣的反矩陣元素是大整數。當 n 小於 15 時,這些整數可能是以浮點數型態表示。
比較 invhilb(n) 與 inv(hilb(n)) 的回傳值,可能有以下兩個或三個因素造成的些微誤差:
當以浮點數來表示像 1/3、1/5 這樣的分數時,就有可能造成上述第一種誤差。
Examples
16 -120 240 -140
-120 1200 -2700 1680
240 -2700 6480 -4200
-140 1680 -4200 2800
See Also
References
[1] Forsythe, G. E. and C. B. Moler, Computer Solution of Linear Algebraic Systems, Prentice-Hall, 1967, Chapter 19.
| inv | ipermute | ![]() |