Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Calclab-0.1.0.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Calclab-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

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

Hashes for Calclab-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b6719f7fe03aaf5ade9b99d7599861262a44dbbbc3d8f8b29f66c2bc127507e3
MD5 48d63aac83163477374e5fe2a28ffe7a
BLAKE2b-256 5caa26ad8556bf520c438949334ec5278067e009e1776b9f3d6a9ed2b90359c1

See more details on using hashes here.

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

Hashes for Calclab-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 735d2a8f59ec261f63e61a872c6b8e5699e8eed9263ad7e7eea14df39c7e552c
MD5 0a04c29468336f6b151715a5f2121358
BLAKE2b-256 ba299569622a6354bf793722b185b74c4102789e6c8520fa0afd990dc5d85657

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page