pyquadraticsolution
pyquadraticsolution is a simple, intuitive, and callable Python package for solving quadratic equations.
Just import it and pass the coefficients — it returns the roots and explains their nature!
🚀 Features
- ✅ Callable package (
pyquadraticsolution(a, b, c)) - ✅ Solves:
- Real and distinct roots
- Real and repeated roots
- Complex roots
- ✅ Handles linear equations when
a = 0 - ✅ No external dependencies
📦 Installation
pip install pyquadraticsolution
Usage
Example 1: Two real and distinct roots
import pyquadraticsolution
print(pyquadraticsolution(1, -3, 2))
Output:
The solutions are real and distinct: x1 = 2.0, x2 = 1.0. Reason: Discriminant is positive, which indicates two real roots.
Example 2: One real and repeated root
import pyquadraticsolution
print(pyquadraticsolution(1, -2, 1))
Output:
The solution is real and repeated: x = 1.0. Reason: Discriminant is zero, indicating a repeated real root.
Example 3: Complex roots
import pyquadraticsolution
print(pyquadraticsolution(1, 2, 5))
Output:
The solutions are complex: x1 = -1.0 + 2.0i, x2 = -1.0 - 2.0i. Reason: Discriminant is negative, indicating complex roots.
Metadata
Release files for pyquadraticsolution 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyquadraticsolution-0.1.0.tar.gz | 2.9 kB | Without provenance | Details for pyquadraticsolution-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyquadraticsolution-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pyquadraticsolution-0.1.0-py3-none-any.whl |
Total release size: 6.4 kB
Release files / pyquadraticsolution-0.1.0.tar.gz
| Download URL | pyquadraticsolution-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a8eaf514f93b980a2bdd901a562ac8fe7ccd355770807487ddabaeac074e5d7
|
|
BLAKE2b-256 checksum How to use checksums |
f205ce2c0b19ce721c487ffbb8c9b045a60632fb5028616af7e4033ecfdb67be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / pyquadraticsolution-0.1.0-py3-none-any.whl
| Download URL | pyquadraticsolution-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5efc2b5accacb0aa09da7700f0f2bbdd3c655014b032cd551940d921c108cf3a
|
|
BLAKE2b-256 checksum How to use checksums |
34e607462b161a3a71b32ac6f9136c64c287b598bfcdb495d28fef0e9084e86a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Security for pyquadraticsolution 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.