DIAdem API Reference

Function: Exp

  • 已更新2023-02-21
  • 閱讀時間為 2 分鐘

Exponentiates a number to the base e (Euler number).

ReturnValue = Exp(Exponent)

Input Parameters

Exponent Specifies a numeric value or a variable as an exponent, or a data channel that contains exponents.

Return Parameters

ReturnValueReturns positive values.

Examples

The following example exponentiates the values of the Group1/Input data channel to the base e (Euler number) and saves the result in the Group2/Result data channel.

VBScriptPython

 

Call Calculate ("Ch(""Group2/Result"")= Exp (Ch(""Group1/Input""))")
Note  You must use the Calculate command in scripts to calculate data channels with formulas. Compute the data channels according to the syntax in the Calculator. Refer to the procedures Executing Channel Calculations in the Calculator and Assigning a Value to a Variable in the Calculator for more information about the Calculator.
Note  DIAdem only uses the DIAdem function Exp if you use the FormulaCalc command otherwise DIAdem uses the VBS function Exp.
The input quantity must be dimensionless. The physical result quantity is also dimensionless.
The Input and Result Quantities for Quantity-Based Calculations page contains an overview of the input quantities and result quantities of all functions. Refer to the Help page Calculating Quantity-Based and Non-Quantity-Based in DIAdem for the conditions and rules for quantity-based calculations.

Related Functions

Function: ^ | Function: Abs | Function: Ceil | Function: Deg | Function: Eex | Function: Fak | Function: Floor | Function: Frac | Function: Lg | Function: Ln | Function: MaxV | Function: MinV | Function: Mod | Function: Rad | Function: Random | Function: Rnd | Function: Round | Function: RTP (Real To Part of Date) | Function: RTT (Real to Text) | Function: Sign | Function: SND | Function: Sqr | Function: Sqrt | Function: Trunc | Function: VU