I wrote this code with the target of tracing the motion of a particle using ParametricPlot: The code for NDSolve

Values of the variables mentioned in the equations

I have tried solving the equations on paper as well, but I do not understand where the Error is coming from. All the values are numerical, there are no non-numerical values. Kindly help me figure this out. Please pardon me for providing pics of the code as I couldn't copy them using LaTex. Thanks

  • 1
    $\begingroup$ Please, do not post images, but the code. I suggst you follow the tour or read the help to edit your question including codes... $\endgroup$ – José Antonio Díaz Navas Nov 13 '17 at 10:40
  • $\begingroup$ My apologies. I'll update the question in 5 hours. $\endgroup$ – Shivam Kaushik Nov 13 '17 at 11:10
  • $\begingroup$ See what Simplify[{eq1,eq2,eq3}/.t->0,{xin,yin,zin,xdin,ydin,zdin}] looks like (i.e. apply the initial conditions, and check to see if that gives equations for the second derivatives that are entirely numerical). I'd guess it is related to the Sum terms. $\endgroup$ – SPPearce Nov 13 '17 at 11:57
  • $\begingroup$ Also why are you specifying Shooting as the NDSolve method here? You shouldn't need to. $\endgroup$ – SPPearce Nov 13 '17 at 11:58
  • $\begingroup$ I was trying to follow some suggestions on related questions which is why I added that even though it does not rectify the error.... I will remove that $\endgroup$ – Shivam Kaushik Nov 13 '17 at 12:17

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.