Simple algebra blueprint and linear equation algorithm
Project description
Django Algebraic Calculator
Aplikasi web penghitungan aljabar untuk kelompok 7 Pemrograman Berbasis Penggunaan Ulang, Universitas Brawijaya.
Anggota
205150400111052 - AURELIUS ALEXANDER VIRIYA
205150407111019 - BAGAS RADITYA NUR LISTYAWAN
205150407111025 - KHALIFFMAN RAHMAT HILAL
205150407111016 - RIZAL AKBAR SYAH FAUZAN PUTRA
Installation & Usage
Without UI
Install on your project’s virtual environment
Use this following syntax to install the package:
'pip install -i https://test.pypi.org/simple/ algebra-collections==1.2'
Add ‘algebra_calculator’ to your Django project’s “setting.py” INSTALLED_APPS:
INSTALLED_APPS = [ ... 'algebra_calculator', ]
Import ‘algebra_calculator’ to your app’s ‘views.py’ in order to use the pre-made Linear Equations or develop other type of Algebraic Equations
Example using pre-made LinearEquations(linear.views file):
from algebra_calculator import *
def showXandYvalue():
listOfChars = [‘X’, ‘Y’] listOfExpressions = [“2X + 5Y = 10”, “3X + 2Y = 30”]
result = LinearEquations.solve(2, listOfChars, listOfExpressions)
- for i in range(len(result)):
printable(f”{listOfChars[i]}’s value is = {result}”)
return HttpResponse(printable)
Example developing other type of Algebraic Equations (commutative.views file):
class CommutativeAlgebra(AlgebraFactory):
def solve(…): … …
def finishCommutativeAlgebra():
result = CommutativeAlgebra.solve(…)
return HttpResponse(result)
With UI
Install on your project’s virtual environment
Use this following syntax to install the package:
'pip install -i https://test.pypi.org/simple/ algebra-collections==1.2'
Add ‘algebra_calculator’ and ‘ui’ to your Django project’s “setting.py” INSTALLED_APPS:
INSTALLED_APPS = [ ... 'algebra_calculator', 'ui', ]
Include the poll URLconf in your project’s urls.py:
urlpattern = [ ... path('[your_pathing_here/]', include('ui.urls')), ]
Access the Linear Equation’s UI by running server and using the following url:
127.0.0.1:8000/[your_pathing_here]/TwoExpression_LinearEquations
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
Built Distribution
Hashes for algebra_collections-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db6b60c3fb69153b083fcebf8350855a1ab5b7f9712dc35b03dd6b762cab6e59 |
|
MD5 | 98f47ba10745fe01258e0e3bbb943841 |
|
BLAKE2b-256 | 5a84b07741e3cff965f998c5a13e13dec948ce9278b4ae7a645ee15058885429 |