Spherical law of cosines 2026-10-14
For a nondegenerate convex minor spherical triangle, the spherical law of cosines relates two angular sides , their included interior angle , and the opposite angular side :Relabelling the vertices gives the corresponding formulas for and . As with the spherical law of sines, physical side lengths must first be divided by the sphere's radius. The spherical law of cosines determines uniquely from when the data describe such a spherical triangle. It also recovers each interior angle from three sides, for exampleUsing the cosine and the range selects a unique angle, avoiding the supplementary-angle ambiguity of an inverse sine calculation.
To derive the spherical law of cosines, let be the vertex unit vectors at , so , and . The outgoing unit tangent vectors at are and . Their dot product is both and , proving the identity. This gives a geometric explanation: spherical trigonometry compares angles in the tangent plane using vectors in the surrounding Euclidean space.
For a worked example on the unit sphere, take the verticesAt , the outgoing unit tangent vectors are and , so the interior angle is a right angle. The vertex dot products give . The spherical law of cosines then reduces to the right-angle identity , givingTo find , use the relabelled spherical law of cosines:The physical side lengths on a sphere of radius are and . For example, on a toy sphere with metres they are approximately , and metres; the interior angles stay the same. Applying the planar Pythagorean theorem directly to the angular sides would instead give . That flat right triangle calculation does not give the great-circle distance between and .
The familiar law of cosines reappears as a local approximation. With all small in radians, substitute the small-angle approximations and into the spherical law of cosines and keep terms through second order:Multiplication by gives the planar law of cosines for the physical side lengths. For a fixed small surface triangle on a progressively larger sphere, the angular sides shrink and this approximation improves. Thus the curved and flat formulas fit together: the Pythagorean theorem is recovered locally when is a right angle.
Spherical point set Created 2026-09-24 Updated 2026-11-05
A finite set is spherical if all its points lie on one sphere: there are a center and radius with for every . Subtracting the squared-distance equation for gives the equivalent linear equationsThus consistency of a finite linear system tests whether a common center exists. A nondegenerate triangle is spherical, with center its circumcenter. Three distinct collinear points are not spherical: the equal-distance equations along their line are inconsistent. This is the geometric obstruction behind three-term unit arithmetic progression is not Euclidean Ramsey.
Every Euclidean Ramsey set is spherical. The converse was historically conjectured. A September2026 preprint by Dömötör Pálvölgyi reports the seven-point configurationas a counterexample. These points do lie on the circle ; the non-Ramsey assertion is Theorem1 of that dated preprint.[ref]
A cyclic non-Ramsey heptagon by Dömötör Pálvölgyi. Theorem1, arXiv:2609.23327v1, 20 September 2026
Steiner inellipse Created 2026-10-20 Updated 2026-10-25
In the illustrated simplicial subdivision, inserting the three edge midpoints turns one filled triangle into four. The counts change from to , but . Splitting a single edge adds one vertex and one edge, so its net contribution is . Adding a diagonal inside a polygonal face adds one edge and one face, giving .
These local accounts explain common refinements. For arbitrary finite simplicial subdivisions, including barycentric subdivision in any dimension, the underlying geometric realization is unchanged. The topological invariance of Euler characteristic therefore guarantees the same alternating count, even when the individual counts change substantially.
Support polygon 2026-11-05
A support polygon is the convex hull of a body's supporting contact positions, projected onto a horizontal plane. For a rigid body resting on that plane in a uniform gravitational field, with gravity as the only applied load besides support reactions, it describes which horizontal center of mass positions can admit static equilibrium. Widely separated feet can support a center of mass above empty space between them: the footprint's convex hull, rather than the material under every point, matters.[ref]
Robotic Systems by Kris Hauser. Chapter 12, Equilibrium conditions, support-polygon definition and Figure 3
The geometry follows directly from force and torque balance. Let the contact positions be and their upward normal forces be . The inequality expresses unilateral contact: an ordinary unbonded support can push the body upward but cannot pull it downward. For total mass , gravitational acceleration and horizontal center of mass projection , balance givesDivide by and write . ThenThus must be a convex combination of the contacts, which is exactly membership in their convex hull. Conversely, any such convex combination supplies nonnegative reactions satisfying this model's balance equations. The center of pressure of these vertical contact forces coincides with . This proves existence of allowable reactions; it does not determine every reaction uniquely when there are more contacts than independent balance equations.
For an original three-foot example, take contact positions , and in metres. The support polygon is the triangle described by , , . A body with requires the convex combination coefficientsWith , the corresponding normal forces are , and . Moving the projection to would require , a downward reaction at the first foot. No set of nonnegative normal forces can hold that configuration at rest under the stated loads.
A simple test uses a rigid plate on three small supports, a movable known mass, and three load cells measuring the upward reactions. Include the plate's own mass and center of mass when calculating the combined projection. As that projection approaches the edge , the first support's reading approaches zero. Beyond the edge, maintaining the same contact configuration would require the forbidden downward reaction; the observed motion or changed contact set marks the failure of the original static equilibrium. This is a proposed apparatus test of the balance equations, not reported experimental data.
The distance from an interior projection to the polygon's nearest edge is a static tipping margin; here it is . A boundary projection has zero margin: some supports unload, and an arbitrarily small outward shift can make balance impossible. A strictly interior projection gives a positive geometric margin against small horizontal shifts under the same model. It is not a general certificate of dynamical stability for a flexible or articulated system.
This explains a constraint in a quadrupedal robot's gait. Four feet at the corners of a square give a square support polygon. Lifting the corner leaves the triangle , , . A center of mass projection at was inside the square but is outside that triangle, so the body must shift or use dynamics to lift that foot without losing the assumed balance. The contact set must be updated when computing the support polygon.
The assumptions matter when applying the test. Nonhorizontal contacts require the full balance equations and admissible contact forces, including Coulomb friction; a projected hull alone need not decide feasibility on irregular terrain.[ref]
Robotic Systems by Kris Hauser. Chapter 12, Contact modeling, Equilibrium conditions and Multi-modal motion planning, Example 1
Additional horizontal loads also change the balance problem. For example, a horizontal force applied at center of mass height produces an overturning torque about the relevant edge. If the inward horizontal distance to that edge is , incipient tipping of a rigid body satisfies . Whether the body slides first depends on static friction. The gravity-only support polygon contains no information about or that additional load. Tail-sum formula Created 2026-09-24 Updated 2026-10-18
The tail-sum formula expresses an expected value as the area under a survival function. For every nonnegative random variable ,This Lebesgue integral and the expected value may both be ; a probability density function is unnecessary. For a random variable taking values in the nonnegative integers, the corresponding sum isThe events and coincide because takes integer values. Thus the strict sum starts at zero, while the inclusive sum starts at one.[ref]
Random: Probability, Mathematical Statistics, Stochastic Processes by Kyle Siegrist. Expected Value, §2 Additional Properties, Right Distribution Function: nonnegative tail integral and integer-valued tail sums
For an original example, let the probability mass function of beIts expected value computed directly is . The strict tail probabilities at thresholds are : their sum is again . There is no probability mass at two, yet the event still has probability . The survival function has heights on the successive intervals ; each interval has length one, so its integral is the same sum.
The same expected value from probability masses and survival columns
. The exact constructed probability mass function assigns to . The contribution appears in one survival column, while the contribution appears in three. Filled endpoints give the strict survival function at its jumps; open endpoints show the preceding height. The shaded area is . Details.The indexing matters numerically. Starting the inclusive sum at zero adds , giving for this example. Starting the strict sum at one omits , giving . For a general nonnegative random variable, replacing with inside the integral is harmless: the difference is , nonzero at only a countable set of thresholds. For each positive integer , at most thresholds can have probability mass at least ; their countable union contains all thresholds with positive probability mass and has Lebesgue measure zero. This reasoning concerns an integral, not equality of the two survival function conventions at every point.
For a continuous original example, take the uniform distribution on the interval . Its survival function is for and zero for . The area is a triangle of base four and height one:Directly integrating against the probability density function gives the same expected value, . The integral of the probability density function alone is one; it is the survival function whose area is the expected value.
The proof counts layers of each outcome. For a realized value , the indicator function equals one over an interval of length , soTonelli theorem permits the interchange because the indicator function is nonnegative; no finite expected value is assumed. Similarly, an outcome contributes one indicator random variable for each of the events that occur:Again Tonelli theorem applies to the nonnegative sum, or equivalently the monotone convergence theorem applies to its partial sums. This exchanges counting layers within each outcome with averaging across outcomes. The existing integer-valued hypothesis in the tail-sum formula explains what changes when the values are not integers; the tail integral formula for moments weights the layers to obtain higher moments.
For an integrable random variable that can have either sign, apply the nonnegative formula separately to its positive part and negative part :Integrability makes both integrals finite. More generally the difference defines an extended expected value when at least one is finite; if both are infinite, subtraction does not define an expected value.[ref]
Random: Probability, Mathematical Statistics, Stochastic Processes by Kyle Siegrist. Expected Value, §2 Additional Properties, A General Definition: positive and negative parts and the condition on their expectations
Tail probabilities are often easier to measure or bound than a whole probability density function. For a device's survival time, the survival function records the probability of still operating at each threshold; its integral gives the mean operating time. A finite observation window naturally gives the expected value of a capped nonnegative random variable. For a mathematical bound, for all implies . The tail-sum formula turns control of a whole family of events into control of an average.
Triangle Created 2026-09-24 Updated 2026-10-14
A triangle is the convex hull of three noncollinear points: the three vertices must not lie on one line. Its boundary consists of the three joining line segments; depending on context, "triangle" can mean this boundary or the filled region it encloses. Here a triangle's area refers to the filled region. The noncollinearity assumption excludes a collapsed shape with zero area, for which ordinary interior angles are not defined.
For example, the positions , and form a right triangle with a right angle at the origin. Taking the side of length as its base gives perpendicular height , so its area is . The height is measured at a right angle to the chosen base; it is not generally the length of another side. In this example it happens to be a side because the triangle is a right triangle.
By contrast, side lengths define a valid triangle: each side is shorter than the sum of the other two, as required by the strict triangle inequality. But , so this is not a right triangle and the Pythagorean theorem cannot calculate its longest side from the other two. The law of cosines instead gives the opposite interior angle throughThis example separates the definition of a triangle from the additional assumption of a right angle.
Every triangle in the Euclidean plane has interior angles summing to radians, a result proved in Euclid's Elements I.32.[ref] It lets two measured angles determine the third, and underlies the angle-angle criterion for similar triangles. The qualification "Euclidean plane" matters: the earlier spherical triangle demonstrates a different sum.
Triangle is a Euclidean Ramsey set Created 2026-09-24 Updated 2026-09-28
Triangle-triangle intersection algorithm 2026-10-14
For two noncoplanar triangles, first reject vertices strictly on one side of the other triangle's plane. Otherwise intersect each triangle with the other plane and compare the resulting intervals along the common line. Coplanar triangles require a planar overlap test; zero-area triangles require separate line segment or point tests.
// Target: analysis.bigb
Triangular prism Created 2026-09-24 Updated 2026-11-05
A triangular prism is a prism whose two bases are congruent parallel triangles. One base is a translation of the other by a vector not parallel to its plane. Joining corresponding vertices of a polygon gives three parallelogram side faces, nine edge of a polyhedron segments and six vertices of a polyhedron.
The triangular prism is right when the translation vector is perpendicular to the base plane. Only in that case is it an orthogonal Cartesian product of a triangle with a line segment. An oblique triangular prism still has volume , where is its base area and the perpendicular separation of the base planes; equal parallel cross sections give this formula by integration.
Triangulation of a convex polygon Created 2026-10-14 Updated 2026-10-20
A triangulation of a convex polygon divides a convex polygon into triangles using diagonals between its existing vertices of a polytope, with no diagonal crossings in the interior. For vertices it uses diagonals and produces triangles. Fixing one boundary edge, its adjacent triangle separates two smaller polygon regions; summing over the possible third vertices of a polytope gives the Catalan recurrence. Thus the number of triangulations of a convex polygon is , with the Catalan number. A quadrilateral has two choices and a pentagon has five.
Trigonometric function Created 2026-09-24 Updated 2026-10-13
Trigonometric functions turn an angle into a coordinate or a ratio of lengths. Start at on the unit circle and rotate counterclockwise through radians: the resulting point isThe cosine records horizontal position and the sine records vertical position. This definition continues around the whole circle, including negative angles, so the signs encode direction rather than requiring a separate rule for each right triangle.
The unit circle picture explains why these functions are useful beyond measuring triangles. The two coordinates of a point rotating at constant angular speed are periodic functions. Scaling the radius to and using gives and . A circular motion becomes two simple repeating traces, connecting Euclidean geometry, simple harmonic motion, and Fourier series.
For an acute angle in a right triangle, rescaling its hypotenuse to one recovers the familiar ratios: sine is opposite side divided by hypotenuse, and cosine is adjacent side divided by hypotenuse. The tangent function is their ratio, , wherever the denominator is nonzero; the secant function, cosecant, and cotangent give the other reciprocal ratios.
The same names extend to complex numbers through the complex exponential:These definitions agree with the circle interpretation for real angles. For complex arguments, the values need not lie between and ; the literal circle-coordinate picture is restricted to real arguments. [ref]
https://dlmf.nist.gov/4.14. NIST Digital Library of Mathematical Functions, §4.14: exponential definitions and periodicity
Two-dimensional cross product Created 2026-10-20 Updated 2026-10-25
For planar vectors and , the scalar is the determinant of their coordinate columns. It equals the perpendicular component of the three-dimensional cross product after embedding the plane in three dimensions. Its sign records orientation, and its absolute value is twice the area of the triangle spanned by .
Vector graphics 2026-10-13
Vector graphics represent a picture by geometric objects and instructions for drawing them: positions, shapes, fills, boundary strokes and transformations. A circle can be stored as a centre and radius; a rectangle as a corner, width and height; a polygon as an ordered list of vertices. These geometric primitives describe whole objects rather than assigning a colour to every pixel. SVG provides elements for such basic shapes and for paths assembled from line segments and curves.[ref]
The useful separation is between the stored geometry and the finite output. A circle of radius 2 remains the same geometric description whether rendered across twenty or two thousand output pixels. This is the sense in which vector graphics are resolution independent: increasing the output grid can evaluate the original geometry again. The resulting raster image still has finite spatial resolution, and numerical coordinates have finite precision. Enlarging a previously rendered raster image through interpolation instead works with its existing samples. Neither operation guarantees that arbitrarily thin details remain visible at every size.
An SVG path uses a current point and drawing commands. For example,
M 1 4 L 5 4 L 3 1 Z moves to , draws two line segments, then closes back to the starting point, giving a triangle. Uppercase commands use absolute coordinates; the corresponding lowercase commands use offsets from the current point. Thus M 1 4 l 4 0 l -2 -3 z describes the same triangle. The coordinates belong to the current user Cartesian coordinate system, not necessarily to output pixels.[ref]For a curved example, the path
M 1 4 Q 3 0 5 4 Z uses one quadratic Bézier curve followed by a closing line segment. With control points , and , its curved boundary isThe endpoints are , and ; the interior control point is not a point on the curve. A fill paints the enclosed region, while a stroke paints a band around its boundary with a chosen width. One can use either or both: geometry and paint instructions are distinct.[ref]https://www.w3.org/TR/SVG2/paths.html#PathDataQuadraticBezierCommands. W3C SVG Working Group, SVG 2, section 9.3.7: quadratic Bézier path commands
[ref]https://www.w3.org/TR/SVG2/painting.html#Introduction. W3C SVG Working Group, SVG 2, section 13.1: filling interiors and stroking outlines
The first illustration uses increasing downward, following the initial SVG coordinate convention. Its dashed control polygon guides the eye; it is not part of the filled path. Apply the affine mapThis combines horizontal scaling, a shear mapping and a translation. The transformed control points are , and , giving the path
M 4.5 5 Q 5.5 1 10.5 5 Z. Its curved midpoint is . The affine equivariance of a geometric basis explains why transforming only the control points transforms the entire Bézier curve: its weights sum to one, so the translation is added exactly once. The enclosed area is before transformation and afterwards. These checks concern the filled region, excluding the width of any stroke.An SVG
viewBox specifies a rectangle in user coordinates to map into a display region. For example, viewBox="0 0 6 6" in a square viewport of 120 by 120 display units gives a scale of 20 display units per user unit; in a square viewport of 600 by 600 it gives 100. The path's control points need not change. For unequal proportions, preserveAspectRatio controls whether the mapping preserves proportions or stretches the axes separately. These display units need not correspond one for one to physical display pixels.[ref]https://www.w3.org/TR/SVG2/coords.html#InitialCoordinateSystem. W3C SVG Working Group, SVG 2, section 8.4: initial axes and user units
[ref]Rasterization converts the geometric drawing into a raster image on a chosen grid. Deciding whether each pixel centre lies inside a filled region is a simple rule, but a moving diagonal boundary can make entire pixels switch abruptly. Antialiasing reduces these sampling artifacts by accounting for a footprint around each sample, rather than treating every pixel as a single inside-or-outside decision. This connects vector graphics to raster sampling and reconstruction and aliasing; a finer grid and a better sampling rule solve different parts of the problem.
For an exact analytical model, fill the region . For a square pixel footprint , letHere is geometric coverage, and is relative luminance for ideal opaque neutral shades, with and . The intersection and area determine how much of the footprint is covered. This is a specified area-average model, not a claim that every SVG renderer uses exact coverage. The SVG
shape-rendering property supplies rendering hints and permits implementation tradeoffs, including disabling antialiasing for some choices.[ref]On the grid of unit squares, has coverage , whereas the pixel centre lies inside and gives coverage 1 under the centre rule. The adjacent square has coverage but its centre lies outside. The entire filled area is . Summing exact coverage times cell area gives this value on both the and grids; the coarse centre rule instead gives 10. Coverage values are displayed after sRGB encoding of the modeled relative luminance. The thin coloured line is a geometry overlay, not an extra sampled stroke. Enlarging the middle panel by nearest-neighbor interpolation would repeat its sixteen values; re-rendering the geometry produces the 256 independently evaluated footprints in the right panel. Antialiasing reduces abrupt edges but cannot make a finite grid preserve every geometric detail.
The attractive feature of vector graphics is editability at the level of intent: move one control point to bend a boundary, change a circle's radius, or transform a whole diagram while keeping its parts aligned. Logos, technical diagrams and outline fonts benefit because their structure can be expressed with relatively few shapes and curves. A complicated photograph may require enormous geometric detail, so vector graphics do not imply a smaller file than raster graphics. Nor does an SVG container guarantee that every object is vector geometry: its
image element can embed or reference a PNG raster image. Transforming that embedded raster image changes its placement and reconstruction, but does not recover missing original detail.[ref]https://www.w3.org/TR/SVG2/embedded.html#ImageElement. W3C SVG Working Group, SVG 2, section 12.3: image elements and embedded raster content






