 :py:mod:`mymath.trigonometry` ============================================= .. py:module:: mymath.trigonometry .. autoapi-nested-parse:: This Package Contains some trigonometic functions Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 cst/index.rst dist/index.rst Package Contents ---------------- Functions ~~~~~~~~~ .. autoapisummary:: mymath.trigonometry.sine mymath.trigonometry.cosine mymath.trigonometry.inverse_cosine mymath.trigonometry.inverse_sine mymath.trigonometry.hypotenuse mymath.trigonometry.distance .. py:function:: sine(x) Determine sine of x :param x: input parameter x in radians :type x: float :returns: sine value of x :rtype: float .. py:function:: cosine(x) Determine cosine of x :param x: input parameter x in radians :type x: float :returns: cosine value of x :rtype: float .. py:function:: inverse_cosine(x) Determine the inverse cosine of given Value :param x: cosine value for which angle is to be found :type x: float :returns: angle in radians :rtype: float .. py:function:: inverse_sine(x) Determine the inverse sine of given Value :param x: sine value for which angle is to be found :type x: float :returns: angle in radians :rtype: float .. py:function:: hypotenuse(a, b) Returns hypotenuse of a right angled triangle given the length of its side :param a: length of the first side :type a: float :param b: length of the second side :type b: float :returns: length of the hypotenuse :rtype: float .. py:function:: distance(p, q) Determine the euclidean distance between two 2d points p and q :param p: x, y values of first point :type p: tuple :param q: x, y values of first point :type q: tuple :returns: distance between the two points :rtype: float