comp.soft-sys.matlab
[Top] [All Lists]

Re: More precision

Subject: Re: More precision
From: JM
Date: Fri, 30 Sep 2005 12:42:55 -0400
Newsgroups: comp.soft-sys.matlab
KB wrote:
>
>
> Hi Manuel,
>
>> I must calculate this number: 10^7816230
>
> No need to calculate :) ... 10^7816230 is simply a 1 followed by
> 7816230 zeros, unless you wanted to see all the 0's in a row.
>
> Or, do you want to make any further computation with other numbers?
>
> Cheers.
>
> KB
>
> Manuel wrote:
>>
>>
>> Hi to all,
>> I must calculate this number: 10^7816230
>> It's impossible at floating point precision,
>> how I can have a largest precision?
>>
>> Regards
>>
Greetings,

The MATLAB toolbox for Symbolic Computation also includes variable
precision arithmetic. It is pretty slick. For example:

>> vpa(pi,50)
ans =
3.1415926535897932384626433832795028841971693993751

This may help with your task, whatever it is.

-JM

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy