Stdlib module math/probability.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.
math/probability.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
- Purpose
- Taxonomy
- Implementation profile
- Top-level API inventory
- Position in family
- Declaration map
- Representative signatures
- How to use this module
- User example
- Keyword coverage
- Source shape
- Source landmarks
- Source organization
- Complete API catalog
- Integration boundaries
- Composition guidance
- Relationship table
- Neighbor modules
Overview
| Field | Value |
|---|---|
| Path | math/probability.vitl |
| Family | math |
| Kind | public stdlib surface |
| Line count | 620 |
| Declared procedures | 58 |
| Declared forms/picks | 0 |
`math/probability.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.
- 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.
| Signal | Count | What it suggests |
|---|---|---|
if | 48 | Branching density and local decision-making. |
while | 11 | Loop-heavy or iterative implementation style. |
for | 0 | Collection-style traversal at source level. |
match | 0 | Variant-driven branching or grammar-style decoding. |
let | 65 | Local state and intermediate value density. |
give | 105 | Number of explicit exit points and result shaping. |
Top-level API inventory
| Surface | Items |
|---|---|
| Procedures | abs_int, min_int, max_int, gcd_int, valid_n_k, clamp_non_negative, factorial, double_factorial, falling_factorial, rising_factorial, permutations, arrangements |
| Forms | none declared at top level |
| Picks | none declared at top level |
| Constants | none declared at top level |
| 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 14 of 21 in the math family when ordered by path. By procedure count it ranks 6, and by line count it ranks 8. 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.
| Line | Name | Kind | Role |
|---|---|---|---|
| 1 | vitte/stdlib/math/probability | space | Declares the namespace that anchors this file in the stdlib tree. |
| 11 | abs_int | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 19 | min_int | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 27 | max_int | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 35 | gcd_int | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 48 | valid_n_k | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 52 | clamp_non_negative | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 64 | factorial | proc | Implements a counting or probability helper inside the math boundary. |
| 84 | double_factorial | proc | Implements a counting or probability helper inside the math boundary. |
| 104 | falling_factorial | proc | Implements a counting or probability helper inside the math boundary. |
| 125 | rising_factorial | proc | Implements a counting or probability helper inside the math boundary. |
| 150 | permutations | proc | Implements a counting or probability helper inside the math boundary. |
| 154 | arrangements | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 158 | permutations_with_repetition | proc | Implements a counting or probability helper inside the math boundary. |
| 182 | combinations | proc | Implements a counting or probability helper inside the math boundary. |
| 221 | choose | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 225 | combinations_with_repetition | proc | Implements a counting or probability helper inside the math boundary. |
| 242 | multiset_combinations | proc | Implements a counting or probability helper inside the math boundary. |
| 250 | pairings | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 259 | unordered_pairs | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 263 | ordered_pairs | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 272 | derangements | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 305 | ratio_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 313 | percentage_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 321 | probability | proc | Implements a counting or probability helper inside the math boundary. |
| 325 | probability_percent | proc | Implements a counting or probability helper inside the math boundary. |
| 333 | probability_percent_f64 | proc | Implements a counting or probability helper inside the math boundary. |
| 337 | permille_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 345 | basis_points_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 353 | complement_probability | proc | Implements a counting or probability helper inside the math boundary. |
| 362 | complement_percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 371 | success_rate_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 375 | failure_rate_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 384 | success_rate_percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 388 | failure_rate_percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 401 | odds_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 409 | odds_percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 417 | odds_ratio | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 421 | odds_ratio_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 425 | success_failure_ratio_percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 429 | relative_risk_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 440 | odds_ratio_2x2 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 454 | favorable_probability | proc | Implements a counting or probability helper inside the math boundary. |
| 458 | equally_likely_probability | proc | Implements a counting or probability helper inside the math boundary. |
| 462 | union_probability_disjoint | proc | Implements a counting or probability helper inside the math boundary. |
| 466 | union_probability | proc | Implements a counting or probability helper inside the math boundary. |
| 470 | intersection_independent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 474 | complement_from_probability | proc | Implements a counting or probability helper inside the math boundary. |
| 478 | conditional_probability | proc | Implements a counting or probability helper inside the math boundary. |
| 486 | expected_value_binary | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 497 | binomial_pmf | proc | Implements a counting or probability helper inside the math boundary. |
| 526 | geometric_pmf | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 547 | hypergeometric_pmf | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 583 | percent | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 587 | percent_f64 | proc | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 591 | choose_probability | proc | Implements a counting or probability helper inside the math boundary. |
| 595 | probability_version | proc | Implements a counting or probability helper inside the math boundary. |
| 599 | probability_ready | proc | Implements a counting or probability helper inside the math boundary. |
| 603 | probability_selftest | proc | Implements a counting or probability helper inside the math boundary. |
The table is exhaustive for top-level declarations of the selected kinds. This file declares 59 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.
proc abs_int(value: int) -> int {(line 11)proc min_int(a: int, b: int) -> int {(line 19)proc max_int(a: int, b: int) -> int {(line 27)proc gcd_int(a: int, b: int) -> int {(line 35)proc valid_n_k(n: int, k: int) -> bool {(line 48)proc clamp_non_negative(value: int) -> int {(line 52)proc factorial(value: int) -> int {(line 64)proc double_factorial(value: int) -> int {(line 84)proc falling_factorial(n: int, k: int) -> int {(line 104)proc rising_factorial(n: int, k: int) -> int {(line 125)proc permutations(n: int, k: int) -> int {(line 150)proc arrangements(n: int, k: int) -> int {(line 154)proc permutations_with_repetition(n: int, k: int) -> int {(line 158)proc combinations(n: int, k: int) -> int {(line 182)proc choose(n: int, k: int) -> int {(line 221)proc combinations_with_repetition(n: int, k: int) -> int {(line 225)proc multiset_combinations(n: int, k: int) -> int {(line 242)proc pairings(total: int) -> int {(line 250)
The list is intentionally capped here; the source file declares 58 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.
- Read
spaceand top-level imports first so the ownership boundary ofmath/probability.vitlis explicit. - Traverse procedures in source order; the early helpers usually explain the naming and numeric conventions used later.
- Use the source landmarks section below as a table of contents when the file is large.
- 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_probability
proc run_example() -> string {
let result = abs_int(1)
let ready: bool = valid_n_k(1, 1)
let stable: bool = ready and true
let fallback: bool = ready or false
let idx: int = 0
while idx < 1 {
set idx = idx + 1
}
if not 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.
| Keyword | Present in module source | Used in generated user example |
|---|---|---|
space | yes | yes |
proc | yes | yes |
let | yes | yes |
set | yes | yes |
if | yes | yes |
else | yes | yes |
while | yes | yes |
give | yes | yes |
export | yes | yes |
true | yes | yes |
and | yes | yes |
or | yes | yes |
not | yes | yes |
as | yes | yes |
The generated snippet exercises every detected Vitte keyword used by this module.
Source shape
space vitte/stdlib/math/probability
proc abs_int(value: int) -> int {
if value < 0 {
give -value
} else {
give value
}
}
proc min_int(a: int, b: int) -> int {
if a < b {
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.
- Probability / combinatorics — ultra complete module
- Internal helpers
- Factorial family
- Permutations / arrangements
- Combinations
- Pairings / simple counts
- Ratios / percentages
- Odds / ratios
- Discrete probability helpers
- Classical discrete distributions
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/probability
Internal helpers
Top-level items: 6. Procedures: 6. Data surfaces: 0. Constants: 0.
First visible names: abs_int, min_int, max_int, gcd_int, valid_n_k, clamp_non_negative
Factorial family
Top-level items: 4. Procedures: 4. Data surfaces: 0. Constants: 0.
First visible names: factorial, double_factorial, falling_factorial, rising_factorial
Permutations / arrangements
Top-level items: 3. Procedures: 3. Data surfaces: 0. Constants: 0.
First visible names: permutations, arrangements, permutations_with_repetition
Combinations
Top-level items: 4. Procedures: 4. Data surfaces: 0. Constants: 0.
First visible names: combinations, choose, combinations_with_repetition, multiset_combinations
Pairings / simple counts
Top-level items: 4. Procedures: 4. Data surfaces: 0. Constants: 0.
First visible names: pairings, unordered_pairs, ordered_pairs, derangements
Ratios / percentages
Top-level items: 13. Procedures: 13. Data surfaces: 0. Constants: 0.
First visible names: ratio_f64, percentage_f64, probability, probability_percent, probability_percent_f64, permille_f64, basis_points_f64, complement_probability, complement_percent, success_rate_f64
Odds / ratios
Top-level items: 7. Procedures: 7. Data surfaces: 0. Constants: 0.
First visible names: odds_f64, odds_percent, odds_ratio, odds_ratio_f64, success_failure_ratio_percent, relative_risk_f64, odds_ratio_2x2
Discrete probability helpers
Top-level items: 8. Procedures: 8. Data surfaces: 0. Constants: 0.
First visible names: favorable_probability, equally_likely_probability, union_probability_disjoint, union_probability, intersection_independent, complement_from_probability, conditional_probability, expected_value_binary
Classical discrete distributions
Top-level items: 3. Procedures: 3. Data surfaces: 0. Constants: 0.
First visible names: binomial_pmf, geometric_pmf, hypergeometric_pmf
Convenience aliases
Top-level items: 7. Procedures: 6. Data surfaces: 0. Constants: 0.
First visible names: percent, percent_f64, choose_probability, probability_version, probability_ready, probability_selftest, *
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.
Procedures
| Line | Name | Signature | Role |
|---|---|---|---|
| 11 | abs_int | proc abs_int(value: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 19 | min_int | proc min_int(a: int, b: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 27 | max_int | proc max_int(a: int, b: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 35 | gcd_int | proc gcd_int(a: int, b: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 48 | valid_n_k | proc valid_n_k(n: int, k: int) -> bool { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 52 | clamp_non_negative | proc clamp_non_negative(value: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 64 | factorial | proc factorial(value: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 84 | double_factorial | proc double_factorial(value: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 104 | falling_factorial | proc falling_factorial(n: int, k: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 125 | rising_factorial | proc rising_factorial(n: int, k: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 150 | permutations | proc permutations(n: int, k: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 154 | arrangements | proc arrangements(n: int, k: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 158 | permutations_with_repetition | proc permutations_with_repetition(n: int, k: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 182 | combinations | proc combinations(n: int, k: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 221 | choose | proc choose(n: int, k: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 225 | combinations_with_repetition | proc combinations_with_repetition(n: int, k: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 242 | multiset_combinations | proc multiset_combinations(n: int, k: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 250 | pairings | proc pairings(total: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 259 | unordered_pairs | proc unordered_pairs(total: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 263 | ordered_pairs | proc ordered_pairs(total: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 272 | derangements | proc derangements(n: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 305 | ratio_f64 | proc ratio_f64(part: int, total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 313 | percentage_f64 | proc percentage_f64(part: int, total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 321 | probability | proc probability(part: int, total: int) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 325 | probability_percent | proc probability_percent(part: int, total: int) -> int { | Implements a counting or probability helper inside the math boundary. |
| 333 | probability_percent_f64 | proc probability_percent_f64(part: int, total: int) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 337 | permille_f64 | proc permille_f64(part: int, total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 345 | basis_points_f64 | proc basis_points_f64(part: int, total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 353 | complement_probability | proc complement_probability(part: int, total: int) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 362 | complement_percent | proc complement_percent(part: int, total: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 371 | success_rate_f64 | proc success_rate_f64(successes: int, total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 375 | failure_rate_f64 | proc failure_rate_f64(successes: int, total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 384 | success_rate_percent | proc success_rate_percent(successes: int, total: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 388 | failure_rate_percent | proc failure_rate_percent(successes: int, total: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 401 | odds_f64 | proc odds_f64(successes: int, failures: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 409 | odds_percent | proc odds_percent(successes: int, failures: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 417 | odds_ratio | proc odds_ratio(successes: int, failures: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 421 | odds_ratio_f64 | proc odds_ratio_f64(successes: int, failures: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 425 | success_failure_ratio_percent | proc success_failure_ratio_percent(successes: int, failures: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 429 | relative_risk_f64 | proc relative_risk_f64(exposed_successes: int, exposed_total: int, control_successes: int, control_total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 440 | odds_ratio_2x2 | proc odds_ratio_2x2(a: int, b: int, c: int, d: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 454 | favorable_probability | proc favorable_probability(favorable: int, total: int) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 458 | equally_likely_probability | proc equally_likely_probability(favorable: int, possible: int) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 462 | union_probability_disjoint | proc union_probability_disjoint(p_a: f64, p_b: f64) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 466 | union_probability | proc union_probability(p_a: f64, p_b: f64, p_intersection: f64) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 470 | intersection_independent | proc intersection_independent(p_a: f64, p_b: f64) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 474 | complement_from_probability | proc complement_from_probability(p: f64) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 478 | conditional_probability | proc conditional_probability(intersection: f64, given_event: f64) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 486 | expected_value_binary | proc expected_value_binary(success_probability: f64, success_value: f64, failure_value: f64) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 497 | binomial_pmf | proc binomial_pmf(trials: int, successes: int, p: f64) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 526 | geometric_pmf | proc geometric_pmf(trial_index: int, p: f64) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 547 | hypergeometric_pmf | proc hypergeometric_pmf(population: int, success_population: int, draws: int, observed_successes: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 583 | percent | proc percent(part: int, total: int) -> int { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 587 | percent_f64 | proc percent_f64(part: int, total: int) -> f64 { | Represents one top-level surface in the file contract and should be read as part of the module boundary. |
| 591 | choose_probability | proc choose_probability(favorable: int, total: int) -> f64 { | Implements a counting or probability helper inside the math boundary. |
| 595 | probability_version | proc probability_version() -> string { | Implements a counting or probability helper inside the math boundary. |
| 599 | probability_ready | proc probability_ready() -> bool { | Implements a counting or probability helper inside the math boundary. |
| 603 | probability_selftest | proc probability_selftest() -> bool { | Implements a counting or probability helper inside the math boundary. |
Exports
| Line | Name | Signature | Role |
|---|---|---|---|
| 620 | * | 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/probability.vitlwhen 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.vitlbefore 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.
| Neighbor | Procedures | Data surfaces | Why compare it |
|---|---|---|---|
math/algebra.vitl | 14 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |
math/arithmetic.vitl | 72 | 2 | Shares the same family boundary but carries a distinct slice of responsibility. |
math/arrays.vitl | 83 | 2 | Shares the same family boundary but carries a distinct slice of responsibility. |
math/calculus.vitl | 56 | 3 | Shares the same family boundary but carries a distinct slice of responsibility. |
math/comparison.vitl | 47 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |
math/complex.vitl | 49 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |
math/geometry.vitl | 72 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |
math/logic.vitl | 20 | 0 | Shares the same family boundary but carries a distinct slice of responsibility. |