Skip to main content

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

  1. 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)

  1. 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

  1. 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

  1. 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)])

Metadata

Release files for calc-seereen 0.0.3

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

Source distribution (sdist)

Source distribution for calc-seereen 0.0.3
File Size Uploaded Provenance Actions
calc_seereen-0.0.3.tar.gz 4.2 kB Without provenance Details for calc_seereen-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for calc-seereen 0.0.3
File Interpreter ABI Platform Actions
calc_seereen-0.0.3-py3-none-any.whl Python 3 none any Details for calc_seereen-0.0.3-py3-none-any.whl

Total release size: 9.5 kB

Release files / calc_seereen-0.0.3.tar.gz

Download URL calc_seereen-0.0.3.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ba3e97717401a3cff4147382fa1c572a906378a4d793edd645bdf90609e0517c
BLAKE2b-256 checksum
How to use checksums
d4a79933f4f20efd0b5552e10c303648186e098ab859d2ca3e03852c3844816e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / calc_seereen-0.0.3-py3-none-any.whl

Download URL calc_seereen-0.0.3-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24e6ee0ce11d673839169d3b0ab7cba9623d68bdb97a7694a180e5e0ef0dd74c
BLAKE2b-256 checksum
How to use checksums
ac8c66c90b1dc1794821d03c8f95200824061343d6fc3fb3dc7511902b4097a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for calc-seereen 0.0.3

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.

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