![]() #Solve piecewise functions how to#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. The type of equations that one can solve include all first-order methods using. Of course this problem is so simple you can do it in your head, namely, a single solution at x 1/2. We can solve differential equations with piecewise functions in the coefficients. In particular, the second equation is purely a function of pt. 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. Then inspecting it visually to make sure it looks right. We are just taking a guess at the energy and using NDsolve to get a solution to the problem. 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. Do Now: Evaluate the following using the given piecewise function. I know what I need to do I just do not know how to get mathematica to do it. Aim 41: How can we use piecewise functions to solve word problems Homework: Handout. 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 |