Discussion Overview
The discussion revolves around the Fortran 77 commands "expg" and "dexp," specifically their meanings and usage in a given code context. Participants explore the nature of these commands, with a focus on whether "expg" is a standard function or a user-defined one, and how to identify its definition within a program.
Discussion Character
- Technical explanation, Conceptual clarification, Debate/contested
Main Points Raised
- One participant presents an expression using "dexp" and speculates that it calculates the exponential value with double precision.
- Another participant confirms the use of "dexp" and questions the meaning of "expg," suggesting it may not be part of the Fortran standard.
- There is a suggestion that "expg" could be a user-defined function or part of a specific manufacturer's version of Fortran.
- Participants discuss methods to determine the meaning of "expg," including checking for its declaration in the code or identifying the original computer system used for the program.
- One participant reveals that "expg" is indeed a user-defined function, providing its definition and explaining its purpose to prevent underflow for small values.
- There is acknowledgment of the possibility that "expg" could be defined in a library linked during compilation, highlighting the historical context of Fortran extensions by various manufacturers.
Areas of Agreement / Disagreement
Participants generally agree that "dexp" is a standard function for calculating exponentials, while there is no consensus on the status of "expg" until its user-defined nature is confirmed. The discussion reflects both uncertainty and exploration of the topic.
Contextual Notes
Participants mention the potential for "expg" to be defined outside the main program, possibly in linked libraries, and the historical context of Fortran extensions, which may affect understanding.
Who May Find This Useful
Readers interested in Fortran programming, particularly those dealing with legacy code or user-defined functions, may find this discussion relevant.