Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.6K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

FindRoot::Istol Error

Posted 10 years ago

Hello Dears

i recently tried to find a root with "FindRoot" in Mathematica. I know that the problem has a solution, but when using FindRoot, this error appears :

FindRoot::lstol: The line search decreased the step size to within tolerance specified by AccuracyGoal and PrecisionGoal but was unable to find a sufficient decrease in the merit function. You may need more than 10000.` digits of working precision to meet these tolerances. >>
t->{0.1139}

however it gives me an answer, but this is not the real accurate one! even though I changed the AccuracyGoal, PrecessionGoal and WorkingPrecession. the answer didn't change. I attached my code here. please help me getting rid of the error. Thanks.

Attachments:
POSTED BY: Amir Arshia

Dear Amir Arshia,

I have plotted the functions given as arguments to FindRoot. It seems that the real solution does not exist as given curves do not intersect, so q1[t] == -q2[t] is not fulfilled.

the plot of q1 and -q2

Plot[{q1[t], -q2[t]} /. lagrangesolveg2, {t, 0, .5}]

If you are sure the solution exists it may mean there is an error somewhere or the interpolation is used improperly. Sometimes the interpolation may distort the funcition supposed to be interpolated. Please notice that the algorithm stops at the point where the minimal distance between curves occurs, so it works fine for sure.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard