One Animation Logo

REPOS

APIDOCS

mymath.trigonometry

This Package Contains some trigonometic functions

Package Contents

Functions

sine(x)

Determine sine of x

cosine(x)

Determine cosine of x

inverse_cosine(x)

Determine the inverse cosine of given Value

inverse_sine(x)

Determine the inverse sine of given Value

hypotenuse(a, b)

Returns hypotenuse of a right angled triangle given the length of its side

distance(p, q)

Determine the euclidean distance between two 2d points p and q

mymath.trigonometry.sine(x)

Determine sine of x

Parameters

x (float) – input parameter x in radians

Returns

sine value of x

Return type

float

mymath.trigonometry.cosine(x)

Determine cosine of x

Parameters

x (float) – input parameter x in radians

Returns

cosine value of x

Return type

float

mymath.trigonometry.inverse_cosine(x)

Determine the inverse cosine of given Value

Parameters

x (float) – cosine value for which angle is to be found

Returns

angle in radians

Return type

float

mymath.trigonometry.inverse_sine(x)

Determine the inverse sine of given Value

Parameters

x (float) – sine value for which angle is to be found

Returns

angle in radians

Return type

float

mymath.trigonometry.hypotenuse(a, b)

Returns hypotenuse of a right angled triangle given the length of its side

Parameters
  • a (float) – length of the first side

  • b (float) – length of the second side

Returns

length of the hypotenuse

Return type

float

mymath.trigonometry.distance(p, q)

Determine the euclidean distance between two 2d points p and q

Parameters
  • p (tuple) – x, y values of first point

  • q (tuple) – x, y values of first point

Returns

distance between the two points

Return type

float