<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151566</link>
    <title>MATLAB Central Newsreader - precision of numbers?</title>
    <description>Feed for thread: precision of numbers?</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 09 Aug 2007 20:21:50 -0400</pubDate>
      <title>Re: precision of numbers?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151566#387092</link>
      <author>carlos lopez</author>
      <description>&amp;gt; Is it possible to tell Matlab to use greater precision for its&lt;br&gt;
&amp;gt; computations?&lt;br&gt;
What you need is an expanded _range_ for the representable&lt;br&gt;
numbers, and not _greater precision_. The latter is related&lt;br&gt;
with the machine epsilon (which in turn is related with the&lt;br&gt;
number of bits of the mantissa) while the former is related&lt;br&gt;
to the maximum/minimum expontent &lt;br&gt;
Check the FEX for the Multiple Precision toolbox by Ben&lt;br&gt;
Barrowes; it might be helpful.&lt;br&gt;
Regards&lt;br&gt;
Carlos&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 09 Jul 2007 20:33:57 -0400</pubDate>
      <title>Re: precision of numbers?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151566#381960</link>
      <author> dbsearch04@yahoo.com</author>
      <description>Hello John:&lt;br&gt;
&lt;br&gt;
Thanks for answering this question. I did not think that this was a&lt;br&gt;
frivolous question. It is part of a Fibonacci speed computation&lt;br&gt;
programming problem.&lt;br&gt;
&lt;br&gt;
Since I am new to Matlab, I had no idea what vpa was/is. Subsequently,&lt;br&gt;
I did find an example using vpa. In case anyone else needs this, here&lt;br&gt;
is the code to do what I asked:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; A=[0,1;1,1]&lt;br&gt;
&amp;gt;&amp;gt; vA = vpa(A,30)&lt;br&gt;
&amp;gt;&amp;gt; vA^10000&lt;br&gt;
&lt;br&gt;
ans =&lt;br&gt;
&lt;br&gt;
[ .20793608237133498072112648988638e2090, .&lt;br&gt;
33644764876431783266621612005100e2090]&lt;br&gt;
[ .33644764876431783266621612005100e2090, .&lt;br&gt;
54438373113565281338734260993738e2090]&lt;br&gt;
&lt;br&gt;
Finally, it must be related to precision, since the "fix" is to use&lt;br&gt;
variable precision arithmetic.&lt;br&gt;
&lt;br&gt;
Thanks again.&lt;br&gt;
&lt;br&gt;
Regards..&lt;br&gt;
--------------------------------------------------------------------------------------------&lt;br&gt;
On Jul 4, 5:08 pm, "John D'Errico" &amp;lt;woodch...@rochester.rr.com&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; (This is not a precision question.)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Could you do this, then someone else&lt;br&gt;
&amp;gt; would be asking why they cannot compute&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;   A^10000000000000&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; or some arbitrarily higher power.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If you truly need this, there is&lt;br&gt;
&amp;gt; always the symbolic toolbox, using&lt;br&gt;
&amp;gt; vpa.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; John- Hide quoted text -&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; - Show quoted text -&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 04 Jul 2007 20:08:29 -0400</pubDate>
      <title>Re: precision of numbers?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151566#381099</link>
      <author>John D'Errico</author>
      <description>dbsearch04 wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hello Matlab UG:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I ran the following simple script under V2007a:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; A = [0,1;1,1]&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; A^1000&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; A^10000&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The first computation gives 4 numbers (time e+208) as expected.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; The second computation gives 4 values of 'Inf'!?!&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Is it possible to tell Matlab to use greater precision for its&lt;br&gt;
&amp;gt; computations?&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; TIA.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Regards..&lt;br&gt;
&lt;br&gt;
(This is not a precision question.)&lt;br&gt;
&lt;br&gt;
Could you do this, then someone else&lt;br&gt;
would be asking why they cannot compute&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;A^10000000000000&lt;br&gt;
&lt;br&gt;
or some arbitrarily higher power.&lt;br&gt;
&lt;br&gt;
If you truly need this, there is&lt;br&gt;
always the symbolic toolbox, using&lt;br&gt;
vpa.&lt;br&gt;
&lt;br&gt;
John&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 04 Jul 2007 16:45:20 -0400</pubDate>
      <title>precision of numbers?</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/151566#381096</link>
      <author> dbsearch04@yahoo.com</author>
      <description>Hello Matlab UG:&lt;br&gt;
&lt;br&gt;
I ran the following simple script under V2007a:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; A = [0,1;1,1]&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; A^1000&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; A^10000&lt;br&gt;
&lt;br&gt;
The first computation gives 4 numbers (time e+208) as expected.&lt;br&gt;
&lt;br&gt;
The second computation gives 4 values of 'Inf'!?!&lt;br&gt;
&lt;br&gt;
Is it possible to tell Matlab to use greater precision for its&lt;br&gt;
computations?&lt;br&gt;
&lt;br&gt;
TIA.&lt;br&gt;
&lt;br&gt;
Regards..&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
