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.2.tar.gz
(2.2 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.2-py3-none-any.whl
(2.4 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f260138940d3444e87a8027040b673256d07484cf34f4dc3277b6626a317d12
|
|
| MD5 |
b4a94c0e23f57bde23b42deba3854d71
|
|
| BLAKE2b-256 |
28ca6105dbbdbd5687df9882b0e3f1bd217f18e7b10fcc29f273b77c78b4a371
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07e9ed477727c98eb31f15ccbeb4bc63417c0844337953b9d60ff13bdcbf02da
|
|
| MD5 |
afae62f108aa647acd193611d4e971bc
|
|
| BLAKE2b-256 |
00c3e750ef9ebc259366b260ffc407ca4928bc449946f281f46581eb6160ec87
|