Files
pybricks-api/doc/api/micropython/umath.rst
T
Laurens Valk 619fa0c968 doc/main: Group MicroPython rst files.
They are easier to find when they are not mixed with Pybricks docs.
2021-07-14 11:39:25 +02:00

78 lines
1.3 KiB
ReStructuredText

:mod:`umath <umath>` -- Math functions
============================================================
This module is available on the the City Hub, Technic Hub,
Prime Hub, and Inventor Hub.
This MicroPython module is similar to the `math module`_ in Python.
.. module:: umath
Rounding and sign
-------------------------------------
.. autofunction:: umath.ceil
.. autofunction:: umath.floor
.. autofunction:: umath.trunc
.. autofunction:: umath.fmod
.. autofunction:: umath.fabs
.. autofunction:: umath.copysign
Powers and logarithms
-------------------------------
.. autodata:: umath.e
.. autofunction:: umath.exp
.. autofunction:: umath.pow
.. autofunction:: umath.log
.. autofunction:: umath.sqrt
Trigonomety
-------------------------------
.. autodata:: umath.pi
.. autofunction:: umath.degrees
.. autofunction:: umath.radians
.. autofunction:: umath.sin
.. autofunction:: umath.asin
.. autofunction:: umath.cos
.. autofunction:: umath.acos
.. autofunction:: umath.tan
.. autofunction:: umath.atan
.. autofunction:: umath.atan2
Other math functions
-------------------------------
.. autofunction:: umath.isfinite
.. autofunction:: umath.isinfinite
.. autofunction:: umath.isnan
.. autofunction:: umath.modf
.. autofunction:: umath.frexp
.. autofunction:: umath.ldexp
.. _math module: https://docs.python.org/3.5/library/math.html#module-math