0

Denote by $h_n$ the $n$-th Hermite function. $$ h_n(x) = \frac{(-1)^n }{\sqrt{2^n n! \sqrt{\pi}}} \mathrm{e}^{\frac{x^2}{2}} \frac{\mathrm{d}^n}{\mathrm{d} x^n} \mathrm{e}^{-x^2} $$

I am trying to find the 40th, 41st and 42nd terms in Gram-Schmidt process with Hermite functions $h_n$ on $[-1, 1]$.

I've used the usual procedure for Gram-Schmidt process, but I've been able to calulate only the first 6 terms and then my computer got stuck.

Is there some way to calculate them?

rm -rf
  • 88,781
  • 21
  • 293
  • 472
Mack
  • 19
  • 2

1 Answers1

3

Based on the Wikipedia article you referred, here is a code

u[1] = HermiteH[1, x];
Do[
  u[n] = HermiteH[n, x] - Sum[Integrate[HermiteH[n, x] u[i], 
  {x, -1.0, 1.0}], {i, 1,n-1}], {n, 2, 45}
]; 
Sjoerd C. de Vries
  • 65,815
  • 14
  • 188
  • 323
Sumit
  • 15,912
  • 2
  • 31
  • 73