mathsolver
Python package to evaluate natural language mathematical equation and provide its solution For now it supports following operators:
^*/+-squarecubesqrtlog base 10
Installation
I would highly recommend using python virtual environment for installing dependencies and programming. For installation of python virtual environment one can follow the guide.
pip install mathsolver
Usage
from mathsolver import mathsolver
mathsolver.solve("What is sum of 5 and 6")
>>> (True, 'Sum of numbers is 11.0', 11.0)
# Result is a Tuple(status, description, value)
mathsolver.solve("what will be result of when 11 is multiplied with seven")
>>> (True, 'Multiplication of 11.0 and 7.0 is 77.0', 77.0)
mathsolver.solve("What will be the division of five hundred and seven and five point six seven")
>>> (True, 'Division of 507.0 and 5.67 is 89.417989418', 89.41798941798942)
Notes
- For now it only supports solving calculations with single operator. Work in progress for multiple operators.
License
MIT License 2019 © Vikram Singh and contributors
Metadata
Release files for mathsolver 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mathsolver-0.1.0-py2-none-any.whl | Python 2 | none | any | Details for mathsolver-0.1.0-py2-none-any.whl |
Release files / mathsolver-0.1.0-py2-none-any.whl
| Download URL | mathsolver-0.1.0-py2-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
c6d86b86024b58427b7e8a7d305c3a731215bcf23091789664fb595ac0aff3ca
|
|
BLAKE2b-256 checksum How to use checksums |
af3dc567b409701f68b3102c84e753d3c5126a4489782bd6db66b58cd40116bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.12
|
Security for mathsolver 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.