Re: arbitrary precision in IDL? [message #71861] |
Tue, 27 July 2010 10:05  |
wlandsman
Messages: 743 Registered: June 2000
|
Senior Member |
|
|
On Jul 27, 12:10 pm, "fututre.keyboard" <future.keybo...@gmail.com>
wrote:
> hi, all
>
> I am wondering if there is a way to do arbitrary precision calculation
> with IDL.
I haven't tried them but type in "arbitary precision" into the ITTVIS
code contribution library
( http://www.ittvis.com/UserCommunity/CodeLibrary.aspx ) to find two
DLMs written by Ron Kneusel, one for integer arithmetic and one for
floating point. (I still haven't figure out how to direct link to
a particular code contribution...) --Wayne
|
|
|
Re: arbitrary precision in IDL? [message #71932 is a reply to message #71861] |
Wed, 28 July 2010 13:45  |
fututre.keyboard
Messages: 10 Registered: September 2009
|
Junior Member |
|
|
Thanks for the link. It is very helpful. I was able to rebuild the dlm
on windows 7 with vc 6. And it's working! The only catch is that I
have to use 32bit IDL. I guess I can live with it for now. Thanks Ron
for contributing such wonderful code and I hope there will be a more
up-to-date version that supports 64bit platforms.
cheers,
fkey
IDL32> print, mp_convert(mp_const_pi(),/full_precision)
3.1415926535897932384626433832795028841971693993751058209749 4459230781640628620899862803482534211706807E0
IDL32> print, mp_convert(mp_new(mp_convert(mp_const_pi(),type=5,/
full_precision),precision=p),/full_precision)
3.1415926535897931159979634685441851615905761718750000000000 0000000000000000000000000000000000000000000E0
On Jul 27, 10:05 am, wlandsman <wlands...@gmail.com> wrote:
> On Jul 27, 12:10 pm, "fututre.keyboard" <future.keybo...@gmail.com>
> wrote:
>
>> hi, all
>
>> I am wondering if there is a way to do arbitrary precision calculation
>> with IDL.
>
> I haven't tried them but type in "arbitary precision" into the ITTVIS
> code contribution library
> (http://www.ittvis.com/UserCommunity/CodeLibrary.aspx) to find two
> DLMs written by Ron Kneusel, one for integer arithmetic and one for
> floating point. (I still haven't figure out how to direct link to
> a particular code contribution...) --Wayne
|
|
|