Re: A newbie question

ayagnam_at_gmail.com
Date: 01/28/05


Date: 28 Jan 2005 01:17:20 -0800

OOOOooooppppsss.... sorry for the empty post...

well here's something i have been using and have found it to be really
useful - i use f90 (intel as well as sun compilers) - anyways

when dealing with exponential representation of real (any precision)
numbers i prefer to use two things

1. i always use 'd' instead of 'e'
2. and every number is followed by '.'

ex 2.3d-3 or 2.d4 etc

and back to discussion...

try this
real::pre1
real*8::pre2
real*16::pre3

pre1=1.d-8*1.d16/2.d0 + 4.d3 +1.d0 -SQRT(2.d0)
pre2=1.d-8*1.d16/2.d0 + 4.d3 +1.d0 -SQRT(2.d0)
pre3=1.d-8*1.d16/2.d0 + 4.d3 +1.d0 -SQRT(2.d0)

compile it and run the code on any compiler... you would be surprised
by the efficiency of this way of representing real numbers... at least
for me i want to believe i am smarter than the compiler...