3.5.1.1.27 Log

Description

This function returns the base 10 logarithm value of x.

Note: The LabTalk log function is based on 10 while the Origin C log function is based on e. The Origin C base 10 logarithmic function is log10.

Syntax

double log(double x)

Parameter

x

can be any positive number you want to calculate the base 10 logarithm.

Return

Returns the base 10 logarithm value of x.

Example

aa = log(10);
aa = ; //1
bb = log(20);
bb = ; //1.301029995664