Skip to main content

Mathematical utilities for the SciTeX ecosystem (parity helpers, etc.) — standalone module

Project description

scitex-math

SciTeX

Mathematical utilities for the SciTeX ecosystem — parity helpers and friends.

Full Documentation · uv pip install scitex-math

PyPI Python Tests License: AGPL v3


Installation

pip install scitex-math

Architecture

scitex_math/
├── _to_even.py    ← to_even — round down to nearest even integer
└── _to_odd.py     ← to_odd  — round down to nearest odd integer

Pure-stdlib core — zero runtime deps.

Quick Start

from scitex_math import to_even, to_odd

to_even(5)    # 4
to_even(6)    # 6
to_even(3.7)  # 2
to_even(-2.3) # -4

to_odd(6)     # 5
to_odd(7)     # 7
to_odd(5.8)   # 5

Status

Standalone module split out of scitex-gen. Same semantics as the original scitex_gen.to_even / scitex_gen.to_odd — those exports have been removed from scitex-gen; import from scitex_math instead.

Part of SciTeX

scitex-math is part of SciTeX.

Four Freedoms for Research

  1. The freedom to run your research anywhere — your machine, your terms.
  2. The freedom to study how every step works — from raw data to final manuscript.
  3. The freedom to redistribute your workflows, not just your papers.
  4. The freedom to modify any module and share improvements with the community.

AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.

License

AGPL-3.0-only (see LICENSE).


SciTeX

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scitex_math-0.1.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scitex_math-0.1.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file scitex_math-0.1.0.tar.gz.

File metadata

  • Download URL: scitex_math-0.1.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_math-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4c80bd42d7e23f225a659b66ebea812dce9a4089500e3d29cac6d43bdf644c0f
MD5 ead8693ed94330940e21cef9fcc780e9
BLAKE2b-256 a85281bb62248a1a0dbe3687802cccfc4fa186042dbe171e55276cd2ef15879a

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_math-0.1.0.tar.gz:

Publisher: pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-math

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scitex_math-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: scitex_math-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scitex_math-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e736e5ba04d4bf80cbe600f33e26053d9e1888f6dc87033dabaf36fe4cc54539
MD5 a5fe4231390ef6ced5e65d811330ced6
BLAKE2b-256 72cac1e357e6aeeabaa5684dbb49c2626abdb59e370c002c8f0659a5c8318fd9

See more details on using hashes here.

Provenance

The following attestation bundles were made for scitex_math-0.1.0-py3-none-any.whl:

Publisher: pypi-publish-and-github-release-on-tag.yml on ywatanabe1989/scitex-math

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page