Skip to main content

Module to solve linear equations in 2 and 3 variables

Project description

Linear Equation Solver

This package is to solve linear equations of two variables and three variables

License

refer to LICENSE in github

Installation

pip install linearEquationSolver==1.1

Usage

Say you have these equations: 2x+y=15, 3x-y=5

The numbers of the first equation: 2,1,15 should be added in an array and the numbers of the second equation: 3,-1,5 in another array

import linearEquation

eqOne = [2,1,15]
eqTwo = [3,-1,5]

print(linearEquation.linearEquationsTwo(eqOne,eqTwo))

The output will be a tuple: ('4.000', '7.000')

The usage of linearEquationThree is similar to linearEquationTwo, except each array would have one more value in it and a third array is needed For instance: x-y+z=2, 2x-y-z=-6, 2x+2y+z = -3

import linearEquation

eqOne = [1,-1,1,2]
eqTwo = [2,-1,-1,-6]
eqThree = [2,2,1,-3]

print(linearEquation.linearEquationThree(eqOne,eqTwo,eqThree))

The output is as follows: ('-2.000', '-1.000', '3.000')

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

linearequationsolver-1.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

linearEquationSolver-1.2-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file linearequationsolver-1.2.tar.gz.

File metadata

  • Download URL: linearequationsolver-1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for linearequationsolver-1.2.tar.gz
Algorithm Hash digest
SHA256 fd5e5225f1c128785295664e58ca4cf4531519a7b53cc0cb738a69452042e5f4
MD5 abee37369a04f29a903b1a3b18c21f44
BLAKE2b-256 9ac1441f60fd63a6040f5b3e4ddbc065f9094dd03db6acfb8d6276a138d83226

See more details on using hashes here.

File details

Details for the file linearEquationSolver-1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for linearEquationSolver-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c0d1bed928a739437fadc3372534fb88f2046f2a5a7f70b11b39b07bac2babd
MD5 1199c6bb86a5f00d1707a6f0d3880433
BLAKE2b-256 33e8ccb1049bd17731300e749f0b8e2d579bb468d9a73f02a8cfd16fb1d952d1

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