# marchbeta2087/numextend architecture

> Architecture diagram of the GitHub repository marchbeta2087/numextend, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/marchbeta2087/numextend
- Repository: https://github.com/marchbeta2087/numextend

## Overview

Numextend is a dependency-free C99 arbitrary-precision numerical library. Applications call its public numeric APIs to construct and operate on integers, fractions, floating-point values, and complex values; conversion APIs bridge those representations, while series and correctly rounded transcendental functions provide higher-level results. The graph preserves the documented type hierarchy and major numerical capabilities. Some subsystem links are documented in the README; source evidence is limited to the supplied excerpts and SOURCE INDEX, so unsampled implementation details are not inferred.

Main entry points: [`nex/convert/nex_convert.c`](https://github.com/marchbeta2087/numextend/blob/main/nex/convert/nex_convert.c) (Type conversion matrix), [`nex/bigfloat/nex_bigfloat.c`](https://github.com/marchbeta2087/numextend/blob/main/nex/bigfloat/nex_bigfloat.c) (Binary floating point), [`nex/bigdecimal/nex_bigdecimal.c`](https://github.com/marchbeta2087/numextend/blob/main/nex/bigdecimal/nex_bigdecimal.c) (Decimal floating point), [`nex/bigint/bin/nex_bigint_bin.c`](https://github.com/marchbeta2087/numextend/blob/main/nex/bigint/bin/nex_bigint_bin.c) (Binary integers)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_integer["Integer arithmetic"]
  node_binint["Binary integers<br/>[nex_bigint_bin.c]"]
  node_decint["Decimal integers<br/>[nex_bigint_dec.c]"]
  node_intconv["Integer conversion<br/>[nex_bigint_conv.c]"]
end

subgraph group_real["Real number types"]
  node_fraction["Exact fractions<br/>[nex_bigfrac.c]"]
  node_binaryfloat["Binary floating point<br/>[nex_bigfloat.c]"]
  node_binaryformat["Binary float I/O<br/>[nex_bigfloat_str.c]"]
  node_decimalfloat["Decimal floating point<br/>[nex_bigdecimal.c]"]
  node_decimalformat["Decimal float I/O"]
end

subgraph group_complex["Complex numbers"]
  node_floatcomplex["Binary complex"]
  node_decimalcomplex["Decimal complex"]
end

subgraph group_higher["Higher mathematics"]
  node_series["Series evaluation<br/>[nex_series.c]"]
  node_pade["Padé approximation<br/>[nex_series_pade.c]"]
  node_ball["Ball arithmetic<br/>[nex_ball.c]"]
  node_ballseries["Ball series<br/>[nex_ball_series.c]"]
  node_transcend["Transcendental functions<br/>[nex_transcend.c]"]
  node_decimaltranscend["Decimal transcendental"]
end

subgraph group_interop["Conversions"]
  node_conversion["Type conversion matrix<br/>[nex_convert.c]"]
  node_allocator["Memory allocation<br/>[nex_alloc.c]"]
end

node_application(("C application"))

node_application -->|"calls API"| node_binint
node_application -->|"calls API"| node_decint
node_application -->|"calls API"| node_fraction
node_application -->|"calls API"| node_binaryfloat
node_application -->|"calls API"| node_decimalfloat
node_application -->|"calls API"| node_floatcomplex
node_application -->|"calls API"| node_decimalcomplex
node_application -->|"calls API"| node_conversion
node_application -->|"calls API"| node_series
node_application -->|"calls API"| node_transcend
node_fraction -->|"builds on"| node_binint
node_binaryfloat -->|"builds on"| node_binint
node_decimalfloat -->|"builds on"| node_decint
node_floatcomplex -->|"builds on"| node_binaryfloat
node_decimalcomplex -->|"builds on"| node_decimalfloat
node_intconv -->|"converts"| node_binint
node_intconv -->|"converts"| node_decint
node_conversion -->|"converts"| node_binint
node_conversion -->|"converts"| node_decint
node_conversion -->|"converts"| node_fraction
node_conversion -->|"converts"| node_binaryfloat
node_conversion -->|"converts"| node_decimalfloat
node_conversion -->|"converts"| node_floatcomplex
node_conversion -->|"converts"| node_decimalcomplex
node_series -->|"accumulates with"| node_fraction
node_series -->|"uses conversions"| node_conversion
node_pade -->|"uses conversions"| node_conversion
node_transcend -->|"bounds with"| node_ball
node_decimaltranscend -->|"bounds with"| node_ball
node_binaryformat -->|"formats"| node_binaryfloat
node_decimalformat -->|"formats"| node_decimalfloat
node_floatcomplex -->|"uses functions"| node_transcend
node_decimalcomplex -->|"uses functions"| node_transcend

click node_binint "https://github.com/marchbeta2087/numextend/blob/main/nex/bigint/bin/nex_bigint_bin.c"
click node_decint "https://github.com/marchbeta2087/numextend/blob/main/nex/bigint/dec/nex_bigint_dec.c"
click node_intconv "https://github.com/marchbeta2087/numextend/blob/main/nex/bigint/nex_bigint_conv.c"
click node_fraction "https://github.com/marchbeta2087/numextend/blob/main/nex/bigfrac/nex_bigfrac.c"
click node_binaryfloat "https://github.com/marchbeta2087/numextend/blob/main/nex/bigfloat/nex_bigfloat.c"
click node_binaryformat "https://github.com/marchbeta2087/numextend/blob/main/nex/bigfloat/nex_bigfloat_str.c"
click node_decimalfloat "https://github.com/marchbeta2087/numextend/blob/main/nex/bigdecimal/nex_bigdecimal.c"
click node_decimalformat "https://github.com/marchbeta2087/numextend/blob/main/nex/bigdecimal/nex_bigdecimal_str.c"
click node_floatcomplex "https://github.com/marchbeta2087/numextend/blob/main/nex/bigcomplex/float/nex_bigcomplex_float.c"
click node_decimalcomplex "https://github.com/marchbeta2087/numextend/blob/main/nex/bigcomplex/decimal/nex_bigcomplex_decimal.c"
click node_conversion "https://github.com/marchbeta2087/numextend/blob/main/nex/convert/nex_convert.c"
click node_series "https://github.com/marchbeta2087/numextend/blob/main/nex/series/nex_series.c"
click node_pade "https://github.com/marchbeta2087/numextend/blob/main/nex/series/nex_series_pade.c"
click node_ball "https://github.com/marchbeta2087/numextend/blob/main/nex/ball/nex_ball.c"
click node_ballseries "https://github.com/marchbeta2087/numextend/blob/main/nex/ball/nex_ball_series.c"
click node_transcend "https://github.com/marchbeta2087/numextend/blob/main/nex/transcend/nex_transcend.c"
click node_decimaltranscend "https://github.com/marchbeta2087/numextend/blob/main/nex/transcend/nex_transcend_dec.c"
click node_allocator "https://github.com/marchbeta2087/numextend/blob/main/nex/nex_alloc.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_binint,node_decint,node_intconv toneBlue
class node_fraction,node_binaryfloat,node_binaryformat,node_decimalfloat,node_decimalformat toneAmber
class node_floatcomplex,node_decimalcomplex toneMint
class node_series,node_pade,node_ball,node_ballseries,node_transcend,node_decimaltranscend toneRose
class node_conversion,node_allocator,node_application toneIndigo
```

## Components

### Integer arithmetic

- [Binary integers](https://github.com/marchbeta2087/numextend/blob/main/nex/bigint/bin/nex_bigint_bin.c): `nex/bigint/bin/nex_bigint_bin.c`
- [Decimal integers](https://github.com/marchbeta2087/numextend/blob/main/nex/bigint/dec/nex_bigint_dec.c): `nex/bigint/dec/nex_bigint_dec.c`
- [Integer conversion](https://github.com/marchbeta2087/numextend/blob/main/nex/bigint/nex_bigint_conv.c): `nex/bigint/nex_bigint_conv.c`

### Real number types

- [Exact fractions](https://github.com/marchbeta2087/numextend/blob/main/nex/bigfrac/nex_bigfrac.c): `nex/bigfrac/nex_bigfrac.c`
- [Binary floating point](https://github.com/marchbeta2087/numextend/blob/main/nex/bigfloat/nex_bigfloat.c): `nex/bigfloat/nex_bigfloat.c`
- [Binary float I/O](https://github.com/marchbeta2087/numextend/blob/main/nex/bigfloat/nex_bigfloat_str.c): `nex/bigfloat/nex_bigfloat_str.c`
- [Decimal floating point](https://github.com/marchbeta2087/numextend/blob/main/nex/bigdecimal/nex_bigdecimal.c): `nex/bigdecimal/nex_bigdecimal.c`
- [Decimal float I/O](https://github.com/marchbeta2087/numextend/blob/main/nex/bigdecimal/nex_bigdecimal_str.c): `nex/bigdecimal/nex_bigdecimal_str.c`

### Complex numbers

- [Binary complex](https://github.com/marchbeta2087/numextend/blob/main/nex/bigcomplex/float/nex_bigcomplex_float.c): `nex/bigcomplex/float/nex_bigcomplex_float.c`
- [Decimal complex](https://github.com/marchbeta2087/numextend/blob/main/nex/bigcomplex/decimal/nex_bigcomplex_decimal.c): `nex/bigcomplex/decimal/nex_bigcomplex_decimal.c`

### Higher mathematics

- [Series evaluation](https://github.com/marchbeta2087/numextend/blob/main/nex/series/nex_series.c): `nex/series/nex_series.c`
- [Padé approximation](https://github.com/marchbeta2087/numextend/blob/main/nex/series/nex_series_pade.c): `nex/series/nex_series_pade.c`
- [Ball arithmetic](https://github.com/marchbeta2087/numextend/blob/main/nex/ball/nex_ball.c): `nex/ball/nex_ball.c`
- [Ball series](https://github.com/marchbeta2087/numextend/blob/main/nex/ball/nex_ball_series.c): `nex/ball/nex_ball_series.c`
- [Transcendental functions](https://github.com/marchbeta2087/numextend/blob/main/nex/transcend/nex_transcend.c): `nex/transcend/nex_transcend.c`
- [Decimal transcendental](https://github.com/marchbeta2087/numextend/blob/main/nex/transcend/nex_transcend_dec.c): `nex/transcend/nex_transcend_dec.c`

### Conversions

- [Type conversion matrix](https://github.com/marchbeta2087/numextend/blob/main/nex/convert/nex_convert.c): `nex/convert/nex_convert.c`
- [Memory allocation](https://github.com/marchbeta2087/numextend/blob/main/nex/nex_alloc.c): `nex/nex_alloc.c`

### Other components

- **C application**

## Connections

- C application → Binary integers: calls API (evidence: `README.md`)
- C application → Decimal integers: calls API (evidence: `README.md`)
- C application → Exact fractions: calls API (evidence: `README.md`)
- C application → Binary floating point: calls API (evidence: `README.md`)
- C application → Decimal floating point: calls API (evidence: `README.md`)
- C application → Binary complex: calls API (evidence: `README.md`)
- C application → Decimal complex: calls API (evidence: `README.md`)
- C application → Type conversion matrix: calls API (evidence: `README.md`)
- C application → Series evaluation: calls API (evidence: `README.md`)
- C application → Transcendental functions: calls API (evidence: `README.md`)
- Exact fractions → Binary integers: builds on (evidence: `README.md`)
- Binary floating point → Binary integers: builds on (evidence: `README.md`)
- Decimal floating point → Decimal integers: builds on (evidence: `README.md`)
- Binary complex → Binary floating point: builds on (evidence: `README.md`)
- Decimal complex → Decimal floating point: builds on (evidence: `README.md`)
- Integer conversion → Binary integers: converts
- Integer conversion → Decimal integers: converts
- Type conversion matrix → Binary integers: converts
- Type conversion matrix → Decimal integers: converts
- Type conversion matrix → Exact fractions: converts
- Type conversion matrix → Binary floating point: converts
- Type conversion matrix → Decimal floating point: converts
- Type conversion matrix → Binary complex: converts
- Type conversion matrix → Decimal complex: converts
- Series evaluation → Exact fractions: accumulates with (evidence: `nex/series/nex_series.c`)
- Series evaluation → Type conversion matrix: uses conversions (evidence: `nex/series/nex_series.c`)
- Padé approximation → Type conversion matrix: uses conversions (evidence: `nex/series/nex_series_pade.c`)
- Transcendental functions → Ball arithmetic: bounds with (evidence: `README.md`)
- Decimal transcendental → Ball arithmetic: bounds with (evidence: `README.md`)
- Binary float I/O → Binary floating point: formats
- Decimal float I/O → Decimal floating point: formats
- Binary complex → Transcendental functions: uses functions (evidence: `nex/bigcomplex/float/nex_bigcomplex_float.c`)
- Decimal complex → Transcendental functions: uses functions (evidence: `nex/bigcomplex/decimal/nex_bigcomplex_decimal.c`)
