 # Power Functions, Roots, Logarithms

Tags:

### Logarithms

#### function Math.Ln(X: Double): Double;

Returns the natural logarithm of a real expression X.

Example as TechEditor Pascal Script (.PSC):

begin  x := Ln(1.5); // x=0.405..end;

🛈 This routine has a similar routine in the Math unit (specify the Math unit in the uses list):

function Ln(X): Double;

#### function Math.LnXP1(X: Double): Double;

Returns the natural log of (X+1).

Example as TechEditor Pascal Script (.PSC):

begin  x := Math.LnXP1(2); // x=1.098..end;

🛈 This routine has a similar routine in the Math unit (specify the Math unit in the uses list):

function LnXP1(X): Double;

#### function Math.Log10(X: Double): Double;

Calculates log of X base 10.

Example as TechEditor Pascal Script (.PSC):

begin  x := Math.Log10(2); // x=0.301..end;

🛈 This routine has a similar routine in the Math unit (specify the Math unit in the uses list):

function Log10(X): Double;

#### function Math.Log2(X: Double): Double;

Calculates log of X base 2.

Example as TechEditor Pascal Script (.PSC):

begin  x := Math.Log2(1.5); // x=0.584..end;

🛈 This routine has a similar routine in the Math unit (specify the Math unit in the uses list):

function Log2(X): Double;

#### function Math.LogN(Base, X: Double): Double;

Calculates the log of X for a specified base Base.

Example as TechEditor Pascal Script (.PSC):

begin  x := Math.LogN(2.5, 1.5); // x=0.442..end;

🛈 This routine has a similar routine in the Math unit (specify the Math unit in the uses list):

function LogN(Base, X): Double;

### Exponentiation functions

#### function Math.IntPower(X: Double; Exponent: Integer): Double;

Calculates the integral power Exponent of X.

Example as TechEditor Pascal Script (.PSC):

begin  x := Math.IntPower(2.5, 3);end;

🛈 This routine has a similar routine in the Math unit (specify the Math unit in the uses list):

function IntPower(X, Exponent): Double;

#### function Math.Power(X, Exponent: Double): Double;

Raises X to Exponent power.

Example as TechEditor Pascal Script (.PSC):

begin  x := Math.Power(2.5, 5.5); // x=2.5^5.5=154.408..end;

🛈 This routine has a similar routine in the Math unit (specify the Math unit in the uses list):

function Power(X, Exponent): Double;

#### function Math.Power2(X: Double): Double;

Raises X to power 2.

🛈 This routine has a similar system routine:

function Sqr(X): Double;

#### function Math.Power3(X: Double): Double;

Raises X to power 3.

#### function Math.Power4(X: Double): Double;

Raises X to power 4.

#### function Math.Root2(X: Double): Double;

Extracts the square root of X.

🛈 This routine has a similar system routine:

function Sqrt(X): Double;

function Math.Sqrt(X: Double): Double;

#### function Math.Root3(X: Double): Double;

Extracts the 3-rd root of X.

#### function Math.Root4(X: Double): Double;

Extracts the 4-rd root of X.

#### function Math.Exp(X: Double): Double;

Returns the exponential of X.

Example as TechEditor Pascal Script (.PSC):

begin  x := Math.Exp(1); // x=2.718..end;

🛈 This routine has a similar system routine:

### Users Online

No members to show currently

### Most Viewed Articles

Math Object Numbered Sequences Welcome to the TechEditor! Routines for Converting Angular Measures Mathematics in TechEditor Installation ### Help Tags 