Precision mathematical classes and functions.
|
|
AuxAngle
An accurate representation of angles
|
|
|
AuxBeta
A Parametric, Auxiliary latitude.
|
|
|
AuxChi
A Conformal, Auxiliary latitude.
|
|
|
AuxDLat
Class to compute Divided Differences of
Auxiliary latitudes and other Divided
Differences needed for RhumbAux and RhumbLineAux calculations.
|
|
|
AuxDST
Discrete Sine Transforms (DST) for Auxiliary latitudes.
|
|
|
AuxError
Error raised for an Aux, AuxDLat, AuxLat or rhumb.aux_ issue.
|
|
|
AuxLat
Base class for accurate conversion between Auxiliary
latitudes on an ellipsoid.
|
|
|
AuxMu
A Rectifying, Auxiliary latitude.
|
|
|
AuxPhi
A Geodetic or Geographic, Auxiliary latitude.
|
|
|
AuxTheta
A Geocentric, Auxiliary latitude.
|
|
|
AuxXi
An Authalic, Auxiliary latitude.
|
|
|
Circin6Tuple
6-Tuple (radius, center, deltas, cA, cB, cC) with the
radius, the trilaterated center and
contact points of the inscribed aka In- circle of a
triangle.
|
|
|
Circum3Tuple
3-Tuple (radius, center, deltas) with the
circumradius and trilaterated
circumcenter of the circumcircle through
3 points (aka {Meeus}' Type II circle) or the radius
and center of the smallest Meeus' Type I
circle.
|
|
|
Circum4Tuple
4-Tuple (radius, center, rank, residuals) with
radius and center of a sphere
least-squares fitted through given points and the
rank and residuals -if any- from numpy.linalg.lstsq.
|
|
|
Elliptic
Elliptic integrals and functions.
|
|
|
Elliptic3Tuple
3-Tuple (sn, cn, dn) all scalar.
|
|
|
EllipticError
Elliptic function, integral, convergence or other Elliptic issue.
|
|
|
Fcbrt
Precision cubic root of summation.
|
|
|
Fcook
Cook's RunningStats computing the
running mean, median and (sample) kurtosis, skewness, variance,
standard deviation and Jarque-Bera normality.
|
|
|
Fdot
Precision dot product.
|
|
|
Fhorner
Precision polynomial evaluation using the Horner form.
|
|
|
Fhypot
Precision hypotenuse of summation.
|
|
|
Flinear
Cook's RunningRegression computing
the running slope, intercept and correlation of a linear
regression.
|
|
|
Fn_rt
Precision n-th root of summation.
|
|
|
Fpolynomial
Precision polynomial evaluation.
|
|
|
Fpowers
Precision summation or powers, optimized for power=2.
|
|
|
Fsqrt
Precision square root of summation.
|
|
|
Fsum
Precision floating point running summation.
|
|
|
Fsum2Tuple
2-Tuple (fsum, residual) with the precision running
fsum and the residual, the sum of the
remaining partials.
|
|
|
Fwelford
Welford's accumulator computing the running mean,
(sample) variance and standard deviation.
|
|
|
Meeus2Tuple
2-Tuple (radius, Type) with radius and
Meeus' Type of the smallest circle
containing 3 points.
|
|
|
Radii11Tuple
11-Tuple (rA, rB, rC, cR, rIn, riS, roS, a, b, c, s)
with the Tangent circle radii rA,
rB and rC, the circumradius
cR, the Incircle radius rIn
aka inradius, the inner and outer Soddy circle
radii riS and roS, the sides
a, b and c and
semi-perimeter s of a triangle, all in
meter conventionally.
|
|
|
ResidualError
Error raised for an operation involving a pygeodesy3.sums.Fsum instance with a non-zero
residual, integer or otherwise.
|
|
|
Soddy4Tuple
4-Tuple (radius, center, deltas, outer) with
radius and (trilaterated) center of the
inner Soddy circle and the radius of the
outer Soddy circle.
|
|
|
Vector3d
Extended 3-D vector.
|
|
|
NM2m(nm)
Convert nautical miles to meter (m). |
|
|
|
|
SM2m(sm)
Convert statute miles to meter (m). |
|
|
|
|
SinCos2(x)
Get sin and cos of typed angle. |
|
|
|
|
acos1(x)
Return math.acos(max(-1, min(1, x))). |
|
|
|
|
acre2ha(acres)
Convert acres to hectare. |
|
|
|
|
acre2m2(acres)
Convert acres to square meter. |
|
|
|
|
asin1(x)
Return math.asin(max(-1, min(1, x))). |
|
|
|
|
atan1(y,
x=1.0)
Return atan(y / x) angle in
radians [-PI/2..+PI/2] using
atan2 for consistency and to avoid
ZeroDivisionError. |
|
|
|
|
atan1d(y,
x=1.0)
Return atan(y / x) angle in
degrees [-90..+90] using
atan2d for consistency and to avoid
ZeroDivisionError. |
|
|
|
|
atan2b(y,
x)
Return atan2(y, x) in degrees [0..+360]. |
|
|
|
|
atan2d(y,
x,
reverse=False)
Return atan2(y, x) in degrees [-180..+180], optionally reversed (by 180
degrees for azimuths). |
|
|
|
|
bqrt(x)
Return the 4-th, bi-quadratic or quartic root, x**(1 / 4). |
|
|
|
|
cbrt(x)
Compute the cube root x**(1/3). |
|
|
|
|
cbrt2(x)
Compute the cube root squared x**(2/3). |
|
|
|
|
chain2m(chains)
Convert UK chains to meter. |
|
|
|
|
circin6(point1,
point2,
point3,
eps=8.881784197001252e-16,
useZ=True)
Return the radius and center of the inscribed aka
Incircle of a (2- or 3-D) triangle. |
|
|
|
|
circle4(earth,
lat)
Get the equatorial or a parallel circle of latitude. |
|
|
|
|
circum3(point1,
point2,
point3,
circum=True,
eps=8.881784197001252e-16,
useZ=True)
Return the radius and center of the smallest circle through or
containing three (2- or 3-D) points. |
|
|
|
|
circum4_(*points,
**useZ_Vector_and_kwds)
Best-fit a sphere through three or more (3-D) points. |
|
|
|
|
cot(rad,
**error_kwds)
Return the cotangent of an angle in
radians. |
|
|
|
|
cot_(*rads,
**error_kwds)
Return the cotangent of angle(s) in
radiansresection. |
|
|
|
|
cotd(deg,
**error_kwds)
Return the cotangent of an angle in
degrees. |
|
|
|
|
cotd_(*degs,
**error_kwds)
Return the cotangent of angle(s) in
degrees. |
|
|
|
|
degrees(x)
Convert angle x from radians to degrees. |
|
|
|
|
degrees180(rad)
Convert radians to degrees and wrap [-180..+180). |
|
|
|
|
|
|
|
degrees2m(deg,
radius=6371008.771415,
lat=0)
Convert an angle to a distance along the equator or along the
parallel at an other (geodetic) latitude. |
|
|
|
|
degrees360(rad)
Convert radians to degrees and wrap [0..+360). |
|
|
|
|
degrees90(rad)
Convert radians to degrees and wrap [-90..+90). |
|
|
|
|
euclid(x,
y)
Appoximate the norm sqrt(x**2 + y**2) by
max(abs(x), abs(y)) + min(abs(x), abs(y)) *
0.4142.... |
|
|
|
|
euclid_(*xs)
Appoximate the norm sqrt(sum(x**2 for x in
xs)) by cascaded euclid. |
|
|
|
|
|
|
|
|
|
|
fatan(x)
Fast approximation of atan(x). |
|
|
|
|
fatan1(x)
Fast approximation of atan(x) for 0 <=
x <= 1, unchecked. |
|
|
|
|
fatan2(y,
x)
Fast approximation of atan2(y, x). |
|
|
|
|
fathom2m(fathoms)
Convert Imperial fathom to meter. |
|
|
|
|
favg(v1,
v2,
f=0.5)
Return the average of two values. |
|
|
|
|
fdot(a,
*b)
Return the precision dot product sum(a[i] * b[i] for
i=0..len(a)). |
|
|
|
|
fdot3(a,
b,
c,
start=0)
Return the precision dot product start + sum(a[i] *
b[i] * c[i] for i=0..len(a)). |
|
|
|
|
fhorner(x,
*cs)
Evaluate the polynomial sum(cs[i] * x**i for
i=0..len(cs)) using the Horner form. |
|
|
|
|
|
|
|
fmean(xs)
Compute the accurate mean sum(xs[i] for i=0..len(xs))
/ len(xs). |
|
|
|
|
fmean_(*xs)
Compute the accurate mean sum(xs[i] for i=0..len(xs))
/ len(xs). |
|
|
|
|
fpolynomial(x,
*cs,
**over)
Evaluate the polynomial sum(cs[i] * x**i for
i=0..len(cs)) [/ over]. |
|
|
|
|
fpowers(x,
n,
alts=0)
Return a series of powers [x**i for i=1..n]. |
|
|
|
|
fprod(xs,
start=1)
Iterable product, like math.prod or
numpy.prod. |
|
|
|
|
frange(start,
number,
step=1)
Generate a range of floats. |
|
|
|
value
|
freduce(function,
sequence,
initial=...)
Apply a function of two arguments cumulatively to the items of a
sequence, from left to right, so as to reduce the sequence to a
single value. |
|
|
|
|
fremainder(x,
y)
Remainder in range [-y / 2, y / 2]. |
|
|
|
|
fsum(xs,
floats=False)
Precision floating point summation based on or like Python's
math.fsum. |
|
|
|
|
fsum1(xs,
floats=False)
Precision floating point summation of a few arguments, 1-primed. |
|
|
|
|
fsum1_(*xs,
**floats)
Precision floating point summation of a few arguments, 1-primed. |
|
|
|
|
fsum1f_(*xs)
Precision floating point summation fsum1_(*xs, floats=True). |
|
|
|
|
fsum_(*xs,
**floats)
Precision floating point summation of all positional arguments. |
|
|
|
|
fsumf_(*xs)
Precision floating point summation fsum_(*xs, floats=True). |
|
|
|
|
ft2m(feet,
usurvey=False,
pied=False,
fuss=False)
Convert International, US Survey, French or
German feet to meter. |
|
|
|
|
furlong2m(furlongs)
Convert a furlong to meter. |
|
|
|
|
grades(rad)
Convert radians to grades (aka gons or
gradians). |
|
|
|
|
|
|
|
|
|
|
grades400(rad)
Convert radians to grades (aka gons or gradians)
and wrap [0..+400). |
|
|
|
|
hypot(x,
y)
Return the Euclidean distance, sqrt(x*x + y*y). |
|
|
|
|
hypot1(x)
Compute the norm sqrt(1 + x**2). |
|
|
|
|
hypot2(x,
y)
Compute the squared norm x**2 + y**2. |
|
|
|
|
hypot2_(*xs)
Compute the squared norm sum(x**2 for x in
xs). |
|
|
|
|
hypot_(*xs)
Compute the norm sqrt(sum(x**2 for x in xs)). |
|
|
|
|
intersection3d3(start1,
end1,
start2,
end2,
eps=2.220446049250313e-16,
useZ=True,
**Vector_and_kwds)
Compute the intersection point of two (2- or 3-D) lines, each defined
by two points or by a point and a bearing. |
|
|
|
|
iscolinearWith(point,
point1,
point2,
eps=2.220446049250313e-16,
useZ=True)
Check whether a point is colinear with two other (2- or 3-D) points. |
|
|
|
|
km2m(km)
Convert kilo meter to meter (m). |
|
|
|
|
m2NM(meter)
Convert meter to nautical miles (NM). |
|
|
|
|
m2SM(meter)
Convert meter to statute miles (SM). |
|
|
|
|
m2chain(meter)
Convert meter to UK chains. |
|
|
|
|
m2degrees(distance,
radius=6371008.771415,
lat=0)
Convert a distance to an angle along the equator or along the
parallel at an other (geodetic) latitude. |
|
|
|
|
m2fathom(meter)
Convert meter to Imperial fathoms. |
|
|
|
|
m2ft(meter,
usurvey=False,
pied=False,
fuss=False)
Convert meter to International, US Survey,
French or or German feet (ft). |
|
|
|
|
|
|
|
m2km(meter)
Convert meter to kilo meter (Km). |
|
|
|
|
m2radians(distance,
radius=6371008.771415,
lat=0)
Convert a distance to an angle along the equator or along the
parallel at an other (geodetic) latitude. |
|
|
|
|
|
|
|
m2yard(meter)
Convert meter to UK yards. |
|
|
|
|
meeus2(point1,
point2,
point3,
circum=False,
useZ=True)
Return the radius and Meeus' Type of the smallest circle
through or containing three (2- or 3-D) points. |
|
|
|
|
nearestOn(point,
point1,
point2,
within=True,
useZ=True,
Vector=None,
**Vector_kwds)
Locate the point between two points closest to a reference (2- or
3-D). |
|
|
|
|
nearestOn6(point,
points,
closed=False,
useZ=True,
**Vector_and_kwds)
Locate the point on a path or polygon closest to a reference point. |
|
|
|
|
norm2(x,
y)
Normalize a 2-dimensional vector. |
|
|
|
|
norm_(*xs)
Normalize all n-dimensional vector components. |
|
|
|
|
parse3d(str3d,
sep=',',
Vector=<class 'pygeodesy3.maths.vector3d.Vector3d'>,
**Vector_kwds)
Parse an "x, y, z" string. |
|
|
|
|
radians(x)
Convert angle x from degrees to radians. |
|
|
|
|
radians2m(rad,
radius=6371008.771415,
lat=0)
Convert an angle to a distance along the equator or along the
parallel at an other (geodetic) latitude. |
|
|
|
|
radiansPI(deg)
Convert and wrap degrees to radians [-PI..+PI]. |
|
|
|
|
radiansPI2(deg)
Convert and wrap degrees to radians [0..+2PI). |
|
|
|
|
radiansPI_2(deg)
Convert and wrap degrees to radians [-3PI/2..+PI/2]. |
|
|
|
|
radii11(point1,
point2,
point3,
useZ=True)
Return the radii of the In-, Soddy and
Tangent circles of a (2- or 3-D) triangle. |
|
|
|
|
sincos2(rad)
Return the sine and cosine of an angle in
radians. |
|
|
|
|
sincos2_(*rads)
Return the sine and cosine of angle(s) in
radians. |
|
|
|
|
sincos2d(deg,
**adeg)
Return the sine and cosine of an angle in
degrees. |
|
|
|
|
sincos2d_(*degs)
Return the sine and cosine of angle(s) in
degrees. |
|
|
|
|
sincostan3(rad)
Return the sine, cosine and
tangent of an angle in radians. |
|
|
|
|
soddy4(point1,
point2,
point3,
eps=8.881784197001252e-16,
useZ=True)
Return the radius and center of the inner Soddy
circle of a (2- or 3-D) triangle. |
|
|
|
|
sqrt0(x,
Error=None)
Return the square root iff x > EPS02. |
|
|
|
|
sqrt3(x)
Return the square root, cubed sqrt(x)**3
or sqrt(x**3). |
|
|
|
|
sqrt_a(h,
b)
Compute a side of a right-angled triangle from
sqrt(h**2 - b**2). |
|
|
|
|
tanPI_2_2(rad)
Compute the tangent of half angle, 90 degrees rotated. |
|
|
|
|
tan_2(rad,
**semi)
Compute the tangent of half angle. |
|
|
|
|
tand(deg,
**error_kwds)
Return the tangent of an angle in degrees. |
|
|
|
|
tand_(*degs,
**error_kwds)
Return the tangent of angle(s) in degrees. |
|
|
|
|
|
|
|
trilaterate2d2(x1,
y1,
radius1,
x2,
y2,
radius2,
x3,
y3,
radius3,
eps=None,
**Vector_and_kwds)
Trilaterate three circles, each given as a (2-D) center and a radius. |
|
|
|
|
trilaterate3d2(center1,
radius1,
center2,
radius2,
center3,
radius3,
eps=2.220446049250313e-16,
**Vector_and_kwds)
Trilaterate three spheres, each given as a (3-D) center and a radius. |
|
|
|
|
truncate(x,
ndigits=None)
Truncate to the given number of digits. |
|
|
|
|
unroll180(lon1,
lon2,
wrap=True)
Unroll longitudinal delta and wrap longitude in degrees. |
|
|
|
|
unrollPI(rad1,
rad2,
wrap=True)
Unroll longitudinal delta and wrap longitude in radians. |
|
|
|
|
wrap180(deg)
Wrap degrees to [-180..+180]. |
|
|
|
|
wrap360(deg)
Wrap degrees to [0..+360). |
|
|
|
|
wrap90(deg)
Wrap degrees to [-90..+90]. |
|
|
|
|
wrapPI(rad)
Wrap radians to [-PI..+PI]. |
|
|
|
|
wrapPI2(rad)
Wrap radians to [0..+2PI). |
|
|
|
|
wrapPI_2(rad)
Wrap radians to [-PI/2..+PI/2]. |
|
|
|
|
wrap_normal(*normal)
Define the operation for the keyword argument
wrap=True, across pygeodesy3:
wrap, normalize or no-op. |
|
|
|
|
yard2m(yards)
Convert UK yards to meter. |
|
|
|
|
zcrt(x)
Return the 6-th, zenzi-cubic root, x**(1 /
6). |
|
|
|
|
zqrt(x)
Return the 8-th, zenzi-quartic or squared-quartic root,
x**(1 / 8). |
|
|