I cant find anything in the docs about how to fix this, but I know the problem is able to be solved. NDSolve is not currently able to solve boundary value problems with However in general 'fzero' can prove useful in solving problems where the function is defined piecewise, provided it is continuous. Of course this problem is so simple you can do it in your head, namely, a single solution at x 1/2. Here is what I have for part I the harmonic Potential: (*Constants*)į'' = (((ν + 1/2) hbar*ω) - Vhar) f,į = 0, f' = 0.1}, f, ] Answers (1) Roger Stafford on 2 Link Instead of using 'solve' you can use 'fzero' for this problem. Give an Example of a Piecewise Linear Function. Substitute the given input in the function from the last step. Then inspecting it visually to make sure it looks right. To solve the value of a piecewise function at a specific input: Just see which of the given intervals that input lies in. We are just taking a guess at the energy and using NDsolve to get a solution to the problem. The piecewise function range are also all the values greater than 0. I am working on an assignment from my Quantum Mechanics professor, where we attempt to glean the form of the wave functions for the first two eigenstates of a single electron in a potential. The piecewise function domain is all values greater than 0 because, in context, negative hours do not exist. I know what I need to do I just do not know how to get mathematica to do it. I want to clarify upfront, This is not a please help me get the answer to my homework question. Backslide introduced in 9.0, persisting through 11.0.1
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |