def f5(x0, x1, x2):
     return (sin(x0) + cos(x1) + tan(x2))
def test_tan_int():
    curr_func = tan(-5)
    assert abs(curr_func - 3.380515006246585) < epsilon
def test_tan_ReverseADNode():
    x0 = ReverseADNode(2)
    curr_func = tan(x0**2)
    curr_func.grad_value = 1.0
    assert abs(curr_func.value - 1.1578212823495775) < epsilon and abs(
        x0.grad() - 9.36220048744648) < epsilon
def test_tan_frac():
    curr_func = tan(0.5)
    assert abs(curr_func - 0.5463024898437905) < epsilon