Description of your library
Project description
Calclab
This Python library provides mathematical functions and utilities, including:
- Solving quadratic equations
- Analyzing parabolas
- Calculating distances between points
- Performing basic arithmetic operations
- Finding equations of lines
More functions will be add in the future
Installation
You can install this library using pip:
pip install calculator-library
Usage
from calclab import *
# Initialize the calculator
calc = Calculator()
# Solve quadratic equation: Ax^2 + Bx + C = 0
root1, root2 = calc.quadratic_equation(A, B, C)
# Analyze parabola: y = Ax^2 + Bx + C
root1, root2, axis_of_symmetry, vertex = calc.parabola(A, B, C)
# Calculate distance between two points (X1, Y1) and (X2, Y2)
distance = calc.graph_distance(X1, Y1, X2, Y2)
# Perform square root operation
sqrt_result = calc.sqrt(a)
# Perform square operation
square_result = calc.square(a)
#Perform cube operartion
cube_result = calc.cube(a)
#Perform line-find operation
line_equation = calc.line_find(X1, Y1, X2, Y2)
Example
from calculator import Calculator
# Initialize the calculator
calc = Calculator()
# Example: Solving quadratic equation
root1, root2 = calc.quadratic_equation(1, -3, 2)
print("Roots of the equation x^2 - 3x + 2 = 0 are:", root1, "and", root2)
Note:
The quadratic equation and the parabola Function Do MALFUNCTION when the 2 roots are not real, imaginary numbers will be added to those functions in a future update Please read the Usage/Examples above to use the functions correctly
Contribute
Please feel free to suggest any ways to make this library better!!
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 Calclab-0.1.0.tar.gz.
File metadata
- Download URL: Calclab-0.1.0.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6719f7fe03aaf5ade9b99d7599861262a44dbbbc3d8f8b29f66c2bc127507e3
|
|
| MD5 |
48d63aac83163477374e5fe2a28ffe7a
|
|
| BLAKE2b-256 |
5caa26ad8556bf520c438949334ec5278067e009e1776b9f3d6a9ed2b90359c1
|
File details
Details for the file Calclab-0.1.0-py3-none-any.whl.
File metadata
- Download URL: Calclab-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
735d2a8f59ec261f63e61a872c6b8e5699e8eed9263ad7e7eea14df39c7e552c
|
|
| MD5 |
0a04c29468336f6b151715a5f2121358
|
|
| BLAKE2b-256 |
ba299569622a6354bf793722b185b74c4102789e6c8520fa0afd990dc5d85657
|