geoprimsField-grade geospatial math

Least-squares network adjustment (2D)

Adjusts a small horizontal network of distances, angles, and direction sets by weighted least squares, with adjusted coordinates, standard errors, 95% error ellipses, the reference variance, and a chi-square test.

Experimental: not yet fully verified. How results are checked

0.346

The reference variance is 0.346; the chi-square test passed.

Adjusted points
PointNorthingEastingNorthing standard errorEasting standard error95% ellipse semi-major axis95% ellipse semi-minor axisEllipse orientation
P1,300.0046 m1,200.0110 m0.0023 m0.0028 m0.0175 m0.0144 m90.00 deg
Residuals
ObservationResidualStandardized residual
distance A–P-0.002 m-1.29
distance B–P0.0018 m1.19
angle B–A–P2″0.81
angle P–B–A-2.4″-0.97
Degrees of freedom
Chi-square test (95%)
Chi-square
95% bounds
Iterations
Largest standardized residuals
Provenance
Computed by
survey.cogo.least-squares-2d 1.0.0, core 0.1.0
Model
Weighted Gauss-Newton least squares (weights 1/σ²) on linearized distance, angle, and direction equations, each direction set with its own orientation unknown. Reference variance vᵀWv / r; two-tailed χ² test at 95%; 95% error ellipses scaled by √(2 F(0.05; 2, r)), or by 2.4477 without redundancy
Accuracy
Converges to the least-squares solution for well-conditioned networks with approximate coordinates near the truth. Experimental: check it against your adjustment software before relying on it
Notes
1 shown with the answer
Cites
Ghilani, C. D., and Wolf, P. R., Pearson, Elementary Surveying: An Introduction to Geomatics

Something look off?

Your values

Showing an example. Change anything.
More options 1
How we got thisFormula, worked example, sources, and proof

Model: Weighted Gauss-Newton least squares (weights 1/σ²) on linearized distance, angle, and direction equations, each direction set with its own orientation unknown. Reference variance vᵀWv / r; two-tailed χ² test at 95%; 95% error ellipses scaled by √(2 F(0.05; 2, r)), or by 2.4477 without redundancy

Show your work

  1. Degrees of freedom

    observationsunknowns

    4 − 2 = 2

  2. Reference variance

    Σ v²/σ² ÷ degrees of freedom

    0.692 ÷ 2 = 0.346

The same steps an agent gets from the MCP server with explain: true.

Accuracy: Converges to the least-squares solution for well-conditioned networks with approximate coordinates near the truth. Experimental: check it against your adjustment software before relying on it

Worked example: One new point from two control points. Source: Weighted least squares after Ghilani and Wolf (2021), chapter 16.

You enter

Angles
B, A, P, 303-41-26, 5 P, B, A, 303-41-20, 5
Control points
A, 1000 m, 1000 m B, 1000 m, 1400 m
Distances
A, P, 360.567 m, 0.005 m B, P, 360.551 m, 0.005 m
Points to adjust
P, 1300 m, 1200 m

You get

Reference variance
0.346
Degrees of freedom
2
Chi-square test (95%)
passed
Chi-square
0.692
95% bounds
0.051 to 7.378
Iterations
2
Largest standardized residuals
distance A–P (-1.29); distance B–P (1.19); angle P–B–A (-0.97)

Review: Not yet independently reviewed by a licensed surveyor.

Last verified: 2026-09-23, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 6 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Experimental means this tool has not yet met the stable bar: at least 20 golden vectors, differential tests, and an independent worked example.