The math module where you can sum numbers, make functions and other things
Project description
Infinitive math
better_math is a module right now it is in beta test there yu can make graphics multiple graphics and count sqrt, count pow and etc
How to use:
InfinityMath
InfinityMath is a Python module that provides a collection of mathematical functions, including basic arithmetic operations, trigonometric functions, factorial calculation, logarithms, quadratic equation solving, and function plotting.
Installation
To use this module, simply copy the InfinityMath directory into your Python project.
Usage
Import the module and use its functions as shown in the examples below:
import InfinityMath as im
# Basic operations
print(im.sqrt(16)) # 4.0
print(im.pow(2, 3)) # 8
print(im.sum(5, 3)) # 8
print(im.subtraction(10, 4)) # 6
print(im.product(7, 8)) # 56
print(im.div(9, 3)) # 3.0
# Factorial
print(im.factorial(5)) # 120
# Logarithm
print(im.log(100, 10)) # 2.0
# Trigonometric functions
print(im.sin(0)) # 0.0
print(im.cos(0)) # 1.0
print(im.tan(0)) # 0.0
# Quadratic equation solver
x1, x2 = im.solve_quadratic(2, 3, -2)
print(f"Solutions: {x1}, {x2}")
# Vieta's theorem
p, q = im.viet_quadratic(2, 3)
print(f"p: {p}, q: {q}")
# Function plotting
import numpy as np
def quadratic_function(x):
return x**2 - 2*x + 1
im.plot_function(quadratic_function, (-5, 5), label="x^2 - 2x + 1", color="r")
Features
- Basic arithmetic operations:
sum,subtraction,product,div - Exponential and logarithm functions:
pow,log - Trigonometric functions:
sin,cos,tan,asin,acos,atan - Factorial calculation:
factorial - Quadratic equation solving:
solve_quadratic,viet_quadratic - Function plotting:
plot_function,plot_multiple_functions
License
This project is open-source. You are free to modify and distribute it.
Changelog
[0.0.4] - 2025-03-25
- fixing error with solve_quadratic
- Adding documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file InfinityMath-0.0.4.tar.gz.
File metadata
- Download URL: InfinityMath-0.0.4.tar.gz
- Upload date:
- Size: 11.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12a2470eac746aedeffed943d828c77346587747a5a46c39429325ebc7304f3d
|
|
| MD5 |
7ca48ea0ee2826e4815f86ae33548192
|
|
| BLAKE2b-256 |
6d699bea61302e8de6a664d78557cb4af8d5c63a72daf011d894f111d1525bdb
|
File details
Details for the file InfinityMath-0.0.4-py3-none-any.whl.
File metadata
- Download URL: InfinityMath-0.0.4-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8ffb87926f9bfb8a0cd05f84b6914ea9420b80742caaeca642476c92a87691a
|
|
| MD5 |
8732b9980c1cd4fe3a32f857078c288e
|
|
| BLAKE2b-256 |
b3eda9ff3b5928414415cb9892669bace6b54cfdfd049d382a9ce8dd5ee1d5c6
|