From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!news1.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: =?ISO-8859-1?Q?Jan_Vorbr=FCggen?= Newsgroups: comp.lang.ada,comp.lang.fortran Subject: Re: Ada vs Fortran for scientific applications Date: Mon, 29 May 2006 14:55:34 +0200 Organization: MediaSec Technologies GmbH Message-ID: <4e0994F1cdqssU1@individual.net> References: <44715DED.5050906@cits1.stanford.edu> <4dd87pF18ot14U1@individual.net> <447207D6.3010408@cits1.stanford.edu> <4dg101F17acafU1@individual.net> <44730df4$1@news.meer.net> <4diimsF1b0c25U1@individual.net> <1hfu0ee.1k99fbgsaelhoN%nospam@see.signature> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net k6wyRIJZlmpWPvRlAHm/iwlhxr1StKb/6HSVnizy1sjpbKKJ+o User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <1hfu0ee.1k99fbgsaelhoN%nospam@see.signature> Xref: g2news2.google.com comp.lang.ada:4578 comp.lang.fortran:10422 Date: 2006-05-29T14:55:34+02:00 List-Id: > In contrast, f77 says, in its section on complex type (4.6) > > "The representation of a complex datum is in the form of an ordered > pair of real data. The first of the pair represents the real part > of the complex datum and the second represents the imaginary part. > Each part has the same degreee of approximation as for a real datum. > A complex datum has two consecutive numeric storage units in a > storage sequence: the first storage unit is the real part and the > second storage unit is the imaginary part." > > While the wods about an ordered pair look pretty similar, the f77 > version has the word "representation", while the f2003 version doesn't. > That makes them say different things acccording to me, although I'm sure > the difference is unintentional. The f77 version seems to me to say the > same thing twice, but the f2003 version dropped it down to zero times. It seems to me that F77 is saying two different things here: one is about representation, and the second is about storage sequence and association. They overlap in that the first statement includes the word "ordered", al- though one could conceivably debate (in the Talmudic sense) whether that should be understood with regard to storage sequence in the same way as the second phrase nails things down. Given the declaration COMPLEX X(10) REAL Y(20) EQUIVALENCE (X, Y) I understand that at least F77, and by intent (your interpretation) later Fortran standards force the compiler to have the piece of code X(3) = (4711., 0.815) PRINT *, Y(6) result in an approximation of 0.815 being printed. This would indeed make a different implementation more difficult. Jan