1
00:00:00,450 --> 00:00:04,500
So why come back to this numerical lecture in the previous lectures?

2
00:00:05,010 --> 00:00:11,850
I wanted to show you that you can really solve the stationary shooting equation for some examples.

3
00:00:12,600 --> 00:00:18,960
And what we have used is the so-called shooting method, and you have seen that it's actually quite

4
00:00:18,960 --> 00:00:28,650
delicate and quite unstable because we always had to find the perfect art, some some some good value

5
00:00:28,650 --> 00:00:33,760
for our propagation border that we called a.

6
00:00:34,260 --> 00:00:41,250
So if a was too large, then this exponential behavior of a whole wave function became a real problem

7
00:00:41,250 --> 00:00:43,350
so that the solution exploded.

8
00:00:43,920 --> 00:00:51,490
And this was basically because we have used a very simple approach for calculating derivatives.

9
00:00:51,540 --> 00:00:57,990
We have just used the old value, plus some delta of the wave function, for example.

10
00:00:58,680 --> 00:01:02,440
And of course, they are much, much better ways to do this.

11
00:01:02,460 --> 00:01:08,970
For example, you can use a whole McWhirter algorithm to propagate the wave function.

12
00:01:09,600 --> 00:01:15,660
If you would do this, the whole shooting method would work much better, and you wouldn't have to be

13
00:01:15,660 --> 00:01:18,450
so careful about the choice of eight.

14
00:01:19,020 --> 00:01:23,790
So this is something that you can do on your own if you want just Google, only Qatar.

15
00:01:24,390 --> 00:01:26,760
But also, here's something that I want to show you.

16
00:01:27,240 --> 00:01:29,620
So in case you have access to Mathematica.

17
00:01:29,970 --> 00:01:32,670
But it has to be version ten point two or higher.

18
00:01:33,180 --> 00:01:41,970
You can use the command called and the EIGEN system so he can see all the commands that are needed to

19
00:01:42,000 --> 00:01:46,500
calculate the EIGEN system of the harmonic oscillator, as we have done previously.

20
00:01:47,340 --> 00:01:54,900
So we again define some value h just our Planck constant bar.

21
00:01:55,890 --> 00:01:59,580
We defined the potential which is basically x squared times a prefecture.

22
00:02:00,030 --> 00:02:04,260
And this is our our tweeting equation.

23
00:02:04,980 --> 00:02:10,539
And then we just solve the eigen spectrum of this Hamiltonian.

24
00:02:10,560 --> 00:02:13,410
So actually, we don't really have the shooting equation.

25
00:02:13,410 --> 00:02:14,880
We only have the Hamiltonian.

26
00:02:15,300 --> 00:02:20,430
And then there is there, there's a command and the eigen system that just determines the eigenvalues

27
00:02:20,880 --> 00:02:23,160
and diegan functions of this Hamiltonian.

28
00:02:23,880 --> 00:02:30,180
So of course, when you used his methods, you don't really learn anything about the methods.

29
00:02:30,390 --> 00:02:37,290
So you don't know how the computer solves this problem, but you get to solutions very, very fast.

30
00:02:37,830 --> 00:02:43,080
And as you can see, the ion energies are again 0.5, 1.5 and so on.

31
00:02:43,410 --> 00:02:46,350
So it just increments of one as we have previously.

32
00:02:47,160 --> 00:02:53,700
And you can also see here we can plot these wave functions on top of the eigenvalues.

33
00:02:54,210 --> 00:02:58,020
So this is a much simpler and much faster way to solve such problems.

34
00:02:58,500 --> 00:03:05,340
But of course, I think it was worth the effort to show you that you can also do it by yourself and

35
00:03:05,340 --> 00:03:14,370
Python using really basic concepts like using the most easy method for Celtic calculating the derivative.

36
00:03:15,180 --> 00:03:21,600
So as I told you, this is not really very, not really stable, and you have to be very careful with

37
00:03:21,600 --> 00:03:23,010
the choice of some parameters.

38
00:03:23,010 --> 00:03:27,810
But the purpose of this lecture was just to show you that it's still possible.

39
00:03:29,040 --> 00:03:36,180
Now, when you want to become more professional, you have to find more elaborate algorithms or you

40
00:03:36,180 --> 00:03:37,680
could use tools like this.

