Angles & Circular Arithmetic

SkillDev tools

Abstract math for angle measurement, unit systems, and circular arithmetic. USE FOR: implementing angle types; converting between degrees/radians/gradians/revolutions; reducing angles to canonical range [0, Full); computing reference angles and quadrants; implementing safe modular arithmetic with negative inputs; angle addition and subtraction; classifying angles by sign and size. DO NOT USE FOR: trigonometric functions (use trigonometric-functions); coordinate conversions (use coordinate-system-conversions); interpolation (use interpolation-on-manifolds).

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Angles & Circular Arithmetic skill

What this skill tells your AI

The instructions your AI receives, as published by netfabric/netfabric.numerics in .agents/skills/angles-and-circular-arithmetic/SKILL.md and read by ahel’s review.

Unit Systems

UnitFull (2π equiv)RightStraight
Degrees36090180
Radiansπ/2π
Gradians400100200
Revolutions10.250.5

Conversion Factors (multiply source by factor)

From \ ToDegreesRadiansGradiansRevolutions
Degrees1π/18010/91/360
Radians180/π1200/π1/(2π)
Gradians9/10π/20011/400
Revolutions3604001

Canonical Reduction to [0, Full)

reduced = θ − Full × ⌊θ / Full⌋
Input (degrees)Result
−30°330°
360°
720°
−360°

Quadrant Classification (after reduction to [0°, 360°))

RangeName
θ = 0°PositiveX axis
0° < θ < 90°First
θ = 90°PositiveY axis
90° < θ < 180°Second
θ = 180°NegativeX axis
180° < θ < 270°Third
θ = 270°NegativeY axis
270° < θ < 360°Fourth

Reference Angle (acute angle to nearest x-axis)

QuadrantFormula
Firstθ
Second180° − θ
Thirdθ − 180°
Fourth360° − θ

Reference Files

FileLoad When
references/formulas.mdUnit conversion derivations, reduction algorithm, DMS format, arithmetic proofs
references/numerical-stability.mdMod with negatives, precision loss in conversion, large-angle reduction

Signals

GitHub stars
36
Forks
1
Last commit
Aug 2026
Advanced
Catalog kind
skill
Gateway key
angles-and-circular-arithmetic
Source
github.com/netfabric/netfabric.numerics