calc_tools_ying681
- 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
- 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)
- 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
- 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
- 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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| calc_seereen-0.0.4.tar.gz | 4.2 kB | Without provenance | Details for calc_seereen-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| calc_seereen-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for calc_seereen-0.0.4-py3-none-any.whl |
Total release size: 9.5 kB
Release files / calc_seereen-0.0.4.tar.gz
| Download URL | calc_seereen-0.0.4.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2bdfd59db6937178cf73fc27899a7d5e8044d3a0655fdfd0c9ee2030db4475e
|
|
BLAKE2b-256 checksum How to use checksums |
30b547cd46453821c93aba06c79f8f57584e6454c6613b275d0aa27f59cba367
|
| 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.4-py3-none-any.whl
| Download URL | calc_seereen-0.0.4-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c69754c3ccedc5beb7e1360b1265e2985325c6a5287ecb9763d41d403f8e80d3
|
|
BLAKE2b-256 checksum How to use checksums |
ee695e99255f6a274f56b5eb5e85144abea79f302ebed197f0182e81a8939a58
|
| 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.4
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.