Indeed, it very much depends on the quality of the implementation of the runtime libraries whether the signed zero is respected or not. Anton’s article illustrates that nicely. (Tangential to this: see the post by Beliavsky - Fortran code snippets - #22 by Beliavsky - where he illustrates the use of complex numbers to determine the derivative of a real (!) function with just one evaluation.)
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Inversion of complex numbers with a zero imaginary part | 2 | 179 | February 7, 2025 | |
Error Handling for negative real numbers | 34 | 3402 | July 1, 2020 | |
Wrong (strange outputs) of real numbers | 27 | 1445 | April 26, 2023 | |
Syntax of numeric constants | 13 | 446 | March 16, 2024 | |
Complex constants and variables
|
6 | 1145 | March 8, 2022 |