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,isdivergent,integral_test

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

series2 = "1/2**n" result2 = isdivergent(series2) print(result2)

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

This will output:

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

Here is a list of functions in the gensarpy library:

  • integral_test
  • ratio_test
  • nth_term_test
  • check_convergense
  • isconvergent
  • isdivergent

They all take as a string as input. You should use 'x' as your variable.


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.1.0.tar.gz (3.8 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.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gensarpy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e101e476bca366168b84f5d8c95afb28744ded898956ca2d6f0c977619b5650e
MD5 3777cbf5045359ba1fa4495088659c16
BLAKE2b-256 7dec550e084846a17fc12b6b4604874a00bfeca02a914b08320f2f5d1b28d5f0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gensarpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50491d7176bd36be651fe99853742e2a2ca96b3aadfd09bab0f606f64be10ec4
MD5 b3f100288a6a487b9ba9fd7372a077df
BLAKE2b-256 7eb0ef08b75866b5b5a4be3a4f3974fb45ca9bbc15fbc2b49006ea0bfdeb88ca

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