# apple/swift-numerics

Advanced mathematical types and functions for Swift

Repository: https://github.com/apple/swift-numerics
Canonical: https://ross.abutalabs.com/products/swift-numerics
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: math, complex, mathematics, maths, real, trig
Last push: 2026-01-29T01:58:00+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 64, release rhythm 25, longevity 100
- inputs: {"age_days": 2970, "days_push": 217, "days_rel": 342, "gap_med": 102.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1870, forks 179 (observed 2026-08-28T04:05:46.763075+00:00)

## What it is
Swift Numerics is an Apple-maintained Swift package providing advanced mathematical types and functions such as complex numbers for numerical computing. Its fine-grained modules are candidates for eventual inclusion in the Swift standard library.

## Use cases
- do complex number arithmetic in Swift
- numerical computing library for Swift
- compute trigonometric functions with advanced math types
- add math utilities to a SwiftPM project
- scientific computing in Swift

## When to choose
- you need complex numbers or specialized math types in Swift
- you want a dependency-light, source-stable numerics package
- you want API likely to match future Swift standard library additions

## Facets
- artifact type: library
- maturity: active
- function: math
- domain: mathematics, developer-tools
- platform: cross-platform
- tags: complex-numbers, numerical-computing, swiftpm, apple, swift

## Member repositories
- apple/swift-numerics (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:46.763075+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:15:04.568396+00:00, confidence not recorded.
  - readme: https://github.com/apple/swift-numerics (fetched 2026-08-28T04:05:46.763075+00:00, sha aea317e6d5c1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
