'Test the trig functions provided in calc.py
which are: sin, cos, tan, arccos, arcsin, arctan'

def test_trig_functions(self):

    angles = ['-pi/4', '0', 'pi/6', 'pi/5', '5*pi/4', '9*pi/4', '1    +    j']
    sin_values = [(-0.707), 0, 0.5, 0.588, (-0.707), 0.707, (1.298 + 0.635j)]
    cos_values = [0.707, 1, 0.866, 0.809, (-0.707), 0.707, (0.834 - 0.989j)]
    tan_values = [(-1), 0, 0.577, 0.727, 1, 1, (0.272 + 1.084j)]
    self.assert_function_values('sin', angles, sin_values)
    self.assert_function_values('cos', angles, cos_values)
    self.assert_function_values('tan', angles, tan_values)
    arcsin_inputs = ['-0.707', '0', '0.5', '0.588', '1.298    +    0.635*j']
    arcsin_angles = [(-0.785), 0, 0.524, 0.629, (1 + 1j)]
    self.assert_function_values('arcsin', arcsin_inputs, arcsin_angles)
    self.assertTrue(numpy.isnan(calc.evaluator({}, {}, 'arcsin(-1.1)')))
    self.assertTrue(numpy.isnan(calc.evaluator({}, {}, 'arcsin(1.1)')))
    arccos_inputs = ['1', '0.866', '0.809', '0.834-0.989*j']
    arccos_angles = [0, 0.524, 0.628, (1 + 1j)]
    self.assert_function_values('arccos', arccos_inputs, arccos_angles)
    self.assertTrue(numpy.isnan(calc.evaluator({}, {}, 'arccos(-1.1)')))
    self.assertTrue(numpy.isnan(calc.evaluator({}, {}, 'arccos(1.1)')))
    arctan_inputs = ['-1', '0', '0.577', '0.727', '0.272    +    1.084*j']
    arctan_angles = arcsin_angles
    self.assert_function_values('arctan', arctan_inputs, arctan_angles)
