Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - exp() return e raised to the given power http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 exp()               Return e raised to the given power
------------------------------------------------------------------------------
 Declaration
   math.hdr

 Syntax
   func dbl exp extern
   param value dbl eNumber

 Arguments
   eNumber is a numeric expression to be used as the exponent.

 Return
   A value identical to e raised to the specified power.

 Description
   The function returns e raised to the power of eNumber, that is
   the return value equals to e**eNumber.

 Example
   #define EXAMPLE_MATH
   #include example.hdr

   proc Test_exp
   ? CONST_E                     // prints 2.718...
   ? CONST_E**2                  // prints 7.389...
   ? exp( 1 )                    // prints 2.718...
   ? ln( exp( 1 ) )              // prints 1.000...
   endproc

   proc main
   Test_exp()
   endproc

See Also: ln()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson