Mathematical Functions
======================

Trigonometric functions
-----------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.sin
   mars.tensor.cos
   mars.tensor.tan
   mars.tensor.arcsin
   mars.tensor.arccos
   mars.tensor.arctan
   mars.tensor.hypot
   mars.tensor.arctan2
   mars.tensor.degrees
   mars.tensor.radians
   mars.tensor.deg2rad
   mars.tensor.rad2deg


Hyperbolic functions
--------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.sinh
   mars.tensor.cosh
   mars.tensor.tanh
   mars.tensor.arcsinh
   mars.tensor.arccosh
   mars.tensor.arctanh


Rounding
--------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.around
   mars.tensor.round_
   mars.tensor.rint
   mars.tensor.fix
   mars.tensor.floor
   mars.tensor.ceil
   mars.tensor.trunc


Sums, products, differences
---------------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.prod
   mars.tensor.sum
   mars.tensor.nanprod
   mars.tensor.nansum
   mars.tensor.cumprod
   mars.tensor.cumsum
   mars.tensor.nancumprod
   mars.tensor.nancumsum
   mars.tensor.diff
   mars.tensor.ediff1d
   mars.tensor.trapz


Exponential and logarithms
--------------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.exp
   mars.tensor.expm1
   mars.tensor.exp2
   mars.tensor.log
   mars.tensor.log10
   mars.tensor.log2
   mars.tensor.log1p
   mars.tensor.logaddexp
   mars.tensor.logaddexp2


Other special functions
-----------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.i0
   mars.tensor.sinc


Floating point routines
-----------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.signbit
   mars.tensor.copysign
   mars.tensor.frexp
   mars.tensor.ldexp
   mars.tensor.nextafter
   mars.tensor.spacing


Arithmetic operations
---------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.add
   mars.tensor.reciprocal
   mars.tensor.positive
   mars.tensor.negative
   mars.tensor.multiply
   mars.tensor.divide
   mars.tensor.power
   mars.tensor.subtract
   mars.tensor.true_divide
   mars.tensor.floor_divide
   mars.tensor.float_power
   mars.tensor.fmod
   mars.tensor.mod
   mars.tensor.modf
   mars.tensor.remainder


Handling complex numbers
------------------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.angle
   mars.tensor.real
   mars.tensor.imag
   mars.tensor.conj


Miscellaneous
-------------

.. autosummary::
   :toctree: generated/
   :nosignatures:

   mars.tensor.clip
   mars.tensor.sqrt
   mars.tensor.cbrt
   mars.tensor.square
   mars.tensor.absolute
   mars.tensor.sign
   mars.tensor.maximum
   mars.tensor.minimum
   mars.tensor.fmax
   mars.tensor.fmin
   mars.tensor.nan_to_num