Metadata-Version: 2.1
Name: fun-dist
Version: 0.0.4b0
Summary: A python package, that provides functions for calculating distances and finding tangents of math functions
Home-page: https://github.com/EgorVoron/fun_dist
Author: Egor Voron
Author-email: ekvoron01@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# fun_dist

[![Latest PyPI version](https://img.shields.io/pypi/v/fun-dist.svg)](https://pypi.org/project/fun-dist/0.0.1b0/)
[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)

A python package, that provides functions for calculating **distances** between points, functions, circles and ellipses and finding **tangents** of functions


##Dependencies
* [Numpy](https://github.com/numpy/numpy)
* [Scipy](https://github.com/scipy/scipy)
* [Sympy](https://github.com/sympy/sympy)

## 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
```

