I have a nice polynomial, which is in fact the non-posted answer to this question (I guess it is homework, so I’ll post nothing until the asker shows some brain activity 😀 ):
jj = 1 + 54 #1 + 855 #1^2 + 6300 #1^3 + 37296 #1^4 + 221706 #1^5 +
385782 #1^6 + 1899783 #1^7 - 713709 #1^8 - 8772909 #1^9 +
1718343 #1^10 + 17264169 #1^11 - 3659847 #1^12 - 20026899 #1^13 +
3423276 #1^14 + 13768320 #1^15 - 1610712 #1^16 - 5314050 #1^17 +
881651 #1^18 + 1545093 #1^19 - 151263 #1^20 - 298626 #1^21 -
24552 #1^22 + 21978 #1^23 + 6594 #1^24 + 792 #1^25 +
45 #1^26 + #1^27 &
I want the first root. Just checking:
p[f_] := Plot[f[t], {t, Root[f, 1] - .003, Root[f, 1] + .003}];
p[jj]

Seems steep but good. But look now:
In[394]:= N[jj[Root[jj, 1]]]
Out[394]= -2.9523*10^13
If I ask for some precision:
In[396]:= N[jj[Root[jj, 1]], 1]
During evaluation of In[396]:= N::meprec: Internal precision limit $MaxExtraPrecision = 50.` reached while evaluating 1+<<11>>+<<18>>. >>
Out[396]= 0.*10^-49
So the question is … How different is the precision managing in Mma when you ask for a Plot and when you ask for a numeric result?
The problem is making a distinction between absolute and relative accuracy. Rant below, but first the solution:
According to the docs for
AccuracyGoalandPrecisionGoal, Mathematica will strive to return the resultxwith a numerical error less than10^{-a} + 10^{-p} Abs[x]whereaisAccuracyGoalandpisPrecisionGoal. This causes a problem, if specifying aPrecisionGoalfor a zero result. Solution: only specifyAccuracyGoal.For
Nyou do this by giving aPrecision,Accuracytupple:<rant> The use of the terms “accuracy” and “precision” in Mathematica is very sloppy. They should really be called “absolute accuracy” and “relative accuracy”. See e.g. Wikipedia for a discussion of the correct terminology.</rant>