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 Downloads Build Status

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.1.tar.gz (2.3 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.1-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: n_sum-0.1.1.tar.gz
  • Upload date:
  • Size: 2.3 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.1.tar.gz
Algorithm Hash digest
SHA256 ee6fc642a85779d17ccdcd50a6f4f0557cbae59ca554d614dbabbd464ffef2dc
MD5 d9baf48fba0e0ed0af7e87eb24580383
BLAKE2b-256 c3307578acff59feb50c74bc838c0459fc1545ff191dc8e851dbaa1340b3c3e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: n_sum-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b72ea22049ac6531e9c7cea281304f5a3c55bef9cd42aba9a5299f9093feea59
MD5 56cbb7100b0a429dd9a31b3276cc3bbe
BLAKE2b-256 b78ee2c015ee29163df6234333b7af3a4644aeaeea4bd1639b217a5b65cd4e0f

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