A simple Python package to compute sums of numbers, lists, and series like arithmetic and geometric series
Project description
n_sum
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 firstnnatural numberssum_list(numbers)– Sum of a list of numberssum_squares(n)– Sum of squares of firstnnatural numberssum_cubes(n)– Sum of cubes of firstnnatural numbersarithmetic_series(a, d, n)– Sum of firstnterms of an arithmetic seriesgeometric_series(a, r, n)– Sum of firstnterms of a geometric series
Installation
From PyPI:
pip install n_sum
Project details
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
n_sum-0.1.1-py3-none-any.whl
(2.4 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee6fc642a85779d17ccdcd50a6f4f0557cbae59ca554d614dbabbd464ffef2dc
|
|
| MD5 |
d9baf48fba0e0ed0af7e87eb24580383
|
|
| BLAKE2b-256 |
c3307578acff59feb50c74bc838c0459fc1545ff191dc8e851dbaa1340b3c3e8
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b72ea22049ac6531e9c7cea281304f5a3c55bef9cd42aba9a5299f9093feea59
|
|
| MD5 |
56cbb7100b0a429dd9a31b3276cc3bbe
|
|
| BLAKE2b-256 |
b78ee2c015ee29163df6234333b7af3a4644aeaeea4bd1639b217a5b65cd4e0f
|