Providing a powerful and accurate Math Solver.
Project description
NumSy
Welcome to NumSy, a project designed to ensure precise and accurate mathematical calculations. This is an independent project, which eliminates the need for any additional libraries. Our primary goal is to provide users with an easy-to-use platform for solving math problems. We highly welcome your feedback, suggestions, and contributions, so please don't hesitate to create issues or pull requests.
Installation
To install NumSy using PyPI, run the following command:
$ pip install numsy
Basic Example
from numsy import solver
# Let's try to calculate triangle area with a height of 5
# and base length of 10
answer = solver.solve("1/2 * 10 * 5")
print(answer) # Prints 25
from numsy import solver
answer = solver.solve("4x + 3 = 19")
print(answer.x) # Prints 4
from solver.matrices import Matrix
m1 = [
[1, 2, 3],
[3, 2, 1],
[0, 0, 8]
]
print(Matrix(m1).inverse().matrix)
# [[-0.5, 0.5, 0.125], [0.75, -0.25, -0.25], [-0.0, -0.0, 0.125]]
print(Matrix(m1).adjugate().matrix)
# [[16, -16, -4], [-24, 8, 8], [0, 0, -4]]
Features
- Parsing problems and equations
- Safe calculation without the usage of
evalorexec - Basic arithmetics calculation (PEMDAS problem)
- Solving linear algebra (1 variable)
- Matrices
How it works
NumSy operates by accepting problems and equations as strings and using its own algorithm to solve them. Here's a breakdown of the process:
- NumSy receives the problem or equation as a string.
- It parses the string character by character, identifying the type of each character (operator, digit, etc.).
- Once the parsing phase is complete, NumSy determines the problem's identity, such as the number of variables or whether it's an equation.
- It then categorizes the problem type, whether it falls under Basic PEMDAS, Quadratic Equation, or other categories.
- Using specific functions bound to each problem type, NumSy proceeds to solve the problem.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file numsy-0.1.0.tar.gz.
File metadata
- Download URL: numsy-0.1.0.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
373874d5ab03c6b7233641cbb0be0cb36b1e45f1592211cba9c3a2f77303ccc8
|
|
| MD5 |
a42f636961bfb44baf1d2eade90ebbce
|
|
| BLAKE2b-256 |
ce845824469b9d88052a5229db15c00b6003bb1c795a6f1dc20dad804fe20922
|
File details
Details for the file numsy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: numsy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24fbbfeaee7fd76a3860e043ba2fc0cb05d0d67372160aeeeb6a69d8b4395dbc
|
|
| MD5 |
cc4ac8915d4b140d3ef6ebdf9ed978ce
|
|
| BLAKE2b-256 |
c04f97e38ff2de93c8f8a4013047004d74a05780588fc733ee20a4ea5c4dcfe6
|