Skip to main content

A program that includes different tests, distinguishes series as convergent or divergent

Project description

Gensarpy

Gensarpy is a Python package that includes different tests to distinguish series as convergent or divergent. This package provides an easy-to-use interface to check the convergence of series using various tests.


Installation

You can install Gensarpy using pip. To install the latest release, run:

pip install gensarpy


Usage

To use Gensarpy, import the functions you need from the package and call them with the appropriate arguments. Here's an example:

from gensarpy.convergence_tests import check_convergence

series1 = "1/n**2" result1 = check_convergence(series1) print(f"The series {series1} is {result1}.")

series2 = "1/2**n" result2 = check_convergence(series2) print(f"The series {series2} is {result2}.")

series3 = "(-1)**n/n" result3 = check_convergence(series3) print(f"The series {series3} is {result3}.")

This will output:

The series 1/n2 is convergent. The series 1/2n is convergent. The series (-1)**n/n is divergent.

The check_convergence function takes two arguments: the series (as a list) and the test type. The available test types are p, ratio, integral, and alternating.


Contributing

Contributions to Gensarpy are welcome! To contribute, please fork the repository, create a branch for your changes, and submit a pull request. Before submitting a pull request, please make sure that your code passes the existing tests and that any new functionality is covered by new tests.


License

Gensarpy is released under the MIT License.

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

gensarpy-0.0.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

gensarpy-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file gensarpy-0.0.1.tar.gz.

File metadata

  • Download URL: gensarpy-0.0.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for gensarpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 38885fb5321ce08685044e0cc29c7a5623364015e0954281e8495ce97f064046
MD5 2ac372491e514f55cdff5b4d883e9935
BLAKE2b-256 d78dc29ab7eb5afa939969adfffbe7177684bddeb40ce52b1514e63cb6ffc1f8

See more details on using hashes here.

File details

Details for the file gensarpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gensarpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for gensarpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f40c582c34d342c77de7f5a119664dae42e910e4616abff5eae3423bb00248a4
MD5 24a210de1021f423ebc4b693597a5a70
BLAKE2b-256 69fa72e04a6e2cfeddfa31b9aa8225fe958375f48bf414feaf5dd20c25d84e2e

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