Metadata-Version: 2.4
Name: calc_seereen
Version: 0.0.4
Summary: A small mathematics and vector tool package
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Requires-Dist: sympy
Requires-Dist: matplotlib
Dynamic: license-file

# calc_tools_ying681
1. Basic Functions (functions.py)
Provides fundamental mathematical operations and function evaluations.
linear(a, b, x) : Evaluates f(x) = ax + b
quadratic(a, b, c, x) : Evaluates f(x) = ax^2 + bx + c
cube(x) : Calculates x^3
absolute(a, b) : Calculates the absolute value/distance
evaluate(func, x) : Evaluates a custom lambda/function at x

import calc_seereen as pkg
print(pkg.linear(2, 3, 5))                # Output: 13
print(pkg.quadratic(1, 2, 1, 3))          # Output: 16
print(pkg.cube(4))                        # Output: 64
print(pkg.absolute(-12.5, 0))             # Output: 12.5
print(pkg.evaluate(lambda x: x**2 + 5, 3))# Output: 14


2. Vector Operations (vectors.py)
Handles 2D vector algebra and properties.
vector_magnitude(v) : Calculates vector magnitude ||v||
vector_add(v1, v2) : Vector addition v1 + v2
vector_sub(v1, v2) : Vector subtraction v1 - v2
dot_product(v1, v2) : Calculates dot product v1 . v2
scalar_multiply(v, c) : Scalar multiplication c * v

import calc_seereen as pkg
v1 = (3, 4)
v2 = (1, 2)
print(pkg.vector_magnitude(v1))           # Output: 5.0
print(pkg.vector_add(v1, v2))             # Output: (4, 6)
print(pkg.vector_sub(v1, v2))             # Output: (2, 2)
print(pkg.dot_product(v1, v2))            # Output: 11
print(pkg.scalar_multiply(v1, 3))         # Output: (9, 12)



3. Advanced Mathematics (advanced_math.py)
Algebraic solvers, powers, and basic calculus for polynomials.
power_function(x, n) : Power calculation x^n
solve_linear(a, b) : Solves ax + b = 0
solve_quadratic(a, b, c) : Solves ax^2 + bx + c = 0
integrate_poly(coefficients) : Indefinite integration of polynomials
differentiate_poly(coefficients) : Differentiation of polynomials

import calc_seereen as pkg
print(pkg.power_function(2, 3))           # Output: 8
print(pkg.solve_linear(2, -4))            # Output: 2.0
print(pkg.solve_quadratic(1, -3, 2))      # Output: (2.0, 1.0)
print(pkg.integrate_poly([3, 0, 1]))      # Integrates polynomial
print(pkg.differentiate_poly([3, 0, 1]))  # Differentiates polynomial



4. Recursive Functions (recursion.py)
Implementation of standard recursive algorithms.
factorial(n) : Calculates n!
fibonacci(n) : Returns the n-th Fibonacci number
gcd(a, b) : Finds Greatest Common Divisor of a and b
sum_digits(n) : Returns the sum of digits of n

import calc_seereen as pkg
print(pkg.factorial(5))                  # Output: 120
print(pkg.fibonacci(7))                  # Output: 13
print(pkg.gcd(48, 18))                   # Output: 6
print(pkg.sum_digits(1234))              # Output: 10



5. Visualization (viz.py)
Plotting functions using Matplotlib.
plot_1d_function(func, x_min, x_max) : Plots 2D curves for math functions
plot_vectors(vector_list) : Visualizes vectors on a 2D plane

import calc_seereen as pkg
# Plot f(x) = x^2 over x in [-5, 5]
pkg.plot_1d_function(lambda x: x**2, -5, 5)
# Plot vectors starting from origins
pkg.plot_vectors([(0, 0, 3, 4), (0, 0, 1, 2)])
