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
fun_dist-0.0.4b0.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for fun_dist-0.0.4b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fabb25517968b433e7166ba63517c231dfbb22b95e06a72ec04c29a0c94e1116 |
|
MD5 | 0235c935a778691fd084aea500f69066 |
|
BLAKE2b-256 | 38f8d94e3d990f5250925f1ae9191991bec1512244d76c490238ae7c993548e7 |