Important

   

This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent 22.1 for BMC Helix Operations Management. Open link

loge()

Return the natural logarithm of the argument.

Syntax

loge(argument)

Parameter

Parameter

Definition

argument

numeric value whose natural logarithm is to be determined 

Valid Values 
argument > 0

Description

The loge() function returns the logarithm of argument with respect to the natural logarithm base e = 2.71828 . . . 

The output range for the loge() function is – ∞< loge() < ∞ .

Example

The following loge() function calls print a number of useful physical and mathematical constants:

function main() {
PI = 3.141593;
printf("loge(PI) = %7.4f\n",loge(PI));
printf("loge(10) = %7.4f\n",loge(10));
printf("loge( 2) = %7.4f\n",loge(2));
printf("loge( 3) = %7.4f\n",loge(3));
return;
}

The example produces the following output:

loge(PI) = 1.1447
loge(10) = 2.3026
loge( 2) = 0.6931
loge( 3) = 1.0986


Was this page helpful? Yes No Submitting... Thank you

Comments