Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

VBScript Exp Function

Returns e (the base of natural logarithms) raised to a power.

Syntax: VBScript Exp Function

Exp(number)

Arguments: VBScript Exp Function

number

Any valid numeric expression.

Remarks: VBScript Exp Function

If the value of number exceeds 709.782712893, an error occurs. The constant e is approximately 2.718282.

The following example uses the Exp function to return e raised to a power:

Dim MyAngle, MyHSin   ' Define angle in radians.

MyAngle = 1.3   ' Calculate hyperbolic sine.

MyHSin = (Exp(MyAngle) - Exp(-1 * MyAngle)) / 2

Note

The Exp function complements the action of the Log function and is sometimes referred to as the antilogarithm.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.