There is a complicated statement which takes a long time to compute. IS THERE ANY ERROR IN THE ATTACHED PICTURE? If YES, how can I include TimeConstraint of Infinity in the variational method and EulerEquations?

<< VariationalMethods`
EulerEquations[L3 , N[r], r] /. N -> (1 &)

It should be noted that for some calculations after a very long time, it ends up to quit kernel! Why?! is it my computer configuration or Mathematica bug?

  • $\begingroup$ Quitting the kernel almost always indicates running out of memory. If you monitor ram usage while the command is running, you can verify that. $\endgroup$ – Bill Watts Aug 27 at 7:49
  • $\begingroup$ Unless you'r using the Wolfram Cloud, as Bill said, it's not timing out, something is going wrong. Perhaps a memory exhaustion. $\endgroup$ – user6014 Aug 27 at 14:49
  • $\begingroup$ You could try and (locally) reduce the TimeConstraint (i.e., TimeConstraint->{tloc,ttot}, with e.g. tloc = 100 and ttot = 300; play around with different values and see if that helps). Use Block to modify the Options of Simplify. Hopefully it'll spit out a result before you run out of memory. $\endgroup$ – AccidentalFourierTransform Aug 28 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.