Up TOC Index << 7 Included Tools < 8.24 Math Up: 8 API Reference 8.26 Random Numbers > 9 Release Notes >>

## 8.25 Math Constants

### 8.25.1 Constants

#### 8.25.1.1 PI

```include std/mathcons.e
namespace mathcons
public constant PI
```

PI is the ratio of a circle's circumference to it's diameter.

PI = C / D :: C = PI * D :: C = PI * 2 * R(radius)

#### 8.25.1.2 QUARTPI

```include std/mathcons.e
namespace mathcons
public constant QUARTPI
```

Quarter of PI

#### 8.25.1.3 HALFPI

```include std/mathcons.e
namespace mathcons
public constant HALFPI
```

Half of PI

#### 8.25.1.4 TWOPI

```include std/mathcons.e
namespace mathcons
public constant TWOPI
```

Two times PI

#### 8.25.1.5 PISQR

```include std/mathcons.e
namespace mathcons
public constant PISQR
```

PI ^ 2

#### 8.25.1.6 INVSQ2PI

```include std/mathcons.e
namespace mathcons
public constant INVSQ2PI
```

1 / (sqrt(2PI))

#### 8.25.1.7 PHI

```include std/mathcons.e
namespace mathcons
public constant PHI
```

phi => Golden Ratio = (1 + sqrt(5)) / 2

#### 8.25.1.8 E

```include std/mathcons.e
namespace mathcons
public constant E
```

Euler (e)The base of the natural logarithm.

#### 8.25.1.9 LN2

```include std/mathcons.e
namespace mathcons
public constant LN2
```

ln(2) :: 2 = power(E, LN2)

#### 8.25.1.10 INVLN2

```include std/mathcons.e
namespace mathcons
public constant INVLN2
```

1 / (ln(2))

#### 8.25.1.11 LN10

```include std/mathcons.e
namespace mathcons
public constant LN10
```

ln(10) :: 10 = power(E, LN10)

#### 8.25.1.12 INVLN10

```include std/mathcons.e
namespace mathcons
public constant INVLN10
```

1 / ln(10)

#### 8.25.1.13 SQRT2

```include std/mathcons.e
namespace mathcons
public constant SQRT2
```

sqrt(2)

#### 8.25.1.14 HALFSQRT2

```include std/mathcons.e
namespace mathcons
public constant HALFSQRT2
```

sqrt(2)/ 2

#### 8.25.1.15 SQRT3

```include std/mathcons.e
namespace mathcons
public constant SQRT3
```

Square root of 3

#### 8.25.1.16 DEGREES_TO_RADIANS

```include std/mathcons.e
namespace mathcons
public constant DEGREES_TO_RADIANS
```

Conversion factor: Degrees to Radians = PI / 180

#### 8.25.1.17 RADIANS_TO_DEGREES

```include std/mathcons.e
namespace mathcons
public constant RADIANS_TO_DEGREES
```

Conversion factor: Radians to Degrees = 180 / PI

#### 8.25.1.18 EULER_GAMMA

```include std/mathcons.e
namespace mathcons
public constant EULER_GAMMA
```

Gamma (Euler Gamma)

#### 8.25.1.19 SQRTE

```include std/mathcons.e
namespace mathcons
public constant SQRTE
```

sqrt(e)

#### 8.25.1.20 PINF

```include std/mathcons.e
namespace mathcons
public constant PINF
```

Positive Infinity

#### 8.25.1.21 MINF

```include std/mathcons.e
namespace mathcons
public constant MINF
```

Negative Infinity

#### 8.25.1.22 SQRT5

```include std/mathcons.e
namespace mathcons
public constant SQRT5
```

sqrt(5)

 Up TOC Index << 7 Included Tools < 8.24 Math Up: 8 API Reference 8.26 Random Numbers > 9 Release Notes >>