Python numpy.core.umath.tan() Examples

The following are code examples for showing how to use numpy.core.umath.tan(). They are from open source Python projects. You can vote up the examples you like or vote down the ones you don't like.

Example 1
Project: pycopia   Author: kdart   File: physical_quantities.py    Apache License 2.0 5 votes vote down vote up
def tan(self):
    if self.unit.isAngle():
      return umath.tan(self.value * self.unit.conversionFactorTo(_unit_table['rad']))
    else:
      raise TypeError('Argument of tan must be an angle')