PRODUCTS
Products Overview
Mathematica
Mathematica for Students
Mathematica Home Edition
Wolfram
CDF Player
(free download)
Computable Document Format (CDF)
web
Mathematica
grid
Mathematica
Wolfram
Workbench
Mathematica
Add-Ons
Wolfram|Alpha Products
SOLUTIONS
Solutions Overview
Engineering
Aerospace Engineering & Defense
Chemical Engineering
Control Systems
Electrical Engineering
Image Processing
Industrial Engineering
Materials Science
Mechanical Engineering
Operations Research
Optics
Petroleum Engineering
Biotechnology & Medicine
Bioinformatics
Medical Imaging
Finance, Statistics & Business Analysis
Actuarial Sciences
Data Analysis & Mining
Econometrics
Economics
Financial Engineering & Mathematics
Financial Risk Management
Statistics
Software Engineering & Content Delivery
Authoring & Publishing
Interface Development
Software Engineering
Web Development
Science
Astronomy
Biological Sciences
Chemistry
Environmental Sciences
Geosciences
Social & Behavioral Sciences
Design, Arts & Entertainment
Game Design, Special Effects & Generative Art
Education
STEM Education Initiative
Higher Education
Community & Technical College Education
Primary & Secondary Education
Students
Technology
Computable Document Format (CDF)
High-Performance & Parallel Computing (HPC)
See Also: Technology Guide
PURCHASE
Online Store
Other Ways to Buy
Volume & Site Licensing
Contact Sales
Software
Service
Upgrades
Training
Books
SUPPORT
Support Overview
Knowledge Base
Learning Center
Community & Forums
Training & Free Seminars
Does My Site Have a License?
Wolfram User Portal
COMPANY
About Wolfram Research
News & Events
Wolfram Blog
Partnerships
Employment Opportunities
History of
Mathematica
Stephen Wolfram's Home Page
Contact Us
OUR SITES
All Sites
Wolfram|Alpha
Demonstrations Project
MathWorld
Integrator
Wolfram Functions Site
Mathematica Journal
Wolfram Media
Wolfram
Tones
Wolfram Science
Stephen Wolfram
DOCUMENTATION CENTER SEARCH
New to
Mathematica
?
Find your learning path
»
Mathematica
>
Mathematics and Algorithms
>
Matrices and Linear Algebra
>
Constructing Matrices
>
HilbertMatrix
>
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Graph Programming
>
Matrices and Linear Algebra
>
Constructing Matrices
>
HilbertMatrix
>
Mathematica
>
Visualization and Graphics
>
Graphs & Networks
>
Graph Programming
>
Matrices and Linear Algebra
>
Constructing Matrices
>
HilbertMatrix
>
BUILT-IN MATHEMATICA SYMBOL
HankelMatrix
ToeplitzMatrix
Table
Inverse
See Also »
|
Constructing Matrices
Matrices and Linear Algebra
New in 6.0: Matrix & Linear Algebra Functions
More About »
HilbertMatrix
HilbertMatrix
[
n
]
gives the
n
×
n
Hilbert matrix with elements of the form
.
HilbertMatrix
gives the
m
×
n
Hilbert matrix.
MORE INFORMATION
HilbertMatrix
[
n
]
or
HilbertMatrix
gives a matrix with exact rational entries.
HilbertMatrix
[
...
,
WorkingPrecision
->
p
]
gives a matrix with entries of precision
p
.
EXAMPLES
CLOSE ALL
Basic Examples
(2)
3×3 Hilbert matrix:
3×5 Hilbert matrix:
3×3 Hilbert matrix:
In[1]:=
Out[1]//MatrixForm=
3×5 Hilbert matrix:
In[1]:=
Out[1]//MatrixForm=
Scope
(2)
Hilbert matrix with machine-number entries:
Hilbert matrix with 20-digit precision entries:
Options
(1)
A Hilbert matrix with machine-number entries:
A Hilbert matrix with 24-digit precision entries:
Applications
(2)
Find the exact inverse of the 3×3 Hilbert matrix:
Hilbert matrices are often used to compare numerical algorithms:
Compare methods for solving
for known
:
Solve using
:
Solve using
LinearSolve
with Gaussian elimination:
Solve using
LinearSolve
using a Cholesky decomposition:
Solve using
LeastSquares
:
Compare errors:
Properties & Relations
(3)
Square Hilbert matrices are real symmetric:
The smallest eigenvalue of a square Hilbert matrix decreases exponentially with
n
:
The model is a reasonable predictor of magnitude for larger values of
n
:
The condition number increases exponentially with
n
:
The 2-norm condition number is the ratio of largest to smallest eigenvalue due to symmetry:
Neat Examples
(1)
SEE ALSO
HankelMatrix
ToeplitzMatrix
Table
Inverse
MORE ABOUT
Constructing Matrices
Matrices and Linear Algebra
New in 6.0: Matrix & Linear Algebra Functions
New in 6