Message Boards Message Boards

How to eliminate the error FindRoot::lstol?

Posted 6 months ago

The following notebook, aka, FixMQM2eFig2p5.nb is created by Jim Napolitano tuf43817@temple.edu for his Modern Quantum Mechanics (3rd edition).

When I try to run it, I meet the FindRoot::lstol message as shown below, and I want to know how to eliminate it.

Regards, Zhao

POSTED BY: Hongyi Zhao
2 Replies
Posted 6 months ago

Nice, it does the trick.

POSTED BY: Hongyi Zhao

Try:

  v = x^2 + x^4;
  pfun = ParametricNDSolveValue[{-u''[x] + v u[x] == \[Epsilon] u[x], 
      u[0] == 1, u'[0] == 0}, u, {x, -10, 10}, {\[Epsilon]}];
   \[Epsilon]Val1 = \[Epsilon] /. FindRoot[pfun[\[Epsilon]][9], {\[Epsilon], 40}, 
     Method -> "AffineCovariantNewton"]

 (*40.6904*)
POSTED BY: Mariusz Iwaniuk
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract