Table of Contents

ugBASIC User Manual

EXP

SYNTAX

   = EXP(number)

PURPOSE

The EXP command is a mathematical function that calculates the natural exponential of a number. In other words, it raises Napier's number (e = 2.71828) to the specified power.

The EXP function has numerous applications in mathematics, science, and engineering. It is used to describe phenomena that grow at a rate proportional to the amount present, such as population growth or radioactive decay. The natural exponential is closely related to trigonometric functions and can be used to calculate them.

Many differential equations have solutions that involve the natural exponential, and it appears in many probability distributions, such as the exponential distribution and the normal distribution.

Noe that EXP function is defined only for FLOAT numbers.

EXAMPLE

  x = EXP(21)

AVAILABLE ON

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY