A python package, that provides functions for calculating distances and finding tangents of math functions
Project description
fun_dist
A python package, that provides functions for calculating distances between points, functions, circles and ellipses and finding tangents of functions
##Dependencies
What's new?
Last version - 0.0.4-beta
- Rotated ellipse ("angle" in arguments of Ellipse class)
- Math objects are not mutable now
- Some bugs fixed
Example
from fun_dist import func2func
def a(x):
return -2 * x + 2
def b(x):
return (x - 4) ** 2
print(func2func(a, b)) # 2.2360679793027156
Includes classes:
Point, Circle, Ellipse, LinearFunction
Includes functions:
point2point - returns distance between two objects of class Point
point2func - returns minimal distance between object of class Point and function
func2func - returns minimal distance between two functions
point2circle - returns minimal distance between object of class Point and object of class Circle
point2ellipse - returns minimal distance between object of class Point and object of class Ellipse
func_tangent - returns object of class LinearFunction, which is tangent of input function
circle_tangent_len - returns length of tangent from input point to input circle
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 fun_dist-0.0.4b0.tar.gz.
File metadata
- Download URL: fun_dist-0.0.4b0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68c1c1ce13f26567d3bbd88f5aeed2d143ddd04e656af8484cc40217d1ee9199
|
|
| MD5 |
7a032a31341bfb119851c5f1bfd76be9
|
|
| BLAKE2b-256 |
0ad75cc3943e0a9004897c9f0c2a14ca69942bd8ee8935e5746dfae8fd8d8707
|
File details
Details for the file fun_dist-0.0.4b0-py3-none-any.whl.
File metadata
- Download URL: fun_dist-0.0.4b0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.48.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fabb25517968b433e7166ba63517c231dfbb22b95e06a72ec04c29a0c94e1116
|
|
| MD5 |
0235c935a778691fd084aea500f69066
|
|
| BLAKE2b-256 |
38f8d94e3d990f5250925f1ae9191991bec1512244d76c490238ae7c993548e7
|