![]() |
|
|
#1 |
|
"Mihai Preda"
Apr 2015
3·457 Posts |
I have a very special matrix, square n*n, where the lines 0..(n-1) are:
line(i)={1/(i+1), 1/(i+2), ... , 1/(i+n)} for example, for n==2: Code:
1 1/2 1/2 1/3 Code:
1 1/2 1/3 1/2 1/3 1/4 1/3 1/4 1/5 (I would also be interested in *how* to solve the question (not only in the answer), if it's not too complicated) Thank you! Last fiddled with by preda on 2020-11-10 at 22:22 |
|
|
|
|
|
#2 |
|
"Mihai Preda"
Apr 2015
3×457 Posts |
The above matrix originated from attempting to do a least-squares polynomial fit to a function evaluated over a (large) set of equidistant points. (the order of the matrix corresponds to the degree of the polynomial.)
|
|
|
|
|
|
#3 |
|
Jul 2003
wear a mask
110011110012 Posts |
Have you heard about Hilbert matrices?
|
|
|
|
|
|
#4 | |
|
"Mihai Preda"
Apr 2015
25338 Posts |
Quote:
|
|
|
|
|
|
|
#5 |
|
Jul 2003
wear a mask
1,657 Posts |
As the wiki article states, those matrices are useful for testing linear algebra solvers; that's how I first learned about them.
|
|
|
|
|
|
#6 |
|
"Mihai Preda"
Apr 2015
55B16 Posts |
In pari/gp:
Code:
1 / mathilbert(n) Last fiddled with by preda on 2020-11-11 at 00:07 |
|
|
|
|
|
#7 |
|
Feb 2017
Nowhere
122316 Posts |
Hilbert matrices are notorious for being "numerically bad." It is however ridiculously easy to prove they're "positive definite," hence invertible.
If n is a positive integer, f = f(x) is a polynomial of degree n-1, f = a0 + a1*x + .... + an-1xn-1, we can write [f] as the product of a 1xn and an nx1 matrix (Pari-GP notation), [f] = [a0, a1, ..., an-1]*[1;x;...;xn-1]. Taking the transpose, [f] = [1,x,...,xn-1]*[a0; a1; ...; an-1] Multiplying, [f2] = [a0, a1, ..., an-1]*[1;x;...;xn-1]*[1,x,...,xn-1]*[a0; a1; ...; an-1] Multiplying the middle two matrices gives the nxn matrix whose i, j entry is xi+j-2. Now, integrate from 0 to 1, and we find: The (1x1 matrix whose entry is) the integral from 0 to 1 of f2(x) dx may thus be expressed [a0, a1, ..., an-1]*Hn*[a0; a1; ...; an-1]. The integral is positive unless f is identically zero, so Hn is positive-definite. All you need, then, is a set of polynomials of degree 0, 1, 2, ..., n-1 which are orthogonal WRT integration from 0 to 1, (starting, obviously, with the constant polynomial 1). The "standard" set is the "shifted" Legendre polynomials. (The usual Legendre polynomials are orthogonal WRT integration from -1 to 1.)
Last fiddled with by Dr Sardonicus on 2020-11-11 at 03:28 Reason: gixnif ostpy |
|
|
|
|
|
#8 | |
|
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2
36·13 Posts |
I want to muck with forum's tex software. (by posting straight from Wiki.)
Quote:
|
|
|
|
|
|
|
#9 | |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
11000001101002 Posts |
Quote:
This is tex: At least I can see the tex, although binom isn't defined.
Last fiddled with by retina on 2020-11-11 at 06:32 |
|
|
|
|
|
|
#10 |
|
Dec 2012
The Netherlands
2·23·37 Posts |
Use {n \choose r}.
Last fiddled with by Nick on 2020-11-11 at 07:08 Reason: Typo |
|
|
|
|
|
#11 |
|
Undefined
"The unspeakable one"
Jun 2006
My evil lair
22×1,549 Posts |
|
|
|
|
![]() |
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inverse of Smoothness Probability | paul0 | Math | 6 | 2017-07-25 16:41 |
| mi64: inverse does not exist | wreck | NFS@Home | 1 | 2016-05-08 15:44 |
| Lurid Obsession with Mod Inverse | only_human | Miscellaneous Math | 26 | 2012-08-10 02:47 |
| Inverse of functions | Raman | Math | 5 | 2011-04-13 23:29 |
| Inverse Laplace Transform | flouran | Math | 1 | 2010-01-18 23:48 |