Skip to main content

linear_equations

This is a simple Mathematical Module which is simple to use. The module provides classes through which linear equations in 2 variables can be solved, and visualized.

Classes and Functions provided

  • class Symbol

    symbols to use in Linear Equations
    example: Symbol("x") -> x, Symbol("y") -> y

  • class LinearEquation1D

    objects of type ax + b = 0
    each such object has one unique solution

  • class LinearEquation2D

    objects of type ax + by + c = 0
    when standalone, each such object has infinitely many solutions
    when solved with another such object, the final result may be infinitely many solutions, no solution or a unique solution

  • function solve1D(eqn)

    solves one LinearEquation1D
    used to retrieve the solution to a 1D equation as a float

  • function solve2D(eqn1, eqn2)

    solves two LinearEquation2D
    used to retrieve solution to two 2D equations as a tuple of floats

  • function consistency(eqn1, eqn2)

    checks and returns if the given LinearEquation2D objects are consistent or not

  • function satisfies(eqn, x, y)

    returns True if the given pair of numbers satisfy a particular LinearEquation2D and False in all other cases

Each function contains help text that can be accessed through help() in python to know more about it.

Update (0.0.5)

You can now graph and visualize 2-dimensional equations!
Added function graph(eqn1, eqn2) which graphs the given LinearEquation2D objects on a 2D mathematical plot along with their solution (if any)

Update (0.0.6)

Minor bug fixes:

  • Fixed issues with plotting linear equations
  • Improved legend on graphs

Added function graph_many(eqn1, eqn2, ..., eqnn, show_legend=True) which graphs more than two LinearEquation2D objects on the same plot along with each of their solutions (if any)

Updates (0.0.7)

Minor bug fixes

Reach out to me

If you face issues, contact me through my e-mail: knightt1821@gmail.com

Release files for linear-equations 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linear-equations 0.0.7
File Size Uploaded
linear_equations-0.0.7.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for linear-equations 0.0.7
File Interpreter ABI Platform
linear_equations-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / linear_equations-0.0.7.tar.gz

Download URL linear_equations-0.0.7.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d065890a5f5b252c34194c8a39cb8840deee5a6ed42299bc471fa2501d5aecbd
BLAKE2b-256 checksum
How to use checksums
152672935ad911cdfbffc78fb5abe084f18c2fe2fca378b393d1882dc58f4838
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release files / linear_equations-0.0.7-py3-none-any.whl

Download URL linear_equations-0.0.7-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61ac2d2ad19b6690a1d743a8c6dfa176a9f895986c1ee84f58f37f8b50c5c40b
BLAKE2b-256 checksum
How to use checksums
0dea409f6f2bf52081693780d44723067372e5a90fcb75ed1450445f9909e01f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.1

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page