Solving second order ODE eigenvalue problem using RK4

조회 수: 12 (최근 30일)
Alexander Kimbley
Alexander Kimbley 2021년 4월 16일
답변: RAKESH KUMAR 2021년 9월 20일
Hi, I'm trying to solve the following ODE using RK4:
y''+(lambda-x^2) y = 0 on [-L,L], subject to y(-L)=y(L)=0 (taking L=5 is fine).
I know the solution is lambda=2n+1, n some positive integer (some residual is fine), with y=exp(-x^2/2) (which obviously is very small at L=\pm 5)
I'm terribley bad at coding and I don't think my code will be any use, so I havent included it.
Please help. Thanks in advance.
  댓글 수: 1
Jan
Jan 2021년 4월 16일
You forgot to ask a question. How can we help you?
Of course your code would be useful, because if you show it, we can help you to fix the problems in it.

댓글을 달려면 로그인하십시오.

답변 (1개)

RAKESH KUMAR
RAKESH KUMAR 2021년 9월 20일
i think you should look at this web-link: https://www.cs.ox.ac.uk/pseudospectra/eigtool/
Eigtool

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by