Skip to main content

A simple Python package to compute sums of numbers, lists, and series like arithmetic and geometric series

Project description

n_sum

PyPI Version Python Version License

A Python package for calculating sums of numbers and series.
Provides functions for summing natural numbers, lists, squares, cubes, and arithmetic/geometric series.


Features

  • sum_n(n) – Sum of first n natural numbers
  • sum_list(numbers) – Sum of a list of numbers
  • sum_squares(n) – Sum of squares of first n natural numbers
  • sum_cubes(n) – Sum of cubes of first n natural numbers
  • arithmetic_series(a, d, n) – Sum of first n terms of an arithmetic series
  • geometric_series(a, r, n) – Sum of first n terms of a geometric series

Installation

From PyPI:

pip install n_sum

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

n_sum-0.1.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

n_sum-0.1.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file n_sum-0.1.2.tar.gz.

File metadata

  • Download URL: n_sum-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for n_sum-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6f260138940d3444e87a8027040b673256d07484cf34f4dc3277b6626a317d12
MD5 b4a94c0e23f57bde23b42deba3854d71
BLAKE2b-256 28ca6105dbbdbd5687df9882b0e3f1bd217f18e7b10fcc29f273b77c78b4a371

See more details on using hashes here.

File details

Details for the file n_sum-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: n_sum-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for n_sum-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 07e9ed477727c98eb31f15ccbeb4bc63417c0844337953b9d60ff13bdcbf02da
MD5 afae62f108aa647acd193611d4e971bc
BLAKE2b-256 00c3e750ef9ebc259366b260ffc407ca4928bc449946f281f46581eb6160ec87

See more details on using hashes here.

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