A python package, that provides functions for calculating distances and finding tangents of 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
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
fun_dist-0.0.3b0.tar.gz
(4.0 kB
view details)
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.3b0.tar.gz.
File metadata
- Download URL: fun_dist-0.0.3b0.tar.gz
- Upload date:
- Size: 4.0 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 |
5b7eaa365ba74818f456619dcfa9b92bee588a967cbcbb37a3faca4abada0313
|
|
| MD5 |
e9131fc646f3baf00b11f8c7919a4c24
|
|
| BLAKE2b-256 |
7d38692fcd25da8dc6ddde5847e1db017fb947786fb7f4e02aefd4728b80577e
|
File details
Details for the file fun_dist-0.0.3b0-py3-none-any.whl.
File metadata
- Download URL: fun_dist-0.0.3b0-py3-none-any.whl
- Upload date:
- Size: 5.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 |
15e48a1b4324709882392882c56b37fa6bb69fee2ff6d362da6f251f521e9eb2
|
|
| MD5 |
628abafc013754793397c91a540caf0a
|
|
| BLAKE2b-256 |
c7affc3e8a7541a2652a9a08fca9d94e24526eb8cf479cc8fb75c6203f39f494
|