replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Quad(ruple precision; REAL*16) support
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Quad(ruple precision; REAL*16) support

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Wolfgang Hoeppner



Joined: 05 Dec 2006
Posts: 8
Location: Sibiu / Romania

PostPosted: Sat Jul 27, 2013 5:13 pm    Post subject: Quad(ruple precision; REAL*16) support Reply with quote

Will there be, in one of the next releases of FTN95, a support of quadruple precision arithmetic, at least for fundamental arithmetics (+ - * /), but preferably also for SQRT, SIN, COS, &c.?

Best wishes

Wolfgang.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Sat Jul 27, 2013 8:35 pm    Post subject: Reply with quote

At the moment there are no plans to support REAL*16 arithmetic.
One approach might be to use the GMP (GNU) library. It would be helpful to know if anyone has experience of accessing this library from Fortran.
Back to top
View user's profile Send private message AIM Address
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 8210
Location: Salford, UK

PostPosted: Sun Jul 28, 2013 8:56 am    Post subject: Reply with quote

As a quick test I have added the following PRINT statement to a working 64 bit ClearWin+/gFortran program...

print*,sqrt(2.0_16)

and the output is

Code:
1.41421356237309504880168872420969798E+0000


so it looks like you could work with 64 bit gFortran and ClearWin+.

p.s. It think that this value is correct up to 32 decimal places.
Back to top
View user's profile Send private message AIM Address
DanRRight



Joined: 10 Mar 2008
Posts: 2923
Location: South Pole, Antarctica

PostPosted: Mon Jul 29, 2013 6:02 pm    Post subject: Reply with quote

What order of exponents real*16 allows?
Back to top
View user's profile Send private message
davidb



Joined: 17 Jul 2009
Posts: 560
Location: UK

PostPosted: Mon Jul 29, 2013 8:35 pm    Post subject: Reply with quote

Approximately 1.0E-4932 to 1.0E4932.
_________________
Programmer in: Fortran 77/95/2003/2008, C, C++ (& OpenMP), java, Python, Perl
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group