Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: glen herrmannsfeldt
Date: May 25, 2007 06:36
Michel Olagnon wrote: Jorge Lopez wrote: Is there any intrinsinc funcion to compute the norm, or a different way to get it using double precision? For 2-D, a simple trick is Abs (Cmplx ( x(1), x(2), Kind(0.0d0))) That should avoid the overflow problem for larger x(1) and x(2), also. It should implement something similar to: a=max(x(1),x(2)) b=min(x(2),x(2)) norm=...
|