# Reference/exp

From Kx Wiki

(Difference between revisions)

(Fixed links) |
Chris Burke (Talk | contribs) |
||

(One intermediate revision by one user not shown) | |||

Line 1: | Line 1: | ||

− | + | {{refheader|exp|exp function}} | |

− | + | The <tt>exp</tt> function computes e<sup>x</sup>, where e is the base of natural logarithms. The result is type float. | |

+ | |||

+ | == Syntax == | ||

+ | |||

+ | <pre> | ||

+ | q)r:exp X | ||

+ | </pre> | ||

+ | |||

+ | == Example == | ||

<pre> | <pre> | ||

Line 8: | Line 16: | ||

q)exp 0.5 | q)exp 0.5 | ||

1.648721 | 1.648721 | ||

− | q)exp -4.2 0 | + | q)exp -4.2 0 0.1 0n 0w |

− | 0.01499558 1 | + | 0.01499558 1 1.105171 0n 0w |

</pre> | </pre> | ||

Line 15: | Line 23: | ||

*[[Reference/log|log]] | *[[Reference/log|log]] | ||

+ | *[[Reference/xexp|xexp]] | ||

+ | *[[Reference/xlog|xlog]] | ||

---- | ---- | ||

For a complete list of functions, see the [[Reference|kdb+ Function Reference]]. | For a complete list of functions, see the [[Reference|kdb+ Function Reference]]. |

## Latest revision as of 04:48, 13 April 2010

## Contents |

## exp (exp function)

The `exp` function computes e^{x}, where e is the base of natural logarithms. The result is type float.

## Syntax

q)r:exp X

## Example

q)exp 1 2.718282 q)exp 0.5 1.648721 q)exp -4.2 0 0.1 0n 0w 0.01499558 1 1.105171 0n 0w

## See also

For a complete list of functions, see the kdb+ Function Reference.