RCAIDE.Library.Methods.Geodesics.Geodesics.Math#

class Math[source]#

Bases: object

Additional math routines for GeographicLib.

__init__()#

Methods

AngDiff(x, y)

compute y - x and reduce to [-180,180] accurately

AngNormalize(x)

reduce angle to [-180,180]

AngRound(x)

Private: Round an angle so that small values underflow to zero.

LatFix(x)

replace angles outside [-90,90] by NaN

cbrt(x)

Real cube root of a number

norm(x, y)

Private: Normalize a two-vector.

polyval(N, p, s, x)

Evaluate a polynomial.

remainder(x, y)

remainder of x/y in the range [-y/2, y/2].

sincosd(x)

Compute sine and cosine of x in degrees.

sincosde(x, t)

Compute sine and cosine of (x + t) in degrees with x in [-180, 180]

sq(x)

Square a number

sum(u, v)

Error free transformation of a sum.

static sq(x)[source]#

Square a number

static cbrt(x)[source]#

Real cube root of a number

static norm(x, y)[source]#

Private: Normalize a two-vector.

static sum(u, v)[source]#

Error free transformation of a sum.

static polyval(N, p, s, x)[source]#

Evaluate a polynomial.

static AngRound(x)[source]#

Private: Round an angle so that small values underflow to zero.

static remainder(x, y)[source]#

remainder of x/y in the range [-y/2, y/2].

static AngNormalize(x)[source]#

reduce angle to [-180,180]

static LatFix(x)[source]#

replace angles outside [-90,90] by NaN

static AngDiff(x, y)[source]#

compute y - x and reduce to [-180,180] accurately

static sincosd(x)[source]#

Compute sine and cosine of x in degrees.

static sincosde(x, t)[source]#

Compute sine and cosine of (x + t) in degrees with x in [-180, 180]