Message Boards Message Boards

0
|
27 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

How to initialize a list of floating point numbers with a precision higher than machine precision?

Posted 5 hours ago

Hi, I have an apparently simple problem but cannot figure out how to solve it: I want to initialize a list of floating point numbers which have more significant digits than MachinePrecision, but unfortunately the result returned by Precision[] is always MachinePrecision. How to force the presence of more significant digits in the result? Using N[] in the initialization does not seem to help.

acoeffs={
0.56418958354775628695,
-0.015625,
0.00067409146187813363572,
-0.00003034259404800769274,
1.378193114316683932*10^-6};
Precision[acoeffs]

Leslaw

POSTED BY: Leslaw Bieniasz

With Precision[acoeffs] you get the precision of the vector. Try

Precision /@ acoeffs
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract