Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 568623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:12:29+00:00 2026-05-13T13:12:29+00:00

I have two very short questions: 1 – I just read that DEXP() is

  • 0

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 anymore? I always thought that DEXP() was the double precision equivalent to EXP().

2 – What is the range of the exponential function? Is it compiler dependent?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:12:29+00:00Added an answer on May 13, 2026 at 1:12 pm

    Question number 1:

    In modern Fortran it is always better to use the generic functions, such as EXP(), in preference to the outdated type specific equivalents, such as DEXP().

    In the old (really old) versions of Fortran (before FORTRAN 77), a different function was required for each data type. So if you wanted the exponential function would need: EXP() for single precision numbers, DEXP() for double precision numbers, or CEXP() for complex numbers. Fortran now has function overloading, so a single function will work for any standard type.

    Question number 2.

    In principle the possible range of the exponent can be processor and compiler dependent. However, most modern processors and compilers will use the IEEE standard.

    If needed, it is possible to specify the required range of a variable when declaring it. The function to use is SELECTED_REAL_KIND([P,R]).

    For example, suppose you to make sure that x is of a type with decimal precision of at least 10 digits and a decimal exponent range of at least 100.

    INTEGER, PARAMETER :: mytype = SELECTED_REAL_KIND(10, 100)
    REAL(KIND=mytype) :: x
    

    For more information: SELECTED_REAL_KIND

    In practice, if you are writing a program that requires a given accuracy, and which may be run on exotic or old systems, it is a very good idea to define your types in this way. Some common definitions are shown here: Real Precision

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Two questions in one, but I have a very short test case demonstrating my
I have two very simple, identical UITableViews in my app that are populated with
I have two tables that have virtually identical content and very similar structure. They
If I have two models that are very different, is it defeating the purpose
I have two very simple routes routes.MapRoute( post, // Route name postPage + /{slug},
I have two very similar programs each trying to run two threads OddThread and
I have two question to put forward: I was very interested, even intrigued by
I have two arrays, one is very large (more than million entries) and other
I have a very strange issue on my hands. I have two IIS websites
The situation is very simple, I have two panel. In the event of OnMouseOver

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.