Stdlib module math/trigonometry.vitl

This page is a wiki-style reference for one concrete stdlib file. It explains what the file owns, where it fits in the family, and how to decide whether this is the right surface to depend on.

Visual portrait of math/trigonometry.vitl
Wiki-style portrait for math/trigonometry.vitl.

Family: math

Kind: public stdlib surface

Page style: this reference follows the same “encyclopedic card + portrait + usage contract” logic as the keyword pages, but for stdlib modules.

Summary

Overview

FieldValue
Pathmath/trigonometry.vitl
Familymath
Kindpublic stdlib surface
Line count721
Declared procedures86
Declared forms/picks0

`math/trigonometry.vitl` is a public stdlib surface inside the `math` family. It should be read as one focused slice of the broader family responsibility: Arithmetic, algebra, comparison, calculus, geometry, modular arithmetic, number theory, probability, statistics, matrix, and vector helpers.

Purpose

This file should be chosen because of responsibility, not because its name “sounds close enough”. Inside the math family, it carries one focused part of the contract and keeps that responsibility separate from neighboring concerns.

  • A scoring engine can compute aggregates in `math` while keeping I/O and transport elsewhere.
  • A statistics or matrix chapter should explain the workflow around the computation, not just a single formula.

Taxonomy

Think of this page as a generated encyclopedia entry rather than a hand-written tutorial. The goal is to show what kind of module this is, how dense it is, and what reading strategy makes sense before depending on it.

  • Large algorithm surface: this file exposes many procedures and likely acts as a domain toolkit rather than a single thin wrapper.
  • Has tuning constants: part of the module behavior is controlled by named constants that document default precision, limits, or policy.
  • Minimal top-level dependencies: the module reads as mostly self-contained from its opening declarations.
  • Explicit export surface: the file ends with visible export declarations instead of relying only on implicit namespace discovery.

Implementation profile

This profile is inferred directly from the source text. It does not replace reading the file, but it tells you quickly whether the module is mostly declarative, loop-heavy, branch-heavy, or organized around many small exits.

SignalCountWhat it suggests
if55Branching density and local decision-making.
while6Loop-heavy or iterative implementation style.
for0Collection-style traversal at source level.
match0Variant-driven branching or grammar-style decoding.
let145Local state and intermediate value density.
give138Number of explicit exit points and result shaping.

Top-level API inventory

SurfaceItems
Proceduresabs_f64, min_f64, max_f64, clamp_f64, sign_f64, is_near_zero, normalize_degrees, normalize_radians, wrap_radians, degrees_to_radians, radians_to_degrees, opposite_angle
Formsnone declared at top level
Picksnone declared at top level
ConstantsPI, HALF_PI, QUARTER_PI, TWO_PI, THREE_HALF_PI, DEG_TO_RAD, RAD_TO_DEG, EPSILON, SERIES_STEPS
Exports*

Imported surfaces

This file does not advertise a top-level `use` surface in its opening declarations. That often means it is either self-contained or an aggregation layer.

Position in family

This file is module 20 of 21 in the math family when ordered by path. By procedure count it ranks 2, and by line count it ranks 3. Those ranks are useful as rough signals of breadth, not as quality judgments.

Declaration map

The declaration map turns raw source into a scan-friendly catalog. It is useful when the file is large enough that a reader wants to orient by kinds of surfaces first.

LineNameKindRole
1vitte/stdlib/math/trigonometryspaceDeclares the namespace that anchors this file in the stdlib tree.
7PIconstDefines a named constant reused across the module.
8HALF_PIconstDefines a named constant reused across the module.
9QUARTER_PIconstDefines a named constant reused across the module.
10TWO_PIconstDefines a named constant reused across the module.
11THREE_HALF_PIconstDefines a named constant reused across the module.
12DEG_TO_RADconstDefines a named constant reused across the module.
13RAD_TO_DEGconstDefines a named constant reused across the module.
14EPSILONconstDefines a bound or precision constant that shapes runtime behavior.
15SERIES_STEPSconstDefines a named constant reused across the module.
17abs_f64procRepresents one top-level surface in the file contract and should be read as part of the module boundary.
25min_f64procRepresents one top-level surface in the file contract and should be read as part of the module boundary.
33max_f64procRepresents one top-level surface in the file contract and should be read as part of the module boundary.
41clamp_f64procRepresents one top-level surface in the file contract and should be read as part of the module boundary.
51sign_f64procImplements a security-sensitive transformation in the crypto boundary.
61is_near_zeroprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
65normalize_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
78normalize_radiansprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
91wrap_radiansprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
99degrees_to_radiansprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
103radians_to_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
107opposite_angleprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
112complement_angleprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
116supplement_angleprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
120angle_delta_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
133angle_distance_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
137angle_delta_radiansprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
150angle_distance_radiansprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
154quadrantprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
168is_axis_angleprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
177is_right_angleprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
186is_straight_angleprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
192is_full_turn_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
197turns_to_radiansprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
201radians_to_turnsprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
205square_f64procRepresents one top-level surface in the file contract and should be read as part of the module boundary.
209cube_f64procRepresents one top-level surface in the file contract and should be read as part of the module boundary.
213reduce_to_half_piprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
224factorial_f64procImplements a counting or probability helper inside the math boundary.
234sin_series_coreprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
253cos_series_coreprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
272sinprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
276cosprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
280tanprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
288secprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
296cscprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
304cotprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
312sin_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
316cos_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
320tan_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
324sec_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
328csc_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
332cot_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
336atan_seriesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
346atanprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
360sqrt_f64_localprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
375asin_seriesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
384asin_atan_identityprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
402asinprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
411acosprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
415atan2procRepresents one top-level surface in the file contract and should be read as part of the module boundary.
439asecprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
447acscprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
455acotprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
463atan_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
467atan2_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
471asin_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
475acos_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
479exp_f64_localprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
491log_f64_localprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
501sinhprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
509coshprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
517tanhprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
525sechprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
533cschprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
541cothprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
549asinhprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
557acoshprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
568atanhprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
579haversinprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
585ahaversinprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
591versinprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
595coversinprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
599exsecprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
603chordprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
608sincprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
615normalized_sincprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
623polar_xprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
627polar_yprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
631polar_x_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
636polar_y_degreesprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
641pow_f64_localprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
661round_f64_localprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
673trigonometry_versionprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
677trigonometry_readyprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.
681trigonometry_selftestprocRepresents one top-level surface in the file contract and should be read as part of the module boundary.

The table is exhaustive for top-level declarations of the selected kinds. This file declares 96 matching surfaces.

Representative signatures

These signatures are shown in source order so the page keeps the feel of a reference manual, not just a keyword cloud.

  • const PI: f64 = 3.141592653589793 (line 7)
  • const HALF_PI: f64 = 1.5707963267948966 (line 8)
  • const QUARTER_PI: f64 = 0.7853981633974483 (line 9)
  • const TWO_PI: f64 = 6.283185307179586 (line 10)
  • const THREE_HALF_PI: f64 = 4.71238898038469 (line 11)
  • const DEG_TO_RAD: f64 = 0.017453292519943295 (line 12)
  • const RAD_TO_DEG: f64 = 57.29577951308232 (line 13)
  • const EPSILON: f64 = 0.000001 (line 14)
  • const SERIES_STEPS: i64 = 8 (line 15)
  • proc abs_f64(value: f64) -> f64 { (line 17)
  • proc min_f64(a: f64, b: f64) -> f64 { (line 25)
  • proc max_f64(a: f64, b: f64) -> f64 { (line 33)
  • proc clamp_f64(value: f64, low: f64, high: f64) -> f64 { (line 41)
  • proc sign_f64(value: f64) -> f64 { (line 51)
  • proc is_near_zero(value: f64) -> bool { (line 61)
  • proc normalize_degrees(value: f64) -> f64 { (line 65)
  • proc normalize_radians(value: f64) -> f64 { (line 78)
  • proc wrap_radians(value: f64) -> f64 { (line 91)

The list is intentionally capped here; the source file declares 95 matching signatures in total.

How to use this module

Start by reading the file as an ownership boundary. Ask three questions: what enters this module, what stable types or procedures it exports, and what adjacent module should stay outside of it.

  1. Read space and top-level imports first so the ownership boundary of math/trigonometry.vitl is explicit.
  2. Scan constants before procedures; they often encode precision, limits, or policy assumptions that explain later behavior.
  3. Traverse procedures in source order; the early helpers usually explain the naming and numeric conventions used later.
  4. Use the source landmarks section below as a table of contents when the file is large.
  5. Only after that compare neighbor modules, because the right boundary choice matters more than memorizing one helper name.

User example

This example is generated from the actual stdlib module surface. Its job is not to be the smallest snippet possible; its job is to show a realistic consumer-shaped file that exercises the module and mirrors the language keywords the module itself relies on.

space demo/math_trigonometry
const SAMPLE_LABEL: string = "demo"
proc run_example() -> string {
  let result = abs_f64(1.0)
  let ready: bool = is_near_zero(1.0)
  let stable: bool = ready and true
  let fallback: bool = ready or false
  let idx: int = 0
  while idx < 1 {
    set idx = idx + 1
  }
  if ready {
    give "not-ready"
  } else {
    give "ok"
  }
  let copies: f64 = 1 as f64
}
export run_example

Keyword coverage

This table makes the “all keywords of the module” requirement auditable. It compares the detected Vitte keywords in the source file with the generated consumer example above.

KeywordPresent in module sourceUsed in generated user example
spaceyesyes
constyesyes
procyesyes
letyesyes
setyesyes
ifyesyes
elseyesyes
whileyesyes
giveyesyes
exportyesyes
trueyesyes
andyesyes
oryesyes
asyesyes

The generated snippet exercises every detected Vitte keyword used by this module.

Source shape

space vitte/stdlib/math/trigonometry
const PI: f64 = 3.141592653589793
const HALF_PI: f64 = 1.5707963267948966
const QUARTER_PI: f64 = 0.7853981633974483
const TWO_PI: f64 = 6.283185307179586
const THREE_HALF_PI: f64 = 4.71238898038469
const DEG_TO_RAD: f64 = 0.017453292519943295
const RAD_TO_DEG: f64 = 57.29577951308232
const EPSILON: f64 = 0.000001
const SERIES_STEPS: i64 = 8

The excerpt is not meant to replace the file. It exists to make the module recognizable at first glance, the same way a Wikipedia infobox helps the reader orient before reading the whole article.

Source landmarks

Large files are easier to retain when they have visible landmarks. When the source contains explicit section banners, they are surfaced here; otherwise the first major declarations are used as anchors.

  • Trigonometry — angle normalization and trig approximations

Source organization

When a file carries its own internal chaptering, those chapters usually reveal the intended reading order better than a flat symbol list. This section reconstructs that organization from the source itself.

Opening declarations

Top-level items: 1. Procedures: 0. Data surfaces: 0. Constants: 0.

First visible names: vitte/stdlib/math/trigonometry

Trigonometry — angle normalization and trig approximations

Top-level items: 96. Procedures: 86. Data surfaces: 0. Constants: 9.

First visible names: PI, HALF_PI, QUARTER_PI, TWO_PI, THREE_HALF_PI, DEG_TO_RAD, RAD_TO_DEG, EPSILON, SERIES_STEPS, abs_f64

Complete API catalog

This catalog is the exhaustive file-level index for the module. It is intentionally closer to a generated encyclopedia appendix than to a tutorial summary.

Constants

LineNameSignatureRole
7PIconst PI: f64 = 3.141592653589793Defines a named constant reused across the module.
8HALF_PIconst HALF_PI: f64 = 1.5707963267948966Defines a named constant reused across the module.
9QUARTER_PIconst QUARTER_PI: f64 = 0.7853981633974483Defines a named constant reused across the module.
10TWO_PIconst TWO_PI: f64 = 6.283185307179586Defines a named constant reused across the module.
11THREE_HALF_PIconst THREE_HALF_PI: f64 = 4.71238898038469Defines a named constant reused across the module.
12DEG_TO_RADconst DEG_TO_RAD: f64 = 0.017453292519943295Defines a named constant reused across the module.
13RAD_TO_DEGconst RAD_TO_DEG: f64 = 57.29577951308232Defines a named constant reused across the module.
14EPSILONconst EPSILON: f64 = 0.000001Defines a bound or precision constant that shapes runtime behavior.
15SERIES_STEPSconst SERIES_STEPS: i64 = 8Defines a named constant reused across the module.

Procedures

LineNameSignatureRole
17abs_f64proc abs_f64(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
25min_f64proc min_f64(a: f64, b: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
33max_f64proc max_f64(a: f64, b: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
41clamp_f64proc clamp_f64(value: f64, low: f64, high: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
51sign_f64proc sign_f64(value: f64) -> f64 {Implements a security-sensitive transformation in the crypto boundary.
61is_near_zeroproc is_near_zero(value: f64) -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
65normalize_degreesproc normalize_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
78normalize_radiansproc normalize_radians(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
91wrap_radiansproc wrap_radians(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
99degrees_to_radiansproc degrees_to_radians(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
103radians_to_degreesproc radians_to_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
107opposite_angleproc opposite_angle(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
112complement_angleproc complement_angle(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
116supplement_angleproc supplement_angle(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
120angle_delta_degreesproc angle_delta_degrees(from_value: f64, to_value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
133angle_distance_degreesproc angle_distance_degrees(a: f64, b: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
137angle_delta_radiansproc angle_delta_radians(from_value: f64, to_value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
150angle_distance_radiansproc angle_distance_radians(a: f64, b: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
154quadrantproc quadrant(value: f64) -> i64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
168is_axis_angleproc is_axis_angle(value: f64) -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
177is_right_angleproc is_right_angle(value: f64) -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
186is_straight_angleproc is_straight_angle(value: f64) -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
192is_full_turn_degreesproc is_full_turn_degrees(value: f64) -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
197turns_to_radiansproc turns_to_radians(turns: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
201radians_to_turnsproc radians_to_turns(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
205square_f64proc square_f64(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
209cube_f64proc cube_f64(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
213reduce_to_half_piproc reduce_to_half_pi(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
224factorial_f64proc factorial_f64(value: i64) -> f64 {Implements a counting or probability helper inside the math boundary.
234sin_series_coreproc sin_series_core(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
253cos_series_coreproc cos_series_core(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
272sinproc sin(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
276cosproc cos(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
280tanproc tan(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
288secproc sec(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
296cscproc csc(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
304cotproc cot(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
312sin_degreesproc sin_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
316cos_degreesproc cos_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
320tan_degreesproc tan_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
324sec_degreesproc sec_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
328csc_degreesproc csc_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
332cot_degreesproc cot_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
336atan_seriesproc atan_series(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
346atanproc atan(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
360sqrt_f64_localproc sqrt_f64_local(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
375asin_seriesproc asin_series(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
384asin_atan_identityproc asin_atan_identity(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
402asinproc asin(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
411acosproc acos(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
415atan2proc atan2(y: f64, x: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
439asecproc asec(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
447acscproc acsc(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
455acotproc acot(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
463atan_degreesproc atan_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
467atan2_degreesproc atan2_degrees(y: f64, x: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
471asin_degreesproc asin_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
475acos_degreesproc acos_degrees(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
479exp_f64_localproc exp_f64_local(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
491log_f64_localproc log_f64_local(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
501sinhproc sinh(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
509coshproc cosh(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
517tanhproc tanh(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
525sechproc sech(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
533cschproc csch(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
541cothproc coth(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
549asinhproc asinh(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
557acoshproc acosh(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
568atanhproc atanh(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
579haversinproc haversin(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
585ahaversinproc ahaversin(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
591versinproc versin(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
595coversinproc coversin(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
599exsecproc exsec(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
603chordproc chord(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
608sincproc sinc(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
615normalized_sincproc normalized_sinc(value: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
623polar_xproc polar_x(radius: f64, angle_radians: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
627polar_yproc polar_y(radius: f64, angle_radians: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
631polar_x_degreesproc polar_x_degrees(radius: f64, angle_degrees: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
636polar_y_degreesproc polar_y_degrees(radius: f64, angle_degrees: f64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
641pow_f64_localproc pow_f64_local(base: f64, exponent: i64) -> f64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
661round_f64_localproc round_f64_local(value: f64) -> i64 {Represents one top-level surface in the file contract and should be read as part of the module boundary.
673trigonometry_versionproc trigonometry_version() -> string {Represents one top-level surface in the file contract and should be read as part of the module boundary.
677trigonometry_readyproc trigonometry_ready() -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.
681trigonometry_selftestproc trigonometry_selftest() -> bool {Represents one top-level surface in the file contract and should be read as part of the module boundary.

Exports

LineNameSignatureRole
721*export *Re-exports surfaces that the module wants to expose as part of its public boundary.

Integration boundaries

Within math, this file should remain focused. If a future helper changes the host boundary, scheduling boundary, or data-shape boundary, it probably belongs in a neighbor module instead of being added here by convenience.

  • Family responsibility: Arithmetic, algebra, comparison, calculus, geometry, modular arithmetic, number theory, probability, statistics, matrix, and vector helpers.
  • Family architecture role: Use `math` when the transformation itself is the feature. This family exists so algorithmic intent stays visible and testable.

Composition guidance

Choose this module when

  • Choose math/trigonometry.vitl when the main question is owned by this module rather than by transport, storage, orchestration, or user-interface code.
  • A scoring engine can compute aggregates in `math` while keeping I/O and transport elsewhere.
  • A statistics or matrix chapter should explain the workflow around the computation, not just a single formula.

Pause before extending it when

  • Avoid extending this file when the new helper mostly changes the boundary to host I/O, runtime coordination, or foreign integration instead of staying inside math.
  • Check nearby modules such as math/algebra.vitl, math/arithmetic.vitl, math/arrays.vitl before adding convenience wrappers here.

Relationship table

This table keeps the page closer to a real encyclopedia entry: a module is easier to understand when compared with its nearest alternatives in the same family.

NeighborProceduresData surfacesWhy compare it
math/algebra.vitl140Shares the same family boundary but carries a distinct slice of responsibility.
math/arithmetic.vitl722Shares the same family boundary but carries a distinct slice of responsibility.
math/arrays.vitl832Shares the same family boundary but carries a distinct slice of responsibility.
math/calculus.vitl563Shares the same family boundary but carries a distinct slice of responsibility.
math/comparison.vitl470Shares the same family boundary but carries a distinct slice of responsibility.
math/complex.vitl490Shares the same family boundary but carries a distinct slice of responsibility.
math/geometry.vitl720Shares the same family boundary but carries a distinct slice of responsibility.
math/logic.vitl200Shares the same family boundary but carries a distinct slice of responsibility.

Neighbor modules