Skip to main content

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!!

Metadata

Release files for Calclab 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Calclab 0.1.0
File Size Uploaded Provenance
Calclab-0.1.0.tar.gz 1.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for Calclab 0.1.0
File Interpreter ABI Platform
Calclab-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.7 kB

Release files / Calclab-0.1.0.tar.gz

Download URL Calclab-0.1.0.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b6719f7fe03aaf5ade9b99d7599861262a44dbbbc3d8f8b29f66c2bc127507e3
BLAKE2b-256 checksum
How to use checksums
5caa26ad8556bf520c438949334ec5278067e009e1776b9f3d6a9ed2b90359c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release files / Calclab-0.1.0-py3-none-any.whl

Download URL Calclab-0.1.0-py3-none-any.whl
Size 1.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
735d2a8f59ec261f63e61a872c6b8e5699e8eed9263ad7e7eea14df39c7e552c
BLAKE2b-256 checksum
How to use checksums
ba299569622a6354bf793722b185b74c4102789e6c8520fa0afd990dc5d85657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Security for Calclab 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page