double d productions
  Home FAQ Contact Sign in
 
Advanced search
MATCHING GROUPS



more...
POPULAR GROUPS

more...

found 3756 articles for 0.082 sec
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: Klaus Wacker
Date: May 25, 2007 04:40

...solved all of them but the double precision product. The following piece of code is not working as it should: program euclidean_norm double precision x(2) As highegg already said, you should add here: double precision,external:: norm The "external" attribute ... and 1.52316362648 are REAL (not DOUBLE PRECISION) constants. Use 2.70753335146d0 and ...
Show full article (1.04Kb)
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: highegg
Date: May 25, 2007 04:17

...> v2.21). I solved all of them but the double precision product. The following piece of code...working as it should: program euclidean_norm double precision x(2) x(1) ...> write(*,*)x write(*,*)norm(x) end double precision function norm(x) ...different way to get it using double precision? Many thanks in advance. ...
Show full article (1.56Kb)
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: Gordon Sande
Date: May 28, 2007 09:19

... says that the relative ordering of a couple priorities is not the same as for an optimizing production code compiler. It is not a crticism. In fact it is a complement when there are several .... A student oriented compiler had better not miss any features as might be tolerated on a production compiler if it promised great optimization. I can no longer check the Polyhedron benchmarks for ...
Show full article (3.41Kb)
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: nospam
Date: May 26, 2007 17:00

...+x(2)**2) WARNING - Variable NORMA has been given a value but never used 0009) double precision function norm(x) WARNING - The result of FUNCTION NORM has never been set That seems pretty...+x(2)**2) WARNING - Variable NORMA has been given a value but never used 0009) double precision function norm(x) WARNING - The result of FUNCTION NORM has never been set 0012)...
Show full article (2.21Kb)
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: Edward N Bromhead
Date: May 26, 2007 16:38

... Snouck <dsno...@yahoo.nospam> wrote: Jorge Lopez wrote: double precision function norm(x) double precision x(2) norma = sqrt(x(1)**2+x(2)**2) ... been given a value but never used 0009) double precision function norm(x) WARNING - The result ... been given a value but never used 0009) double precision function norm(x) WARNING - The ...
Show full article (2.12Kb)
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: Jorge Lopez
Date: May 25, 2007 09:12

...! The following piece of code is not working as it should: program euclidean_norm double precision x(2) x(1) = 2.70753335146 x(2) = 1.52316362648 write(*,*)x write(*,*)norm(x) end double precision function norm(x) double precision x(2) norma = sqrt(x(1)**2+x(2)**2) end
Show full article (0.58Kb)
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: Arjen Markus
Date: May 25, 2007 07:43

On 25 mei, 14:08, Daniel Snouck <dsno...@yahoo.nospam> wrote: Jorge Lopez wrote: double precision function norm(x) double precision x(2) norma = sqrt(x(1)**2+x(2)**2) end Others already mentioned a few problems. I would like to add that your...
Show full article (0.66Kb) · Show article thread
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: Ron Shepard
Date: May 25, 2007 07:43

...$si3$1@nsnmpen2-gest.nuria.telefonica-data.net>, "Jorge Lopez" <not@telling.com> wrote: Is there any intrinsinc funcion to compute the norm, or a different way to get it using double precision? Normally for vectors of arbitrary length you might write something like sqrt(dot_product(x,x)) but for vectors of length 2 it isn't clear if this is simpler or more complicated. ...
Show full article (0.92Kb)
Re: Salford Fortran - Double Precision product     

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=...
Show full article (0.57Kb) · Show article thread
Re: Salford Fortran - Double Precision product     

Group: comp.lang.fortran · Group Profile · Search for double d productions in comp.lang.fortran
Author: Daniel Snouck
Date: May 25, 2007 05:08

Jorge Lopez wrote: double precision function norm(x) double precision x(2) norma = sqrt(x(1)**2+x(2)**2) end Others already mentioned a few problems. I would like to add that your function is named "norm" but then you assign a value to "norma". Always using "implicit none" seems useful to me.
Show full article (0.33Kb)
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · next