Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.fortran    |    Putting John Backus on a giant pedestal    |    5,127 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,529 of 5,127    |
|    pehache to All    |
|    Re: SCALE intrinsic subprogram (aka a Fo    |
|    16 Nov 23 23:51:52    |
      From: pehache.7@gmail.com              Le 16/11/2023 à 21:01, Steven G. Kargl a écrit :       >>       >> The reason is maybe because the standard doesn't specify how a complex       >> number is internally represented. In practice it is always represented       >> by a pair (real,imag), but nothing would prevent a compiler representing       >> it by (module,argument) for instance. Given that, the standard cannot       >> guarantee the absence of rounding errors.       >       > You are correct that the Fortran standard does not specify       > internal datails, and this could be extended to COMPLEX.       > It would however be quite strange for a Fortran vendor to       > use magnitude and phase              I fully agree that it would be strange, and I can't see any advantage to       such implementation. Yet, it is not prohibited by the standard.              > given that the Fortran standard does       > quite often refer to the real and imaginary parts of a COMPLEX       > entity.              Yes, but it's at the conceptual level              > Not to mention, the Fortran standard has introduced:       >       > 3.60.1       > complex part designator       >       > 9.4.4 Complex parts       >       > R915 complex-part-designator is designator % RE       > or designator % IM              Yes again, but behind the hood c%re and c%im could be the functions       m*cos(p) and m*sin(p). And on assignement c%re = |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca