DEXP or EXP for exponential function in fortran?

后端 未结 3 772
小蘑菇
小蘑菇 2021-02-05 14:40

I have two very short questions:

1 - I just read that DEXP() is the archaic form of EXP(). Does it mean that it should not be used an

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 15:03

    "exp" is a generic function, that returns the same type as its argument -- precision of real or complex. It should be used in preference to the older form "dexp" because with "exp" the compiler will automatically return the correct type. The generic names were added in Fortran 77.

提交回复
热议问题