Re: A newbie question
ayagnam_at_gmail.com
Date: 01/28/05
- Next message: David Ham: "Re: A newbie question"
- Previous message: ayagnam_at_gmail.com: "Re: A newbie question"
- In reply to: ayagnam_at_gmail.com: "Re: A newbie question"
- Next in thread: Richard E Maine: "Re: A newbie question"
- Reply: Richard E Maine: "Re: A newbie question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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...
- Next message: David Ham: "Re: A newbie question"
- Previous message: ayagnam_at_gmail.com: "Re: A newbie question"
- In reply to: ayagnam_at_gmail.com: "Re: A newbie question"
- Next in thread: Richard E Maine: "Re: A newbie question"
- Reply: Richard E Maine: "Re: A newbie question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]