Skip to main content

A python package, that provides functions for calculating distances and finding tangents of math functions

Project description

fun_dist

Latest PyPI version Python 3.7

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


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)

Uploaded Source

Built Distribution

fun_dist-0.0.4b0-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page