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. – Verbeia Mar 28 '12 at 03:56Accuracy[]orPrecision[]but nothing like what Artes mentioned. – Oliver Spryn Mar 28 '12 at 03:58Precisionlinks to the tutorial I mentioned and to the guide page that mentionsPrecisionGoalandAccuracyGoal. It was all one click away. – Verbeia Mar 28 '12 at 04:04Precisionlinks 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. – Reb.Cabin Mar 31 '12 at 00:07