How can I set the output precision of the following statement to 10 decimal places? I was looking through the documentation, and for some reason, all I could find was Accuracy[]
or Precision[]
.
f[x_] := E^Cos[x]
NIntegrate[f[x], {x, 0, 2*Pi}]
Which, by default, evaluates to:
7.95493
Thank you for your time.
N
, guides to numerical precision, presentation of numbers usingNumberForm
. Please at least make some effort with the documentation. $\endgroup$Accuracy[]
orPrecision[]
but nothing like what Artes mentioned. $\endgroup$Precision
links to the tutorial I mentioned and to the guide page that mentionsPrecisionGoal
andAccuracyGoal
. It was all one click away. $\endgroup$Precision
links only indirectly through the tutorials toNumberForm
. The direct links are onlyAccuracy
,RealExponent
,N
,Chop
,SetPrecision
,MachineNumberQ
,MachinePrecision
,PrecisionGoal
,WorkingPrecision
,ExactNumberQ
,NumberMarks
. IMO, it'a a lot to go trawling through when looking for this answer. $\endgroup$